Regenerate configure
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for llvm 2.5svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46   echo "#! /bin/sh" >conf$$.sh
47   echo  "exit 0"   >>conf$$.sh
48   chmod +x conf$$.sh
49   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50     PATH_SEPARATOR=';'
51   else
52     PATH_SEPARATOR=:
53   fi
54   rm -f conf$$.sh
55 fi
56
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59   as_unset=unset
60 else
61   as_unset=false
62 fi
63
64
65 # IFS
66 # We need space, tab and new line, in precisely that order.  Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
70 as_nl='
71 '
72 IFS=" ""        $as_nl"
73
74 # Find who we are.  Look in the path if we contain no directory separator.
75 case $0 in
76   *[\\/]* ) as_myself=$0 ;;
77   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 for as_dir in $PATH
79 do
80   IFS=$as_save_IFS
81   test -z "$as_dir" && as_dir=.
82   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 done
84 IFS=$as_save_IFS
85
86      ;;
87 esac
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
91   as_myself=$0
92 fi
93 if test ! -f "$as_myself"; then
94   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95   { (exit 1); exit 1; }
96 fi
97
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 done
102 PS1='$ '
103 PS2='> '
104 PS4='+ '
105
106 # NLS nuisances.
107 for as_var in \
108   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110   LC_TELEPHONE LC_TIME
111 do
112   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113     eval $as_var=C; export $as_var
114   else
115     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116   fi
117 done
118
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121    test "X`expr 00001 : '.*\(...\)'`" = X001; then
122   as_expr=expr
123 else
124   as_expr=false
125 fi
126
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128   as_basename=basename
129 else
130   as_basename=false
131 fi
132
133
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137          X"$0" : 'X\(//\)$' \| \
138          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 echo X/"$0" |
140     sed '/^.*\/\([^/][^/]*\)\/*$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\/\)$/{
145             s//\1/
146             q
147           }
148           /^X\/\(\/\).*/{
149             s//\1/
150             q
151           }
152           s/.*/./; q'`
153
154 # CDPATH.
155 $as_unset CDPATH
156
157
158 if test "x$CONFIG_SHELL" = x; then
159   if (eval ":") 2>/dev/null; then
160   as_have_required=yes
161 else
162   as_have_required=no
163 fi
164
165   if test $as_have_required = yes &&     (eval ":
166 (as_func_return () {
167   (exit \$1)
168 }
169 as_func_success () {
170   as_func_return 0
171 }
172 as_func_failure () {
173   as_func_return 1
174 }
175 as_func_ret_success () {
176   return 0
177 }
178 as_func_ret_failure () {
179   return 1
180 }
181
182 exitcode=0
183 if as_func_success; then
184   :
185 else
186   exitcode=1
187   echo as_func_success failed.
188 fi
189
190 if as_func_failure; then
191   exitcode=1
192   echo as_func_failure succeeded.
193 fi
194
195 if as_func_ret_success; then
196   :
197 else
198   exitcode=1
199   echo as_func_ret_success failed.
200 fi
201
202 if as_func_ret_failure; then
203   exitcode=1
204   echo as_func_ret_failure succeeded.
205 fi
206
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208   :
209 else
210   exitcode=1
211   echo positional parameters were not saved.
212 fi
213
214 test \$exitcode = 0) || { (exit 1); exit 1; }
215
216 (
217   as_lineno_1=\$LINENO
218   as_lineno_2=\$LINENO
219   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
222   :
223 else
224   as_candidate_shells=
225     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 do
228   IFS=$as_save_IFS
229   test -z "$as_dir" && as_dir=.
230   case $as_dir in
231          /*)
232            for as_base in sh bash ksh sh5; do
233              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234            done;;
235        esac
236 done
237 IFS=$as_save_IFS
238
239
240       for as_shell in $as_candidate_shells $SHELL; do
241          # Try only shells that exist, to save several forks.
242          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243                 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245   emulate sh
246   NULLCMD=:
247   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248   # is contrary to our usage.  Disable this feature.
249   alias -g '${1+"$@"}'='"$@"'
250   setopt NO_GLOB_SUBST
251 else
252   case `(set -o) 2>/dev/null` in
253   *posix*) set -o posix ;;
254 esac
255
256 fi
257
258
259 :
260 _ASEOF
261 }; then
262   CONFIG_SHELL=$as_shell
263                as_have_required=yes
264                if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266   emulate sh
267   NULLCMD=:
268   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269   # is contrary to our usage.  Disable this feature.
270   alias -g '${1+"$@"}'='"$@"'
271   setopt NO_GLOB_SUBST
272 else
273   case `(set -o) 2>/dev/null` in
274   *posix*) set -o posix ;;
275 esac
276
277 fi
278
279
280 :
281 (as_func_return () {
282   (exit $1)
283 }
284 as_func_success () {
285   as_func_return 0
286 }
287 as_func_failure () {
288   as_func_return 1
289 }
290 as_func_ret_success () {
291   return 0
292 }
293 as_func_ret_failure () {
294   return 1
295 }
296
297 exitcode=0
298 if as_func_success; then
299   :
300 else
301   exitcode=1
302   echo as_func_success failed.
303 fi
304
305 if as_func_failure; then
306   exitcode=1
307   echo as_func_failure succeeded.
308 fi
309
310 if as_func_ret_success; then
311   :
312 else
313   exitcode=1
314   echo as_func_ret_success failed.
315 fi
316
317 if as_func_ret_failure; then
318   exitcode=1
319   echo as_func_ret_failure succeeded.
320 fi
321
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
323   :
324 else
325   exitcode=1
326   echo positional parameters were not saved.
327 fi
328
329 test $exitcode = 0) || { (exit 1); exit 1; }
330
331 (
332   as_lineno_1=$LINENO
333   as_lineno_2=$LINENO
334   test "x$as_lineno_1" != "x$as_lineno_2" &&
335   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
337 _ASEOF
338 }; then
339   break
340 fi
341
342 fi
343
344       done
345
346       if test "x$CONFIG_SHELL" != x; then
347   for as_var in BASH_ENV ENV
348         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349         done
350         export CONFIG_SHELL
351         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 fi
353
354
355     if test $as_have_required = no; then
356   echo This script requires a shell more modern than all the
357       echo shells that I found on your system.  Please install a
358       echo modern shell, or manually run the script under such a
359       echo shell if you do have one.
360       { (exit 1); exit 1; }
361 fi
362
363
364 fi
365
366 fi
367
368
369
370 (eval "as_func_return () {
371   (exit \$1)
372 }
373 as_func_success () {
374   as_func_return 0
375 }
376 as_func_failure () {
377   as_func_return 1
378 }
379 as_func_ret_success () {
380   return 0
381 }
382 as_func_ret_failure () {
383   return 1
384 }
385
386 exitcode=0
387 if as_func_success; then
388   :
389 else
390   exitcode=1
391   echo as_func_success failed.
392 fi
393
394 if as_func_failure; then
395   exitcode=1
396   echo as_func_failure succeeded.
397 fi
398
399 if as_func_ret_success; then
400   :
401 else
402   exitcode=1
403   echo as_func_ret_success failed.
404 fi
405
406 if as_func_ret_failure; then
407   exitcode=1
408   echo as_func_ret_failure succeeded.
409 fi
410
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412   :
413 else
414   exitcode=1
415   echo positional parameters were not saved.
416 fi
417
418 test \$exitcode = 0") || {
419   echo No shell found that supports shell functions.
420   echo Please tell autoconf@gnu.org about your system,
421   echo including any error possibly output before this
422   echo message
423 }
424
425
426
427   as_lineno_1=$LINENO
428   as_lineno_2=$LINENO
429   test "x$as_lineno_1" != "x$as_lineno_2" &&
430   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431
432   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433   # uniformly replaced by the line number.  The first 'sed' inserts a
434   # line-number line after each line using $LINENO; the second 'sed'
435   # does the real work.  The second script uses 'N' to pair each
436   # line-number line with the line containing $LINENO, and appends
437   # trailing '-' during substitution so that $LINENO is not a special
438   # case at line end.
439   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440   # scripts with optimization help from Paolo Bonzini.  Blame Lee
441   # E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459    { (exit 1); exit 1; }; }
460
461   # Don't try to exec as it changes $[0], causing all sort of problems
462   # (the dirname of $[0] is not the place where we might find the
463   # original and so on.  Autoconf is especially sensitive to this).
464   . "./$as_me.lineno"
465   # Exit status is that of the last command.
466   exit
467 }
468
469
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471   as_dirname=dirname
472 else
473   as_dirname=false
474 fi
475
476 ECHO_C= ECHO_N= ECHO_T=
477 case `echo -n x` in
478 -n*)
479   case `echo 'x\c'` in
480   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
481   *)   ECHO_C='\c';;
482   esac;;
483 *)
484   ECHO_N='-n';;
485 esac
486
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488    test "X`expr 00001 : '.*\(...\)'`" = X001; then
489   as_expr=expr
490 else
491   as_expr=false
492 fi
493
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496   rm -f conf$$.dir/conf$$.file
497 else
498   rm -f conf$$.dir
499   mkdir conf$$.dir
500 fi
501 echo >conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s='ln -s'
504   # ... but there are two gotchas:
505   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507   # In both cases, we have to default to `cp -p'.
508   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509     as_ln_s='cp -p'
510 elif ln conf$$.file conf$$ 2>/dev/null; then
511   as_ln_s=ln
512 else
513   as_ln_s='cp -p'
514 fi
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
517
518 if mkdir -p . 2>/dev/null; then
519   as_mkdir_p=:
520 else
521   test -d ./-p && rmdir ./-p
522   as_mkdir_p=false
523 fi
524
525 if test -x / >/dev/null 2>&1; then
526   as_test_x='test -x'
527 else
528   if ls -dL / >/dev/null 2>&1; then
529     as_ls_L_option=L
530   else
531     as_ls_L_option=
532   fi
533   as_test_x='
534     eval sh -c '\''
535       if test -d "$1"; then
536         test -d "$1/.";
537       else
538         case $1 in
539         -*)set "./$1";;
540         esac;
541         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542         ???[sx]*):;;*)false;;esac;fi
543     '\'' sh
544   '
545 fi
546 as_executable_p=$as_test_x
547
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
554
555
556
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 case X$ECHO in
561 X*--fallback-echo)
562   # Remove one level of quotation (which was required for Make).
563   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564   ;;
565 esac
566
567 echo=${ECHO-echo}
568 if test "X$1" = X--no-reexec; then
569   # Discard the --no-reexec flag, and continue.
570   shift
571 elif test "X$1" = X--fallback-echo; then
572   # Avoid inline document here, it may be left over
573   :
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575   # Yippee, $echo works!
576   :
577 else
578   # Restart under the correct shell.
579   exec $SHELL "$0" --no-reexec ${1+"$@"}
580 fi
581
582 if test "X$1" = X--fallback-echo; then
583   # used as fallback echo
584   shift
585   cat <<EOF
586 $*
587 EOF
588   exit 0
589 fi
590
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 # if CDPATH is set.
593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601        echo_test_string=`eval $cmd` &&
602        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
603     then
604       break
605     fi
606   done
607 fi
608
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611    test "X$echo_testing_string" = "X$echo_test_string"; then
612   :
613 else
614   # The Solaris, AIX, and Digital Unix default echo programs unquote
615   # backslashes.  This makes it impossible to quote backslashes using
616   #   echo "$something" | sed 's/\\/\\\\/g'
617   #
618   # So, first we look for a working echo in the user's PATH.
619
620   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621   for dir in $PATH /usr/ucb; do
622     IFS="$lt_save_ifs"
623     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626        test "X$echo_testing_string" = "X$echo_test_string"; then
627       echo="$dir/echo"
628       break
629     fi
630   done
631   IFS="$lt_save_ifs"
632
633   if test "X$echo" = Xecho; then
634     # We didn't find a better echo, so look for alternatives.
635     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637        test "X$echo_testing_string" = "X$echo_test_string"; then
638       # This shell has a builtin print -r that does the trick.
639       echo='print -r'
640     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641          test "X$CONFIG_SHELL" != X/bin/ksh; then
642       # If we have ksh, try running configure again with it.
643       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644       export ORIGINAL_CONFIG_SHELL
645       CONFIG_SHELL=/bin/ksh
646       export CONFIG_SHELL
647       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648     else
649       # Try using printf.
650       echo='printf %s\n'
651       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653          test "X$echo_testing_string" = "X$echo_test_string"; then
654         # Cool, printf works
655         :
656       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657            test "X$echo_testing_string" = 'X\t' &&
658            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659            test "X$echo_testing_string" = "X$echo_test_string"; then
660         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661         export CONFIG_SHELL
662         SHELL="$CONFIG_SHELL"
663         export SHELL
664         echo="$CONFIG_SHELL $0 --fallback-echo"
665       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666            test "X$echo_testing_string" = 'X\t' &&
667            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668            test "X$echo_testing_string" = "X$echo_test_string"; then
669         echo="$CONFIG_SHELL $0 --fallback-echo"
670       else
671         # maybe with a smaller string...
672         prev=:
673
674         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
676           then
677             break
678           fi
679           prev="$cmd"
680         done
681
682         if test "$prev" != 'sed 50q "$0"'; then
683           echo_test_string=`eval $prev`
684           export echo_test_string
685           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686         else
687           # Oops.  We lost completely, so just stick with echo.
688           echo=echo
689         fi
690       fi
691     fi
692   fi
693 fi
694 fi
695
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
698 ECHO=$echo
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 fi
702
703
704
705
706 tagnames=${tagnames+${tagnames},}CXX
707
708 tagnames=${tagnames+${tagnames},}F77
709
710 exec 7<&0 </dev/null 6>&1
711
712 # Name of the host.
713 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
714 # so uname gets run too.
715 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716
717 #
718 # Initializations.
719 #
720 ac_default_prefix=/usr/local
721 ac_clean_files=
722 ac_config_libobj_dir=.
723 LIBOBJS=
724 cross_compiling=no
725 subdirs=
726 MFLAGS=
727 MAKEFLAGS=
728 SHELL=${CONFIG_SHELL-/bin/sh}
729
730 # Identity of this package.
731 PACKAGE_NAME='llvm'
732 PACKAGE_TARNAME='-llvm-'
733 PACKAGE_VERSION='2.5svn'
734 PACKAGE_STRING='llvm 2.5svn'
735 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
736
737 ac_unique_file="lib/VMCore/Module.cpp"
738 # Factoring default headers for most tests.
739 ac_includes_default="\
740 #include <stdio.h>
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
743 #endif
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
746 #endif
747 #ifdef STDC_HEADERS
748 # include <stdlib.h>
749 # include <stddef.h>
750 #else
751 # ifdef HAVE_STDLIB_H
752 #  include <stdlib.h>
753 # endif
754 #endif
755 #ifdef HAVE_STRING_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #  include <memory.h>
758 # endif
759 # include <string.h>
760 #endif
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
763 #endif
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
766 #endif
767 #ifdef HAVE_STDINT_H
768 # include <stdint.h>
769 #endif
770 #ifdef HAVE_UNISTD_H
771 # include <unistd.h>
772 #endif"
773
774 ac_subst_vars='SHELL
775 PATH_SEPARATOR
776 PACKAGE_NAME
777 PACKAGE_TARNAME
778 PACKAGE_VERSION
779 PACKAGE_STRING
780 PACKAGE_BUGREPORT
781 exec_prefix
782 prefix
783 program_transform_name
784 bindir
785 sbindir
786 libexecdir
787 datarootdir
788 datadir
789 sysconfdir
790 sharedstatedir
791 localstatedir
792 includedir
793 oldincludedir
794 docdir
795 infodir
796 htmldir
797 dvidir
798 pdfdir
799 psdir
800 libdir
801 localedir
802 mandir
803 DEFS
804 ECHO_C
805 ECHO_N
806 ECHO_T
807 LIBS
808 build_alias
809 host_alias
810 target_alias
811 LLVM_COPYRIGHT
812 subdirs
813 build
814 build_cpu
815 build_vendor
816 build_os
817 host
818 host_cpu
819 host_vendor
820 host_os
821 target
822 target_cpu
823 target_vendor
824 target_os
825 OS
826 LINKALL
827 NOLINKALL
828 LLVM_ON_UNIX
829 LLVM_ON_WIN32
830 ARCH
831 ENDIAN
832 CC
833 CFLAGS
834 LDFLAGS
835 CPPFLAGS
836 ac_ct_CC
837 EXEEXT
838 OBJEXT
839 CPP
840 GREP
841 EGREP
842 LLVM_CROSS_COMPILING
843 BUILD_CC
844 BUILD_EXEEXT
845 BUILD_CXX
846 CVSBUILD
847 ENABLE_OPTIMIZED
848 DISABLE_ASSERTIONS
849 ENABLE_EXPENSIVE_CHECKS
850 EXPENSIVE_CHECKS
851 DEBUG_RUNTIME
852 JIT
853 TARGET_HAS_JIT
854 ENABLE_DOXYGEN
855 ENABLE_THREADS
856 ENABLE_PIC
857 TARGETS_TO_BUILD
858 ENABLE_CBE_PRINTF_A
859 EXTRA_OPTIONS
860 CXX
861 CXXFLAGS
862 ac_ct_CXX
863 LEX
864 LEX_OUTPUT_ROOT
865 LEXLIB
866 FLEX
867 YACC
868 YFLAGS
869 BISON
870 NM
871 ifGNUmake
872 LN_S
873 CMP
874 CP
875 DATE
876 FIND
877 MKDIR
878 MV
879 RANLIB
880 RM
881 SED
882 TAR
883 BINPWD
884 GRAPHVIZ
885 DOT
886 GV
887 DOTTY
888 PERL
889 HAVE_PERL
890 INSTALL_PROGRAM
891 INSTALL_SCRIPT
892 INSTALL_DATA
893 BZIP2
894 DOXYGEN
895 GROFF
896 GZIP
897 POD2HTML
898 POD2MAN
899 RUNTEST
900 TCLSH
901 ZIP
902 OCAMLC
903 OCAMLOPT
904 OCAMLDEP
905 OCAMLDOC
906 GAS
907 INSTALL_LTDL_TRUE
908 INSTALL_LTDL_FALSE
909 CONVENIENCE_LTDL_TRUE
910 CONVENIENCE_LTDL_FALSE
911 LIBADD_DL
912 ECHO
913 AR
914 STRIP
915 CXXCPP
916 F77
917 FFLAGS
918 ac_ct_F77
919 LIBTOOL
920 LLVMGCC
921 LLVMGXX
922 USE_UDIS86
923 HAVE_PTHREAD
924 HUGE_VAL_SANITY
925 ALLOCA
926 MMAP_FILE
927 LLVMCC1
928 LLVMCC1PLUS
929 LLVMGCCDIR
930 LLVMGCCLIBEXEC
931 LLVMGCC_VERSION
932 LLVMGCC_MAJVERS
933 LLVMGCC_LANGS
934 SHLIBEXT
935 LLVM_PREFIX
936 LLVM_BINDIR
937 LLVM_LIBDIR
938 LLVM_DATADIR
939 LLVM_DOCSDIR
940 LLVM_ETCDIR
941 LLVM_INCLUDEDIR
942 LLVM_INFODIR
943 LLVM_MANDIR
944 LLVM_CONFIGTIME
945 BINDINGS_TO_BUILD
946 ALL_BINDINGS
947 OCAML_LIBDIR
948 ENABLE_VISIBILITY_INLINES_HIDDEN
949 LIBOBJS
950 LTLIBOBJS'
951 ac_subst_files=''
952       ac_precious_vars='build_alias
953 host_alias
954 target_alias
955 CC
956 CFLAGS
957 LDFLAGS
958 LIBS
959 CPPFLAGS
960 CPP
961 CXX
962 CXXFLAGS
963 CCC
964 YACC
965 YFLAGS
966 CXXCPP
967 F77
968 FFLAGS'
969 ac_subdirs_all='projects/sample
970 projects/privbracket
971 projects/llvm-stacker
972 projects/llvm-test
973 projects/test-suite
974 projects/llvm-reopt
975 projects/llvm-gcc
976 projects/llvm-java
977 projects/llvm-tv
978 projects/llvm-poolalloc
979 projects/poolalloc
980 projects/llvm-kernel'
981
982 # Initialize some variables set by options.
983 ac_init_help=
984 ac_init_version=false
985 # The variables have the same names as the options, with
986 # dashes changed to underlines.
987 cache_file=/dev/null
988 exec_prefix=NONE
989 no_create=
990 no_recursion=
991 prefix=NONE
992 program_prefix=NONE
993 program_suffix=NONE
994 program_transform_name=s,x,x,
995 silent=
996 site=
997 srcdir=
998 verbose=
999 x_includes=NONE
1000 x_libraries=NONE
1001
1002 # Installation directory options.
1003 # These are left unexpanded so users can "make install exec_prefix=/foo"
1004 # and all the variables that are supposed to be based on exec_prefix
1005 # by default will actually change.
1006 # Use braces instead of parens because sh, perl, etc. also accept them.
1007 # (The list follows the same order as the GNU Coding Standards.)
1008 bindir='${exec_prefix}/bin'
1009 sbindir='${exec_prefix}/sbin'
1010 libexecdir='${exec_prefix}/libexec'
1011 datarootdir='${prefix}/share'
1012 datadir='${datarootdir}'
1013 sysconfdir='${prefix}/etc'
1014 sharedstatedir='${prefix}/com'
1015 localstatedir='${prefix}/var'
1016 includedir='${prefix}/include'
1017 oldincludedir='/usr/include'
1018 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1019 infodir='${datarootdir}/info'
1020 htmldir='${docdir}'
1021 dvidir='${docdir}'
1022 pdfdir='${docdir}'
1023 psdir='${docdir}'
1024 libdir='${exec_prefix}/lib'
1025 localedir='${datarootdir}/locale'
1026 mandir='${datarootdir}/man'
1027
1028 ac_prev=
1029 ac_dashdash=
1030 for ac_option
1031 do
1032   # If the previous option needs an argument, assign it.
1033   if test -n "$ac_prev"; then
1034     eval $ac_prev=\$ac_option
1035     ac_prev=
1036     continue
1037   fi
1038
1039   case $ac_option in
1040   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1041   *)    ac_optarg=yes ;;
1042   esac
1043
1044   # Accept the important Cygnus configure options, so we can diagnose typos.
1045
1046   case $ac_dashdash$ac_option in
1047   --)
1048     ac_dashdash=yes ;;
1049
1050   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1051     ac_prev=bindir ;;
1052   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1053     bindir=$ac_optarg ;;
1054
1055   -build | --build | --buil | --bui | --bu)
1056     ac_prev=build_alias ;;
1057   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1058     build_alias=$ac_optarg ;;
1059
1060   -cache-file | --cache-file | --cache-fil | --cache-fi \
1061   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1062     ac_prev=cache_file ;;
1063   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1064   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1065     cache_file=$ac_optarg ;;
1066
1067   --config-cache | -C)
1068     cache_file=config.cache ;;
1069
1070   -datadir | --datadir | --datadi | --datad)
1071     ac_prev=datadir ;;
1072   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1073     datadir=$ac_optarg ;;
1074
1075   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1076   | --dataroo | --dataro | --datar)
1077     ac_prev=datarootdir ;;
1078   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1079   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1080     datarootdir=$ac_optarg ;;
1081
1082   -disable-* | --disable-*)
1083     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1084     # Reject names that are not valid shell variable names.
1085     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1086       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087    { (exit 1); exit 1; }; }
1088     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1089     eval enable_$ac_feature=no ;;
1090
1091   -docdir | --docdir | --docdi | --doc | --do)
1092     ac_prev=docdir ;;
1093   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1094     docdir=$ac_optarg ;;
1095
1096   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1097     ac_prev=dvidir ;;
1098   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1099     dvidir=$ac_optarg ;;
1100
1101   -enable-* | --enable-*)
1102     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103     # Reject names that are not valid shell variable names.
1104     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1106    { (exit 1); exit 1; }; }
1107     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1108     eval enable_$ac_feature=\$ac_optarg ;;
1109
1110   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1111   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1112   | --exec | --exe | --ex)
1113     ac_prev=exec_prefix ;;
1114   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1115   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1116   | --exec=* | --exe=* | --ex=*)
1117     exec_prefix=$ac_optarg ;;
1118
1119   -gas | --gas | --ga | --g)
1120     # Obsolete; use --with-gas.
1121     with_gas=yes ;;
1122
1123   -help | --help | --hel | --he | -h)
1124     ac_init_help=long ;;
1125   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1126     ac_init_help=recursive ;;
1127   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1128     ac_init_help=short ;;
1129
1130   -host | --host | --hos | --ho)
1131     ac_prev=host_alias ;;
1132   -host=* | --host=* | --hos=* | --ho=*)
1133     host_alias=$ac_optarg ;;
1134
1135   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1136     ac_prev=htmldir ;;
1137   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1138   | --ht=*)
1139     htmldir=$ac_optarg ;;
1140
1141   -includedir | --includedir | --includedi | --included | --include \
1142   | --includ | --inclu | --incl | --inc)
1143     ac_prev=includedir ;;
1144   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1145   | --includ=* | --inclu=* | --incl=* | --inc=*)
1146     includedir=$ac_optarg ;;
1147
1148   -infodir | --infodir | --infodi | --infod | --info | --inf)
1149     ac_prev=infodir ;;
1150   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1151     infodir=$ac_optarg ;;
1152
1153   -libdir | --libdir | --libdi | --libd)
1154     ac_prev=libdir ;;
1155   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1156     libdir=$ac_optarg ;;
1157
1158   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1159   | --libexe | --libex | --libe)
1160     ac_prev=libexecdir ;;
1161   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1162   | --libexe=* | --libex=* | --libe=*)
1163     libexecdir=$ac_optarg ;;
1164
1165   -localedir | --localedir | --localedi | --localed | --locale)
1166     ac_prev=localedir ;;
1167   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1168     localedir=$ac_optarg ;;
1169
1170   -localstatedir | --localstatedir | --localstatedi | --localstated \
1171   | --localstate | --localstat | --localsta | --localst | --locals)
1172     ac_prev=localstatedir ;;
1173   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1174   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1175     localstatedir=$ac_optarg ;;
1176
1177   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1178     ac_prev=mandir ;;
1179   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1180     mandir=$ac_optarg ;;
1181
1182   -nfp | --nfp | --nf)
1183     # Obsolete; use --without-fp.
1184     with_fp=no ;;
1185
1186   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1187   | --no-cr | --no-c | -n)
1188     no_create=yes ;;
1189
1190   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1191   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1192     no_recursion=yes ;;
1193
1194   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1195   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1196   | --oldin | --oldi | --old | --ol | --o)
1197     ac_prev=oldincludedir ;;
1198   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1199   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1200   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1201     oldincludedir=$ac_optarg ;;
1202
1203   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1204     ac_prev=prefix ;;
1205   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1206     prefix=$ac_optarg ;;
1207
1208   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1209   | --program-pre | --program-pr | --program-p)
1210     ac_prev=program_prefix ;;
1211   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1212   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1213     program_prefix=$ac_optarg ;;
1214
1215   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1216   | --program-suf | --program-su | --program-s)
1217     ac_prev=program_suffix ;;
1218   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1219   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1220     program_suffix=$ac_optarg ;;
1221
1222   -program-transform-name | --program-transform-name \
1223   | --program-transform-nam | --program-transform-na \
1224   | --program-transform-n | --program-transform- \
1225   | --program-transform | --program-transfor \
1226   | --program-transfo | --program-transf \
1227   | --program-trans | --program-tran \
1228   | --progr-tra | --program-tr | --program-t)
1229     ac_prev=program_transform_name ;;
1230   -program-transform-name=* | --program-transform-name=* \
1231   | --program-transform-nam=* | --program-transform-na=* \
1232   | --program-transform-n=* | --program-transform-=* \
1233   | --program-transform=* | --program-transfor=* \
1234   | --program-transfo=* | --program-transf=* \
1235   | --program-trans=* | --program-tran=* \
1236   | --progr-tra=* | --program-tr=* | --program-t=*)
1237     program_transform_name=$ac_optarg ;;
1238
1239   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1240     ac_prev=pdfdir ;;
1241   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1242     pdfdir=$ac_optarg ;;
1243
1244   -psdir | --psdir | --psdi | --psd | --ps)
1245     ac_prev=psdir ;;
1246   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1247     psdir=$ac_optarg ;;
1248
1249   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250   | -silent | --silent | --silen | --sile | --sil)
1251     silent=yes ;;
1252
1253   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1254     ac_prev=sbindir ;;
1255   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1256   | --sbi=* | --sb=*)
1257     sbindir=$ac_optarg ;;
1258
1259   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1260   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1261   | --sharedst | --shareds | --shared | --share | --shar \
1262   | --sha | --sh)
1263     ac_prev=sharedstatedir ;;
1264   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1265   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1266   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1267   | --sha=* | --sh=*)
1268     sharedstatedir=$ac_optarg ;;
1269
1270   -site | --site | --sit)
1271     ac_prev=site ;;
1272   -site=* | --site=* | --sit=*)
1273     site=$ac_optarg ;;
1274
1275   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1276     ac_prev=srcdir ;;
1277   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1278     srcdir=$ac_optarg ;;
1279
1280   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1281   | --syscon | --sysco | --sysc | --sys | --sy)
1282     ac_prev=sysconfdir ;;
1283   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1284   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1285     sysconfdir=$ac_optarg ;;
1286
1287   -target | --target | --targe | --targ | --tar | --ta | --t)
1288     ac_prev=target_alias ;;
1289   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1290     target_alias=$ac_optarg ;;
1291
1292   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1293     verbose=yes ;;
1294
1295   -version | --version | --versio | --versi | --vers | -V)
1296     ac_init_version=: ;;
1297
1298   -with-* | --with-*)
1299     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1300     # Reject names that are not valid shell variable names.
1301     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302       { echo "$as_me: error: invalid package name: $ac_package" >&2
1303    { (exit 1); exit 1; }; }
1304     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1305     eval with_$ac_package=\$ac_optarg ;;
1306
1307   -without-* | --without-*)
1308     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309     # Reject names that are not valid shell variable names.
1310     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1311       { echo "$as_me: error: invalid package name: $ac_package" >&2
1312    { (exit 1); exit 1; }; }
1313     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1314     eval with_$ac_package=no ;;
1315
1316   --x)
1317     # Obsolete; use --with-x.
1318     with_x=yes ;;
1319
1320   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1321   | --x-incl | --x-inc | --x-in | --x-i)
1322     ac_prev=x_includes ;;
1323   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1324   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1325     x_includes=$ac_optarg ;;
1326
1327   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1328   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1329     ac_prev=x_libraries ;;
1330   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1331   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1332     x_libraries=$ac_optarg ;;
1333
1334   -*) { echo "$as_me: error: unrecognized option: $ac_option
1335 Try \`$0 --help' for more information." >&2
1336    { (exit 1); exit 1; }; }
1337     ;;
1338
1339   *=*)
1340     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341     # Reject names that are not valid shell variable names.
1342     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1343       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1344    { (exit 1); exit 1; }; }
1345     eval $ac_envvar=\$ac_optarg
1346     export $ac_envvar ;;
1347
1348   *)
1349     # FIXME: should be removed in autoconf 3.0.
1350     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1352       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1354     ;;
1355
1356   esac
1357 done
1358
1359 if test -n "$ac_prev"; then
1360   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1361   { echo "$as_me: error: missing argument to $ac_option" >&2
1362    { (exit 1); exit 1; }; }
1363 fi
1364
1365 # Be sure to have absolute directory names.
1366 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367                 datadir sysconfdir sharedstatedir localstatedir includedir \
1368                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369                 libdir localedir mandir
1370 do
1371   eval ac_val=\$$ac_var
1372   case $ac_val in
1373     [\\/$]* | ?:[\\/]* )  continue;;
1374     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1375   esac
1376   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1377    { (exit 1); exit 1; }; }
1378 done
1379
1380 # There might be people who depend on the old broken behavior: `$host'
1381 # used to hold the argument of --host etc.
1382 # FIXME: To remove some day.
1383 build=$build_alias
1384 host=$host_alias
1385 target=$target_alias
1386
1387 # FIXME: To remove some day.
1388 if test "x$host_alias" != x; then
1389   if test "x$build_alias" = x; then
1390     cross_compiling=maybe
1391     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1392     If a cross compiler is detected then cross compile mode will be used." >&2
1393   elif test "x$build_alias" != "x$host_alias"; then
1394     cross_compiling=yes
1395   fi
1396 fi
1397
1398 ac_tool_prefix=
1399 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1400
1401 test "$silent" = yes && exec 6>/dev/null
1402
1403
1404 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1405 ac_ls_di=`ls -di .` &&
1406 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1407   { echo "$as_me: error: Working directory cannot be determined" >&2
1408    { (exit 1); exit 1; }; }
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410   { echo "$as_me: error: pwd does not report name of working directory" >&2
1411    { (exit 1); exit 1; }; }
1412
1413
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416   ac_srcdir_defaulted=yes
1417   # Try the directory containing this script, then the parent directory.
1418   ac_confdir=`$as_dirname -- "$0" ||
1419 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420          X"$0" : 'X\(//\)[^/]' \| \
1421          X"$0" : 'X\(//\)$' \| \
1422          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1423 echo X"$0" |
1424     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425             s//\1/
1426             q
1427           }
1428           /^X\(\/\/\)[^/].*/{
1429             s//\1/
1430             q
1431           }
1432           /^X\(\/\/\)$/{
1433             s//\1/
1434             q
1435           }
1436           /^X\(\/\).*/{
1437             s//\1/
1438             q
1439           }
1440           s/.*/./; q'`
1441   srcdir=$ac_confdir
1442   if test ! -r "$srcdir/$ac_unique_file"; then
1443     srcdir=..
1444   fi
1445 else
1446   ac_srcdir_defaulted=no
1447 fi
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1451    { (exit 1); exit 1; }; }
1452 fi
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 ac_abs_confdir=`(
1455         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1456    { (exit 1); exit 1; }; }
1457         pwd)`
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460   srcdir=.
1461 fi
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1465 case $srcdir in
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 esac
1468 for ac_var in $ac_precious_vars; do
1469   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470   eval ac_env_${ac_var}_value=\$${ac_var}
1471   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 done
1474
1475 #
1476 # Report the --help message.
1477 #
1478 if test "$ac_init_help" = "long"; then
1479   # Omit some internal or obsolete options to make the list less imposing.
1480   # This message is too long to be a string in the A/UX 3.1 sh.
1481   cat <<_ACEOF
1482 \`configure' configures llvm 2.5svn to adapt to many kinds of systems.
1483
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1485
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE.  See below for descriptions of some of the useful variables.
1488
1489 Defaults for the options are specified in brackets.
1490
1491 Configuration:
1492   -h, --help              display this help and exit
1493       --help=short        display options specific to this package
1494       --help=recursive    display the short help of all the included packages
1495   -V, --version           display version information and exit
1496   -q, --quiet, --silent   do not print \`checking...' messages
1497       --cache-file=FILE   cache test results in FILE [disabled]
1498   -C, --config-cache      alias for \`--cache-file=config.cache'
1499   -n, --no-create         do not create output files
1500       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1501
1502 Installation directories:
1503   --prefix=PREFIX         install architecture-independent files in PREFIX
1504                           [$ac_default_prefix]
1505   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1506                           [PREFIX]
1507
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1512
1513 For better control, use the options below.
1514
1515 Fine tuning of the installation directories:
1516   --bindir=DIR           user executables [EPREFIX/bin]
1517   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1518   --libexecdir=DIR       program executables [EPREFIX/libexec]
1519   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1520   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1521   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1522   --libdir=DIR           object code libraries [EPREFIX/lib]
1523   --includedir=DIR       C header files [PREFIX/include]
1524   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1525   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1526   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1527   --infodir=DIR          info documentation [DATAROOTDIR/info]
1528   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1529   --mandir=DIR           man documentation [DATAROOTDIR/man]
1530   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1531   --htmldir=DIR          html documentation [DOCDIR]
1532   --dvidir=DIR           dvi documentation [DOCDIR]
1533   --pdfdir=DIR           pdf documentation [DOCDIR]
1534   --psdir=DIR            ps documentation [DOCDIR]
1535 _ACEOF
1536
1537   cat <<\_ACEOF
1538
1539 System types:
1540   --build=BUILD     configure for building on BUILD [guessed]
1541   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1542   --target=TARGET   configure for building compilers for TARGET [HOST]
1543 _ACEOF
1544 fi
1545
1546 if test -n "$ac_init_help"; then
1547   case $ac_init_help in
1548      short | recursive ) echo "Configuration of llvm 2.5svn:";;
1549    esac
1550   cat <<\_ACEOF
1551
1552 Optional Features:
1553   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1554   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1555   --enable-optimized
1556   --enable-assertions
1557   --enable-expensive-checks
1558
1559   --enable-debug-runtime
1560   --enable-jit            Enable Just In Time Compiling (default is YES)
1561   --enable-doxygen        Build doxygen documentation (default is NO)
1562   --enable-threads        Use threads if available (default is YES)
1563   --enable-pic            Build LLVM with Position Independent Code (default
1564                           is NO)
1565   --enable-targets        Build specific host targets:
1566                           all,host-only,{target-name} (default=all)
1567   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1568                           %a (default is YES)
1569   --enable-bindings       Build specific language bindings:
1570                           all,auto,none,{binding-name} (default=auto)
1571   --enable-ltdl-install   install libltdl
1572   --enable-shared[=PKGS]  build shared libraries
1573                           [default=yes]
1574   --enable-static[=PKGS]  build static libraries
1575                           [default=yes]
1576   --enable-fast-install[=PKGS]
1577                           optimize for fast installation
1578                           [default=yes]
1579   --disable-libtool-lock  avoid locking (might break parallel builds)
1580
1581 Optional Packages:
1582   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1583   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1584   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1585                           searches PATH)
1586   --with-llvmgcc          Specify location of llvm-gcc driver (default
1587                           searches PATH)
1588   --with-llvmgxx          Specify location of llvm-g++ driver (default
1589                           searches PATH)
1590   --with-extra-options    Specify addtional options to compile LLVM with
1591   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1592                           is stdlib)
1593   --with-tclinclude       directory where tcl headers are
1594   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1595   --with-pic              try to use only PIC/non-PIC objects [default=use
1596                           both]
1597   --with-tags[=TAGS]      include additional configurations [automatic]
1598   --with-udis86=<path>    Use udis86 external x86 disassembler library
1599
1600 Some influential environment variables:
1601   CC          C compiler command
1602   CFLAGS      C compiler flags
1603   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1604               nonstandard directory <lib dir>
1605   LIBS        libraries to pass to the linker, e.g. -l<library>
1606   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1607               you have headers in a nonstandard directory <include dir>
1608   CPP         C preprocessor
1609   CXX         C++ compiler command
1610   CXXFLAGS    C++ compiler flags
1611   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1612               the first program found out of: `bison -y', `byacc', `yacc'.
1613   YFLAGS      The list of arguments that will be passed by default to $YACC.
1614               This script will default YFLAGS to the empty string to avoid a
1615               default value of `-d' given by some make applications.
1616   CXXCPP      C++ preprocessor
1617   F77         Fortran 77 compiler command
1618   FFLAGS      Fortran 77 compiler flags
1619
1620 Use these variables to override the choices made by `configure' or to help
1621 it to find libraries and programs with nonstandard names/locations.
1622
1623 Report bugs to <llvmbugs@cs.uiuc.edu>.
1624 _ACEOF
1625 ac_status=$?
1626 fi
1627
1628 if test "$ac_init_help" = "recursive"; then
1629   # If there are subdirs, report their specific --help.
1630   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631     test -d "$ac_dir" || continue
1632     ac_builddir=.
1633
1634 case "$ac_dir" in
1635 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 *)
1637   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1638   # A ".." for each directory in $ac_dir_suffix.
1639   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1640   case $ac_top_builddir_sub in
1641   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1643   esac ;;
1644 esac
1645 ac_abs_top_builddir=$ac_pwd
1646 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1647 # for backward compatibility:
1648 ac_top_builddir=$ac_top_build_prefix
1649
1650 case $srcdir in
1651   .)  # We are building in place.
1652     ac_srcdir=.
1653     ac_top_srcdir=$ac_top_builddir_sub
1654     ac_abs_top_srcdir=$ac_pwd ;;
1655   [\\/]* | ?:[\\/]* )  # Absolute name.
1656     ac_srcdir=$srcdir$ac_dir_suffix;
1657     ac_top_srcdir=$srcdir
1658     ac_abs_top_srcdir=$srcdir ;;
1659   *) # Relative name.
1660     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1661     ac_top_srcdir=$ac_top_build_prefix$srcdir
1662     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1663 esac
1664 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1665
1666     cd "$ac_dir" || { ac_status=$?; continue; }
1667     # Check for guested configure.
1668     if test -f "$ac_srcdir/configure.gnu"; then
1669       echo &&
1670       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1671     elif test -f "$ac_srcdir/configure"; then
1672       echo &&
1673       $SHELL "$ac_srcdir/configure" --help=recursive
1674     else
1675       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1676     fi || ac_status=$?
1677     cd "$ac_pwd" || { ac_status=$?; break; }
1678   done
1679 fi
1680
1681 test -n "$ac_init_help" && exit $ac_status
1682 if $ac_init_version; then
1683   cat <<\_ACEOF
1684 llvm configure 2.5svn
1685 generated by GNU Autoconf 2.61
1686
1687 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1688 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1689 This configure script is free software; the Free Software Foundation
1690 gives unlimited permission to copy, distribute and modify it.
1691
1692 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1693 _ACEOF
1694   exit
1695 fi
1696 cat >config.log <<_ACEOF
1697 This file contains any messages produced by compilers while
1698 running configure, to aid debugging if configure makes a mistake.
1699
1700 It was created by llvm $as_me 2.5svn, which was
1701 generated by GNU Autoconf 2.61.  Invocation command line was
1702
1703   $ $0 $@
1704
1705 _ACEOF
1706 exec 5>>config.log
1707 {
1708 cat <<_ASUNAME
1709 ## --------- ##
1710 ## Platform. ##
1711 ## --------- ##
1712
1713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1718
1719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1720 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1721
1722 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1723 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1725 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1726 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1727 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1728 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1729
1730 _ASUNAME
1731
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1734 do
1735   IFS=$as_save_IFS
1736   test -z "$as_dir" && as_dir=.
1737   echo "PATH: $as_dir"
1738 done
1739 IFS=$as_save_IFS
1740
1741 } >&5
1742
1743 cat >&5 <<_ACEOF
1744
1745
1746 ## ----------- ##
1747 ## Core tests. ##
1748 ## ----------- ##
1749
1750 _ACEOF
1751
1752
1753 # Keep a trace of the command line.
1754 # Strip out --no-create and --no-recursion so they do not pile up.
1755 # Strip out --silent because we don't want to record it for future runs.
1756 # Also quote any args containing shell meta-characters.
1757 # Make two passes to allow for proper duplicate-argument suppression.
1758 ac_configure_args=
1759 ac_configure_args0=
1760 ac_configure_args1=
1761 ac_must_keep_next=false
1762 for ac_pass in 1 2
1763 do
1764   for ac_arg
1765   do
1766     case $ac_arg in
1767     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1768     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1769     | -silent | --silent | --silen | --sile | --sil)
1770       continue ;;
1771     *\'*)
1772       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1773     esac
1774     case $ac_pass in
1775     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1776     2)
1777       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1778       if test $ac_must_keep_next = true; then
1779         ac_must_keep_next=false # Got value, back to normal.
1780       else
1781         case $ac_arg in
1782           *=* | --config-cache | -C | -disable-* | --disable-* \
1783           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1784           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1785           | -with-* | --with-* | -without-* | --without-* | --x)
1786             case "$ac_configure_args0 " in
1787               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1788             esac
1789             ;;
1790           -* ) ac_must_keep_next=true ;;
1791         esac
1792       fi
1793       ac_configure_args="$ac_configure_args '$ac_arg'"
1794       ;;
1795     esac
1796   done
1797 done
1798 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1799 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1800
1801 # When interrupted or exit'd, cleanup temporary files, and complete
1802 # config.log.  We remove comments because anyway the quotes in there
1803 # would cause problems or look ugly.
1804 # WARNING: Use '\'' to represent an apostrophe within the trap.
1805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1806 trap 'exit_status=$?
1807   # Save into config.log some information that might help in debugging.
1808   {
1809     echo
1810
1811     cat <<\_ASBOX
1812 ## ---------------- ##
1813 ## Cache variables. ##
1814 ## ---------------- ##
1815 _ASBOX
1816     echo
1817     # The following way of writing the cache mishandles newlines in values,
1818 (
1819   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1820     eval ac_val=\$$ac_var
1821     case $ac_val in #(
1822     *${as_nl}*)
1823       case $ac_var in #(
1824       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1825 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1826       esac
1827       case $ac_var in #(
1828       _ | IFS | as_nl) ;; #(
1829       *) $as_unset $ac_var ;;
1830       esac ;;
1831     esac
1832   done
1833   (set) 2>&1 |
1834     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1835     *${as_nl}ac_space=\ *)
1836       sed -n \
1837         "s/'\''/'\''\\\\'\'''\''/g;
1838           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1839       ;; #(
1840     *)
1841       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1842       ;;
1843     esac |
1844     sort
1845 )
1846     echo
1847
1848     cat <<\_ASBOX
1849 ## ----------------- ##
1850 ## Output variables. ##
1851 ## ----------------- ##
1852 _ASBOX
1853     echo
1854     for ac_var in $ac_subst_vars
1855     do
1856       eval ac_val=\$$ac_var
1857       case $ac_val in
1858       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859       esac
1860       echo "$ac_var='\''$ac_val'\''"
1861     done | sort
1862     echo
1863
1864     if test -n "$ac_subst_files"; then
1865       cat <<\_ASBOX
1866 ## ------------------- ##
1867 ## File substitutions. ##
1868 ## ------------------- ##
1869 _ASBOX
1870       echo
1871       for ac_var in $ac_subst_files
1872       do
1873         eval ac_val=\$$ac_var
1874         case $ac_val in
1875         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876         esac
1877         echo "$ac_var='\''$ac_val'\''"
1878       done | sort
1879       echo
1880     fi
1881
1882     if test -s confdefs.h; then
1883       cat <<\_ASBOX
1884 ## ----------- ##
1885 ## confdefs.h. ##
1886 ## ----------- ##
1887 _ASBOX
1888       echo
1889       cat confdefs.h
1890       echo
1891     fi
1892     test "$ac_signal" != 0 &&
1893       echo "$as_me: caught signal $ac_signal"
1894     echo "$as_me: exit $exit_status"
1895   } >&5
1896   rm -f core *.core core.conftest.* &&
1897     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1898     exit $exit_status
1899 ' 0
1900 for ac_signal in 1 2 13 15; do
1901   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1902 done
1903 ac_signal=0
1904
1905 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1906 rm -f -r conftest* confdefs.h
1907
1908 # Predefined preprocessor variables.
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_NAME "$PACKAGE_NAME"
1912 _ACEOF
1913
1914
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1917 _ACEOF
1918
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1922 _ACEOF
1923
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_STRING "$PACKAGE_STRING"
1927 _ACEOF
1928
1929
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1932 _ACEOF
1933
1934
1935 # Let the site file select an alternate cache file if it wants to.
1936 # Prefer explicitly selected file to automatically selected ones.
1937 if test -n "$CONFIG_SITE"; then
1938   set x "$CONFIG_SITE"
1939 elif test "x$prefix" != xNONE; then
1940   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1941 else
1942   set x "$ac_default_prefix/share/config.site" \
1943         "$ac_default_prefix/etc/config.site"
1944 fi
1945 shift
1946 for ac_site_file
1947 do
1948   if test -r "$ac_site_file"; then
1949     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1950 echo "$as_me: loading site script $ac_site_file" >&6;}
1951     sed 's/^/| /' "$ac_site_file" >&5
1952     . "$ac_site_file"
1953   fi
1954 done
1955
1956 if test -r "$cache_file"; then
1957   # Some versions of bash will fail to source /dev/null (special
1958   # files actually), so we avoid doing that.
1959   if test -f "$cache_file"; then
1960     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1961 echo "$as_me: loading cache $cache_file" >&6;}
1962     case $cache_file in
1963       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1964       *)                      . "./$cache_file";;
1965     esac
1966   fi
1967 else
1968   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1969 echo "$as_me: creating cache $cache_file" >&6;}
1970   >$cache_file
1971 fi
1972
1973 # Check that the precious variables saved in the cache have kept the same
1974 # value.
1975 ac_cache_corrupted=false
1976 for ac_var in $ac_precious_vars; do
1977   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1978   eval ac_new_set=\$ac_env_${ac_var}_set
1979   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1980   eval ac_new_val=\$ac_env_${ac_var}_value
1981   case $ac_old_set,$ac_new_set in
1982     set,)
1983       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1984 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1985       ac_cache_corrupted=: ;;
1986     ,set)
1987       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1988 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1989       ac_cache_corrupted=: ;;
1990     ,);;
1991     *)
1992       if test "x$ac_old_val" != "x$ac_new_val"; then
1993         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1994 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1995         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1996 echo "$as_me:   former value:  $ac_old_val" >&2;}
1997         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1998 echo "$as_me:   current value: $ac_new_val" >&2;}
1999         ac_cache_corrupted=:
2000       fi;;
2001   esac
2002   # Pass precious variables to config.status.
2003   if test "$ac_new_set" = set; then
2004     case $ac_new_val in
2005     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2006     *) ac_arg=$ac_var=$ac_new_val ;;
2007     esac
2008     case " $ac_configure_args " in
2009       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2010       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2011     esac
2012   fi
2013 done
2014 if $ac_cache_corrupted; then
2015   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019    { (exit 1); exit 1; }; }
2020 fi
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046 ac_ext=c
2047 ac_cpp='$CPP $CPPFLAGS'
2048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051
2052
2053
2054 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2055
2056
2057
2058
2059
2060
2061
2062 ac_aux_dir=
2063 for ac_dir in autoconf "$srcdir"/autoconf; do
2064   if test -f "$ac_dir/install-sh"; then
2065     ac_aux_dir=$ac_dir
2066     ac_install_sh="$ac_aux_dir/install-sh -c"
2067     break
2068   elif test -f "$ac_dir/install.sh"; then
2069     ac_aux_dir=$ac_dir
2070     ac_install_sh="$ac_aux_dir/install.sh -c"
2071     break
2072   elif test -f "$ac_dir/shtool"; then
2073     ac_aux_dir=$ac_dir
2074     ac_install_sh="$ac_aux_dir/shtool install -c"
2075     break
2076   fi
2077 done
2078 if test -z "$ac_aux_dir"; then
2079   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2080 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2081    { (exit 1); exit 1; }; }
2082 fi
2083
2084 # These three variables are undocumented and unsupported,
2085 # and are intended to be withdrawn in a future Autoconf release.
2086 # They can cause serious problems if a builder's source tree is in a directory
2087 # whose full name contains unusual characters.
2088 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2089 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2090 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2091
2092
2093
2094 if test ${srcdir} != "." ; then
2095   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2096     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2097 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2098    { (exit 1); exit 1; }; }
2099   fi
2100 fi
2101
2102 for i in `ls ${srcdir}/projects`
2103 do
2104   if test -d ${srcdir}/projects/${i} ; then
2105     case ${i} in
2106       CVS) ;;
2107       sample)       subdirs="$subdirs projects/sample"
2108     ;;
2109       privbracket)  subdirs="$subdirs projects/privbracket"
2110  ;;
2111       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2112  ;;
2113       # llvm-test is the old name of the test-suite, kept here for backwards
2114       # compatibility
2115       llvm-test)    subdirs="$subdirs projects/llvm-test"
2116  ;;
2117       test-suite)   subdirs="$subdirs projects/test-suite"
2118  ;;
2119       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2120 ;;
2121       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2122   ;;
2123       llvm-java)    subdirs="$subdirs projects/llvm-java"
2124  ;;
2125       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2126    ;;
2127       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2128  ;;
2129       poolalloc)    subdirs="$subdirs projects/poolalloc"
2130  ;;
2131       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2132  ;;
2133       *)
2134         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2135 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2136         ;;
2137     esac
2138   fi
2139 done
2140
2141
2142 # Make sure we can run config.sub.
2143 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2144   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2145 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2146    { (exit 1); exit 1; }; }
2147
2148 { echo "$as_me:$LINENO: checking build system type" >&5
2149 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2150 if test "${ac_cv_build+set}" = set; then
2151   echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153   ac_build_alias=$build_alias
2154 test "x$ac_build_alias" = x &&
2155   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2156 test "x$ac_build_alias" = x &&
2157   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2158 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2159    { (exit 1); exit 1; }; }
2160 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2161   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2162 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2163    { (exit 1); exit 1; }; }
2164
2165 fi
2166 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2167 echo "${ECHO_T}$ac_cv_build" >&6; }
2168 case $ac_cv_build in
2169 *-*-*) ;;
2170 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2171 echo "$as_me: error: invalid value of canonical build" >&2;}
2172    { (exit 1); exit 1; }; };;
2173 esac
2174 build=$ac_cv_build
2175 ac_save_IFS=$IFS; IFS='-'
2176 set x $ac_cv_build
2177 shift
2178 build_cpu=$1
2179 build_vendor=$2
2180 shift; shift
2181 # Remember, the first character of IFS is used to create $*,
2182 # except with old shells:
2183 build_os=$*
2184 IFS=$ac_save_IFS
2185 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2186
2187
2188 { echo "$as_me:$LINENO: checking host system type" >&5
2189 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2190 if test "${ac_cv_host+set}" = set; then
2191   echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193   if test "x$host_alias" = x; then
2194   ac_cv_host=$ac_cv_build
2195 else
2196   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2197     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2198 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2199    { (exit 1); exit 1; }; }
2200 fi
2201
2202 fi
2203 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2204 echo "${ECHO_T}$ac_cv_host" >&6; }
2205 case $ac_cv_host in
2206 *-*-*) ;;
2207 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2208 echo "$as_me: error: invalid value of canonical host" >&2;}
2209    { (exit 1); exit 1; }; };;
2210 esac
2211 host=$ac_cv_host
2212 ac_save_IFS=$IFS; IFS='-'
2213 set x $ac_cv_host
2214 shift
2215 host_cpu=$1
2216 host_vendor=$2
2217 shift; shift
2218 # Remember, the first character of IFS is used to create $*,
2219 # except with old shells:
2220 host_os=$*
2221 IFS=$ac_save_IFS
2222 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2223
2224
2225 { echo "$as_me:$LINENO: checking target system type" >&5
2226 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2227 if test "${ac_cv_target+set}" = set; then
2228   echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230   if test "x$target_alias" = x; then
2231   ac_cv_target=$ac_cv_host
2232 else
2233   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2234     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2235 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2236    { (exit 1); exit 1; }; }
2237 fi
2238
2239 fi
2240 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2241 echo "${ECHO_T}$ac_cv_target" >&6; }
2242 case $ac_cv_target in
2243 *-*-*) ;;
2244 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2245 echo "$as_me: error: invalid value of canonical target" >&2;}
2246    { (exit 1); exit 1; }; };;
2247 esac
2248 target=$ac_cv_target
2249 ac_save_IFS=$IFS; IFS='-'
2250 set x $ac_cv_target
2251 shift
2252 target_cpu=$1
2253 target_vendor=$2
2254 shift; shift
2255 # Remember, the first character of IFS is used to create $*,
2256 # except with old shells:
2257 target_os=$*
2258 IFS=$ac_save_IFS
2259 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2260
2261
2262 # The aliases save the names the user supplied, while $host etc.
2263 # will get canonicalized.
2264 test -n "$target_alias" &&
2265   test "$program_prefix$program_suffix$program_transform_name" = \
2266     NONENONEs,x,x, &&
2267   program_prefix=${target_alias}-
2268
2269 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2270 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2271 if test "${llvm_cv_os_type+set}" = set; then
2272   echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274   case $host in
2275   *-*-aix*)
2276     llvm_cv_link_all_option="-Wl,--whole-archive"
2277     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278     llvm_cv_os_type="AIX"
2279     llvm_cv_platform_type="Unix" ;;
2280   *-*-irix*)
2281     llvm_cv_link_all_option="-Wl,--whole-archive"
2282     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283     llvm_cv_os_type="IRIX"
2284     llvm_cv_platform_type="Unix" ;;
2285   *-*-cygwin*)
2286     llvm_cv_link_all_option="-Wl,--whole-archive"
2287     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288     llvm_cv_os_type="Cygwin"
2289     llvm_cv_platform_type="Unix" ;;
2290   *-*-darwin*)
2291     llvm_cv_link_all_option="-Wl,-all_load"
2292     llvm_cv_no_link_all_option="-Wl,-noall_load"
2293     llvm_cv_os_type="Darwin"
2294     llvm_cv_platform_type="Unix" ;;
2295   *-*-freebsd*)
2296     llvm_cv_link_all_option="-Wl,--whole-archive"
2297     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298     llvm_cv_os_type="FreeBSD"
2299     llvm_cv_platform_type="Unix" ;;
2300   *-*-openbsd*)
2301     llvm_cv_link_all_option="-Wl,--whole-archive"
2302     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2303     llvm_cv_os_type="OpenBSD"
2304     llvm_cv_platform_type="Unix" ;;
2305   *-*-netbsd*)
2306     llvm_cv_link_all_option="-Wl,--whole-archive"
2307     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308     llvm_cv_os_type="NetBSD"
2309     llvm_cv_platform_type="Unix" ;;
2310   *-*-dragonfly*)
2311     llvm_cv_link_all_option="-Wl,--whole-archive"
2312     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313     llvm_cv_os_type="DragonFly"
2314     llvm_cv_platform_type="Unix" ;;
2315   *-*-hpux*)
2316     llvm_cv_link_all_option="-Wl,--whole-archive"
2317     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2318     llvm_cv_os_type="HP-UX"
2319     llvm_cv_platform_type="Unix" ;;
2320   *-*-interix*)
2321     llvm_cv_link_all_option="-Wl,--whole-archive"
2322     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2323     llvm_cv_os_type="Interix"
2324     llvm_cv_platform_type="Unix" ;;
2325   *-*-linux*)
2326     llvm_cv_link_all_option="-Wl,--whole-archive"
2327     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2328     llvm_cv_os_type="Linux"
2329     llvm_cv_platform_type="Unix" ;;
2330   *-*-solaris*)
2331     llvm_cv_link_all_option="-Wl,-z,allextract"
2332     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2333     llvm_cv_os_type="SunOS"
2334     llvm_cv_platform_type="Unix" ;;
2335   *-*-win32*)
2336     llvm_cv_link_all_option="-Wl,--whole-archive"
2337     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2338     llvm_cv_os_type="Win32"
2339     llvm_cv_platform_type="Win32" ;;
2340   *-*-mingw*)
2341     llvm_cv_link_all_option="-Wl,--whole-archive"
2342     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2343     llvm_cv_os_type="MingW"
2344     llvm_cv_platform_type="Win32" ;;
2345   *)
2346     llvm_cv_link_all_option=""
2347     llvm_cv_no_link_all_option=""
2348     llvm_cv_os_type="Unknown"
2349     llvm_cv_platform_type="Unknown" ;;
2350 esac
2351 fi
2352 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2353 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2354
2355 if test "$llvm_cv_os_type" = "Unknown" ; then
2356   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2357 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2358    { (exit 1); exit 1; }; }
2359 fi
2360
2361 OS=$llvm_cv_os_type
2362
2363
2364 LINKALL=$llvm_cv_link_all_option
2365
2366 NOLINKALL=$llvm_cv_no_link_all_option
2367
2368
2369 case $llvm_cv_platform_type in
2370   Unix)
2371
2372 cat >>confdefs.h <<\_ACEOF
2373 #define LLVM_ON_UNIX 1
2374 _ACEOF
2375
2376     LLVM_ON_UNIX=1
2377
2378     LLVM_ON_WIN32=0
2379
2380     ;;
2381   Win32)
2382
2383 cat >>confdefs.h <<\_ACEOF
2384 #define LLVM_ON_WIN32 1
2385 _ACEOF
2386
2387     LLVM_ON_UNIX=0
2388
2389     LLVM_ON_WIN32=1
2390
2391     ;;
2392 esac
2393
2394 { echo "$as_me:$LINENO: checking target architecture" >&5
2395 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2396 if test "${llvm_cv_target_arch+set}" = set; then
2397   echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399   case $target in
2400   i?86-*)                 llvm_cv_target_arch="x86" ;;
2401   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2402   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2403   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2404   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2405   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2406   arm-*)                  llvm_cv_target_arch="ARM" ;;
2407   mips-*)                 llvm_cv_target_arch="Mips" ;;
2408   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2409   *)                      llvm_cv_target_arch="Unknown" ;;
2410 esac
2411 fi
2412 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2413 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2414
2415 if test "$llvm_cv_target_arch" = "Unknown" ; then
2416   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2417 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2418 fi
2419
2420 ARCH=$llvm_cv_target_arch
2421
2422
2423 ac_ext=c
2424 ac_cpp='$CPP $CPPFLAGS'
2425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2428 if test -n "$ac_tool_prefix"; then
2429   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2430 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2433 if test "${ac_cv_prog_CC+set}" = set; then
2434   echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436   if test -n "$CC"; then
2437   ac_cv_prog_CC="$CC" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2441 do
2442   IFS=$as_save_IFS
2443   test -z "$as_dir" && as_dir=.
2444   for ac_exec_ext in '' $ac_executable_extensions; do
2445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2446     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448     break 2
2449   fi
2450 done
2451 done
2452 IFS=$as_save_IFS
2453
2454 fi
2455 fi
2456 CC=$ac_cv_prog_CC
2457 if test -n "$CC"; then
2458   { echo "$as_me:$LINENO: result: $CC" >&5
2459 echo "${ECHO_T}$CC" >&6; }
2460 else
2461   { echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6; }
2463 fi
2464
2465
2466 fi
2467 if test -z "$ac_cv_prog_CC"; then
2468   ac_ct_CC=$CC
2469   # Extract the first word of "gcc", so it can be a program name with args.
2470 set dummy gcc; ac_word=$2
2471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2474   echo $ECHO_N "(cached) $ECHO_C" >&6
2475 else
2476   if test -n "$ac_ct_CC"; then
2477   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2478 else
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2481 do
2482   IFS=$as_save_IFS
2483   test -z "$as_dir" && as_dir=.
2484   for ac_exec_ext in '' $ac_executable_extensions; do
2485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2486     ac_cv_prog_ac_ct_CC="gcc"
2487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488     break 2
2489   fi
2490 done
2491 done
2492 IFS=$as_save_IFS
2493
2494 fi
2495 fi
2496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2497 if test -n "$ac_ct_CC"; then
2498   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2499 echo "${ECHO_T}$ac_ct_CC" >&6; }
2500 else
2501   { echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6; }
2503 fi
2504
2505   if test "x$ac_ct_CC" = x; then
2506     CC=""
2507   else
2508     case $cross_compiling:$ac_tool_warned in
2509 yes:)
2510 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2511 whose name does not start with the host triplet.  If you think this
2512 configuration is useful to you, please write to autoconf@gnu.org." >&5
2513 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2514 whose name does not start with the host triplet.  If you think this
2515 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2516 ac_tool_warned=yes ;;
2517 esac
2518     CC=$ac_ct_CC
2519   fi
2520 else
2521   CC="$ac_cv_prog_CC"
2522 fi
2523
2524 if test -z "$CC"; then
2525           if test -n "$ac_tool_prefix"; then
2526     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2527 set dummy ${ac_tool_prefix}cc; ac_word=$2
2528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530 if test "${ac_cv_prog_CC+set}" = set; then
2531   echo $ECHO_N "(cached) $ECHO_C" >&6
2532 else
2533   if test -n "$CC"; then
2534   ac_cv_prog_CC="$CC" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539   IFS=$as_save_IFS
2540   test -z "$as_dir" && as_dir=.
2541   for ac_exec_ext in '' $ac_executable_extensions; do
2542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543     ac_cv_prog_CC="${ac_tool_prefix}cc"
2544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545     break 2
2546   fi
2547 done
2548 done
2549 IFS=$as_save_IFS
2550
2551 fi
2552 fi
2553 CC=$ac_cv_prog_CC
2554 if test -n "$CC"; then
2555   { echo "$as_me:$LINENO: result: $CC" >&5
2556 echo "${ECHO_T}$CC" >&6; }
2557 else
2558   { echo "$as_me:$LINENO: result: no" >&5
2559 echo "${ECHO_T}no" >&6; }
2560 fi
2561
2562
2563   fi
2564 fi
2565 if test -z "$CC"; then
2566   # Extract the first word of "cc", so it can be a program name with args.
2567 set dummy cc; ac_word=$2
2568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2570 if test "${ac_cv_prog_CC+set}" = set; then
2571   echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573   if test -n "$CC"; then
2574   ac_cv_prog_CC="$CC" # Let the user override the test.
2575 else
2576   ac_prog_rejected=no
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2579 do
2580   IFS=$as_save_IFS
2581   test -z "$as_dir" && as_dir=.
2582   for ac_exec_ext in '' $ac_executable_extensions; do
2583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2585        ac_prog_rejected=yes
2586        continue
2587      fi
2588     ac_cv_prog_CC="cc"
2589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590     break 2
2591   fi
2592 done
2593 done
2594 IFS=$as_save_IFS
2595
2596 if test $ac_prog_rejected = yes; then
2597   # We found a bogon in the path, so make sure we never use it.
2598   set dummy $ac_cv_prog_CC
2599   shift
2600   if test $# != 0; then
2601     # We chose a different compiler from the bogus one.
2602     # However, it has the same basename, so the bogon will be chosen
2603     # first if we set CC to just the basename; use the full file name.
2604     shift
2605     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2606   fi
2607 fi
2608 fi
2609 fi
2610 CC=$ac_cv_prog_CC
2611 if test -n "$CC"; then
2612   { echo "$as_me:$LINENO: result: $CC" >&5
2613 echo "${ECHO_T}$CC" >&6; }
2614 else
2615   { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2617 fi
2618
2619
2620 fi
2621 if test -z "$CC"; then
2622   if test -n "$ac_tool_prefix"; then
2623   for ac_prog in cl.exe
2624   do
2625     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_CC+set}" = set; then
2630   echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632   if test -n "$CC"; then
2633   ac_cv_prog_CC="$CC" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2637 do
2638   IFS=$as_save_IFS
2639   test -z "$as_dir" && as_dir=.
2640   for ac_exec_ext in '' $ac_executable_extensions; do
2641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644     break 2
2645   fi
2646 done
2647 done
2648 IFS=$as_save_IFS
2649
2650 fi
2651 fi
2652 CC=$ac_cv_prog_CC
2653 if test -n "$CC"; then
2654   { echo "$as_me:$LINENO: result: $CC" >&5
2655 echo "${ECHO_T}$CC" >&6; }
2656 else
2657   { echo "$as_me:$LINENO: result: no" >&5
2658 echo "${ECHO_T}no" >&6; }
2659 fi
2660
2661
2662     test -n "$CC" && break
2663   done
2664 fi
2665 if test -z "$CC"; then
2666   ac_ct_CC=$CC
2667   for ac_prog in cl.exe
2668 do
2669   # Extract the first word of "$ac_prog", so it can be a program name with args.
2670 set dummy $ac_prog; ac_word=$2
2671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2674   echo $ECHO_N "(cached) $ECHO_C" >&6
2675 else
2676   if test -n "$ac_ct_CC"; then
2677   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682   IFS=$as_save_IFS
2683   test -z "$as_dir" && as_dir=.
2684   for ac_exec_ext in '' $ac_executable_extensions; do
2685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686     ac_cv_prog_ac_ct_CC="$ac_prog"
2687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688     break 2
2689   fi
2690 done
2691 done
2692 IFS=$as_save_IFS
2693
2694 fi
2695 fi
2696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2697 if test -n "$ac_ct_CC"; then
2698   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2699 echo "${ECHO_T}$ac_ct_CC" >&6; }
2700 else
2701   { echo "$as_me:$LINENO: result: no" >&5
2702 echo "${ECHO_T}no" >&6; }
2703 fi
2704
2705
2706   test -n "$ac_ct_CC" && break
2707 done
2708
2709   if test "x$ac_ct_CC" = x; then
2710     CC=""
2711   else
2712     case $cross_compiling:$ac_tool_warned in
2713 yes:)
2714 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2715 whose name does not start with the host triplet.  If you think this
2716 configuration is useful to you, please write to autoconf@gnu.org." >&5
2717 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2718 whose name does not start with the host triplet.  If you think this
2719 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2720 ac_tool_warned=yes ;;
2721 esac
2722     CC=$ac_ct_CC
2723   fi
2724 fi
2725
2726 fi
2727
2728
2729 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2730 See \`config.log' for more details." >&5
2731 echo "$as_me: error: no acceptable C compiler found in \$PATH
2732 See \`config.log' for more details." >&2;}
2733    { (exit 1); exit 1; }; }
2734
2735 # Provide some information about the compiler.
2736 echo "$as_me:$LINENO: checking for C compiler version" >&5
2737 ac_compiler=`set X $ac_compile; echo $2`
2738 { (ac_try="$ac_compiler --version >&5"
2739 case "(($ac_try" in
2740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741   *) ac_try_echo=$ac_try;;
2742 esac
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744   (eval "$ac_compiler --version >&5") 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); }
2748 { (ac_try="$ac_compiler -v >&5"
2749 case "(($ac_try" in
2750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751   *) ac_try_echo=$ac_try;;
2752 esac
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754   (eval "$ac_compiler -v >&5") 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); }
2758 { (ac_try="$ac_compiler -V >&5"
2759 case "(($ac_try" in
2760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761   *) ac_try_echo=$ac_try;;
2762 esac
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764   (eval "$ac_compiler -V >&5") 2>&5
2765   ac_status=$?
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); }
2768
2769 cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h.  */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h.  */
2775
2776 int
2777 main ()
2778 {
2779
2780   ;
2781   return 0;
2782 }
2783 _ACEOF
2784 ac_clean_files_save=$ac_clean_files
2785 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2786 # Try to create an executable without -o first, disregard a.out.
2787 # It will help us diagnose broken compilers, and finding out an intuition
2788 # of exeext.
2789 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2790 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2791 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2792 #
2793 # List of possible output files, starting from the most likely.
2794 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2795 # only as a last resort.  b.out is created by i960 compilers.
2796 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2797 #
2798 # The IRIX 6 linker writes into existing files which may not be
2799 # executable, retaining their permissions.  Remove them first so a
2800 # subsequent execution test works.
2801 ac_rmfiles=
2802 for ac_file in $ac_files
2803 do
2804   case $ac_file in
2805     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2806     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2807   esac
2808 done
2809 rm -f $ac_rmfiles
2810
2811 if { (ac_try="$ac_link_default"
2812 case "(($ac_try" in
2813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814   *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817   (eval "$ac_link_default") 2>&5
2818   ac_status=$?
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); }; then
2821   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2822 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2823 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2824 # so that the user can short-circuit this test for compilers unknown to
2825 # Autoconf.
2826 for ac_file in $ac_files ''
2827 do
2828   test -f "$ac_file" || continue
2829   case $ac_file in
2830     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2831         ;;
2832     [ab].out )
2833         # We found the default executable, but exeext='' is most
2834         # certainly right.
2835         break;;
2836     *.* )
2837         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2838         then :; else
2839            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2840         fi
2841         # We set ac_cv_exeext here because the later test for it is not
2842         # safe: cross compilers may not add the suffix if given an `-o'
2843         # argument, so we may need to know it at that point already.
2844         # Even if this section looks crufty: it has the advantage of
2845         # actually working.
2846         break;;
2847     * )
2848         break;;
2849   esac
2850 done
2851 test "$ac_cv_exeext" = no && ac_cv_exeext=
2852
2853 else
2854   ac_file=''
2855 fi
2856
2857 { echo "$as_me:$LINENO: result: $ac_file" >&5
2858 echo "${ECHO_T}$ac_file" >&6; }
2859 if test -z "$ac_file"; then
2860   echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2864 See \`config.log' for more details." >&5
2865 echo "$as_me: error: C compiler cannot create executables
2866 See \`config.log' for more details." >&2;}
2867    { (exit 77); exit 77; }; }
2868 fi
2869
2870 ac_exeext=$ac_cv_exeext
2871
2872 # Check that the compiler produces executables we can run.  If not, either
2873 # the compiler is broken, or we cross compile.
2874 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2875 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2876 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2877 # If not cross compiling, check that we can run a simple program.
2878 if test "$cross_compiling" != yes; then
2879   if { ac_try='./$ac_file'
2880   { (case "(($ac_try" in
2881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882   *) ac_try_echo=$ac_try;;
2883 esac
2884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885   (eval "$ac_try") 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }; }; then
2889     cross_compiling=no
2890   else
2891     if test "$cross_compiling" = maybe; then
2892         cross_compiling=yes
2893     else
2894         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2895 If you meant to cross compile, use \`--host'.
2896 See \`config.log' for more details." >&5
2897 echo "$as_me: error: cannot run C compiled programs.
2898 If you meant to cross compile, use \`--host'.
2899 See \`config.log' for more details." >&2;}
2900    { (exit 1); exit 1; }; }
2901     fi
2902   fi
2903 fi
2904 { echo "$as_me:$LINENO: result: yes" >&5
2905 echo "${ECHO_T}yes" >&6; }
2906
2907 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2908 ac_clean_files=$ac_clean_files_save
2909 # Check that the compiler produces executables we can run.  If not, either
2910 # the compiler is broken, or we cross compile.
2911 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2912 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2913 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2914 echo "${ECHO_T}$cross_compiling" >&6; }
2915
2916 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2917 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2918 if { (ac_try="$ac_link"
2919 case "(($ac_try" in
2920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921   *) ac_try_echo=$ac_try;;
2922 esac
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924   (eval "$ac_link") 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }; then
2928   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2929 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2930 # work properly (i.e., refer to `conftest.exe'), while it won't with
2931 # `rm'.
2932 for ac_file in conftest.exe conftest conftest.*; do
2933   test -f "$ac_file" || continue
2934   case $ac_file in
2935     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2936     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2937           break;;
2938     * ) break;;
2939   esac
2940 done
2941 else
2942   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2943 See \`config.log' for more details." >&5
2944 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2945 See \`config.log' for more details." >&2;}
2946    { (exit 1); exit 1; }; }
2947 fi
2948
2949 rm -f conftest$ac_cv_exeext
2950 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2951 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2952
2953 rm -f conftest.$ac_ext
2954 EXEEXT=$ac_cv_exeext
2955 ac_exeext=$EXEEXT
2956 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2957 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2958 if test "${ac_cv_objext+set}" = set; then
2959   echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961   cat >conftest.$ac_ext <<_ACEOF
2962 /* confdefs.h.  */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h.  */
2967
2968 int
2969 main ()
2970 {
2971
2972   ;
2973   return 0;
2974 }
2975 _ACEOF
2976 rm -f conftest.o conftest.obj
2977 if { (ac_try="$ac_compile"
2978 case "(($ac_try" in
2979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980   *) ac_try_echo=$ac_try;;
2981 esac
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983   (eval "$ac_compile") 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }; then
2987   for ac_file in conftest.o conftest.obj conftest.*; do
2988   test -f "$ac_file" || continue;
2989   case $ac_file in
2990     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2991     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2992        break;;
2993   esac
2994 done
2995 else
2996   echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2998
2999 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3000 See \`config.log' for more details." >&5
3001 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3002 See \`config.log' for more details." >&2;}
3003    { (exit 1); exit 1; }; }
3004 fi
3005
3006 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3007 fi
3008 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3009 echo "${ECHO_T}$ac_cv_objext" >&6; }
3010 OBJEXT=$ac_cv_objext
3011 ac_objext=$OBJEXT
3012 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3013 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3014 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3015   echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017   cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h.  */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h.  */
3023
3024 int
3025 main ()
3026 {
3027 #ifndef __GNUC__
3028        choke me
3029 #endif
3030
3031   ;
3032   return 0;
3033 }
3034 _ACEOF
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3037 case "(($ac_try" in
3038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039   *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042   (eval "$ac_compile") 2>conftest.er1
3043   ac_status=$?
3044   grep -v '^ *+' conftest.er1 >conftest.err
3045   rm -f conftest.er1
3046   cat conftest.err >&5
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } && {
3049          test -z "$ac_c_werror_flag" ||
3050          test ! -s conftest.err
3051        } && test -s conftest.$ac_objext; then
3052   ac_compiler_gnu=yes
3053 else
3054   echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3056
3057         ac_compiler_gnu=no
3058 fi
3059
3060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3062
3063 fi
3064 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3065 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3066 GCC=`test $ac_compiler_gnu = yes && echo yes`
3067 ac_test_CFLAGS=${CFLAGS+set}
3068 ac_save_CFLAGS=$CFLAGS
3069 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3070 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3071 if test "${ac_cv_prog_cc_g+set}" = set; then
3072   echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074   ac_save_c_werror_flag=$ac_c_werror_flag
3075    ac_c_werror_flag=yes
3076    ac_cv_prog_cc_g=no
3077    CFLAGS="-g"
3078    cat >conftest.$ac_ext <<_ACEOF
3079 /* confdefs.h.  */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h.  */
3084
3085 int
3086 main ()
3087 {
3088
3089   ;
3090   return 0;
3091 }
3092 _ACEOF
3093 rm -f conftest.$ac_objext
3094 if { (ac_try="$ac_compile"
3095 case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100   (eval "$ac_compile") 2>conftest.er1
3101   ac_status=$?
3102   grep -v '^ *+' conftest.er1 >conftest.err
3103   rm -f conftest.er1
3104   cat conftest.err >&5
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); } && {
3107          test -z "$ac_c_werror_flag" ||
3108          test ! -s conftest.err
3109        } && test -s conftest.$ac_objext; then
3110   ac_cv_prog_cc_g=yes
3111 else
3112   echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115         CFLAGS=""
3116       cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122
3123 int
3124 main ()
3125 {
3126
3127   ;
3128   return 0;
3129 }
3130 _ACEOF
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3133 case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138   (eval "$ac_compile") 2>conftest.er1
3139   ac_status=$?
3140   grep -v '^ *+' conftest.er1 >conftest.err
3141   rm -f conftest.er1
3142   cat conftest.err >&5
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } && {
3145          test -z "$ac_c_werror_flag" ||
3146          test ! -s conftest.err
3147        } && test -s conftest.$ac_objext; then
3148   :
3149 else
3150   echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3152
3153         ac_c_werror_flag=$ac_save_c_werror_flag
3154          CFLAGS="-g"
3155          cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h.  */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h.  */
3161
3162 int
3163 main ()
3164 {
3165
3166   ;
3167   return 0;
3168 }
3169 _ACEOF
3170 rm -f conftest.$ac_objext
3171 if { (ac_try="$ac_compile"
3172 case "(($ac_try" in
3173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174   *) ac_try_echo=$ac_try;;
3175 esac
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177   (eval "$ac_compile") 2>conftest.er1
3178   ac_status=$?
3179   grep -v '^ *+' conftest.er1 >conftest.err
3180   rm -f conftest.er1
3181   cat conftest.err >&5
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); } && {
3184          test -z "$ac_c_werror_flag" ||
3185          test ! -s conftest.err
3186        } && test -s conftest.$ac_objext; then
3187   ac_cv_prog_cc_g=yes
3188 else
3189   echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3191
3192
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 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202    ac_c_werror_flag=$ac_save_c_werror_flag
3203 fi
3204 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3205 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3206 if test "$ac_test_CFLAGS" = set; then
3207   CFLAGS=$ac_save_CFLAGS
3208 elif test $ac_cv_prog_cc_g = yes; then
3209   if test "$GCC" = yes; then
3210     CFLAGS="-g -O2"
3211   else
3212     CFLAGS="-g"
3213   fi
3214 else
3215   if test "$GCC" = yes; then
3216     CFLAGS="-O2"
3217   else
3218     CFLAGS=
3219   fi
3220 fi
3221 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3222 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3223 if test "${ac_cv_prog_cc_c89+set}" = set; then
3224   echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226   ac_cv_prog_cc_c89=no
3227 ac_save_CC=$CC
3228 cat >conftest.$ac_ext <<_ACEOF
3229 /* confdefs.h.  */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h.  */
3234 #include <stdarg.h>
3235 #include <stdio.h>
3236 #include <sys/types.h>
3237 #include <sys/stat.h>
3238 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3239 struct buf { int x; };
3240 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3241 static char *e (p, i)
3242      char **p;
3243      int i;
3244 {
3245   return p[i];
3246 }
3247 static char *f (char * (*g) (char **, int), char **p, ...)
3248 {
3249   char *s;
3250   va_list v;
3251   va_start (v,p);
3252   s = g (p, va_arg (v,int));
3253   va_end (v);
3254   return s;
3255 }
3256
3257 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3258    function prototypes and stuff, but not '\xHH' hex character constants.
3259    These don't provoke an error unfortunately, instead are silently treated
3260    as 'x'.  The following induces an error, until -std is added to get
3261    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3262    array size at least.  It's necessary to write '\x00'==0 to get something
3263    that's true only with -std.  */
3264 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3265
3266 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3267    inside strings and character constants.  */
3268 #define FOO(x) 'x'
3269 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3270
3271 int test (int i, double x);
3272 struct s1 {int (*f) (int a);};
3273 struct s2 {int (*f) (double a);};
3274 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3275 int argc;
3276 char **argv;
3277 int
3278 main ()
3279 {
3280 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3281   ;
3282   return 0;
3283 }
3284 _ACEOF
3285 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3286         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3287 do
3288   CC="$ac_save_CC $ac_arg"
3289   rm -f conftest.$ac_objext
3290 if { (ac_try="$ac_compile"
3291 case "(($ac_try" in
3292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293   *) ac_try_echo=$ac_try;;
3294 esac
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296   (eval "$ac_compile") 2>conftest.er1
3297   ac_status=$?
3298   grep -v '^ *+' conftest.er1 >conftest.err
3299   rm -f conftest.er1
3300   cat conftest.err >&5
3301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302   (exit $ac_status); } && {
3303          test -z "$ac_c_werror_flag" ||
3304          test ! -s conftest.err
3305        } && test -s conftest.$ac_objext; then
3306   ac_cv_prog_cc_c89=$ac_arg
3307 else
3308   echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311
3312 fi
3313
3314 rm -f core conftest.err conftest.$ac_objext
3315   test "x$ac_cv_prog_cc_c89" != "xno" && break
3316 done
3317 rm -f conftest.$ac_ext
3318 CC=$ac_save_CC
3319
3320 fi
3321 # AC_CACHE_VAL
3322 case "x$ac_cv_prog_cc_c89" in
3323   x)
3324     { echo "$as_me:$LINENO: result: none needed" >&5
3325 echo "${ECHO_T}none needed" >&6; } ;;
3326   xno)
3327     { echo "$as_me:$LINENO: result: unsupported" >&5
3328 echo "${ECHO_T}unsupported" >&6; } ;;
3329   *)
3330     CC="$CC $ac_cv_prog_cc_c89"
3331     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3332 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3333 esac
3334
3335
3336 ac_ext=c
3337 ac_cpp='$CPP $CPPFLAGS'
3338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341
3342
3343 ac_ext=c
3344 ac_cpp='$CPP $CPPFLAGS'
3345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3348 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3349 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3350 # On Suns, sometimes $CPP names a directory.
3351 if test -n "$CPP" && test -d "$CPP"; then
3352   CPP=
3353 fi
3354 if test -z "$CPP"; then
3355   if test "${ac_cv_prog_CPP+set}" = set; then
3356   echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358       # Double quotes because CPP needs to be expanded
3359     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3360     do
3361       ac_preproc_ok=false
3362 for ac_c_preproc_warn_flag in '' yes
3363 do
3364   # Use a header file that comes with gcc, so configuring glibc
3365   # with a fresh cross-compiler works.
3366   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3367   # <limits.h> exists even on freestanding compilers.
3368   # On the NeXT, cc -E runs the code through the compiler's parser,
3369   # not just through cpp. "Syntax error" is here to catch this case.
3370   cat >conftest.$ac_ext <<_ACEOF
3371 /* confdefs.h.  */
3372 _ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h.  */
3376 #ifdef __STDC__
3377 # include <limits.h>
3378 #else
3379 # include <assert.h>
3380 #endif
3381                      Syntax error
3382 _ACEOF
3383 if { (ac_try="$ac_cpp conftest.$ac_ext"
3384 case "(($ac_try" in
3385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386   *) ac_try_echo=$ac_try;;
3387 esac
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3390   ac_status=$?
3391   grep -v '^ *+' conftest.er1 >conftest.err
3392   rm -f conftest.er1
3393   cat conftest.err >&5
3394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); } >/dev/null && {
3396          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3397          test ! -s conftest.err
3398        }; then
3399   :
3400 else
3401   echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3403
3404   # Broken: fails on valid input.
3405 continue
3406 fi
3407
3408 rm -f conftest.err conftest.$ac_ext
3409
3410   # OK, works on sane cases.  Now check whether nonexistent headers
3411   # can be detected and how.
3412   cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h.  */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h.  */
3418 #include <ac_nonexistent.h>
3419 _ACEOF
3420 if { (ac_try="$ac_cpp conftest.$ac_ext"
3421 case "(($ac_try" in
3422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423   *) ac_try_echo=$ac_try;;
3424 esac
3425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3427   ac_status=$?
3428   grep -v '^ *+' conftest.er1 >conftest.err
3429   rm -f conftest.er1
3430   cat conftest.err >&5
3431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432   (exit $ac_status); } >/dev/null && {
3433          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3434          test ! -s conftest.err
3435        }; then
3436   # Broken: success on invalid input.
3437 continue
3438 else
3439   echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442   # Passes both tests.
3443 ac_preproc_ok=:
3444 break
3445 fi
3446
3447 rm -f conftest.err conftest.$ac_ext
3448
3449 done
3450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451 rm -f conftest.err conftest.$ac_ext
3452 if $ac_preproc_ok; then
3453   break
3454 fi
3455
3456     done
3457     ac_cv_prog_CPP=$CPP
3458
3459 fi
3460   CPP=$ac_cv_prog_CPP
3461 else
3462   ac_cv_prog_CPP=$CPP
3463 fi
3464 { echo "$as_me:$LINENO: result: $CPP" >&5
3465 echo "${ECHO_T}$CPP" >&6; }
3466 ac_preproc_ok=false
3467 for ac_c_preproc_warn_flag in '' yes
3468 do
3469   # Use a header file that comes with gcc, so configuring glibc
3470   # with a fresh cross-compiler works.
3471   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3472   # <limits.h> exists even on freestanding compilers.
3473   # On the NeXT, cc -E runs the code through the compiler's parser,
3474   # not just through cpp. "Syntax error" is here to catch this case.
3475   cat >conftest.$ac_ext <<_ACEOF
3476 /* confdefs.h.  */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h.  */
3481 #ifdef __STDC__
3482 # include <limits.h>
3483 #else
3484 # include <assert.h>
3485 #endif
3486                      Syntax error
3487 _ACEOF
3488 if { (ac_try="$ac_cpp conftest.$ac_ext"
3489 case "(($ac_try" in
3490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491   *) ac_try_echo=$ac_try;;
3492 esac
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3495   ac_status=$?
3496   grep -v '^ *+' conftest.er1 >conftest.err
3497   rm -f conftest.er1
3498   cat conftest.err >&5
3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); } >/dev/null && {
3501          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3502          test ! -s conftest.err
3503        }; then
3504   :
3505 else
3506   echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3508
3509   # Broken: fails on valid input.
3510 continue
3511 fi
3512
3513 rm -f conftest.err conftest.$ac_ext
3514
3515   # OK, works on sane cases.  Now check whether nonexistent headers
3516   # can be detected and how.
3517   cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h.  */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h.  */
3523 #include <ac_nonexistent.h>
3524 _ACEOF
3525 if { (ac_try="$ac_cpp conftest.$ac_ext"
3526 case "(($ac_try" in
3527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528   *) ac_try_echo=$ac_try;;
3529 esac
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3532   ac_status=$?
3533   grep -v '^ *+' conftest.er1 >conftest.err
3534   rm -f conftest.er1
3535   cat conftest.err >&5
3536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537   (exit $ac_status); } >/dev/null && {
3538          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3539          test ! -s conftest.err
3540        }; then
3541   # Broken: success on invalid input.
3542 continue
3543 else
3544   echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547   # Passes both tests.
3548 ac_preproc_ok=:
3549 break
3550 fi
3551
3552 rm -f conftest.err conftest.$ac_ext
3553
3554 done
3555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3556 rm -f conftest.err conftest.$ac_ext
3557 if $ac_preproc_ok; then
3558   :
3559 else
3560   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3561 See \`config.log' for more details." >&5
3562 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3563 See \`config.log' for more details." >&2;}
3564    { (exit 1); exit 1; }; }
3565 fi
3566
3567 ac_ext=c
3568 ac_cpp='$CPP $CPPFLAGS'
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572
3573
3574 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3575 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3576 if test "${ac_cv_path_GREP+set}" = set; then
3577   echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579   # Extract the first word of "grep ggrep" to use in msg output
3580 if test -z "$GREP"; then
3581 set dummy grep ggrep; ac_prog_name=$2
3582 if test "${ac_cv_path_GREP+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   ac_path_GREP_found=false
3586 # Loop through the user's path and test for each of PROGNAME-LIST
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3589 do
3590   IFS=$as_save_IFS
3591   test -z "$as_dir" && as_dir=.
3592   for ac_prog in grep ggrep; do
3593   for ac_exec_ext in '' $ac_executable_extensions; do
3594     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3595     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3596     # Check for GNU ac_path_GREP and select it if it is found.
3597   # Check for GNU $ac_path_GREP
3598 case `"$ac_path_GREP" --version 2>&1` in
3599 *GNU*)
3600   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3601 *)
3602   ac_count=0
3603   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3604   while :
3605   do
3606     cat "conftest.in" "conftest.in" >"conftest.tmp"
3607     mv "conftest.tmp" "conftest.in"
3608     cp "conftest.in" "conftest.nl"
3609     echo 'GREP' >> "conftest.nl"
3610     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3611     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3612     ac_count=`expr $ac_count + 1`
3613     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3614       # Best one so far, save it but keep looking for a better one
3615       ac_cv_path_GREP="$ac_path_GREP"
3616       ac_path_GREP_max=$ac_count
3617     fi
3618     # 10*(2^10) chars as input seems more than enough
3619     test $ac_count -gt 10 && break
3620   done
3621   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3622 esac
3623
3624
3625     $ac_path_GREP_found && break 3
3626   done
3627 done
3628
3629 done
3630 IFS=$as_save_IFS
3631
3632
3633 fi
3634
3635 GREP="$ac_cv_path_GREP"
3636 if test -z "$GREP"; then
3637   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3638 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3639    { (exit 1); exit 1; }; }
3640 fi
3641
3642 else
3643   ac_cv_path_GREP=$GREP
3644 fi
3645
3646
3647 fi
3648 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3649 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3650  GREP="$ac_cv_path_GREP"
3651
3652
3653 { echo "$as_me:$LINENO: checking for egrep" >&5
3654 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3655 if test "${ac_cv_path_EGREP+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3659    then ac_cv_path_EGREP="$GREP -E"
3660    else
3661      # Extract the first word of "egrep" to use in msg output
3662 if test -z "$EGREP"; then
3663 set dummy egrep; ac_prog_name=$2
3664 if test "${ac_cv_path_EGREP+set}" = set; then
3665   echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667   ac_path_EGREP_found=false
3668 # Loop through the user's path and test for each of PROGNAME-LIST
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3671 do
3672   IFS=$as_save_IFS
3673   test -z "$as_dir" && as_dir=.
3674   for ac_prog in egrep; do
3675   for ac_exec_ext in '' $ac_executable_extensions; do
3676     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3677     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3678     # Check for GNU ac_path_EGREP and select it if it is found.
3679   # Check for GNU $ac_path_EGREP
3680 case `"$ac_path_EGREP" --version 2>&1` in
3681 *GNU*)
3682   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3683 *)
3684   ac_count=0
3685   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3686   while :
3687   do
3688     cat "conftest.in" "conftest.in" >"conftest.tmp"
3689     mv "conftest.tmp" "conftest.in"
3690     cp "conftest.in" "conftest.nl"
3691     echo 'EGREP' >> "conftest.nl"
3692     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3693     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3694     ac_count=`expr $ac_count + 1`
3695     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3696       # Best one so far, save it but keep looking for a better one
3697       ac_cv_path_EGREP="$ac_path_EGREP"
3698       ac_path_EGREP_max=$ac_count
3699     fi
3700     # 10*(2^10) chars as input seems more than enough
3701     test $ac_count -gt 10 && break
3702   done
3703   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3704 esac
3705
3706
3707     $ac_path_EGREP_found && break 3
3708   done
3709 done
3710
3711 done
3712 IFS=$as_save_IFS
3713
3714
3715 fi
3716
3717 EGREP="$ac_cv_path_EGREP"
3718 if test -z "$EGREP"; then
3719   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3720 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3721    { (exit 1); exit 1; }; }
3722 fi
3723
3724 else
3725   ac_cv_path_EGREP=$EGREP
3726 fi
3727
3728
3729    fi
3730 fi
3731 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3732 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3733  EGREP="$ac_cv_path_EGREP"
3734
3735
3736 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3737 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3738 if test "${ac_cv_header_stdc+set}" = set; then
3739   echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741   cat >conftest.$ac_ext <<_ACEOF
3742 /* confdefs.h.  */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h.  */
3747 #include <stdlib.h>
3748 #include <stdarg.h>
3749 #include <string.h>
3750 #include <float.h>
3751
3752 int
3753 main ()
3754 {
3755
3756   ;
3757   return 0;
3758 }
3759 _ACEOF
3760 rm -f conftest.$ac_objext
3761 if { (ac_try="$ac_compile"
3762 case "(($ac_try" in
3763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764   *) ac_try_echo=$ac_try;;
3765 esac
3766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3767   (eval "$ac_compile") 2>conftest.er1
3768   ac_status=$?
3769   grep -v '^ *+' conftest.er1 >conftest.err
3770   rm -f conftest.er1
3771   cat conftest.err >&5
3772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773   (exit $ac_status); } && {
3774          test -z "$ac_c_werror_flag" ||
3775          test ! -s conftest.err
3776        } && test -s conftest.$ac_objext; then
3777   ac_cv_header_stdc=yes
3778 else
3779   echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3781
3782         ac_cv_header_stdc=no
3783 fi
3784
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786
3787 if test $ac_cv_header_stdc = yes; then
3788   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3789   cat >conftest.$ac_ext <<_ACEOF
3790 /* confdefs.h.  */
3791 _ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h.  */
3795 #include <string.h>
3796
3797 _ACEOF
3798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3799   $EGREP "memchr" >/dev/null 2>&1; then
3800   :
3801 else
3802   ac_cv_header_stdc=no
3803 fi
3804 rm -f conftest*
3805
3806 fi
3807
3808 if test $ac_cv_header_stdc = yes; then
3809   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3810   cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h.  */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h.  */
3816 #include <stdlib.h>
3817
3818 _ACEOF
3819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3820   $EGREP "free" >/dev/null 2>&1; then
3821   :
3822 else
3823   ac_cv_header_stdc=no
3824 fi
3825 rm -f conftest*
3826
3827 fi
3828
3829 if test $ac_cv_header_stdc = yes; then
3830   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3831   if test "$cross_compiling" = yes; then
3832   :
3833 else
3834   cat >conftest.$ac_ext <<_ACEOF
3835 /* confdefs.h.  */
3836 _ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h.  */
3840 #include <ctype.h>
3841 #include <stdlib.h>
3842 #if ((' ' & 0x0FF) == 0x020)
3843 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3844 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3845 #else
3846 # define ISLOWER(c) \
3847                    (('a' <= (c) && (c) <= 'i') \
3848                      || ('j' <= (c) && (c) <= 'r') \
3849                      || ('s' <= (c) && (c) <= 'z'))
3850 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3851 #endif
3852
3853 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3854 int
3855 main ()
3856 {
3857   int i;
3858   for (i = 0; i < 256; i++)
3859     if (XOR (islower (i), ISLOWER (i))
3860         || toupper (i) != TOUPPER (i))
3861       return 2;
3862   return 0;
3863 }
3864 _ACEOF
3865 rm -f conftest$ac_exeext
3866 if { (ac_try="$ac_link"
3867 case "(($ac_try" in
3868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869   *) ac_try_echo=$ac_try;;
3870 esac
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872   (eval "$ac_link") 2>&5
3873   ac_status=$?
3874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3876   { (case "(($ac_try" in
3877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878   *) ac_try_echo=$ac_try;;
3879 esac
3880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881   (eval "$ac_try") 2>&5
3882   ac_status=$?
3883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884   (exit $ac_status); }; }; then
3885   :
3886 else
3887   echo "$as_me: program exited with status $ac_status" >&5
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3890
3891 ( exit $ac_status )
3892 ac_cv_header_stdc=no
3893 fi
3894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3895 fi
3896
3897
3898 fi
3899 fi
3900 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3901 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3902 if test $ac_cv_header_stdc = yes; then
3903
3904 cat >>confdefs.h <<\_ACEOF
3905 #define STDC_HEADERS 1
3906 _ACEOF
3907
3908 fi
3909
3910 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3921                   inttypes.h stdint.h unistd.h
3922 do
3923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3927   echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929   cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h.  */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h.  */
3935 $ac_includes_default
3936
3937 #include <$ac_header>
3938 _ACEOF
3939 rm -f conftest.$ac_objext
3940 if { (ac_try="$ac_compile"
3941 case "(($ac_try" in
3942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943   *) ac_try_echo=$ac_try;;
3944 esac
3945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3946   (eval "$ac_compile") 2>conftest.er1
3947   ac_status=$?
3948   grep -v '^ *+' conftest.er1 >conftest.err
3949   rm -f conftest.er1
3950   cat conftest.err >&5
3951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952   (exit $ac_status); } && {
3953          test -z "$ac_c_werror_flag" ||
3954          test ! -s conftest.err
3955        } && test -s conftest.$ac_objext; then
3956   eval "$as_ac_Header=yes"
3957 else
3958   echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3960
3961         eval "$as_ac_Header=no"
3962 fi
3963
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 fi
3966 ac_res=`eval echo '${'$as_ac_Header'}'`
3967                { echo "$as_me:$LINENO: result: $ac_res" >&5
3968 echo "${ECHO_T}$ac_res" >&6; }
3969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3970   cat >>confdefs.h <<_ACEOF
3971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3972 _ACEOF
3973
3974 fi
3975
3976 done
3977
3978
3979 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3980 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3981 if test "${ac_cv_c_bigendian+set}" = set; then
3982   echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984   # See if sys/param.h defines the BYTE_ORDER macro.
3985 cat >conftest.$ac_ext <<_ACEOF
3986 /* confdefs.h.  */
3987 _ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h.  */
3991 #include <sys/types.h>
3992 #include <sys/param.h>
3993
3994 int
3995 main ()
3996 {
3997 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3998         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3999  bogus endian macros
4000 #endif
4001
4002   ;
4003   return 0;
4004 }
4005 _ACEOF
4006 rm -f conftest.$ac_objext
4007 if { (ac_try="$ac_compile"
4008 case "(($ac_try" in
4009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010   *) ac_try_echo=$ac_try;;
4011 esac
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013   (eval "$ac_compile") 2>conftest.er1
4014   ac_status=$?
4015   grep -v '^ *+' conftest.er1 >conftest.err
4016   rm -f conftest.er1
4017   cat conftest.err >&5
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); } && {
4020          test -z "$ac_c_werror_flag" ||
4021          test ! -s conftest.err
4022        } && test -s conftest.$ac_objext; then
4023   # It does; now see whether it defined to BIG_ENDIAN or not.
4024 cat >conftest.$ac_ext <<_ACEOF
4025 /* confdefs.h.  */
4026 _ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h.  */
4030 #include <sys/types.h>
4031 #include <sys/param.h>
4032
4033 int
4034 main ()
4035 {
4036 #if BYTE_ORDER != BIG_ENDIAN
4037  not big endian
4038 #endif
4039
4040   ;
4041   return 0;
4042 }
4043 _ACEOF
4044 rm -f conftest.$ac_objext
4045 if { (ac_try="$ac_compile"
4046 case "(($ac_try" in
4047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048   *) ac_try_echo=$ac_try;;
4049 esac
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051   (eval "$ac_compile") 2>conftest.er1
4052   ac_status=$?
4053   grep -v '^ *+' conftest.er1 >conftest.err
4054   rm -f conftest.er1
4055   cat conftest.err >&5
4056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057   (exit $ac_status); } && {
4058          test -z "$ac_c_werror_flag" ||
4059          test ! -s conftest.err
4060        } && test -s conftest.$ac_objext; then
4061   ac_cv_c_bigendian=yes
4062 else
4063   echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4065
4066         ac_cv_c_bigendian=no
4067 fi
4068
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 else
4071   echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4073
4074         # It does not; compile a test program.
4075 if test "$cross_compiling" = yes; then
4076   # try to guess the endianness by grepping values into an object file
4077   ac_cv_c_bigendian=unknown
4078   cat >conftest.$ac_ext <<_ACEOF
4079 /* confdefs.h.  */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h.  */
4084 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4085 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4086 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4087 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4088 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4089 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4090 int
4091 main ()
4092 {
4093  _ascii (); _ebcdic ();
4094   ;
4095   return 0;
4096 }
4097 _ACEOF
4098 rm -f conftest.$ac_objext
4099 if { (ac_try="$ac_compile"
4100 case "(($ac_try" in
4101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102   *) ac_try_echo=$ac_try;;
4103 esac
4104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4105   (eval "$ac_compile") 2>conftest.er1
4106   ac_status=$?
4107   grep -v '^ *+' conftest.er1 >conftest.err
4108   rm -f conftest.er1
4109   cat conftest.err >&5
4110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111   (exit $ac_status); } && {
4112          test -z "$ac_c_werror_flag" ||
4113          test ! -s conftest.err
4114        } && test -s conftest.$ac_objext; then
4115   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4116   ac_cv_c_bigendian=yes
4117 fi
4118 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4119   if test "$ac_cv_c_bigendian" = unknown; then
4120     ac_cv_c_bigendian=no
4121   else
4122     # finding both strings is unlikely to happen, but who knows?
4123     ac_cv_c_bigendian=unknown
4124   fi
4125 fi
4126 else
4127   echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4129
4130
4131 fi
4132
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 else
4135   cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h.  */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h.  */
4141 $ac_includes_default
4142 int
4143 main ()
4144 {
4145
4146   /* Are we little or big endian?  From Harbison&Steele.  */
4147   union
4148   {
4149     long int l;
4150     char c[sizeof (long int)];
4151   } u;
4152   u.l = 1;
4153   return u.c[sizeof (long int) - 1] == 1;
4154
4155   ;
4156   return 0;
4157 }
4158 _ACEOF
4159 rm -f conftest$ac_exeext
4160 if { (ac_try="$ac_link"
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_link") 2>&5
4167   ac_status=$?
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4170   { (case "(($ac_try" in
4171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172   *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175   (eval "$ac_try") 2>&5
4176   ac_status=$?
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); }; }; then
4179   ac_cv_c_bigendian=no
4180 else
4181   echo "$as_me: program exited with status $ac_status" >&5
4182 echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4184
4185 ( exit $ac_status )
4186 ac_cv_c_bigendian=yes
4187 fi
4188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4189 fi
4190
4191
4192 fi
4193
4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195 fi
4196 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4197 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4198 case $ac_cv_c_bigendian in
4199   yes)
4200     ENDIAN=big
4201  ;;
4202   no)
4203     ENDIAN=little
4204  ;;
4205   *)
4206     { { echo "$as_me:$LINENO: error: unknown endianness
4207 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4208 echo "$as_me: error: unknown endianness
4209 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4210    { (exit 1); exit 1; }; } ;;
4211 esac
4212
4213
4214 if test "$cross_compiling" = yes; then
4215   LLVM_CROSS_COMPILING=1
4216
4217
4218 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4219 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4220 if test "${ac_cv_build_exeext+set}" = set; then
4221   echo $ECHO_N "(cached) $ECHO_C" >&6
4222 else
4223   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4224   ac_cv_build_exeext=.exe
4225 else
4226   ac_build_prefix=${build_alias}-
4227
4228   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4229 set dummy ${ac_build_prefix}gcc; ac_word=$2
4230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4232 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4233   echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235   if test -n "$BUILD_CC"; then
4236   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4237 else
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241   IFS=$as_save_IFS
4242   test -z "$as_dir" && as_dir=.
4243   for ac_exec_ext in '' $ac_executable_extensions; do
4244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4247     break 2
4248   fi
4249 done
4250 done
4251 IFS=$as_save_IFS
4252
4253 fi
4254 fi
4255 BUILD_CC=$ac_cv_prog_BUILD_CC
4256 if test -n "$BUILD_CC"; then
4257   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4258 echo "${ECHO_T}$BUILD_CC" >&6; }
4259 else
4260   { echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6; }
4262 fi
4263
4264
4265   if test -z "$BUILD_CC"; then
4266      # Extract the first word of "gcc", so it can be a program name with args.
4267 set dummy gcc; ac_word=$2
4268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4270 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4271   echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273   if test -n "$BUILD_CC"; then
4274   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4275 else
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4278 do
4279   IFS=$as_save_IFS
4280   test -z "$as_dir" && as_dir=.
4281   for ac_exec_ext in '' $ac_executable_extensions; do
4282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283     ac_cv_prog_BUILD_CC="gcc"
4284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285     break 2
4286   fi
4287 done
4288 done
4289 IFS=$as_save_IFS
4290
4291 fi
4292 fi
4293 BUILD_CC=$ac_cv_prog_BUILD_CC
4294 if test -n "$BUILD_CC"; then
4295   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4296 echo "${ECHO_T}$BUILD_CC" >&6; }
4297 else
4298   { echo "$as_me:$LINENO: result: no" >&5
4299 echo "${ECHO_T}no" >&6; }
4300 fi
4301
4302
4303      if test -z "$BUILD_CC"; then
4304        # Extract the first word of "cc", so it can be a program name with args.
4305 set dummy cc; ac_word=$2
4306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4308 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4309   echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311   if test -n "$BUILD_CC"; then
4312   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4313 else
4314   ac_prog_rejected=no
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318   IFS=$as_save_IFS
4319   test -z "$as_dir" && as_dir=.
4320   for ac_exec_ext in '' $ac_executable_extensions; do
4321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4323        ac_prog_rejected=yes
4324        continue
4325      fi
4326     ac_cv_prog_BUILD_CC="cc"
4327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328     break 2
4329   fi
4330 done
4331 done
4332 IFS=$as_save_IFS
4333
4334 if test $ac_prog_rejected = yes; then
4335   # We found a bogon in the path, so make sure we never use it.
4336   set dummy $ac_cv_prog_BUILD_CC
4337   shift
4338   if test $# != 0; then
4339     # We chose a different compiler from the bogus one.
4340     # However, it has the same basename, so the bogon will be chosen
4341     # first if we set BUILD_CC to just the basename; use the full file name.
4342     shift
4343     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4344   fi
4345 fi
4346 fi
4347 fi
4348 BUILD_CC=$ac_cv_prog_BUILD_CC
4349 if test -n "$BUILD_CC"; then
4350   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4351 echo "${ECHO_T}$BUILD_CC" >&6; }
4352 else
4353   { echo "$as_me:$LINENO: result: no" >&5
4354 echo "${ECHO_T}no" >&6; }
4355 fi
4356
4357
4358      fi
4359   fi
4360   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4361 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4362    { (exit 1); exit 1; }; }
4363   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4364   rm -f conftest*
4365   echo 'int main () { return 0; }' > conftest.$ac_ext
4366   ac_cv_build_exeext=
4367   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4368   (eval $ac_build_link) 2>&5
4369   ac_status=$?
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); }; then
4372     for file in conftest.*; do
4373       case $file in
4374       *.c | *.o | *.obj | *.dSYM) ;;
4375       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4376       esac
4377     done
4378   else
4379     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4380 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4381    { (exit 1); exit 1; }; }
4382   fi
4383   rm -f conftest*
4384   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4385 fi
4386 fi
4387
4388 BUILD_EXEEXT=""
4389 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4390 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4391 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4392 ac_build_exeext=$BUILD_EXEEXT
4393
4394   ac_build_prefix=${build_alias}-
4395   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4396 set dummy ${ac_build_prefix}g++; ac_word=$2
4397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4399 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402   if test -n "$BUILD_CXX"; then
4403   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408   IFS=$as_save_IFS
4409   test -z "$as_dir" && as_dir=.
4410   for ac_exec_ext in '' $ac_executable_extensions; do
4411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414     break 2
4415   fi
4416 done
4417 done
4418 IFS=$as_save_IFS
4419
4420 fi
4421 fi
4422 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4423 if test -n "$BUILD_CXX"; then
4424   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4425 echo "${ECHO_T}$BUILD_CXX" >&6; }
4426 else
4427   { echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6; }
4429 fi
4430
4431
4432   if test -z "$BUILD_CXX"; then
4433      # Extract the first word of "g++", so it can be a program name with args.
4434 set dummy g++; ac_word=$2
4435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4437 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4438   echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440   if test -n "$BUILD_CXX"; then
4441   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4442 else
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4445 do
4446   IFS=$as_save_IFS
4447   test -z "$as_dir" && as_dir=.
4448   for ac_exec_ext in '' $ac_executable_extensions; do
4449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4450     ac_cv_prog_BUILD_CXX="g++"
4451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452     break 2
4453   fi
4454 done
4455 done
4456 IFS=$as_save_IFS
4457
4458 fi
4459 fi
4460 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4461 if test -n "$BUILD_CXX"; then
4462   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4463 echo "${ECHO_T}$BUILD_CXX" >&6; }
4464 else
4465   { echo "$as_me:$LINENO: result: no" >&5
4466 echo "${ECHO_T}no" >&6; }
4467 fi
4468
4469
4470      if test -z "$BUILD_CXX"; then
4471        # Extract the first word of "c++", so it can be a program name with args.
4472 set dummy c++; ac_word=$2
4473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4475 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4476   echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478   if test -n "$BUILD_CXX"; then
4479   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4480 else
4481   ac_prog_rejected=no
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4484 do
4485   IFS=$as_save_IFS
4486   test -z "$as_dir" && as_dir=.
4487   for ac_exec_ext in '' $ac_executable_extensions; do
4488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4490        ac_prog_rejected=yes
4491        continue
4492      fi
4493     ac_cv_prog_BUILD_CXX="c++"
4494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495     break 2
4496   fi
4497 done
4498 done
4499 IFS=$as_save_IFS
4500
4501 if test $ac_prog_rejected = yes; then
4502   # We found a bogon in the path, so make sure we never use it.
4503   set dummy $ac_cv_prog_BUILD_CXX
4504   shift
4505   if test $# != 0; then
4506     # We chose a different compiler from the bogus one.
4507     # However, it has the same basename, so the bogon will be chosen
4508     # first if we set BUILD_CXX to just the basename; use the full file name.
4509     shift
4510     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4511   fi
4512 fi
4513 fi
4514 fi
4515 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4516 if test -n "$BUILD_CXX"; then
4517   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4518 echo "${ECHO_T}$BUILD_CXX" >&6; }
4519 else
4520   { echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6; }
4522 fi
4523
4524
4525      fi
4526   fi
4527 else
4528   LLVM_CROSS_COMPILING=0
4529
4530 fi
4531
4532 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4533   cvsbuild="yes"
4534   optimize="no"
4535   CVSBUILD=CVSBUILD=1
4536
4537 else
4538   cvsbuild="no"
4539   optimize="yes"
4540 fi
4541
4542
4543 # Check whether --enable-optimized was given.
4544 if test "${enable_optimized+set}" = set; then
4545   enableval=$enable_optimized;
4546 else
4547   enableval=$optimize
4548 fi
4549
4550 if test ${enableval} = "no" ; then
4551   ENABLE_OPTIMIZED=
4552
4553 else
4554   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4555
4556 fi
4557
4558 # Check whether --enable-assertions was given.
4559 if test "${enable_assertions+set}" = set; then
4560   enableval=$enable_assertions;
4561 else
4562   enableval="yes"
4563 fi
4564
4565 if test ${enableval} = "yes" ; then
4566   DISABLE_ASSERTIONS=
4567
4568 else
4569   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4570
4571 fi
4572
4573 # Check whether --enable-expensive-checks was given.
4574 if test "${enable_expensive_checks+set}" = set; then
4575   enableval=$enable_expensive_checks;
4576 else
4577   enableval="no"
4578 fi
4579
4580 if test ${enableval} = "yes" ; then
4581   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4582
4583   EXPENSIVE_CHECKS=yes
4584
4585 else
4586   ENABLE_EXPENSIVE_CHECKS=
4587
4588   EXPENSIVE_CHECKS=no
4589
4590 fi
4591
4592 # Check whether --enable-debug-runtime was given.
4593 if test "${enable_debug_runtime+set}" = set; then
4594   enableval=$enable_debug_runtime;
4595 else
4596   enableval=no
4597 fi
4598
4599 if test ${enableval} = "no" ; then
4600   DEBUG_RUNTIME=
4601
4602 else
4603   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4604
4605 fi
4606
4607 # Check whether --enable-jit was given.
4608 if test "${enable_jit+set}" = set; then
4609   enableval=$enable_jit;
4610 else
4611   enableval=default
4612 fi
4613
4614 if test ${enableval} = "no"
4615 then
4616   JIT=
4617
4618 else
4619   case "$llvm_cv_target_arch" in
4620     x86)     TARGET_HAS_JIT=1
4621  ;;
4622     Sparc)   TARGET_HAS_JIT=0
4623  ;;
4624     PowerPC) TARGET_HAS_JIT=1
4625  ;;
4626     x86_64)  TARGET_HAS_JIT=1
4627  ;;
4628     Alpha)   TARGET_HAS_JIT=1
4629  ;;
4630     IA64)    TARGET_HAS_JIT=0
4631  ;;
4632     ARM)     TARGET_HAS_JIT=0
4633  ;;
4634     Mips)    TARGET_HAS_JIT=0
4635  ;;
4636     PIC16)   TARGET_HAS_JIT=0
4637  ;;
4638     *)       TARGET_HAS_JIT=0
4639  ;;
4640   esac
4641 fi
4642
4643 # Check whether --enable-doxygen was given.
4644 if test "${enable_doxygen+set}" = set; then
4645   enableval=$enable_doxygen;
4646 else
4647   enableval=default
4648 fi
4649
4650 case "$enableval" in
4651   yes) ENABLE_DOXYGEN=1
4652  ;;
4653   no)  ENABLE_DOXYGEN=0
4654  ;;
4655   default) ENABLE_DOXYGEN=0
4656  ;;
4657   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4658 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4659    { (exit 1); exit 1; }; } ;;
4660 esac
4661
4662 # Check whether --enable-threads was given.
4663 if test "${enable_threads+set}" = set; then
4664   enableval=$enable_threads;
4665 else
4666   enableval=default
4667 fi
4668
4669 case "$enableval" in
4670   yes) ENABLE_THREADS=1
4671  ;;
4672   no)  ENABLE_THREADS=0
4673  ;;
4674   default) ENABLE_THREADS=1
4675  ;;
4676   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4677 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4678    { (exit 1); exit 1; }; } ;;
4679 esac
4680
4681 cat >>confdefs.h <<_ACEOF
4682 #define ENABLE_THREADS $ENABLE_THREADS
4683 _ACEOF
4684
4685
4686 # Check whether --enable-pic was given.
4687 if test "${enable_pic+set}" = set; then
4688   enableval=$enable_pic;
4689 else
4690   enableval=default
4691 fi
4692
4693 case "$enableval" in
4694   yes) ENABLE_PIC=1
4695  ;;
4696   no)  ENABLE_PIC=0
4697  ;;
4698   default) ENABLE_PIC=0
4699  ;;
4700   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4701 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4702    { (exit 1); exit 1; }; } ;;
4703 esac
4704
4705 cat >>confdefs.h <<_ACEOF
4706 #define ENABLE_PIC $ENABLE_PIC
4707 _ACEOF
4708
4709
4710 TARGETS_TO_BUILD=""
4711 # Check whether --enable-targets was given.
4712 if test "${enable_targets+set}" = set; then
4713   enableval=$enable_targets;
4714 else
4715   enableval=all
4716 fi
4717
4718 case "$enableval" in
4719   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
4720   host-only)
4721     case "$llvm_cv_target_arch" in
4722       x86)     TARGETS_TO_BUILD="X86" ;;
4723       x86_64)  TARGETS_TO_BUILD="X86" ;;
4724       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4725       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4726       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4727       IA64)    TARGETS_TO_BUILD="IA64" ;;
4728       ARM)     TARGETS_TO_BUILD="ARM" ;;
4729       Mips)    TARGETS_TO_BUILD="Mips" ;;
4730       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4731       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4732       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4733 echo "$as_me: error: Can not set target to build" >&2;}
4734    { (exit 1); exit 1; }; } ;;
4735     esac
4736     ;;
4737   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4738       case "$a_target" in
4739         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4740         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4741         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4742         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4743         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4744         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4745         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4746         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4747         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4748         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4749         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4750         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4751         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4752         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4753 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4754    { (exit 1); exit 1; }; } ;;
4755       esac
4756   done
4757   ;;
4758 esac
4759 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4760
4761
4762 # Check whether --enable-cbe-printf-a was given.
4763 if test "${enable_cbe_printf_a+set}" = set; then
4764   enableval=$enable_cbe_printf_a;
4765 else
4766   enableval=default
4767 fi
4768
4769 case "$enableval" in
4770   yes) ENABLE_CBE_PRINTF_A=1
4771  ;;
4772   no)  ENABLE_CBE_PRINTF_A=0
4773  ;;
4774   default)  ENABLE_CBE_PRINTF_A=1
4775  ;;
4776   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4777 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4778    { (exit 1); exit 1; }; } ;;
4779 esac
4780
4781 cat >>confdefs.h <<_ACEOF
4782 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4783 _ACEOF
4784
4785
4786
4787 # Check whether --with-llvmgccdir was given.
4788 if test "${with_llvmgccdir+set}" = set; then
4789   withval=$with_llvmgccdir;
4790 else
4791   withval=default
4792 fi
4793
4794 case "$withval" in
4795   default) WITH_LLVMGCCDIR=default ;;
4796   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4797   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4798 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4799    { (exit 1); exit 1; }; } ;;
4800 esac
4801
4802
4803 # Check whether --with-llvmgcc was given.
4804 if test "${with_llvmgcc+set}" = set; then
4805   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4806       WITH_LLVMGCCDIR=""
4807 fi
4808
4809
4810
4811 # Check whether --with-llvmgxx was given.
4812 if test "${with_llvmgxx+set}" = set; then
4813   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4814     WITH_LLVMGCCDIR=""
4815 fi
4816
4817
4818 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4819    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4820 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4821    { (exit 1); exit 1; }; };
4822 fi
4823
4824 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4825    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4826 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4827    { (exit 1); exit 1; }; };
4828 fi
4829
4830
4831 # Check whether --with-extra-options was given.
4832 if test "${with_extra_options+set}" = set; then
4833   withval=$with_extra_options;
4834 else
4835   withval=default
4836 fi
4837
4838 case "$withval" in
4839   default) EXTRA_OPTIONS= ;;
4840   *) EXTRA_OPTIONS=$withval ;;
4841 esac
4842 EXTRA_OPTIONS=$EXTRA_OPTIONS
4843
4844
4845 # Check whether --enable-bindings was given.
4846 if test "${enable_bindings+set}" = set; then
4847   enableval=$enable_bindings;
4848 else
4849   enableval=default
4850 fi
4851
4852 BINDINGS_TO_BUILD=""
4853 case "$enableval" in
4854   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4855   all ) BINDINGS_TO_BUILD="ocaml" ;;
4856   none | no) BINDINGS_TO_BUILD="" ;;
4857   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4858       case "$a_binding" in
4859         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4860         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4861 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4862    { (exit 1); exit 1; }; } ;;
4863       esac
4864   done
4865   ;;
4866 esac
4867
4868
4869 # Check whether --with-ocaml-libdir was given.
4870 if test "${with_ocaml_libdir+set}" = set; then
4871   withval=$with_ocaml_libdir;
4872 else
4873   withval=auto
4874 fi
4875
4876 case "$withval" in
4877   auto) with_ocaml_libdir="$withval" ;;
4878   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4879   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4880 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4881    { (exit 1); exit 1; }; } ;;
4882 esac
4883
4884
4885 ac_ext=c
4886 ac_cpp='$CPP $CPPFLAGS'
4887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4890 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4891 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4892 # On Suns, sometimes $CPP names a directory.
4893 if test -n "$CPP" && test -d "$CPP"; then
4894   CPP=
4895 fi
4896 if test -z "$CPP"; then
4897   if test "${ac_cv_prog_CPP+set}" = set; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900       # Double quotes because CPP needs to be expanded
4901     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4902     do
4903       ac_preproc_ok=false
4904 for ac_c_preproc_warn_flag in '' yes
4905 do
4906   # Use a header file that comes with gcc, so configuring glibc
4907   # with a fresh cross-compiler works.
4908   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4909   # <limits.h> exists even on freestanding compilers.
4910   # On the NeXT, cc -E runs the code through the compiler's parser,
4911   # not just through cpp. "Syntax error" is here to catch this case.
4912   cat >conftest.$ac_ext <<_ACEOF
4913 /* confdefs.h.  */
4914 _ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h.  */
4918 #ifdef __STDC__
4919 # include <limits.h>
4920 #else
4921 # include <assert.h>
4922 #endif
4923                      Syntax error
4924 _ACEOF
4925 if { (ac_try="$ac_cpp conftest.$ac_ext"
4926 case "(($ac_try" in
4927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928   *) ac_try_echo=$ac_try;;
4929 esac
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4932   ac_status=$?
4933   grep -v '^ *+' conftest.er1 >conftest.err
4934   rm -f conftest.er1
4935   cat conftest.err >&5
4936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937   (exit $ac_status); } >/dev/null && {
4938          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4939          test ! -s conftest.err
4940        }; then
4941   :
4942 else
4943   echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4945
4946   # Broken: fails on valid input.
4947 continue
4948 fi
4949
4950 rm -f conftest.err conftest.$ac_ext
4951
4952   # OK, works on sane cases.  Now check whether nonexistent headers
4953   # can be detected and how.
4954   cat >conftest.$ac_ext <<_ACEOF
4955 /* confdefs.h.  */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h.  */
4960 #include <ac_nonexistent.h>
4961 _ACEOF
4962 if { (ac_try="$ac_cpp conftest.$ac_ext"
4963 case "(($ac_try" in
4964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965   *) ac_try_echo=$ac_try;;
4966 esac
4967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4968   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4969   ac_status=$?
4970   grep -v '^ *+' conftest.er1 >conftest.err
4971   rm -f conftest.er1
4972   cat conftest.err >&5
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); } >/dev/null && {
4975          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4976          test ! -s conftest.err
4977        }; 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   break
4996 fi
4997
4998     done
4999     ac_cv_prog_CPP=$CPP
5000
5001 fi
5002   CPP=$ac_cv_prog_CPP
5003 else
5004   ac_cv_prog_CPP=$CPP
5005 fi
5006 { echo "$as_me:$LINENO: result: $CPP" >&5
5007 echo "${ECHO_T}$CPP" >&6; }
5008 ac_preproc_ok=false
5009 for ac_c_preproc_warn_flag in '' yes
5010 do
5011   # Use a header file that comes with gcc, so configuring glibc
5012   # with a fresh cross-compiler works.
5013   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5014   # <limits.h> exists even on freestanding compilers.
5015   # On the NeXT, cc -E runs the code through the compiler's parser,
5016   # not just through cpp. "Syntax error" is here to catch this case.
5017   cat >conftest.$ac_ext <<_ACEOF
5018 /* confdefs.h.  */
5019 _ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h.  */
5023 #ifdef __STDC__
5024 # include <limits.h>
5025 #else
5026 # include <assert.h>
5027 #endif
5028                      Syntax error
5029 _ACEOF
5030 if { (ac_try="$ac_cpp conftest.$ac_ext"
5031 case "(($ac_try" in
5032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033   *) ac_try_echo=$ac_try;;
5034 esac
5035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5036   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5037   ac_status=$?
5038   grep -v '^ *+' conftest.er1 >conftest.err
5039   rm -f conftest.er1
5040   cat conftest.err >&5
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); } >/dev/null && {
5043          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5044          test ! -s conftest.err
5045        }; then
5046   :
5047 else
5048   echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051   # Broken: fails on valid input.
5052 continue
5053 fi
5054
5055 rm -f conftest.err conftest.$ac_ext
5056
5057   # OK, works on sane cases.  Now check whether nonexistent headers
5058   # can be detected and how.
5059   cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h.  */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h.  */
5065 #include <ac_nonexistent.h>
5066 _ACEOF
5067 if { (ac_try="$ac_cpp conftest.$ac_ext"
5068 case "(($ac_try" in
5069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070   *) ac_try_echo=$ac_try;;
5071 esac
5072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5074   ac_status=$?
5075   grep -v '^ *+' conftest.er1 >conftest.err
5076   rm -f conftest.er1
5077   cat conftest.err >&5
5078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079   (exit $ac_status); } >/dev/null && {
5080          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5081          test ! -s conftest.err
5082        }; then
5083   # Broken: success on invalid input.
5084 continue
5085 else
5086   echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5088
5089   # Passes both tests.
5090 ac_preproc_ok=:
5091 break
5092 fi
5093
5094 rm -f conftest.err conftest.$ac_ext
5095
5096 done
5097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5098 rm -f conftest.err conftest.$ac_ext
5099 if $ac_preproc_ok; then
5100   :
5101 else
5102   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5103 See \`config.log' for more details." >&5
5104 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5105 See \`config.log' for more details." >&2;}
5106    { (exit 1); exit 1; }; }
5107 fi
5108
5109 ac_ext=c
5110 ac_cpp='$CPP $CPPFLAGS'
5111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5114
5115 ac_ext=c
5116 ac_cpp='$CPP $CPPFLAGS'
5117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120 if test -n "$ac_tool_prefix"; then
5121   for ac_prog in gcc
5122   do
5123     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5127 if test "${ac_cv_prog_CC+set}" = set; then
5128   echo $ECHO_N "(cached) $ECHO_C" >&6
5129 else
5130   if test -n "$CC"; then
5131   ac_cv_prog_CC="$CC" # Let the user override the test.
5132 else
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5135 do
5136   IFS=$as_save_IFS
5137   test -z "$as_dir" && as_dir=.
5138   for ac_exec_ext in '' $ac_executable_extensions; do
5139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5142     break 2
5143   fi
5144 done
5145 done
5146 IFS=$as_save_IFS
5147
5148 fi
5149 fi
5150 CC=$ac_cv_prog_CC
5151 if test -n "$CC"; then
5152   { echo "$as_me:$LINENO: result: $CC" >&5
5153 echo "${ECHO_T}$CC" >&6; }
5154 else
5155   { echo "$as_me:$LINENO: result: no" >&5
5156 echo "${ECHO_T}no" >&6; }
5157 fi
5158
5159
5160     test -n "$CC" && break
5161   done
5162 fi
5163 if test -z "$CC"; then
5164   ac_ct_CC=$CC
5165   for ac_prog in gcc
5166 do
5167   # Extract the first word of "$ac_prog", so it can be a program name with args.
5168 set dummy $ac_prog; ac_word=$2
5169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5172   echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174   if test -n "$ac_ct_CC"; then
5175   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5176 else
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5179 do
5180   IFS=$as_save_IFS
5181   test -z "$as_dir" && as_dir=.
5182   for ac_exec_ext in '' $ac_executable_extensions; do
5183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184     ac_cv_prog_ac_ct_CC="$ac_prog"
5185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186     break 2
5187   fi
5188 done
5189 done
5190 IFS=$as_save_IFS
5191
5192 fi
5193 fi
5194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5195 if test -n "$ac_ct_CC"; then
5196   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5197 echo "${ECHO_T}$ac_ct_CC" >&6; }
5198 else
5199   { echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6; }
5201 fi
5202
5203
5204   test -n "$ac_ct_CC" && break
5205 done
5206
5207   if test "x$ac_ct_CC" = x; then
5208     CC=""
5209   else
5210     case $cross_compiling:$ac_tool_warned in
5211 yes:)
5212 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5213 whose name does not start with the host triplet.  If you think this
5214 configuration is useful to you, please write to autoconf@gnu.org." >&5
5215 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5216 whose name does not start with the host triplet.  If you think this
5217 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5218 ac_tool_warned=yes ;;
5219 esac
5220     CC=$ac_ct_CC
5221   fi
5222 fi
5223
5224
5225 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5226 See \`config.log' for more details." >&5
5227 echo "$as_me: error: no acceptable C compiler found in \$PATH
5228 See \`config.log' for more details." >&2;}
5229    { (exit 1); exit 1; }; }
5230
5231 # Provide some information about the compiler.
5232 echo "$as_me:$LINENO: checking for C compiler version" >&5
5233 ac_compiler=`set X $ac_compile; echo $2`
5234 { (ac_try="$ac_compiler --version >&5"
5235 case "(($ac_try" in
5236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5237   *) ac_try_echo=$ac_try;;
5238 esac
5239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5240   (eval "$ac_compiler --version >&5") 2>&5
5241   ac_status=$?
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); }
5244 { (ac_try="$ac_compiler -v >&5"
5245 case "(($ac_try" in
5246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247   *) ac_try_echo=$ac_try;;
5248 esac
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250   (eval "$ac_compiler -v >&5") 2>&5
5251   ac_status=$?
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); }
5254 { (ac_try="$ac_compiler -V >&5"
5255 case "(($ac_try" in
5256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257   *) ac_try_echo=$ac_try;;
5258 esac
5259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260   (eval "$ac_compiler -V >&5") 2>&5
5261   ac_status=$?
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); }
5264
5265 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5266 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5267 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5268   echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270   cat >conftest.$ac_ext <<_ACEOF
5271 /* confdefs.h.  */
5272 _ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h.  */
5276
5277 int
5278 main ()
5279 {
5280 #ifndef __GNUC__
5281        choke me
5282 #endif
5283
5284   ;
5285   return 0;
5286 }
5287 _ACEOF
5288 rm -f conftest.$ac_objext
5289 if { (ac_try="$ac_compile"
5290 case "(($ac_try" in
5291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292   *) ac_try_echo=$ac_try;;
5293 esac
5294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295   (eval "$ac_compile") 2>conftest.er1
5296   ac_status=$?
5297   grep -v '^ *+' conftest.er1 >conftest.err
5298   rm -f conftest.er1
5299   cat conftest.err >&5
5300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); } && {
5302          test -z "$ac_c_werror_flag" ||
5303          test ! -s conftest.err
5304        } && test -s conftest.$ac_objext; then
5305   ac_compiler_gnu=yes
5306 else
5307   echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5309
5310         ac_compiler_gnu=no
5311 fi
5312
5313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5315
5316 fi
5317 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5318 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5319 GCC=`test $ac_compiler_gnu = yes && echo yes`
5320 ac_test_CFLAGS=${CFLAGS+set}
5321 ac_save_CFLAGS=$CFLAGS
5322 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5323 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5324 if test "${ac_cv_prog_cc_g+set}" = set; then
5325   echo $ECHO_N "(cached) $ECHO_C" >&6
5326 else
5327   ac_save_c_werror_flag=$ac_c_werror_flag
5328    ac_c_werror_flag=yes
5329    ac_cv_prog_cc_g=no
5330    CFLAGS="-g"
5331    cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h.  */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h.  */
5337
5338 int
5339 main ()
5340 {
5341
5342   ;
5343   return 0;
5344 }
5345 _ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (ac_try="$ac_compile"
5348 case "(($ac_try" in
5349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350   *) ac_try_echo=$ac_try;;
5351 esac
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353   (eval "$ac_compile") 2>conftest.er1
5354   ac_status=$?
5355   grep -v '^ *+' conftest.er1 >conftest.err
5356   rm -f conftest.er1
5357   cat conftest.err >&5
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); } && {
5360          test -z "$ac_c_werror_flag" ||
5361          test ! -s conftest.err
5362        } && test -s conftest.$ac_objext; then
5363   ac_cv_prog_cc_g=yes
5364 else
5365   echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5367
5368         CFLAGS=""
5369       cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h.  */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h.  */
5375
5376 int
5377 main ()
5378 {
5379
5380   ;
5381   return 0;
5382 }
5383 _ACEOF
5384 rm -f conftest.$ac_objext
5385 if { (ac_try="$ac_compile"
5386 case "(($ac_try" in
5387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388   *) ac_try_echo=$ac_try;;
5389 esac
5390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5391   (eval "$ac_compile") 2>conftest.er1
5392   ac_status=$?
5393   grep -v '^ *+' conftest.er1 >conftest.err
5394   rm -f conftest.er1
5395   cat conftest.err >&5
5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397   (exit $ac_status); } && {
5398          test -z "$ac_c_werror_flag" ||
5399          test ! -s conftest.err
5400        } && test -s conftest.$ac_objext; then
5401   :
5402 else
5403   echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5405
5406         ac_c_werror_flag=$ac_save_c_werror_flag
5407          CFLAGS="-g"
5408          cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h.  */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h.  */
5414
5415 int
5416 main ()
5417 {
5418
5419   ;
5420   return 0;
5421 }
5422 _ACEOF
5423 rm -f conftest.$ac_objext
5424 if { (ac_try="$ac_compile"
5425 case "(($ac_try" in
5426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427   *) ac_try_echo=$ac_try;;
5428 esac
5429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430   (eval "$ac_compile") 2>conftest.er1
5431   ac_status=$?
5432   grep -v '^ *+' conftest.er1 >conftest.err
5433   rm -f conftest.er1
5434   cat conftest.err >&5
5435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436   (exit $ac_status); } && {
5437          test -z "$ac_c_werror_flag" ||
5438          test ! -s conftest.err
5439        } && test -s conftest.$ac_objext; then
5440   ac_cv_prog_cc_g=yes
5441 else
5442   echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5444
5445
5446 fi
5447
5448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449 fi
5450
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 fi
5453
5454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455    ac_c_werror_flag=$ac_save_c_werror_flag
5456 fi
5457 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5458 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5459 if test "$ac_test_CFLAGS" = set; then
5460   CFLAGS=$ac_save_CFLAGS
5461 elif test $ac_cv_prog_cc_g = yes; then
5462   if test "$GCC" = yes; then
5463     CFLAGS="-g -O2"
5464   else
5465     CFLAGS="-g"
5466   fi
5467 else
5468   if test "$GCC" = yes; then
5469     CFLAGS="-O2"
5470   else
5471     CFLAGS=
5472   fi
5473 fi
5474 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5475 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5476 if test "${ac_cv_prog_cc_c89+set}" = set; then
5477   echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479   ac_cv_prog_cc_c89=no
5480 ac_save_CC=$CC
5481 cat >conftest.$ac_ext <<_ACEOF
5482 /* confdefs.h.  */
5483 _ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h.  */
5487 #include <stdarg.h>
5488 #include <stdio.h>
5489 #include <sys/types.h>
5490 #include <sys/stat.h>
5491 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5492 struct buf { int x; };
5493 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5494 static char *e (p, i)
5495      char **p;
5496      int i;
5497 {
5498   return p[i];
5499 }
5500 static char *f (char * (*g) (char **, int), char **p, ...)
5501 {
5502   char *s;
5503   va_list v;
5504   va_start (v,p);
5505   s = g (p, va_arg (v,int));
5506   va_end (v);
5507   return s;
5508 }
5509
5510 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5511    function prototypes and stuff, but not '\xHH' hex character constants.
5512    These don't provoke an error unfortunately, instead are silently treated
5513    as 'x'.  The following induces an error, until -std is added to get
5514    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5515    array size at least.  It's necessary to write '\x00'==0 to get something
5516    that's true only with -std.  */
5517 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5518
5519 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5520    inside strings and character constants.  */
5521 #define FOO(x) 'x'
5522 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5523
5524 int test (int i, double x);
5525 struct s1 {int (*f) (int a);};
5526 struct s2 {int (*f) (double a);};
5527 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5528 int argc;
5529 char **argv;
5530 int
5531 main ()
5532 {
5533 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5534   ;
5535   return 0;
5536 }
5537 _ACEOF
5538 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5539         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5540 do
5541   CC="$ac_save_CC $ac_arg"
5542   rm -f conftest.$ac_objext
5543 if { (ac_try="$ac_compile"
5544 case "(($ac_try" in
5545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546   *) ac_try_echo=$ac_try;;
5547 esac
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549   (eval "$ac_compile") 2>conftest.er1
5550   ac_status=$?
5551   grep -v '^ *+' conftest.er1 >conftest.err
5552   rm -f conftest.er1
5553   cat conftest.err >&5
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); } && {
5556          test -z "$ac_c_werror_flag" ||
5557          test ! -s conftest.err
5558        } && test -s conftest.$ac_objext; then
5559   ac_cv_prog_cc_c89=$ac_arg
5560 else
5561   echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5563
5564
5565 fi
5566
5567 rm -f core conftest.err conftest.$ac_objext
5568   test "x$ac_cv_prog_cc_c89" != "xno" && break
5569 done
5570 rm -f conftest.$ac_ext
5571 CC=$ac_save_CC
5572
5573 fi
5574 # AC_CACHE_VAL
5575 case "x$ac_cv_prog_cc_c89" in
5576   x)
5577     { echo "$as_me:$LINENO: result: none needed" >&5
5578 echo "${ECHO_T}none needed" >&6; } ;;
5579   xno)
5580     { echo "$as_me:$LINENO: result: unsupported" >&5
5581 echo "${ECHO_T}unsupported" >&6; } ;;
5582   *)
5583     CC="$CC $ac_cv_prog_cc_c89"
5584     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5585 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5586 esac
5587
5588
5589 ac_ext=c
5590 ac_cpp='$CPP $CPPFLAGS'
5591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5594
5595 ac_ext=cpp
5596 ac_cpp='$CXXCPP $CPPFLAGS'
5597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5600 if test -z "$CXX"; then
5601   if test -n "$CCC"; then
5602     CXX=$CCC
5603   else
5604     if test -n "$ac_tool_prefix"; then
5605   for ac_prog in g++
5606   do
5607     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5611 if test "${ac_cv_prog_CXX+set}" = set; then
5612   echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614   if test -n "$CXX"; then
5615   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5616 else
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5619 do
5620   IFS=$as_save_IFS
5621   test -z "$as_dir" && as_dir=.
5622   for ac_exec_ext in '' $ac_executable_extensions; do
5623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5626     break 2
5627   fi
5628 done
5629 done
5630 IFS=$as_save_IFS
5631
5632 fi
5633 fi
5634 CXX=$ac_cv_prog_CXX
5635 if test -n "$CXX"; then
5636   { echo "$as_me:$LINENO: result: $CXX" >&5
5637 echo "${ECHO_T}$CXX" >&6; }
5638 else
5639   { echo "$as_me:$LINENO: result: no" >&5
5640 echo "${ECHO_T}no" >&6; }
5641 fi
5642
5643
5644     test -n "$CXX" && break
5645   done
5646 fi
5647 if test -z "$CXX"; then
5648   ac_ct_CXX=$CXX
5649   for ac_prog in g++
5650 do
5651   # Extract the first word of "$ac_prog", so it can be a program name with args.
5652 set dummy $ac_prog; ac_word=$2
5653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5655 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5656   echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658   if test -n "$ac_ct_CXX"; then
5659   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5663 do
5664   IFS=$as_save_IFS
5665   test -z "$as_dir" && as_dir=.
5666   for ac_exec_ext in '' $ac_executable_extensions; do
5667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5668     ac_cv_prog_ac_ct_CXX="$ac_prog"
5669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670     break 2
5671   fi
5672 done
5673 done
5674 IFS=$as_save_IFS
5675
5676 fi
5677 fi
5678 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5679 if test -n "$ac_ct_CXX"; then
5680   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5681 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5682 else
5683   { echo "$as_me:$LINENO: result: no" >&5
5684 echo "${ECHO_T}no" >&6; }
5685 fi
5686
5687
5688   test -n "$ac_ct_CXX" && break
5689 done
5690
5691   if test "x$ac_ct_CXX" = x; then
5692     CXX="g++"
5693   else
5694     case $cross_compiling:$ac_tool_warned in
5695 yes:)
5696 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5697 whose name does not start with the host triplet.  If you think this
5698 configuration is useful to you, please write to autoconf@gnu.org." >&5
5699 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5700 whose name does not start with the host triplet.  If you think this
5701 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5702 ac_tool_warned=yes ;;
5703 esac
5704     CXX=$ac_ct_CXX
5705   fi
5706 fi
5707
5708   fi
5709 fi
5710 # Provide some information about the compiler.
5711 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5712 ac_compiler=`set X $ac_compile; echo $2`
5713 { (ac_try="$ac_compiler --version >&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 --version >&5") 2>&5
5720   ac_status=$?
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); }
5723 { (ac_try="$ac_compiler -v >&5"
5724 case "(($ac_try" in
5725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726   *) ac_try_echo=$ac_try;;
5727 esac
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729   (eval "$ac_compiler -v >&5") 2>&5
5730   ac_status=$?
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); }
5733 { (ac_try="$ac_compiler -V >&5"
5734 case "(($ac_try" in
5735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736   *) ac_try_echo=$ac_try;;
5737 esac
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739   (eval "$ac_compiler -V >&5") 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); }
5743
5744 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5745 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5746 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5747   echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749   cat >conftest.$ac_ext <<_ACEOF
5750 /* confdefs.h.  */
5751 _ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h.  */
5755
5756 int
5757 main ()
5758 {
5759 #ifndef __GNUC__
5760        choke me
5761 #endif
5762
5763   ;
5764   return 0;
5765 }
5766 _ACEOF
5767 rm -f conftest.$ac_objext
5768 if { (ac_try="$ac_compile"
5769 case "(($ac_try" in
5770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771   *) ac_try_echo=$ac_try;;
5772 esac
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774   (eval "$ac_compile") 2>conftest.er1
5775   ac_status=$?
5776   grep -v '^ *+' conftest.er1 >conftest.err
5777   rm -f conftest.er1
5778   cat conftest.err >&5
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); } && {
5781          test -z "$ac_cxx_werror_flag" ||
5782          test ! -s conftest.err
5783        } && test -s conftest.$ac_objext; then
5784   ac_compiler_gnu=yes
5785 else
5786   echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5788
5789         ac_compiler_gnu=no
5790 fi
5791
5792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5794
5795 fi
5796 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5797 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5798 GXX=`test $ac_compiler_gnu = yes && echo yes`
5799 ac_test_CXXFLAGS=${CXXFLAGS+set}
5800 ac_save_CXXFLAGS=$CXXFLAGS
5801 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5802 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5803 if test "${ac_cv_prog_cxx_g+set}" = set; then
5804   echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5807    ac_cxx_werror_flag=yes
5808    ac_cv_prog_cxx_g=no
5809    CXXFLAGS="-g"
5810    cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h.  */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h.  */
5816
5817 int
5818 main ()
5819 {
5820
5821   ;
5822   return 0;
5823 }
5824 _ACEOF
5825 rm -f conftest.$ac_objext
5826 if { (ac_try="$ac_compile"
5827 case "(($ac_try" in
5828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829   *) ac_try_echo=$ac_try;;
5830 esac
5831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832   (eval "$ac_compile") 2>conftest.er1
5833   ac_status=$?
5834   grep -v '^ *+' conftest.er1 >conftest.err
5835   rm -f conftest.er1
5836   cat conftest.err >&5
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); } && {
5839          test -z "$ac_cxx_werror_flag" ||
5840          test ! -s conftest.err
5841        } && test -s conftest.$ac_objext; then
5842   ac_cv_prog_cxx_g=yes
5843 else
5844   echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5846
5847         CXXFLAGS=""
5848       cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h.  */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h.  */
5854
5855 int
5856 main ()
5857 {
5858
5859   ;
5860   return 0;
5861 }
5862 _ACEOF
5863 rm -f conftest.$ac_objext
5864 if { (ac_try="$ac_compile"
5865 case "(($ac_try" in
5866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867   *) ac_try_echo=$ac_try;;
5868 esac
5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870   (eval "$ac_compile") 2>conftest.er1
5871   ac_status=$?
5872   grep -v '^ *+' conftest.er1 >conftest.err
5873   rm -f conftest.er1
5874   cat conftest.err >&5
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); } && {
5877          test -z "$ac_cxx_werror_flag" ||
5878          test ! -s conftest.err
5879        } && test -s conftest.$ac_objext; then
5880   :
5881 else
5882   echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5884
5885         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5886          CXXFLAGS="-g"
5887          cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h.  */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h.  */
5893
5894 int
5895 main ()
5896 {
5897
5898   ;
5899   return 0;
5900 }
5901 _ACEOF
5902 rm -f conftest.$ac_objext
5903 if { (ac_try="$ac_compile"
5904 case "(($ac_try" in
5905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906   *) ac_try_echo=$ac_try;;
5907 esac
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909   (eval "$ac_compile") 2>conftest.er1
5910   ac_status=$?
5911   grep -v '^ *+' conftest.er1 >conftest.err
5912   rm -f conftest.er1
5913   cat conftest.err >&5
5914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915   (exit $ac_status); } && {
5916          test -z "$ac_cxx_werror_flag" ||
5917          test ! -s conftest.err
5918        } && test -s conftest.$ac_objext; then
5919   ac_cv_prog_cxx_g=yes
5920 else
5921   echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5923
5924
5925 fi
5926
5927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5928 fi
5929
5930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 fi
5932
5933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5934    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5935 fi
5936 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5937 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5938 if test "$ac_test_CXXFLAGS" = set; then
5939   CXXFLAGS=$ac_save_CXXFLAGS
5940 elif test $ac_cv_prog_cxx_g = yes; then
5941   if test "$GXX" = yes; then
5942     CXXFLAGS="-g -O2"
5943   else
5944     CXXFLAGS="-g"
5945   fi
5946 else
5947   if test "$GXX" = yes; then
5948     CXXFLAGS="-O2"
5949   else
5950     CXXFLAGS=
5951   fi
5952 fi
5953 ac_ext=c
5954 ac_cpp='$CPP $CPPFLAGS'
5955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5958
5959 { echo "$as_me:$LINENO: checking " >&5
5960 echo $ECHO_N "checking ... $ECHO_C" >&6; }
5961 if test "${ac_cv_has_flex+set}" = set; then
5962   echo $ECHO_N "(cached) $ECHO_C" >&6
5963 else
5964   for ac_prog in flex lex
5965 do
5966   # Extract the first word of "$ac_prog", so it can be a program name with args.
5967 set dummy $ac_prog; ac_word=$2
5968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5970 if test "${ac_cv_prog_LEX+set}" = set; then
5971   echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973   if test -n "$LEX"; then
5974   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5975 else
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH
5978 do
5979   IFS=$as_save_IFS
5980   test -z "$as_dir" && as_dir=.
5981   for ac_exec_ext in '' $ac_executable_extensions; do
5982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5983     ac_cv_prog_LEX="$ac_prog"
5984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985     break 2
5986   fi
5987 done
5988 done
5989 IFS=$as_save_IFS
5990
5991 fi
5992 fi
5993 LEX=$ac_cv_prog_LEX
5994 if test -n "$LEX"; then
5995   { echo "$as_me:$LINENO: result: $LEX" >&5
5996 echo "${ECHO_T}$LEX" >&6; }
5997 else
5998   { echo "$as_me:$LINENO: result: no" >&5
5999 echo "${ECHO_T}no" >&6; }
6000 fi
6001
6002
6003   test -n "$LEX" && break
6004 done
6005 test -n "$LEX" || LEX=":"
6006
6007 if test "x$LEX" != "x:"; then
6008   cat >conftest.l <<_ACEOF
6009 %%
6010 a { ECHO; }
6011 b { REJECT; }
6012 c { yymore (); }
6013 d { yyless (1); }
6014 e { yyless (input () != 0); }
6015 f { unput (yytext[0]); }
6016 . { BEGIN INITIAL; }
6017 %%
6018 #ifdef YYTEXT_POINTER
6019 extern char *yytext;
6020 #endif
6021 int
6022 main (void)
6023 {
6024   return ! yylex () + ! yywrap ();
6025 }
6026 _ACEOF
6027 { (ac_try="$LEX conftest.l"
6028 case "(($ac_try" in
6029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030   *) ac_try_echo=$ac_try;;
6031 esac
6032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6033   (eval "$LEX conftest.l") 2>&5
6034   ac_status=$?
6035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036   (exit $ac_status); }
6037 { echo "$as_me:$LINENO: checking lex output file root" >&5
6038 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6039 if test "${ac_cv_prog_lex_root+set}" = set; then
6040   echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042
6043 if test -f lex.yy.c; then
6044   ac_cv_prog_lex_root=lex.yy
6045 elif test -f lexyy.c; then
6046   ac_cv_prog_lex_root=lexyy
6047 else
6048   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6049 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6050    { (exit 1); exit 1; }; }
6051 fi
6052 fi
6053 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6054 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6055 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6056
6057 if test -z "${LEXLIB+set}"; then
6058   { echo "$as_me:$LINENO: checking lex library" >&5
6059 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
6060 if test "${ac_cv_lib_lex+set}" = set; then
6061   echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063
6064     ac_save_LIBS=$LIBS
6065     ac_cv_lib_lex='none needed'
6066     for ac_lib in '' -lfl -ll; do
6067       LIBS="$ac_lib $ac_save_LIBS"
6068       cat >conftest.$ac_ext <<_ACEOF
6069 `cat $LEX_OUTPUT_ROOT.c`
6070 _ACEOF
6071 rm -f conftest.$ac_objext conftest$ac_exeext
6072 if { (ac_try="$ac_link"
6073 case "(($ac_try" in
6074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075   *) ac_try_echo=$ac_try;;
6076 esac
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078   (eval "$ac_link") 2>conftest.er1
6079   ac_status=$?
6080   grep -v '^ *+' conftest.er1 >conftest.err
6081   rm -f conftest.er1
6082   cat conftest.err >&5
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); } && {
6085          test -z "$ac_c_werror_flag" ||
6086          test ! -s conftest.err
6087        } && test -s conftest$ac_exeext &&
6088        $as_test_x conftest$ac_exeext; then
6089   ac_cv_lib_lex=$ac_lib
6090 else
6091   echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6093
6094
6095 fi
6096
6097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6098       conftest$ac_exeext conftest.$ac_ext
6099       test "$ac_cv_lib_lex" != 'none needed' && break
6100     done
6101     LIBS=$ac_save_LIBS
6102
6103 fi
6104 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
6105 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
6106   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6107 fi
6108
6109
6110 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6111 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6112 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6113   echo $ECHO_N "(cached) $ECHO_C" >&6
6114 else
6115   # POSIX says lex can declare yytext either as a pointer or an array; the
6116 # default is implementation-dependent.  Figure out which it is, since
6117 # not all implementations provide the %pointer and %array declarations.
6118 ac_cv_prog_lex_yytext_pointer=no
6119 ac_save_LIBS=$LIBS
6120 LIBS="$LEXLIB $ac_save_LIBS"
6121 cat >conftest.$ac_ext <<_ACEOF
6122 #define YYTEXT_POINTER 1
6123 `cat $LEX_OUTPUT_ROOT.c`
6124 _ACEOF
6125 rm -f conftest.$ac_objext conftest$ac_exeext
6126 if { (ac_try="$ac_link"
6127 case "(($ac_try" in
6128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6129   *) ac_try_echo=$ac_try;;
6130 esac
6131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6132   (eval "$ac_link") 2>conftest.er1
6133   ac_status=$?
6134   grep -v '^ *+' conftest.er1 >conftest.err
6135   rm -f conftest.er1
6136   cat conftest.err >&5
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); } && {
6139          test -z "$ac_c_werror_flag" ||
6140          test ! -s conftest.err
6141        } && test -s conftest$ac_exeext &&
6142        $as_test_x conftest$ac_exeext; then
6143   ac_cv_prog_lex_yytext_pointer=yes
6144 else
6145   echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6147
6148
6149 fi
6150
6151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6152       conftest$ac_exeext conftest.$ac_ext
6153 LIBS=$ac_save_LIBS
6154
6155 fi
6156 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6157 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6158 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6159
6160 cat >>confdefs.h <<\_ACEOF
6161 #define YYTEXT_POINTER 1
6162 _ACEOF
6163
6164 fi
6165 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6166
6167 fi
6168
6169 fi
6170 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6171 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6172 if test "$LEX" != "flex"; then
6173   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6174 echo "$as_me: error: flex not found but required" >&2;}
6175    { (exit 1); exit 1; }; }
6176 else
6177   FLEX=flex
6178
6179 fi
6180
6181 { echo "$as_me:$LINENO: checking " >&5
6182 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6183 if test "${llvm_cv_has_bison+set}" = set; then
6184   echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186   for ac_prog in 'bison -y' byacc
6187 do
6188   # Extract the first word of "$ac_prog", so it can be a program name with args.
6189 set dummy $ac_prog; ac_word=$2
6190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192 if test "${ac_cv_prog_YACC+set}" = set; then
6193   echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195   if test -n "$YACC"; then
6196   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6197 else
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6200 do
6201   IFS=$as_save_IFS
6202   test -z "$as_dir" && as_dir=.
6203   for ac_exec_ext in '' $ac_executable_extensions; do
6204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6205     ac_cv_prog_YACC="$ac_prog"
6206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207     break 2
6208   fi
6209 done
6210 done
6211 IFS=$as_save_IFS
6212
6213 fi
6214 fi
6215 YACC=$ac_cv_prog_YACC
6216 if test -n "$YACC"; then
6217   { echo "$as_me:$LINENO: result: $YACC" >&5
6218 echo "${ECHO_T}$YACC" >&6; }
6219 else
6220   { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6222 fi
6223
6224
6225   test -n "$YACC" && break
6226 done
6227 test -n "$YACC" || YACC="yacc"
6228
6229 fi
6230 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6231 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6232 if test "$YACC" != "bison -y"; then
6233
6234   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6235 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6236 else
6237   BISON=bison
6238
6239 fi
6240
6241 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6242 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6243 if test "${lt_cv_path_NM+set}" = set; then
6244   echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246   if test -n "$NM"; then
6247   # Let the user override the test.
6248   lt_cv_path_NM="$NM"
6249 else
6250   lt_nm_to_check="${ac_tool_prefix}nm"
6251   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6252     lt_nm_to_check="$lt_nm_to_check nm"
6253   fi
6254   for lt_tmp_nm in $lt_nm_to_check; do
6255     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6256     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6257       IFS="$lt_save_ifs"
6258       test -z "$ac_dir" && ac_dir=.
6259       tmp_nm="$ac_dir/$lt_tmp_nm"
6260       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6261         # Check to see if the nm accepts a BSD-compat flag.
6262         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6263         #   nm: unknown option "B" ignored
6264         # Tru64's nm complains that /dev/null is an invalid object file
6265         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6266         */dev/null* | *'Invalid file or object type'*)
6267           lt_cv_path_NM="$tmp_nm -B"
6268           break
6269           ;;
6270         *)
6271           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6272           */dev/null*)
6273             lt_cv_path_NM="$tmp_nm -p"
6274             break
6275             ;;
6276           *)
6277             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6278             continue # so that we can try to find one that supports BSD flags
6279             ;;
6280           esac
6281           ;;
6282         esac
6283       fi
6284     done
6285     IFS="$lt_save_ifs"
6286   done
6287   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6288 fi
6289 fi
6290 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6291 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6292 NM="$lt_cv_path_NM"
6293
6294
6295
6296 { echo "$as_me:$LINENO: checking for GNU make" >&5
6297 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6298 if test "${llvm_cv_gnu_make_command+set}" = set; then
6299   echo $ECHO_N "(cached) $ECHO_C" >&6
6300 else
6301   llvm_cv_gnu_make_command=''
6302  for a in "$MAKE" make gmake gnumake ; do
6303   if test -z "$a" ; then continue ; fi ;
6304   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6305   then
6306    llvm_cv_gnu_make_command=$a ;
6307    break;
6308   fi
6309  done
6310 fi
6311 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6312 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6313  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6314    ifGNUmake='' ;
6315  else
6316    ifGNUmake='#' ;
6317    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6318 echo "${ECHO_T}\"Not found\"" >&6; };
6319  fi
6320
6321
6322 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6323 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6324 LN_S=$as_ln_s
6325 if test "$LN_S" = "ln -s"; then
6326   { echo "$as_me:$LINENO: result: yes" >&5
6327 echo "${ECHO_T}yes" >&6; }
6328 else
6329   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6330 echo "${ECHO_T}no, using $LN_S" >&6; }
6331 fi
6332
6333 # Extract the first word of "cmp", so it can be a program name with args.
6334 set dummy cmp; ac_word=$2
6335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6337 if test "${ac_cv_path_CMP+set}" = set; then
6338   echo $ECHO_N "(cached) $ECHO_C" >&6
6339 else
6340   case $CMP in
6341   [\\/]* | ?:[\\/]*)
6342   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6343   ;;
6344   *)
6345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348   IFS=$as_save_IFS
6349   test -z "$as_dir" && as_dir=.
6350   for ac_exec_ext in '' $ac_executable_extensions; do
6351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6352     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6354     break 2
6355   fi
6356 done
6357 done
6358 IFS=$as_save_IFS
6359
6360   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6361   ;;
6362 esac
6363 fi
6364 CMP=$ac_cv_path_CMP
6365 if test -n "$CMP"; then
6366   { echo "$as_me:$LINENO: result: $CMP" >&5
6367 echo "${ECHO_T}$CMP" >&6; }
6368 else
6369   { echo "$as_me:$LINENO: result: no" >&5
6370 echo "${ECHO_T}no" >&6; }
6371 fi
6372
6373
6374 # Extract the first word of "cp", so it can be a program name with args.
6375 set dummy cp; ac_word=$2
6376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6378 if test "${ac_cv_path_CP+set}" = set; then
6379   echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381   case $CP in
6382   [\\/]* | ?:[\\/]*)
6383   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6384   ;;
6385   *)
6386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389   IFS=$as_save_IFS
6390   test -z "$as_dir" && as_dir=.
6391   for ac_exec_ext in '' $ac_executable_extensions; do
6392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395     break 2
6396   fi
6397 done
6398 done
6399 IFS=$as_save_IFS
6400
6401   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6402   ;;
6403 esac
6404 fi
6405 CP=$ac_cv_path_CP
6406 if test -n "$CP"; then
6407   { echo "$as_me:$LINENO: result: $CP" >&5
6408 echo "${ECHO_T}$CP" >&6; }
6409 else
6410   { echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6; }
6412 fi
6413
6414
6415 # Extract the first word of "date", so it can be a program name with args.
6416 set dummy date; ac_word=$2
6417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6419 if test "${ac_cv_path_DATE+set}" = set; then
6420   echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422   case $DATE in
6423   [\\/]* | ?:[\\/]*)
6424   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6425   ;;
6426   *)
6427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430   IFS=$as_save_IFS
6431   test -z "$as_dir" && as_dir=.
6432   for ac_exec_ext in '' $ac_executable_extensions; do
6433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436     break 2
6437   fi
6438 done
6439 done
6440 IFS=$as_save_IFS
6441
6442   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6443   ;;
6444 esac
6445 fi
6446 DATE=$ac_cv_path_DATE
6447 if test -n "$DATE"; then
6448   { echo "$as_me:$LINENO: result: $DATE" >&5
6449 echo "${ECHO_T}$DATE" >&6; }
6450 else
6451   { echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6; }
6453 fi
6454
6455
6456 # Extract the first word of "find", so it can be a program name with args.
6457 set dummy find; ac_word=$2
6458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460 if test "${ac_cv_path_FIND+set}" = set; then
6461   echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463   case $FIND in
6464   [\\/]* | ?:[\\/]*)
6465   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6466   ;;
6467   *)
6468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471   IFS=$as_save_IFS
6472   test -z "$as_dir" && as_dir=.
6473   for ac_exec_ext in '' $ac_executable_extensions; do
6474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6475     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477     break 2
6478   fi
6479 done
6480 done
6481 IFS=$as_save_IFS
6482
6483   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6484   ;;
6485 esac
6486 fi
6487 FIND=$ac_cv_path_FIND
6488 if test -n "$FIND"; then
6489   { echo "$as_me:$LINENO: result: $FIND" >&5
6490 echo "${ECHO_T}$FIND" >&6; }
6491 else
6492   { echo "$as_me:$LINENO: result: no" >&5
6493 echo "${ECHO_T}no" >&6; }
6494 fi
6495
6496
6497 # Extract the first word of "grep", so it can be a program name with args.
6498 set dummy grep; ac_word=$2
6499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6501 if test "${ac_cv_path_GREP+set}" = set; then
6502   echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504   case $GREP in
6505   [\\/]* | ?:[\\/]*)
6506   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6507   ;;
6508   *)
6509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6511 do
6512   IFS=$as_save_IFS
6513   test -z "$as_dir" && as_dir=.
6514   for ac_exec_ext in '' $ac_executable_extensions; do
6515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6518     break 2
6519   fi
6520 done
6521 done
6522 IFS=$as_save_IFS
6523
6524   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6525   ;;
6526 esac
6527 fi
6528 GREP=$ac_cv_path_GREP
6529 if test -n "$GREP"; then
6530   { echo "$as_me:$LINENO: result: $GREP" >&5
6531 echo "${ECHO_T}$GREP" >&6; }
6532 else
6533   { echo "$as_me:$LINENO: result: no" >&5
6534 echo "${ECHO_T}no" >&6; }
6535 fi
6536
6537
6538 # Extract the first word of "mkdir", so it can be a program name with args.
6539 set dummy mkdir; ac_word=$2
6540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542 if test "${ac_cv_path_MKDIR+set}" = set; then
6543   echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545   case $MKDIR in
6546   [\\/]* | ?:[\\/]*)
6547   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6548   ;;
6549   *)
6550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553   IFS=$as_save_IFS
6554   test -z "$as_dir" && as_dir=.
6555   for ac_exec_ext in '' $ac_executable_extensions; do
6556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6557     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559     break 2
6560   fi
6561 done
6562 done
6563 IFS=$as_save_IFS
6564
6565   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6566   ;;
6567 esac
6568 fi
6569 MKDIR=$ac_cv_path_MKDIR
6570 if test -n "$MKDIR"; then
6571   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6572 echo "${ECHO_T}$MKDIR" >&6; }
6573 else
6574   { echo "$as_me:$LINENO: result: no" >&5
6575 echo "${ECHO_T}no" >&6; }
6576 fi
6577
6578
6579 # Extract the first word of "mv", so it can be a program name with args.
6580 set dummy mv; ac_word=$2
6581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6583 if test "${ac_cv_path_MV+set}" = set; then
6584   echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586   case $MV in
6587   [\\/]* | ?:[\\/]*)
6588   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6589   ;;
6590   *)
6591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594   IFS=$as_save_IFS
6595   test -z "$as_dir" && as_dir=.
6596   for ac_exec_ext in '' $ac_executable_extensions; do
6597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600     break 2
6601   fi
6602 done
6603 done
6604 IFS=$as_save_IFS
6605
6606   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6607   ;;
6608 esac
6609 fi
6610 MV=$ac_cv_path_MV
6611 if test -n "$MV"; then
6612   { echo "$as_me:$LINENO: result: $MV" >&5
6613 echo "${ECHO_T}$MV" >&6; }
6614 else
6615   { echo "$as_me:$LINENO: result: no" >&5
6616 echo "${ECHO_T}no" >&6; }
6617 fi
6618
6619
6620 if test -n "$ac_tool_prefix"; then
6621   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6622 set dummy ${ac_tool_prefix}ranlib; 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_prog_RANLIB+set}" = set; then
6626   echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628   if test -n "$RANLIB"; then
6629   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6630 else
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6633 do
6634   IFS=$as_save_IFS
6635   test -z "$as_dir" && as_dir=.
6636   for ac_exec_ext in '' $ac_executable_extensions; do
6637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6638     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640     break 2
6641   fi
6642 done
6643 done
6644 IFS=$as_save_IFS
6645
6646 fi
6647 fi
6648 RANLIB=$ac_cv_prog_RANLIB
6649 if test -n "$RANLIB"; then
6650   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6651 echo "${ECHO_T}$RANLIB" >&6; }
6652 else
6653   { echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6; }
6655 fi
6656
6657
6658 fi
6659 if test -z "$ac_cv_prog_RANLIB"; then
6660   ac_ct_RANLIB=$RANLIB
6661   # Extract the first word of "ranlib", so it can be a program name with args.
6662 set dummy ranlib; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   if test -n "$ac_ct_RANLIB"; then
6669   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674   IFS=$as_save_IFS
6675   test -z "$as_dir" && as_dir=.
6676   for ac_exec_ext in '' $ac_executable_extensions; do
6677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678     ac_cv_prog_ac_ct_RANLIB="ranlib"
6679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680     break 2
6681   fi
6682 done
6683 done
6684 IFS=$as_save_IFS
6685
6686 fi
6687 fi
6688 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6689 if test -n "$ac_ct_RANLIB"; then
6690   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6691 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6692 else
6693   { echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6; }
6695 fi
6696
6697   if test "x$ac_ct_RANLIB" = x; then
6698     RANLIB=":"
6699   else
6700     case $cross_compiling:$ac_tool_warned in
6701 yes:)
6702 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6703 whose name does not start with the host triplet.  If you think this
6704 configuration is useful to you, please write to autoconf@gnu.org." >&5
6705 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6706 whose name does not start with the host triplet.  If you think this
6707 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6708 ac_tool_warned=yes ;;
6709 esac
6710     RANLIB=$ac_ct_RANLIB
6711   fi
6712 else
6713   RANLIB="$ac_cv_prog_RANLIB"
6714 fi
6715
6716 # Extract the first word of "rm", so it can be a program name with args.
6717 set dummy rm; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_path_RM+set}" = set; then
6721   echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723   case $RM in
6724   [\\/]* | ?:[\\/]*)
6725   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6726   ;;
6727   *)
6728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731   IFS=$as_save_IFS
6732   test -z "$as_dir" && as_dir=.
6733   for ac_exec_ext in '' $ac_executable_extensions; do
6734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737     break 2
6738   fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6744   ;;
6745 esac
6746 fi
6747 RM=$ac_cv_path_RM
6748 if test -n "$RM"; then
6749   { echo "$as_me:$LINENO: result: $RM" >&5
6750 echo "${ECHO_T}$RM" >&6; }
6751 else
6752   { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6754 fi
6755
6756
6757 # Extract the first word of "sed", so it can be a program name with args.
6758 set dummy sed; ac_word=$2
6759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761 if test "${ac_cv_path_SED+set}" = set; then
6762   echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764   case $SED in
6765   [\\/]* | ?:[\\/]*)
6766   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6767   ;;
6768   *)
6769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772   IFS=$as_save_IFS
6773   test -z "$as_dir" && as_dir=.
6774   for ac_exec_ext in '' $ac_executable_extensions; do
6775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778     break 2
6779   fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6785   ;;
6786 esac
6787 fi
6788 SED=$ac_cv_path_SED
6789 if test -n "$SED"; then
6790   { echo "$as_me:$LINENO: result: $SED" >&5
6791 echo "${ECHO_T}$SED" >&6; }
6792 else
6793   { echo "$as_me:$LINENO: result: no" >&5
6794 echo "${ECHO_T}no" >&6; }
6795 fi
6796
6797
6798 # Extract the first word of "tar", so it can be a program name with args.
6799 set dummy tar; ac_word=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_path_TAR+set}" = set; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805   case $TAR in
6806   [\\/]* | ?:[\\/]*)
6807   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6808   ;;
6809   *)
6810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813   IFS=$as_save_IFS
6814   test -z "$as_dir" && as_dir=.
6815   for ac_exec_ext in '' $ac_executable_extensions; do
6816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819     break 2
6820   fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6826   ;;
6827 esac
6828 fi
6829 TAR=$ac_cv_path_TAR
6830 if test -n "$TAR"; then
6831   { echo "$as_me:$LINENO: result: $TAR" >&5
6832 echo "${ECHO_T}$TAR" >&6; }
6833 else
6834   { echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6; }
6836 fi
6837
6838
6839 # Extract the first word of "pwd", so it can be a program name with args.
6840 set dummy pwd; ac_word=$2
6841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843 if test "${ac_cv_path_BINPWD+set}" = set; then
6844   echo $ECHO_N "(cached) $ECHO_C" >&6
6845 else
6846   case $BINPWD in
6847   [\\/]* | ?:[\\/]*)
6848   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6849   ;;
6850   *)
6851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 for as_dir in $PATH
6853 do
6854   IFS=$as_save_IFS
6855   test -z "$as_dir" && as_dir=.
6856   for ac_exec_ext in '' $ac_executable_extensions; do
6857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6858     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860     break 2
6861   fi
6862 done
6863 done
6864 IFS=$as_save_IFS
6865
6866   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6867   ;;
6868 esac
6869 fi
6870 BINPWD=$ac_cv_path_BINPWD
6871 if test -n "$BINPWD"; then
6872   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6873 echo "${ECHO_T}$BINPWD" >&6; }
6874 else
6875   { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6877 fi
6878
6879
6880
6881 # Extract the first word of "Graphviz", so it can be a program name with args.
6882 set dummy Graphviz; 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_GRAPHVIZ+set}" = set; then
6886   echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888   case $GRAPHVIZ in
6889   [\\/]* | ?:[\\/]*)
6890   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # 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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6900     ac_cv_path_GRAPHVIZ="$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_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6909   ;;
6910 esac
6911 fi
6912 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6913 if test -n "$GRAPHVIZ"; then
6914   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6915 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6916 else
6917   { echo "$as_me:$LINENO: result: no" >&5
6918 echo "${ECHO_T}no" >&6; }
6919 fi
6920
6921
6922 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6923
6924 cat >>confdefs.h <<\_ACEOF
6925 #define HAVE_GRAPHVIZ 1
6926 _ACEOF
6927
6928     if test "$llvm_cv_os_type" = "MingW" ; then
6929     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6930   fi
6931
6932 cat >>confdefs.h <<_ACEOF
6933 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6934 _ACEOF
6935
6936 fi
6937 # Extract the first word of "dot", so it can be a program name with args.
6938 set dummy dot; ac_word=$2
6939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6941 if test "${ac_cv_path_DOT+set}" = set; then
6942   echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944   case $DOT in
6945   [\\/]* | ?:[\\/]*)
6946   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6947   ;;
6948   *)
6949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952   IFS=$as_save_IFS
6953   test -z "$as_dir" && as_dir=.
6954   for ac_exec_ext in '' $ac_executable_extensions; do
6955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6956     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958     break 2
6959   fi
6960 done
6961 done
6962 IFS=$as_save_IFS
6963
6964   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6965   ;;
6966 esac
6967 fi
6968 DOT=$ac_cv_path_DOT
6969 if test -n "$DOT"; then
6970   { echo "$as_me:$LINENO: result: $DOT" >&5
6971 echo "${ECHO_T}$DOT" >&6; }
6972 else
6973   { echo "$as_me:$LINENO: result: no" >&5
6974 echo "${ECHO_T}no" >&6; }
6975 fi
6976
6977
6978 if test "$DOT" != "echo dot" ; then
6979
6980 cat >>confdefs.h <<\_ACEOF
6981 #define HAVE_DOT 1
6982 _ACEOF
6983
6984     if test "$llvm_cv_os_type" = "MingW" ; then
6985     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6986   fi
6987
6988 cat >>confdefs.h <<_ACEOF
6989 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6990 _ACEOF
6991
6992 fi
6993 for ac_prog in gv gsview32
6994 do
6995   # Extract the first word of "$ac_prog", so it can be a program name with args.
6996 set dummy $ac_prog; ac_word=$2
6997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6999 if test "${ac_cv_path_GV+set}" = set; then
7000   echo $ECHO_N "(cached) $ECHO_C" >&6
7001 else
7002   case $GV in
7003   [\\/]* | ?:[\\/]*)
7004   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7005   ;;
7006   *)
7007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH
7009 do
7010   IFS=$as_save_IFS
7011   test -z "$as_dir" && as_dir=.
7012   for ac_exec_ext in '' $ac_executable_extensions; do
7013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7014     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7016     break 2
7017   fi
7018 done
7019 done
7020 IFS=$as_save_IFS
7021
7022   ;;
7023 esac
7024 fi
7025 GV=$ac_cv_path_GV
7026 if test -n "$GV"; then
7027   { echo "$as_me:$LINENO: result: $GV" >&5
7028 echo "${ECHO_T}$GV" >&6; }
7029 else
7030   { echo "$as_me:$LINENO: result: no" >&5
7031 echo "${ECHO_T}no" >&6; }
7032 fi
7033
7034
7035   test -n "$GV" && break
7036 done
7037 test -n "$GV" || GV="echo gv"
7038
7039 if test "$GV" != "echo gv" ; then
7040
7041 cat >>confdefs.h <<\_ACEOF
7042 #define HAVE_GV 1
7043 _ACEOF
7044
7045     if test "$llvm_cv_os_type" = "MingW" ; then
7046     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7047   fi
7048
7049 cat >>confdefs.h <<_ACEOF
7050 #define LLVM_PATH_GV "$GV${EXEEXT}"
7051 _ACEOF
7052
7053 fi
7054 # Extract the first word of "dotty", so it can be a program name with args.
7055 set dummy dotty; ac_word=$2
7056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7058 if test "${ac_cv_path_DOTTY+set}" = set; then
7059   echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061   case $DOTTY in
7062   [\\/]* | ?:[\\/]*)
7063   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7064   ;;
7065   *)
7066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069   IFS=$as_save_IFS
7070   test -z "$as_dir" && as_dir=.
7071   for ac_exec_ext in '' $ac_executable_extensions; do
7072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075     break 2
7076   fi
7077 done
7078 done
7079 IFS=$as_save_IFS
7080
7081   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7082   ;;
7083 esac
7084 fi
7085 DOTTY=$ac_cv_path_DOTTY
7086 if test -n "$DOTTY"; then
7087   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7088 echo "${ECHO_T}$DOTTY" >&6; }
7089 else
7090   { echo "$as_me:$LINENO: result: no" >&5
7091 echo "${ECHO_T}no" >&6; }
7092 fi
7093
7094
7095 if test "$DOTTY" != "echo dotty" ; then
7096
7097 cat >>confdefs.h <<\_ACEOF
7098 #define HAVE_DOTTY 1
7099 _ACEOF
7100
7101     if test "$llvm_cv_os_type" = "MingW" ; then
7102     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7103   fi
7104
7105 cat >>confdefs.h <<_ACEOF
7106 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7107 _ACEOF
7108
7109 fi
7110
7111
7112 # Extract the first word of "perl", so it can be a program name with args.
7113 set dummy perl; ac_word=$2
7114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7116 if test "${ac_cv_path_PERL+set}" = set; then
7117   echo $ECHO_N "(cached) $ECHO_C" >&6
7118 else
7119   case $PERL in
7120   [\\/]* | ?:[\\/]*)
7121   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7122   ;;
7123   *)
7124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7126 do
7127   IFS=$as_save_IFS
7128   test -z "$as_dir" && as_dir=.
7129   for ac_exec_ext in '' $ac_executable_extensions; do
7130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7131     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133     break 2
7134   fi
7135 done
7136 done
7137 IFS=$as_save_IFS
7138
7139   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7140   ;;
7141 esac
7142 fi
7143 PERL=$ac_cv_path_PERL
7144 if test -n "$PERL"; then
7145   { echo "$as_me:$LINENO: result: $PERL" >&5
7146 echo "${ECHO_T}$PERL" >&6; }
7147 else
7148   { echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6; }
7150 fi
7151
7152
7153 if test "$PERL" != "none"; then
7154   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7155 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7156   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7157     { echo "$as_me:$LINENO: result: yes" >&5
7158 echo "${ECHO_T}yes" >&6; }
7159   else
7160     PERL=none
7161     { echo "$as_me:$LINENO: result: not found" >&5
7162 echo "${ECHO_T}not found" >&6; }
7163   fi
7164 fi
7165
7166
7167 if test x"$PERL" = xnone; then
7168    HAVE_PERL=0
7169
7170    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7171 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7172    { (exit 1); exit 1; }; }
7173 else
7174    HAVE_PERL=1
7175
7176 fi
7177
7178 # Find a good install program.  We prefer a C program (faster),
7179 # so one script is as good as another.  But avoid the broken or
7180 # incompatible versions:
7181 # SysV /etc/install, /usr/sbin/install
7182 # SunOS /usr/etc/install
7183 # IRIX /sbin/install
7184 # AIX /bin/install
7185 # AmigaOS /C/install, which installs bootblocks on floppy discs
7186 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7187 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7188 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7189 # OS/2's system install, which has a completely different semantic
7190 # ./install, which can be erroneously created by make from ./install.sh.
7191 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7192 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7193 if test -z "$INSTALL"; then
7194 if test "${ac_cv_path_install+set}" = set; then
7195   echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7199 do
7200   IFS=$as_save_IFS
7201   test -z "$as_dir" && as_dir=.
7202   # Account for people who put trailing slashes in PATH elements.
7203 case $as_dir/ in
7204   ./ | .// | /cC/* | \
7205   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7206   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7207   /usr/ucb/* ) ;;
7208   *)
7209     # OSF1 and SCO ODT 3.0 have their own names for install.
7210     # Don't use installbsd from OSF since it installs stuff as root
7211     # by default.
7212     for ac_prog in ginstall scoinst install; do
7213       for ac_exec_ext in '' $ac_executable_extensions; do
7214         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7215           if test $ac_prog = install &&
7216             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7217             # AIX install.  It has an incompatible calling convention.
7218             :
7219           elif test $ac_prog = install &&
7220             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7221             # program-specific install script used by HP pwplus--don't use.
7222             :
7223           else
7224             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7225             break 3
7226           fi
7227         fi
7228       done
7229     done
7230     ;;
7231 esac
7232 done
7233 IFS=$as_save_IFS
7234
7235
7236 fi
7237   if test "${ac_cv_path_install+set}" = set; then
7238     INSTALL=$ac_cv_path_install
7239   else
7240     # As a last resort, use the slow shell script.  Don't cache a
7241     # value for INSTALL within a source directory, because that will
7242     # break other packages using the cache if that directory is
7243     # removed, or if the value is a relative name.
7244     INSTALL=$ac_install_sh
7245   fi
7246 fi
7247 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7248 echo "${ECHO_T}$INSTALL" >&6; }
7249
7250 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7251 # It thinks the first close brace ends the variable substitution.
7252 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7253
7254 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7255
7256 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7257
7258
7259 # Extract the first word of "bzip2", so it can be a program name with args.
7260 set dummy bzip2; ac_word=$2
7261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7263 if test "${ac_cv_path_BZIP2+set}" = set; then
7264   echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266   case $BZIP2 in
7267   [\\/]* | ?:[\\/]*)
7268   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7269   ;;
7270   *)
7271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7273 do
7274   IFS=$as_save_IFS
7275   test -z "$as_dir" && as_dir=.
7276   for ac_exec_ext in '' $ac_executable_extensions; do
7277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7278     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280     break 2
7281   fi
7282 done
7283 done
7284 IFS=$as_save_IFS
7285
7286   ;;
7287 esac
7288 fi
7289 BZIP2=$ac_cv_path_BZIP2
7290 if test -n "$BZIP2"; then
7291   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7292 echo "${ECHO_T}$BZIP2" >&6; }
7293 else
7294   { echo "$as_me:$LINENO: result: no" >&5
7295 echo "${ECHO_T}no" >&6; }
7296 fi
7297
7298
7299 # Extract the first word of "doxygen", so it can be a program name with args.
7300 set dummy doxygen; ac_word=$2
7301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7304   echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306   case $DOXYGEN in
7307   [\\/]* | ?:[\\/]*)
7308   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7309   ;;
7310   *)
7311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314   IFS=$as_save_IFS
7315   test -z "$as_dir" && as_dir=.
7316   for ac_exec_ext in '' $ac_executable_extensions; do
7317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321   fi
7322 done
7323 done
7324 IFS=$as_save_IFS
7325
7326   ;;
7327 esac
7328 fi
7329 DOXYGEN=$ac_cv_path_DOXYGEN
7330 if test -n "$DOXYGEN"; then
7331   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7332 echo "${ECHO_T}$DOXYGEN" >&6; }
7333 else
7334   { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7336 fi
7337
7338
7339 # Extract the first word of "groff", so it can be a program name with args.
7340 set dummy groff; ac_word=$2
7341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7343 if test "${ac_cv_path_GROFF+set}" = set; then
7344   echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346   case $GROFF in
7347   [\\/]* | ?:[\\/]*)
7348   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7349   ;;
7350   *)
7351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354   IFS=$as_save_IFS
7355   test -z "$as_dir" && as_dir=.
7356   for ac_exec_ext in '' $ac_executable_extensions; do
7357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360     break 2
7361   fi
7362 done
7363 done
7364 IFS=$as_save_IFS
7365
7366   ;;
7367 esac
7368 fi
7369 GROFF=$ac_cv_path_GROFF
7370 if test -n "$GROFF"; then
7371   { echo "$as_me:$LINENO: result: $GROFF" >&5
7372 echo "${ECHO_T}$GROFF" >&6; }
7373 else
7374   { echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6; }
7376 fi
7377
7378
7379 # Extract the first word of "gzip", so it can be a program name with args.
7380 set dummy gzip; ac_word=$2
7381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383 if test "${ac_cv_path_GZIP+set}" = set; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386   case $GZIP in
7387   [\\/]* | ?:[\\/]*)
7388   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7389   ;;
7390   *)
7391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394   IFS=$as_save_IFS
7395   test -z "$as_dir" && as_dir=.
7396   for ac_exec_ext in '' $ac_executable_extensions; do
7397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7398     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400     break 2
7401   fi
7402 done
7403 done
7404 IFS=$as_save_IFS
7405
7406   ;;
7407 esac
7408 fi
7409 GZIP=$ac_cv_path_GZIP
7410 if test -n "$GZIP"; then
7411   { echo "$as_me:$LINENO: result: $GZIP" >&5
7412 echo "${ECHO_T}$GZIP" >&6; }
7413 else
7414   { echo "$as_me:$LINENO: result: no" >&5
7415 echo "${ECHO_T}no" >&6; }
7416 fi
7417
7418
7419 # Extract the first word of "pod2html", so it can be a program name with args.
7420 set dummy pod2html; ac_word=$2
7421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7423 if test "${ac_cv_path_POD2HTML+set}" = set; then
7424   echo $ECHO_N "(cached) $ECHO_C" >&6
7425 else
7426   case $POD2HTML in
7427   [\\/]* | ?:[\\/]*)
7428   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7429   ;;
7430   *)
7431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH
7433 do
7434   IFS=$as_save_IFS
7435   test -z "$as_dir" && as_dir=.
7436   for ac_exec_ext in '' $ac_executable_extensions; do
7437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7438     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440     break 2
7441   fi
7442 done
7443 done
7444 IFS=$as_save_IFS
7445
7446   ;;
7447 esac
7448 fi
7449 POD2HTML=$ac_cv_path_POD2HTML
7450 if test -n "$POD2HTML"; then
7451   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7452 echo "${ECHO_T}$POD2HTML" >&6; }
7453 else
7454   { echo "$as_me:$LINENO: result: no" >&5
7455 echo "${ECHO_T}no" >&6; }
7456 fi
7457
7458
7459 # Extract the first word of "pod2man", so it can be a program name with args.
7460 set dummy pod2man; ac_word=$2
7461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7463 if test "${ac_cv_path_POD2MAN+set}" = set; then
7464   echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466   case $POD2MAN in
7467   [\\/]* | ?:[\\/]*)
7468   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7469   ;;
7470   *)
7471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 for as_dir in $PATH
7473 do
7474   IFS=$as_save_IFS
7475   test -z "$as_dir" && as_dir=.
7476   for ac_exec_ext in '' $ac_executable_extensions; do
7477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7478     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480     break 2
7481   fi
7482 done
7483 done
7484 IFS=$as_save_IFS
7485
7486   ;;
7487 esac
7488 fi
7489 POD2MAN=$ac_cv_path_POD2MAN
7490 if test -n "$POD2MAN"; then
7491   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7492 echo "${ECHO_T}$POD2MAN" >&6; }
7493 else
7494   { echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6; }
7496 fi
7497
7498
7499 # Extract the first word of "runtest", so it can be a program name with args.
7500 set dummy runtest; ac_word=$2
7501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503 if test "${ac_cv_path_RUNTEST+set}" = set; then
7504   echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506   case $RUNTEST in
7507   [\\/]* | ?:[\\/]*)
7508   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7509   ;;
7510   *)
7511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514   IFS=$as_save_IFS
7515   test -z "$as_dir" && as_dir=.
7516   for ac_exec_ext in '' $ac_executable_extensions; do
7517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7518     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520     break 2
7521   fi
7522 done
7523 done
7524 IFS=$as_save_IFS
7525
7526   ;;
7527 esac
7528 fi
7529 RUNTEST=$ac_cv_path_RUNTEST
7530 if test -n "$RUNTEST"; then
7531   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7532 echo "${ECHO_T}$RUNTEST" >&6; }
7533 else
7534   { echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6; }
7536 fi
7537
7538
7539
7540 no_itcl=true
7541 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7542 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7543
7544 # Check whether --with-tclinclude was given.
7545 if test "${with_tclinclude+set}" = set; then
7546   withval=$with_tclinclude; with_tclinclude=${withval}
7547 else
7548   with_tclinclude=''
7549 fi
7550
7551 if test "${ac_cv_path_tclsh+set}" = set; then
7552   echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554
7555 if test x"${with_tclinclude}" != x ; then
7556   if test -f ${with_tclinclude}/tclsh ; then
7557     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7558   elif test -f ${with_tclinclude}/src/tclsh ; then
7559     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7560   else
7561     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7562 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7563    { (exit 1); exit 1; }; }
7564   fi
7565 fi
7566
7567 if test x"${ac_cv_path_tclsh}" = x ; then
7568   { echo "$as_me:$LINENO: result: none" >&5
7569 echo "${ECHO_T}none" >&6; }
7570   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
7571 do
7572   # Extract the first word of "$ac_prog", so it can be a program name with args.
7573 set dummy $ac_prog; ac_word=$2
7574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576 if test "${ac_cv_path_TCLSH+set}" = set; then
7577   echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579   case $TCLSH in
7580   [\\/]* | ?:[\\/]*)
7581   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7582   ;;
7583   *)
7584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587   IFS=$as_save_IFS
7588   test -z "$as_dir" && as_dir=.
7589   for ac_exec_ext in '' $ac_executable_extensions; do
7590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593     break 2
7594   fi
7595 done
7596 done
7597 IFS=$as_save_IFS
7598
7599   ;;
7600 esac
7601 fi
7602 TCLSH=$ac_cv_path_TCLSH
7603 if test -n "$TCLSH"; then
7604   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7605 echo "${ECHO_T}$TCLSH" >&6; }
7606 else
7607   { echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6; }
7609 fi
7610
7611
7612   test -n "$TCLSH" && break
7613 done
7614
7615   if test x"${TCLSH}" = x ; then
7616     ac_cv_path_tclsh='';
7617   else
7618     ac_cv_path_tclsh="${TCLSH}";
7619   fi
7620 else
7621   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7622 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7623   TCLSH="${ac_cv_path_tclsh}"
7624
7625 fi
7626
7627 fi
7628
7629 # Extract the first word of "zip", so it can be a program name with args.
7630 set dummy zip; ac_word=$2
7631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7633 if test "${ac_cv_path_ZIP+set}" = set; then
7634   echo $ECHO_N "(cached) $ECHO_C" >&6
7635 else
7636   case $ZIP in
7637   [\\/]* | ?:[\\/]*)
7638   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7639   ;;
7640   *)
7641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7643 do
7644   IFS=$as_save_IFS
7645   test -z "$as_dir" && as_dir=.
7646   for ac_exec_ext in '' $ac_executable_extensions; do
7647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7648     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7650     break 2
7651   fi
7652 done
7653 done
7654 IFS=$as_save_IFS
7655
7656   ;;
7657 esac
7658 fi
7659 ZIP=$ac_cv_path_ZIP
7660 if test -n "$ZIP"; then
7661   { echo "$as_me:$LINENO: result: $ZIP" >&5
7662 echo "${ECHO_T}$ZIP" >&6; }
7663 else
7664   { echo "$as_me:$LINENO: result: no" >&5
7665 echo "${ECHO_T}no" >&6; }
7666 fi
7667
7668
7669 for ac_prog in ocamlc.opt ocamlc
7670 do
7671   # Extract the first word of "$ac_prog", so it can be a program name with args.
7672 set dummy $ac_prog; ac_word=$2
7673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7675 if test "${ac_cv_path_OCAMLC+set}" = set; then
7676   echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
7678   case $OCAMLC in
7679   [\\/]* | ?:[\\/]*)
7680   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7681   ;;
7682   *)
7683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7685 do
7686   IFS=$as_save_IFS
7687   test -z "$as_dir" && as_dir=.
7688   for ac_exec_ext in '' $ac_executable_extensions; do
7689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7690     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692     break 2
7693   fi
7694 done
7695 done
7696 IFS=$as_save_IFS
7697
7698   ;;
7699 esac
7700 fi
7701 OCAMLC=$ac_cv_path_OCAMLC
7702 if test -n "$OCAMLC"; then
7703   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7704 echo "${ECHO_T}$OCAMLC" >&6; }
7705 else
7706   { echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6; }
7708 fi
7709
7710
7711   test -n "$OCAMLC" && break
7712 done
7713
7714 for ac_prog in ocamlopt.opt ocamlopt
7715 do
7716   # Extract the first word of "$ac_prog", so it can be a program name with args.
7717 set dummy $ac_prog; ac_word=$2
7718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7720 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7721   echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7723   case $OCAMLOPT in
7724   [\\/]* | ?:[\\/]*)
7725   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7726   ;;
7727   *)
7728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 for as_dir in $PATH
7730 do
7731   IFS=$as_save_IFS
7732   test -z "$as_dir" && as_dir=.
7733   for ac_exec_ext in '' $ac_executable_extensions; do
7734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7735     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7737     break 2
7738   fi
7739 done
7740 done
7741 IFS=$as_save_IFS
7742
7743   ;;
7744 esac
7745 fi
7746 OCAMLOPT=$ac_cv_path_OCAMLOPT
7747 if test -n "$OCAMLOPT"; then
7748   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7749 echo "${ECHO_T}$OCAMLOPT" >&6; }
7750 else
7751   { echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6; }
7753 fi
7754
7755
7756   test -n "$OCAMLOPT" && break
7757 done
7758
7759 for ac_prog in ocamldep.opt ocamldep
7760 do
7761   # Extract the first word of "$ac_prog", so it can be a program name with args.
7762 set dummy $ac_prog; ac_word=$2
7763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7765 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7766   echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768   case $OCAMLDEP in
7769   [\\/]* | ?:[\\/]*)
7770   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7771   ;;
7772   *)
7773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7775 do
7776   IFS=$as_save_IFS
7777   test -z "$as_dir" && as_dir=.
7778   for ac_exec_ext in '' $ac_executable_extensions; do
7779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7780     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7782     break 2
7783   fi
7784 done
7785 done
7786 IFS=$as_save_IFS
7787
7788   ;;
7789 esac
7790 fi
7791 OCAMLDEP=$ac_cv_path_OCAMLDEP
7792 if test -n "$OCAMLDEP"; then
7793   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7794 echo "${ECHO_T}$OCAMLDEP" >&6; }
7795 else
7796   { echo "$as_me:$LINENO: result: no" >&5
7797 echo "${ECHO_T}no" >&6; }
7798 fi
7799
7800
7801   test -n "$OCAMLDEP" && break
7802 done
7803
7804 for ac_prog in ocamldoc.opt ocamldoc
7805 do
7806   # Extract the first word of "$ac_prog", so it can be a program name with args.
7807 set dummy $ac_prog; ac_word=$2
7808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7810 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7811   echo $ECHO_N "(cached) $ECHO_C" >&6
7812 else
7813   case $OCAMLDOC in
7814   [\\/]* | ?:[\\/]*)
7815   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7816   ;;
7817   *)
7818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 for as_dir in $PATH
7820 do
7821   IFS=$as_save_IFS
7822   test -z "$as_dir" && as_dir=.
7823   for ac_exec_ext in '' $ac_executable_extensions; do
7824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7825     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7827     break 2
7828   fi
7829 done
7830 done
7831 IFS=$as_save_IFS
7832
7833   ;;
7834 esac
7835 fi
7836 OCAMLDOC=$ac_cv_path_OCAMLDOC
7837 if test -n "$OCAMLDOC"; then
7838   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7839 echo "${ECHO_T}$OCAMLDOC" >&6; }
7840 else
7841   { echo "$as_me:$LINENO: result: no" >&5
7842 echo "${ECHO_T}no" >&6; }
7843 fi
7844
7845
7846   test -n "$OCAMLDOC" && break
7847 done
7848
7849 for ac_prog in gas as
7850 do
7851   # Extract the first word of "$ac_prog", so it can be a program name with args.
7852 set dummy $ac_prog; ac_word=$2
7853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7855 if test "${ac_cv_path_GAS+set}" = set; then
7856   echo $ECHO_N "(cached) $ECHO_C" >&6
7857 else
7858   case $GAS in
7859   [\\/]* | ?:[\\/]*)
7860   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7861   ;;
7862   *)
7863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7865 do
7866   IFS=$as_save_IFS
7867   test -z "$as_dir" && as_dir=.
7868   for ac_exec_ext in '' $ac_executable_extensions; do
7869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7870     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7872     break 2
7873   fi
7874 done
7875 done
7876 IFS=$as_save_IFS
7877
7878   ;;
7879 esac
7880 fi
7881 GAS=$ac_cv_path_GAS
7882 if test -n "$GAS"; then
7883   { echo "$as_me:$LINENO: result: $GAS" >&5
7884 echo "${ECHO_T}$GAS" >&6; }
7885 else
7886   { echo "$as_me:$LINENO: result: no" >&5
7887 echo "${ECHO_T}no" >&6; }
7888 fi
7889
7890
7891   test -n "$GAS" && break
7892 done
7893
7894
7895 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7896 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7897 if test "${llvm_cv_link_use_r+set}" = set; then
7898   echo $ECHO_N "(cached) $ECHO_C" >&6
7899 else
7900    ac_ext=c
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905
7906   oldcflags="$CFLAGS"
7907   CFLAGS="$CFLAGS -Wl,-R."
7908   cat >conftest.$ac_ext <<_ACEOF
7909 /* confdefs.h.  */
7910 _ACEOF
7911 cat confdefs.h >>conftest.$ac_ext
7912 cat >>conftest.$ac_ext <<_ACEOF
7913 /* end confdefs.h.  */
7914
7915 int
7916 main ()
7917 {
7918 int main() { return 0; }
7919   ;
7920   return 0;
7921 }
7922 _ACEOF
7923 rm -f conftest.$ac_objext conftest$ac_exeext
7924 if { (ac_try="$ac_link"
7925 case "(($ac_try" in
7926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927   *) ac_try_echo=$ac_try;;
7928 esac
7929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930   (eval "$ac_link") 2>conftest.er1
7931   ac_status=$?
7932   grep -v '^ *+' conftest.er1 >conftest.err
7933   rm -f conftest.er1
7934   cat conftest.err >&5
7935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936   (exit $ac_status); } && {
7937          test -z "$ac_c_werror_flag" ||
7938          test ! -s conftest.err
7939        } && test -s conftest$ac_exeext &&
7940        $as_test_x conftest$ac_exeext; then
7941   llvm_cv_link_use_r=yes
7942 else
7943   echo "$as_me: failed program was:" >&5
7944 sed 's/^/| /' conftest.$ac_ext >&5
7945
7946         llvm_cv_link_use_r=no
7947 fi
7948
7949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7950       conftest$ac_exeext conftest.$ac_ext
7951   CFLAGS="$oldcflags"
7952   ac_ext=c
7953 ac_cpp='$CPP $CPPFLAGS'
7954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7957
7958
7959 fi
7960 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7961 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7962 if test "$llvm_cv_link_use_r" = yes ; then
7963
7964 cat >>confdefs.h <<\_ACEOF
7965 #define HAVE_LINK_R 1
7966 _ACEOF
7967
7968   fi
7969
7970
7971
7972
7973 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7974 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7975 if test "${ac_cv_c_const+set}" = set; then
7976   echo $ECHO_N "(cached) $ECHO_C" >&6
7977 else
7978   cat >conftest.$ac_ext <<_ACEOF
7979 /* confdefs.h.  */
7980 _ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h.  */
7984
7985 int
7986 main ()
7987 {
7988 /* FIXME: Include the comments suggested by Paul. */
7989 #ifndef __cplusplus
7990   /* Ultrix mips cc rejects this.  */
7991   typedef int charset[2];
7992   const charset cs;
7993   /* SunOS 4.1.1 cc rejects this.  */
7994   char const *const *pcpcc;
7995   char **ppc;
7996   /* NEC SVR4.0.2 mips cc rejects this.  */
7997   struct point {int x, y;};
7998   static struct point const zero = {0,0};
7999   /* AIX XL C 1.02.0.0 rejects this.
8000      It does not let you subtract one const X* pointer from another in
8001      an arm of an if-expression whose if-part is not a constant
8002      expression */
8003   const char *g = "string";
8004   pcpcc = &g + (g ? g-g : 0);
8005   /* HPUX 7.0 cc rejects these. */
8006   ++pcpcc;
8007   ppc = (char**) pcpcc;
8008   pcpcc = (char const *const *) ppc;
8009   { /* SCO 3.2v4 cc rejects this.  */
8010     char *t;
8011     char const *s = 0 ? (char *) 0 : (char const *) 0;
8012
8013     *t++ = 0;
8014     if (s) return 0;
8015   }
8016   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8017     int x[] = {25, 17};
8018     const int *foo = &x[0];
8019     ++foo;
8020   }
8021   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8022     typedef const int *iptr;
8023     iptr p = 0;
8024     ++p;
8025   }
8026   { /* AIX XL C 1.02.0.0 rejects this saying
8027        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8028     struct s { int j; const int *ap[3]; };
8029     struct s *b; b->j = 5;
8030   }
8031   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8032     const int foo = 10;
8033     if (!foo) return 0;
8034   }
8035   return !cs[0] && !zero.x;
8036 #endif
8037
8038   ;
8039   return 0;
8040 }
8041 _ACEOF
8042 rm -f conftest.$ac_objext
8043 if { (ac_try="$ac_compile"
8044 case "(($ac_try" in
8045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046   *) ac_try_echo=$ac_try;;
8047 esac
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049   (eval "$ac_compile") 2>conftest.er1
8050   ac_status=$?
8051   grep -v '^ *+' conftest.er1 >conftest.err
8052   rm -f conftest.er1
8053   cat conftest.err >&5
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); } && {
8056          test -z "$ac_c_werror_flag" ||
8057          test ! -s conftest.err
8058        } && test -s conftest.$ac_objext; then
8059   ac_cv_c_const=yes
8060 else
8061   echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8063
8064         ac_cv_c_const=no
8065 fi
8066
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068 fi
8069 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8070 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8071 if test $ac_cv_c_const = no; then
8072
8073 cat >>confdefs.h <<\_ACEOF
8074 #define const
8075 _ACEOF
8076
8077 fi
8078
8079
8080
8081
8082
8083
8084 ac_header_dirent=no
8085 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8086   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8087 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8088 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8090   echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092   cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h.  */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h.  */
8098 #include <sys/types.h>
8099 #include <$ac_hdr>
8100
8101 int
8102 main ()
8103 {
8104 if ((DIR *) 0)
8105 return 0;
8106   ;
8107   return 0;
8108 }
8109 _ACEOF
8110 rm -f conftest.$ac_objext
8111 if { (ac_try="$ac_compile"
8112 case "(($ac_try" in
8113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114   *) ac_try_echo=$ac_try;;
8115 esac
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117   (eval "$ac_compile") 2>conftest.er1
8118   ac_status=$?
8119   grep -v '^ *+' conftest.er1 >conftest.err
8120   rm -f conftest.er1
8121   cat conftest.err >&5
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); } && {
8124          test -z "$ac_c_werror_flag" ||
8125          test ! -s conftest.err
8126        } && test -s conftest.$ac_objext; then
8127   eval "$as_ac_Header=yes"
8128 else
8129   echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8131
8132         eval "$as_ac_Header=no"
8133 fi
8134
8135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136 fi
8137 ac_res=`eval echo '${'$as_ac_Header'}'`
8138                { echo "$as_me:$LINENO: result: $ac_res" >&5
8139 echo "${ECHO_T}$ac_res" >&6; }
8140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8141   cat >>confdefs.h <<_ACEOF
8142 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8143 _ACEOF
8144
8145 ac_header_dirent=$ac_hdr; break
8146 fi
8147
8148 done
8149 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8150 if test $ac_header_dirent = dirent.h; then
8151   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8152 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8153 if test "${ac_cv_search_opendir+set}" = set; then
8154   echo $ECHO_N "(cached) $ECHO_C" >&6
8155 else
8156   ac_func_search_save_LIBS=$LIBS
8157 cat >conftest.$ac_ext <<_ACEOF
8158 /* confdefs.h.  */
8159 _ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h.  */
8163
8164 /* Override any GCC internal prototype to avoid an error.
8165    Use char because int might match the return type of a GCC
8166    builtin and then its argument prototype would still apply.  */
8167 #ifdef __cplusplus
8168 extern "C"
8169 #endif
8170 char opendir ();
8171 int
8172 main ()
8173 {
8174 return opendir ();
8175   ;
8176   return 0;
8177 }
8178 _ACEOF
8179 for ac_lib in '' dir; do
8180   if test -z "$ac_lib"; then
8181     ac_res="none required"
8182   else
8183     ac_res=-l$ac_lib
8184     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8185   fi
8186   rm -f conftest.$ac_objext conftest$ac_exeext
8187 if { (ac_try="$ac_link"
8188 case "(($ac_try" in
8189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190   *) ac_try_echo=$ac_try;;
8191 esac
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193   (eval "$ac_link") 2>conftest.er1
8194   ac_status=$?
8195   grep -v '^ *+' conftest.er1 >conftest.err
8196   rm -f conftest.er1
8197   cat conftest.err >&5
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); } && {
8200          test -z "$ac_c_werror_flag" ||
8201          test ! -s conftest.err
8202        } && test -s conftest$ac_exeext &&
8203        $as_test_x conftest$ac_exeext; then
8204   ac_cv_search_opendir=$ac_res
8205 else
8206   echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8208
8209
8210 fi
8211
8212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8213       conftest$ac_exeext
8214   if test "${ac_cv_search_opendir+set}" = set; then
8215   break
8216 fi
8217 done
8218 if test "${ac_cv_search_opendir+set}" = set; then
8219   :
8220 else
8221   ac_cv_search_opendir=no
8222 fi
8223 rm conftest.$ac_ext
8224 LIBS=$ac_func_search_save_LIBS
8225 fi
8226 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8227 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8228 ac_res=$ac_cv_search_opendir
8229 if test "$ac_res" != no; then
8230   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8231
8232 fi
8233
8234 else
8235   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8236 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8237 if test "${ac_cv_search_opendir+set}" = set; then
8238   echo $ECHO_N "(cached) $ECHO_C" >&6
8239 else
8240   ac_func_search_save_LIBS=$LIBS
8241 cat >conftest.$ac_ext <<_ACEOF
8242 /* confdefs.h.  */
8243 _ACEOF
8244 cat confdefs.h >>conftest.$ac_ext
8245 cat >>conftest.$ac_ext <<_ACEOF
8246 /* end confdefs.h.  */
8247
8248 /* Override any GCC internal prototype to avoid an error.
8249    Use char because int might match the return type of a GCC
8250    builtin and then its argument prototype would still apply.  */
8251 #ifdef __cplusplus
8252 extern "C"
8253 #endif
8254 char opendir ();
8255 int
8256 main ()
8257 {
8258 return opendir ();
8259   ;
8260   return 0;
8261 }
8262 _ACEOF
8263 for ac_lib in '' x; do
8264   if test -z "$ac_lib"; then
8265     ac_res="none required"
8266   else
8267     ac_res=-l$ac_lib
8268     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8269   fi
8270   rm -f conftest.$ac_objext conftest$ac_exeext
8271 if { (ac_try="$ac_link"
8272 case "(($ac_try" in
8273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274   *) ac_try_echo=$ac_try;;
8275 esac
8276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277   (eval "$ac_link") 2>conftest.er1
8278   ac_status=$?
8279   grep -v '^ *+' conftest.er1 >conftest.err
8280   rm -f conftest.er1
8281   cat conftest.err >&5
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); } && {
8284          test -z "$ac_c_werror_flag" ||
8285          test ! -s conftest.err
8286        } && test -s conftest$ac_exeext &&
8287        $as_test_x conftest$ac_exeext; then
8288   ac_cv_search_opendir=$ac_res
8289 else
8290   echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8292
8293
8294 fi
8295
8296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8297       conftest$ac_exeext
8298   if test "${ac_cv_search_opendir+set}" = set; then
8299   break
8300 fi
8301 done
8302 if test "${ac_cv_search_opendir+set}" = set; then
8303   :
8304 else
8305   ac_cv_search_opendir=no
8306 fi
8307 rm conftest.$ac_ext
8308 LIBS=$ac_func_search_save_LIBS
8309 fi
8310 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8311 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8312 ac_res=$ac_cv_search_opendir
8313 if test "$ac_res" != no; then
8314   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8315
8316 fi
8317
8318 fi
8319
8320
8321 for ac_header in dlfcn.h
8322 do
8323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8325   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8328   echo $ECHO_N "(cached) $ECHO_C" >&6
8329 fi
8330 ac_res=`eval echo '${'$as_ac_Header'}'`
8331                { echo "$as_me:$LINENO: result: $ac_res" >&5
8332 echo "${ECHO_T}$ac_res" >&6; }
8333 else
8334   # Is the header compilable?
8335 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8337 cat >conftest.$ac_ext <<_ACEOF
8338 /* confdefs.h.  */
8339 _ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h.  */
8343 $ac_includes_default
8344 #include <$ac_header>
8345 _ACEOF
8346 rm -f conftest.$ac_objext
8347 if { (ac_try="$ac_compile"
8348 case "(($ac_try" in
8349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350   *) ac_try_echo=$ac_try;;
8351 esac
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353   (eval "$ac_compile") 2>conftest.er1
8354   ac_status=$?
8355   grep -v '^ *+' conftest.er1 >conftest.err
8356   rm -f conftest.er1
8357   cat conftest.err >&5
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); } && {
8360          test -z "$ac_c_werror_flag" ||
8361          test ! -s conftest.err
8362        } && test -s conftest.$ac_objext; then
8363   ac_header_compiler=yes
8364 else
8365   echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.$ac_ext >&5
8367
8368         ac_header_compiler=no
8369 fi
8370
8371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8373 echo "${ECHO_T}$ac_header_compiler" >&6; }
8374
8375 # Is the header present?
8376 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8378 cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h.  */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h.  */
8384 #include <$ac_header>
8385 _ACEOF
8386 if { (ac_try="$ac_cpp conftest.$ac_ext"
8387 case "(($ac_try" in
8388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389   *) ac_try_echo=$ac_try;;
8390 esac
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8393   ac_status=$?
8394   grep -v '^ *+' conftest.er1 >conftest.err
8395   rm -f conftest.er1
8396   cat conftest.err >&5
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); } >/dev/null && {
8399          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8400          test ! -s conftest.err
8401        }; then
8402   ac_header_preproc=yes
8403 else
8404   echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.$ac_ext >&5
8406
8407   ac_header_preproc=no
8408 fi
8409
8410 rm -f conftest.err conftest.$ac_ext
8411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8412 echo "${ECHO_T}$ac_header_preproc" >&6; }
8413
8414 # So?  What about this header?
8415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8416   yes:no: )
8417     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8421     ac_header_preproc=yes
8422     ;;
8423   no:yes:* )
8424     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8426     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8427 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8428     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8430     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8431 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8434     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8436     ( cat <<\_ASBOX
8437 ## ----------------------------------- ##
8438 ## Report this to llvmbugs@cs.uiuc.edu ##
8439 ## ----------------------------------- ##
8440 _ASBOX
8441      ) | sed "s/^/$as_me: WARNING:     /" >&2
8442     ;;
8443 esac
8444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8447   echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449   eval "$as_ac_Header=\$ac_header_preproc"
8450 fi
8451 ac_res=`eval echo '${'$as_ac_Header'}'`
8452                { echo "$as_me:$LINENO: result: $ac_res" >&5
8453 echo "${ECHO_T}$ac_res" >&6; }
8454
8455 fi
8456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8457   cat >>confdefs.h <<_ACEOF
8458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8459 _ACEOF
8460
8461 fi
8462
8463 done
8464
8465 # Check whether --enable-ltdl-install was given.
8466 if test "${enable_ltdl_install+set}" = set; then
8467   enableval=$enable_ltdl_install;
8468 fi
8469
8470
8471  if test x"${enable_ltdl_install-no}" != xno; then
8472   INSTALL_LTDL_TRUE=
8473   INSTALL_LTDL_FALSE='#'
8474 else
8475   INSTALL_LTDL_TRUE='#'
8476   INSTALL_LTDL_FALSE=
8477 fi
8478
8479  if test x"${enable_ltdl_convenience-no}" != xno; then
8480   CONVENIENCE_LTDL_TRUE=
8481   CONVENIENCE_LTDL_FALSE='#'
8482 else
8483   CONVENIENCE_LTDL_TRUE='#'
8484   CONVENIENCE_LTDL_FALSE=
8485 fi
8486
8487
8488 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8489 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8490 library_names_spec=
8491 libname_spec='lib$name'
8492 soname_spec=
8493 shrext_cmds=".so"
8494 postinstall_cmds=
8495 postuninstall_cmds=
8496 finish_cmds=
8497 finish_eval=
8498 shlibpath_var=
8499 shlibpath_overrides_runpath=unknown
8500 version_type=none
8501 dynamic_linker="$host_os ld.so"
8502 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8503 if test "$GCC" = yes; then
8504   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8505   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8506     # if the path contains ";" then we assume it to be the separator
8507     # otherwise default to the standard path separator (i.e. ":") - it is
8508     # assumed that no part of a normal pathname contains ";" but that should
8509     # okay in the real world where ";" in dirpaths is itself problematic.
8510     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8511   else
8512     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8513   fi
8514 else
8515   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8516 fi
8517 need_lib_prefix=unknown
8518 hardcode_into_libs=no
8519
8520 # when you set need_version to no, make sure it does not cause -set_version
8521 # flags to be left without arguments
8522 need_version=unknown
8523
8524 case $host_os in
8525 aix3*)
8526   version_type=linux
8527   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8528   shlibpath_var=LIBPATH
8529
8530   # AIX 3 has no versioning support, so we append a major version to the name.
8531   soname_spec='${libname}${release}${shared_ext}$major'
8532   ;;
8533
8534 aix4* | aix5*)
8535   version_type=linux
8536   need_lib_prefix=no
8537   need_version=no
8538   hardcode_into_libs=yes
8539   if test "$host_cpu" = ia64; then
8540     # AIX 5 supports IA64
8541     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8542     shlibpath_var=LD_LIBRARY_PATH
8543   else
8544     # With GCC up to 2.95.x, collect2 would create an import file
8545     # for dependence libraries.  The import file would start with
8546     # the line `#! .'.  This would cause the generated library to
8547     # depend on `.', always an invalid library.  This was fixed in
8548     # development snapshots of GCC prior to 3.0.
8549     case $host_os in
8550       aix4 | aix4.[01] | aix4.[01].*)
8551       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8552            echo ' yes '
8553            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8554         :
8555       else
8556         can_build_shared=no
8557       fi
8558       ;;
8559     esac
8560     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8561     # soname into executable. Probably we can add versioning support to
8562     # collect2, so additional links can be useful in future.
8563     if test "$aix_use_runtimelinking" = yes; then
8564       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8565       # instead of lib<name>.a to let people know that these are not
8566       # typical AIX shared libraries.
8567       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8568     else
8569       # We preserve .a as extension for shared libraries through AIX4.2
8570       # and later when we are not doing run time linking.
8571       library_names_spec='${libname}${release}.a $libname.a'
8572       soname_spec='${libname}${release}${shared_ext}$major'
8573     fi
8574     shlibpath_var=LIBPATH
8575   fi
8576   ;;
8577
8578 amigaos*)
8579   library_names_spec='$libname.ixlibrary $libname.a'
8580   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8581   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'
8582   ;;
8583
8584 beos*)
8585   library_names_spec='${libname}${shared_ext}'
8586   dynamic_linker="$host_os ld.so"
8587   shlibpath_var=LIBRARY_PATH
8588   ;;
8589
8590 bsdi[45]*)
8591   version_type=linux
8592   need_version=no
8593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8594   soname_spec='${libname}${release}${shared_ext}$major'
8595   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8596   shlibpath_var=LD_LIBRARY_PATH
8597   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8598   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8599   # the default ld.so.conf also contains /usr/contrib/lib and
8600   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8601   # libtool to hard-code these into programs
8602   ;;
8603
8604 cygwin* | mingw* | pw32*)
8605   version_type=windows
8606   shrext_cmds=".dll"
8607   need_version=no
8608   need_lib_prefix=no
8609
8610   case $GCC,$host_os in
8611   yes,cygwin* | yes,mingw* | yes,pw32*)
8612     library_names_spec='$libname.dll.a'
8613     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8614     postinstall_cmds='base_file=`basename \${file}`~
8615       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8616       dldir=$destdir/`dirname \$dlpath`~
8617       test -d \$dldir || mkdir -p \$dldir~
8618       $install_prog $dir/$dlname \$dldir/$dlname~
8619       chmod a+x \$dldir/$dlname'
8620     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8621       dlpath=$dir/\$dldll~
8622        $rm \$dlpath'
8623     shlibpath_overrides_runpath=yes
8624
8625     case $host_os in
8626     cygwin*)
8627       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8628       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8629       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8630       ;;
8631     mingw*)
8632       # MinGW DLLs use traditional 'lib' prefix
8633       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8634       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8635       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8636         # It is most probably a Windows format PATH printed by
8637         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8638         # path with ; separators, and with drive letters. We can handle the
8639         # drive letters (cygwin fileutils understands them), so leave them,
8640         # especially as we might pass files found there to a mingw objdump,
8641         # which wouldn't understand a cygwinified path. Ahh.
8642         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8643       else
8644         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8645       fi
8646       ;;
8647     pw32*)
8648       # pw32 DLLs use 'pw' prefix rather than 'lib'
8649       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8650       ;;
8651     esac
8652     ;;
8653
8654   *)
8655     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8656     ;;
8657   esac
8658   dynamic_linker='Win32 ld.exe'
8659   # FIXME: first we should search . and the directory the executable is in
8660   shlibpath_var=PATH
8661   ;;
8662
8663 darwin* | rhapsody*)
8664   dynamic_linker="$host_os dyld"
8665   version_type=darwin
8666   need_lib_prefix=no
8667   need_version=no
8668   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8669   soname_spec='${libname}${release}${major}$shared_ext'
8670   shlibpath_overrides_runpath=yes
8671   shlibpath_var=DYLD_LIBRARY_PATH
8672   shrext_cmds='.dylib'
8673   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8674   if test "$GCC" = yes; then
8675     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"`
8676   else
8677     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8678   fi
8679   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8680   ;;
8681
8682 dgux*)
8683   version_type=linux
8684   need_lib_prefix=no
8685   need_version=no
8686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8687   soname_spec='${libname}${release}${shared_ext}$major'
8688   shlibpath_var=LD_LIBRARY_PATH
8689   ;;
8690
8691 freebsd1*)
8692   dynamic_linker=no
8693   ;;
8694
8695 kfreebsd*-gnu)
8696   version_type=linux
8697   need_lib_prefix=no
8698   need_version=no
8699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8700   soname_spec='${libname}${release}${shared_ext}$major'
8701   shlibpath_var=LD_LIBRARY_PATH
8702   shlibpath_overrides_runpath=no
8703   hardcode_into_libs=yes
8704   dynamic_linker='GNU ld.so'
8705   ;;
8706
8707 freebsd* | dragonfly*)
8708   # DragonFly does not have aout.  When/if they implement a new
8709   # versioning mechanism, adjust this.
8710   if test -x /usr/bin/objformat; then
8711     objformat=`/usr/bin/objformat`
8712   else
8713     case $host_os in
8714     freebsd[123]*) objformat=aout ;;
8715     *) objformat=elf ;;
8716     esac
8717   fi
8718   version_type=freebsd-$objformat
8719   case $version_type in
8720     freebsd-elf*)
8721       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8722       need_version=no
8723       need_lib_prefix=no
8724       ;;
8725     freebsd-*)
8726       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8727       need_version=yes
8728       ;;
8729   esac
8730   shlibpath_var=LD_LIBRARY_PATH
8731   case $host_os in
8732   freebsd2*)
8733     shlibpath_overrides_runpath=yes
8734     ;;
8735   freebsd3.[01]* | freebsdelf3.[01]*)
8736     shlibpath_overrides_runpath=yes
8737     hardcode_into_libs=yes
8738     ;;
8739   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8740   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8741     shlibpath_overrides_runpath=no
8742     hardcode_into_libs=yes
8743     ;;
8744   freebsd*) # from 4.6 on
8745     shlibpath_overrides_runpath=yes
8746     hardcode_into_libs=yes
8747     ;;
8748   esac
8749   ;;
8750
8751 gnu*)
8752   version_type=linux
8753   need_lib_prefix=no
8754   need_version=no
8755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8756   soname_spec='${libname}${release}${shared_ext}$major'
8757   shlibpath_var=LD_LIBRARY_PATH
8758   hardcode_into_libs=yes
8759   ;;
8760
8761 hpux9* | hpux10* | hpux11*)
8762   # Give a soname corresponding to the major version so that dld.sl refuses to
8763   # link against other versions.
8764   version_type=sunos
8765   need_lib_prefix=no
8766   need_version=no
8767   case $host_cpu in
8768   ia64*)
8769     shrext_cmds='.so'
8770     hardcode_into_libs=yes
8771     dynamic_linker="$host_os dld.so"
8772     shlibpath_var=LD_LIBRARY_PATH
8773     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8774     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8775     soname_spec='${libname}${release}${shared_ext}$major'
8776     if test "X$HPUX_IA64_MODE" = X32; then
8777       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8778     else
8779       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8780     fi
8781     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8782     ;;
8783    hppa*64*)
8784      shrext_cmds='.sl'
8785      hardcode_into_libs=yes
8786      dynamic_linker="$host_os dld.sl"
8787      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8788      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8789      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8790      soname_spec='${libname}${release}${shared_ext}$major'
8791      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8792      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8793      ;;
8794    *)
8795     shrext_cmds='.sl'
8796     dynamic_linker="$host_os dld.sl"
8797     shlibpath_var=SHLIB_PATH
8798     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8799     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8800     soname_spec='${libname}${release}${shared_ext}$major'
8801     ;;
8802   esac
8803   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8804   postinstall_cmds='chmod 555 $lib'
8805   ;;
8806
8807 interix3*)
8808   version_type=linux
8809   need_lib_prefix=no
8810   need_version=no
8811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8812   soname_spec='${libname}${release}${shared_ext}$major'
8813   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8814   shlibpath_var=LD_LIBRARY_PATH
8815   shlibpath_overrides_runpath=no
8816   hardcode_into_libs=yes
8817   ;;
8818
8819 irix5* | irix6* | nonstopux*)
8820   case $host_os in
8821     nonstopux*) version_type=nonstopux ;;
8822     *)
8823         if test "$lt_cv_prog_gnu_ld" = yes; then
8824                 version_type=linux
8825         else
8826                 version_type=irix
8827         fi ;;
8828   esac
8829   need_lib_prefix=no
8830   need_version=no
8831   soname_spec='${libname}${release}${shared_ext}$major'
8832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8833   case $host_os in
8834   irix5* | nonstopux*)
8835     libsuff= shlibsuff=
8836     ;;
8837   *)
8838     case $LD in # libtool.m4 will add one of these switches to LD
8839     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8840       libsuff= shlibsuff= libmagic=32-bit;;
8841     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8842       libsuff=32 shlibsuff=N32 libmagic=N32;;
8843     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8844       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8845     *) libsuff= shlibsuff= libmagic=never-match;;
8846     esac
8847     ;;
8848   esac
8849   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8850   shlibpath_overrides_runpath=no
8851   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8852   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8853   hardcode_into_libs=yes
8854   ;;
8855
8856 # No shared lib support for Linux oldld, aout, or coff.
8857 linux*oldld* | linux*aout* | linux*coff*)
8858   dynamic_linker=no
8859   ;;
8860
8861 # This must be Linux ELF.
8862 linux*)
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8869   shlibpath_var=LD_LIBRARY_PATH
8870   shlibpath_overrides_runpath=no
8871   # This implies no fast_install, which is unacceptable.
8872   # Some rework will be needed to allow for fast_install
8873   # before this can be enabled.
8874   hardcode_into_libs=yes
8875
8876   # Append ld.so.conf contents to the search path
8877   if test -f /etc/ld.so.conf; then
8878     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' ' '`
8879     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8880   fi
8881
8882   # We used to test for /lib/ld.so.1 and disable shared libraries on
8883   # powerpc, because MkLinux only supported shared libraries with the
8884   # GNU dynamic linker.  Since this was broken with cross compilers,
8885   # most powerpc-linux boxes support dynamic linking these days and
8886   # people can always --disable-shared, the test was removed, and we
8887   # assume the GNU/Linux dynamic linker is in use.
8888   dynamic_linker='GNU/Linux ld.so'
8889   ;;
8890
8891 knetbsd*-gnu)
8892   version_type=linux
8893   need_lib_prefix=no
8894   need_version=no
8895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8896   soname_spec='${libname}${release}${shared_ext}$major'
8897   shlibpath_var=LD_LIBRARY_PATH
8898   shlibpath_overrides_runpath=no
8899   hardcode_into_libs=yes
8900   dynamic_linker='GNU ld.so'
8901   ;;
8902
8903 netbsd*)
8904   version_type=sunos
8905   need_lib_prefix=no
8906   need_version=no
8907   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8909     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8910     dynamic_linker='NetBSD (a.out) ld.so'
8911   else
8912     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8913     soname_spec='${libname}${release}${shared_ext}$major'
8914     dynamic_linker='NetBSD ld.elf_so'
8915   fi
8916   shlibpath_var=LD_LIBRARY_PATH
8917   shlibpath_overrides_runpath=yes
8918   hardcode_into_libs=yes
8919   ;;
8920
8921 newsos6)
8922   version_type=linux
8923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924   shlibpath_var=LD_LIBRARY_PATH
8925   shlibpath_overrides_runpath=yes
8926   ;;
8927
8928 nto-qnx*)
8929   version_type=linux
8930   need_lib_prefix=no
8931   need_version=no
8932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933   soname_spec='${libname}${release}${shared_ext}$major'
8934   shlibpath_var=LD_LIBRARY_PATH
8935   shlibpath_overrides_runpath=yes
8936   ;;
8937
8938 openbsd*)
8939   version_type=sunos
8940   sys_lib_dlsearch_path_spec="/usr/lib"
8941   need_lib_prefix=no
8942   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8943   case $host_os in
8944     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8945     *)                         need_version=no  ;;
8946   esac
8947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8948   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8949   shlibpath_var=LD_LIBRARY_PATH
8950   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8951     case $host_os in
8952       openbsd2.[89] | openbsd2.[89].*)
8953         shlibpath_overrides_runpath=no
8954         ;;
8955       *)
8956         shlibpath_overrides_runpath=yes
8957         ;;
8958       esac
8959   else
8960     shlibpath_overrides_runpath=yes
8961   fi
8962   ;;
8963
8964 os2*)
8965   libname_spec='$name'
8966   shrext_cmds=".dll"
8967   need_lib_prefix=no
8968   library_names_spec='$libname${shared_ext} $libname.a'
8969   dynamic_linker='OS/2 ld.exe'
8970   shlibpath_var=LIBPATH
8971   ;;
8972
8973 osf3* | osf4* | osf5*)
8974   version_type=osf
8975   need_lib_prefix=no
8976   need_version=no
8977   soname_spec='${libname}${release}${shared_ext}$major'
8978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979   shlibpath_var=LD_LIBRARY_PATH
8980   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8981   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8982   ;;
8983
8984 solaris*)
8985   version_type=linux
8986   need_lib_prefix=no
8987   need_version=no
8988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989   soname_spec='${libname}${release}${shared_ext}$major'
8990   shlibpath_var=LD_LIBRARY_PATH
8991   shlibpath_overrides_runpath=yes
8992   hardcode_into_libs=yes
8993   # ldd complains unless libraries are executable
8994   postinstall_cmds='chmod +x $lib'
8995   ;;
8996
8997 sunos4*)
8998   version_type=sunos
8999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9000   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9001   shlibpath_var=LD_LIBRARY_PATH
9002   shlibpath_overrides_runpath=yes
9003   if test "$with_gnu_ld" = yes; then
9004     need_lib_prefix=no
9005   fi
9006   need_version=yes
9007   ;;
9008
9009 sysv4 | sysv4.3*)
9010   version_type=linux
9011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9012   soname_spec='${libname}${release}${shared_ext}$major'
9013   shlibpath_var=LD_LIBRARY_PATH
9014   case $host_vendor in
9015     sni)
9016       shlibpath_overrides_runpath=no
9017       need_lib_prefix=no
9018       export_dynamic_flag_spec='${wl}-Blargedynsym'
9019       runpath_var=LD_RUN_PATH
9020       ;;
9021     siemens)
9022       need_lib_prefix=no
9023       ;;
9024     motorola)
9025       need_lib_prefix=no
9026       need_version=no
9027       shlibpath_overrides_runpath=no
9028       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9029       ;;
9030   esac
9031   ;;
9032
9033 sysv4*MP*)
9034   if test -d /usr/nec ;then
9035     version_type=linux
9036     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9037     soname_spec='$libname${shared_ext}.$major'
9038     shlibpath_var=LD_LIBRARY_PATH
9039   fi
9040   ;;
9041
9042 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9043   version_type=freebsd-elf
9044   need_lib_prefix=no
9045   need_version=no
9046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9047   soname_spec='${libname}${release}${shared_ext}$major'
9048   shlibpath_var=LD_LIBRARY_PATH
9049   hardcode_into_libs=yes
9050   if test "$with_gnu_ld" = yes; then
9051     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9052     shlibpath_overrides_runpath=no
9053   else
9054     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9055     shlibpath_overrides_runpath=yes
9056     case $host_os in
9057       sco3.2v5*)
9058         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9059         ;;
9060     esac
9061   fi
9062   sys_lib_dlsearch_path_spec='/usr/lib'
9063   ;;
9064
9065 uts4*)
9066   version_type=linux
9067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068   soname_spec='${libname}${release}${shared_ext}$major'
9069   shlibpath_var=LD_LIBRARY_PATH
9070   ;;
9071
9072 *)
9073   dynamic_linker=no
9074   ;;
9075 esac
9076 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9077 echo "${ECHO_T}$dynamic_linker" >&6; }
9078 test "$dynamic_linker" = no && can_build_shared=no
9079
9080 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9081 if test "$GCC" = yes; then
9082   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9083 fi
9084
9085
9086 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9087 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9088 if test "${libltdl_cv_shlibext+set}" = set; then
9089   echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091
9092 module=yes
9093 eval libltdl_cv_shlibext=$shrext_cmds
9094
9095 fi
9096 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9097 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9098 if test -n "$libltdl_cv_shlibext"; then
9099
9100 cat >>confdefs.h <<_ACEOF
9101 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9102 _ACEOF
9103
9104 fi
9105
9106
9107 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9108 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9109 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9110   echo $ECHO_N "(cached) $ECHO_C" >&6
9111 else
9112   libltdl_cv_shlibpath_var="$shlibpath_var"
9113 fi
9114 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9115 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9116 if test -n "$libltdl_cv_shlibpath_var"; then
9117
9118 cat >>confdefs.h <<_ACEOF
9119 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9120 _ACEOF
9121
9122 fi
9123
9124
9125 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9126 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9127 if test "${libltdl_cv_sys_search_path+set}" = set; then
9128   echo $ECHO_N "(cached) $ECHO_C" >&6
9129 else
9130   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9131 fi
9132 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9133 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9134 if test -n "$libltdl_cv_sys_search_path"; then
9135   sys_search_path=
9136   for dir in $libltdl_cv_sys_search_path; do
9137     if test -z "$sys_search_path"; then
9138       sys_search_path="$dir"
9139     else
9140       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9141     fi
9142   done
9143
9144 cat >>confdefs.h <<_ACEOF
9145 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9146 _ACEOF
9147
9148 fi
9149
9150 { echo "$as_me:$LINENO: checking for objdir" >&5
9151 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9152 if test "${libltdl_cv_objdir+set}" = set; then
9153   echo $ECHO_N "(cached) $ECHO_C" >&6
9154 else
9155   libltdl_cv_objdir="$objdir"
9156   if test -n "$objdir"; then
9157     :
9158   else
9159     rm -f .libs 2>/dev/null
9160     mkdir .libs 2>/dev/null
9161     if test -d .libs; then
9162       libltdl_cv_objdir=.libs
9163     else
9164       # MS-DOS does not allow filenames that begin with a dot.
9165       libltdl_cv_objdir=_libs
9166     fi
9167   rmdir .libs 2>/dev/null
9168   fi
9169
9170 fi
9171 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9172 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9173
9174 cat >>confdefs.h <<_ACEOF
9175 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9176 _ACEOF
9177
9178
9179
9180
9181
9182
9183 # Check for command to grab the raw symbol name followed by C symbol from nm.
9184 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9185 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9186 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9187   echo $ECHO_N "(cached) $ECHO_C" >&6
9188 else
9189
9190 # These are sane defaults that work on at least a few old systems.
9191 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9192
9193 # Character class describing NM global symbol codes.
9194 symcode='[BCDEGRST]'
9195
9196 # Regexp to match symbols that can be accessed directly from C.
9197 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9198
9199 # Transform an extracted symbol line into a proper C declaration
9200 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9201
9202 # Transform an extracted symbol line into symbol name and symbol address
9203 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'"
9204
9205 # Define system-specific variables.
9206 case $host_os in
9207 aix*)
9208   symcode='[BCDT]'
9209   ;;
9210 cygwin* | mingw* | pw32*)
9211   symcode='[ABCDGISTW]'
9212   ;;
9213 hpux*) # Its linker distinguishes data from code symbols
9214   if test "$host_cpu" = ia64; then
9215     symcode='[ABCDEGRST]'
9216   fi
9217   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9218   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'"
9219   ;;
9220 linux*)
9221   if test "$host_cpu" = ia64; then
9222     symcode='[ABCDGIRSTW]'
9223     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9224     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'"
9225   fi
9226   ;;
9227 irix* | nonstopux*)
9228   symcode='[BCDEGRST]'
9229   ;;
9230 osf*)
9231   symcode='[BCDEGQRST]'
9232   ;;
9233 solaris*)
9234   symcode='[BDRT]'
9235   ;;
9236 sco3.2v5*)
9237   symcode='[DT]'
9238   ;;
9239 sysv4.2uw2*)
9240   symcode='[DT]'
9241   ;;
9242 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9243   symcode='[ABDT]'
9244   ;;
9245 sysv4)
9246   symcode='[DFNSTU]'
9247   ;;
9248 esac
9249
9250 # Handle CRLF in mingw tool chain
9251 opt_cr=
9252 case $build_os in
9253 mingw*)
9254   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9255   ;;
9256 esac
9257
9258 # If we're using GNU nm, then use its standard symbol codes.
9259 case `$NM -V 2>&1` in
9260 *GNU* | *'with BFD'*)
9261   symcode='[ABCDGIRSTW]' ;;
9262 esac
9263
9264 # Try without a prefix undercore, then with it.
9265 for ac_symprfx in "" "_"; do
9266
9267   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9268   symxfrm="\\1 $ac_symprfx\\2 \\2"
9269
9270   # Write the raw and C identifiers.
9271   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9272
9273   # Check to see that the pipe works correctly.
9274   pipe_works=no
9275
9276   rm -f conftest*
9277   cat > conftest.$ac_ext <<EOF
9278 #ifdef __cplusplus
9279 extern "C" {
9280 #endif
9281 char nm_test_var;
9282 void nm_test_func(){}
9283 #ifdef __cplusplus
9284 }
9285 #endif
9286 int main(){nm_test_var='a';nm_test_func();return(0);}
9287 EOF
9288
9289   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9290   (eval $ac_compile) 2>&5
9291   ac_status=$?
9292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); }; then
9294     # Now try to grab the symbols.
9295     nlist=conftest.nm
9296     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9297   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9298   ac_status=$?
9299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300   (exit $ac_status); } && test -s "$nlist"; then
9301       # Try sorting and uniquifying the output.
9302       if sort "$nlist" | uniq > "$nlist"T; then
9303         mv -f "$nlist"T "$nlist"
9304       else
9305         rm -f "$nlist"T
9306       fi
9307
9308       # Make sure that we snagged all the symbols we need.
9309       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9310         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9311           cat <<EOF > conftest.$ac_ext
9312 #ifdef __cplusplus
9313 extern "C" {
9314 #endif
9315
9316 EOF
9317           # Now generate the symbol file.
9318           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9319
9320           cat <<EOF >> conftest.$ac_ext
9321 #if defined (__STDC__) && __STDC__
9322 # define lt_ptr_t void *
9323 #else
9324 # define lt_ptr_t char *
9325 # define const
9326 #endif
9327
9328 /* The mapping between symbol names and symbols. */
9329 const struct {
9330   const char *name;
9331   lt_ptr_t address;
9332 }
9333 lt_preloaded_symbols[] =
9334 {
9335 EOF
9336           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9337           cat <<\EOF >> conftest.$ac_ext
9338   {0, (lt_ptr_t) 0}
9339 };
9340
9341 #ifdef __cplusplus
9342 }
9343 #endif
9344 EOF
9345           # Now try linking the two files.
9346           mv conftest.$ac_objext conftstm.$ac_objext
9347           lt_save_LIBS="$LIBS"
9348           lt_save_CFLAGS="$CFLAGS"
9349           LIBS="conftstm.$ac_objext"
9350           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9351           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9352   (eval $ac_link) 2>&5
9353   ac_status=$?
9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9356             pipe_works=yes
9357           fi
9358           LIBS="$lt_save_LIBS"
9359           CFLAGS="$lt_save_CFLAGS"
9360         else
9361           echo "cannot find nm_test_func in $nlist" >&5
9362         fi
9363       else
9364         echo "cannot find nm_test_var in $nlist" >&5
9365       fi
9366     else
9367       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9368     fi
9369   else
9370     echo "$progname: failed program was:" >&5
9371     cat conftest.$ac_ext >&5
9372   fi
9373   rm -f conftest* conftst*
9374
9375   # Do not use the global_symbol_pipe unless it works.
9376   if test "$pipe_works" = yes; then
9377     break
9378   else
9379     lt_cv_sys_global_symbol_pipe=
9380   fi
9381 done
9382
9383 fi
9384
9385 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9386   lt_cv_sys_global_symbol_to_cdecl=
9387 fi
9388 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9389   { echo "$as_me:$LINENO: result: failed" >&5
9390 echo "${ECHO_T}failed" >&6; }
9391 else
9392   { echo "$as_me:$LINENO: result: ok" >&5
9393 echo "${ECHO_T}ok" >&6; }
9394 fi
9395
9396
9397 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9398 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9399 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9400   echo $ECHO_N "(cached) $ECHO_C" >&6
9401 else
9402   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9403     libltdl_cv_preloaded_symbols=yes
9404   else
9405     libltdl_cv_preloaded_symbols=no
9406   fi
9407
9408 fi
9409 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9410 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9411 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9412
9413 cat >>confdefs.h <<\_ACEOF
9414 #define HAVE_PRELOADED_SYMBOLS 1
9415 _ACEOF
9416
9417 fi
9418
9419 LIBADD_DL=
9420
9421 ac_ext=c
9422 ac_cpp='$CPP $CPPFLAGS'
9423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9426
9427
9428 { echo "$as_me:$LINENO: checking for shl_load" >&5
9429 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9430 if test "${ac_cv_func_shl_load+set}" = set; then
9431   echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433   cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h.  */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h.  */
9439 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9441 #define shl_load innocuous_shl_load
9442
9443 /* System header to define __stub macros and hopefully few prototypes,
9444     which can conflict with char shl_load (); below.
9445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9446     <limits.h> exists even on freestanding compilers.  */
9447
9448 #ifdef __STDC__
9449 # include <limits.h>
9450 #else
9451 # include <assert.h>
9452 #endif
9453
9454 #undef shl_load
9455
9456 /* Override any GCC internal prototype to avoid an error.
9457    Use char because int might match the return type of a GCC
9458    builtin and then its argument prototype would still apply.  */
9459 #ifdef __cplusplus
9460 extern "C"
9461 #endif
9462 char shl_load ();
9463 /* The GNU C library defines this for functions which it implements
9464     to always fail with ENOSYS.  Some functions are actually named
9465     something starting with __ and the normal name is an alias.  */
9466 #if defined __stub_shl_load || defined __stub___shl_load
9467 choke me
9468 #endif
9469
9470 int
9471 main ()
9472 {
9473 return shl_load ();
9474   ;
9475   return 0;
9476 }
9477 _ACEOF
9478 rm -f conftest.$ac_objext conftest$ac_exeext
9479 if { (ac_try="$ac_link"
9480 case "(($ac_try" in
9481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482   *) ac_try_echo=$ac_try;;
9483 esac
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485   (eval "$ac_link") 2>conftest.er1
9486   ac_status=$?
9487   grep -v '^ *+' conftest.er1 >conftest.err
9488   rm -f conftest.er1
9489   cat conftest.err >&5
9490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491   (exit $ac_status); } && {
9492          test -z "$ac_c_werror_flag" ||
9493          test ! -s conftest.err
9494        } && test -s conftest$ac_exeext &&
9495        $as_test_x conftest$ac_exeext; then
9496   ac_cv_func_shl_load=yes
9497 else
9498   echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9500
9501         ac_cv_func_shl_load=no
9502 fi
9503
9504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9505       conftest$ac_exeext conftest.$ac_ext
9506 fi
9507 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9508 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9509 if test $ac_cv_func_shl_load = yes; then
9510
9511 cat >>confdefs.h <<\_ACEOF
9512 #define HAVE_SHL_LOAD 1
9513 _ACEOF
9514
9515 else
9516   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9517 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9518 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9519   echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521   ac_check_lib_save_LIBS=$LIBS
9522 LIBS="-ldld  $LIBS"
9523 cat >conftest.$ac_ext <<_ACEOF
9524 /* confdefs.h.  */
9525 _ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h.  */
9529
9530 /* Override any GCC internal prototype to avoid an error.
9531    Use char because int might match the return type of a GCC
9532    builtin and then its argument prototype would still apply.  */
9533 #ifdef __cplusplus
9534 extern "C"
9535 #endif
9536 char shl_load ();
9537 int
9538 main ()
9539 {
9540 return shl_load ();
9541   ;
9542   return 0;
9543 }
9544 _ACEOF
9545 rm -f conftest.$ac_objext conftest$ac_exeext
9546 if { (ac_try="$ac_link"
9547 case "(($ac_try" in
9548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549   *) ac_try_echo=$ac_try;;
9550 esac
9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552   (eval "$ac_link") 2>conftest.er1
9553   ac_status=$?
9554   grep -v '^ *+' conftest.er1 >conftest.err
9555   rm -f conftest.er1
9556   cat conftest.err >&5
9557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558   (exit $ac_status); } && {
9559          test -z "$ac_c_werror_flag" ||
9560          test ! -s conftest.err
9561        } && test -s conftest$ac_exeext &&
9562        $as_test_x conftest$ac_exeext; then
9563   ac_cv_lib_dld_shl_load=yes
9564 else
9565   echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9567
9568         ac_cv_lib_dld_shl_load=no
9569 fi
9570
9571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9572       conftest$ac_exeext conftest.$ac_ext
9573 LIBS=$ac_check_lib_save_LIBS
9574 fi
9575 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9576 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9577 if test $ac_cv_lib_dld_shl_load = yes; then
9578
9579 cat >>confdefs.h <<\_ACEOF
9580 #define HAVE_SHL_LOAD 1
9581 _ACEOF
9582
9583         LIBADD_DL="$LIBADD_DL -ldld"
9584 else
9585   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9586 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9587 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9588   echo $ECHO_N "(cached) $ECHO_C" >&6
9589 else
9590   ac_check_lib_save_LIBS=$LIBS
9591 LIBS="-ldl  $LIBS"
9592 cat >conftest.$ac_ext <<_ACEOF
9593 /* confdefs.h.  */
9594 _ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h.  */
9598
9599 /* Override any GCC internal prototype to avoid an error.
9600    Use char because int might match the return type of a GCC
9601    builtin and then its argument prototype would still apply.  */
9602 #ifdef __cplusplus
9603 extern "C"
9604 #endif
9605 char dlopen ();
9606 int
9607 main ()
9608 {
9609 return dlopen ();
9610   ;
9611   return 0;
9612 }
9613 _ACEOF
9614 rm -f conftest.$ac_objext conftest$ac_exeext
9615 if { (ac_try="$ac_link"
9616 case "(($ac_try" in
9617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618   *) ac_try_echo=$ac_try;;
9619 esac
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621   (eval "$ac_link") 2>conftest.er1
9622   ac_status=$?
9623   grep -v '^ *+' conftest.er1 >conftest.err
9624   rm -f conftest.er1
9625   cat conftest.err >&5
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); } && {
9628          test -z "$ac_c_werror_flag" ||
9629          test ! -s conftest.err
9630        } && test -s conftest$ac_exeext &&
9631        $as_test_x conftest$ac_exeext; then
9632   ac_cv_lib_dl_dlopen=yes
9633 else
9634   echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9636
9637         ac_cv_lib_dl_dlopen=no
9638 fi
9639
9640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9641       conftest$ac_exeext conftest.$ac_ext
9642 LIBS=$ac_check_lib_save_LIBS
9643 fi
9644 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9645 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9646 if test $ac_cv_lib_dl_dlopen = yes; then
9647
9648 cat >>confdefs.h <<\_ACEOF
9649 #define HAVE_LIBDL 1
9650 _ACEOF
9651
9652                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9653 else
9654   cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h.  */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h.  */
9660 #if HAVE_DLFCN_H
9661 #  include <dlfcn.h>
9662 #endif
9663
9664 int
9665 main ()
9666 {
9667 dlopen(0, 0);
9668   ;
9669   return 0;
9670 }
9671 _ACEOF
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (ac_try="$ac_link"
9674 case "(($ac_try" in
9675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676   *) ac_try_echo=$ac_try;;
9677 esac
9678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679   (eval "$ac_link") 2>conftest.er1
9680   ac_status=$?
9681   grep -v '^ *+' conftest.er1 >conftest.err
9682   rm -f conftest.er1
9683   cat conftest.err >&5
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); } && {
9686          test -z "$ac_c_werror_flag" ||
9687          test ! -s conftest.err
9688        } && test -s conftest$ac_exeext &&
9689        $as_test_x conftest$ac_exeext; then
9690
9691 cat >>confdefs.h <<\_ACEOF
9692 #define HAVE_LIBDL 1
9693 _ACEOF
9694  libltdl_cv_func_dlopen="yes"
9695 else
9696   echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9698
9699         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9700 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9701 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9702   echo $ECHO_N "(cached) $ECHO_C" >&6
9703 else
9704   ac_check_lib_save_LIBS=$LIBS
9705 LIBS="-lsvld  $LIBS"
9706 cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h.  */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h.  */
9712
9713 /* Override any GCC internal prototype to avoid an error.
9714    Use char because int might match the return type of a GCC
9715    builtin and then its argument prototype would still apply.  */
9716 #ifdef __cplusplus
9717 extern "C"
9718 #endif
9719 char dlopen ();
9720 int
9721 main ()
9722 {
9723 return dlopen ();
9724   ;
9725   return 0;
9726 }
9727 _ACEOF
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (ac_try="$ac_link"
9730 case "(($ac_try" in
9731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732   *) ac_try_echo=$ac_try;;
9733 esac
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735   (eval "$ac_link") 2>conftest.er1
9736   ac_status=$?
9737   grep -v '^ *+' conftest.er1 >conftest.err
9738   rm -f conftest.er1
9739   cat conftest.err >&5
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); } && {
9742          test -z "$ac_c_werror_flag" ||
9743          test ! -s conftest.err
9744        } && test -s conftest$ac_exeext &&
9745        $as_test_x conftest$ac_exeext; then
9746   ac_cv_lib_svld_dlopen=yes
9747 else
9748   echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9750
9751         ac_cv_lib_svld_dlopen=no
9752 fi
9753
9754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9755       conftest$ac_exeext conftest.$ac_ext
9756 LIBS=$ac_check_lib_save_LIBS
9757 fi
9758 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9759 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9760 if test $ac_cv_lib_svld_dlopen = yes; then
9761
9762 cat >>confdefs.h <<\_ACEOF
9763 #define HAVE_LIBDL 1
9764 _ACEOF
9765
9766                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9767 else
9768   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9769 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9770 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9771   echo $ECHO_N "(cached) $ECHO_C" >&6
9772 else
9773   ac_check_lib_save_LIBS=$LIBS
9774 LIBS="-ldld  $LIBS"
9775 cat >conftest.$ac_ext <<_ACEOF
9776 /* confdefs.h.  */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h.  */
9781
9782 /* Override any GCC internal prototype to avoid an error.
9783    Use char because int might match the return type of a GCC
9784    builtin and then its argument prototype would still apply.  */
9785 #ifdef __cplusplus
9786 extern "C"
9787 #endif
9788 char dld_link ();
9789 int
9790 main ()
9791 {
9792 return dld_link ();
9793   ;
9794   return 0;
9795 }
9796 _ACEOF
9797 rm -f conftest.$ac_objext conftest$ac_exeext
9798 if { (ac_try="$ac_link"
9799 case "(($ac_try" in
9800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801   *) ac_try_echo=$ac_try;;
9802 esac
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804   (eval "$ac_link") 2>conftest.er1
9805   ac_status=$?
9806   grep -v '^ *+' conftest.er1 >conftest.err
9807   rm -f conftest.er1
9808   cat conftest.err >&5
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); } && {
9811          test -z "$ac_c_werror_flag" ||
9812          test ! -s conftest.err
9813        } && test -s conftest$ac_exeext &&
9814        $as_test_x conftest$ac_exeext; then
9815   ac_cv_lib_dld_dld_link=yes
9816 else
9817   echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9819
9820         ac_cv_lib_dld_dld_link=no
9821 fi
9822
9823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9824       conftest$ac_exeext conftest.$ac_ext
9825 LIBS=$ac_check_lib_save_LIBS
9826 fi
9827 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9828 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9829 if test $ac_cv_lib_dld_dld_link = yes; then
9830
9831 cat >>confdefs.h <<\_ACEOF
9832 #define HAVE_DLD 1
9833 _ACEOF
9834
9835                 LIBADD_DL="$LIBADD_DL -ldld"
9836 else
9837   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9838 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9839 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9840   echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842   cat >conftest.$ac_ext <<_ACEOF
9843 /* confdefs.h.  */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h.  */
9848 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9849    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9850 #define _dyld_func_lookup innocuous__dyld_func_lookup
9851
9852 /* System header to define __stub macros and hopefully few prototypes,
9853     which can conflict with char _dyld_func_lookup (); below.
9854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9855     <limits.h> exists even on freestanding compilers.  */
9856
9857 #ifdef __STDC__
9858 # include <limits.h>
9859 #else
9860 # include <assert.h>
9861 #endif
9862
9863 #undef _dyld_func_lookup
9864
9865 /* Override any GCC internal prototype to avoid an error.
9866    Use char because int might match the return type of a GCC
9867    builtin and then its argument prototype would still apply.  */
9868 #ifdef __cplusplus
9869 extern "C"
9870 #endif
9871 char _dyld_func_lookup ();
9872 /* The GNU C library defines this for functions which it implements
9873     to always fail with ENOSYS.  Some functions are actually named
9874     something starting with __ and the normal name is an alias.  */
9875 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9876 choke me
9877 #endif
9878
9879 int
9880 main ()
9881 {
9882 return _dyld_func_lookup ();
9883   ;
9884   return 0;
9885 }
9886 _ACEOF
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9889 case "(($ac_try" in
9890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891   *) ac_try_echo=$ac_try;;
9892 esac
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894   (eval "$ac_link") 2>conftest.er1
9895   ac_status=$?
9896   grep -v '^ *+' conftest.er1 >conftest.err
9897   rm -f conftest.er1
9898   cat conftest.err >&5
9899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900   (exit $ac_status); } && {
9901          test -z "$ac_c_werror_flag" ||
9902          test ! -s conftest.err
9903        } && test -s conftest$ac_exeext &&
9904        $as_test_x conftest$ac_exeext; then
9905   ac_cv_func__dyld_func_lookup=yes
9906 else
9907   echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9909
9910         ac_cv_func__dyld_func_lookup=no
9911 fi
9912
9913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9914       conftest$ac_exeext conftest.$ac_ext
9915 fi
9916 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9917 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9918 if test $ac_cv_func__dyld_func_lookup = yes; then
9919
9920 cat >>confdefs.h <<\_ACEOF
9921 #define HAVE_DYLD 1
9922 _ACEOF
9923
9924 fi
9925
9926
9927 fi
9928
9929
9930 fi
9931
9932
9933 fi
9934
9935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9936       conftest$ac_exeext conftest.$ac_ext
9937
9938 fi
9939
9940
9941 fi
9942
9943
9944 fi
9945
9946
9947 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9948 then
9949   lt_save_LIBS="$LIBS"
9950   LIBS="$LIBS $LIBADD_DL"
9951
9952 for ac_func in dlerror
9953 do
9954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9958   echo $ECHO_N "(cached) $ECHO_C" >&6
9959 else
9960   cat >conftest.$ac_ext <<_ACEOF
9961 /* confdefs.h.  */
9962 _ACEOF
9963 cat confdefs.h >>conftest.$ac_ext
9964 cat >>conftest.$ac_ext <<_ACEOF
9965 /* end confdefs.h.  */
9966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9968 #define $ac_func innocuous_$ac_func
9969
9970 /* System header to define __stub macros and hopefully few prototypes,
9971     which can conflict with char $ac_func (); below.
9972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9973     <limits.h> exists even on freestanding compilers.  */
9974
9975 #ifdef __STDC__
9976 # include <limits.h>
9977 #else
9978 # include <assert.h>
9979 #endif
9980
9981 #undef $ac_func
9982
9983 /* Override any GCC internal prototype to avoid an error.
9984    Use char because int might match the return type of a GCC
9985    builtin and then its argument prototype would still apply.  */
9986 #ifdef __cplusplus
9987 extern "C"
9988 #endif
9989 char $ac_func ();
9990 /* The GNU C library defines this for functions which it implements
9991     to always fail with ENOSYS.  Some functions are actually named
9992     something starting with __ and the normal name is an alias.  */
9993 #if defined __stub_$ac_func || defined __stub___$ac_func
9994 choke me
9995 #endif
9996
9997 int
9998 main ()
9999 {
10000 return $ac_func ();
10001   ;
10002   return 0;
10003 }
10004 _ACEOF
10005 rm -f conftest.$ac_objext conftest$ac_exeext
10006 if { (ac_try="$ac_link"
10007 case "(($ac_try" in
10008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009   *) ac_try_echo=$ac_try;;
10010 esac
10011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012   (eval "$ac_link") 2>conftest.er1
10013   ac_status=$?
10014   grep -v '^ *+' conftest.er1 >conftest.err
10015   rm -f conftest.er1
10016   cat conftest.err >&5
10017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018   (exit $ac_status); } && {
10019          test -z "$ac_c_werror_flag" ||
10020          test ! -s conftest.err
10021        } && test -s conftest$ac_exeext &&
10022        $as_test_x conftest$ac_exeext; then
10023   eval "$as_ac_var=yes"
10024 else
10025   echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10027
10028         eval "$as_ac_var=no"
10029 fi
10030
10031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10032       conftest$ac_exeext conftest.$ac_ext
10033 fi
10034 ac_res=`eval echo '${'$as_ac_var'}'`
10035                { echo "$as_me:$LINENO: result: $ac_res" >&5
10036 echo "${ECHO_T}$ac_res" >&6; }
10037 if test `eval echo '${'$as_ac_var'}'` = yes; then
10038   cat >>confdefs.h <<_ACEOF
10039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10040 _ACEOF
10041
10042 fi
10043 done
10044
10045   LIBS="$lt_save_LIBS"
10046 fi
10047 ac_ext=c
10048 ac_cpp='$CPP $CPPFLAGS'
10049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10052
10053
10054
10055 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10056 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10057 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10058   echo $ECHO_N "(cached) $ECHO_C" >&6
10059 else
10060   ac_cv_sys_symbol_underscore=no
10061   cat > conftest.$ac_ext <<EOF
10062 void nm_test_func(){}
10063 int main(){nm_test_func;return 0;}
10064 EOF
10065   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10066   (eval $ac_compile) 2>&5
10067   ac_status=$?
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); }; then
10070     # Now try to grab the symbols.
10071     ac_nlist=conftest.nm
10072     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10073   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10074   ac_status=$?
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); } && test -s "$ac_nlist"; then
10077       # See whether the symbols have a leading underscore.
10078       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10079         ac_cv_sys_symbol_underscore=yes
10080       else
10081         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10082           :
10083         else
10084           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10085         fi
10086       fi
10087     else
10088       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10089     fi
10090   else
10091     echo "configure: failed program was:" >&5
10092     cat conftest.c >&5
10093   fi
10094   rm -rf conftest*
10095
10096 fi
10097 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10098 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10099
10100
10101 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10102   if test x"$libltdl_cv_func_dlopen" = xyes ||
10103      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10104         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10105 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10106 if test "${libltdl_cv_need_uscore+set}" = set; then
10107   echo $ECHO_N "(cached) $ECHO_C" >&6
10108 else
10109   libltdl_cv_need_uscore=unknown
10110           save_LIBS="$LIBS"
10111           LIBS="$LIBS $LIBADD_DL"
10112           if test "$cross_compiling" = yes; then :
10113   libltdl_cv_need_uscore=cross
10114 else
10115   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10116   lt_status=$lt_dlunknown
10117   cat > conftest.$ac_ext <<EOF
10118 #line 10118 "configure"
10119 #include "confdefs.h"
10120
10121 #if HAVE_DLFCN_H
10122 #include <dlfcn.h>
10123 #endif
10124
10125 #include <stdio.h>
10126
10127 #ifdef RTLD_GLOBAL
10128 #  define LT_DLGLOBAL           RTLD_GLOBAL
10129 #else
10130 #  ifdef DL_GLOBAL
10131 #    define LT_DLGLOBAL         DL_GLOBAL
10132 #  else
10133 #    define LT_DLGLOBAL         0
10134 #  endif
10135 #endif
10136
10137 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10138    find out it does not work in some platform. */
10139 #ifndef LT_DLLAZY_OR_NOW
10140 #  ifdef RTLD_LAZY
10141 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10142 #  else
10143 #    ifdef DL_LAZY
10144 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10145 #    else
10146 #      ifdef RTLD_NOW
10147 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10148 #      else
10149 #        ifdef DL_NOW
10150 #          define LT_DLLAZY_OR_NOW      DL_NOW
10151 #        else
10152 #          define LT_DLLAZY_OR_NOW      0
10153 #        endif
10154 #      endif
10155 #    endif
10156 #  endif
10157 #endif
10158
10159 #ifdef __cplusplus
10160 extern "C" void exit (int);
10161 #endif
10162
10163 void fnord() { int i=42;}
10164 int main ()
10165 {
10166   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10167   int status = $lt_dlunknown;
10168
10169   if (self)
10170     {
10171       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10172       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10173       /* dlclose (self); */
10174     }
10175   else
10176     puts (dlerror ());
10177
10178     exit (status);
10179 }
10180 EOF
10181   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10182   (eval $ac_link) 2>&5
10183   ac_status=$?
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10186     (./conftest; exit; ) >&5 2>/dev/null
10187     lt_status=$?
10188     case x$lt_status in
10189       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10190       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10191       x$lt_dlunknown|x*)  ;;
10192     esac
10193   else :
10194     # compilation failed
10195
10196   fi
10197 fi
10198 rm -fr conftest*
10199
10200           LIBS="$save_LIBS"
10201
10202 fi
10203 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10204 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10205   fi
10206 fi
10207
10208 if test x"$libltdl_cv_need_uscore" = xyes; then
10209
10210 cat >>confdefs.h <<\_ACEOF
10211 #define NEED_USCORE 1
10212 _ACEOF
10213
10214 fi
10215
10216
10217 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10218 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10219 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10220   echo $ECHO_N "(cached) $ECHO_C" >&6
10221 else
10222   # PORTME does your system automatically load deplibs for dlopen?
10223   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10224   # For now, we just catch OSes we know something about -- in the
10225   # future, we'll try test this programmatically.
10226   libltdl_cv_sys_dlopen_deplibs=unknown
10227   case "$host_os" in
10228   aix3*|aix4.1.*|aix4.2.*)
10229     # Unknown whether this is true for these versions of AIX, but
10230     # we want this `case' here to explicitly catch those versions.
10231     libltdl_cv_sys_dlopen_deplibs=unknown
10232     ;;
10233   aix[45]*)
10234     libltdl_cv_sys_dlopen_deplibs=yes
10235     ;;
10236   darwin*)
10237     # Assuming the user has installed a libdl from somewhere, this is true
10238     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10239     libltdl_cv_sys_dlopen_deplibs=yes
10240     ;;
10241   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10242     # GNU and its variants, using gnu ld.so (Glibc)
10243     libltdl_cv_sys_dlopen_deplibs=yes
10244     ;;
10245   hpux10*|hpux11*)
10246     libltdl_cv_sys_dlopen_deplibs=yes
10247     ;;
10248   interix*)
10249     libltdl_cv_sys_dlopen_deplibs=yes
10250     ;;
10251   irix[12345]*|irix6.[01]*)
10252     # Catch all versions of IRIX before 6.2, and indicate that we don't
10253     # know how it worked for any of those versions.
10254     libltdl_cv_sys_dlopen_deplibs=unknown
10255     ;;
10256   irix*)
10257     # The case above catches anything before 6.2, and it's known that
10258     # at 6.2 and later dlopen does load deplibs.
10259     libltdl_cv_sys_dlopen_deplibs=yes
10260     ;;
10261   netbsd*)
10262     libltdl_cv_sys_dlopen_deplibs=yes
10263     ;;
10264   openbsd*)
10265     libltdl_cv_sys_dlopen_deplibs=yes
10266     ;;
10267   osf[1234]*)
10268     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10269     # it did *not* use an RPATH in a shared library to find objects the
10270     # library depends on, so we explictly say `no'.
10271     libltdl_cv_sys_dlopen_deplibs=no
10272     ;;
10273   osf5.0|osf5.0a|osf5.1)
10274     # dlopen *does* load deplibs and with the right loader patch applied
10275     # it even uses RPATH in a shared library to search for shared objects
10276     # that the library depends on, but there's no easy way to know if that
10277     # patch is installed.  Since this is the case, all we can really
10278     # say is unknown -- it depends on the patch being installed.  If
10279     # it is, this changes to `yes'.  Without it, it would be `no'.
10280     libltdl_cv_sys_dlopen_deplibs=unknown
10281     ;;
10282   osf*)
10283     # the two cases above should catch all versions of osf <= 5.1.  Read
10284     # the comments above for what we know about them.
10285     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10286     # is used to find them so we can finally say `yes'.
10287     libltdl_cv_sys_dlopen_deplibs=yes
10288     ;;
10289   solaris*)
10290     libltdl_cv_sys_dlopen_deplibs=yes
10291     ;;
10292   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10293     libltdl_cv_sys_dlopen_deplibs=yes
10294     ;;
10295   esac
10296
10297 fi
10298 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10299 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10300 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10301
10302 cat >>confdefs.h <<\_ACEOF
10303 #define LTDL_DLOPEN_DEPLIBS 1
10304 _ACEOF
10305
10306 fi
10307
10308
10309 for ac_header in argz.h
10310 do
10311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10313   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10316   echo $ECHO_N "(cached) $ECHO_C" >&6
10317 fi
10318 ac_res=`eval echo '${'$as_ac_Header'}'`
10319                { echo "$as_me:$LINENO: result: $ac_res" >&5
10320 echo "${ECHO_T}$ac_res" >&6; }
10321 else
10322   # Is the header compilable?
10323 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10325 cat >conftest.$ac_ext <<_ACEOF
10326 /* confdefs.h.  */
10327 _ACEOF
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h.  */
10331 $ac_includes_default
10332 #include <$ac_header>
10333 _ACEOF
10334 rm -f conftest.$ac_objext
10335 if { (ac_try="$ac_compile"
10336 case "(($ac_try" in
10337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338   *) ac_try_echo=$ac_try;;
10339 esac
10340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341   (eval "$ac_compile") 2>conftest.er1
10342   ac_status=$?
10343   grep -v '^ *+' conftest.er1 >conftest.err
10344   rm -f conftest.er1
10345   cat conftest.err >&5
10346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347   (exit $ac_status); } && {
10348          test -z "$ac_c_werror_flag" ||
10349          test ! -s conftest.err
10350        } && test -s conftest.$ac_objext; then
10351   ac_header_compiler=yes
10352 else
10353   echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10355
10356         ac_header_compiler=no
10357 fi
10358
10359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10361 echo "${ECHO_T}$ac_header_compiler" >&6; }
10362
10363 # Is the header present?
10364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10366 cat >conftest.$ac_ext <<_ACEOF
10367 /* confdefs.h.  */
10368 _ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h.  */
10372 #include <$ac_header>
10373 _ACEOF
10374 if { (ac_try="$ac_cpp conftest.$ac_ext"
10375 case "(($ac_try" in
10376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377   *) ac_try_echo=$ac_try;;
10378 esac
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10381   ac_status=$?
10382   grep -v '^ *+' conftest.er1 >conftest.err
10383   rm -f conftest.er1
10384   cat conftest.err >&5
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); } >/dev/null && {
10387          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10388          test ! -s conftest.err
10389        }; then
10390   ac_header_preproc=yes
10391 else
10392   echo "$as_me: failed program was:" >&5
10393 sed 's/^/| /' conftest.$ac_ext >&5
10394
10395   ac_header_preproc=no
10396 fi
10397
10398 rm -f conftest.err conftest.$ac_ext
10399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10400 echo "${ECHO_T}$ac_header_preproc" >&6; }
10401
10402 # So?  What about this header?
10403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10404   yes:no: )
10405     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10409     ac_header_preproc=yes
10410     ;;
10411   no:yes:* )
10412     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10414     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10415 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10416     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10418     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10419 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10420     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10422     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10424     ( cat <<\_ASBOX
10425 ## ----------------------------------- ##
10426 ## Report this to llvmbugs@cs.uiuc.edu ##
10427 ## ----------------------------------- ##
10428 _ASBOX
10429      ) | sed "s/^/$as_me: WARNING:     /" >&2
10430     ;;
10431 esac
10432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10435   echo $ECHO_N "(cached) $ECHO_C" >&6
10436 else
10437   eval "$as_ac_Header=\$ac_header_preproc"
10438 fi
10439 ac_res=`eval echo '${'$as_ac_Header'}'`
10440                { echo "$as_me:$LINENO: result: $ac_res" >&5
10441 echo "${ECHO_T}$ac_res" >&6; }
10442
10443 fi
10444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10445   cat >>confdefs.h <<_ACEOF
10446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10447 _ACEOF
10448
10449 fi
10450
10451 done
10452
10453
10454 { echo "$as_me:$LINENO: checking for error_t" >&5
10455 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10456 if test "${ac_cv_type_error_t+set}" = set; then
10457   echo $ECHO_N "(cached) $ECHO_C" >&6
10458 else
10459   cat >conftest.$ac_ext <<_ACEOF
10460 /* confdefs.h.  */
10461 _ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h.  */
10465 #if HAVE_ARGZ_H
10466 #  include <argz.h>
10467 #endif
10468
10469 typedef error_t ac__type_new_;
10470 int
10471 main ()
10472 {
10473 if ((ac__type_new_ *) 0)
10474   return 0;
10475 if (sizeof (ac__type_new_))
10476   return 0;
10477   ;
10478   return 0;
10479 }
10480 _ACEOF
10481 rm -f conftest.$ac_objext
10482 if { (ac_try="$ac_compile"
10483 case "(($ac_try" in
10484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485   *) ac_try_echo=$ac_try;;
10486 esac
10487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488   (eval "$ac_compile") 2>conftest.er1
10489   ac_status=$?
10490   grep -v '^ *+' conftest.er1 >conftest.err
10491   rm -f conftest.er1
10492   cat conftest.err >&5
10493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494   (exit $ac_status); } && {
10495          test -z "$ac_c_werror_flag" ||
10496          test ! -s conftest.err
10497        } && test -s conftest.$ac_objext; then
10498   ac_cv_type_error_t=yes
10499 else
10500   echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10502
10503         ac_cv_type_error_t=no
10504 fi
10505
10506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10507 fi
10508 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10509 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10510 if test $ac_cv_type_error_t = yes; then
10511
10512 cat >>confdefs.h <<_ACEOF
10513 #define HAVE_ERROR_T 1
10514 _ACEOF
10515
10516
10517 else
10518
10519 cat >>confdefs.h <<\_ACEOF
10520 #define error_t int
10521 _ACEOF
10522
10523 fi
10524
10525
10526
10527
10528
10529
10530
10531 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10532 do
10533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10537   echo $ECHO_N "(cached) $ECHO_C" >&6
10538 else
10539   cat >conftest.$ac_ext <<_ACEOF
10540 /* confdefs.h.  */
10541 _ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h.  */
10545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10547 #define $ac_func innocuous_$ac_func
10548
10549 /* System header to define __stub macros and hopefully few prototypes,
10550     which can conflict with char $ac_func (); below.
10551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10552     <limits.h> exists even on freestanding compilers.  */
10553
10554 #ifdef __STDC__
10555 # include <limits.h>
10556 #else
10557 # include <assert.h>
10558 #endif
10559
10560 #undef $ac_func
10561
10562 /* Override any GCC internal prototype to avoid an error.
10563    Use char because int might match the return type of a GCC
10564    builtin and then its argument prototype would still apply.  */
10565 #ifdef __cplusplus
10566 extern "C"
10567 #endif
10568 char $ac_func ();
10569 /* The GNU C library defines this for functions which it implements
10570     to always fail with ENOSYS.  Some functions are actually named
10571     something starting with __ and the normal name is an alias.  */
10572 #if defined __stub_$ac_func || defined __stub___$ac_func
10573 choke me
10574 #endif
10575
10576 int
10577 main ()
10578 {
10579 return $ac_func ();
10580   ;
10581   return 0;
10582 }
10583 _ACEOF
10584 rm -f conftest.$ac_objext conftest$ac_exeext
10585 if { (ac_try="$ac_link"
10586 case "(($ac_try" in
10587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588   *) ac_try_echo=$ac_try;;
10589 esac
10590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591   (eval "$ac_link") 2>conftest.er1
10592   ac_status=$?
10593   grep -v '^ *+' conftest.er1 >conftest.err
10594   rm -f conftest.er1
10595   cat conftest.err >&5
10596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); } && {
10598          test -z "$ac_c_werror_flag" ||
10599          test ! -s conftest.err
10600        } && test -s conftest$ac_exeext &&
10601        $as_test_x conftest$ac_exeext; then
10602   eval "$as_ac_var=yes"
10603 else
10604   echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10606
10607         eval "$as_ac_var=no"
10608 fi
10609
10610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10611       conftest$ac_exeext conftest.$ac_ext
10612 fi
10613 ac_res=`eval echo '${'$as_ac_var'}'`
10614                { echo "$as_me:$LINENO: result: $ac_res" >&5
10615 echo "${ECHO_T}$ac_res" >&6; }
10616 if test `eval echo '${'$as_ac_var'}'` = yes; then
10617   cat >>confdefs.h <<_ACEOF
10618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10619 _ACEOF
10620
10621 fi
10622 done
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10652                   stdio.h unistd.h
10653 do
10654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10659   echo $ECHO_N "(cached) $ECHO_C" >&6
10660 fi
10661 ac_res=`eval echo '${'$as_ac_Header'}'`
10662                { echo "$as_me:$LINENO: result: $ac_res" >&5
10663 echo "${ECHO_T}$ac_res" >&6; }
10664 else
10665   # Is the header compilable?
10666 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10668 cat >conftest.$ac_ext <<_ACEOF
10669 /* confdefs.h.  */
10670 _ACEOF
10671 cat confdefs.h >>conftest.$ac_ext
10672 cat >>conftest.$ac_ext <<_ACEOF
10673 /* end confdefs.h.  */
10674 $ac_includes_default
10675 #include <$ac_header>
10676 _ACEOF
10677 rm -f conftest.$ac_objext
10678 if { (ac_try="$ac_compile"
10679 case "(($ac_try" in
10680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681   *) ac_try_echo=$ac_try;;
10682 esac
10683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684   (eval "$ac_compile") 2>conftest.er1
10685   ac_status=$?
10686   grep -v '^ *+' conftest.er1 >conftest.err
10687   rm -f conftest.er1
10688   cat conftest.err >&5
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); } && {
10691          test -z "$ac_c_werror_flag" ||
10692          test ! -s conftest.err
10693        } && test -s conftest.$ac_objext; then
10694   ac_header_compiler=yes
10695 else
10696   echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10698
10699         ac_header_compiler=no
10700 fi
10701
10702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10704 echo "${ECHO_T}$ac_header_compiler" >&6; }
10705
10706 # Is the header present?
10707 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10709 cat >conftest.$ac_ext <<_ACEOF
10710 /* confdefs.h.  */
10711 _ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h.  */
10715 #include <$ac_header>
10716 _ACEOF
10717 if { (ac_try="$ac_cpp conftest.$ac_ext"
10718 case "(($ac_try" in
10719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720   *) ac_try_echo=$ac_try;;
10721 esac
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10724   ac_status=$?
10725   grep -v '^ *+' conftest.er1 >conftest.err
10726   rm -f conftest.er1
10727   cat conftest.err >&5
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); } >/dev/null && {
10730          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10731          test ! -s conftest.err
10732        }; then
10733   ac_header_preproc=yes
10734 else
10735   echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10737
10738   ac_header_preproc=no
10739 fi
10740
10741 rm -f conftest.err conftest.$ac_ext
10742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10743 echo "${ECHO_T}$ac_header_preproc" >&6; }
10744
10745 # So?  What about this header?
10746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10747   yes:no: )
10748     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10752     ac_header_preproc=yes
10753     ;;
10754   no:yes:* )
10755     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10757     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10758 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10759     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10761     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10762 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10763     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10765     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10767     ( cat <<\_ASBOX
10768 ## ----------------------------------- ##
10769 ## Report this to llvmbugs@cs.uiuc.edu ##
10770 ## ----------------------------------- ##
10771 _ASBOX
10772      ) | sed "s/^/$as_me: WARNING:     /" >&2
10773     ;;
10774 esac
10775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10778   echo $ECHO_N "(cached) $ECHO_C" >&6
10779 else
10780   eval "$as_ac_Header=\$ac_header_preproc"
10781 fi
10782 ac_res=`eval echo '${'$as_ac_Header'}'`
10783                { echo "$as_me:$LINENO: result: $ac_res" >&5
10784 echo "${ECHO_T}$ac_res" >&6; }
10785
10786 fi
10787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10788   cat >>confdefs.h <<_ACEOF
10789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10790 _ACEOF
10791
10792 fi
10793
10794 done
10795
10796
10797
10798
10799
10800 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10801 do
10802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10804   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10807   echo $ECHO_N "(cached) $ECHO_C" >&6
10808 fi
10809 ac_res=`eval echo '${'$as_ac_Header'}'`
10810                { echo "$as_me:$LINENO: result: $ac_res" >&5
10811 echo "${ECHO_T}$ac_res" >&6; }
10812 else
10813   # Is the header compilable?
10814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10816 cat >conftest.$ac_ext <<_ACEOF
10817 /* confdefs.h.  */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h.  */
10822 $ac_includes_default
10823 #include <$ac_header>
10824 _ACEOF
10825 rm -f conftest.$ac_objext
10826 if { (ac_try="$ac_compile"
10827 case "(($ac_try" in
10828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829   *) ac_try_echo=$ac_try;;
10830 esac
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832   (eval "$ac_compile") 2>conftest.er1
10833   ac_status=$?
10834   grep -v '^ *+' conftest.er1 >conftest.err
10835   rm -f conftest.er1
10836   cat conftest.err >&5
10837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838   (exit $ac_status); } && {
10839          test -z "$ac_c_werror_flag" ||
10840          test ! -s conftest.err
10841        } && test -s conftest.$ac_objext; then
10842   ac_header_compiler=yes
10843 else
10844   echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10846
10847         ac_header_compiler=no
10848 fi
10849
10850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10852 echo "${ECHO_T}$ac_header_compiler" >&6; }
10853
10854 # Is the header present?
10855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10857 cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h.  */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h.  */
10863 #include <$ac_header>
10864 _ACEOF
10865 if { (ac_try="$ac_cpp conftest.$ac_ext"
10866 case "(($ac_try" in
10867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868   *) ac_try_echo=$ac_try;;
10869 esac
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10872   ac_status=$?
10873   grep -v '^ *+' conftest.er1 >conftest.err
10874   rm -f conftest.er1
10875   cat conftest.err >&5
10876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877   (exit $ac_status); } >/dev/null && {
10878          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10879          test ! -s conftest.err
10880        }; then
10881   ac_header_preproc=yes
10882 else
10883   echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10885
10886   ac_header_preproc=no
10887 fi
10888
10889 rm -f conftest.err conftest.$ac_ext
10890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10891 echo "${ECHO_T}$ac_header_preproc" >&6; }
10892
10893 # So?  What about this header?
10894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10895   yes:no: )
10896     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10900     ac_header_preproc=yes
10901     ;;
10902   no:yes:* )
10903     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10905     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10906 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10907     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10909     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10910 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10913     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10915     ( cat <<\_ASBOX
10916 ## ----------------------------------- ##
10917 ## Report this to llvmbugs@cs.uiuc.edu ##
10918 ## ----------------------------------- ##
10919 _ASBOX
10920      ) | sed "s/^/$as_me: WARNING:     /" >&2
10921     ;;
10922 esac
10923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10926   echo $ECHO_N "(cached) $ECHO_C" >&6
10927 else
10928   eval "$as_ac_Header=\$ac_header_preproc"
10929 fi
10930 ac_res=`eval echo '${'$as_ac_Header'}'`
10931                { echo "$as_me:$LINENO: result: $ac_res" >&5
10932 echo "${ECHO_T}$ac_res" >&6; }
10933
10934 fi
10935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10936   cat >>confdefs.h <<_ACEOF
10937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10938 _ACEOF
10939
10940 fi
10941
10942 done
10943
10944
10945
10946 for ac_header in string.h strings.h
10947 do
10948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10950   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10953   echo $ECHO_N "(cached) $ECHO_C" >&6
10954 fi
10955 ac_res=`eval echo '${'$as_ac_Header'}'`
10956                { echo "$as_me:$LINENO: result: $ac_res" >&5
10957 echo "${ECHO_T}$ac_res" >&6; }
10958 else
10959   # Is the header compilable?
10960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10962 cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h.  */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h.  */
10968 $ac_includes_default
10969 #include <$ac_header>
10970 _ACEOF
10971 rm -f conftest.$ac_objext
10972 if { (ac_try="$ac_compile"
10973 case "(($ac_try" in
10974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975   *) ac_try_echo=$ac_try;;
10976 esac
10977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10978   (eval "$ac_compile") 2>conftest.er1
10979   ac_status=$?
10980   grep -v '^ *+' conftest.er1 >conftest.err
10981   rm -f conftest.er1
10982   cat conftest.err >&5
10983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984   (exit $ac_status); } && {
10985          test -z "$ac_c_werror_flag" ||
10986          test ! -s conftest.err
10987        } && test -s conftest.$ac_objext; then
10988   ac_header_compiler=yes
10989 else
10990   echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10992
10993         ac_header_compiler=no
10994 fi
10995
10996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10998 echo "${ECHO_T}$ac_header_compiler" >&6; }
10999
11000 # Is the header present?
11001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11003 cat >conftest.$ac_ext <<_ACEOF
11004 /* confdefs.h.  */
11005 _ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h.  */
11009 #include <$ac_header>
11010 _ACEOF
11011 if { (ac_try="$ac_cpp conftest.$ac_ext"
11012 case "(($ac_try" in
11013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014   *) ac_try_echo=$ac_try;;
11015 esac
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11018   ac_status=$?
11019   grep -v '^ *+' conftest.er1 >conftest.err
11020   rm -f conftest.er1
11021   cat conftest.err >&5
11022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023   (exit $ac_status); } >/dev/null && {
11024          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11025          test ! -s conftest.err
11026        }; then
11027   ac_header_preproc=yes
11028 else
11029   echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11031
11032   ac_header_preproc=no
11033 fi
11034
11035 rm -f conftest.err conftest.$ac_ext
11036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11037 echo "${ECHO_T}$ac_header_preproc" >&6; }
11038
11039 # So?  What about this header?
11040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11041   yes:no: )
11042     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11046     ac_header_preproc=yes
11047     ;;
11048   no:yes:* )
11049     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11051     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11052 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11053     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11055     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11056 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11059     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11061     ( cat <<\_ASBOX
11062 ## ----------------------------------- ##
11063 ## Report this to llvmbugs@cs.uiuc.edu ##
11064 ## ----------------------------------- ##
11065 _ASBOX
11066      ) | sed "s/^/$as_me: WARNING:     /" >&2
11067     ;;
11068 esac
11069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11072   echo $ECHO_N "(cached) $ECHO_C" >&6
11073 else
11074   eval "$as_ac_Header=\$ac_header_preproc"
11075 fi
11076 ac_res=`eval echo '${'$as_ac_Header'}'`
11077                { echo "$as_me:$LINENO: result: $ac_res" >&5
11078 echo "${ECHO_T}$ac_res" >&6; }
11079
11080 fi
11081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11082   cat >>confdefs.h <<_ACEOF
11083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11084 _ACEOF
11085  break
11086 fi
11087
11088 done
11089
11090
11091
11092
11093 for ac_func in strchr index
11094 do
11095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11099   echo $ECHO_N "(cached) $ECHO_C" >&6
11100 else
11101   cat >conftest.$ac_ext <<_ACEOF
11102 /* confdefs.h.  */
11103 _ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h.  */
11107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11109 #define $ac_func innocuous_$ac_func
11110
11111 /* System header to define __stub macros and hopefully few prototypes,
11112     which can conflict with char $ac_func (); below.
11113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11114     <limits.h> exists even on freestanding compilers.  */
11115
11116 #ifdef __STDC__
11117 # include <limits.h>
11118 #else
11119 # include <assert.h>
11120 #endif
11121
11122 #undef $ac_func
11123
11124 /* Override any GCC internal prototype to avoid an error.
11125    Use char because int might match the return type of a GCC
11126    builtin and then its argument prototype would still apply.  */
11127 #ifdef __cplusplus
11128 extern "C"
11129 #endif
11130 char $ac_func ();
11131 /* The GNU C library defines this for functions which it implements
11132     to always fail with ENOSYS.  Some functions are actually named
11133     something starting with __ and the normal name is an alias.  */
11134 #if defined __stub_$ac_func || defined __stub___$ac_func
11135 choke me
11136 #endif
11137
11138 int
11139 main ()
11140 {
11141 return $ac_func ();
11142   ;
11143   return 0;
11144 }
11145 _ACEOF
11146 rm -f conftest.$ac_objext conftest$ac_exeext
11147 if { (ac_try="$ac_link"
11148 case "(($ac_try" in
11149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150   *) ac_try_echo=$ac_try;;
11151 esac
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153   (eval "$ac_link") 2>conftest.er1
11154   ac_status=$?
11155   grep -v '^ *+' conftest.er1 >conftest.err
11156   rm -f conftest.er1
11157   cat conftest.err >&5
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); } && {
11160          test -z "$ac_c_werror_flag" ||
11161          test ! -s conftest.err
11162        } && test -s conftest$ac_exeext &&
11163        $as_test_x conftest$ac_exeext; then
11164   eval "$as_ac_var=yes"
11165 else
11166   echo "$as_me: failed program was:" >&5
11167 sed 's/^/| /' conftest.$ac_ext >&5
11168
11169         eval "$as_ac_var=no"
11170 fi
11171
11172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11173       conftest$ac_exeext conftest.$ac_ext
11174 fi
11175 ac_res=`eval echo '${'$as_ac_var'}'`
11176                { echo "$as_me:$LINENO: result: $ac_res" >&5
11177 echo "${ECHO_T}$ac_res" >&6; }
11178 if test `eval echo '${'$as_ac_var'}'` = yes; then
11179   cat >>confdefs.h <<_ACEOF
11180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11181 _ACEOF
11182  break
11183 fi
11184 done
11185
11186
11187
11188 for ac_func in strrchr rindex
11189 do
11190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11194   echo $ECHO_N "(cached) $ECHO_C" >&6
11195 else
11196   cat >conftest.$ac_ext <<_ACEOF
11197 /* confdefs.h.  */
11198 _ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h.  */
11202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11204 #define $ac_func innocuous_$ac_func
11205
11206 /* System header to define __stub macros and hopefully few prototypes,
11207     which can conflict with char $ac_func (); below.
11208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11209     <limits.h> exists even on freestanding compilers.  */
11210
11211 #ifdef __STDC__
11212 # include <limits.h>
11213 #else
11214 # include <assert.h>
11215 #endif
11216
11217 #undef $ac_func
11218
11219 /* Override any GCC internal prototype to avoid an error.
11220    Use char because int might match the return type of a GCC
11221    builtin and then its argument prototype would still apply.  */
11222 #ifdef __cplusplus
11223 extern "C"
11224 #endif
11225 char $ac_func ();
11226 /* The GNU C library defines this for functions which it implements
11227     to always fail with ENOSYS.  Some functions are actually named
11228     something starting with __ and the normal name is an alias.  */
11229 #if defined __stub_$ac_func || defined __stub___$ac_func
11230 choke me
11231 #endif
11232
11233 int
11234 main ()
11235 {
11236 return $ac_func ();
11237   ;
11238   return 0;
11239 }
11240 _ACEOF
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (ac_try="$ac_link"
11243 case "(($ac_try" in
11244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245   *) ac_try_echo=$ac_try;;
11246 esac
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248   (eval "$ac_link") 2>conftest.er1
11249   ac_status=$?
11250   grep -v '^ *+' conftest.er1 >conftest.err
11251   rm -f conftest.er1
11252   cat conftest.err >&5
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); } && {
11255          test -z "$ac_c_werror_flag" ||
11256          test ! -s conftest.err
11257        } && test -s conftest$ac_exeext &&
11258        $as_test_x conftest$ac_exeext; then
11259   eval "$as_ac_var=yes"
11260 else
11261   echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.$ac_ext >&5
11263
11264         eval "$as_ac_var=no"
11265 fi
11266
11267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11268       conftest$ac_exeext conftest.$ac_ext
11269 fi
11270 ac_res=`eval echo '${'$as_ac_var'}'`
11271                { echo "$as_me:$LINENO: result: $ac_res" >&5
11272 echo "${ECHO_T}$ac_res" >&6; }
11273 if test `eval echo '${'$as_ac_var'}'` = yes; then
11274   cat >>confdefs.h <<_ACEOF
11275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11276 _ACEOF
11277  break
11278 fi
11279 done
11280
11281
11282
11283 for ac_func in memcpy bcopy
11284 do
11285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11286 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11289   echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291   cat >conftest.$ac_ext <<_ACEOF
11292 /* confdefs.h.  */
11293 _ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h.  */
11297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11298    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11299 #define $ac_func innocuous_$ac_func
11300
11301 /* System header to define __stub macros and hopefully few prototypes,
11302     which can conflict with char $ac_func (); below.
11303     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11304     <limits.h> exists even on freestanding compilers.  */
11305
11306 #ifdef __STDC__
11307 # include <limits.h>
11308 #else
11309 # include <assert.h>
11310 #endif
11311
11312 #undef $ac_func
11313
11314 /* Override any GCC internal prototype to avoid an error.
11315    Use char because int might match the return type of a GCC
11316    builtin and then its argument prototype would still apply.  */
11317 #ifdef __cplusplus
11318 extern "C"
11319 #endif
11320 char $ac_func ();
11321 /* The GNU C library defines this for functions which it implements
11322     to always fail with ENOSYS.  Some functions are actually named
11323     something starting with __ and the normal name is an alias.  */
11324 #if defined __stub_$ac_func || defined __stub___$ac_func
11325 choke me
11326 #endif
11327
11328 int
11329 main ()
11330 {
11331 return $ac_func ();
11332   ;
11333   return 0;
11334 }
11335 _ACEOF
11336 rm -f conftest.$ac_objext conftest$ac_exeext
11337 if { (ac_try="$ac_link"
11338 case "(($ac_try" in
11339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340   *) ac_try_echo=$ac_try;;
11341 esac
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343   (eval "$ac_link") 2>conftest.er1
11344   ac_status=$?
11345   grep -v '^ *+' conftest.er1 >conftest.err
11346   rm -f conftest.er1
11347   cat conftest.err >&5
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); } && {
11350          test -z "$ac_c_werror_flag" ||
11351          test ! -s conftest.err
11352        } && test -s conftest$ac_exeext &&
11353        $as_test_x conftest$ac_exeext; then
11354   eval "$as_ac_var=yes"
11355 else
11356   echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11358
11359         eval "$as_ac_var=no"
11360 fi
11361
11362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11363       conftest$ac_exeext conftest.$ac_ext
11364 fi
11365 ac_res=`eval echo '${'$as_ac_var'}'`
11366                { echo "$as_me:$LINENO: result: $ac_res" >&5
11367 echo "${ECHO_T}$ac_res" >&6; }
11368 if test `eval echo '${'$as_ac_var'}'` = yes; then
11369   cat >>confdefs.h <<_ACEOF
11370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11371 _ACEOF
11372  break
11373 fi
11374 done
11375
11376
11377
11378 for ac_func in memmove strcmp
11379 do
11380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11381 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11384   echo $ECHO_N "(cached) $ECHO_C" >&6
11385 else
11386   cat >conftest.$ac_ext <<_ACEOF
11387 /* confdefs.h.  */
11388 _ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h.  */
11392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11394 #define $ac_func innocuous_$ac_func
11395
11396 /* System header to define __stub macros and hopefully few prototypes,
11397     which can conflict with char $ac_func (); below.
11398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11399     <limits.h> exists even on freestanding compilers.  */
11400
11401 #ifdef __STDC__
11402 # include <limits.h>
11403 #else
11404 # include <assert.h>
11405 #endif
11406
11407 #undef $ac_func
11408
11409 /* Override any GCC internal prototype to avoid an error.
11410    Use char because int might match the return type of a GCC
11411    builtin and then its argument prototype would still apply.  */
11412 #ifdef __cplusplus
11413 extern "C"
11414 #endif
11415 char $ac_func ();
11416 /* The GNU C library defines this for functions which it implements
11417     to always fail with ENOSYS.  Some functions are actually named
11418     something starting with __ and the normal name is an alias.  */
11419 #if defined __stub_$ac_func || defined __stub___$ac_func
11420 choke me
11421 #endif
11422
11423 int
11424 main ()
11425 {
11426 return $ac_func ();
11427   ;
11428   return 0;
11429 }
11430 _ACEOF
11431 rm -f conftest.$ac_objext conftest$ac_exeext
11432 if { (ac_try="$ac_link"
11433 case "(($ac_try" in
11434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435   *) ac_try_echo=$ac_try;;
11436 esac
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438   (eval "$ac_link") 2>conftest.er1
11439   ac_status=$?
11440   grep -v '^ *+' conftest.er1 >conftest.err
11441   rm -f conftest.er1
11442   cat conftest.err >&5
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); } && {
11445          test -z "$ac_c_werror_flag" ||
11446          test ! -s conftest.err
11447        } && test -s conftest$ac_exeext &&
11448        $as_test_x conftest$ac_exeext; then
11449   eval "$as_ac_var=yes"
11450 else
11451   echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11453
11454         eval "$as_ac_var=no"
11455 fi
11456
11457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11458       conftest$ac_exeext conftest.$ac_ext
11459 fi
11460 ac_res=`eval echo '${'$as_ac_var'}'`
11461                { echo "$as_me:$LINENO: result: $ac_res" >&5
11462 echo "${ECHO_T}$ac_res" >&6; }
11463 if test `eval echo '${'$as_ac_var'}'` = yes; then
11464   cat >>confdefs.h <<_ACEOF
11465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11466 _ACEOF
11467
11468 fi
11469 done
11470
11471
11472
11473
11474 for ac_func in closedir opendir readdir
11475 do
11476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11480   echo $ECHO_N "(cached) $ECHO_C" >&6
11481 else
11482   cat >conftest.$ac_ext <<_ACEOF
11483 /* confdefs.h.  */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h.  */
11488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11490 #define $ac_func innocuous_$ac_func
11491
11492 /* System header to define __stub macros and hopefully few prototypes,
11493     which can conflict with char $ac_func (); below.
11494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11495     <limits.h> exists even on freestanding compilers.  */
11496
11497 #ifdef __STDC__
11498 # include <limits.h>
11499 #else
11500 # include <assert.h>
11501 #endif
11502
11503 #undef $ac_func
11504
11505 /* Override any GCC internal prototype to avoid an error.
11506    Use char because int might match the return type of a GCC
11507    builtin and then its argument prototype would still apply.  */
11508 #ifdef __cplusplus
11509 extern "C"
11510 #endif
11511 char $ac_func ();
11512 /* The GNU C library defines this for functions which it implements
11513     to always fail with ENOSYS.  Some functions are actually named
11514     something starting with __ and the normal name is an alias.  */
11515 #if defined __stub_$ac_func || defined __stub___$ac_func
11516 choke me
11517 #endif
11518
11519 int
11520 main ()
11521 {
11522 return $ac_func ();
11523   ;
11524   return 0;
11525 }
11526 _ACEOF
11527 rm -f conftest.$ac_objext conftest$ac_exeext
11528 if { (ac_try="$ac_link"
11529 case "(($ac_try" in
11530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531   *) ac_try_echo=$ac_try;;
11532 esac
11533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534   (eval "$ac_link") 2>conftest.er1
11535   ac_status=$?
11536   grep -v '^ *+' conftest.er1 >conftest.err
11537   rm -f conftest.er1
11538   cat conftest.err >&5
11539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540   (exit $ac_status); } && {
11541          test -z "$ac_c_werror_flag" ||
11542          test ! -s conftest.err
11543        } && test -s conftest$ac_exeext &&
11544        $as_test_x conftest$ac_exeext; then
11545   eval "$as_ac_var=yes"
11546 else
11547   echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11549
11550         eval "$as_ac_var=no"
11551 fi
11552
11553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11554       conftest$ac_exeext conftest.$ac_ext
11555 fi
11556 ac_res=`eval echo '${'$as_ac_var'}'`
11557                { echo "$as_me:$LINENO: result: $ac_res" >&5
11558 echo "${ECHO_T}$ac_res" >&6; }
11559 if test `eval echo '${'$as_ac_var'}'` = yes; then
11560   cat >>confdefs.h <<_ACEOF
11561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11562 _ACEOF
11563
11564 fi
11565 done
11566
11567
11568 # Check whether --enable-shared was given.
11569 if test "${enable_shared+set}" = set; then
11570   enableval=$enable_shared; p=${PACKAGE-default}
11571     case $enableval in
11572     yes) enable_shared=yes ;;
11573     no) enable_shared=no ;;
11574     *)
11575       enable_shared=no
11576       # Look at the argument we got.  We use all the common list separators.
11577       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11578       for pkg in $enableval; do
11579         IFS="$lt_save_ifs"
11580         if test "X$pkg" = "X$p"; then
11581           enable_shared=yes
11582         fi
11583       done
11584       IFS="$lt_save_ifs"
11585       ;;
11586     esac
11587 else
11588   enable_shared=yes
11589 fi
11590
11591
11592 # Check whether --enable-static was given.
11593 if test "${enable_static+set}" = set; then
11594   enableval=$enable_static; p=${PACKAGE-default}
11595     case $enableval in
11596     yes) enable_static=yes ;;
11597     no) enable_static=no ;;
11598     *)
11599      enable_static=no
11600       # Look at the argument we got.  We use all the common list separators.
11601       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11602       for pkg in $enableval; do
11603         IFS="$lt_save_ifs"
11604         if test "X$pkg" = "X$p"; then
11605           enable_static=yes
11606         fi
11607       done
11608       IFS="$lt_save_ifs"
11609       ;;
11610     esac
11611 else
11612   enable_static=yes
11613 fi
11614
11615
11616 # Check whether --enable-fast-install was given.
11617 if test "${enable_fast_install+set}" = set; then
11618   enableval=$enable_fast_install; p=${PACKAGE-default}
11619     case $enableval in
11620     yes) enable_fast_install=yes ;;
11621     no) enable_fast_install=no ;;
11622     *)
11623       enable_fast_install=no
11624       # Look at the argument we got.  We use all the common list separators.
11625       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11626       for pkg in $enableval; do
11627         IFS="$lt_save_ifs"
11628         if test "X$pkg" = "X$p"; then
11629           enable_fast_install=yes
11630         fi
11631       done
11632       IFS="$lt_save_ifs"
11633       ;;
11634     esac
11635 else
11636   enable_fast_install=yes
11637 fi
11638
11639
11640 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11641 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
11642 if test "${lt_cv_path_SED+set}" = set; then
11643   echo $ECHO_N "(cached) $ECHO_C" >&6
11644 else
11645   # Loop through the user's path and test for sed and gsed.
11646 # Then use that list of sed's as ones to test for truncation.
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11649 do
11650   IFS=$as_save_IFS
11651   test -z "$as_dir" && as_dir=.
11652   for lt_ac_prog in sed gsed; do
11653     for ac_exec_ext in '' $ac_executable_extensions; do
11654       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11655         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11656       fi
11657     done
11658   done
11659 done
11660 lt_ac_max=0
11661 lt_ac_count=0
11662 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11663 # along with /bin/sed that truncates output.
11664 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11665   test ! -f $lt_ac_sed && continue
11666   cat /dev/null > conftest.in
11667   lt_ac_count=0
11668   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11669   # Check for GNU sed and select it if it is found.
11670   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11671     lt_cv_path_SED=$lt_ac_sed
11672     break
11673   fi
11674   while true; do
11675     cat conftest.in conftest.in >conftest.tmp
11676     mv conftest.tmp conftest.in
11677     cp conftest.in conftest.nl
11678     echo >>conftest.nl
11679     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11680     cmp -s conftest.out conftest.nl || break
11681     # 10000 chars as input seems more than enough
11682     test $lt_ac_count -gt 10 && break
11683     lt_ac_count=`expr $lt_ac_count + 1`
11684     if test $lt_ac_count -gt $lt_ac_max; then
11685       lt_ac_max=$lt_ac_count
11686       lt_cv_path_SED=$lt_ac_sed
11687     fi
11688   done
11689 done
11690
11691 fi
11692
11693 SED=$lt_cv_path_SED
11694 { echo "$as_me:$LINENO: result: $SED" >&5
11695 echo "${ECHO_T}$SED" >&6; }
11696
11697
11698 # Check whether --with-gnu-ld was given.
11699 if test "${with_gnu_ld+set}" = set; then
11700   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11701 else
11702   with_gnu_ld=no
11703 fi
11704
11705 ac_prog=ld
11706 if test "$GCC" = yes; then
11707   # Check if gcc -print-prog-name=ld gives a path.
11708   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11709 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11710   case $host in
11711   *-*-mingw*)
11712     # gcc leaves a trailing carriage return which upsets mingw
11713     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11714   *)
11715     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11716   esac
11717   case $ac_prog in
11718     # Accept absolute paths.
11719     [\\/]* | ?:[\\/]*)
11720       re_direlt='/[^/][^/]*/\.\./'
11721       # Canonicalize the pathname of ld
11722       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11723       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11724         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11725       done
11726       test -z "$LD" && LD="$ac_prog"
11727       ;;
11728   "")
11729     # If it fails, then pretend we aren't using GCC.
11730     ac_prog=ld
11731     ;;
11732   *)
11733     # If it is relative, then search for the first ld in PATH.
11734     with_gnu_ld=unknown
11735     ;;
11736   esac
11737 elif test "$with_gnu_ld" = yes; then
11738   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11739 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11740 else
11741   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11742 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11743 fi
11744 if test "${lt_cv_path_LD+set}" = set; then
11745   echo $ECHO_N "(cached) $ECHO_C" >&6
11746 else
11747   if test -z "$LD"; then
11748   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11749   for ac_dir in $PATH; do
11750     IFS="$lt_save_ifs"
11751     test -z "$ac_dir" && ac_dir=.
11752     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11753       lt_cv_path_LD="$ac_dir/$ac_prog"
11754       # Check to see if the program is GNU ld.  I'd rather use --version,
11755       # but apparently some variants of GNU ld only accept -v.
11756       # Break only if it was the GNU/non-GNU ld that we prefer.
11757       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11758       *GNU* | *'with BFD'*)
11759         test "$with_gnu_ld" != no && break
11760         ;;
11761       *)
11762         test "$with_gnu_ld" != yes && break
11763         ;;
11764       esac
11765     fi
11766   done
11767   IFS="$lt_save_ifs"
11768 else
11769   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11770 fi
11771 fi
11772
11773 LD="$lt_cv_path_LD"
11774 if test -n "$LD"; then
11775   { echo "$as_me:$LINENO: result: $LD" >&5
11776 echo "${ECHO_T}$LD" >&6; }
11777 else
11778   { echo "$as_me:$LINENO: result: no" >&5
11779 echo "${ECHO_T}no" >&6; }
11780 fi
11781 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11782 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11783    { (exit 1); exit 1; }; }
11784 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11785 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11786 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11787   echo $ECHO_N "(cached) $ECHO_C" >&6
11788 else
11789   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11790 case `$LD -v 2>&1 </dev/null` in
11791 *GNU* | *'with BFD'*)
11792   lt_cv_prog_gnu_ld=yes
11793   ;;
11794 *)
11795   lt_cv_prog_gnu_ld=no
11796   ;;
11797 esac
11798 fi
11799 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11800 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11801 with_gnu_ld=$lt_cv_prog_gnu_ld
11802
11803
11804 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11805 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
11806 if test "${lt_cv_ld_reload_flag+set}" = set; then
11807   echo $ECHO_N "(cached) $ECHO_C" >&6
11808 else
11809   lt_cv_ld_reload_flag='-r'
11810 fi
11811 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11812 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
11813 reload_flag=$lt_cv_ld_reload_flag
11814 case $reload_flag in
11815 "" | " "*) ;;
11816 *) reload_flag=" $reload_flag" ;;
11817 esac
11818 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11819 case $host_os in
11820   darwin*)
11821     if test "$GCC" = yes; then
11822       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
11823     else
11824       reload_cmds='$LD$reload_flag -o $output$reload_objs'
11825     fi
11826     ;;
11827 esac
11828
11829 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11830 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
11831 if test "${lt_cv_deplibs_check_method+set}" = set; then
11832   echo $ECHO_N "(cached) $ECHO_C" >&6
11833 else
11834   lt_cv_file_magic_cmd='$MAGIC_CMD'
11835 lt_cv_file_magic_test_file=
11836 lt_cv_deplibs_check_method='unknown'
11837 # Need to set the preceding variable on all platforms that support
11838 # interlibrary dependencies.
11839 # 'none' -- dependencies not supported.
11840 # `unknown' -- same as none, but documents that we really don't know.
11841 # 'pass_all' -- all dependencies passed with no checks.
11842 # 'test_compile' -- check by making test program.
11843 # 'file_magic [[regex]]' -- check by looking for files in library path
11844 # which responds to the $file_magic_cmd with a given extended regex.
11845 # If you have `file' or equivalent on your system and you're not sure
11846 # whether `pass_all' will *always* work, you probably want this one.
11847
11848 case $host_os in
11849 aix4* | aix5*)
11850   lt_cv_deplibs_check_method=pass_all
11851   ;;
11852
11853 beos*)
11854   lt_cv_deplibs_check_method=pass_all
11855   ;;
11856
11857 bsdi[45]*)
11858   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11859   lt_cv_file_magic_cmd='/usr/bin/file -L'
11860   lt_cv_file_magic_test_file=/shlib/libc.so
11861   ;;
11862
11863 cygwin*)
11864   # func_win32_libid is a shell function defined in ltmain.sh
11865   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11866   lt_cv_file_magic_cmd='func_win32_libid'
11867   ;;
11868
11869 mingw* | pw32*)
11870   # Base MSYS/MinGW do not provide the 'file' command needed by
11871   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11872   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11873   lt_cv_file_magic_cmd='$OBJDUMP -f'
11874   ;;
11875
11876 darwin* | rhapsody*)
11877   lt_cv_deplibs_check_method=pass_all
11878   ;;
11879
11880 freebsd* | kfreebsd*-gnu | dragonfly*)
11881   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11882     case $host_cpu in
11883     i*86 )
11884       # Not sure whether the presence of OpenBSD here was a mistake.
11885       # Let's accept both of them until this is cleared up.
11886       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11887       lt_cv_file_magic_cmd=/usr/bin/file
11888       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11889       ;;
11890     esac
11891   else
11892     lt_cv_deplibs_check_method=pass_all
11893   fi
11894   ;;
11895
11896 gnu*)
11897   lt_cv_deplibs_check_method=pass_all
11898   ;;
11899
11900 hpux10.20* | hpux11*)
11901   lt_cv_file_magic_cmd=/usr/bin/file
11902   case $host_cpu in
11903   ia64*)
11904     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11905     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11906     ;;
11907   hppa*64*)
11908     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]'
11909     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11910     ;;
11911   *)
11912     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11913     lt_cv_file_magic_test_file=/usr/lib/libc.sl
11914     ;;
11915   esac
11916   ;;
11917
11918 interix3*)
11919   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11920   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11921   ;;
11922
11923 irix5* | irix6* | nonstopux*)
11924   case $LD in
11925   *-32|*"-32 ") libmagic=32-bit;;
11926   *-n32|*"-n32 ") libmagic=N32;;
11927   *-64|*"-64 ") libmagic=64-bit;;
11928   *) libmagic=never-match;;
11929   esac
11930   lt_cv_deplibs_check_method=pass_all
11931   ;;
11932
11933 # This must be Linux ELF.
11934 linux*)
11935   lt_cv_deplibs_check_method=pass_all
11936   ;;
11937
11938 netbsd*)
11939   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11940     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11941   else
11942     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11943   fi
11944   ;;
11945
11946 newos6*)
11947   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11948   lt_cv_file_magic_cmd=/usr/bin/file
11949   lt_cv_file_magic_test_file=/usr/lib/libnls.so
11950   ;;
11951
11952 nto-qnx*)
11953   lt_cv_deplibs_check_method=unknown
11954   ;;
11955
11956 openbsd*)
11957   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11958     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11959   else
11960     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11961   fi
11962   ;;
11963
11964 osf3* | osf4* | osf5*)
11965   lt_cv_deplibs_check_method=pass_all
11966   ;;
11967
11968 solaris*)
11969   lt_cv_deplibs_check_method=pass_all
11970   ;;
11971
11972 sysv4 | sysv4.3*)
11973   case $host_vendor in
11974   motorola)
11975     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]'
11976     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11977     ;;
11978   ncr)
11979     lt_cv_deplibs_check_method=pass_all
11980     ;;
11981   sequent)
11982     lt_cv_file_magic_cmd='/bin/file'
11983     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11984     ;;
11985   sni)
11986     lt_cv_file_magic_cmd='/bin/file'
11987     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11988     lt_cv_file_magic_test_file=/lib/libc.so
11989     ;;
11990   siemens)
11991     lt_cv_deplibs_check_method=pass_all
11992     ;;
11993   pc)
11994     lt_cv_deplibs_check_method=pass_all
11995     ;;
11996   esac
11997   ;;
11998
11999 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12000   lt_cv_deplibs_check_method=pass_all
12001   ;;
12002 esac
12003
12004 fi
12005 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12006 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12007 file_magic_cmd=$lt_cv_file_magic_cmd
12008 deplibs_check_method=$lt_cv_deplibs_check_method
12009 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12010
12011
12012
12013 # If no C compiler was specified, use CC.
12014 LTCC=${LTCC-"$CC"}
12015
12016 # If no C compiler flags were specified, use CFLAGS.
12017 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12018
12019 # Allow CC to be a program name with arguments.
12020 compiler=$CC
12021
12022 # Check whether --enable-libtool-lock was given.
12023 if test "${enable_libtool_lock+set}" = set; then
12024   enableval=$enable_libtool_lock;
12025 fi
12026
12027 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12028
12029 # Some flags need to be propagated to the compiler or linker for good
12030 # libtool support.
12031 case $host in
12032 ia64-*-hpux*)
12033   # Find out which ABI we are using.
12034   echo 'int i;' > conftest.$ac_ext
12035   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12036   (eval $ac_compile) 2>&5
12037   ac_status=$?
12038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039   (exit $ac_status); }; then
12040     case `/usr/bin/file conftest.$ac_objext` in
12041     *ELF-32*)
12042       HPUX_IA64_MODE="32"
12043       ;;
12044     *ELF-64*)
12045       HPUX_IA64_MODE="64"
12046       ;;
12047     esac
12048   fi
12049   rm -rf conftest*
12050   ;;
12051 *-*-irix6*)
12052   # Find out which ABI we are using.
12053   echo '#line 12053 "configure"' > conftest.$ac_ext
12054   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12055   (eval $ac_compile) 2>&5
12056   ac_status=$?
12057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058   (exit $ac_status); }; then
12059    if test "$lt_cv_prog_gnu_ld" = yes; then
12060     case `/usr/bin/file conftest.$ac_objext` in
12061     *32-bit*)
12062       LD="${LD-ld} -melf32bsmip"
12063       ;;
12064     *N32*)
12065       LD="${LD-ld} -melf32bmipn32"
12066       ;;
12067     *64-bit*)
12068       LD="${LD-ld} -melf64bmip"
12069       ;;
12070     esac
12071    else
12072     case `/usr/bin/file conftest.$ac_objext` in
12073     *32-bit*)
12074       LD="${LD-ld} -32"
12075       ;;
12076     *N32*)
12077       LD="${LD-ld} -n32"
12078       ;;
12079     *64-bit*)
12080       LD="${LD-ld} -64"
12081       ;;
12082     esac
12083    fi
12084   fi
12085   rm -rf conftest*
12086   ;;
12087
12088 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12089   # Find out which ABI we are using.
12090   echo 'int i;' > conftest.$ac_ext
12091   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12092   (eval $ac_compile) 2>&5
12093   ac_status=$?
12094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095   (exit $ac_status); }; then
12096     case `/usr/bin/file conftest.o` in
12097     *32-bit*)
12098       case $host in
12099         x86_64-*linux*)
12100           LD="${LD-ld} -m elf_i386"
12101           ;;
12102         ppc64-*linux*|powerpc64-*linux*)
12103           LD="${LD-ld} -m elf32ppclinux"
12104           ;;
12105         s390x-*linux*)
12106           LD="${LD-ld} -m elf_s390"
12107           ;;
12108         sparc64-*linux*)
12109           LD="${LD-ld} -m elf32_sparc"
12110           ;;
12111       esac
12112       ;;
12113     *64-bit*)
12114       case $host in
12115         x86_64-*linux*)
12116           LD="${LD-ld} -m elf_x86_64"
12117           ;;
12118         ppc*-*linux*|powerpc*-*linux*)
12119           LD="${LD-ld} -m elf64ppc"
12120           ;;
12121         s390*-*linux*)
12122           LD="${LD-ld} -m elf64_s390"
12123           ;;
12124         sparc*-*linux*)
12125           LD="${LD-ld} -m elf64_sparc"
12126           ;;
12127       esac
12128       ;;
12129     esac
12130   fi
12131   rm -rf conftest*
12132   ;;
12133
12134 *-*-sco3.2v5*)
12135   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12136   SAVE_CFLAGS="$CFLAGS"
12137   CFLAGS="$CFLAGS -belf"
12138   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12139 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12140 if test "${lt_cv_cc_needs_belf+set}" = set; then
12141   echo $ECHO_N "(cached) $ECHO_C" >&6
12142 else
12143   ac_ext=c
12144 ac_cpp='$CPP $CPPFLAGS'
12145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12148
12149      cat >conftest.$ac_ext <<_ACEOF
12150 /* confdefs.h.  */
12151 _ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h.  */
12155
12156 int
12157 main ()
12158 {
12159
12160   ;
12161   return 0;
12162 }
12163 _ACEOF
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (ac_try="$ac_link"
12166 case "(($ac_try" in
12167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168   *) ac_try_echo=$ac_try;;
12169 esac
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171   (eval "$ac_link") 2>conftest.er1
12172   ac_status=$?
12173   grep -v '^ *+' conftest.er1 >conftest.err
12174   rm -f conftest.er1
12175   cat conftest.err >&5
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); } && {
12178          test -z "$ac_c_werror_flag" ||
12179          test ! -s conftest.err
12180        } && test -s conftest$ac_exeext &&
12181        $as_test_x conftest$ac_exeext; then
12182   lt_cv_cc_needs_belf=yes
12183 else
12184   echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12186
12187         lt_cv_cc_needs_belf=no
12188 fi
12189
12190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12191       conftest$ac_exeext conftest.$ac_ext
12192      ac_ext=c
12193 ac_cpp='$CPP $CPPFLAGS'
12194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12197
12198 fi
12199 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12200 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12201   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12202     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12203     CFLAGS="$SAVE_CFLAGS"
12204   fi
12205   ;;
12206 sparc*-*solaris*)
12207   # Find out which ABI we are using.
12208   echo 'int i;' > conftest.$ac_ext
12209   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12210   (eval $ac_compile) 2>&5
12211   ac_status=$?
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); }; then
12214     case `/usr/bin/file conftest.o` in
12215     *64-bit*)
12216       case $lt_cv_prog_gnu_ld in
12217       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12218       *)    LD="${LD-ld} -64" ;;
12219       esac
12220       ;;
12221     esac
12222   fi
12223   rm -rf conftest*
12224   ;;
12225
12226
12227 esac
12228
12229 need_locks="$enable_libtool_lock"
12230
12231
12232
12233
12234 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12235     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12236     (test "X$CXX" != "Xg++"))) ; then
12237   ac_ext=cpp
12238 ac_cpp='$CXXCPP $CPPFLAGS'
12239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12242 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12243 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12244 if test -z "$CXXCPP"; then
12245   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12246   echo $ECHO_N "(cached) $ECHO_C" >&6
12247 else
12248       # Double quotes because CXXCPP needs to be expanded
12249     for CXXCPP in "$CXX -E" "/lib/cpp"
12250     do
12251       ac_preproc_ok=false
12252 for ac_cxx_preproc_warn_flag in '' yes
12253 do
12254   # Use a header file that comes with gcc, so configuring glibc
12255   # with a fresh cross-compiler works.
12256   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12257   # <limits.h> exists even on freestanding compilers.
12258   # On the NeXT, cc -E runs the code through the compiler's parser,
12259   # not just through cpp. "Syntax error" is here to catch this case.
12260   cat >conftest.$ac_ext <<_ACEOF
12261 /* confdefs.h.  */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h.  */
12266 #ifdef __STDC__
12267 # include <limits.h>
12268 #else
12269 # include <assert.h>
12270 #endif
12271                      Syntax error
12272 _ACEOF
12273 if { (ac_try="$ac_cpp conftest.$ac_ext"
12274 case "(($ac_try" in
12275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276   *) ac_try_echo=$ac_try;;
12277 esac
12278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12280   ac_status=$?
12281   grep -v '^ *+' conftest.er1 >conftest.err
12282   rm -f conftest.er1
12283   cat conftest.err >&5
12284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); } >/dev/null && {
12286          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12287          test ! -s conftest.err
12288        }; then
12289   :
12290 else
12291   echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12293
12294   # Broken: fails on valid input.
12295 continue
12296 fi
12297
12298 rm -f conftest.err conftest.$ac_ext
12299
12300   # OK, works on sane cases.  Now check whether nonexistent headers
12301   # can be detected and how.
12302   cat >conftest.$ac_ext <<_ACEOF
12303 /* confdefs.h.  */
12304 _ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h.  */
12308 #include <ac_nonexistent.h>
12309 _ACEOF
12310 if { (ac_try="$ac_cpp conftest.$ac_ext"
12311 case "(($ac_try" in
12312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313   *) ac_try_echo=$ac_try;;
12314 esac
12315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12317   ac_status=$?
12318   grep -v '^ *+' conftest.er1 >conftest.err
12319   rm -f conftest.er1
12320   cat conftest.err >&5
12321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322   (exit $ac_status); } >/dev/null && {
12323          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12324          test ! -s conftest.err
12325        }; then
12326   # Broken: success on invalid input.
12327 continue
12328 else
12329   echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12331
12332   # Passes both tests.
12333 ac_preproc_ok=:
12334 break
12335 fi
12336
12337 rm -f conftest.err conftest.$ac_ext
12338
12339 done
12340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12341 rm -f conftest.err conftest.$ac_ext
12342 if $ac_preproc_ok; then
12343   break
12344 fi
12345
12346     done
12347     ac_cv_prog_CXXCPP=$CXXCPP
12348
12349 fi
12350   CXXCPP=$ac_cv_prog_CXXCPP
12351 else
12352   ac_cv_prog_CXXCPP=$CXXCPP
12353 fi
12354 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12355 echo "${ECHO_T}$CXXCPP" >&6; }
12356 ac_preproc_ok=false
12357 for ac_cxx_preproc_warn_flag in '' yes
12358 do
12359   # Use a header file that comes with gcc, so configuring glibc
12360   # with a fresh cross-compiler works.
12361   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12362   # <limits.h> exists even on freestanding compilers.
12363   # On the NeXT, cc -E runs the code through the compiler's parser,
12364   # not just through cpp. "Syntax error" is here to catch this case.
12365   cat >conftest.$ac_ext <<_ACEOF
12366 /* confdefs.h.  */
12367 _ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h.  */
12371 #ifdef __STDC__
12372 # include <limits.h>
12373 #else
12374 # include <assert.h>
12375 #endif
12376                      Syntax error
12377 _ACEOF
12378 if { (ac_try="$ac_cpp conftest.$ac_ext"
12379 case "(($ac_try" in
12380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381   *) ac_try_echo=$ac_try;;
12382 esac
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12385   ac_status=$?
12386   grep -v '^ *+' conftest.er1 >conftest.err
12387   rm -f conftest.er1
12388   cat conftest.err >&5
12389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390   (exit $ac_status); } >/dev/null && {
12391          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12392          test ! -s conftest.err
12393        }; then
12394   :
12395 else
12396   echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12398
12399   # Broken: fails on valid input.
12400 continue
12401 fi
12402
12403 rm -f conftest.err conftest.$ac_ext
12404
12405   # OK, works on sane cases.  Now check whether nonexistent headers
12406   # can be detected and how.
12407   cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h.  */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h.  */
12413 #include <ac_nonexistent.h>
12414 _ACEOF
12415 if { (ac_try="$ac_cpp conftest.$ac_ext"
12416 case "(($ac_try" in
12417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418   *) ac_try_echo=$ac_try;;
12419 esac
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12422   ac_status=$?
12423   grep -v '^ *+' conftest.er1 >conftest.err
12424   rm -f conftest.er1
12425   cat conftest.err >&5
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); } >/dev/null && {
12428          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12429          test ! -s conftest.err
12430        }; then
12431   # Broken: success on invalid input.
12432 continue
12433 else
12434   echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12436
12437   # Passes both tests.
12438 ac_preproc_ok=:
12439 break
12440 fi
12441
12442 rm -f conftest.err conftest.$ac_ext
12443
12444 done
12445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12446 rm -f conftest.err conftest.$ac_ext
12447 if $ac_preproc_ok; then
12448   :
12449 else
12450   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12451 See \`config.log' for more details." >&5
12452 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12453 See \`config.log' for more details." >&2;}
12454    { (exit 1); exit 1; }; }
12455 fi
12456
12457 ac_ext=cpp
12458 ac_cpp='$CXXCPP $CPPFLAGS'
12459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12462
12463 fi
12464
12465
12466 ac_ext=f
12467 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12468 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12469 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12470 if test -n "$ac_tool_prefix"; then
12471   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
12472   do
12473     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12477 if test "${ac_cv_prog_F77+set}" = set; then
12478   echo $ECHO_N "(cached) $ECHO_C" >&6
12479 else
12480   if test -n "$F77"; then
12481   ac_cv_prog_F77="$F77" # Let the user override the test.
12482 else
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12485 do
12486   IFS=$as_save_IFS
12487   test -z "$as_dir" && as_dir=.
12488   for ac_exec_ext in '' $ac_executable_extensions; do
12489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12490     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12492     break 2
12493   fi
12494 done
12495 done
12496 IFS=$as_save_IFS
12497
12498 fi
12499 fi
12500 F77=$ac_cv_prog_F77
12501 if test -n "$F77"; then
12502   { echo "$as_me:$LINENO: result: $F77" >&5
12503 echo "${ECHO_T}$F77" >&6; }
12504 else
12505   { echo "$as_me:$LINENO: result: no" >&5
12506 echo "${ECHO_T}no" >&6; }
12507 fi
12508
12509
12510     test -n "$F77" && break
12511   done
12512 fi
12513 if test -z "$F77"; then
12514   ac_ct_F77=$F77
12515   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
12516 do
12517   # Extract the first word of "$ac_prog", so it can be a program name with args.
12518 set dummy $ac_prog; ac_word=$2
12519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12521 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12522   echo $ECHO_N "(cached) $ECHO_C" >&6
12523 else
12524   if test -n "$ac_ct_F77"; then
12525   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12526 else
12527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528 for as_dir in $PATH
12529 do
12530   IFS=$as_save_IFS
12531   test -z "$as_dir" && as_dir=.
12532   for ac_exec_ext in '' $ac_executable_extensions; do
12533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12534     ac_cv_prog_ac_ct_F77="$ac_prog"
12535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12536     break 2
12537   fi
12538 done
12539 done
12540 IFS=$as_save_IFS
12541
12542 fi
12543 fi
12544 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12545 if test -n "$ac_ct_F77"; then
12546   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12547 echo "${ECHO_T}$ac_ct_F77" >&6; }
12548 else
12549   { echo "$as_me:$LINENO: result: no" >&5
12550 echo "${ECHO_T}no" >&6; }
12551 fi
12552
12553
12554   test -n "$ac_ct_F77" && break
12555 done
12556
12557   if test "x$ac_ct_F77" = x; then
12558     F77=""
12559   else
12560     case $cross_compiling:$ac_tool_warned in
12561 yes:)
12562 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12563 whose name does not start with the host triplet.  If you think this
12564 configuration is useful to you, please write to autoconf@gnu.org." >&5
12565 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12566 whose name does not start with the host triplet.  If you think this
12567 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12568 ac_tool_warned=yes ;;
12569 esac
12570     F77=$ac_ct_F77
12571   fi
12572 fi
12573
12574
12575 # Provide some information about the compiler.
12576 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12577 ac_compiler=`set X $ac_compile; echo $2`
12578 { (ac_try="$ac_compiler --version >&5"
12579 case "(($ac_try" in
12580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581   *) ac_try_echo=$ac_try;;
12582 esac
12583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584   (eval "$ac_compiler --version >&5") 2>&5
12585   ac_status=$?
12586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587   (exit $ac_status); }
12588 { (ac_try="$ac_compiler -v >&5"
12589 case "(($ac_try" in
12590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12591   *) ac_try_echo=$ac_try;;
12592 esac
12593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12594   (eval "$ac_compiler -v >&5") 2>&5
12595   ac_status=$?
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); }
12598 { (ac_try="$ac_compiler -V >&5"
12599 case "(($ac_try" in
12600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601   *) ac_try_echo=$ac_try;;
12602 esac
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604   (eval "$ac_compiler -V >&5") 2>&5
12605   ac_status=$?
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); }
12608 rm -f a.out
12609
12610 # If we don't use `.F' as extension, the preprocessor is not run on the
12611 # input file.  (Note that this only needs to work for GNU compilers.)
12612 ac_save_ext=$ac_ext
12613 ac_ext=F
12614 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12615 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
12616 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12617   echo $ECHO_N "(cached) $ECHO_C" >&6
12618 else
12619   cat >conftest.$ac_ext <<_ACEOF
12620       program main
12621 #ifndef __GNUC__
12622        choke me
12623 #endif
12624
12625       end
12626 _ACEOF
12627 rm -f conftest.$ac_objext
12628 if { (ac_try="$ac_compile"
12629 case "(($ac_try" in
12630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631   *) ac_try_echo=$ac_try;;
12632 esac
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634   (eval "$ac_compile") 2>conftest.er1
12635   ac_status=$?
12636   grep -v '^ *+' conftest.er1 >conftest.err
12637   rm -f conftest.er1
12638   cat conftest.err >&5
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); } && {
12641          test -z "$ac_f77_werror_flag" ||
12642          test ! -s conftest.err
12643        } && test -s conftest.$ac_objext; then
12644   ac_compiler_gnu=yes
12645 else
12646   echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12648
12649         ac_compiler_gnu=no
12650 fi
12651
12652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12653 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12654
12655 fi
12656 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12657 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
12658 ac_ext=$ac_save_ext
12659 ac_test_FFLAGS=${FFLAGS+set}
12660 ac_save_FFLAGS=$FFLAGS
12661 FFLAGS=
12662 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12663 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
12664 if test "${ac_cv_prog_f77_g+set}" = set; then
12665   echo $ECHO_N "(cached) $ECHO_C" >&6
12666 else
12667   FFLAGS=-g
12668 cat >conftest.$ac_ext <<_ACEOF
12669       program main
12670
12671       end
12672 _ACEOF
12673 rm -f conftest.$ac_objext
12674 if { (ac_try="$ac_compile"
12675 case "(($ac_try" in
12676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677   *) ac_try_echo=$ac_try;;
12678 esac
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680   (eval "$ac_compile") 2>conftest.er1
12681   ac_status=$?
12682   grep -v '^ *+' conftest.er1 >conftest.err
12683   rm -f conftest.er1
12684   cat conftest.err >&5
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); } && {
12687          test -z "$ac_f77_werror_flag" ||
12688          test ! -s conftest.err
12689        } && test -s conftest.$ac_objext; then
12690   ac_cv_prog_f77_g=yes
12691 else
12692   echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695         ac_cv_prog_f77_g=no
12696 fi
12697
12698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12699
12700 fi
12701 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12702 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
12703 if test "$ac_test_FFLAGS" = set; then
12704   FFLAGS=$ac_save_FFLAGS
12705 elif test $ac_cv_prog_f77_g = yes; then
12706   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12707     FFLAGS="-g -O2"
12708   else
12709     FFLAGS="-g"
12710   fi
12711 else
12712   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12713     FFLAGS="-O2"
12714   else
12715     FFLAGS=
12716   fi
12717 fi
12718
12719 G77=`test $ac_compiler_gnu = yes && echo yes`
12720 ac_ext=c
12721 ac_cpp='$CPP $CPPFLAGS'
12722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12725
12726
12727
12728 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12729
12730 # find the maximum length of command line arguments
12731 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12732 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
12733 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12734   echo $ECHO_N "(cached) $ECHO_C" >&6
12735 else
12736     i=0
12737   teststring="ABCD"
12738
12739   case $build_os in
12740   msdosdjgpp*)
12741     # On DJGPP, this test can blow up pretty badly due to problems in libc
12742     # (any single argument exceeding 2000 bytes causes a buffer overrun
12743     # during glob expansion).  Even if it were fixed, the result of this
12744     # check would be larger than it should be.
12745     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12746     ;;
12747
12748   gnu*)
12749     # Under GNU Hurd, this test is not required because there is
12750     # no limit to the length of command line arguments.
12751     # Libtool will interpret -1 as no limit whatsoever
12752     lt_cv_sys_max_cmd_len=-1;
12753     ;;
12754
12755   cygwin* | mingw*)
12756     # On Win9x/ME, this test blows up -- it succeeds, but takes
12757     # about 5 minutes as the teststring grows exponentially.
12758     # Worse, since 9x/ME are not pre-emptively multitasking,
12759     # you end up with a "frozen" computer, even though with patience
12760     # the test eventually succeeds (with a max line length of 256k).
12761     # Instead, let's just punt: use the minimum linelength reported by
12762     # all of the supported platforms: 8192 (on NT/2K/XP).
12763     lt_cv_sys_max_cmd_len=8192;
12764     ;;
12765
12766   amigaos*)
12767     # On AmigaOS with pdksh, this test takes hours, literally.
12768     # So we just punt and use a minimum line length of 8192.
12769     lt_cv_sys_max_cmd_len=8192;
12770     ;;
12771
12772   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12773     # This has been around since 386BSD, at least.  Likely further.
12774     if test -x /sbin/sysctl; then
12775       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12776     elif test -x /usr/sbin/sysctl; then
12777       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12778     else
12779       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12780     fi
12781     # And add a safety zone
12782     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12783     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12784     ;;
12785
12786   interix*)
12787     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12788     lt_cv_sys_max_cmd_len=196608
12789     ;;
12790
12791   osf*)
12792     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12793     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12794     # nice to cause kernel panics so lets avoid the loop below.
12795     # First set a reasonable default.
12796     lt_cv_sys_max_cmd_len=16384
12797     #
12798     if test -x /sbin/sysconfig; then
12799       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12800         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12801       esac
12802     fi
12803     ;;
12804   sco3.2v5*)
12805     lt_cv_sys_max_cmd_len=102400
12806     ;;
12807   sysv5* | sco5v6* | sysv4.2uw2*)
12808     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12809     if test -n "$kargmax"; then
12810       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
12811     else
12812       lt_cv_sys_max_cmd_len=32768
12813     fi
12814     ;;
12815   *)
12816     # If test is not a shell built-in, we'll probably end up computing a
12817     # maximum length that is only half of the actual maximum length, but
12818     # we can't tell.
12819     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12820     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12821                = "XX$teststring") >/dev/null 2>&1 &&
12822             new_result=`expr "X$teststring" : ".*" 2>&1` &&
12823             lt_cv_sys_max_cmd_len=$new_result &&
12824             test $i != 17 # 1/2 MB should be enough
12825     do
12826       i=`expr $i + 1`
12827       teststring=$teststring$teststring
12828     done
12829     teststring=
12830     # Add a significant safety factor because C++ compilers can tack on massive
12831     # amounts of additional arguments before passing them to the linker.
12832     # It appears as though 1/2 is a usable value.
12833     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12834     ;;
12835   esac
12836
12837 fi
12838
12839 if test -n $lt_cv_sys_max_cmd_len ; then
12840   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12841 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
12842 else
12843   { echo "$as_me:$LINENO: result: none" >&5
12844 echo "${ECHO_T}none" >&6; }
12845 fi
12846
12847
12848
12849
12850 # Check for command to grab the raw symbol name followed by C symbol from nm.
12851 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12852 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
12853 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12854   echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856
12857 # These are sane defaults that work on at least a few old systems.
12858 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12859
12860 # Character class describing NM global symbol codes.
12861 symcode='[BCDEGRST]'
12862
12863 # Regexp to match symbols that can be accessed directly from C.
12864 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12865
12866 # Transform an extracted symbol line into a proper C declaration
12867 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12868
12869 # Transform an extracted symbol line into symbol name and symbol address
12870 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'"
12871
12872 # Define system-specific variables.
12873 case $host_os in
12874 aix*)
12875   symcode='[BCDT]'
12876   ;;
12877 cygwin* | mingw* | pw32*)
12878   symcode='[ABCDGISTW]'
12879   ;;
12880 hpux*) # Its linker distinguishes data from code symbols
12881   if test "$host_cpu" = ia64; then
12882     symcode='[ABCDEGRST]'
12883   fi
12884   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12885   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'"
12886   ;;
12887 linux*)
12888   if test "$host_cpu" = ia64; then
12889     symcode='[ABCDGIRSTW]'
12890     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12891     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'"
12892   fi
12893   ;;
12894 irix* | nonstopux*)
12895   symcode='[BCDEGRST]'
12896   ;;
12897 osf*)
12898   symcode='[BCDEGQRST]'
12899   ;;
12900 solaris*)
12901   symcode='[BDRT]'
12902   ;;
12903 sco3.2v5*)
12904   symcode='[DT]'
12905   ;;
12906 sysv4.2uw2*)
12907   symcode='[DT]'
12908   ;;
12909 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12910   symcode='[ABDT]'
12911   ;;
12912 sysv4)
12913   symcode='[DFNSTU]'
12914   ;;
12915 esac
12916
12917 # Handle CRLF in mingw tool chain
12918 opt_cr=
12919 case $build_os in
12920 mingw*)
12921   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12922   ;;
12923 esac
12924
12925 # If we're using GNU nm, then use its standard symbol codes.
12926 case `$NM -V 2>&1` in
12927 *GNU* | *'with BFD'*)
12928   symcode='[ABCDGIRSTW]' ;;
12929 esac
12930
12931 # Try without a prefix undercore, then with it.
12932 for ac_symprfx in "" "_"; do
12933
12934   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12935   symxfrm="\\1 $ac_symprfx\\2 \\2"
12936
12937   # Write the raw and C identifiers.
12938   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12939
12940   # Check to see that the pipe works correctly.
12941   pipe_works=no
12942
12943   rm -f conftest*
12944   cat > conftest.$ac_ext <<EOF
12945 #ifdef __cplusplus
12946 extern "C" {
12947 #endif
12948 char nm_test_var;
12949 void nm_test_func(){}
12950 #ifdef __cplusplus
12951 }
12952 #endif
12953 int main(){nm_test_var='a';nm_test_func();return(0);}
12954 EOF
12955
12956   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957   (eval $ac_compile) 2>&5
12958   ac_status=$?
12959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); }; then
12961     # Now try to grab the symbols.
12962     nlist=conftest.nm
12963     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12964   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12965   ac_status=$?
12966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); } && test -s "$nlist"; then
12968       # Try sorting and uniquifying the output.
12969       if sort "$nlist" | uniq > "$nlist"T; then
12970         mv -f "$nlist"T "$nlist"
12971       else
12972         rm -f "$nlist"T
12973       fi
12974
12975       # Make sure that we snagged all the symbols we need.
12976       if grep ' nm_test_var$' "$nlist" >/dev/null; then
12977         if grep ' nm_test_func$' "$nlist" >/dev/null; then
12978           cat <<EOF > conftest.$ac_ext
12979 #ifdef __cplusplus
12980 extern "C" {
12981 #endif
12982
12983 EOF
12984           # Now generate the symbol file.
12985           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12986
12987           cat <<EOF >> conftest.$ac_ext
12988 #if defined (__STDC__) && __STDC__
12989 # define lt_ptr_t void *
12990 #else
12991 # define lt_ptr_t char *
12992 # define const
12993 #endif
12994
12995 /* The mapping between symbol names and symbols. */
12996 const struct {
12997   const char *name;
12998   lt_ptr_t address;
12999 }
13000 lt_preloaded_symbols[] =
13001 {
13002 EOF
13003           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13004           cat <<\EOF >> conftest.$ac_ext
13005   {0, (lt_ptr_t) 0}
13006 };
13007
13008 #ifdef __cplusplus
13009 }
13010 #endif
13011 EOF
13012           # Now try linking the two files.
13013           mv conftest.$ac_objext conftstm.$ac_objext
13014           lt_save_LIBS="$LIBS"
13015           lt_save_CFLAGS="$CFLAGS"
13016           LIBS="conftstm.$ac_objext"
13017           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13018           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13019   (eval $ac_link) 2>&5
13020   ac_status=$?
13021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13023             pipe_works=yes
13024           fi
13025           LIBS="$lt_save_LIBS"
13026           CFLAGS="$lt_save_CFLAGS"
13027         else
13028           echo "cannot find nm_test_func in $nlist" >&5
13029         fi
13030       else
13031         echo "cannot find nm_test_var in $nlist" >&5
13032       fi
13033     else
13034       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13035     fi
13036   else
13037     echo "$progname: failed program was:" >&5
13038     cat conftest.$ac_ext >&5
13039   fi
13040   rm -f conftest* conftst*
13041
13042   # Do not use the global_symbol_pipe unless it works.
13043   if test "$pipe_works" = yes; then
13044     break
13045   else
13046     lt_cv_sys_global_symbol_pipe=
13047   fi
13048 done
13049
13050 fi
13051
13052 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13053   lt_cv_sys_global_symbol_to_cdecl=
13054 fi
13055 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13056   { echo "$as_me:$LINENO: result: failed" >&5
13057 echo "${ECHO_T}failed" >&6; }
13058 else
13059   { echo "$as_me:$LINENO: result: ok" >&5
13060 echo "${ECHO_T}ok" >&6; }
13061 fi
13062
13063 { echo "$as_me:$LINENO: checking for objdir" >&5
13064 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13065 if test "${lt_cv_objdir+set}" = set; then
13066   echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068   rm -f .libs 2>/dev/null
13069 mkdir .libs 2>/dev/null
13070 if test -d .libs; then
13071   lt_cv_objdir=.libs
13072 else
13073   # MS-DOS does not allow filenames that begin with a dot.
13074   lt_cv_objdir=_libs
13075 fi
13076 rmdir .libs 2>/dev/null
13077 fi
13078 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13079 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13080 objdir=$lt_cv_objdir
13081
13082
13083
13084
13085
13086 case $host_os in
13087 aix3*)
13088   # AIX sometimes has problems with the GCC collect2 program.  For some
13089   # reason, if we set the COLLECT_NAMES environment variable, the problems
13090   # vanish in a puff of smoke.
13091   if test "X${COLLECT_NAMES+set}" != Xset; then
13092     COLLECT_NAMES=
13093     export COLLECT_NAMES
13094   fi
13095   ;;
13096 esac
13097
13098 # Sed substitution that helps us do robust quoting.  It backslashifies
13099 # metacharacters that are still active within double-quoted strings.
13100 Xsed='sed -e 1s/^X//'
13101 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13102
13103 # Same as above, but do not quote variable references.
13104 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13105
13106 # Sed substitution to delay expansion of an escaped shell variable in a
13107 # double_quote_subst'ed string.
13108 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13109
13110 # Sed substitution to avoid accidental globbing in evaled expressions
13111 no_glob_subst='s/\*/\\\*/g'
13112
13113 # Constants:
13114 rm="rm -f"
13115
13116 # Global variables:
13117 default_ofile=mklib
13118 can_build_shared=yes
13119
13120 # All known linkers require a `.a' archive for static linking (except MSVC,
13121 # which needs '.lib').
13122 libext=a
13123 ltmain="$ac_aux_dir/ltmain.sh"
13124 ofile="$default_ofile"
13125 with_gnu_ld="$lt_cv_prog_gnu_ld"
13126
13127 if test -n "$ac_tool_prefix"; then
13128   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13129 set dummy ${ac_tool_prefix}ar; ac_word=$2
13130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13132 if test "${ac_cv_prog_AR+set}" = set; then
13133   echo $ECHO_N "(cached) $ECHO_C" >&6
13134 else
13135   if test -n "$AR"; then
13136   ac_cv_prog_AR="$AR" # Let the user override the test.
13137 else
13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139 for as_dir in $PATH
13140 do
13141   IFS=$as_save_IFS
13142   test -z "$as_dir" && as_dir=.
13143   for ac_exec_ext in '' $ac_executable_extensions; do
13144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13145     ac_cv_prog_AR="${ac_tool_prefix}ar"
13146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13147     break 2
13148   fi
13149 done
13150 done
13151 IFS=$as_save_IFS
13152
13153 fi
13154 fi
13155 AR=$ac_cv_prog_AR
13156 if test -n "$AR"; then
13157   { echo "$as_me:$LINENO: result: $AR" >&5
13158 echo "${ECHO_T}$AR" >&6; }
13159 else
13160   { echo "$as_me:$LINENO: result: no" >&5
13161 echo "${ECHO_T}no" >&6; }
13162 fi
13163
13164
13165 fi
13166 if test -z "$ac_cv_prog_AR"; then
13167   ac_ct_AR=$AR
13168   # Extract the first word of "ar", so it can be a program name with args.
13169 set dummy ar; ac_word=$2
13170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13172 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13173   echo $ECHO_N "(cached) $ECHO_C" >&6
13174 else
13175   if test -n "$ac_ct_AR"; then
13176   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13177 else
13178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179 for as_dir in $PATH
13180 do
13181   IFS=$as_save_IFS
13182   test -z "$as_dir" && as_dir=.
13183   for ac_exec_ext in '' $ac_executable_extensions; do
13184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13185     ac_cv_prog_ac_ct_AR="ar"
13186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13187     break 2
13188   fi
13189 done
13190 done
13191 IFS=$as_save_IFS
13192
13193 fi
13194 fi
13195 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13196 if test -n "$ac_ct_AR"; then
13197   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13198 echo "${ECHO_T}$ac_ct_AR" >&6; }
13199 else
13200   { echo "$as_me:$LINENO: result: no" >&5
13201 echo "${ECHO_T}no" >&6; }
13202 fi
13203
13204   if test "x$ac_ct_AR" = x; then
13205     AR="false"
13206   else
13207     case $cross_compiling:$ac_tool_warned in
13208 yes:)
13209 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13210 whose name does not start with the host triplet.  If you think this
13211 configuration is useful to you, please write to autoconf@gnu.org." >&5
13212 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13213 whose name does not start with the host triplet.  If you think this
13214 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13215 ac_tool_warned=yes ;;
13216 esac
13217     AR=$ac_ct_AR
13218   fi
13219 else
13220   AR="$ac_cv_prog_AR"
13221 fi
13222
13223 if test -n "$ac_tool_prefix"; then
13224   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13225 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13228 if test "${ac_cv_prog_RANLIB+set}" = set; then
13229   echo $ECHO_N "(cached) $ECHO_C" >&6
13230 else
13231   if test -n "$RANLIB"; then
13232   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13233 else
13234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $PATH
13236 do
13237   IFS=$as_save_IFS
13238   test -z "$as_dir" && as_dir=.
13239   for ac_exec_ext in '' $ac_executable_extensions; do
13240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13241     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13243     break 2
13244   fi
13245 done
13246 done
13247 IFS=$as_save_IFS
13248
13249 fi
13250 fi
13251 RANLIB=$ac_cv_prog_RANLIB
13252 if test -n "$RANLIB"; then
13253   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13254 echo "${ECHO_T}$RANLIB" >&6; }
13255 else
13256   { echo "$as_me:$LINENO: result: no" >&5
13257 echo "${ECHO_T}no" >&6; }
13258 fi
13259
13260
13261 fi
13262 if test -z "$ac_cv_prog_RANLIB"; then
13263   ac_ct_RANLIB=$RANLIB
13264   # Extract the first word of "ranlib", so it can be a program name with args.
13265 set dummy ranlib; ac_word=$2
13266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13268 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13269   echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271   if test -n "$ac_ct_RANLIB"; then
13272   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13273 else
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $PATH
13276 do
13277   IFS=$as_save_IFS
13278   test -z "$as_dir" && as_dir=.
13279   for ac_exec_ext in '' $ac_executable_extensions; do
13280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13281     ac_cv_prog_ac_ct_RANLIB="ranlib"
13282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13283     break 2
13284   fi
13285 done
13286 done
13287 IFS=$as_save_IFS
13288
13289 fi
13290 fi
13291 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13292 if test -n "$ac_ct_RANLIB"; then
13293   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13294 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13295 else
13296   { echo "$as_me:$LINENO: result: no" >&5
13297 echo "${ECHO_T}no" >&6; }
13298 fi
13299
13300   if test "x$ac_ct_RANLIB" = x; then
13301     RANLIB=":"
13302   else
13303     case $cross_compiling:$ac_tool_warned in
13304 yes:)
13305 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13306 whose name does not start with the host triplet.  If you think this
13307 configuration is useful to you, please write to autoconf@gnu.org." >&5
13308 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13309 whose name does not start with the host triplet.  If you think this
13310 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13311 ac_tool_warned=yes ;;
13312 esac
13313     RANLIB=$ac_ct_RANLIB
13314   fi
13315 else
13316   RANLIB="$ac_cv_prog_RANLIB"
13317 fi
13318
13319 if test -n "$ac_tool_prefix"; then
13320   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13321 set dummy ${ac_tool_prefix}strip; ac_word=$2
13322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13324 if test "${ac_cv_prog_STRIP+set}" = set; then
13325   echo $ECHO_N "(cached) $ECHO_C" >&6
13326 else
13327   if test -n "$STRIP"; then
13328   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13329 else
13330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13331 for as_dir in $PATH
13332 do
13333   IFS=$as_save_IFS
13334   test -z "$as_dir" && as_dir=.
13335   for ac_exec_ext in '' $ac_executable_extensions; do
13336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13337     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13339     break 2
13340   fi
13341 done
13342 done
13343 IFS=$as_save_IFS
13344
13345 fi
13346 fi
13347 STRIP=$ac_cv_prog_STRIP
13348 if test -n "$STRIP"; then
13349   { echo "$as_me:$LINENO: result: $STRIP" >&5
13350 echo "${ECHO_T}$STRIP" >&6; }
13351 else
13352   { echo "$as_me:$LINENO: result: no" >&5
13353 echo "${ECHO_T}no" >&6; }
13354 fi
13355
13356
13357 fi
13358 if test -z "$ac_cv_prog_STRIP"; then
13359   ac_ct_STRIP=$STRIP
13360   # Extract the first word of "strip", so it can be a program name with args.
13361 set dummy strip; ac_word=$2
13362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13364 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13365   echo $ECHO_N "(cached) $ECHO_C" >&6
13366 else
13367   if test -n "$ac_ct_STRIP"; then
13368   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13369 else
13370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371 for as_dir in $PATH
13372 do
13373   IFS=$as_save_IFS
13374   test -z "$as_dir" && as_dir=.
13375   for ac_exec_ext in '' $ac_executable_extensions; do
13376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13377     ac_cv_prog_ac_ct_STRIP="strip"
13378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13379     break 2
13380   fi
13381 done
13382 done
13383 IFS=$as_save_IFS
13384
13385 fi
13386 fi
13387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13388 if test -n "$ac_ct_STRIP"; then
13389   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13390 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13391 else
13392   { echo "$as_me:$LINENO: result: no" >&5
13393 echo "${ECHO_T}no" >&6; }
13394 fi
13395
13396   if test "x$ac_ct_STRIP" = x; then
13397     STRIP=":"
13398   else
13399     case $cross_compiling:$ac_tool_warned in
13400 yes:)
13401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13402 whose name does not start with the host triplet.  If you think this
13403 configuration is useful to you, please write to autoconf@gnu.org." >&5
13404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13405 whose name does not start with the host triplet.  If you think this
13406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13407 ac_tool_warned=yes ;;
13408 esac
13409     STRIP=$ac_ct_STRIP
13410   fi
13411 else
13412   STRIP="$ac_cv_prog_STRIP"
13413 fi
13414
13415
13416 old_CC="$CC"
13417 old_CFLAGS="$CFLAGS"
13418
13419 # Set sane defaults for various variables
13420 test -z "$AR" && AR=ar
13421 test -z "$AR_FLAGS" && AR_FLAGS=cru
13422 test -z "$AS" && AS=as
13423 test -z "$CC" && CC=cc
13424 test -z "$LTCC" && LTCC=$CC
13425 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13426 test -z "$DLLTOOL" && DLLTOOL=dlltool
13427 test -z "$LD" && LD=ld
13428 test -z "$LN_S" && LN_S="ln -s"
13429 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13430 test -z "$NM" && NM=nm
13431 test -z "$SED" && SED=sed
13432 test -z "$OBJDUMP" && OBJDUMP=objdump
13433 test -z "$RANLIB" && RANLIB=:
13434 test -z "$STRIP" && STRIP=:
13435 test -z "$ac_objext" && ac_objext=o
13436
13437 # Determine commands to create old-style static archives.
13438 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13439 old_postinstall_cmds='chmod 644 $oldlib'
13440 old_postuninstall_cmds=
13441
13442 if test -n "$RANLIB"; then
13443   case $host_os in
13444   openbsd*)
13445     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13446     ;;
13447   *)
13448     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13449     ;;
13450   esac
13451   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13452 fi
13453
13454 for cc_temp in $compiler""; do
13455   case $cc_temp in
13456     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13457     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13458     \-*) ;;
13459     *) break;;
13460   esac
13461 done
13462 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13463
13464
13465 # Only perform the check for file, if the check method requires it
13466 case $deplibs_check_method in
13467 file_magic*)
13468   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13469     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13470 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13471 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13472   echo $ECHO_N "(cached) $ECHO_C" >&6
13473 else
13474   case $MAGIC_CMD in
13475 [\\/*] |  ?:[\\/]*)
13476   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13477   ;;
13478 *)
13479   lt_save_MAGIC_CMD="$MAGIC_CMD"
13480   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13481   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13482   for ac_dir in $ac_dummy; do
13483     IFS="$lt_save_ifs"
13484     test -z "$ac_dir" && ac_dir=.
13485     if test -f $ac_dir/${ac_tool_prefix}file; then
13486       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13487       if test -n "$file_magic_test_file"; then
13488         case $deplibs_check_method in
13489         "file_magic "*)
13490           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13491           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13492           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13493             $EGREP "$file_magic_regex" > /dev/null; then
13494             :
13495           else
13496             cat <<EOF 1>&2
13497
13498 *** Warning: the command libtool uses to detect shared libraries,
13499 *** $file_magic_cmd, produces output that libtool cannot recognize.
13500 *** The result is that libtool may fail to recognize shared libraries
13501 *** as such.  This will affect the creation of libtool libraries that
13502 *** depend on shared libraries, but programs linked with such libtool
13503 *** libraries will work regardless of this problem.  Nevertheless, you
13504 *** may want to report the problem to your system manager and/or to
13505 *** bug-libtool@gnu.org
13506
13507 EOF
13508           fi ;;
13509         esac
13510       fi
13511       break
13512     fi
13513   done
13514   IFS="$lt_save_ifs"
13515   MAGIC_CMD="$lt_save_MAGIC_CMD"
13516   ;;
13517 esac
13518 fi
13519
13520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13521 if test -n "$MAGIC_CMD"; then
13522   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13523 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13524 else
13525   { echo "$as_me:$LINENO: result: no" >&5
13526 echo "${ECHO_T}no" >&6; }
13527 fi
13528
13529 if test -z "$lt_cv_path_MAGIC_CMD"; then
13530   if test -n "$ac_tool_prefix"; then
13531     { echo "$as_me:$LINENO: checking for file" >&5
13532 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13533 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13534   echo $ECHO_N "(cached) $ECHO_C" >&6
13535 else
13536   case $MAGIC_CMD in
13537 [\\/*] |  ?:[\\/]*)
13538   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13539   ;;
13540 *)
13541   lt_save_MAGIC_CMD="$MAGIC_CMD"
13542   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13543   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13544   for ac_dir in $ac_dummy; do
13545     IFS="$lt_save_ifs"
13546     test -z "$ac_dir" && ac_dir=.
13547     if test -f $ac_dir/file; then
13548       lt_cv_path_MAGIC_CMD="$ac_dir/file"
13549       if test -n "$file_magic_test_file"; then
13550         case $deplibs_check_method in
13551         "file_magic "*)
13552           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13553           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13554           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13555             $EGREP "$file_magic_regex" > /dev/null; then
13556             :
13557           else
13558             cat <<EOF 1>&2
13559
13560 *** Warning: the command libtool uses to detect shared libraries,
13561 *** $file_magic_cmd, produces output that libtool cannot recognize.
13562 *** The result is that libtool may fail to recognize shared libraries
13563 *** as such.  This will affect the creation of libtool libraries that
13564 *** depend on shared libraries, but programs linked with such libtool
13565 *** libraries will work regardless of this problem.  Nevertheless, you
13566 *** may want to report the problem to your system manager and/or to
13567 *** bug-libtool@gnu.org
13568
13569 EOF
13570           fi ;;
13571         esac
13572       fi
13573       break
13574     fi
13575   done
13576   IFS="$lt_save_ifs"
13577   MAGIC_CMD="$lt_save_MAGIC_CMD"
13578   ;;
13579 esac
13580 fi
13581
13582 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13583 if test -n "$MAGIC_CMD"; then
13584   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13585 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13586 else
13587   { echo "$as_me:$LINENO: result: no" >&5
13588 echo "${ECHO_T}no" >&6; }
13589 fi
13590
13591   else
13592     MAGIC_CMD=:
13593   fi
13594 fi
13595
13596   fi
13597   ;;
13598 esac
13599
13600 enable_dlopen=yes
13601 enable_win32_dll=no
13602
13603 # Check whether --enable-libtool-lock was given.
13604 if test "${enable_libtool_lock+set}" = set; then
13605   enableval=$enable_libtool_lock;
13606 fi
13607
13608 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13609
13610
13611 # Check whether --with-pic was given.
13612 if test "${with_pic+set}" = set; then
13613   withval=$with_pic; pic_mode="$withval"
13614 else
13615   pic_mode=default
13616 fi
13617
13618 test -z "$pic_mode" && pic_mode=default
13619
13620 # Use C for the default configuration in the libtool script
13621 tagname=
13622 lt_save_CC="$CC"
13623 ac_ext=c
13624 ac_cpp='$CPP $CPPFLAGS'
13625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13628
13629
13630 # Source file extension for C test sources.
13631 ac_ext=c
13632
13633 # Object file extension for compiled C test sources.
13634 objext=o
13635 objext=$objext
13636
13637 # Code to be used in simple compile tests
13638 lt_simple_compile_test_code="int some_variable = 0;\n"
13639
13640 # Code to be used in simple link tests
13641 lt_simple_link_test_code='int main(){return(0);}\n'
13642
13643
13644 # If no C compiler was specified, use CC.
13645 LTCC=${LTCC-"$CC"}
13646
13647 # If no C compiler flags were specified, use CFLAGS.
13648 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13649
13650 # Allow CC to be a program name with arguments.
13651 compiler=$CC
13652
13653
13654 # save warnings/boilerplate of simple test code
13655 ac_outfile=conftest.$ac_objext
13656 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13657 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13658 _lt_compiler_boilerplate=`cat conftest.err`
13659 $rm conftest*
13660
13661 ac_outfile=conftest.$ac_objext
13662 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13663 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13664 _lt_linker_boilerplate=`cat conftest.err`
13665 $rm conftest*
13666
13667
13668 ## CAVEAT EMPTOR:
13669 ## There is no encapsulation within the following macros, do not change
13670 ## the running order or otherwise move them around unless you know exactly
13671 ## what you are doing...
13672
13673 lt_prog_compiler_no_builtin_flag=
13674
13675 if test "$GCC" = yes; then
13676   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13677
13678
13679 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13680 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
13681 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13682   echo $ECHO_N "(cached) $ECHO_C" >&6
13683 else
13684   lt_cv_prog_compiler_rtti_exceptions=no
13685   ac_outfile=conftest.$ac_objext
13686    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13687    lt_compiler_flag="-fno-rtti -fno-exceptions"
13688    # Insert the option either (1) after the last *FLAGS variable, or
13689    # (2) before a word containing "conftest.", or (3) at the end.
13690    # Note that $ac_compile itself does not contain backslashes and begins
13691    # with a dollar sign (not a hyphen), so the echo should work correctly.
13692    # The option is referenced via a variable to avoid confusing sed.
13693    lt_compile=`echo "$ac_compile" | $SED \
13694    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13695    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13696    -e 's:$: $lt_compiler_flag:'`
13697    (eval echo "\"\$as_me:13697: $lt_compile\"" >&5)
13698    (eval "$lt_compile" 2>conftest.err)
13699    ac_status=$?
13700    cat conftest.err >&5
13701    echo "$as_me:13701: \$? = $ac_status" >&5
13702    if (exit $ac_status) && test -s "$ac_outfile"; then
13703      # The compiler can only warn and ignore the option if not recognized
13704      # So say no if there are warnings other than the usual output.
13705      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13706      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13707      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13708        lt_cv_prog_compiler_rtti_exceptions=yes
13709      fi
13710    fi
13711    $rm conftest*
13712
13713 fi
13714 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13715 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13716
13717 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13718     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13719 else
13720     :
13721 fi
13722
13723 fi
13724
13725 lt_prog_compiler_wl=
13726 lt_prog_compiler_pic=
13727 lt_prog_compiler_static=
13728
13729 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13730 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13731
13732   if test "$GCC" = yes; then
13733     lt_prog_compiler_wl='-Wl,'
13734     lt_prog_compiler_static='-static'
13735
13736     case $host_os in
13737       aix*)
13738       # All AIX code is PIC.
13739       if test "$host_cpu" = ia64; then
13740         # AIX 5 now supports IA64 processor
13741         lt_prog_compiler_static='-Bstatic'
13742       fi
13743       ;;
13744
13745     amigaos*)
13746       # FIXME: we need at least 68020 code to build shared libraries, but
13747       # adding the `-m68020' flag to GCC prevents building anything better,
13748       # like `-m68040'.
13749       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13750       ;;
13751
13752     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13753       # PIC is the default for these OSes.
13754       ;;
13755
13756     mingw* | pw32* | os2*)
13757       # This hack is so that the source file can tell whether it is being
13758       # built for inclusion in a dll (and should export symbols for example).
13759       lt_prog_compiler_pic='-DDLL_EXPORT'
13760       ;;
13761
13762     darwin* | rhapsody*)
13763       # PIC is the default on this platform
13764       # Common symbols not allowed in MH_DYLIB files
13765       lt_prog_compiler_pic='-fno-common'
13766       ;;
13767
13768     interix3*)
13769       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13770       # Instead, we relocate shared libraries at runtime.
13771       ;;
13772
13773     msdosdjgpp*)
13774       # Just because we use GCC doesn't mean we suddenly get shared libraries
13775       # on systems that don't support them.
13776       lt_prog_compiler_can_build_shared=no
13777       enable_shared=no
13778       ;;
13779
13780     sysv4*MP*)
13781       if test -d /usr/nec; then
13782         lt_prog_compiler_pic=-Kconform_pic
13783       fi
13784       ;;
13785
13786     hpux*)
13787       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13788       # not for PA HP-UX.
13789       case $host_cpu in
13790       hppa*64*|ia64*)
13791         # +Z the default
13792         ;;
13793       *)
13794         lt_prog_compiler_pic='-fPIC'
13795         ;;
13796       esac
13797       ;;
13798
13799     *)
13800       lt_prog_compiler_pic='-fPIC'
13801       ;;
13802     esac
13803   else
13804     # PORTME Check for flag to pass linker flags through the system compiler.
13805     case $host_os in
13806     aix*)
13807       lt_prog_compiler_wl='-Wl,'
13808       if test "$host_cpu" = ia64; then
13809         # AIX 5 now supports IA64 processor
13810         lt_prog_compiler_static='-Bstatic'
13811       else
13812         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13813       fi
13814       ;;
13815       darwin*)
13816         # PIC is the default on this platform
13817         # Common symbols not allowed in MH_DYLIB files
13818        case $cc_basename in
13819          xlc*)
13820          lt_prog_compiler_pic='-qnocommon'
13821          lt_prog_compiler_wl='-Wl,'
13822          ;;
13823        esac
13824        ;;
13825
13826     mingw* | pw32* | os2*)
13827       # This hack is so that the source file can tell whether it is being
13828       # built for inclusion in a dll (and should export symbols for example).
13829       lt_prog_compiler_pic='-DDLL_EXPORT'
13830       ;;
13831
13832     hpux9* | hpux10* | hpux11*)
13833       lt_prog_compiler_wl='-Wl,'
13834       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13835       # not for PA HP-UX.
13836       case $host_cpu in
13837       hppa*64*|ia64*)
13838         # +Z the default
13839         ;;
13840       *)
13841         lt_prog_compiler_pic='+Z'
13842         ;;
13843       esac
13844       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13845       lt_prog_compiler_static='${wl}-a ${wl}archive'
13846       ;;
13847
13848     irix5* | irix6* | nonstopux*)
13849       lt_prog_compiler_wl='-Wl,'
13850       # PIC (with -KPIC) is the default.
13851       lt_prog_compiler_static='-non_shared'
13852       ;;
13853
13854     newsos6)
13855       lt_prog_compiler_pic='-KPIC'
13856       lt_prog_compiler_static='-Bstatic'
13857       ;;
13858
13859     linux*)
13860       case $cc_basename in
13861       icc* | ecc*)
13862         lt_prog_compiler_wl='-Wl,'
13863         lt_prog_compiler_pic='-KPIC'
13864         lt_prog_compiler_static='-static'
13865         ;;
13866       pgcc* | pgf77* | pgf90* | pgf95*)
13867         # Portland Group compilers (*not* the Pentium gcc compiler,
13868         # which looks to be a dead project)
13869         lt_prog_compiler_wl='-Wl,'
13870         lt_prog_compiler_pic='-fpic'
13871         lt_prog_compiler_static='-Bstatic'
13872         ;;
13873       ccc*)
13874         lt_prog_compiler_wl='-Wl,'
13875         # All Alpha code is PIC.
13876         lt_prog_compiler_static='-non_shared'
13877         ;;
13878       esac
13879       ;;
13880
13881     osf3* | osf4* | osf5*)
13882       lt_prog_compiler_wl='-Wl,'
13883       # All OSF/1 code is PIC.
13884       lt_prog_compiler_static='-non_shared'
13885       ;;
13886
13887     solaris*)
13888       lt_prog_compiler_pic='-KPIC'
13889       lt_prog_compiler_static='-Bstatic'
13890       case $cc_basename in
13891       f77* | f90* | f95*)
13892         lt_prog_compiler_wl='-Qoption ld ';;
13893       *)
13894         lt_prog_compiler_wl='-Wl,';;
13895       esac
13896       ;;
13897
13898     sunos4*)
13899       lt_prog_compiler_wl='-Qoption ld '
13900       lt_prog_compiler_pic='-PIC'
13901       lt_prog_compiler_static='-Bstatic'
13902       ;;
13903
13904     sysv4 | sysv4.2uw2* | sysv4.3*)
13905       lt_prog_compiler_wl='-Wl,'
13906       lt_prog_compiler_pic='-KPIC'
13907       lt_prog_compiler_static='-Bstatic'
13908       ;;
13909
13910     sysv4*MP*)
13911       if test -d /usr/nec ;then
13912         lt_prog_compiler_pic='-Kconform_pic'
13913         lt_prog_compiler_static='-Bstatic'
13914       fi
13915       ;;
13916
13917     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13918       lt_prog_compiler_wl='-Wl,'
13919       lt_prog_compiler_pic='-KPIC'
13920       lt_prog_compiler_static='-Bstatic'
13921       ;;
13922
13923     unicos*)
13924       lt_prog_compiler_wl='-Wl,'
13925       lt_prog_compiler_can_build_shared=no
13926       ;;
13927
13928     uts4*)
13929       lt_prog_compiler_pic='-pic'
13930       lt_prog_compiler_static='-Bstatic'
13931       ;;
13932
13933     *)
13934       lt_prog_compiler_can_build_shared=no
13935       ;;
13936     esac
13937   fi
13938
13939 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13940 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
13941
13942 #
13943 # Check to make sure the PIC flag actually works.
13944 #
13945 if test -n "$lt_prog_compiler_pic"; then
13946
13947 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13948 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
13949 if test "${lt_prog_compiler_pic_works+set}" = set; then
13950   echo $ECHO_N "(cached) $ECHO_C" >&6
13951 else
13952   lt_prog_compiler_pic_works=no
13953   ac_outfile=conftest.$ac_objext
13954    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13955    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13956    # Insert the option either (1) after the last *FLAGS variable, or
13957    # (2) before a word containing "conftest.", or (3) at the end.
13958    # Note that $ac_compile itself does not contain backslashes and begins
13959    # with a dollar sign (not a hyphen), so the echo should work correctly.
13960    # The option is referenced via a variable to avoid confusing sed.
13961    lt_compile=`echo "$ac_compile" | $SED \
13962    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13963    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13964    -e 's:$: $lt_compiler_flag:'`
13965    (eval echo "\"\$as_me:13965: $lt_compile\"" >&5)
13966    (eval "$lt_compile" 2>conftest.err)
13967    ac_status=$?
13968    cat conftest.err >&5
13969    echo "$as_me:13969: \$? = $ac_status" >&5
13970    if (exit $ac_status) && test -s "$ac_outfile"; then
13971      # The compiler can only warn and ignore the option if not recognized
13972      # So say no if there are warnings other than the usual output.
13973      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13974      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13975      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13976        lt_prog_compiler_pic_works=yes
13977      fi
13978    fi
13979    $rm conftest*
13980
13981 fi
13982 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13983 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
13984
13985 if test x"$lt_prog_compiler_pic_works" = xyes; then
13986     case $lt_prog_compiler_pic in
13987      "" | " "*) ;;
13988      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13989      esac
13990 else
13991     lt_prog_compiler_pic=
13992      lt_prog_compiler_can_build_shared=no
13993 fi
13994
13995 fi
13996 case $host_os in
13997   # For platforms which do not support PIC, -DPIC is meaningless:
13998   *djgpp*)
13999     lt_prog_compiler_pic=
14000     ;;
14001   *)
14002     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14003     ;;
14004 esac
14005
14006 #
14007 # Check to make sure the static flag actually works.
14008 #
14009 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14010 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14011 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14012 if test "${lt_prog_compiler_static_works+set}" = set; then
14013   echo $ECHO_N "(cached) $ECHO_C" >&6
14014 else
14015   lt_prog_compiler_static_works=no
14016    save_LDFLAGS="$LDFLAGS"
14017    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14018    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14019    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14020      # The linker can only warn and ignore the option if not recognized
14021      # So say no if there are warnings
14022      if test -s conftest.err; then
14023        # Append any errors to the config.log.
14024        cat conftest.err 1>&5
14025        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14026        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14027        if diff conftest.exp conftest.er2 >/dev/null; then
14028          lt_prog_compiler_static_works=yes
14029        fi
14030      else
14031        lt_prog_compiler_static_works=yes
14032      fi
14033    fi
14034    $rm conftest*
14035    LDFLAGS="$save_LDFLAGS"
14036
14037 fi
14038 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14039 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14040
14041 if test x"$lt_prog_compiler_static_works" = xyes; then
14042     :
14043 else
14044     lt_prog_compiler_static=
14045 fi
14046
14047
14048 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14049 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14050 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14051   echo $ECHO_N "(cached) $ECHO_C" >&6
14052 else
14053   lt_cv_prog_compiler_c_o=no
14054    $rm -r conftest 2>/dev/null
14055    mkdir conftest
14056    cd conftest
14057    mkdir out
14058    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14059
14060    lt_compiler_flag="-o out/conftest2.$ac_objext"
14061    # Insert the option either (1) after the last *FLAGS variable, or
14062    # (2) before a word containing "conftest.", or (3) at the end.
14063    # Note that $ac_compile itself does not contain backslashes and begins
14064    # with a dollar sign (not a hyphen), so the echo should work correctly.
14065    lt_compile=`echo "$ac_compile" | $SED \
14066    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14067    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14068    -e 's:$: $lt_compiler_flag:'`
14069    (eval echo "\"\$as_me:14069: $lt_compile\"" >&5)
14070    (eval "$lt_compile" 2>out/conftest.err)
14071    ac_status=$?
14072    cat out/conftest.err >&5
14073    echo "$as_me:14073: \$? = $ac_status" >&5
14074    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14075    then
14076      # The compiler can only warn and ignore the option if not recognized
14077      # So say no if there are warnings
14078      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14079      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14080      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14081        lt_cv_prog_compiler_c_o=yes
14082      fi
14083    fi
14084    chmod u+w . 2>&5
14085    $rm conftest*
14086    # SGI C++ compiler will create directory out/ii_files/ for
14087    # template instantiation
14088    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14089    $rm out/* && rmdir out
14090    cd ..
14091    rmdir conftest
14092    $rm conftest*
14093
14094 fi
14095 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14096 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14097
14098
14099 hard_links="nottested"
14100 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14101   # do not overwrite the value of need_locks provided by the user
14102   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14103 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14104   hard_links=yes
14105   $rm conftest*
14106   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14107   touch conftest.a
14108   ln conftest.a conftest.b 2>&5 || hard_links=no
14109   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14110   { echo "$as_me:$LINENO: result: $hard_links" >&5
14111 echo "${ECHO_T}$hard_links" >&6; }
14112   if test "$hard_links" = no; then
14113     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14114 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14115     need_locks=warn
14116   fi
14117 else
14118   need_locks=no
14119 fi
14120
14121 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14122 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14123
14124   runpath_var=
14125   allow_undefined_flag=
14126   enable_shared_with_static_runtimes=no
14127   archive_cmds=
14128   archive_expsym_cmds=
14129   old_archive_From_new_cmds=
14130   old_archive_from_expsyms_cmds=
14131   export_dynamic_flag_spec=
14132   whole_archive_flag_spec=
14133   thread_safe_flag_spec=
14134   hardcode_libdir_flag_spec=
14135   hardcode_libdir_flag_spec_ld=
14136   hardcode_libdir_separator=
14137   hardcode_direct=no
14138   hardcode_minus_L=no
14139   hardcode_shlibpath_var=unsupported
14140   link_all_deplibs=unknown
14141   hardcode_automatic=no
14142   module_cmds=
14143   module_expsym_cmds=
14144   always_export_symbols=no
14145   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14146   # include_expsyms should be a list of space-separated symbols to be *always*
14147   # included in the symbol list
14148   include_expsyms=
14149   # exclude_expsyms can be an extended regexp of symbols to exclude
14150   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14151   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14152   # as well as any symbol that contains `d'.
14153   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14154   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14155   # platforms (ab)use it in PIC code, but their linkers get confused if
14156   # the symbol is explicitly referenced.  Since portable code cannot
14157   # rely on this symbol name, it's probably fine to never include it in
14158   # preloaded symbol tables.
14159   extract_expsyms_cmds=
14160   # Just being paranoid about ensuring that cc_basename is set.
14161   for cc_temp in $compiler""; do
14162   case $cc_temp in
14163     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14164     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14165     \-*) ;;
14166     *) break;;
14167   esac
14168 done
14169 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14170
14171   case $host_os in
14172   cygwin* | mingw* | pw32*)
14173     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14174     # When not using gcc, we currently assume that we are using
14175     # Microsoft Visual C++.
14176     if test "$GCC" != yes; then
14177       with_gnu_ld=no
14178     fi
14179     ;;
14180   interix*)
14181     # we just hope/assume this is gcc and not c89 (= MSVC++)
14182     with_gnu_ld=yes
14183     ;;
14184   openbsd*)
14185     with_gnu_ld=no
14186     ;;
14187   esac
14188
14189   ld_shlibs=yes
14190   if test "$with_gnu_ld" = yes; then
14191     # If archive_cmds runs LD, not CC, wlarc should be empty
14192     wlarc='${wl}'
14193
14194     # Set some defaults for GNU ld with shared library support. These
14195     # are reset later if shared libraries are not supported. Putting them
14196     # here allows them to be overridden if necessary.
14197     runpath_var=LD_RUN_PATH
14198     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14199     export_dynamic_flag_spec='${wl}--export-dynamic'
14200     # ancient GNU ld didn't support --whole-archive et. al.
14201     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14202         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14203       else
14204         whole_archive_flag_spec=
14205     fi
14206     supports_anon_versioning=no
14207     case `$LD -v 2>/dev/null` in
14208       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14209       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14210       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14211       *\ 2.11.*) ;; # other 2.11 versions
14212       *) supports_anon_versioning=yes ;;
14213     esac
14214
14215     # See if GNU ld supports shared libraries.
14216     case $host_os in
14217     aix3* | aix4* | aix5*)
14218       # On AIX/PPC, the GNU linker is very broken
14219       if test "$host_cpu" != ia64; then
14220         ld_shlibs=no
14221         cat <<EOF 1>&2
14222
14223 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14224 *** to be unable to reliably create shared libraries on AIX.
14225 *** Therefore, libtool is disabling shared libraries support.  If you
14226 *** really care for shared libraries, you may want to modify your PATH
14227 *** so that a non-GNU linker is found, and then restart.
14228
14229 EOF
14230       fi
14231       ;;
14232
14233     amigaos*)
14234       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)'
14235       hardcode_libdir_flag_spec='-L$libdir'
14236       hardcode_minus_L=yes
14237
14238       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14239       # that the semantics of dynamic libraries on AmigaOS, at least up
14240       # to version 4, is to share data among multiple programs linked
14241       # with the same dynamic library.  Since this doesn't match the
14242       # behavior of shared libraries on other platforms, we can't use
14243       # them.
14244       ld_shlibs=no
14245       ;;
14246
14247     beos*)
14248       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14249         allow_undefined_flag=unsupported
14250         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14251         # support --undefined.  This deserves some investigation.  FIXME
14252         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14253       else
14254         ld_shlibs=no
14255       fi
14256       ;;
14257
14258     cygwin* | mingw* | pw32*)
14259       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14260       # as there is no search path for DLLs.
14261       hardcode_libdir_flag_spec='-L$libdir'
14262       allow_undefined_flag=unsupported
14263       always_export_symbols=no
14264       enable_shared_with_static_runtimes=yes
14265       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14266
14267       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14268         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14269         # If the export-symbols file already is a .def file (1st line
14270         # is EXPORTS), use it as is; otherwise, prepend...
14271         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14272           cp $export_symbols $output_objdir/$soname.def;
14273         else
14274           echo EXPORTS > $output_objdir/$soname.def;
14275           cat $export_symbols >> $output_objdir/$soname.def;
14276         fi~
14277         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14278       else
14279         ld_shlibs=no
14280       fi
14281       ;;
14282
14283     interix3*)
14284       hardcode_direct=no
14285       hardcode_shlibpath_var=no
14286       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14287       export_dynamic_flag_spec='${wl}-E'
14288       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14289       # Instead, shared libraries are loaded at an image base (0x10000000 by
14290       # default) and relocated if they conflict, which is a slow very memory
14291       # consuming and fragmenting process.  To avoid this, we pick a random,
14292       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14293       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14294       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14295       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'
14296       ;;
14297
14298     linux*)
14299       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14300         tmp_addflag=
14301         case $cc_basename,$host_cpu in
14302         pgcc*)                          # Portland Group C compiler
14303           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'
14304           tmp_addflag=' $pic_flag'
14305           ;;
14306         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14307           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'
14308           tmp_addflag=' $pic_flag -Mnomain' ;;
14309         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14310           tmp_addflag=' -i_dynamic' ;;
14311         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14312           tmp_addflag=' -i_dynamic -nofor_main' ;;
14313         ifc* | ifort*)                  # Intel Fortran compiler
14314           tmp_addflag=' -nofor_main' ;;
14315         esac
14316         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14317
14318         if test $supports_anon_versioning = yes; then
14319           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14320   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14321   $echo "local: *; };" >> $output_objdir/$libname.ver~
14322           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14323         fi
14324       else
14325         ld_shlibs=no
14326       fi
14327       ;;
14328
14329     netbsd*)
14330       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14331         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14332         wlarc=
14333       else
14334         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14335         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14336       fi
14337       ;;
14338
14339     solaris*)
14340       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14341         ld_shlibs=no
14342         cat <<EOF 1>&2
14343
14344 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14345 *** create shared libraries on Solaris systems.  Therefore, libtool
14346 *** is disabling shared libraries support.  We urge you to upgrade GNU
14347 *** binutils to release 2.9.1 or newer.  Another option is to modify
14348 *** your PATH or compiler configuration so that the native linker is
14349 *** used, and then restart.
14350
14351 EOF
14352       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14353         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14354         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14355       else
14356         ld_shlibs=no
14357       fi
14358       ;;
14359
14360     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14361       case `$LD -v 2>&1` in
14362         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14363         ld_shlibs=no
14364         cat <<_LT_EOF 1>&2
14365
14366 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14367 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14368 *** is disabling shared libraries support.  We urge you to upgrade GNU
14369 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14370 *** your PATH or compiler configuration so that the native linker is
14371 *** used, and then restart.
14372
14373 _LT_EOF
14374         ;;
14375         *)
14376           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14377             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14378             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14379             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14380           else
14381             ld_shlibs=no
14382           fi
14383         ;;
14384       esac
14385       ;;
14386
14387     sunos4*)
14388       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14389       wlarc=
14390       hardcode_direct=yes
14391       hardcode_shlibpath_var=no
14392       ;;
14393
14394     *)
14395       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14396         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14397         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14398       else
14399         ld_shlibs=no
14400       fi
14401       ;;
14402     esac
14403
14404     if test "$ld_shlibs" = no; then
14405       runpath_var=
14406       hardcode_libdir_flag_spec=
14407       export_dynamic_flag_spec=
14408       whole_archive_flag_spec=
14409     fi
14410   else
14411     # PORTME fill in a description of your system's linker (not GNU ld)
14412     case $host_os in
14413     aix3*)
14414       allow_undefined_flag=unsupported
14415       always_export_symbols=yes
14416       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'
14417       # Note: this linker hardcodes the directories in LIBPATH if there
14418       # are no directories specified by -L.
14419       hardcode_minus_L=yes
14420       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14421         # Neither direct hardcoding nor static linking is supported with a
14422         # broken collect2.
14423         hardcode_direct=unsupported
14424       fi
14425       ;;
14426
14427     aix4* | aix5*)
14428       if test "$host_cpu" = ia64; then
14429         # On IA64, the linker does run time linking by default, so we don't
14430         # have to do anything special.
14431         aix_use_runtimelinking=no
14432         exp_sym_flag='-Bexport'
14433         no_entry_flag=""
14434       else
14435         # If we're using GNU nm, then we don't want the "-C" option.
14436         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14437         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14438           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'
14439         else
14440           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'
14441         fi
14442         aix_use_runtimelinking=no
14443
14444         # Test if we are trying to use run time linking or normal
14445         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14446         # need to do runtime linking.
14447         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14448           for ld_flag in $LDFLAGS; do
14449           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14450             aix_use_runtimelinking=yes
14451             break
14452           fi
14453           done
14454           ;;
14455         esac
14456
14457         exp_sym_flag='-bexport'
14458         no_entry_flag='-bnoentry'
14459       fi
14460
14461       # When large executables or shared objects are built, AIX ld can
14462       # have problems creating the table of contents.  If linking a library
14463       # or program results in "error TOC overflow" add -mminimal-toc to
14464       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14465       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14466
14467       archive_cmds=''
14468       hardcode_direct=yes
14469       hardcode_libdir_separator=':'
14470       link_all_deplibs=yes
14471
14472       if test "$GCC" = yes; then
14473         case $host_os in aix4.[012]|aix4.[012].*)
14474         # We only want to do this on AIX 4.2 and lower, the check
14475         # below for broken collect2 doesn't work under 4.3+
14476           collect2name=`${CC} -print-prog-name=collect2`
14477           if test -f "$collect2name" && \
14478            strings "$collect2name" | grep resolve_lib_name >/dev/null
14479           then
14480           # We have reworked collect2
14481           hardcode_direct=yes
14482           else
14483           # We have old collect2
14484           hardcode_direct=unsupported
14485           # It fails to find uninstalled libraries when the uninstalled
14486           # path is not listed in the libpath.  Setting hardcode_minus_L
14487           # to unsupported forces relinking
14488           hardcode_minus_L=yes
14489           hardcode_libdir_flag_spec='-L$libdir'
14490           hardcode_libdir_separator=
14491           fi
14492           ;;
14493         esac
14494         shared_flag='-shared'
14495         if test "$aix_use_runtimelinking" = yes; then
14496           shared_flag="$shared_flag "'${wl}-G'
14497         fi
14498       else
14499         # not using gcc
14500         if test "$host_cpu" = ia64; then
14501         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14502         # chokes on -Wl,-G. The following line is correct:
14503           shared_flag='-G'
14504         else
14505           if test "$aix_use_runtimelinking" = yes; then
14506             shared_flag='${wl}-G'
14507           else
14508             shared_flag='${wl}-bM:SRE'
14509           fi
14510         fi
14511       fi
14512
14513       # It seems that -bexpall does not export symbols beginning with
14514       # underscore (_), so it is better to generate a list of symbols to export.
14515       always_export_symbols=yes
14516       if test "$aix_use_runtimelinking" = yes; then
14517         # Warning - without using the other runtime loading flags (-brtl),
14518         # -berok will link without error, but may produce a broken library.
14519         allow_undefined_flag='-berok'
14520        # Determine the default libpath from the value encoded in an empty executable.
14521        cat >conftest.$ac_ext <<_ACEOF
14522 /* confdefs.h.  */
14523 _ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h.  */
14527
14528 int
14529 main ()
14530 {
14531
14532   ;
14533   return 0;
14534 }
14535 _ACEOF
14536 rm -f conftest.$ac_objext conftest$ac_exeext
14537 if { (ac_try="$ac_link"
14538 case "(($ac_try" in
14539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540   *) ac_try_echo=$ac_try;;
14541 esac
14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543   (eval "$ac_link") 2>conftest.er1
14544   ac_status=$?
14545   grep -v '^ *+' conftest.er1 >conftest.err
14546   rm -f conftest.er1
14547   cat conftest.err >&5
14548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549   (exit $ac_status); } && {
14550          test -z "$ac_c_werror_flag" ||
14551          test ! -s conftest.err
14552        } && test -s conftest$ac_exeext &&
14553        $as_test_x conftest$ac_exeext; then
14554
14555 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14556 }'`
14557 # Check for a 64-bit object if we didn't find anything.
14558 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; }
14559 }'`; fi
14560 else
14561   echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14563
14564
14565 fi
14566
14567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14568       conftest$ac_exeext conftest.$ac_ext
14569 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14570
14571        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14572         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"
14573        else
14574         if test "$host_cpu" = ia64; then
14575           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14576           allow_undefined_flag="-z nodefs"
14577           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"
14578         else
14579          # Determine the default libpath from the value encoded in an empty executable.
14580          cat >conftest.$ac_ext <<_ACEOF
14581 /* confdefs.h.  */
14582 _ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h.  */
14586
14587 int
14588 main ()
14589 {
14590
14591   ;
14592   return 0;
14593 }
14594 _ACEOF
14595 rm -f conftest.$ac_objext conftest$ac_exeext
14596 if { (ac_try="$ac_link"
14597 case "(($ac_try" in
14598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599   *) ac_try_echo=$ac_try;;
14600 esac
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602   (eval "$ac_link") 2>conftest.er1
14603   ac_status=$?
14604   grep -v '^ *+' conftest.er1 >conftest.err
14605   rm -f conftest.er1
14606   cat conftest.err >&5
14607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608   (exit $ac_status); } && {
14609          test -z "$ac_c_werror_flag" ||
14610          test ! -s conftest.err
14611        } && test -s conftest$ac_exeext &&
14612        $as_test_x conftest$ac_exeext; then
14613
14614 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14615 }'`
14616 # Check for a 64-bit object if we didn't find anything.
14617 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; }
14618 }'`; fi
14619 else
14620   echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14622
14623
14624 fi
14625
14626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14627       conftest$ac_exeext conftest.$ac_ext
14628 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14629
14630          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14631           # Warning - without using the other run time loading flags,
14632           # -berok will link without error, but may produce a broken library.
14633           no_undefined_flag=' ${wl}-bernotok'
14634           allow_undefined_flag=' ${wl}-berok'
14635           # Exported symbols can be pulled into shared objects from archives
14636           whole_archive_flag_spec='$convenience'
14637           archive_cmds_need_lc=yes
14638           # This is similar to how AIX traditionally builds its shared libraries.
14639           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'
14640         fi
14641       fi
14642       ;;
14643
14644     amigaos*)
14645       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)'
14646       hardcode_libdir_flag_spec='-L$libdir'
14647       hardcode_minus_L=yes
14648       # see comment about different semantics on the GNU ld section
14649       ld_shlibs=no
14650       ;;
14651
14652     bsdi[45]*)
14653       export_dynamic_flag_spec=-rdynamic
14654       ;;
14655
14656     cygwin* | mingw* | pw32*)
14657       # When not using gcc, we currently assume that we are using
14658       # Microsoft Visual C++.
14659       # hardcode_libdir_flag_spec is actually meaningless, as there is
14660       # no search path for DLLs.
14661       hardcode_libdir_flag_spec=' '
14662       allow_undefined_flag=unsupported
14663       # Tell ltmain to make .lib files, not .a files.
14664       libext=lib
14665       # Tell ltmain to make .dll files, not .so files.
14666       shrext_cmds=".dll"
14667       # FIXME: Setting linknames here is a bad hack.
14668       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14669       # The linker will automatically build a .lib file if we build a DLL.
14670       old_archive_From_new_cmds='true'
14671       # FIXME: Should let the user specify the lib program.
14672       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14673       fix_srcfile_path='`cygpath -w "$srcfile"`'
14674       enable_shared_with_static_runtimes=yes
14675       ;;
14676
14677     darwin* | rhapsody*)
14678       case $host_os in
14679         rhapsody* | darwin1.[012])
14680          allow_undefined_flag='${wl}-undefined ${wl}suppress'
14681          ;;
14682        *) # Darwin 1.3 on
14683          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14684            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14685          else
14686            case ${MACOSX_DEPLOYMENT_TARGET} in
14687              10.[012])
14688                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14689                ;;
14690              10.*)
14691                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14692                ;;
14693            esac
14694          fi
14695          ;;
14696       esac
14697       archive_cmds_need_lc=no
14698       hardcode_direct=no
14699       hardcode_automatic=yes
14700       hardcode_shlibpath_var=unsupported
14701       whole_archive_flag_spec=''
14702       link_all_deplibs=yes
14703     if test "$GCC" = yes ; then
14704         output_verbose_link_cmd='echo'
14705         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14706       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14707       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14708       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}'
14709       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}'
14710     else
14711       case $cc_basename in
14712         xlc*)
14713          output_verbose_link_cmd='echo'
14714          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14715          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14716           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14717          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}'
14718           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}'
14719           ;;
14720        *)
14721          ld_shlibs=no
14722           ;;
14723       esac
14724     fi
14725       ;;
14726
14727     dgux*)
14728       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14729       hardcode_libdir_flag_spec='-L$libdir'
14730       hardcode_shlibpath_var=no
14731       ;;
14732
14733     freebsd1*)
14734       ld_shlibs=no
14735       ;;
14736
14737     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14738     # support.  Future versions do this automatically, but an explicit c++rt0.o
14739     # does not break anything, and helps significantly (at the cost of a little
14740     # extra space).
14741     freebsd2.2*)
14742       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14743       hardcode_libdir_flag_spec='-R$libdir'
14744       hardcode_direct=yes
14745       hardcode_shlibpath_var=no
14746       ;;
14747
14748     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14749     freebsd2*)
14750       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14751       hardcode_direct=yes
14752       hardcode_minus_L=yes
14753       hardcode_shlibpath_var=no
14754       ;;
14755
14756     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14757     freebsd* | kfreebsd*-gnu | dragonfly*)
14758       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14759       hardcode_libdir_flag_spec='-R$libdir'
14760       hardcode_direct=yes
14761       hardcode_shlibpath_var=no
14762       ;;
14763
14764     hpux9*)
14765       if test "$GCC" = yes; then
14766         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'
14767       else
14768         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'
14769       fi
14770       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14771       hardcode_libdir_separator=:
14772       hardcode_direct=yes
14773
14774       # hardcode_minus_L: Not really in the search PATH,
14775       # but as the default location of the library.
14776       hardcode_minus_L=yes
14777       export_dynamic_flag_spec='${wl}-E'
14778       ;;
14779
14780     hpux10*)
14781       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14782         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14783       else
14784         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14785       fi
14786       if test "$with_gnu_ld" = no; then
14787         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14788         hardcode_libdir_separator=:
14789
14790         hardcode_direct=yes
14791         export_dynamic_flag_spec='${wl}-E'
14792
14793         # hardcode_minus_L: Not really in the search PATH,
14794         # but as the default location of the library.
14795         hardcode_minus_L=yes
14796       fi
14797       ;;
14798
14799     hpux11*)
14800       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14801         case $host_cpu in
14802         hppa*64*)
14803           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14804           ;;
14805         ia64*)
14806           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14807           ;;
14808         *)
14809           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14810           ;;
14811         esac
14812       else
14813         case $host_cpu in
14814         hppa*64*)
14815           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14816           ;;
14817         ia64*)
14818           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14819           ;;
14820         *)
14821           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14822           ;;
14823         esac
14824       fi
14825       if test "$with_gnu_ld" = no; then
14826         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14827         hardcode_libdir_separator=:
14828
14829         case $host_cpu in
14830         hppa*64*|ia64*)
14831           hardcode_libdir_flag_spec_ld='+b $libdir'
14832           hardcode_direct=no
14833           hardcode_shlibpath_var=no
14834           ;;
14835         *)
14836           hardcode_direct=yes
14837           export_dynamic_flag_spec='${wl}-E'
14838
14839           # hardcode_minus_L: Not really in the search PATH,
14840           # but as the default location of the library.
14841           hardcode_minus_L=yes
14842           ;;
14843         esac
14844       fi
14845       ;;
14846
14847     irix5* | irix6* | nonstopux*)
14848       if test "$GCC" = yes; then
14849         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'
14850       else
14851         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'
14852         hardcode_libdir_flag_spec_ld='-rpath $libdir'
14853       fi
14854       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14855       hardcode_libdir_separator=:
14856       link_all_deplibs=yes
14857       ;;
14858
14859     netbsd*)
14860       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14861         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14862       else
14863         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14864       fi
14865       hardcode_libdir_flag_spec='-R$libdir'
14866       hardcode_direct=yes
14867       hardcode_shlibpath_var=no
14868       ;;
14869
14870     newsos6)
14871       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14872       hardcode_direct=yes
14873       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14874       hardcode_libdir_separator=:
14875       hardcode_shlibpath_var=no
14876       ;;
14877
14878     openbsd*)
14879       hardcode_direct=yes
14880       hardcode_shlibpath_var=no
14881       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14882         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14883         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14884         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14885         export_dynamic_flag_spec='${wl}-E'
14886       else
14887        case $host_os in
14888          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14889            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14890            hardcode_libdir_flag_spec='-R$libdir'
14891            ;;
14892          *)
14893            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14894            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14895            ;;
14896        esac
14897       fi
14898       ;;
14899
14900     os2*)
14901       hardcode_libdir_flag_spec='-L$libdir'
14902       hardcode_minus_L=yes
14903       allow_undefined_flag=unsupported
14904       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'
14905       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14906       ;;
14907
14908     osf3*)
14909       if test "$GCC" = yes; then
14910         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14911         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'
14912       else
14913         allow_undefined_flag=' -expect_unresolved \*'
14914         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'
14915       fi
14916       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14917       hardcode_libdir_separator=:
14918       ;;
14919
14920     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14921       if test "$GCC" = yes; then
14922         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14923         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'
14924         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14925       else
14926         allow_undefined_flag=' -expect_unresolved \*'
14927         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'
14928         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14929         $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'
14930
14931         # Both c and cxx compiler support -rpath directly
14932         hardcode_libdir_flag_spec='-rpath $libdir'
14933       fi
14934       hardcode_libdir_separator=:
14935       ;;
14936
14937     solaris*)
14938       no_undefined_flag=' -z text'
14939       if test "$GCC" = yes; then
14940         wlarc='${wl}'
14941         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14942         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14943           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14944       else
14945         wlarc=''
14946         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14947         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14948         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14949       fi
14950       hardcode_libdir_flag_spec='-R$libdir'
14951       hardcode_shlibpath_var=no
14952       case $host_os in
14953       solaris2.[0-5] | solaris2.[0-5].*) ;;
14954       *)
14955         # The compiler driver will combine linker options so we
14956         # cannot just pass the convience library names through
14957         # without $wl, iff we do not link with $LD.
14958         # Luckily, gcc supports the same syntax we need for Sun Studio.
14959         # Supported since Solaris 2.6 (maybe 2.5.1?)
14960         case $wlarc in
14961         '')
14962           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14963         *)
14964           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' ;;
14965         esac ;;
14966       esac
14967       link_all_deplibs=yes
14968       ;;
14969
14970     sunos4*)
14971       if test "x$host_vendor" = xsequent; then
14972         # Use $CC to link under sequent, because it throws in some extra .o
14973         # files that make .init and .fini sections work.
14974         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14975       else
14976         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14977       fi
14978       hardcode_libdir_flag_spec='-L$libdir'
14979       hardcode_direct=yes
14980       hardcode_minus_L=yes
14981       hardcode_shlibpath_var=no
14982       ;;
14983
14984     sysv4)
14985       case $host_vendor in
14986         sni)
14987           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14988           hardcode_direct=yes # is this really true???
14989         ;;
14990         siemens)
14991           ## LD is ld it makes a PLAMLIB
14992           ## CC just makes a GrossModule.
14993           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14994           reload_cmds='$CC -r -o $output$reload_objs'
14995           hardcode_direct=no
14996         ;;
14997         motorola)
14998           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14999           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15000         ;;
15001       esac
15002       runpath_var='LD_RUN_PATH'
15003       hardcode_shlibpath_var=no
15004       ;;
15005
15006     sysv4.3*)
15007       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15008       hardcode_shlibpath_var=no
15009       export_dynamic_flag_spec='-Bexport'
15010       ;;
15011
15012     sysv4*MP*)
15013       if test -d /usr/nec; then
15014         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15015         hardcode_shlibpath_var=no
15016         runpath_var=LD_RUN_PATH
15017         hardcode_runpath_var=yes
15018         ld_shlibs=yes
15019       fi
15020       ;;
15021
15022     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15023       no_undefined_flag='${wl}-z,text'
15024       archive_cmds_need_lc=no
15025       hardcode_shlibpath_var=no
15026       runpath_var='LD_RUN_PATH'
15027
15028       if test "$GCC" = yes; then
15029         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15030         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15031       else
15032         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15033         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15034       fi
15035       ;;
15036
15037     sysv5* | sco3.2v5* | sco5v6*)
15038       # Note: We can NOT use -z defs as we might desire, because we do not
15039       # link with -lc, and that would cause any symbols used from libc to
15040       # always be unresolved, which means just about no library would
15041       # ever link correctly.  If we're not using GNU ld we use -z text
15042       # though, which does catch some bad symbols but isn't as heavy-handed
15043       # as -z defs.
15044       no_undefined_flag='${wl}-z,text'
15045       allow_undefined_flag='${wl}-z,nodefs'
15046       archive_cmds_need_lc=no
15047       hardcode_shlibpath_var=no
15048       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15049       hardcode_libdir_separator=':'
15050       link_all_deplibs=yes
15051       export_dynamic_flag_spec='${wl}-Bexport'
15052       runpath_var='LD_RUN_PATH'
15053
15054       if test "$GCC" = yes; then
15055         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15056         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15057       else
15058         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15059         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15060       fi
15061       ;;
15062
15063     uts4*)
15064       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15065       hardcode_libdir_flag_spec='-L$libdir'
15066       hardcode_shlibpath_var=no
15067       ;;
15068
15069     *)
15070       ld_shlibs=no
15071       ;;
15072     esac
15073   fi
15074
15075 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15076 echo "${ECHO_T}$ld_shlibs" >&6; }
15077 test "$ld_shlibs" = no && can_build_shared=no
15078
15079 #
15080 # Do we need to explicitly link libc?
15081 #
15082 case "x$archive_cmds_need_lc" in
15083 x|xyes)
15084   # Assume -lc should be added
15085   archive_cmds_need_lc=yes
15086
15087   if test "$enable_shared" = yes && test "$GCC" = yes; then
15088     case $archive_cmds in
15089     *'~'*)
15090       # FIXME: we may have to deal with multi-command sequences.
15091       ;;
15092     '$CC '*)
15093       # Test whether the compiler implicitly links with -lc since on some
15094       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15095       # to ld, don't add -lc before -lgcc.
15096       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15097 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15098       $rm conftest*
15099       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15100
15101       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15102   (eval $ac_compile) 2>&5
15103   ac_status=$?
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); } 2>conftest.err; then
15106         soname=conftest
15107         lib=conftest
15108         libobjs=conftest.$ac_objext
15109         deplibs=
15110         wl=$lt_prog_compiler_wl
15111         pic_flag=$lt_prog_compiler_pic
15112         compiler_flags=-v
15113         linker_flags=-v
15114         verstring=
15115         output_objdir=.
15116         libname=conftest
15117         lt_save_allow_undefined_flag=$allow_undefined_flag
15118         allow_undefined_flag=
15119         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15120   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15121   ac_status=$?
15122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123   (exit $ac_status); }
15124         then
15125           archive_cmds_need_lc=no
15126         else
15127           archive_cmds_need_lc=yes
15128         fi
15129         allow_undefined_flag=$lt_save_allow_undefined_flag
15130       else
15131         cat conftest.err 1>&5
15132       fi
15133       $rm conftest*
15134       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15135 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15136       ;;
15137     esac
15138   fi
15139   ;;
15140 esac
15141
15142 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15143 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15144 library_names_spec=
15145 libname_spec='lib$name'
15146 soname_spec=
15147 shrext_cmds=".so"
15148 postinstall_cmds=
15149 postuninstall_cmds=
15150 finish_cmds=
15151 finish_eval=
15152 shlibpath_var=
15153 shlibpath_overrides_runpath=unknown
15154 version_type=none
15155 dynamic_linker="$host_os ld.so"
15156 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15157 if test "$GCC" = yes; then
15158   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15159   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15160     # if the path contains ";" then we assume it to be the separator
15161     # otherwise default to the standard path separator (i.e. ":") - it is
15162     # assumed that no part of a normal pathname contains ";" but that should
15163     # okay in the real world where ";" in dirpaths is itself problematic.
15164     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15165   else
15166     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15167   fi
15168 else
15169   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15170 fi
15171 need_lib_prefix=unknown
15172 hardcode_into_libs=no
15173
15174 # when you set need_version to no, make sure it does not cause -set_version
15175 # flags to be left without arguments
15176 need_version=unknown
15177
15178 case $host_os in
15179 aix3*)
15180   version_type=linux
15181   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15182   shlibpath_var=LIBPATH
15183
15184   # AIX 3 has no versioning support, so we append a major version to the name.
15185   soname_spec='${libname}${release}${shared_ext}$major'
15186   ;;
15187
15188 aix4* | aix5*)
15189   version_type=linux
15190   need_lib_prefix=no
15191   need_version=no
15192   hardcode_into_libs=yes
15193   if test "$host_cpu" = ia64; then
15194     # AIX 5 supports IA64
15195     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15196     shlibpath_var=LD_LIBRARY_PATH
15197   else
15198     # With GCC up to 2.95.x, collect2 would create an import file
15199     # for dependence libraries.  The import file would start with
15200     # the line `#! .'.  This would cause the generated library to
15201     # depend on `.', always an invalid library.  This was fixed in
15202     # development snapshots of GCC prior to 3.0.
15203     case $host_os in
15204       aix4 | aix4.[01] | aix4.[01].*)
15205       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15206            echo ' yes '
15207            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15208         :
15209       else
15210         can_build_shared=no
15211       fi
15212       ;;
15213     esac
15214     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15215     # soname into executable. Probably we can add versioning support to
15216     # collect2, so additional links can be useful in future.
15217     if test "$aix_use_runtimelinking" = yes; then
15218       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15219       # instead of lib<name>.a to let people know that these are not
15220       # typical AIX shared libraries.
15221       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15222     else
15223       # We preserve .a as extension for shared libraries through AIX4.2
15224       # and later when we are not doing run time linking.
15225       library_names_spec='${libname}${release}.a $libname.a'
15226       soname_spec='${libname}${release}${shared_ext}$major'
15227     fi
15228     shlibpath_var=LIBPATH
15229   fi
15230   ;;
15231
15232 amigaos*)
15233   library_names_spec='$libname.ixlibrary $libname.a'
15234   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15235   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'
15236   ;;
15237
15238 beos*)
15239   library_names_spec='${libname}${shared_ext}'
15240   dynamic_linker="$host_os ld.so"
15241   shlibpath_var=LIBRARY_PATH
15242   ;;
15243
15244 bsdi[45]*)
15245   version_type=linux
15246   need_version=no
15247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15248   soname_spec='${libname}${release}${shared_ext}$major'
15249   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15250   shlibpath_var=LD_LIBRARY_PATH
15251   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15252   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15253   # the default ld.so.conf also contains /usr/contrib/lib and
15254   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15255   # libtool to hard-code these into programs
15256   ;;
15257
15258 cygwin* | mingw* | pw32*)
15259   version_type=windows
15260   shrext_cmds=".dll"
15261   need_version=no
15262   need_lib_prefix=no
15263
15264   case $GCC,$host_os in
15265   yes,cygwin* | yes,mingw* | yes,pw32*)
15266     library_names_spec='$libname.dll.a'
15267     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15268     postinstall_cmds='base_file=`basename \${file}`~
15269       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15270       dldir=$destdir/`dirname \$dlpath`~
15271       test -d \$dldir || mkdir -p \$dldir~
15272       $install_prog $dir/$dlname \$dldir/$dlname~
15273       chmod a+x \$dldir/$dlname'
15274     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15275       dlpath=$dir/\$dldll~
15276        $rm \$dlpath'
15277     shlibpath_overrides_runpath=yes
15278
15279     case $host_os in
15280     cygwin*)
15281       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15282       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15283       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15284       ;;
15285     mingw*)
15286       # MinGW DLLs use traditional 'lib' prefix
15287       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15288       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15289       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15290         # It is most probably a Windows format PATH printed by
15291         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15292         # path with ; separators, and with drive letters. We can handle the
15293         # drive letters (cygwin fileutils understands them), so leave them,
15294         # especially as we might pass files found there to a mingw objdump,
15295         # which wouldn't understand a cygwinified path. Ahh.
15296         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15297       else
15298         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15299       fi
15300       ;;
15301     pw32*)
15302       # pw32 DLLs use 'pw' prefix rather than 'lib'
15303       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15304       ;;
15305     esac
15306     ;;
15307
15308   *)
15309     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15310     ;;
15311   esac
15312   dynamic_linker='Win32 ld.exe'
15313   # FIXME: first we should search . and the directory the executable is in
15314   shlibpath_var=PATH
15315   ;;
15316
15317 darwin* | rhapsody*)
15318   dynamic_linker="$host_os dyld"
15319   version_type=darwin
15320   need_lib_prefix=no
15321   need_version=no
15322   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15323   soname_spec='${libname}${release}${major}$shared_ext'
15324   shlibpath_overrides_runpath=yes
15325   shlibpath_var=DYLD_LIBRARY_PATH
15326   shrext_cmds='.dylib'
15327   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15328   if test "$GCC" = yes; then
15329     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"`
15330   else
15331     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15332   fi
15333   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15334   ;;
15335
15336 dgux*)
15337   version_type=linux
15338   need_lib_prefix=no
15339   need_version=no
15340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15341   soname_spec='${libname}${release}${shared_ext}$major'
15342   shlibpath_var=LD_LIBRARY_PATH
15343   ;;
15344
15345 freebsd1*)
15346   dynamic_linker=no
15347   ;;
15348
15349 kfreebsd*-gnu)
15350   version_type=linux
15351   need_lib_prefix=no
15352   need_version=no
15353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15354   soname_spec='${libname}${release}${shared_ext}$major'
15355   shlibpath_var=LD_LIBRARY_PATH
15356   shlibpath_overrides_runpath=no
15357   hardcode_into_libs=yes
15358   dynamic_linker='GNU ld.so'
15359   ;;
15360
15361 freebsd* | dragonfly*)
15362   # DragonFly does not have aout.  When/if they implement a new
15363   # versioning mechanism, adjust this.
15364   if test -x /usr/bin/objformat; then
15365     objformat=`/usr/bin/objformat`
15366   else
15367     case $host_os in
15368     freebsd[123]*) objformat=aout ;;
15369     *) objformat=elf ;;
15370     esac
15371   fi
15372   version_type=freebsd-$objformat
15373   case $version_type in
15374     freebsd-elf*)
15375       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15376       need_version=no
15377       need_lib_prefix=no
15378       ;;
15379     freebsd-*)
15380       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15381       need_version=yes
15382       ;;
15383   esac
15384   shlibpath_var=LD_LIBRARY_PATH
15385   case $host_os in
15386   freebsd2*)
15387     shlibpath_overrides_runpath=yes
15388     ;;
15389   freebsd3.[01]* | freebsdelf3.[01]*)
15390     shlibpath_overrides_runpath=yes
15391     hardcode_into_libs=yes
15392     ;;
15393   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15394   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15395     shlibpath_overrides_runpath=no
15396     hardcode_into_libs=yes
15397     ;;
15398   freebsd*) # from 4.6 on
15399     shlibpath_overrides_runpath=yes
15400     hardcode_into_libs=yes
15401     ;;
15402   esac
15403   ;;
15404
15405 gnu*)
15406   version_type=linux
15407   need_lib_prefix=no
15408   need_version=no
15409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15410   soname_spec='${libname}${release}${shared_ext}$major'
15411   shlibpath_var=LD_LIBRARY_PATH
15412   hardcode_into_libs=yes
15413   ;;
15414
15415 hpux9* | hpux10* | hpux11*)
15416   # Give a soname corresponding to the major version so that dld.sl refuses to
15417   # link against other versions.
15418   version_type=sunos
15419   need_lib_prefix=no
15420   need_version=no
15421   case $host_cpu in
15422   ia64*)
15423     shrext_cmds='.so'
15424     hardcode_into_libs=yes
15425     dynamic_linker="$host_os dld.so"
15426     shlibpath_var=LD_LIBRARY_PATH
15427     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15428     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429     soname_spec='${libname}${release}${shared_ext}$major'
15430     if test "X$HPUX_IA64_MODE" = X32; then
15431       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15432     else
15433       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15434     fi
15435     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15436     ;;
15437    hppa*64*)
15438      shrext_cmds='.sl'
15439      hardcode_into_libs=yes
15440      dynamic_linker="$host_os dld.sl"
15441      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15442      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15443      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15444      soname_spec='${libname}${release}${shared_ext}$major'
15445      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15446      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15447      ;;
15448    *)
15449     shrext_cmds='.sl'
15450     dynamic_linker="$host_os dld.sl"
15451     shlibpath_var=SHLIB_PATH
15452     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15453     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454     soname_spec='${libname}${release}${shared_ext}$major'
15455     ;;
15456   esac
15457   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15458   postinstall_cmds='chmod 555 $lib'
15459   ;;
15460
15461 interix3*)
15462   version_type=linux
15463   need_lib_prefix=no
15464   need_version=no
15465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15466   soname_spec='${libname}${release}${shared_ext}$major'
15467   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15468   shlibpath_var=LD_LIBRARY_PATH
15469   shlibpath_overrides_runpath=no
15470   hardcode_into_libs=yes
15471   ;;
15472
15473 irix5* | irix6* | nonstopux*)
15474   case $host_os in
15475     nonstopux*) version_type=nonstopux ;;
15476     *)
15477         if test "$lt_cv_prog_gnu_ld" = yes; then
15478                 version_type=linux
15479         else
15480                 version_type=irix
15481         fi ;;
15482   esac
15483   need_lib_prefix=no
15484   need_version=no
15485   soname_spec='${libname}${release}${shared_ext}$major'
15486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15487   case $host_os in
15488   irix5* | nonstopux*)
15489     libsuff= shlibsuff=
15490     ;;
15491   *)
15492     case $LD in # libtool.m4 will add one of these switches to LD
15493     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15494       libsuff= shlibsuff= libmagic=32-bit;;
15495     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15496       libsuff=32 shlibsuff=N32 libmagic=N32;;
15497     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15498       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15499     *) libsuff= shlibsuff= libmagic=never-match;;
15500     esac
15501     ;;
15502   esac
15503   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15504   shlibpath_overrides_runpath=no
15505   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15506   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15507   hardcode_into_libs=yes
15508   ;;
15509
15510 # No shared lib support for Linux oldld, aout, or coff.
15511 linux*oldld* | linux*aout* | linux*coff*)
15512   dynamic_linker=no
15513   ;;
15514
15515 # This must be Linux ELF.
15516 linux*)
15517   version_type=linux
15518   need_lib_prefix=no
15519   need_version=no
15520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15521   soname_spec='${libname}${release}${shared_ext}$major'
15522   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15523   shlibpath_var=LD_LIBRARY_PATH
15524   shlibpath_overrides_runpath=no
15525   # This implies no fast_install, which is unacceptable.
15526   # Some rework will be needed to allow for fast_install
15527   # before this can be enabled.
15528   hardcode_into_libs=yes
15529
15530   # Append ld.so.conf contents to the search path
15531   if test -f /etc/ld.so.conf; then
15532     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' ' '`
15533     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15534   fi
15535
15536   # We used to test for /lib/ld.so.1 and disable shared libraries on
15537   # powerpc, because MkLinux only supported shared libraries with the
15538   # GNU dynamic linker.  Since this was broken with cross compilers,
15539   # most powerpc-linux boxes support dynamic linking these days and
15540   # people can always --disable-shared, the test was removed, and we
15541   # assume the GNU/Linux dynamic linker is in use.
15542   dynamic_linker='GNU/Linux ld.so'
15543   ;;
15544
15545 knetbsd*-gnu)
15546   version_type=linux
15547   need_lib_prefix=no
15548   need_version=no
15549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15550   soname_spec='${libname}${release}${shared_ext}$major'
15551   shlibpath_var=LD_LIBRARY_PATH
15552   shlibpath_overrides_runpath=no
15553   hardcode_into_libs=yes
15554   dynamic_linker='GNU ld.so'
15555   ;;
15556
15557 netbsd*)
15558   version_type=sunos
15559   need_lib_prefix=no
15560   need_version=no
15561   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15562     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15563     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15564     dynamic_linker='NetBSD (a.out) ld.so'
15565   else
15566     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15567     soname_spec='${libname}${release}${shared_ext}$major'
15568     dynamic_linker='NetBSD ld.elf_so'
15569   fi
15570   shlibpath_var=LD_LIBRARY_PATH
15571   shlibpath_overrides_runpath=yes
15572   hardcode_into_libs=yes
15573   ;;
15574
15575 newsos6)
15576   version_type=linux
15577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578   shlibpath_var=LD_LIBRARY_PATH
15579   shlibpath_overrides_runpath=yes
15580   ;;
15581
15582 nto-qnx*)
15583   version_type=linux
15584   need_lib_prefix=no
15585   need_version=no
15586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587   soname_spec='${libname}${release}${shared_ext}$major'
15588   shlibpath_var=LD_LIBRARY_PATH
15589   shlibpath_overrides_runpath=yes
15590   ;;
15591
15592 openbsd*)
15593   version_type=sunos
15594   sys_lib_dlsearch_path_spec="/usr/lib"
15595   need_lib_prefix=no
15596   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15597   case $host_os in
15598     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15599     *)                         need_version=no  ;;
15600   esac
15601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15602   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15603   shlibpath_var=LD_LIBRARY_PATH
15604   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15605     case $host_os in
15606       openbsd2.[89] | openbsd2.[89].*)
15607         shlibpath_overrides_runpath=no
15608         ;;
15609       *)
15610         shlibpath_overrides_runpath=yes
15611         ;;
15612       esac
15613   else
15614     shlibpath_overrides_runpath=yes
15615   fi
15616   ;;
15617
15618 os2*)
15619   libname_spec='$name'
15620   shrext_cmds=".dll"
15621   need_lib_prefix=no
15622   library_names_spec='$libname${shared_ext} $libname.a'
15623   dynamic_linker='OS/2 ld.exe'
15624   shlibpath_var=LIBPATH
15625   ;;
15626
15627 osf3* | osf4* | osf5*)
15628   version_type=osf
15629   need_lib_prefix=no
15630   need_version=no
15631   soname_spec='${libname}${release}${shared_ext}$major'
15632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15633   shlibpath_var=LD_LIBRARY_PATH
15634   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15635   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15636   ;;
15637
15638 solaris*)
15639   version_type=linux
15640   need_lib_prefix=no
15641   need_version=no
15642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643   soname_spec='${libname}${release}${shared_ext}$major'
15644   shlibpath_var=LD_LIBRARY_PATH
15645   shlibpath_overrides_runpath=yes
15646   hardcode_into_libs=yes
15647   # ldd complains unless libraries are executable
15648   postinstall_cmds='chmod +x $lib'
15649   ;;
15650
15651 sunos4*)
15652   version_type=sunos
15653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15654   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15655   shlibpath_var=LD_LIBRARY_PATH
15656   shlibpath_overrides_runpath=yes
15657   if test "$with_gnu_ld" = yes; then
15658     need_lib_prefix=no
15659   fi
15660   need_version=yes
15661   ;;
15662
15663 sysv4 | sysv4.3*)
15664   version_type=linux
15665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15666   soname_spec='${libname}${release}${shared_ext}$major'
15667   shlibpath_var=LD_LIBRARY_PATH
15668   case $host_vendor in
15669     sni)
15670       shlibpath_overrides_runpath=no
15671       need_lib_prefix=no
15672       export_dynamic_flag_spec='${wl}-Blargedynsym'
15673       runpath_var=LD_RUN_PATH
15674       ;;
15675     siemens)
15676       need_lib_prefix=no
15677       ;;
15678     motorola)
15679       need_lib_prefix=no
15680       need_version=no
15681       shlibpath_overrides_runpath=no
15682       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15683       ;;
15684   esac
15685   ;;
15686
15687 sysv4*MP*)
15688   if test -d /usr/nec ;then
15689     version_type=linux
15690     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15691     soname_spec='$libname${shared_ext}.$major'
15692     shlibpath_var=LD_LIBRARY_PATH
15693   fi
15694   ;;
15695
15696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15697   version_type=freebsd-elf
15698   need_lib_prefix=no
15699   need_version=no
15700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15701   soname_spec='${libname}${release}${shared_ext}$major'
15702   shlibpath_var=LD_LIBRARY_PATH
15703   hardcode_into_libs=yes
15704   if test "$with_gnu_ld" = yes; then
15705     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15706     shlibpath_overrides_runpath=no
15707   else
15708     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15709     shlibpath_overrides_runpath=yes
15710     case $host_os in
15711       sco3.2v5*)
15712         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15713         ;;
15714     esac
15715   fi
15716   sys_lib_dlsearch_path_spec='/usr/lib'
15717   ;;
15718
15719 uts4*)
15720   version_type=linux
15721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722   soname_spec='${libname}${release}${shared_ext}$major'
15723   shlibpath_var=LD_LIBRARY_PATH
15724   ;;
15725
15726 *)
15727   dynamic_linker=no
15728   ;;
15729 esac
15730 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15731 echo "${ECHO_T}$dynamic_linker" >&6; }
15732 test "$dynamic_linker" = no && can_build_shared=no
15733
15734 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15735 if test "$GCC" = yes; then
15736   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15737 fi
15738
15739 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15740 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15741 hardcode_action=
15742 if test -n "$hardcode_libdir_flag_spec" || \
15743    test -n "$runpath_var" || \
15744    test "X$hardcode_automatic" = "Xyes" ; then
15745
15746   # We can hardcode non-existant directories.
15747   if test "$hardcode_direct" != no &&
15748      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15749      # have to relink, otherwise we might link with an installed library
15750      # when we should be linking with a yet-to-be-installed one
15751      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15752      test "$hardcode_minus_L" != no; then
15753     # Linking always hardcodes the temporary library directory.
15754     hardcode_action=relink
15755   else
15756     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15757     hardcode_action=immediate
15758   fi
15759 else
15760   # We cannot hardcode anything, or else we can only hardcode existing
15761   # directories.
15762   hardcode_action=unsupported
15763 fi
15764 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
15765 echo "${ECHO_T}$hardcode_action" >&6; }
15766
15767 if test "$hardcode_action" = relink; then
15768   # Fast installation is not supported
15769   enable_fast_install=no
15770 elif test "$shlibpath_overrides_runpath" = yes ||
15771      test "$enable_shared" = no; then
15772   # Fast installation is not necessary
15773   enable_fast_install=needless
15774 fi
15775
15776 striplib=
15777 old_striplib=
15778 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15779 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15780 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15781   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15782   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15783   { echo "$as_me:$LINENO: result: yes" >&5
15784 echo "${ECHO_T}yes" >&6; }
15785 else
15786 # FIXME - insert some real tests, host_os isn't really good enough
15787   case $host_os in
15788    darwin*)
15789        if test -n "$STRIP" ; then
15790          striplib="$STRIP -x"
15791          { echo "$as_me:$LINENO: result: yes" >&5
15792 echo "${ECHO_T}yes" >&6; }
15793        else
15794   { echo "$as_me:$LINENO: result: no" >&5
15795 echo "${ECHO_T}no" >&6; }
15796 fi
15797        ;;
15798    *)
15799   { echo "$as_me:$LINENO: result: no" >&5
15800 echo "${ECHO_T}no" >&6; }
15801     ;;
15802   esac
15803 fi
15804
15805 if test "x$enable_dlopen" != xyes; then
15806   enable_dlopen=unknown
15807   enable_dlopen_self=unknown
15808   enable_dlopen_self_static=unknown
15809 else
15810   lt_cv_dlopen=no
15811   lt_cv_dlopen_libs=
15812
15813   case $host_os in
15814   beos*)
15815     lt_cv_dlopen="load_add_on"
15816     lt_cv_dlopen_libs=
15817     lt_cv_dlopen_self=yes
15818     ;;
15819
15820   mingw* | pw32*)
15821     lt_cv_dlopen="LoadLibrary"
15822     lt_cv_dlopen_libs=
15823    ;;
15824
15825   cygwin*)
15826     lt_cv_dlopen="dlopen"
15827     lt_cv_dlopen_libs=
15828    ;;
15829
15830   darwin*)
15831   # if libdl is installed we need to link against it
15832     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15833 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15834 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15835   echo $ECHO_N "(cached) $ECHO_C" >&6
15836 else
15837   ac_check_lib_save_LIBS=$LIBS
15838 LIBS="-ldl  $LIBS"
15839 cat >conftest.$ac_ext <<_ACEOF
15840 /* confdefs.h.  */
15841 _ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h.  */
15845
15846 /* Override any GCC internal prototype to avoid an error.
15847    Use char because int might match the return type of a GCC
15848    builtin and then its argument prototype would still apply.  */
15849 #ifdef __cplusplus
15850 extern "C"
15851 #endif
15852 char dlopen ();
15853 int
15854 main ()
15855 {
15856 return dlopen ();
15857   ;
15858   return 0;
15859 }
15860 _ACEOF
15861 rm -f conftest.$ac_objext conftest$ac_exeext
15862 if { (ac_try="$ac_link"
15863 case "(($ac_try" in
15864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865   *) ac_try_echo=$ac_try;;
15866 esac
15867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868   (eval "$ac_link") 2>conftest.er1
15869   ac_status=$?
15870   grep -v '^ *+' conftest.er1 >conftest.err
15871   rm -f conftest.er1
15872   cat conftest.err >&5
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); } && {
15875          test -z "$ac_c_werror_flag" ||
15876          test ! -s conftest.err
15877        } && test -s conftest$ac_exeext &&
15878        $as_test_x conftest$ac_exeext; then
15879   ac_cv_lib_dl_dlopen=yes
15880 else
15881   echo "$as_me: failed program was:" >&5
15882 sed 's/^/| /' conftest.$ac_ext >&5
15883
15884         ac_cv_lib_dl_dlopen=no
15885 fi
15886
15887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15888       conftest$ac_exeext conftest.$ac_ext
15889 LIBS=$ac_check_lib_save_LIBS
15890 fi
15891 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15892 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15893 if test $ac_cv_lib_dl_dlopen = yes; then
15894   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15895 else
15896
15897     lt_cv_dlopen="dyld"
15898     lt_cv_dlopen_libs=
15899     lt_cv_dlopen_self=yes
15900
15901 fi
15902
15903    ;;
15904
15905   *)
15906     { echo "$as_me:$LINENO: checking for shl_load" >&5
15907 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15908 if test "${ac_cv_func_shl_load+set}" = set; then
15909   echo $ECHO_N "(cached) $ECHO_C" >&6
15910 else
15911   cat >conftest.$ac_ext <<_ACEOF
15912 /* confdefs.h.  */
15913 _ACEOF
15914 cat confdefs.h >>conftest.$ac_ext
15915 cat >>conftest.$ac_ext <<_ACEOF
15916 /* end confdefs.h.  */
15917 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15919 #define shl_load innocuous_shl_load
15920
15921 /* System header to define __stub macros and hopefully few prototypes,
15922     which can conflict with char shl_load (); below.
15923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15924     <limits.h> exists even on freestanding compilers.  */
15925
15926 #ifdef __STDC__
15927 # include <limits.h>
15928 #else
15929 # include <assert.h>
15930 #endif
15931
15932 #undef shl_load
15933
15934 /* Override any GCC internal prototype to avoid an error.
15935    Use char because int might match the return type of a GCC
15936    builtin and then its argument prototype would still apply.  */
15937 #ifdef __cplusplus
15938 extern "C"
15939 #endif
15940 char shl_load ();
15941 /* The GNU C library defines this for functions which it implements
15942     to always fail with ENOSYS.  Some functions are actually named
15943     something starting with __ and the normal name is an alias.  */
15944 #if defined __stub_shl_load || defined __stub___shl_load
15945 choke me
15946 #endif
15947
15948 int
15949 main ()
15950 {
15951 return shl_load ();
15952   ;
15953   return 0;
15954 }
15955 _ACEOF
15956 rm -f conftest.$ac_objext conftest$ac_exeext
15957 if { (ac_try="$ac_link"
15958 case "(($ac_try" in
15959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15960   *) ac_try_echo=$ac_try;;
15961 esac
15962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15963   (eval "$ac_link") 2>conftest.er1
15964   ac_status=$?
15965   grep -v '^ *+' conftest.er1 >conftest.err
15966   rm -f conftest.er1
15967   cat conftest.err >&5
15968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969   (exit $ac_status); } && {
15970          test -z "$ac_c_werror_flag" ||
15971          test ! -s conftest.err
15972        } && test -s conftest$ac_exeext &&
15973        $as_test_x conftest$ac_exeext; then
15974   ac_cv_func_shl_load=yes
15975 else
15976   echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15978
15979         ac_cv_func_shl_load=no
15980 fi
15981
15982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15983       conftest$ac_exeext conftest.$ac_ext
15984 fi
15985 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15986 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15987 if test $ac_cv_func_shl_load = yes; then
15988   lt_cv_dlopen="shl_load"
15989 else
15990   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15991 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15992 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15993   echo $ECHO_N "(cached) $ECHO_C" >&6
15994 else
15995   ac_check_lib_save_LIBS=$LIBS
15996 LIBS="-ldld  $LIBS"
15997 cat >conftest.$ac_ext <<_ACEOF
15998 /* confdefs.h.  */
15999 _ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h.  */
16003
16004 /* Override any GCC internal prototype to avoid an error.
16005    Use char because int might match the return type of a GCC
16006    builtin and then its argument prototype would still apply.  */
16007 #ifdef __cplusplus
16008 extern "C"
16009 #endif
16010 char shl_load ();
16011 int
16012 main ()
16013 {
16014 return shl_load ();
16015   ;
16016   return 0;
16017 }
16018 _ACEOF
16019 rm -f conftest.$ac_objext conftest$ac_exeext
16020 if { (ac_try="$ac_link"
16021 case "(($ac_try" in
16022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023   *) ac_try_echo=$ac_try;;
16024 esac
16025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026   (eval "$ac_link") 2>conftest.er1
16027   ac_status=$?
16028   grep -v '^ *+' conftest.er1 >conftest.err
16029   rm -f conftest.er1
16030   cat conftest.err >&5
16031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032   (exit $ac_status); } && {
16033          test -z "$ac_c_werror_flag" ||
16034          test ! -s conftest.err
16035        } && test -s conftest$ac_exeext &&
16036        $as_test_x conftest$ac_exeext; then
16037   ac_cv_lib_dld_shl_load=yes
16038 else
16039   echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16041
16042         ac_cv_lib_dld_shl_load=no
16043 fi
16044
16045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16046       conftest$ac_exeext conftest.$ac_ext
16047 LIBS=$ac_check_lib_save_LIBS
16048 fi
16049 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16050 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16051 if test $ac_cv_lib_dld_shl_load = yes; then
16052   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16053 else
16054   { echo "$as_me:$LINENO: checking for dlopen" >&5
16055 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16056 if test "${ac_cv_func_dlopen+set}" = set; then
16057   echo $ECHO_N "(cached) $ECHO_C" >&6
16058 else
16059   cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h.  */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h.  */
16065 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16067 #define dlopen innocuous_dlopen
16068
16069 /* System header to define __stub macros and hopefully few prototypes,
16070     which can conflict with char dlopen (); below.
16071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16072     <limits.h> exists even on freestanding compilers.  */
16073
16074 #ifdef __STDC__
16075 # include <limits.h>
16076 #else
16077 # include <assert.h>
16078 #endif
16079
16080 #undef dlopen
16081
16082 /* Override any GCC internal prototype to avoid an error.
16083    Use char because int might match the return type of a GCC
16084    builtin and then its argument prototype would still apply.  */
16085 #ifdef __cplusplus
16086 extern "C"
16087 #endif
16088 char dlopen ();
16089 /* The GNU C library defines this for functions which it implements
16090     to always fail with ENOSYS.  Some functions are actually named
16091     something starting with __ and the normal name is an alias.  */
16092 #if defined __stub_dlopen || defined __stub___dlopen
16093 choke me
16094 #endif
16095
16096 int
16097 main ()
16098 {
16099 return dlopen ();
16100   ;
16101   return 0;
16102 }
16103 _ACEOF
16104 rm -f conftest.$ac_objext conftest$ac_exeext
16105 if { (ac_try="$ac_link"
16106 case "(($ac_try" in
16107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108   *) ac_try_echo=$ac_try;;
16109 esac
16110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16111   (eval "$ac_link") 2>conftest.er1
16112   ac_status=$?
16113   grep -v '^ *+' conftest.er1 >conftest.err
16114   rm -f conftest.er1
16115   cat conftest.err >&5
16116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117   (exit $ac_status); } && {
16118          test -z "$ac_c_werror_flag" ||
16119          test ! -s conftest.err
16120        } && test -s conftest$ac_exeext &&
16121        $as_test_x conftest$ac_exeext; then
16122   ac_cv_func_dlopen=yes
16123 else
16124   echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16126
16127         ac_cv_func_dlopen=no
16128 fi
16129
16130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16131       conftest$ac_exeext conftest.$ac_ext
16132 fi
16133 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16134 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16135 if test $ac_cv_func_dlopen = yes; then
16136   lt_cv_dlopen="dlopen"
16137 else
16138   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16139 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16140 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16141   echo $ECHO_N "(cached) $ECHO_C" >&6
16142 else
16143   ac_check_lib_save_LIBS=$LIBS
16144 LIBS="-ldl  $LIBS"
16145 cat >conftest.$ac_ext <<_ACEOF
16146 /* confdefs.h.  */
16147 _ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h.  */
16151
16152 /* Override any GCC internal prototype to avoid an error.
16153    Use char because int might match the return type of a GCC
16154    builtin and then its argument prototype would still apply.  */
16155 #ifdef __cplusplus
16156 extern "C"
16157 #endif
16158 char dlopen ();
16159 int
16160 main ()
16161 {
16162 return dlopen ();
16163   ;
16164   return 0;
16165 }
16166 _ACEOF
16167 rm -f conftest.$ac_objext conftest$ac_exeext
16168 if { (ac_try="$ac_link"
16169 case "(($ac_try" in
16170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171   *) ac_try_echo=$ac_try;;
16172 esac
16173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174   (eval "$ac_link") 2>conftest.er1
16175   ac_status=$?
16176   grep -v '^ *+' conftest.er1 >conftest.err
16177   rm -f conftest.er1
16178   cat conftest.err >&5
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); } && {
16181          test -z "$ac_c_werror_flag" ||
16182          test ! -s conftest.err
16183        } && test -s conftest$ac_exeext &&
16184        $as_test_x conftest$ac_exeext; then
16185   ac_cv_lib_dl_dlopen=yes
16186 else
16187   echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16189
16190         ac_cv_lib_dl_dlopen=no
16191 fi
16192
16193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16194       conftest$ac_exeext conftest.$ac_ext
16195 LIBS=$ac_check_lib_save_LIBS
16196 fi
16197 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16198 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16199 if test $ac_cv_lib_dl_dlopen = yes; then
16200   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16201 else
16202   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16203 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16204 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16205   echo $ECHO_N "(cached) $ECHO_C" >&6
16206 else
16207   ac_check_lib_save_LIBS=$LIBS
16208 LIBS="-lsvld  $LIBS"
16209 cat >conftest.$ac_ext <<_ACEOF
16210 /* confdefs.h.  */
16211 _ACEOF
16212 cat confdefs.h >>conftest.$ac_ext
16213 cat >>conftest.$ac_ext <<_ACEOF
16214 /* end confdefs.h.  */
16215
16216 /* Override any GCC internal prototype to avoid an error.
16217    Use char because int might match the return type of a GCC
16218    builtin and then its argument prototype would still apply.  */
16219 #ifdef __cplusplus
16220 extern "C"
16221 #endif
16222 char dlopen ();
16223 int
16224 main ()
16225 {
16226 return dlopen ();
16227   ;
16228   return 0;
16229 }
16230 _ACEOF
16231 rm -f conftest.$ac_objext conftest$ac_exeext
16232 if { (ac_try="$ac_link"
16233 case "(($ac_try" in
16234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235   *) ac_try_echo=$ac_try;;
16236 esac
16237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238   (eval "$ac_link") 2>conftest.er1
16239   ac_status=$?
16240   grep -v '^ *+' conftest.er1 >conftest.err
16241   rm -f conftest.er1
16242   cat conftest.err >&5
16243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244   (exit $ac_status); } && {
16245          test -z "$ac_c_werror_flag" ||
16246          test ! -s conftest.err
16247        } && test -s conftest$ac_exeext &&
16248        $as_test_x conftest$ac_exeext; then
16249   ac_cv_lib_svld_dlopen=yes
16250 else
16251   echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16253
16254         ac_cv_lib_svld_dlopen=no
16255 fi
16256
16257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16258       conftest$ac_exeext conftest.$ac_ext
16259 LIBS=$ac_check_lib_save_LIBS
16260 fi
16261 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16262 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16263 if test $ac_cv_lib_svld_dlopen = yes; then
16264   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16265 else
16266   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16267 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16268 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16269   echo $ECHO_N "(cached) $ECHO_C" >&6
16270 else
16271   ac_check_lib_save_LIBS=$LIBS
16272 LIBS="-ldld  $LIBS"
16273 cat >conftest.$ac_ext <<_ACEOF
16274 /* confdefs.h.  */
16275 _ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h.  */
16279
16280 /* Override any GCC internal prototype to avoid an error.
16281    Use char because int might match the return type of a GCC
16282    builtin and then its argument prototype would still apply.  */
16283 #ifdef __cplusplus
16284 extern "C"
16285 #endif
16286 char dld_link ();
16287 int
16288 main ()
16289 {
16290 return dld_link ();
16291   ;
16292   return 0;
16293 }
16294 _ACEOF
16295 rm -f conftest.$ac_objext conftest$ac_exeext
16296 if { (ac_try="$ac_link"
16297 case "(($ac_try" in
16298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299   *) ac_try_echo=$ac_try;;
16300 esac
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302   (eval "$ac_link") 2>conftest.er1
16303   ac_status=$?
16304   grep -v '^ *+' conftest.er1 >conftest.err
16305   rm -f conftest.er1
16306   cat conftest.err >&5
16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308   (exit $ac_status); } && {
16309          test -z "$ac_c_werror_flag" ||
16310          test ! -s conftest.err
16311        } && test -s conftest$ac_exeext &&
16312        $as_test_x conftest$ac_exeext; then
16313   ac_cv_lib_dld_dld_link=yes
16314 else
16315   echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16317
16318         ac_cv_lib_dld_dld_link=no
16319 fi
16320
16321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16322       conftest$ac_exeext conftest.$ac_ext
16323 LIBS=$ac_check_lib_save_LIBS
16324 fi
16325 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16326 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16327 if test $ac_cv_lib_dld_dld_link = yes; then
16328   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16329 fi
16330
16331
16332 fi
16333
16334
16335 fi
16336
16337
16338 fi
16339
16340
16341 fi
16342
16343
16344 fi
16345
16346     ;;
16347   esac
16348
16349   if test "x$lt_cv_dlopen" != xno; then
16350     enable_dlopen=yes
16351   else
16352     enable_dlopen=no
16353   fi
16354
16355   case $lt_cv_dlopen in
16356   dlopen)
16357     save_CPPFLAGS="$CPPFLAGS"
16358     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16359
16360     save_LDFLAGS="$LDFLAGS"
16361     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16362
16363     save_LIBS="$LIBS"
16364     LIBS="$lt_cv_dlopen_libs $LIBS"
16365
16366     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16367 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16368 if test "${lt_cv_dlopen_self+set}" = set; then
16369   echo $ECHO_N "(cached) $ECHO_C" >&6
16370 else
16371           if test "$cross_compiling" = yes; then :
16372   lt_cv_dlopen_self=cross
16373 else
16374   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16375   lt_status=$lt_dlunknown
16376   cat > conftest.$ac_ext <<EOF
16377 #line 16377 "configure"
16378 #include "confdefs.h"
16379
16380 #if HAVE_DLFCN_H
16381 #include <dlfcn.h>
16382 #endif
16383
16384 #include <stdio.h>
16385
16386 #ifdef RTLD_GLOBAL
16387 #  define LT_DLGLOBAL           RTLD_GLOBAL
16388 #else
16389 #  ifdef DL_GLOBAL
16390 #    define LT_DLGLOBAL         DL_GLOBAL
16391 #  else
16392 #    define LT_DLGLOBAL         0
16393 #  endif
16394 #endif
16395
16396 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16397    find out it does not work in some platform. */
16398 #ifndef LT_DLLAZY_OR_NOW
16399 #  ifdef RTLD_LAZY
16400 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16401 #  else
16402 #    ifdef DL_LAZY
16403 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16404 #    else
16405 #      ifdef RTLD_NOW
16406 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16407 #      else
16408 #        ifdef DL_NOW
16409 #          define LT_DLLAZY_OR_NOW      DL_NOW
16410 #        else
16411 #          define LT_DLLAZY_OR_NOW      0
16412 #        endif
16413 #      endif
16414 #    endif
16415 #  endif
16416 #endif
16417
16418 #ifdef __cplusplus
16419 extern "C" void exit (int);
16420 #endif
16421
16422 void fnord() { int i=42;}
16423 int main ()
16424 {
16425   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16426   int status = $lt_dlunknown;
16427
16428   if (self)
16429     {
16430       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16431       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16432       /* dlclose (self); */
16433     }
16434   else
16435     puts (dlerror ());
16436
16437     exit (status);
16438 }
16439 EOF
16440   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16441   (eval $ac_link) 2>&5
16442   ac_status=$?
16443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16445     (./conftest; exit; ) >&5 2>/dev/null
16446     lt_status=$?
16447     case x$lt_status in
16448       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16449       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16450       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16451     esac
16452   else :
16453     # compilation failed
16454     lt_cv_dlopen_self=no
16455   fi
16456 fi
16457 rm -fr conftest*
16458
16459
16460 fi
16461 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16462 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
16463
16464     if test "x$lt_cv_dlopen_self" = xyes; then
16465       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16466       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16467 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16468 if test "${lt_cv_dlopen_self_static+set}" = set; then
16469   echo $ECHO_N "(cached) $ECHO_C" >&6
16470 else
16471           if test "$cross_compiling" = yes; then :
16472   lt_cv_dlopen_self_static=cross
16473 else
16474   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16475   lt_status=$lt_dlunknown
16476   cat > conftest.$ac_ext <<EOF
16477 #line 16477 "configure"
16478 #include "confdefs.h"
16479
16480 #if HAVE_DLFCN_H
16481 #include <dlfcn.h>
16482 #endif
16483
16484 #include <stdio.h>
16485
16486 #ifdef RTLD_GLOBAL
16487 #  define LT_DLGLOBAL           RTLD_GLOBAL
16488 #else
16489 #  ifdef DL_GLOBAL
16490 #    define LT_DLGLOBAL         DL_GLOBAL
16491 #  else
16492 #    define LT_DLGLOBAL         0
16493 #  endif
16494 #endif
16495
16496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16497    find out it does not work in some platform. */
16498 #ifndef LT_DLLAZY_OR_NOW
16499 #  ifdef RTLD_LAZY
16500 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16501 #  else
16502 #    ifdef DL_LAZY
16503 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16504 #    else
16505 #      ifdef RTLD_NOW
16506 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16507 #      else
16508 #        ifdef DL_NOW
16509 #          define LT_DLLAZY_OR_NOW      DL_NOW
16510 #        else
16511 #          define LT_DLLAZY_OR_NOW      0
16512 #        endif
16513 #      endif
16514 #    endif
16515 #  endif
16516 #endif
16517
16518 #ifdef __cplusplus
16519 extern "C" void exit (int);
16520 #endif
16521
16522 void fnord() { int i=42;}
16523 int main ()
16524 {
16525   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16526   int status = $lt_dlunknown;
16527
16528   if (self)
16529     {
16530       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16531       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16532       /* dlclose (self); */
16533     }
16534   else
16535     puts (dlerror ());
16536
16537     exit (status);
16538 }
16539 EOF
16540   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16541   (eval $ac_link) 2>&5
16542   ac_status=$?
16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16545     (./conftest; exit; ) >&5 2>/dev/null
16546     lt_status=$?
16547     case x$lt_status in
16548       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16549       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16550       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16551     esac
16552   else :
16553     # compilation failed
16554     lt_cv_dlopen_self_static=no
16555   fi
16556 fi
16557 rm -fr conftest*
16558
16559
16560 fi
16561 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16562 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16563     fi
16564
16565     CPPFLAGS="$save_CPPFLAGS"
16566     LDFLAGS="$save_LDFLAGS"
16567     LIBS="$save_LIBS"
16568     ;;
16569   esac
16570
16571   case $lt_cv_dlopen_self in
16572   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16573   *) enable_dlopen_self=unknown ;;
16574   esac
16575
16576   case $lt_cv_dlopen_self_static in
16577   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16578   *) enable_dlopen_self_static=unknown ;;
16579   esac
16580 fi
16581
16582
16583 # Report which library types will actually be built
16584 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16585 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16586 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
16587 echo "${ECHO_T}$can_build_shared" >&6; }
16588
16589 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16590 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16591 test "$can_build_shared" = "no" && enable_shared=no
16592
16593 # On AIX, shared libraries and static libraries use the same namespace, and
16594 # are all built from PIC.
16595 case $host_os in
16596 aix3*)
16597   test "$enable_shared" = yes && enable_static=no
16598   if test -n "$RANLIB"; then
16599     archive_cmds="$archive_cmds~\$RANLIB \$lib"
16600     postinstall_cmds='$RANLIB $lib'
16601   fi
16602   ;;
16603
16604 aix4* | aix5*)
16605   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16606     test "$enable_shared" = yes && enable_static=no
16607   fi
16608     ;;
16609 esac
16610 { echo "$as_me:$LINENO: result: $enable_shared" >&5
16611 echo "${ECHO_T}$enable_shared" >&6; }
16612
16613 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16614 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16615 # Make sure either enable_shared or enable_static is yes.
16616 test "$enable_shared" = yes || enable_static=yes
16617 { echo "$as_me:$LINENO: result: $enable_static" >&5
16618 echo "${ECHO_T}$enable_static" >&6; }
16619
16620 # The else clause should only fire when bootstrapping the
16621 # libtool distribution, otherwise you forgot to ship ltmain.sh
16622 # with your package, and you will get complaints that there are
16623 # no rules to generate ltmain.sh.
16624 if test -f "$ltmain"; then
16625   # See if we are running on zsh, and set the options which allow our commands through
16626   # without removal of \ escapes.
16627   if test -n "${ZSH_VERSION+set}" ; then
16628     setopt NO_GLOB_SUBST
16629   fi
16630   # Now quote all the things that may contain metacharacters while being
16631   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16632   # variables and quote the copies for generation of the libtool script.
16633   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16634     SED SHELL STRIP \
16635     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16636     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16637     deplibs_check_method reload_flag reload_cmds need_locks \
16638     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16639     lt_cv_sys_global_symbol_to_c_name_address \
16640     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16641     old_postinstall_cmds old_postuninstall_cmds \
16642     compiler \
16643     CC \
16644     LD \
16645     lt_prog_compiler_wl \
16646     lt_prog_compiler_pic \
16647     lt_prog_compiler_static \
16648     lt_prog_compiler_no_builtin_flag \
16649     export_dynamic_flag_spec \
16650     thread_safe_flag_spec \
16651     whole_archive_flag_spec \
16652     enable_shared_with_static_runtimes \
16653     old_archive_cmds \
16654     old_archive_from_new_cmds \
16655     predep_objects \
16656     postdep_objects \
16657     predeps \
16658     postdeps \
16659     compiler_lib_search_path \
16660     archive_cmds \
16661     archive_expsym_cmds \
16662     postinstall_cmds \
16663     postuninstall_cmds \
16664     old_archive_from_expsyms_cmds \
16665     allow_undefined_flag \
16666     no_undefined_flag \
16667     export_symbols_cmds \
16668     hardcode_libdir_flag_spec \
16669     hardcode_libdir_flag_spec_ld \
16670     hardcode_libdir_separator \
16671     hardcode_automatic \
16672     module_cmds \
16673     module_expsym_cmds \
16674     lt_cv_prog_compiler_c_o \
16675     exclude_expsyms \
16676     include_expsyms; do
16677
16678     case $var in
16679     old_archive_cmds | \
16680     old_archive_from_new_cmds | \
16681     archive_cmds | \
16682     archive_expsym_cmds | \
16683     module_cmds | \
16684     module_expsym_cmds | \
16685     old_archive_from_expsyms_cmds | \
16686     export_symbols_cmds | \
16687     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16688     postinstall_cmds | postuninstall_cmds | \
16689     old_postinstall_cmds | old_postuninstall_cmds | \
16690     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16691       # Double-quote double-evaled strings.
16692       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16693       ;;
16694     *)
16695       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16696       ;;
16697     esac
16698   done
16699
16700   case $lt_echo in
16701   *'\$0 --fallback-echo"')
16702     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16703     ;;
16704   esac
16705
16706 cfgfile="${ofile}T"
16707   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16708   $rm -f "$cfgfile"
16709   { echo "$as_me:$LINENO: creating $ofile" >&5
16710 echo "$as_me: creating $ofile" >&6;}
16711
16712   cat <<__EOF__ >> "$cfgfile"
16713 #! $SHELL
16714
16715 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16716 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16717 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16718 #
16719 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16720 # Free Software Foundation, Inc.
16721 #
16722 # This file is part of GNU Libtool:
16723 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16724 #
16725 # This program is free software; you can redistribute it and/or modify
16726 # it under the terms of the GNU General Public License as published by
16727 # the Free Software Foundation; either version 2 of the License, or
16728 # (at your option) any later version.
16729 #
16730 # This program is distributed in the hope that it will be useful, but
16731 # WITHOUT ANY WARRANTY; without even the implied warranty of
16732 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16733 # General Public License for more details.
16734 #
16735 # You should have received a copy of the GNU General Public License
16736 # along with this program; if not, write to the Free Software
16737 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16738 #
16739 # As a special exception to the GNU General Public License, if you
16740 # distribute this file as part of a program that contains a
16741 # configuration script generated by Autoconf, you may include it under
16742 # the same distribution terms that you use for the rest of that program.
16743
16744 # A sed program that does not truncate output.
16745 SED=$lt_SED
16746
16747 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16748 Xsed="$SED -e 1s/^X//"
16749
16750 # The HP-UX ksh and POSIX shell print the target directory to stdout
16751 # if CDPATH is set.
16752 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16753
16754 # The names of the tagged configurations supported by this script.
16755 available_tags=
16756
16757 # ### BEGIN LIBTOOL CONFIG
16758
16759 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16760
16761 # Shell to use when invoking shell scripts.
16762 SHELL=$lt_SHELL
16763
16764 # Whether or not to build shared libraries.
16765 build_libtool_libs=$enable_shared
16766
16767 # Whether or not to build static libraries.
16768 build_old_libs=$enable_static
16769
16770 # Whether or not to add -lc for building shared libraries.
16771 build_libtool_need_lc=$archive_cmds_need_lc
16772
16773 # Whether or not to disallow shared libs when runtime libs are static
16774 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16775
16776 # Whether or not to optimize for fast installation.
16777 fast_install=$enable_fast_install
16778
16779 # The host system.
16780 host_alias=$host_alias
16781 host=$host
16782 host_os=$host_os
16783
16784 # The build system.
16785 build_alias=$build_alias
16786 build=$build
16787 build_os=$build_os
16788
16789 # An echo program that does not interpret backslashes.
16790 echo=$lt_echo
16791
16792 # The archiver.
16793 AR=$lt_AR
16794 AR_FLAGS=$lt_AR_FLAGS
16795
16796 # A C compiler.
16797 LTCC=$lt_LTCC
16798
16799 # LTCC compiler flags.
16800 LTCFLAGS=$lt_LTCFLAGS
16801
16802 # A language-specific compiler.
16803 CC=$lt_compiler
16804
16805 # Is the compiler the GNU C compiler?
16806 with_gcc=$GCC
16807
16808 # An ERE matcher.
16809 EGREP=$lt_EGREP
16810
16811 # The linker used to build libraries.
16812 LD=$lt_LD
16813
16814 # Whether we need hard or soft links.
16815 LN_S=$lt_LN_S
16816
16817 # A BSD-compatible nm program.
16818 NM=$lt_NM
16819
16820 # A symbol stripping program
16821 STRIP=$lt_STRIP
16822
16823 # Used to examine libraries when file_magic_cmd begins "file"
16824 MAGIC_CMD=$MAGIC_CMD
16825
16826 # Used on cygwin: DLL creation program.
16827 DLLTOOL="$DLLTOOL"
16828
16829 # Used on cygwin: object dumper.
16830 OBJDUMP="$OBJDUMP"
16831
16832 # Used on cygwin: assembler.
16833 AS="$AS"
16834
16835 # The name of the directory that contains temporary libtool files.
16836 objdir=$objdir
16837
16838 # How to create reloadable object files.
16839 reload_flag=$lt_reload_flag
16840 reload_cmds=$lt_reload_cmds
16841
16842 # How to pass a linker flag through the compiler.
16843 wl=$lt_lt_prog_compiler_wl
16844
16845 # Object file suffix (normally "o").
16846 objext="$ac_objext"
16847
16848 # Old archive suffix (normally "a").
16849 libext="$libext"
16850
16851 # Shared library suffix (normally ".so").
16852 shrext_cmds='$shrext_cmds'
16853
16854 # Executable file suffix (normally "").
16855 exeext="$exeext"
16856
16857 # Additional compiler flags for building library objects.
16858 pic_flag=$lt_lt_prog_compiler_pic
16859 pic_mode=$pic_mode
16860
16861 # What is the maximum length of a command?
16862 max_cmd_len=$lt_cv_sys_max_cmd_len
16863
16864 # Does compiler simultaneously support -c and -o options?
16865 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16866
16867 # Must we lock files when doing compilation?
16868 need_locks=$lt_need_locks
16869
16870 # Do we need the lib prefix for modules?
16871 need_lib_prefix=$need_lib_prefix
16872
16873 # Do we need a version for libraries?
16874 need_version=$need_version
16875
16876 # Whether dlopen is supported.
16877 dlopen_support=$enable_dlopen
16878
16879 # Whether dlopen of programs is supported.
16880 dlopen_self=$enable_dlopen_self
16881
16882 # Whether dlopen of statically linked programs is supported.
16883 dlopen_self_static=$enable_dlopen_self_static
16884
16885 # Compiler flag to prevent dynamic linking.
16886 link_static_flag=$lt_lt_prog_compiler_static
16887
16888 # Compiler flag to turn off builtin functions.
16889 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16890
16891 # Compiler flag to allow reflexive dlopens.
16892 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16893
16894 # Compiler flag to generate shared objects directly from archives.
16895 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16896
16897 # Compiler flag to generate thread-safe objects.
16898 thread_safe_flag_spec=$lt_thread_safe_flag_spec
16899
16900 # Library versioning type.
16901 version_type=$version_type
16902
16903 # Format of library name prefix.
16904 libname_spec=$lt_libname_spec
16905
16906 # List of archive names.  First name is the real one, the rest are links.
16907 # The last name is the one that the linker finds with -lNAME.
16908 library_names_spec=$lt_library_names_spec
16909
16910 # The coded name of the library, if different from the real name.
16911 soname_spec=$lt_soname_spec
16912
16913 # Commands used to build and install an old-style archive.
16914 RANLIB=$lt_RANLIB
16915 old_archive_cmds=$lt_old_archive_cmds
16916 old_postinstall_cmds=$lt_old_postinstall_cmds
16917 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16918
16919 # Create an old-style archive from a shared archive.
16920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16921
16922 # Create a temporary old-style archive to link instead of a shared archive.
16923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16924
16925 # Commands used to build and install a shared archive.
16926 archive_cmds=$lt_archive_cmds
16927 archive_expsym_cmds=$lt_archive_expsym_cmds
16928 postinstall_cmds=$lt_postinstall_cmds
16929 postuninstall_cmds=$lt_postuninstall_cmds
16930
16931 # Commands used to build a loadable module (assumed same as above if empty)
16932 module_cmds=$lt_module_cmds
16933 module_expsym_cmds=$lt_module_expsym_cmds
16934
16935 # Commands to strip libraries.
16936 old_striplib=$lt_old_striplib
16937 striplib=$lt_striplib
16938
16939 # Dependencies to place before the objects being linked to create a
16940 # shared library.
16941 predep_objects=$lt_predep_objects
16942
16943 # Dependencies to place after the objects being linked to create a
16944 # shared library.
16945 postdep_objects=$lt_postdep_objects
16946
16947 # Dependencies to place before the objects being linked to create a
16948 # shared library.
16949 predeps=$lt_predeps
16950
16951 # Dependencies to place after the objects being linked to create a
16952 # shared library.
16953 postdeps=$lt_postdeps
16954
16955 # The library search path used internally by the compiler when linking
16956 # a shared library.
16957 compiler_lib_search_path=$lt_compiler_lib_search_path
16958
16959 # Method to check whether dependent libraries are shared objects.
16960 deplibs_check_method=$lt_deplibs_check_method
16961
16962 # Command to use when deplibs_check_method == file_magic.
16963 file_magic_cmd=$lt_file_magic_cmd
16964
16965 # Flag that allows shared libraries with undefined symbols to be built.
16966 allow_undefined_flag=$lt_allow_undefined_flag
16967
16968 # Flag that forces no undefined symbols.
16969 no_undefined_flag=$lt_no_undefined_flag
16970
16971 # Commands used to finish a libtool library installation in a directory.
16972 finish_cmds=$lt_finish_cmds
16973
16974 # Same as above, but a single script fragment to be evaled but not shown.
16975 finish_eval=$lt_finish_eval
16976
16977 # Take the output of nm and produce a listing of raw symbols and C names.
16978 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16979
16980 # Transform the output of nm in a proper C declaration
16981 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16982
16983 # Transform the output of nm in a C name address pair
16984 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16985
16986 # This is the shared library runtime path variable.
16987 runpath_var=$runpath_var
16988
16989 # This is the shared library path variable.
16990 shlibpath_var=$shlibpath_var
16991
16992 # Is shlibpath searched before the hard-coded library search path?
16993 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16994
16995 # How to hardcode a shared library path into an executable.
16996 hardcode_action=$hardcode_action
16997
16998 # Whether we should hardcode library paths into libraries.
16999 hardcode_into_libs=$hardcode_into_libs
17000
17001 # Flag to hardcode \$libdir into a binary during linking.
17002 # This must work even if \$libdir does not exist.
17003 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17004
17005 # If ld is used when linking, flag to hardcode \$libdir into
17006 # a binary during linking. This must work even if \$libdir does
17007 # not exist.
17008 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17009
17010 # Whether we need a single -rpath flag with a separated argument.
17011 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17012
17013 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17014 # resulting binary.
17015 hardcode_direct=$hardcode_direct
17016
17017 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17018 # resulting binary.
17019 hardcode_minus_L=$hardcode_minus_L
17020
17021 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17022 # the resulting binary.
17023 hardcode_shlibpath_var=$hardcode_shlibpath_var
17024
17025 # Set to yes if building a shared library automatically hardcodes DIR into the library
17026 # and all subsequent libraries and executables linked against it.
17027 hardcode_automatic=$hardcode_automatic
17028
17029 # Variables whose values should be saved in libtool wrapper scripts and
17030 # restored at relink time.
17031 variables_saved_for_relink="$variables_saved_for_relink"
17032
17033 # Whether libtool must link a program against all its dependency libraries.
17034 link_all_deplibs=$link_all_deplibs
17035
17036 # Compile-time system search path for libraries
17037 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17038
17039 # Run-time system search path for libraries
17040 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17041
17042 # Fix the shell variable \$srcfile for the compiler.
17043 fix_srcfile_path="$fix_srcfile_path"
17044
17045 # Set to yes if exported symbols are required.
17046 always_export_symbols=$always_export_symbols
17047
17048 # The commands to list exported symbols.
17049 export_symbols_cmds=$lt_export_symbols_cmds
17050
17051 # The commands to extract the exported symbol list from a shared archive.
17052 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17053
17054 # Symbols that should not be listed in the preloaded symbols.
17055 exclude_expsyms=$lt_exclude_expsyms
17056
17057 # Symbols that must always be exported.
17058 include_expsyms=$lt_include_expsyms
17059
17060 # ### END LIBTOOL CONFIG
17061
17062 __EOF__
17063
17064
17065   case $host_os in
17066   aix3*)
17067     cat <<\EOF >> "$cfgfile"
17068
17069 # AIX sometimes has problems with the GCC collect2 program.  For some
17070 # reason, if we set the COLLECT_NAMES environment variable, the problems
17071 # vanish in a puff of smoke.
17072 if test "X${COLLECT_NAMES+set}" != Xset; then
17073   COLLECT_NAMES=
17074   export COLLECT_NAMES
17075 fi
17076 EOF
17077     ;;
17078   esac
17079
17080   # We use sed instead of cat because bash on DJGPP gets confused if
17081   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17082   # text mode, it properly converts lines to CR/LF.  This bash problem
17083   # is reportedly fixed, but why not run on old versions too?
17084   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17085
17086   mv -f "$cfgfile" "$ofile" || \
17087     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17088   chmod +x "$ofile"
17089
17090 else
17091   # If there is no Makefile yet, we rely on a make rule to execute
17092   # `config.status --recheck' to rerun these tests and create the
17093   # libtool script then.
17094   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17095   if test -f "$ltmain_in"; then
17096     test -f Makefile && make "$ltmain"
17097   fi
17098 fi
17099
17100
17101 ac_ext=c
17102 ac_cpp='$CPP $CPPFLAGS'
17103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17106
17107 CC="$lt_save_CC"
17108
17109
17110 # Check whether --with-tags was given.
17111 if test "${with_tags+set}" = set; then
17112   withval=$with_tags; tagnames="$withval"
17113 fi
17114
17115
17116 if test -f "$ltmain" && test -n "$tagnames"; then
17117   if test ! -f "${ofile}"; then
17118     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17119 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17120   fi
17121
17122   if test -z "$LTCC"; then
17123     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17124     if test -z "$LTCC"; then
17125       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17126 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17127     else
17128       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17129 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17130     fi
17131   fi
17132   if test -z "$LTCFLAGS"; then
17133     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17134   fi
17135
17136   # Extract list of available tagged configurations in $ofile.
17137   # Note that this assumes the entire list is on one line.
17138   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17139
17140   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17141   for tagname in $tagnames; do
17142     IFS="$lt_save_ifs"
17143     # Check whether tagname contains only valid characters
17144     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17145     "") ;;
17146     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17147 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17148    { (exit 1); exit 1; }; }
17149         ;;
17150     esac
17151
17152     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17153     then
17154       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17155 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17156    { (exit 1); exit 1; }; }
17157     fi
17158
17159     # Update the list of available tags.
17160     if test -n "$tagname"; then
17161       echo appending configuration tag \"$tagname\" to $ofile
17162
17163       case $tagname in
17164       CXX)
17165         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17166             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17167             (test "X$CXX" != "Xg++"))) ; then
17168           ac_ext=cpp
17169 ac_cpp='$CXXCPP $CPPFLAGS'
17170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17173
17174
17175
17176
17177 archive_cmds_need_lc_CXX=no
17178 allow_undefined_flag_CXX=
17179 always_export_symbols_CXX=no
17180 archive_expsym_cmds_CXX=
17181 export_dynamic_flag_spec_CXX=
17182 hardcode_direct_CXX=no
17183 hardcode_libdir_flag_spec_CXX=
17184 hardcode_libdir_flag_spec_ld_CXX=
17185 hardcode_libdir_separator_CXX=
17186 hardcode_minus_L_CXX=no
17187 hardcode_shlibpath_var_CXX=unsupported
17188 hardcode_automatic_CXX=no
17189 module_cmds_CXX=
17190 module_expsym_cmds_CXX=
17191 link_all_deplibs_CXX=unknown
17192 old_archive_cmds_CXX=$old_archive_cmds
17193 no_undefined_flag_CXX=
17194 whole_archive_flag_spec_CXX=
17195 enable_shared_with_static_runtimes_CXX=no
17196
17197 # Dependencies to place before and after the object being linked:
17198 predep_objects_CXX=
17199 postdep_objects_CXX=
17200 predeps_CXX=
17201 postdeps_CXX=
17202 compiler_lib_search_path_CXX=
17203
17204 # Source file extension for C++ test sources.
17205 ac_ext=cpp
17206
17207 # Object file extension for compiled C++ test sources.
17208 objext=o
17209 objext_CXX=$objext
17210
17211 # Code to be used in simple compile tests
17212 lt_simple_compile_test_code="int some_variable = 0;\n"
17213
17214 # Code to be used in simple link tests
17215 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17216
17217 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17218
17219 # If no C compiler was specified, use CC.
17220 LTCC=${LTCC-"$CC"}
17221
17222 # If no C compiler flags were specified, use CFLAGS.
17223 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17224
17225 # Allow CC to be a program name with arguments.
17226 compiler=$CC
17227
17228
17229 # save warnings/boilerplate of simple test code
17230 ac_outfile=conftest.$ac_objext
17231 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17232 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17233 _lt_compiler_boilerplate=`cat conftest.err`
17234 $rm conftest*
17235
17236 ac_outfile=conftest.$ac_objext
17237 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17238 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17239 _lt_linker_boilerplate=`cat conftest.err`
17240 $rm conftest*
17241
17242
17243 # Allow CC to be a program name with arguments.
17244 lt_save_CC=$CC
17245 lt_save_LD=$LD
17246 lt_save_GCC=$GCC
17247 GCC=$GXX
17248 lt_save_with_gnu_ld=$with_gnu_ld
17249 lt_save_path_LD=$lt_cv_path_LD
17250 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17251   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17252 else
17253   $as_unset lt_cv_prog_gnu_ld
17254 fi
17255 if test -n "${lt_cv_path_LDCXX+set}"; then
17256   lt_cv_path_LD=$lt_cv_path_LDCXX
17257 else
17258   $as_unset lt_cv_path_LD
17259 fi
17260 test -z "${LDCXX+set}" || LD=$LDCXX
17261 CC=${CXX-"c++"}
17262 compiler=$CC
17263 compiler_CXX=$CC
17264 for cc_temp in $compiler""; do
17265   case $cc_temp in
17266     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17267     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17268     \-*) ;;
17269     *) break;;
17270   esac
17271 done
17272 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17273
17274
17275 # We don't want -fno-exception wen compiling C++ code, so set the
17276 # no_builtin_flag separately
17277 if test "$GXX" = yes; then
17278   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17279 else
17280   lt_prog_compiler_no_builtin_flag_CXX=
17281 fi
17282
17283 if test "$GXX" = yes; then
17284   # Set up default GNU C++ configuration
17285
17286
17287 # Check whether --with-gnu-ld was given.
17288 if test "${with_gnu_ld+set}" = set; then
17289   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17290 else
17291   with_gnu_ld=no
17292 fi
17293
17294 ac_prog=ld
17295 if test "$GCC" = yes; then
17296   # Check if gcc -print-prog-name=ld gives a path.
17297   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17298 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17299   case $host in
17300   *-*-mingw*)
17301     # gcc leaves a trailing carriage return which upsets mingw
17302     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17303   *)
17304     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17305   esac
17306   case $ac_prog in
17307     # Accept absolute paths.
17308     [\\/]* | ?:[\\/]*)
17309       re_direlt='/[^/][^/]*/\.\./'
17310       # Canonicalize the pathname of ld
17311       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17312       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17313         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17314       done
17315       test -z "$LD" && LD="$ac_prog"
17316       ;;
17317   "")
17318     # If it fails, then pretend we aren't using GCC.
17319     ac_prog=ld
17320     ;;
17321   *)
17322     # If it is relative, then search for the first ld in PATH.
17323     with_gnu_ld=unknown
17324     ;;
17325   esac
17326 elif test "$with_gnu_ld" = yes; then
17327   { echo "$as_me:$LINENO: checking for GNU ld" >&5
17328 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17329 else
17330   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17331 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17332 fi
17333 if test "${lt_cv_path_LD+set}" = set; then
17334   echo $ECHO_N "(cached) $ECHO_C" >&6
17335 else
17336   if test -z "$LD"; then
17337   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17338   for ac_dir in $PATH; do
17339     IFS="$lt_save_ifs"
17340     test -z "$ac_dir" && ac_dir=.
17341     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17342       lt_cv_path_LD="$ac_dir/$ac_prog"
17343       # Check to see if the program is GNU ld.  I'd rather use --version,
17344       # but apparently some variants of GNU ld only accept -v.
17345       # Break only if it was the GNU/non-GNU ld that we prefer.
17346       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17347       *GNU* | *'with BFD'*)
17348         test "$with_gnu_ld" != no && break
17349         ;;
17350       *)
17351         test "$with_gnu_ld" != yes && break
17352         ;;
17353       esac
17354     fi
17355   done
17356   IFS="$lt_save_ifs"
17357 else
17358   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17359 fi
17360 fi
17361
17362 LD="$lt_cv_path_LD"
17363 if test -n "$LD"; then
17364   { echo "$as_me:$LINENO: result: $LD" >&5
17365 echo "${ECHO_T}$LD" >&6; }
17366 else
17367   { echo "$as_me:$LINENO: result: no" >&5
17368 echo "${ECHO_T}no" >&6; }
17369 fi
17370 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17371 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17372    { (exit 1); exit 1; }; }
17373 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17374 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17375 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17376   echo $ECHO_N "(cached) $ECHO_C" >&6
17377 else
17378   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17379 case `$LD -v 2>&1 </dev/null` in
17380 *GNU* | *'with BFD'*)
17381   lt_cv_prog_gnu_ld=yes
17382   ;;
17383 *)
17384   lt_cv_prog_gnu_ld=no
17385   ;;
17386 esac
17387 fi
17388 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17389 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17390 with_gnu_ld=$lt_cv_prog_gnu_ld
17391
17392
17393
17394   # Check if GNU C++ uses GNU ld as the underlying linker, since the
17395   # archiving commands below assume that GNU ld is being used.
17396   if test "$with_gnu_ld" = yes; then
17397     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17398     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'
17399
17400     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17401     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17402
17403     # If archive_cmds runs LD, not CC, wlarc should be empty
17404     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17405     #     investigate it a little bit more. (MM)
17406     wlarc='${wl}'
17407
17408     # ancient GNU ld didn't support --whole-archive et. al.
17409     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17410         grep 'no-whole-archive' > /dev/null; then
17411       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17412     else
17413       whole_archive_flag_spec_CXX=
17414     fi
17415   else
17416     with_gnu_ld=no
17417     wlarc=
17418
17419     # A generic and very simple default shared library creation
17420     # command for GNU C++ for the case where it uses the native
17421     # linker, instead of GNU ld.  If possible, this setting should
17422     # overridden to take advantage of the native linker features on
17423     # the platform it is being used on.
17424     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17425   fi
17426
17427   # Commands to make compiler produce verbose output that lists
17428   # what "hidden" libraries, object files and flags are used when
17429   # linking a shared library.
17430   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17431
17432 else
17433   GXX=no
17434   with_gnu_ld=no
17435   wlarc=
17436 fi
17437
17438 # PORTME: fill in a description of your system's C++ link characteristics
17439 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17440 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17441 ld_shlibs_CXX=yes
17442 case $host_os in
17443   aix3*)
17444     # FIXME: insert proper C++ library support
17445     ld_shlibs_CXX=no
17446     ;;
17447   aix4* | aix5*)
17448     if test "$host_cpu" = ia64; then
17449       # On IA64, the linker does run time linking by default, so we don't
17450       # have to do anything special.
17451       aix_use_runtimelinking=no
17452       exp_sym_flag='-Bexport'
17453       no_entry_flag=""
17454     else
17455       aix_use_runtimelinking=no
17456
17457       # Test if we are trying to use run time linking or normal
17458       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17459       # need to do runtime linking.
17460       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17461         for ld_flag in $LDFLAGS; do
17462           case $ld_flag in
17463           *-brtl*)
17464             aix_use_runtimelinking=yes
17465             break
17466             ;;
17467           esac
17468         done
17469         ;;
17470       esac
17471
17472       exp_sym_flag='-bexport'
17473       no_entry_flag='-bnoentry'
17474     fi
17475
17476     # When large executables or shared objects are built, AIX ld can
17477     # have problems creating the table of contents.  If linking a library
17478     # or program results in "error TOC overflow" add -mminimal-toc to
17479     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17480     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17481
17482     archive_cmds_CXX=''
17483     hardcode_direct_CXX=yes
17484     hardcode_libdir_separator_CXX=':'
17485     link_all_deplibs_CXX=yes
17486
17487     if test "$GXX" = yes; then
17488       case $host_os in aix4.[012]|aix4.[012].*)
17489       # We only want to do this on AIX 4.2 and lower, the check
17490       # below for broken collect2 doesn't work under 4.3+
17491         collect2name=`${CC} -print-prog-name=collect2`
17492         if test -f "$collect2name" && \
17493            strings "$collect2name" | grep resolve_lib_name >/dev/null
17494         then
17495           # We have reworked collect2
17496           hardcode_direct_CXX=yes
17497         else
17498           # We have old collect2
17499           hardcode_direct_CXX=unsupported
17500           # It fails to find uninstalled libraries when the uninstalled
17501           # path is not listed in the libpath.  Setting hardcode_minus_L
17502           # to unsupported forces relinking
17503           hardcode_minus_L_CXX=yes
17504           hardcode_libdir_flag_spec_CXX='-L$libdir'
17505           hardcode_libdir_separator_CXX=
17506         fi
17507         ;;
17508       esac
17509       shared_flag='-shared'
17510       if test "$aix_use_runtimelinking" = yes; then
17511         shared_flag="$shared_flag "'${wl}-G'
17512       fi
17513     else
17514       # not using gcc
17515       if test "$host_cpu" = ia64; then
17516         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17517         # chokes on -Wl,-G. The following line is correct:
17518         shared_flag='-G'
17519       else
17520         if test "$aix_use_runtimelinking" = yes; then
17521           shared_flag='${wl}-G'
17522         else
17523           shared_flag='${wl}-bM:SRE'
17524         fi
17525       fi
17526     fi
17527
17528     # It seems that -bexpall does not export symbols beginning with
17529     # underscore (_), so it is better to generate a list of symbols to export.
17530     always_export_symbols_CXX=yes
17531     if test "$aix_use_runtimelinking" = yes; then
17532       # Warning - without using the other runtime loading flags (-brtl),
17533       # -berok will link without error, but may produce a broken library.
17534       allow_undefined_flag_CXX='-berok'
17535       # Determine the default libpath from the value encoded in an empty executable.
17536       cat >conftest.$ac_ext <<_ACEOF
17537 /* confdefs.h.  */
17538 _ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h.  */
17542
17543 int
17544 main ()
17545 {
17546
17547   ;
17548   return 0;
17549 }
17550 _ACEOF
17551 rm -f conftest.$ac_objext conftest$ac_exeext
17552 if { (ac_try="$ac_link"
17553 case "(($ac_try" in
17554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555   *) ac_try_echo=$ac_try;;
17556 esac
17557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558   (eval "$ac_link") 2>conftest.er1
17559   ac_status=$?
17560   grep -v '^ *+' conftest.er1 >conftest.err
17561   rm -f conftest.er1
17562   cat conftest.err >&5
17563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564   (exit $ac_status); } && {
17565          test -z "$ac_cxx_werror_flag" ||
17566          test ! -s conftest.err
17567        } && test -s conftest$ac_exeext &&
17568        $as_test_x conftest$ac_exeext; then
17569
17570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17571 }'`
17572 # Check for a 64-bit object if we didn't find anything.
17573 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; }
17574 }'`; fi
17575 else
17576   echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17578
17579
17580 fi
17581
17582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17583       conftest$ac_exeext conftest.$ac_ext
17584 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17585
17586       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17587
17588       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"
17589      else
17590       if test "$host_cpu" = ia64; then
17591         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17592         allow_undefined_flag_CXX="-z nodefs"
17593         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"
17594       else
17595         # Determine the default libpath from the value encoded in an empty executable.
17596         cat >conftest.$ac_ext <<_ACEOF
17597 /* confdefs.h.  */
17598 _ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h.  */
17602
17603 int
17604 main ()
17605 {
17606
17607   ;
17608   return 0;
17609 }
17610 _ACEOF
17611 rm -f conftest.$ac_objext conftest$ac_exeext
17612 if { (ac_try="$ac_link"
17613 case "(($ac_try" in
17614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615   *) ac_try_echo=$ac_try;;
17616 esac
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618   (eval "$ac_link") 2>conftest.er1
17619   ac_status=$?
17620   grep -v '^ *+' conftest.er1 >conftest.err
17621   rm -f conftest.er1
17622   cat conftest.err >&5
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); } && {
17625          test -z "$ac_cxx_werror_flag" ||
17626          test ! -s conftest.err
17627        } && test -s conftest$ac_exeext &&
17628        $as_test_x conftest$ac_exeext; then
17629
17630 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17631 }'`
17632 # Check for a 64-bit object if we didn't find anything.
17633 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; }
17634 }'`; fi
17635 else
17636   echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17638
17639
17640 fi
17641
17642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17643       conftest$ac_exeext conftest.$ac_ext
17644 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17645
17646         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17647         # Warning - without using the other run time loading flags,
17648         # -berok will link without error, but may produce a broken library.
17649         no_undefined_flag_CXX=' ${wl}-bernotok'
17650         allow_undefined_flag_CXX=' ${wl}-berok'
17651         # Exported symbols can be pulled into shared objects from archives
17652         whole_archive_flag_spec_CXX='$convenience'
17653         archive_cmds_need_lc_CXX=yes
17654         # This is similar to how AIX traditionally builds its shared libraries.
17655         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'
17656       fi
17657     fi
17658     ;;
17659
17660   beos*)
17661     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17662       allow_undefined_flag_CXX=unsupported
17663       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17664       # support --undefined.  This deserves some investigation.  FIXME
17665       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17666     else
17667       ld_shlibs_CXX=no
17668     fi
17669     ;;
17670
17671   chorus*)
17672     case $cc_basename in
17673       *)
17674         # FIXME: insert proper C++ library support
17675         ld_shlibs_CXX=no
17676         ;;
17677     esac
17678     ;;
17679
17680   cygwin* | mingw* | pw32*)
17681     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17682     # as there is no search path for DLLs.
17683     hardcode_libdir_flag_spec_CXX='-L$libdir'
17684     allow_undefined_flag_CXX=unsupported
17685     always_export_symbols_CXX=no
17686     enable_shared_with_static_runtimes_CXX=yes
17687
17688     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17689       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'
17690       # If the export-symbols file already is a .def file (1st line
17691       # is EXPORTS), use it as is; otherwise, prepend...
17692       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17693         cp $export_symbols $output_objdir/$soname.def;
17694       else
17695         echo EXPORTS > $output_objdir/$soname.def;
17696         cat $export_symbols >> $output_objdir/$soname.def;
17697       fi~
17698       $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'
17699     else
17700       ld_shlibs_CXX=no
17701     fi
17702   ;;
17703       darwin* | rhapsody*)
17704         case $host_os in
17705         rhapsody* | darwin1.[012])
17706          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17707          ;;
17708        *) # Darwin 1.3 on
17709          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17710            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17711          else
17712            case ${MACOSX_DEPLOYMENT_TARGET} in
17713              10.[012])
17714                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17715                ;;
17716              10.*)
17717                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17718                ;;
17719            esac
17720          fi
17721          ;;
17722         esac
17723       archive_cmds_need_lc_CXX=no
17724       hardcode_direct_CXX=no
17725       hardcode_automatic_CXX=yes
17726       hardcode_shlibpath_var_CXX=unsupported
17727       whole_archive_flag_spec_CXX=''
17728       link_all_deplibs_CXX=yes
17729
17730     if test "$GXX" = yes ; then
17731       lt_int_apple_cc_single_mod=no
17732       output_verbose_link_cmd='echo'
17733       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17734        lt_int_apple_cc_single_mod=yes
17735       fi
17736       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17737        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17738       else
17739           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'
17740         fi
17741         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17742         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17743           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17744             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}'
17745           else
17746             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}'
17747           fi
17748             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}'
17749       else
17750       case $cc_basename in
17751         xlc*)
17752          output_verbose_link_cmd='echo'
17753           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'
17754           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17755           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17756           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}'
17757           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}'
17758           ;;
17759        *)
17760          ld_shlibs_CXX=no
17761           ;;
17762       esac
17763       fi
17764         ;;
17765
17766   dgux*)
17767     case $cc_basename in
17768       ec++*)
17769         # FIXME: insert proper C++ library support
17770         ld_shlibs_CXX=no
17771         ;;
17772       ghcx*)
17773         # Green Hills C++ Compiler
17774         # FIXME: insert proper C++ library support
17775         ld_shlibs_CXX=no
17776         ;;
17777       *)
17778         # FIXME: insert proper C++ library support
17779         ld_shlibs_CXX=no
17780         ;;
17781     esac
17782     ;;
17783   freebsd[12]*)
17784     # C++ shared libraries reported to be fairly broken before switch to ELF
17785     ld_shlibs_CXX=no
17786     ;;
17787   freebsd-elf*)
17788     archive_cmds_need_lc_CXX=no
17789     ;;
17790   freebsd* | kfreebsd*-gnu | dragonfly*)
17791     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17792     # conventions
17793     ld_shlibs_CXX=yes
17794     ;;
17795   gnu*)
17796     ;;
17797   hpux9*)
17798     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17799     hardcode_libdir_separator_CXX=:
17800     export_dynamic_flag_spec_CXX='${wl}-E'
17801     hardcode_direct_CXX=yes
17802     hardcode_minus_L_CXX=yes # Not in the search PATH,
17803                                 # but as the default
17804                                 # location of the library.
17805
17806     case $cc_basename in
17807     CC*)
17808       # FIXME: insert proper C++ library support
17809       ld_shlibs_CXX=no
17810       ;;
17811     aCC*)
17812       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'
17813       # Commands to make compiler produce verbose output that lists
17814       # what "hidden" libraries, object files and flags are used when
17815       # linking a shared library.
17816       #
17817       # There doesn't appear to be a way to prevent this compiler from
17818       # explicitly linking system object files so we need to strip them
17819       # from the output so that they don't get included in the library
17820       # dependencies.
17821       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'
17822       ;;
17823     *)
17824       if test "$GXX" = yes; then
17825         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'
17826       else
17827         # FIXME: insert proper C++ library support
17828         ld_shlibs_CXX=no
17829       fi
17830       ;;
17831     esac
17832     ;;
17833   hpux10*|hpux11*)
17834     if test $with_gnu_ld = no; then
17835       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17836       hardcode_libdir_separator_CXX=:
17837
17838       case $host_cpu in
17839       hppa*64*|ia64*)
17840         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17841         ;;
17842       *)
17843         export_dynamic_flag_spec_CXX='${wl}-E'
17844         ;;
17845       esac
17846     fi
17847     case $host_cpu in
17848     hppa*64*|ia64*)
17849       hardcode_direct_CXX=no
17850       hardcode_shlibpath_var_CXX=no
17851       ;;
17852     *)
17853       hardcode_direct_CXX=yes
17854       hardcode_minus_L_CXX=yes # Not in the search PATH,
17855                                               # but as the default
17856                                               # location of the library.
17857       ;;
17858     esac
17859
17860     case $cc_basename in
17861       CC*)
17862         # FIXME: insert proper C++ library support
17863         ld_shlibs_CXX=no
17864         ;;
17865       aCC*)
17866         case $host_cpu in
17867         hppa*64*)
17868           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17869           ;;
17870         ia64*)
17871           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17872           ;;
17873         *)
17874           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17875           ;;
17876         esac
17877         # Commands to make compiler produce verbose output that lists
17878         # what "hidden" libraries, object files and flags are used when
17879         # linking a shared library.
17880         #
17881         # There doesn't appear to be a way to prevent this compiler from
17882         # explicitly linking system object files so we need to strip them
17883         # from the output so that they don't get included in the library
17884         # dependencies.
17885         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'
17886         ;;
17887       *)
17888         if test "$GXX" = yes; then
17889           if test $with_gnu_ld = no; then
17890             case $host_cpu in
17891             hppa*64*)
17892               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17893               ;;
17894             ia64*)
17895               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17896               ;;
17897             *)
17898               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'
17899               ;;
17900             esac
17901           fi
17902         else
17903           # FIXME: insert proper C++ library support
17904           ld_shlibs_CXX=no
17905         fi
17906         ;;
17907     esac
17908     ;;
17909   interix3*)
17910     hardcode_direct_CXX=no
17911     hardcode_shlibpath_var_CXX=no
17912     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17913     export_dynamic_flag_spec_CXX='${wl}-E'
17914     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17915     # Instead, shared libraries are loaded at an image base (0x10000000 by
17916     # default) and relocated if they conflict, which is a slow very memory
17917     # consuming and fragmenting process.  To avoid this, we pick a random,
17918     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17919     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17920     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'
17921     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'
17922     ;;
17923   irix5* | irix6*)
17924     case $cc_basename in
17925       CC*)
17926         # SGI C++
17927         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'
17928
17929         # Archives containing C++ object files must be created using
17930         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17931         # necessary to make sure instantiated templates are included
17932         # in the archive.
17933         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17934         ;;
17935       *)
17936         if test "$GXX" = yes; then
17937           if test "$with_gnu_ld" = no; then
17938             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'
17939           else
17940             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'
17941           fi
17942         fi
17943         link_all_deplibs_CXX=yes
17944         ;;
17945     esac
17946     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17947     hardcode_libdir_separator_CXX=:
17948     ;;
17949   linux*)
17950     case $cc_basename in
17951       KCC*)
17952         # Kuck and Associates, Inc. (KAI) C++ Compiler
17953
17954         # KCC will only create a shared library if the output file
17955         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17956         # to its proper name (with version) after linking.
17957         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'
17958         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'
17959         # Commands to make compiler produce verbose output that lists
17960         # what "hidden" libraries, object files and flags are used when
17961         # linking a shared library.
17962         #
17963         # There doesn't appear to be a way to prevent this compiler from
17964         # explicitly linking system object files so we need to strip them
17965         # from the output so that they don't get included in the library
17966         # dependencies.
17967         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'
17968
17969         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17970         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17971
17972         # Archives containing C++ object files must be created using
17973         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17974         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17975         ;;
17976       icpc*)
17977         # Intel C++
17978         with_gnu_ld=yes
17979         # version 8.0 and above of icpc choke on multiply defined symbols
17980         # if we add $predep_objects and $postdep_objects, however 7.1 and
17981         # earlier do not add the objects themselves.
17982         case `$CC -V 2>&1` in
17983         *"Version 7."*)
17984           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17985           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'
17986           ;;
17987         *)  # Version 8.0 or newer
17988           tmp_idyn=
17989           case $host_cpu in
17990             ia64*) tmp_idyn=' -i_dynamic';;
17991           esac
17992           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17993           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'
17994           ;;
17995         esac
17996         archive_cmds_need_lc_CXX=no
17997         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17998         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17999         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18000         ;;
18001       pgCC*)
18002         # Portland Group C++ compiler
18003         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18004         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'
18005
18006         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18007         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18008         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'
18009         ;;
18010       cxx*)
18011         # Compaq C++
18012         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18013         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'
18014
18015         runpath_var=LD_RUN_PATH
18016         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18017         hardcode_libdir_separator_CXX=:
18018
18019         # Commands to make compiler produce verbose output that lists
18020         # what "hidden" libraries, object files and flags are used when
18021         # linking a shared library.
18022         #
18023         # There doesn't appear to be a way to prevent this compiler from
18024         # explicitly linking system object files so we need to strip them
18025         # from the output so that they don't get included in the library
18026         # dependencies.
18027         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'
18028         ;;
18029     esac
18030     ;;
18031   lynxos*)
18032     # FIXME: insert proper C++ library support
18033     ld_shlibs_CXX=no
18034     ;;
18035   m88k*)
18036     # FIXME: insert proper C++ library support
18037     ld_shlibs_CXX=no
18038     ;;
18039   mvs*)
18040     case $cc_basename in
18041       cxx*)
18042         # FIXME: insert proper C++ library support
18043         ld_shlibs_CXX=no
18044         ;;
18045       *)
18046         # FIXME: insert proper C++ library support
18047         ld_shlibs_CXX=no
18048         ;;
18049     esac
18050     ;;
18051   netbsd*)
18052     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18053       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18054       wlarc=
18055       hardcode_libdir_flag_spec_CXX='-R$libdir'
18056       hardcode_direct_CXX=yes
18057       hardcode_shlibpath_var_CXX=no
18058     fi
18059     # Workaround some broken pre-1.5 toolchains
18060     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18061     ;;
18062   openbsd2*)
18063     # C++ shared libraries are fairly broken
18064     ld_shlibs_CXX=no
18065     ;;
18066   openbsd*)
18067     hardcode_direct_CXX=yes
18068     hardcode_shlibpath_var_CXX=no
18069     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18070     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18071     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18072       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18073       export_dynamic_flag_spec_CXX='${wl}-E'
18074       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18075     fi
18076     output_verbose_link_cmd='echo'
18077     ;;
18078   osf3*)
18079     case $cc_basename in
18080       KCC*)
18081         # Kuck and Associates, Inc. (KAI) C++ Compiler
18082
18083         # KCC will only create a shared library if the output file
18084         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18085         # to its proper name (with version) after linking.
18086         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'
18087
18088         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18089         hardcode_libdir_separator_CXX=:
18090
18091         # Archives containing C++ object files must be created using
18092         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18093         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18094
18095         ;;
18096       RCC*)
18097         # Rational C++ 2.4.1
18098         # FIXME: insert proper C++ library support
18099         ld_shlibs_CXX=no
18100         ;;
18101       cxx*)
18102         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18103         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'
18104
18105         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18106         hardcode_libdir_separator_CXX=:
18107
18108         # Commands to make compiler produce verbose output that lists
18109         # what "hidden" libraries, object files and flags are used when
18110         # linking a shared library.
18111         #
18112         # There doesn't appear to be a way to prevent this compiler from
18113         # explicitly linking system object files so we need to strip them
18114         # from the output so that they don't get included in the library
18115         # dependencies.
18116         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'
18117         ;;
18118       *)
18119         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18120           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18121           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'
18122
18123           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18124           hardcode_libdir_separator_CXX=:
18125
18126           # Commands to make compiler produce verbose output that lists
18127           # what "hidden" libraries, object files and flags are used when
18128           # linking a shared library.
18129           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18130
18131         else
18132           # FIXME: insert proper C++ library support
18133           ld_shlibs_CXX=no
18134         fi
18135         ;;
18136     esac
18137     ;;
18138   osf4* | osf5*)
18139     case $cc_basename in
18140       KCC*)
18141         # Kuck and Associates, Inc. (KAI) C++ Compiler
18142
18143         # KCC will only create a shared library if the output file
18144         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18145         # to its proper name (with version) after linking.
18146         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'
18147
18148         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18149         hardcode_libdir_separator_CXX=:
18150
18151         # Archives containing C++ object files must be created using
18152         # the KAI C++ compiler.
18153         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18154         ;;
18155       RCC*)
18156         # Rational C++ 2.4.1
18157         # FIXME: insert proper C++ library support
18158         ld_shlibs_CXX=no
18159         ;;
18160       cxx*)
18161         allow_undefined_flag_CXX=' -expect_unresolved \*'
18162         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'
18163         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18164           echo "-hidden">> $lib.exp~
18165           $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~
18166           $rm $lib.exp'
18167
18168         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18169         hardcode_libdir_separator_CXX=:
18170
18171         # Commands to make compiler produce verbose output that lists
18172         # what "hidden" libraries, object files and flags are used when
18173         # linking a shared library.
18174         #
18175         # There doesn't appear to be a way to prevent this compiler from
18176         # explicitly linking system object files so we need to strip them
18177         # from the output so that they don't get included in the library
18178         # dependencies.
18179         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'
18180         ;;
18181       *)
18182         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18183           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18184          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'
18185
18186           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18187           hardcode_libdir_separator_CXX=:
18188
18189           # Commands to make compiler produce verbose output that lists
18190           # what "hidden" libraries, object files and flags are used when
18191           # linking a shared library.
18192           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18193
18194         else
18195           # FIXME: insert proper C++ library support
18196           ld_shlibs_CXX=no
18197         fi
18198         ;;
18199     esac
18200     ;;
18201   psos*)
18202     # FIXME: insert proper C++ library support
18203     ld_shlibs_CXX=no
18204     ;;
18205   sunos4*)
18206     case $cc_basename in
18207       CC*)
18208         # Sun C++ 4.x
18209         # FIXME: insert proper C++ library support
18210         ld_shlibs_CXX=no
18211         ;;
18212       lcc*)
18213         # Lucid
18214         # FIXME: insert proper C++ library support
18215         ld_shlibs_CXX=no
18216         ;;
18217       *)
18218         # FIXME: insert proper C++ library support
18219         ld_shlibs_CXX=no
18220         ;;
18221     esac
18222     ;;
18223   solaris*)
18224     case $cc_basename in
18225       CC*)
18226         # Sun C++ 4.2, 5.x and Centerline C++
18227         archive_cmds_need_lc_CXX=yes
18228         no_undefined_flag_CXX=' -zdefs'
18229         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18230         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18231         $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'
18232
18233         hardcode_libdir_flag_spec_CXX='-R$libdir'
18234         hardcode_shlibpath_var_CXX=no
18235         case $host_os in
18236           solaris2.[0-5] | solaris2.[0-5].*) ;;
18237           *)
18238             # The C++ compiler is used as linker so we must use $wl
18239             # flag to pass the commands to the underlying system
18240             # linker. We must also pass each convience library through
18241             # to the system linker between allextract/defaultextract.
18242             # The C++ compiler will combine linker options so we
18243             # cannot just pass the convience library names through
18244             # without $wl.
18245             # Supported since Solaris 2.6 (maybe 2.5.1?)
18246             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'
18247             ;;
18248         esac
18249         link_all_deplibs_CXX=yes
18250
18251         output_verbose_link_cmd='echo'
18252
18253         # Archives containing C++ object files must be created using
18254         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18255         # necessary to make sure instantiated templates are included
18256         # in the archive.
18257         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18258         ;;
18259       gcx*)
18260         # Green Hills C++ Compiler
18261         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18262
18263         # The C++ compiler must be used to create the archive.
18264         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18265         ;;
18266       *)
18267         # GNU C++ compiler with Solaris linker
18268         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18269           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18270           if $CC --version | grep -v '^2\.7' > /dev/null; then
18271             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18272             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18273                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18274
18275             # Commands to make compiler produce verbose output that lists
18276             # what "hidden" libraries, object files and flags are used when
18277             # linking a shared library.
18278             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18279           else
18280             # g++ 2.7 appears to require `-G' NOT `-shared' on this
18281             # platform.
18282             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18283             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18284                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18285
18286             # Commands to make compiler produce verbose output that lists
18287             # what "hidden" libraries, object files and flags are used when
18288             # linking a shared library.
18289             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18290           fi
18291
18292           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18293         fi
18294         ;;
18295     esac
18296     ;;
18297   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18298     no_undefined_flag_CXX='${wl}-z,text'
18299     archive_cmds_need_lc_CXX=no
18300     hardcode_shlibpath_var_CXX=no
18301     runpath_var='LD_RUN_PATH'
18302
18303     case $cc_basename in
18304       CC*)
18305         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18306         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18307         ;;
18308       *)
18309         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18310         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18311         ;;
18312     esac
18313     ;;
18314   sysv5* | sco3.2v5* | sco5v6*)
18315     # Note: We can NOT use -z defs as we might desire, because we do not
18316     # link with -lc, and that would cause any symbols used from libc to
18317     # always be unresolved, which means just about no library would
18318     # ever link correctly.  If we're not using GNU ld we use -z text
18319     # though, which does catch some bad symbols but isn't as heavy-handed
18320     # as -z defs.
18321     # For security reasons, it is highly recommended that you always
18322     # use absolute paths for naming shared libraries, and exclude the
18323     # DT_RUNPATH tag from executables and libraries.  But doing so
18324     # requires that you compile everything twice, which is a pain.
18325     # So that behaviour is only enabled if SCOABSPATH is set to a
18326     # non-empty value in the environment.  Most likely only useful for
18327     # creating official distributions of packages.
18328     # This is a hack until libtool officially supports absolute path
18329     # names for shared libraries.
18330     no_undefined_flag_CXX='${wl}-z,text'
18331     allow_undefined_flag_CXX='${wl}-z,nodefs'
18332     archive_cmds_need_lc_CXX=no
18333     hardcode_shlibpath_var_CXX=no
18334     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18335     hardcode_libdir_separator_CXX=':'
18336     link_all_deplibs_CXX=yes
18337     export_dynamic_flag_spec_CXX='${wl}-Bexport'
18338     runpath_var='LD_RUN_PATH'
18339
18340     case $cc_basename in
18341       CC*)
18342         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18343         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18344         ;;
18345       *)
18346         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18347         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18348         ;;
18349     esac
18350     ;;
18351   tandem*)
18352     case $cc_basename in
18353       NCC*)
18354         # NonStop-UX NCC 3.20
18355         # FIXME: insert proper C++ library support
18356         ld_shlibs_CXX=no
18357         ;;
18358       *)
18359         # FIXME: insert proper C++ library support
18360         ld_shlibs_CXX=no
18361         ;;
18362     esac
18363     ;;
18364   vxworks*)
18365     # FIXME: insert proper C++ library support
18366     ld_shlibs_CXX=no
18367     ;;
18368   *)
18369     # FIXME: insert proper C++ library support
18370     ld_shlibs_CXX=no
18371     ;;
18372 esac
18373 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18374 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18375 test "$ld_shlibs_CXX" = no && can_build_shared=no
18376
18377 GCC_CXX="$GXX"
18378 LD_CXX="$LD"
18379
18380 ## CAVEAT EMPTOR:
18381 ## There is no encapsulation within the following macros, do not change
18382 ## the running order or otherwise move them around unless you know exactly
18383 ## what you are doing...
18384
18385 cat > conftest.$ac_ext <<EOF
18386 class Foo
18387 {
18388 public:
18389   Foo (void) { a = 0; }
18390 private:
18391   int a;
18392 };
18393 EOF
18394
18395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18396   (eval $ac_compile) 2>&5
18397   ac_status=$?
18398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399   (exit $ac_status); }; then
18400   # Parse the compiler output and extract the necessary
18401   # objects, libraries and library flags.
18402
18403   # Sentinel used to keep track of whether or not we are before
18404   # the conftest object file.
18405   pre_test_object_deps_done=no
18406
18407   # The `*' in the case matches for architectures that use `case' in
18408   # $output_verbose_cmd can trigger glob expansion during the loop
18409   # eval without this substitution.
18410   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18411
18412   for p in `eval $output_verbose_link_cmd`; do
18413     case $p in
18414
18415     -L* | -R* | -l*)
18416        # Some compilers place space between "-{L,R}" and the path.
18417        # Remove the space.
18418        if test $p = "-L" \
18419           || test $p = "-R"; then
18420          prev=$p
18421          continue
18422        else
18423          prev=
18424        fi
18425
18426        if test "$pre_test_object_deps_done" = no; then
18427          case $p in
18428          -L* | -R*)
18429            # Internal compiler library paths should come after those
18430            # provided the user.  The postdeps already come after the
18431            # user supplied libs so there is no need to process them.
18432            if test -z "$compiler_lib_search_path_CXX"; then
18433              compiler_lib_search_path_CXX="${prev}${p}"
18434            else
18435              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18436            fi
18437            ;;
18438          # The "-l" case would never come before the object being
18439          # linked, so don't bother handling this case.
18440          esac
18441        else
18442          if test -z "$postdeps_CXX"; then
18443            postdeps_CXX="${prev}${p}"
18444          else
18445            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18446          fi
18447        fi
18448        ;;
18449
18450     *.$objext)
18451        # This assumes that the test object file only shows up
18452        # once in the compiler output.
18453        if test "$p" = "conftest.$objext"; then
18454          pre_test_object_deps_done=yes
18455          continue
18456        fi
18457
18458        if test "$pre_test_object_deps_done" = no; then
18459          if test -z "$predep_objects_CXX"; then
18460            predep_objects_CXX="$p"
18461          else
18462            predep_objects_CXX="$predep_objects_CXX $p"
18463          fi
18464        else
18465          if test -z "$postdep_objects_CXX"; then
18466            postdep_objects_CXX="$p"
18467          else
18468            postdep_objects_CXX="$postdep_objects_CXX $p"
18469          fi
18470        fi
18471        ;;
18472
18473     *) ;; # Ignore the rest.
18474
18475     esac
18476   done
18477
18478   # Clean up.
18479   rm -f a.out a.exe
18480 else
18481   echo "libtool.m4: error: problem compiling CXX test program"
18482 fi
18483
18484 $rm -f confest.$objext
18485
18486 # PORTME: override above test on systems where it is broken
18487 case $host_os in
18488 interix3*)
18489   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18490   # hack all around it, let's just trust "g++" to DTRT.
18491   predep_objects_CXX=
18492   postdep_objects_CXX=
18493   postdeps_CXX=
18494   ;;
18495
18496 solaris*)
18497   case $cc_basename in
18498   CC*)
18499     # Adding this requires a known-good setup of shared libraries for
18500     # Sun compiler versions before 5.6, else PIC objects from an old
18501     # archive will be linked into the output, leading to subtle bugs.
18502     postdeps_CXX='-lCstd -lCrun'
18503     ;;
18504   esac
18505   ;;
18506 esac
18507
18508
18509 case " $postdeps_CXX " in
18510 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18511 esac
18512
18513 lt_prog_compiler_wl_CXX=
18514 lt_prog_compiler_pic_CXX=
18515 lt_prog_compiler_static_CXX=
18516
18517 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18518 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18519
18520   # C++ specific cases for pic, static, wl, etc.
18521   if test "$GXX" = yes; then
18522     lt_prog_compiler_wl_CXX='-Wl,'
18523     lt_prog_compiler_static_CXX='-static'
18524
18525     case $host_os in
18526     aix*)
18527       # All AIX code is PIC.
18528       if test "$host_cpu" = ia64; then
18529         # AIX 5 now supports IA64 processor
18530         lt_prog_compiler_static_CXX='-Bstatic'
18531       fi
18532       ;;
18533     amigaos*)
18534       # FIXME: we need at least 68020 code to build shared libraries, but
18535       # adding the `-m68020' flag to GCC prevents building anything better,
18536       # like `-m68040'.
18537       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18538       ;;
18539     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18540       # PIC is the default for these OSes.
18541       ;;
18542     mingw* | os2* | pw32*)
18543       # This hack is so that the source file can tell whether it is being
18544       # built for inclusion in a dll (and should export symbols for example).
18545       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18546       ;;
18547     darwin* | rhapsody*)
18548       # PIC is the default on this platform
18549       # Common symbols not allowed in MH_DYLIB files
18550       lt_prog_compiler_pic_CXX='-fno-common'
18551       ;;
18552     *djgpp*)
18553       # DJGPP does not support shared libraries at all
18554       lt_prog_compiler_pic_CXX=
18555       ;;
18556     interix3*)
18557       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18558       # Instead, we relocate shared libraries at runtime.
18559       ;;
18560     sysv4*MP*)
18561       if test -d /usr/nec; then
18562         lt_prog_compiler_pic_CXX=-Kconform_pic
18563       fi
18564       ;;
18565     hpux*)
18566       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18567       # not for PA HP-UX.
18568       case $host_cpu in
18569       hppa*64*|ia64*)
18570         ;;
18571       *)
18572         lt_prog_compiler_pic_CXX='-fPIC'
18573         ;;
18574       esac
18575       ;;
18576     *)
18577       lt_prog_compiler_pic_CXX='-fPIC'
18578       ;;
18579     esac
18580   else
18581     case $host_os in
18582       aix4* | aix5*)
18583         # All AIX code is PIC.
18584         if test "$host_cpu" = ia64; then
18585           # AIX 5 now supports IA64 processor
18586           lt_prog_compiler_static_CXX='-Bstatic'
18587         else
18588           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18589         fi
18590         ;;
18591       chorus*)
18592         case $cc_basename in
18593         cxch68*)
18594           # Green Hills C++ Compiler
18595           # _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"
18596           ;;
18597         esac
18598         ;;
18599        darwin*)
18600          # PIC is the default on this platform
18601          # Common symbols not allowed in MH_DYLIB files
18602          case $cc_basename in
18603            xlc*)
18604            lt_prog_compiler_pic_CXX='-qnocommon'
18605            lt_prog_compiler_wl_CXX='-Wl,'
18606            ;;
18607          esac
18608        ;;
18609       dgux*)
18610         case $cc_basename in
18611           ec++*)
18612             lt_prog_compiler_pic_CXX='-KPIC'
18613             ;;
18614           ghcx*)
18615             # Green Hills C++ Compiler
18616             lt_prog_compiler_pic_CXX='-pic'
18617             ;;
18618           *)
18619             ;;
18620         esac
18621         ;;
18622       freebsd* | kfreebsd*-gnu | dragonfly*)
18623         # FreeBSD uses GNU C++
18624         ;;
18625       hpux9* | hpux10* | hpux11*)
18626         case $cc_basename in
18627           CC*)
18628             lt_prog_compiler_wl_CXX='-Wl,'
18629             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18630             if test "$host_cpu" != ia64; then
18631               lt_prog_compiler_pic_CXX='+Z'
18632             fi
18633             ;;
18634           aCC*)
18635             lt_prog_compiler_wl_CXX='-Wl,'
18636             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18637             case $host_cpu in
18638             hppa*64*|ia64*)
18639               # +Z the default
18640               ;;
18641             *)
18642               lt_prog_compiler_pic_CXX='+Z'
18643               ;;
18644             esac
18645             ;;
18646           *)
18647             ;;
18648         esac
18649         ;;
18650       interix*)
18651         # This is c89, which is MS Visual C++ (no shared libs)
18652         # Anyone wants to do a port?
18653         ;;
18654       irix5* | irix6* | nonstopux*)
18655         case $cc_basename in
18656           CC*)
18657             lt_prog_compiler_wl_CXX='-Wl,'
18658             lt_prog_compiler_static_CXX='-non_shared'
18659             # CC pic flag -KPIC is the default.
18660             ;;
18661           *)
18662             ;;
18663         esac
18664         ;;
18665       linux*)
18666         case $cc_basename in
18667           KCC*)
18668             # KAI C++ Compiler
18669             lt_prog_compiler_wl_CXX='--backend -Wl,'
18670             lt_prog_compiler_pic_CXX='-fPIC'
18671             ;;
18672           icpc* | ecpc*)
18673             # Intel C++
18674             lt_prog_compiler_wl_CXX='-Wl,'
18675             lt_prog_compiler_pic_CXX='-KPIC'
18676             lt_prog_compiler_static_CXX='-static'
18677             ;;
18678           pgCC*)
18679             # Portland Group C++ compiler.
18680             lt_prog_compiler_wl_CXX='-Wl,'
18681             lt_prog_compiler_pic_CXX='-fpic'
18682             lt_prog_compiler_static_CXX='-Bstatic'
18683             ;;
18684           cxx*)
18685             # Compaq C++
18686             # Make sure the PIC flag is empty.  It appears that all Alpha
18687             # Linux and Compaq Tru64 Unix objects are PIC.
18688             lt_prog_compiler_pic_CXX=
18689             lt_prog_compiler_static_CXX='-non_shared'
18690             ;;
18691           *)
18692             ;;
18693         esac
18694         ;;
18695       lynxos*)
18696         ;;
18697       m88k*)
18698         ;;
18699       mvs*)
18700         case $cc_basename in
18701           cxx*)
18702             lt_prog_compiler_pic_CXX='-W c,exportall'
18703             ;;
18704           *)
18705             ;;
18706         esac
18707         ;;
18708       netbsd*)
18709         ;;
18710       osf3* | osf4* | osf5*)
18711         case $cc_basename in
18712           KCC*)
18713             lt_prog_compiler_wl_CXX='--backend -Wl,'
18714             ;;
18715           RCC*)
18716             # Rational C++ 2.4.1
18717             lt_prog_compiler_pic_CXX='-pic'
18718             ;;
18719           cxx*)
18720             # Digital/Compaq C++
18721             lt_prog_compiler_wl_CXX='-Wl,'
18722             # Make sure the PIC flag is empty.  It appears that all Alpha
18723             # Linux and Compaq Tru64 Unix objects are PIC.
18724             lt_prog_compiler_pic_CXX=
18725             lt_prog_compiler_static_CXX='-non_shared'
18726             ;;
18727           *)
18728             ;;
18729         esac
18730         ;;
18731       psos*)
18732         ;;
18733       solaris*)
18734         case $cc_basename in
18735           CC*)
18736             # Sun C++ 4.2, 5.x and Centerline C++
18737             lt_prog_compiler_pic_CXX='-KPIC'
18738             lt_prog_compiler_static_CXX='-Bstatic'
18739             lt_prog_compiler_wl_CXX='-Qoption ld '
18740             ;;
18741           gcx*)
18742             # Green Hills C++ Compiler
18743             lt_prog_compiler_pic_CXX='-PIC'
18744             ;;
18745           *)
18746             ;;
18747         esac
18748         ;;
18749       sunos4*)
18750         case $cc_basename in
18751           CC*)
18752             # Sun C++ 4.x
18753             lt_prog_compiler_pic_CXX='-pic'
18754             lt_prog_compiler_static_CXX='-Bstatic'
18755             ;;
18756           lcc*)
18757             # Lucid
18758             lt_prog_compiler_pic_CXX='-pic'
18759             ;;
18760           *)
18761             ;;
18762         esac
18763         ;;
18764       tandem*)
18765         case $cc_basename in
18766           NCC*)
18767             # NonStop-UX NCC 3.20
18768             lt_prog_compiler_pic_CXX='-KPIC'
18769             ;;
18770           *)
18771             ;;
18772         esac
18773         ;;
18774       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18775         case $cc_basename in
18776           CC*)
18777             lt_prog_compiler_wl_CXX='-Wl,'
18778             lt_prog_compiler_pic_CXX='-KPIC'
18779             lt_prog_compiler_static_CXX='-Bstatic'
18780             ;;
18781         esac
18782         ;;
18783       vxworks*)
18784         ;;
18785       *)
18786         lt_prog_compiler_can_build_shared_CXX=no
18787         ;;
18788     esac
18789   fi
18790
18791 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18792 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
18793
18794 #
18795 # Check to make sure the PIC flag actually works.
18796 #
18797 if test -n "$lt_prog_compiler_pic_CXX"; then
18798
18799 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18800 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
18801 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18802   echo $ECHO_N "(cached) $ECHO_C" >&6
18803 else
18804   lt_prog_compiler_pic_works_CXX=no
18805   ac_outfile=conftest.$ac_objext
18806    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18807    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18808    # Insert the option either (1) after the last *FLAGS variable, or
18809    # (2) before a word containing "conftest.", or (3) at the end.
18810    # Note that $ac_compile itself does not contain backslashes and begins
18811    # with a dollar sign (not a hyphen), so the echo should work correctly.
18812    # The option is referenced via a variable to avoid confusing sed.
18813    lt_compile=`echo "$ac_compile" | $SED \
18814    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18815    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18816    -e 's:$: $lt_compiler_flag:'`
18817    (eval echo "\"\$as_me:18817: $lt_compile\"" >&5)
18818    (eval "$lt_compile" 2>conftest.err)
18819    ac_status=$?
18820    cat conftest.err >&5
18821    echo "$as_me:18821: \$? = $ac_status" >&5
18822    if (exit $ac_status) && test -s "$ac_outfile"; then
18823      # The compiler can only warn and ignore the option if not recognized
18824      # So say no if there are warnings other than the usual output.
18825      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18826      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18827      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18828        lt_prog_compiler_pic_works_CXX=yes
18829      fi
18830    fi
18831    $rm conftest*
18832
18833 fi
18834 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18835 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
18836
18837 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18838     case $lt_prog_compiler_pic_CXX in
18839      "" | " "*) ;;
18840      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18841      esac
18842 else
18843     lt_prog_compiler_pic_CXX=
18844      lt_prog_compiler_can_build_shared_CXX=no
18845 fi
18846
18847 fi
18848 case $host_os in
18849   # For platforms which do not support PIC, -DPIC is meaningless:
18850   *djgpp*)
18851     lt_prog_compiler_pic_CXX=
18852     ;;
18853   *)
18854     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18855     ;;
18856 esac
18857
18858 #
18859 # Check to make sure the static flag actually works.
18860 #
18861 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18862 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18863 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18864 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18865   echo $ECHO_N "(cached) $ECHO_C" >&6
18866 else
18867   lt_prog_compiler_static_works_CXX=no
18868    save_LDFLAGS="$LDFLAGS"
18869    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18870    printf "$lt_simple_link_test_code" > conftest.$ac_ext
18871    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18872      # The linker can only warn and ignore the option if not recognized
18873      # So say no if there are warnings
18874      if test -s conftest.err; then
18875        # Append any errors to the config.log.
18876        cat conftest.err 1>&5
18877        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18878        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18879        if diff conftest.exp conftest.er2 >/dev/null; then
18880          lt_prog_compiler_static_works_CXX=yes
18881        fi
18882      else
18883        lt_prog_compiler_static_works_CXX=yes
18884      fi
18885    fi
18886    $rm conftest*
18887    LDFLAGS="$save_LDFLAGS"
18888
18889 fi
18890 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18891 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18892
18893 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18894     :
18895 else
18896     lt_prog_compiler_static_CXX=
18897 fi
18898
18899
18900 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18901 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18902 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18903   echo $ECHO_N "(cached) $ECHO_C" >&6
18904 else
18905   lt_cv_prog_compiler_c_o_CXX=no
18906    $rm -r conftest 2>/dev/null
18907    mkdir conftest
18908    cd conftest
18909    mkdir out
18910    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18911
18912    lt_compiler_flag="-o out/conftest2.$ac_objext"
18913    # Insert the option either (1) after the last *FLAGS variable, or
18914    # (2) before a word containing "conftest.", or (3) at the end.
18915    # Note that $ac_compile itself does not contain backslashes and begins
18916    # with a dollar sign (not a hyphen), so the echo should work correctly.
18917    lt_compile=`echo "$ac_compile" | $SED \
18918    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18919    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18920    -e 's:$: $lt_compiler_flag:'`
18921    (eval echo "\"\$as_me:18921: $lt_compile\"" >&5)
18922    (eval "$lt_compile" 2>out/conftest.err)
18923    ac_status=$?
18924    cat out/conftest.err >&5
18925    echo "$as_me:18925: \$? = $ac_status" >&5
18926    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18927    then
18928      # The compiler can only warn and ignore the option if not recognized
18929      # So say no if there are warnings
18930      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18931      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18932      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18933        lt_cv_prog_compiler_c_o_CXX=yes
18934      fi
18935    fi
18936    chmod u+w . 2>&5
18937    $rm conftest*
18938    # SGI C++ compiler will create directory out/ii_files/ for
18939    # template instantiation
18940    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18941    $rm out/* && rmdir out
18942    cd ..
18943    rmdir conftest
18944    $rm conftest*
18945
18946 fi
18947 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18948 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
18949
18950
18951 hard_links="nottested"
18952 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18953   # do not overwrite the value of need_locks provided by the user
18954   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18955 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18956   hard_links=yes
18957   $rm conftest*
18958   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18959   touch conftest.a
18960   ln conftest.a conftest.b 2>&5 || hard_links=no
18961   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18962   { echo "$as_me:$LINENO: result: $hard_links" >&5
18963 echo "${ECHO_T}$hard_links" >&6; }
18964   if test "$hard_links" = no; then
18965     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18966 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18967     need_locks=warn
18968   fi
18969 else
18970   need_locks=no
18971 fi
18972
18973 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18974 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18975
18976   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18977   case $host_os in
18978   aix4* | aix5*)
18979     # If we're using GNU nm, then we don't want the "-C" option.
18980     # -C means demangle to AIX nm, but means don't demangle with GNU nm
18981     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18982       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'
18983     else
18984       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'
18985     fi
18986     ;;
18987   pw32*)
18988     export_symbols_cmds_CXX="$ltdll_cmds"
18989   ;;
18990   cygwin* | mingw*)
18991     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'
18992   ;;
18993   *)
18994     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18995   ;;
18996   esac
18997
18998 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18999 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19000 test "$ld_shlibs_CXX" = no && can_build_shared=no
19001
19002 #
19003 # Do we need to explicitly link libc?
19004 #
19005 case "x$archive_cmds_need_lc_CXX" in
19006 x|xyes)
19007   # Assume -lc should be added
19008   archive_cmds_need_lc_CXX=yes
19009
19010   if test "$enable_shared" = yes && test "$GCC" = yes; then
19011     case $archive_cmds_CXX in
19012     *'~'*)
19013       # FIXME: we may have to deal with multi-command sequences.
19014       ;;
19015     '$CC '*)
19016       # Test whether the compiler implicitly links with -lc since on some
19017       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19018       # to ld, don't add -lc before -lgcc.
19019       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19020 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19021       $rm conftest*
19022       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19023
19024       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19025   (eval $ac_compile) 2>&5
19026   ac_status=$?
19027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028   (exit $ac_status); } 2>conftest.err; then
19029         soname=conftest
19030         lib=conftest
19031         libobjs=conftest.$ac_objext
19032         deplibs=
19033         wl=$lt_prog_compiler_wl_CXX
19034         pic_flag=$lt_prog_compiler_pic_CXX
19035         compiler_flags=-v
19036         linker_flags=-v
19037         verstring=
19038         output_objdir=.
19039         libname=conftest
19040         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19041         allow_undefined_flag_CXX=
19042         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19043   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19044   ac_status=$?
19045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046   (exit $ac_status); }
19047         then
19048           archive_cmds_need_lc_CXX=no
19049         else
19050           archive_cmds_need_lc_CXX=yes
19051         fi
19052         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19053       else
19054         cat conftest.err 1>&5
19055       fi
19056       $rm conftest*
19057       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19058 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19059       ;;
19060     esac
19061   fi
19062   ;;
19063 esac
19064
19065 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19066 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19067 library_names_spec=
19068 libname_spec='lib$name'
19069 soname_spec=
19070 shrext_cmds=".so"
19071 postinstall_cmds=
19072 postuninstall_cmds=
19073 finish_cmds=
19074 finish_eval=
19075 shlibpath_var=
19076 shlibpath_overrides_runpath=unknown
19077 version_type=none
19078 dynamic_linker="$host_os ld.so"
19079 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19080 if test "$GCC" = yes; then
19081   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19082   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19083     # if the path contains ";" then we assume it to be the separator
19084     # otherwise default to the standard path separator (i.e. ":") - it is
19085     # assumed that no part of a normal pathname contains ";" but that should
19086     # okay in the real world where ";" in dirpaths is itself problematic.
19087     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19088   else
19089     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19090   fi
19091 else
19092   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19093 fi
19094 need_lib_prefix=unknown
19095 hardcode_into_libs=no
19096
19097 # when you set need_version to no, make sure it does not cause -set_version
19098 # flags to be left without arguments
19099 need_version=unknown
19100
19101 case $host_os in
19102 aix3*)
19103   version_type=linux
19104   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19105   shlibpath_var=LIBPATH
19106
19107   # AIX 3 has no versioning support, so we append a major version to the name.
19108   soname_spec='${libname}${release}${shared_ext}$major'
19109   ;;
19110
19111 aix4* | aix5*)
19112   version_type=linux
19113   need_lib_prefix=no
19114   need_version=no
19115   hardcode_into_libs=yes
19116   if test "$host_cpu" = ia64; then
19117     # AIX 5 supports IA64
19118     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19119     shlibpath_var=LD_LIBRARY_PATH
19120   else
19121     # With GCC up to 2.95.x, collect2 would create an import file
19122     # for dependence libraries.  The import file would start with
19123     # the line `#! .'.  This would cause the generated library to
19124     # depend on `.', always an invalid library.  This was fixed in
19125     # development snapshots of GCC prior to 3.0.
19126     case $host_os in
19127       aix4 | aix4.[01] | aix4.[01].*)
19128       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19129            echo ' yes '
19130            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19131         :
19132       else
19133         can_build_shared=no
19134       fi
19135       ;;
19136     esac
19137     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19138     # soname into executable. Probably we can add versioning support to
19139     # collect2, so additional links can be useful in future.
19140     if test "$aix_use_runtimelinking" = yes; then
19141       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19142       # instead of lib<name>.a to let people know that these are not
19143       # typical AIX shared libraries.
19144       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19145     else
19146       # We preserve .a as extension for shared libraries through AIX4.2
19147       # and later when we are not doing run time linking.
19148       library_names_spec='${libname}${release}.a $libname.a'
19149       soname_spec='${libname}${release}${shared_ext}$major'
19150     fi
19151     shlibpath_var=LIBPATH
19152   fi
19153   ;;
19154
19155 amigaos*)
19156   library_names_spec='$libname.ixlibrary $libname.a'
19157   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19158   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'
19159   ;;
19160
19161 beos*)
19162   library_names_spec='${libname}${shared_ext}'
19163   dynamic_linker="$host_os ld.so"
19164   shlibpath_var=LIBRARY_PATH
19165   ;;
19166
19167 bsdi[45]*)
19168   version_type=linux
19169   need_version=no
19170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19171   soname_spec='${libname}${release}${shared_ext}$major'
19172   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19173   shlibpath_var=LD_LIBRARY_PATH
19174   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19175   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19176   # the default ld.so.conf also contains /usr/contrib/lib and
19177   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19178   # libtool to hard-code these into programs
19179   ;;
19180
19181 cygwin* | mingw* | pw32*)
19182   version_type=windows
19183   shrext_cmds=".dll"
19184   need_version=no
19185   need_lib_prefix=no
19186
19187   case $GCC,$host_os in
19188   yes,cygwin* | yes,mingw* | yes,pw32*)
19189     library_names_spec='$libname.dll.a'
19190     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19191     postinstall_cmds='base_file=`basename \${file}`~
19192       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19193       dldir=$destdir/`dirname \$dlpath`~
19194       test -d \$dldir || mkdir -p \$dldir~
19195       $install_prog $dir/$dlname \$dldir/$dlname~
19196       chmod a+x \$dldir/$dlname'
19197     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19198       dlpath=$dir/\$dldll~
19199        $rm \$dlpath'
19200     shlibpath_overrides_runpath=yes
19201
19202     case $host_os in
19203     cygwin*)
19204       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19205       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19206       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19207       ;;
19208     mingw*)
19209       # MinGW DLLs use traditional 'lib' prefix
19210       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19211       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19212       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19213         # It is most probably a Windows format PATH printed by
19214         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19215         # path with ; separators, and with drive letters. We can handle the
19216         # drive letters (cygwin fileutils understands them), so leave them,
19217         # especially as we might pass files found there to a mingw objdump,
19218         # which wouldn't understand a cygwinified path. Ahh.
19219         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19220       else
19221         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19222       fi
19223       ;;
19224     pw32*)
19225       # pw32 DLLs use 'pw' prefix rather than 'lib'
19226       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19227       ;;
19228     esac
19229     ;;
19230
19231   *)
19232     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19233     ;;
19234   esac
19235   dynamic_linker='Win32 ld.exe'
19236   # FIXME: first we should search . and the directory the executable is in
19237   shlibpath_var=PATH
19238   ;;
19239
19240 darwin* | rhapsody*)
19241   dynamic_linker="$host_os dyld"
19242   version_type=darwin
19243   need_lib_prefix=no
19244   need_version=no
19245   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19246   soname_spec='${libname}${release}${major}$shared_ext'
19247   shlibpath_overrides_runpath=yes
19248   shlibpath_var=DYLD_LIBRARY_PATH
19249   shrext_cmds='.dylib'
19250   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19251   if test "$GCC" = yes; then
19252     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"`
19253   else
19254     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19255   fi
19256   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19257   ;;
19258
19259 dgux*)
19260   version_type=linux
19261   need_lib_prefix=no
19262   need_version=no
19263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19264   soname_spec='${libname}${release}${shared_ext}$major'
19265   shlibpath_var=LD_LIBRARY_PATH
19266   ;;
19267
19268 freebsd1*)
19269   dynamic_linker=no
19270   ;;
19271
19272 kfreebsd*-gnu)
19273   version_type=linux
19274   need_lib_prefix=no
19275   need_version=no
19276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19277   soname_spec='${libname}${release}${shared_ext}$major'
19278   shlibpath_var=LD_LIBRARY_PATH
19279   shlibpath_overrides_runpath=no
19280   hardcode_into_libs=yes
19281   dynamic_linker='GNU ld.so'
19282   ;;
19283
19284 freebsd* | dragonfly*)
19285   # DragonFly does not have aout.  When/if they implement a new
19286   # versioning mechanism, adjust this.
19287   if test -x /usr/bin/objformat; then
19288     objformat=`/usr/bin/objformat`
19289   else
19290     case $host_os in
19291     freebsd[123]*) objformat=aout ;;
19292     *) objformat=elf ;;
19293     esac
19294   fi
19295   version_type=freebsd-$objformat
19296   case $version_type in
19297     freebsd-elf*)
19298       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19299       need_version=no
19300       need_lib_prefix=no
19301       ;;
19302     freebsd-*)
19303       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19304       need_version=yes
19305       ;;
19306   esac
19307   shlibpath_var=LD_LIBRARY_PATH
19308   case $host_os in
19309   freebsd2*)
19310     shlibpath_overrides_runpath=yes
19311     ;;
19312   freebsd3.[01]* | freebsdelf3.[01]*)
19313     shlibpath_overrides_runpath=yes
19314     hardcode_into_libs=yes
19315     ;;
19316   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19317   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19318     shlibpath_overrides_runpath=no
19319     hardcode_into_libs=yes
19320     ;;
19321   freebsd*) # from 4.6 on
19322     shlibpath_overrides_runpath=yes
19323     hardcode_into_libs=yes
19324     ;;
19325   esac
19326   ;;
19327
19328 gnu*)
19329   version_type=linux
19330   need_lib_prefix=no
19331   need_version=no
19332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19333   soname_spec='${libname}${release}${shared_ext}$major'
19334   shlibpath_var=LD_LIBRARY_PATH
19335   hardcode_into_libs=yes
19336   ;;
19337
19338 hpux9* | hpux10* | hpux11*)
19339   # Give a soname corresponding to the major version so that dld.sl refuses to
19340   # link against other versions.
19341   version_type=sunos
19342   need_lib_prefix=no
19343   need_version=no
19344   case $host_cpu in
19345   ia64*)
19346     shrext_cmds='.so'
19347     hardcode_into_libs=yes
19348     dynamic_linker="$host_os dld.so"
19349     shlibpath_var=LD_LIBRARY_PATH
19350     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19351     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19352     soname_spec='${libname}${release}${shared_ext}$major'
19353     if test "X$HPUX_IA64_MODE" = X32; then
19354       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19355     else
19356       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19357     fi
19358     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19359     ;;
19360    hppa*64*)
19361      shrext_cmds='.sl'
19362      hardcode_into_libs=yes
19363      dynamic_linker="$host_os dld.sl"
19364      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19365      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19366      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19367      soname_spec='${libname}${release}${shared_ext}$major'
19368      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19369      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19370      ;;
19371    *)
19372     shrext_cmds='.sl'
19373     dynamic_linker="$host_os dld.sl"
19374     shlibpath_var=SHLIB_PATH
19375     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19376     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19377     soname_spec='${libname}${release}${shared_ext}$major'
19378     ;;
19379   esac
19380   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19381   postinstall_cmds='chmod 555 $lib'
19382   ;;
19383
19384 interix3*)
19385   version_type=linux
19386   need_lib_prefix=no
19387   need_version=no
19388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19389   soname_spec='${libname}${release}${shared_ext}$major'
19390   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19391   shlibpath_var=LD_LIBRARY_PATH
19392   shlibpath_overrides_runpath=no
19393   hardcode_into_libs=yes
19394   ;;
19395
19396 irix5* | irix6* | nonstopux*)
19397   case $host_os in
19398     nonstopux*) version_type=nonstopux ;;
19399     *)
19400         if test "$lt_cv_prog_gnu_ld" = yes; then
19401                 version_type=linux
19402         else
19403                 version_type=irix
19404         fi ;;
19405   esac
19406   need_lib_prefix=no
19407   need_version=no
19408   soname_spec='${libname}${release}${shared_ext}$major'
19409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19410   case $host_os in
19411   irix5* | nonstopux*)
19412     libsuff= shlibsuff=
19413     ;;
19414   *)
19415     case $LD in # libtool.m4 will add one of these switches to LD
19416     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19417       libsuff= shlibsuff= libmagic=32-bit;;
19418     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19419       libsuff=32 shlibsuff=N32 libmagic=N32;;
19420     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19421       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19422     *) libsuff= shlibsuff= libmagic=never-match;;
19423     esac
19424     ;;
19425   esac
19426   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19427   shlibpath_overrides_runpath=no
19428   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19429   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19430   hardcode_into_libs=yes
19431   ;;
19432
19433 # No shared lib support for Linux oldld, aout, or coff.
19434 linux*oldld* | linux*aout* | linux*coff*)
19435   dynamic_linker=no
19436   ;;
19437
19438 # This must be Linux ELF.
19439 linux*)
19440   version_type=linux
19441   need_lib_prefix=no
19442   need_version=no
19443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19444   soname_spec='${libname}${release}${shared_ext}$major'
19445   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19446   shlibpath_var=LD_LIBRARY_PATH
19447   shlibpath_overrides_runpath=no
19448   # This implies no fast_install, which is unacceptable.
19449   # Some rework will be needed to allow for fast_install
19450   # before this can be enabled.
19451   hardcode_into_libs=yes
19452
19453   # Append ld.so.conf contents to the search path
19454   if test -f /etc/ld.so.conf; then
19455     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' ' '`
19456     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19457   fi
19458
19459   # We used to test for /lib/ld.so.1 and disable shared libraries on
19460   # powerpc, because MkLinux only supported shared libraries with the
19461   # GNU dynamic linker.  Since this was broken with cross compilers,
19462   # most powerpc-linux boxes support dynamic linking these days and
19463   # people can always --disable-shared, the test was removed, and we
19464   # assume the GNU/Linux dynamic linker is in use.
19465   dynamic_linker='GNU/Linux ld.so'
19466   ;;
19467
19468 knetbsd*-gnu)
19469   version_type=linux
19470   need_lib_prefix=no
19471   need_version=no
19472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19473   soname_spec='${libname}${release}${shared_ext}$major'
19474   shlibpath_var=LD_LIBRARY_PATH
19475   shlibpath_overrides_runpath=no
19476   hardcode_into_libs=yes
19477   dynamic_linker='GNU ld.so'
19478   ;;
19479
19480 netbsd*)
19481   version_type=sunos
19482   need_lib_prefix=no
19483   need_version=no
19484   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19485     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19486     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19487     dynamic_linker='NetBSD (a.out) ld.so'
19488   else
19489     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19490     soname_spec='${libname}${release}${shared_ext}$major'
19491     dynamic_linker='NetBSD ld.elf_so'
19492   fi
19493   shlibpath_var=LD_LIBRARY_PATH
19494   shlibpath_overrides_runpath=yes
19495   hardcode_into_libs=yes
19496   ;;
19497
19498 newsos6)
19499   version_type=linux
19500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19501   shlibpath_var=LD_LIBRARY_PATH
19502   shlibpath_overrides_runpath=yes
19503   ;;
19504
19505 nto-qnx*)
19506   version_type=linux
19507   need_lib_prefix=no
19508   need_version=no
19509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19510   soname_spec='${libname}${release}${shared_ext}$major'
19511   shlibpath_var=LD_LIBRARY_PATH
19512   shlibpath_overrides_runpath=yes
19513   ;;
19514
19515 openbsd*)
19516   version_type=sunos
19517   sys_lib_dlsearch_path_spec="/usr/lib"
19518   need_lib_prefix=no
19519   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19520   case $host_os in
19521     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19522     *)                         need_version=no  ;;
19523   esac
19524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19525   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19526   shlibpath_var=LD_LIBRARY_PATH
19527   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19528     case $host_os in
19529       openbsd2.[89] | openbsd2.[89].*)
19530         shlibpath_overrides_runpath=no
19531         ;;
19532       *)
19533         shlibpath_overrides_runpath=yes
19534         ;;
19535       esac
19536   else
19537     shlibpath_overrides_runpath=yes
19538   fi
19539   ;;
19540
19541 os2*)
19542   libname_spec='$name'
19543   shrext_cmds=".dll"
19544   need_lib_prefix=no
19545   library_names_spec='$libname${shared_ext} $libname.a'
19546   dynamic_linker='OS/2 ld.exe'
19547   shlibpath_var=LIBPATH
19548   ;;
19549
19550 osf3* | osf4* | osf5*)
19551   version_type=osf
19552   need_lib_prefix=no
19553   need_version=no
19554   soname_spec='${libname}${release}${shared_ext}$major'
19555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19556   shlibpath_var=LD_LIBRARY_PATH
19557   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19558   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19559   ;;
19560
19561 solaris*)
19562   version_type=linux
19563   need_lib_prefix=no
19564   need_version=no
19565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19566   soname_spec='${libname}${release}${shared_ext}$major'
19567   shlibpath_var=LD_LIBRARY_PATH
19568   shlibpath_overrides_runpath=yes
19569   hardcode_into_libs=yes
19570   # ldd complains unless libraries are executable
19571   postinstall_cmds='chmod +x $lib'
19572   ;;
19573
19574 sunos4*)
19575   version_type=sunos
19576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19577   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19578   shlibpath_var=LD_LIBRARY_PATH
19579   shlibpath_overrides_runpath=yes
19580   if test "$with_gnu_ld" = yes; then
19581     need_lib_prefix=no
19582   fi
19583   need_version=yes
19584   ;;
19585
19586 sysv4 | sysv4.3*)
19587   version_type=linux
19588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19589   soname_spec='${libname}${release}${shared_ext}$major'
19590   shlibpath_var=LD_LIBRARY_PATH
19591   case $host_vendor in
19592     sni)
19593       shlibpath_overrides_runpath=no
19594       need_lib_prefix=no
19595       export_dynamic_flag_spec='${wl}-Blargedynsym'
19596       runpath_var=LD_RUN_PATH
19597       ;;
19598     siemens)
19599       need_lib_prefix=no
19600       ;;
19601     motorola)
19602       need_lib_prefix=no
19603       need_version=no
19604       shlibpath_overrides_runpath=no
19605       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19606       ;;
19607   esac
19608   ;;
19609
19610 sysv4*MP*)
19611   if test -d /usr/nec ;then
19612     version_type=linux
19613     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19614     soname_spec='$libname${shared_ext}.$major'
19615     shlibpath_var=LD_LIBRARY_PATH
19616   fi
19617   ;;
19618
19619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19620   version_type=freebsd-elf
19621   need_lib_prefix=no
19622   need_version=no
19623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19624   soname_spec='${libname}${release}${shared_ext}$major'
19625   shlibpath_var=LD_LIBRARY_PATH
19626   hardcode_into_libs=yes
19627   if test "$with_gnu_ld" = yes; then
19628     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19629     shlibpath_overrides_runpath=no
19630   else
19631     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19632     shlibpath_overrides_runpath=yes
19633     case $host_os in
19634       sco3.2v5*)
19635         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19636         ;;
19637     esac
19638   fi
19639   sys_lib_dlsearch_path_spec='/usr/lib'
19640   ;;
19641
19642 uts4*)
19643   version_type=linux
19644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19645   soname_spec='${libname}${release}${shared_ext}$major'
19646   shlibpath_var=LD_LIBRARY_PATH
19647   ;;
19648
19649 *)
19650   dynamic_linker=no
19651   ;;
19652 esac
19653 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19654 echo "${ECHO_T}$dynamic_linker" >&6; }
19655 test "$dynamic_linker" = no && can_build_shared=no
19656
19657 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19658 if test "$GCC" = yes; then
19659   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19660 fi
19661
19662 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19663 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19664 hardcode_action_CXX=
19665 if test -n "$hardcode_libdir_flag_spec_CXX" || \
19666    test -n "$runpath_var_CXX" || \
19667    test "X$hardcode_automatic_CXX" = "Xyes" ; then
19668
19669   # We can hardcode non-existant directories.
19670   if test "$hardcode_direct_CXX" != no &&
19671      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19672      # have to relink, otherwise we might link with an installed library
19673      # when we should be linking with a yet-to-be-installed one
19674      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19675      test "$hardcode_minus_L_CXX" != no; then
19676     # Linking always hardcodes the temporary library directory.
19677     hardcode_action_CXX=relink
19678   else
19679     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19680     hardcode_action_CXX=immediate
19681   fi
19682 else
19683   # We cannot hardcode anything, or else we can only hardcode existing
19684   # directories.
19685   hardcode_action_CXX=unsupported
19686 fi
19687 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19688 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
19689
19690 if test "$hardcode_action_CXX" = relink; then
19691   # Fast installation is not supported
19692   enable_fast_install=no
19693 elif test "$shlibpath_overrides_runpath" = yes ||
19694      test "$enable_shared" = no; then
19695   # Fast installation is not necessary
19696   enable_fast_install=needless
19697 fi
19698
19699
19700 # The else clause should only fire when bootstrapping the
19701 # libtool distribution, otherwise you forgot to ship ltmain.sh
19702 # with your package, and you will get complaints that there are
19703 # no rules to generate ltmain.sh.
19704 if test -f "$ltmain"; then
19705   # See if we are running on zsh, and set the options which allow our commands through
19706   # without removal of \ escapes.
19707   if test -n "${ZSH_VERSION+set}" ; then
19708     setopt NO_GLOB_SUBST
19709   fi
19710   # Now quote all the things that may contain metacharacters while being
19711   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19712   # variables and quote the copies for generation of the libtool script.
19713   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19714     SED SHELL STRIP \
19715     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19716     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19717     deplibs_check_method reload_flag reload_cmds need_locks \
19718     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19719     lt_cv_sys_global_symbol_to_c_name_address \
19720     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19721     old_postinstall_cmds old_postuninstall_cmds \
19722     compiler_CXX \
19723     CC_CXX \
19724     LD_CXX \
19725     lt_prog_compiler_wl_CXX \
19726     lt_prog_compiler_pic_CXX \
19727     lt_prog_compiler_static_CXX \
19728     lt_prog_compiler_no_builtin_flag_CXX \
19729     export_dynamic_flag_spec_CXX \
19730     thread_safe_flag_spec_CXX \
19731     whole_archive_flag_spec_CXX \
19732     enable_shared_with_static_runtimes_CXX \
19733     old_archive_cmds_CXX \
19734     old_archive_from_new_cmds_CXX \
19735     predep_objects_CXX \
19736     postdep_objects_CXX \
19737     predeps_CXX \
19738     postdeps_CXX \
19739     compiler_lib_search_path_CXX \
19740     archive_cmds_CXX \
19741     archive_expsym_cmds_CXX \
19742     postinstall_cmds_CXX \
19743     postuninstall_cmds_CXX \
19744     old_archive_from_expsyms_cmds_CXX \
19745     allow_undefined_flag_CXX \
19746     no_undefined_flag_CXX \
19747     export_symbols_cmds_CXX \
19748     hardcode_libdir_flag_spec_CXX \
19749     hardcode_libdir_flag_spec_ld_CXX \
19750     hardcode_libdir_separator_CXX \
19751     hardcode_automatic_CXX \
19752     module_cmds_CXX \
19753     module_expsym_cmds_CXX \
19754     lt_cv_prog_compiler_c_o_CXX \
19755     exclude_expsyms_CXX \
19756     include_expsyms_CXX; do
19757
19758     case $var in
19759     old_archive_cmds_CXX | \
19760     old_archive_from_new_cmds_CXX | \
19761     archive_cmds_CXX | \
19762     archive_expsym_cmds_CXX | \
19763     module_cmds_CXX | \
19764     module_expsym_cmds_CXX | \
19765     old_archive_from_expsyms_cmds_CXX | \
19766     export_symbols_cmds_CXX | \
19767     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19768     postinstall_cmds | postuninstall_cmds | \
19769     old_postinstall_cmds | old_postuninstall_cmds | \
19770     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19771       # Double-quote double-evaled strings.
19772       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19773       ;;
19774     *)
19775       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19776       ;;
19777     esac
19778   done
19779
19780   case $lt_echo in
19781   *'\$0 --fallback-echo"')
19782     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19783     ;;
19784   esac
19785
19786 cfgfile="$ofile"
19787
19788   cat <<__EOF__ >> "$cfgfile"
19789 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19790
19791 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19792
19793 # Shell to use when invoking shell scripts.
19794 SHELL=$lt_SHELL
19795
19796 # Whether or not to build shared libraries.
19797 build_libtool_libs=$enable_shared
19798
19799 # Whether or not to build static libraries.
19800 build_old_libs=$enable_static
19801
19802 # Whether or not to add -lc for building shared libraries.
19803 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19804
19805 # Whether or not to disallow shared libs when runtime libs are static
19806 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19807
19808 # Whether or not to optimize for fast installation.
19809 fast_install=$enable_fast_install
19810
19811 # The host system.
19812 host_alias=$host_alias
19813 host=$host
19814 host_os=$host_os
19815
19816 # The build system.
19817 build_alias=$build_alias
19818 build=$build
19819 build_os=$build_os
19820
19821 # An echo program that does not interpret backslashes.
19822 echo=$lt_echo
19823
19824 # The archiver.
19825 AR=$lt_AR
19826 AR_FLAGS=$lt_AR_FLAGS
19827
19828 # A C compiler.
19829 LTCC=$lt_LTCC
19830
19831 # LTCC compiler flags.
19832 LTCFLAGS=$lt_LTCFLAGS
19833
19834 # A language-specific compiler.
19835 CC=$lt_compiler_CXX
19836
19837 # Is the compiler the GNU C compiler?
19838 with_gcc=$GCC_CXX
19839
19840 # An ERE matcher.
19841 EGREP=$lt_EGREP
19842
19843 # The linker used to build libraries.
19844 LD=$lt_LD_CXX
19845
19846 # Whether we need hard or soft links.
19847 LN_S=$lt_LN_S
19848
19849 # A BSD-compatible nm program.
19850 NM=$lt_NM
19851
19852 # A symbol stripping program
19853 STRIP=$lt_STRIP
19854
19855 # Used to examine libraries when file_magic_cmd begins "file"
19856 MAGIC_CMD=$MAGIC_CMD
19857
19858 # Used on cygwin: DLL creation program.
19859 DLLTOOL="$DLLTOOL"
19860
19861 # Used on cygwin: object dumper.
19862 OBJDUMP="$OBJDUMP"
19863
19864 # Used on cygwin: assembler.
19865 AS="$AS"
19866
19867 # The name of the directory that contains temporary libtool files.
19868 objdir=$objdir
19869
19870 # How to create reloadable object files.
19871 reload_flag=$lt_reload_flag
19872 reload_cmds=$lt_reload_cmds
19873
19874 # How to pass a linker flag through the compiler.
19875 wl=$lt_lt_prog_compiler_wl_CXX
19876
19877 # Object file suffix (normally "o").
19878 objext="$ac_objext"
19879
19880 # Old archive suffix (normally "a").
19881 libext="$libext"
19882
19883 # Shared library suffix (normally ".so").
19884 shrext_cmds='$shrext_cmds'
19885
19886 # Executable file suffix (normally "").
19887 exeext="$exeext"
19888
19889 # Additional compiler flags for building library objects.
19890 pic_flag=$lt_lt_prog_compiler_pic_CXX
19891 pic_mode=$pic_mode
19892
19893 # What is the maximum length of a command?
19894 max_cmd_len=$lt_cv_sys_max_cmd_len
19895
19896 # Does compiler simultaneously support -c and -o options?
19897 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19898
19899 # Must we lock files when doing compilation?
19900 need_locks=$lt_need_locks
19901
19902 # Do we need the lib prefix for modules?
19903 need_lib_prefix=$need_lib_prefix
19904
19905 # Do we need a version for libraries?
19906 need_version=$need_version
19907
19908 # Whether dlopen is supported.
19909 dlopen_support=$enable_dlopen
19910
19911 # Whether dlopen of programs is supported.
19912 dlopen_self=$enable_dlopen_self
19913
19914 # Whether dlopen of statically linked programs is supported.
19915 dlopen_self_static=$enable_dlopen_self_static
19916
19917 # Compiler flag to prevent dynamic linking.
19918 link_static_flag=$lt_lt_prog_compiler_static_CXX
19919
19920 # Compiler flag to turn off builtin functions.
19921 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19922
19923 # Compiler flag to allow reflexive dlopens.
19924 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19925
19926 # Compiler flag to generate shared objects directly from archives.
19927 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19928
19929 # Compiler flag to generate thread-safe objects.
19930 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19931
19932 # Library versioning type.
19933 version_type=$version_type
19934
19935 # Format of library name prefix.
19936 libname_spec=$lt_libname_spec
19937
19938 # List of archive names.  First name is the real one, the rest are links.
19939 # The last name is the one that the linker finds with -lNAME.
19940 library_names_spec=$lt_library_names_spec
19941
19942 # The coded name of the library, if different from the real name.
19943 soname_spec=$lt_soname_spec
19944
19945 # Commands used to build and install an old-style archive.
19946 RANLIB=$lt_RANLIB
19947 old_archive_cmds=$lt_old_archive_cmds_CXX
19948 old_postinstall_cmds=$lt_old_postinstall_cmds
19949 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19950
19951 # Create an old-style archive from a shared archive.
19952 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19953
19954 # Create a temporary old-style archive to link instead of a shared archive.
19955 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19956
19957 # Commands used to build and install a shared archive.
19958 archive_cmds=$lt_archive_cmds_CXX
19959 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19960 postinstall_cmds=$lt_postinstall_cmds
19961 postuninstall_cmds=$lt_postuninstall_cmds
19962
19963 # Commands used to build a loadable module (assumed same as above if empty)
19964 module_cmds=$lt_module_cmds_CXX
19965 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19966
19967 # Commands to strip libraries.
19968 old_striplib=$lt_old_striplib
19969 striplib=$lt_striplib
19970
19971 # Dependencies to place before the objects being linked to create a
19972 # shared library.
19973 predep_objects=$lt_predep_objects_CXX
19974
19975 # Dependencies to place after the objects being linked to create a
19976 # shared library.
19977 postdep_objects=$lt_postdep_objects_CXX
19978
19979 # Dependencies to place before the objects being linked to create a
19980 # shared library.
19981 predeps=$lt_predeps_CXX
19982
19983 # Dependencies to place after the objects being linked to create a
19984 # shared library.
19985 postdeps=$lt_postdeps_CXX
19986
19987 # The library search path used internally by the compiler when linking
19988 # a shared library.
19989 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19990
19991 # Method to check whether dependent libraries are shared objects.
19992 deplibs_check_method=$lt_deplibs_check_method
19993
19994 # Command to use when deplibs_check_method == file_magic.
19995 file_magic_cmd=$lt_file_magic_cmd
19996
19997 # Flag that allows shared libraries with undefined symbols to be built.
19998 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19999
20000 # Flag that forces no undefined symbols.
20001 no_undefined_flag=$lt_no_undefined_flag_CXX
20002
20003 # Commands used to finish a libtool library installation in a directory.
20004 finish_cmds=$lt_finish_cmds
20005
20006 # Same as above, but a single script fragment to be evaled but not shown.
20007 finish_eval=$lt_finish_eval
20008
20009 # Take the output of nm and produce a listing of raw symbols and C names.
20010 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20011
20012 # Transform the output of nm in a proper C declaration
20013 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20014
20015 # Transform the output of nm in a C name address pair
20016 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20017
20018 # This is the shared library runtime path variable.
20019 runpath_var=$runpath_var
20020
20021 # This is the shared library path variable.
20022 shlibpath_var=$shlibpath_var
20023
20024 # Is shlibpath searched before the hard-coded library search path?
20025 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20026
20027 # How to hardcode a shared library path into an executable.
20028 hardcode_action=$hardcode_action_CXX
20029
20030 # Whether we should hardcode library paths into libraries.
20031 hardcode_into_libs=$hardcode_into_libs
20032
20033 # Flag to hardcode \$libdir into a binary during linking.
20034 # This must work even if \$libdir does not exist.
20035 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20036
20037 # If ld is used when linking, flag to hardcode \$libdir into
20038 # a binary during linking. This must work even if \$libdir does
20039 # not exist.
20040 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20041
20042 # Whether we need a single -rpath flag with a separated argument.
20043 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20044
20045 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20046 # resulting binary.
20047 hardcode_direct=$hardcode_direct_CXX
20048
20049 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20050 # resulting binary.
20051 hardcode_minus_L=$hardcode_minus_L_CXX
20052
20053 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20054 # the resulting binary.
20055 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20056
20057 # Set to yes if building a shared library automatically hardcodes DIR into the library
20058 # and all subsequent libraries and executables linked against it.
20059 hardcode_automatic=$hardcode_automatic_CXX
20060
20061 # Variables whose values should be saved in libtool wrapper scripts and
20062 # restored at relink time.
20063 variables_saved_for_relink="$variables_saved_for_relink"
20064
20065 # Whether libtool must link a program against all its dependency libraries.
20066 link_all_deplibs=$link_all_deplibs_CXX
20067
20068 # Compile-time system search path for libraries
20069 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20070
20071 # Run-time system search path for libraries
20072 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20073
20074 # Fix the shell variable \$srcfile for the compiler.
20075 fix_srcfile_path="$fix_srcfile_path_CXX"
20076
20077 # Set to yes if exported symbols are required.
20078 always_export_symbols=$always_export_symbols_CXX
20079
20080 # The commands to list exported symbols.
20081 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20082
20083 # The commands to extract the exported symbol list from a shared archive.
20084 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20085
20086 # Symbols that should not be listed in the preloaded symbols.
20087 exclude_expsyms=$lt_exclude_expsyms_CXX
20088
20089 # Symbols that must always be exported.
20090 include_expsyms=$lt_include_expsyms_CXX
20091
20092 # ### END LIBTOOL TAG CONFIG: $tagname
20093
20094 __EOF__
20095
20096
20097 else
20098   # If there is no Makefile yet, we rely on a make rule to execute
20099   # `config.status --recheck' to rerun these tests and create the
20100   # libtool script then.
20101   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20102   if test -f "$ltmain_in"; then
20103     test -f Makefile && make "$ltmain"
20104   fi
20105 fi
20106
20107
20108 ac_ext=c
20109 ac_cpp='$CPP $CPPFLAGS'
20110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20113
20114 CC=$lt_save_CC
20115 LDCXX=$LD
20116 LD=$lt_save_LD
20117 GCC=$lt_save_GCC
20118 with_gnu_ldcxx=$with_gnu_ld
20119 with_gnu_ld=$lt_save_with_gnu_ld
20120 lt_cv_path_LDCXX=$lt_cv_path_LD
20121 lt_cv_path_LD=$lt_save_path_LD
20122 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20123 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20124
20125         else
20126           tagname=""
20127         fi
20128         ;;
20129
20130       F77)
20131         if test -n "$F77" && test "X$F77" != "Xno"; then
20132
20133 ac_ext=f
20134 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20135 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20136 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20137
20138
20139 archive_cmds_need_lc_F77=no
20140 allow_undefined_flag_F77=
20141 always_export_symbols_F77=no
20142 archive_expsym_cmds_F77=
20143 export_dynamic_flag_spec_F77=
20144 hardcode_direct_F77=no
20145 hardcode_libdir_flag_spec_F77=
20146 hardcode_libdir_flag_spec_ld_F77=
20147 hardcode_libdir_separator_F77=
20148 hardcode_minus_L_F77=no
20149 hardcode_automatic_F77=no
20150 module_cmds_F77=
20151 module_expsym_cmds_F77=
20152 link_all_deplibs_F77=unknown
20153 old_archive_cmds_F77=$old_archive_cmds
20154 no_undefined_flag_F77=
20155 whole_archive_flag_spec_F77=
20156 enable_shared_with_static_runtimes_F77=no
20157
20158 # Source file extension for f77 test sources.
20159 ac_ext=f
20160
20161 # Object file extension for compiled f77 test sources.
20162 objext=o
20163 objext_F77=$objext
20164
20165 # Code to be used in simple compile tests
20166 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20167
20168 # Code to be used in simple link tests
20169 lt_simple_link_test_code="      program t\n      end\n"
20170
20171 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20172
20173 # If no C compiler was specified, use CC.
20174 LTCC=${LTCC-"$CC"}
20175
20176 # If no C compiler flags were specified, use CFLAGS.
20177 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20178
20179 # Allow CC to be a program name with arguments.
20180 compiler=$CC
20181
20182
20183 # save warnings/boilerplate of simple test code
20184 ac_outfile=conftest.$ac_objext
20185 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20186 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20187 _lt_compiler_boilerplate=`cat conftest.err`
20188 $rm conftest*
20189
20190 ac_outfile=conftest.$ac_objext
20191 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20192 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20193 _lt_linker_boilerplate=`cat conftest.err`
20194 $rm conftest*
20195
20196
20197 # Allow CC to be a program name with arguments.
20198 lt_save_CC="$CC"
20199 CC=${F77-"f77"}
20200 compiler=$CC
20201 compiler_F77=$CC
20202 for cc_temp in $compiler""; do
20203   case $cc_temp in
20204     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20205     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20206     \-*) ;;
20207     *) break;;
20208   esac
20209 done
20210 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20211
20212
20213 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20214 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20215 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20216 echo "${ECHO_T}$can_build_shared" >&6; }
20217
20218 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20219 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20220 test "$can_build_shared" = "no" && enable_shared=no
20221
20222 # On AIX, shared libraries and static libraries use the same namespace, and
20223 # are all built from PIC.
20224 case $host_os in
20225 aix3*)
20226   test "$enable_shared" = yes && enable_static=no
20227   if test -n "$RANLIB"; then
20228     archive_cmds="$archive_cmds~\$RANLIB \$lib"
20229     postinstall_cmds='$RANLIB $lib'
20230   fi
20231   ;;
20232 aix4* | aix5*)
20233   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20234     test "$enable_shared" = yes && enable_static=no
20235   fi
20236   ;;
20237 esac
20238 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20239 echo "${ECHO_T}$enable_shared" >&6; }
20240
20241 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20242 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20243 # Make sure either enable_shared or enable_static is yes.
20244 test "$enable_shared" = yes || enable_static=yes
20245 { echo "$as_me:$LINENO: result: $enable_static" >&5
20246 echo "${ECHO_T}$enable_static" >&6; }
20247
20248 GCC_F77="$G77"
20249 LD_F77="$LD"
20250
20251 lt_prog_compiler_wl_F77=
20252 lt_prog_compiler_pic_F77=
20253 lt_prog_compiler_static_F77=
20254
20255 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20256 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20257
20258   if test "$GCC" = yes; then
20259     lt_prog_compiler_wl_F77='-Wl,'
20260     lt_prog_compiler_static_F77='-static'
20261
20262     case $host_os in
20263       aix*)
20264       # All AIX code is PIC.
20265       if test "$host_cpu" = ia64; then
20266         # AIX 5 now supports IA64 processor
20267         lt_prog_compiler_static_F77='-Bstatic'
20268       fi
20269       ;;
20270
20271     amigaos*)
20272       # FIXME: we need at least 68020 code to build shared libraries, but
20273       # adding the `-m68020' flag to GCC prevents building anything better,
20274       # like `-m68040'.
20275       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20276       ;;
20277
20278     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20279       # PIC is the default for these OSes.
20280       ;;
20281
20282     mingw* | pw32* | os2*)
20283       # This hack is so that the source file can tell whether it is being
20284       # built for inclusion in a dll (and should export symbols for example).
20285       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20286       ;;
20287
20288     darwin* | rhapsody*)
20289       # PIC is the default on this platform
20290       # Common symbols not allowed in MH_DYLIB files
20291       lt_prog_compiler_pic_F77='-fno-common'
20292       ;;
20293
20294     interix3*)
20295       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20296       # Instead, we relocate shared libraries at runtime.
20297       ;;
20298
20299     msdosdjgpp*)
20300       # Just because we use GCC doesn't mean we suddenly get shared libraries
20301       # on systems that don't support them.
20302       lt_prog_compiler_can_build_shared_F77=no
20303       enable_shared=no
20304       ;;
20305
20306     sysv4*MP*)
20307       if test -d /usr/nec; then
20308         lt_prog_compiler_pic_F77=-Kconform_pic
20309       fi
20310       ;;
20311
20312     hpux*)
20313       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20314       # not for PA HP-UX.
20315       case $host_cpu in
20316       hppa*64*|ia64*)
20317         # +Z the default
20318         ;;
20319       *)
20320         lt_prog_compiler_pic_F77='-fPIC'
20321         ;;
20322       esac
20323       ;;
20324
20325     *)
20326       lt_prog_compiler_pic_F77='-fPIC'
20327       ;;
20328     esac
20329   else
20330     # PORTME Check for flag to pass linker flags through the system compiler.
20331     case $host_os in
20332     aix*)
20333       lt_prog_compiler_wl_F77='-Wl,'
20334       if test "$host_cpu" = ia64; then
20335         # AIX 5 now supports IA64 processor
20336         lt_prog_compiler_static_F77='-Bstatic'
20337       else
20338         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20339       fi
20340       ;;
20341       darwin*)
20342         # PIC is the default on this platform
20343         # Common symbols not allowed in MH_DYLIB files
20344        case $cc_basename in
20345          xlc*)
20346          lt_prog_compiler_pic_F77='-qnocommon'
20347          lt_prog_compiler_wl_F77='-Wl,'
20348          ;;
20349        esac
20350        ;;
20351
20352     mingw* | pw32* | os2*)
20353       # This hack is so that the source file can tell whether it is being
20354       # built for inclusion in a dll (and should export symbols for example).
20355       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20356       ;;
20357
20358     hpux9* | hpux10* | hpux11*)
20359       lt_prog_compiler_wl_F77='-Wl,'
20360       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20361       # not for PA HP-UX.
20362       case $host_cpu in
20363       hppa*64*|ia64*)
20364         # +Z the default
20365         ;;
20366       *)
20367         lt_prog_compiler_pic_F77='+Z'
20368         ;;
20369       esac
20370       # Is there a better lt_prog_compiler_static that works with the bundled CC?
20371       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20372       ;;
20373
20374     irix5* | irix6* | nonstopux*)
20375       lt_prog_compiler_wl_F77='-Wl,'
20376       # PIC (with -KPIC) is the default.
20377       lt_prog_compiler_static_F77='-non_shared'
20378       ;;
20379
20380     newsos6)
20381       lt_prog_compiler_pic_F77='-KPIC'
20382       lt_prog_compiler_static_F77='-Bstatic'
20383       ;;
20384
20385     linux*)
20386       case $cc_basename in
20387       icc* | ecc*)
20388         lt_prog_compiler_wl_F77='-Wl,'
20389         lt_prog_compiler_pic_F77='-KPIC'
20390         lt_prog_compiler_static_F77='-static'
20391         ;;
20392       pgcc* | pgf77* | pgf90* | pgf95*)
20393         # Portland Group compilers (*not* the Pentium gcc compiler,
20394         # which looks to be a dead project)
20395         lt_prog_compiler_wl_F77='-Wl,'
20396         lt_prog_compiler_pic_F77='-fpic'
20397         lt_prog_compiler_static_F77='-Bstatic'
20398         ;;
20399       ccc*)
20400         lt_prog_compiler_wl_F77='-Wl,'
20401         # All Alpha code is PIC.
20402         lt_prog_compiler_static_F77='-non_shared'
20403         ;;
20404       esac
20405       ;;
20406
20407     osf3* | osf4* | osf5*)
20408       lt_prog_compiler_wl_F77='-Wl,'
20409       # All OSF/1 code is PIC.
20410       lt_prog_compiler_static_F77='-non_shared'
20411       ;;
20412
20413     solaris*)
20414       lt_prog_compiler_pic_F77='-KPIC'
20415       lt_prog_compiler_static_F77='-Bstatic'
20416       case $cc_basename in
20417       f77* | f90* | f95*)
20418         lt_prog_compiler_wl_F77='-Qoption ld ';;
20419       *)
20420         lt_prog_compiler_wl_F77='-Wl,';;
20421       esac
20422       ;;
20423
20424     sunos4*)
20425       lt_prog_compiler_wl_F77='-Qoption ld '
20426       lt_prog_compiler_pic_F77='-PIC'
20427       lt_prog_compiler_static_F77='-Bstatic'
20428       ;;
20429
20430     sysv4 | sysv4.2uw2* | sysv4.3*)
20431       lt_prog_compiler_wl_F77='-Wl,'
20432       lt_prog_compiler_pic_F77='-KPIC'
20433       lt_prog_compiler_static_F77='-Bstatic'
20434       ;;
20435
20436     sysv4*MP*)
20437       if test -d /usr/nec ;then
20438         lt_prog_compiler_pic_F77='-Kconform_pic'
20439         lt_prog_compiler_static_F77='-Bstatic'
20440       fi
20441       ;;
20442
20443     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20444       lt_prog_compiler_wl_F77='-Wl,'
20445       lt_prog_compiler_pic_F77='-KPIC'
20446       lt_prog_compiler_static_F77='-Bstatic'
20447       ;;
20448
20449     unicos*)
20450       lt_prog_compiler_wl_F77='-Wl,'
20451       lt_prog_compiler_can_build_shared_F77=no
20452       ;;
20453
20454     uts4*)
20455       lt_prog_compiler_pic_F77='-pic'
20456       lt_prog_compiler_static_F77='-Bstatic'
20457       ;;
20458
20459     *)
20460       lt_prog_compiler_can_build_shared_F77=no
20461       ;;
20462     esac
20463   fi
20464
20465 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20466 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
20467
20468 #
20469 # Check to make sure the PIC flag actually works.
20470 #
20471 if test -n "$lt_prog_compiler_pic_F77"; then
20472
20473 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20474 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
20475 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20476   echo $ECHO_N "(cached) $ECHO_C" >&6
20477 else
20478   lt_prog_compiler_pic_works_F77=no
20479   ac_outfile=conftest.$ac_objext
20480    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20481    lt_compiler_flag="$lt_prog_compiler_pic_F77"
20482    # Insert the option either (1) after the last *FLAGS variable, or
20483    # (2) before a word containing "conftest.", or (3) at the end.
20484    # Note that $ac_compile itself does not contain backslashes and begins
20485    # with a dollar sign (not a hyphen), so the echo should work correctly.
20486    # The option is referenced via a variable to avoid confusing sed.
20487    lt_compile=`echo "$ac_compile" | $SED \
20488    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20489    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20490    -e 's:$: $lt_compiler_flag:'`
20491    (eval echo "\"\$as_me:20491: $lt_compile\"" >&5)
20492    (eval "$lt_compile" 2>conftest.err)
20493    ac_status=$?
20494    cat conftest.err >&5
20495    echo "$as_me:20495: \$? = $ac_status" >&5
20496    if (exit $ac_status) && test -s "$ac_outfile"; then
20497      # The compiler can only warn and ignore the option if not recognized
20498      # So say no if there are warnings other than the usual output.
20499      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20500      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20501      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20502        lt_prog_compiler_pic_works_F77=yes
20503      fi
20504    fi
20505    $rm conftest*
20506
20507 fi
20508 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20509 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
20510
20511 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20512     case $lt_prog_compiler_pic_F77 in
20513      "" | " "*) ;;
20514      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20515      esac
20516 else
20517     lt_prog_compiler_pic_F77=
20518      lt_prog_compiler_can_build_shared_F77=no
20519 fi
20520
20521 fi
20522 case $host_os in
20523   # For platforms which do not support PIC, -DPIC is meaningless:
20524   *djgpp*)
20525     lt_prog_compiler_pic_F77=
20526     ;;
20527   *)
20528     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20529     ;;
20530 esac
20531
20532 #
20533 # Check to make sure the static flag actually works.
20534 #
20535 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20536 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20537 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20538 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20539   echo $ECHO_N "(cached) $ECHO_C" >&6
20540 else
20541   lt_prog_compiler_static_works_F77=no
20542    save_LDFLAGS="$LDFLAGS"
20543    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20544    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20545    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20546      # The linker can only warn and ignore the option if not recognized
20547      # So say no if there are warnings
20548      if test -s conftest.err; then
20549        # Append any errors to the config.log.
20550        cat conftest.err 1>&5
20551        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20552        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20553        if diff conftest.exp conftest.er2 >/dev/null; then
20554          lt_prog_compiler_static_works_F77=yes
20555        fi
20556      else
20557        lt_prog_compiler_static_works_F77=yes
20558      fi
20559    fi
20560    $rm conftest*
20561    LDFLAGS="$save_LDFLAGS"
20562
20563 fi
20564 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20565 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20566
20567 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20568     :
20569 else
20570     lt_prog_compiler_static_F77=
20571 fi
20572
20573
20574 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20575 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20576 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20577   echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579   lt_cv_prog_compiler_c_o_F77=no
20580    $rm -r conftest 2>/dev/null
20581    mkdir conftest
20582    cd conftest
20583    mkdir out
20584    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20585
20586    lt_compiler_flag="-o out/conftest2.$ac_objext"
20587    # Insert the option either (1) after the last *FLAGS variable, or
20588    # (2) before a word containing "conftest.", or (3) at the end.
20589    # Note that $ac_compile itself does not contain backslashes and begins
20590    # with a dollar sign (not a hyphen), so the echo should work correctly.
20591    lt_compile=`echo "$ac_compile" | $SED \
20592    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20593    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20594    -e 's:$: $lt_compiler_flag:'`
20595    (eval echo "\"\$as_me:20595: $lt_compile\"" >&5)
20596    (eval "$lt_compile" 2>out/conftest.err)
20597    ac_status=$?
20598    cat out/conftest.err >&5
20599    echo "$as_me:20599: \$? = $ac_status" >&5
20600    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20601    then
20602      # The compiler can only warn and ignore the option if not recognized
20603      # So say no if there are warnings
20604      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20605      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20606      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20607        lt_cv_prog_compiler_c_o_F77=yes
20608      fi
20609    fi
20610    chmod u+w . 2>&5
20611    $rm conftest*
20612    # SGI C++ compiler will create directory out/ii_files/ for
20613    # template instantiation
20614    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20615    $rm out/* && rmdir out
20616    cd ..
20617    rmdir conftest
20618    $rm conftest*
20619
20620 fi
20621 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20622 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
20623
20624
20625 hard_links="nottested"
20626 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20627   # do not overwrite the value of need_locks provided by the user
20628   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20629 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20630   hard_links=yes
20631   $rm conftest*
20632   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20633   touch conftest.a
20634   ln conftest.a conftest.b 2>&5 || hard_links=no
20635   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20636   { echo "$as_me:$LINENO: result: $hard_links" >&5
20637 echo "${ECHO_T}$hard_links" >&6; }
20638   if test "$hard_links" = no; then
20639     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20640 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20641     need_locks=warn
20642   fi
20643 else
20644   need_locks=no
20645 fi
20646
20647 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20648 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20649
20650   runpath_var=
20651   allow_undefined_flag_F77=
20652   enable_shared_with_static_runtimes_F77=no
20653   archive_cmds_F77=
20654   archive_expsym_cmds_F77=
20655   old_archive_From_new_cmds_F77=
20656   old_archive_from_expsyms_cmds_F77=
20657   export_dynamic_flag_spec_F77=
20658   whole_archive_flag_spec_F77=
20659   thread_safe_flag_spec_F77=
20660   hardcode_libdir_flag_spec_F77=
20661   hardcode_libdir_flag_spec_ld_F77=
20662   hardcode_libdir_separator_F77=
20663   hardcode_direct_F77=no
20664   hardcode_minus_L_F77=no
20665   hardcode_shlibpath_var_F77=unsupported
20666   link_all_deplibs_F77=unknown
20667   hardcode_automatic_F77=no
20668   module_cmds_F77=
20669   module_expsym_cmds_F77=
20670   always_export_symbols_F77=no
20671   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20672   # include_expsyms should be a list of space-separated symbols to be *always*
20673   # included in the symbol list
20674   include_expsyms_F77=
20675   # exclude_expsyms can be an extended regexp of symbols to exclude
20676   # it will be wrapped by ` (' and `)$', so one must not match beginning or
20677   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20678   # as well as any symbol that contains `d'.
20679   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20680   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20681   # platforms (ab)use it in PIC code, but their linkers get confused if
20682   # the symbol is explicitly referenced.  Since portable code cannot
20683   # rely on this symbol name, it's probably fine to never include it in
20684   # preloaded symbol tables.
20685   extract_expsyms_cmds=
20686   # Just being paranoid about ensuring that cc_basename is set.
20687   for cc_temp in $compiler""; do
20688   case $cc_temp in
20689     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20690     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20691     \-*) ;;
20692     *) break;;
20693   esac
20694 done
20695 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20696
20697   case $host_os in
20698   cygwin* | mingw* | pw32*)
20699     # FIXME: the MSVC++ port hasn't been tested in a loooong time
20700     # When not using gcc, we currently assume that we are using
20701     # Microsoft Visual C++.
20702     if test "$GCC" != yes; then
20703       with_gnu_ld=no
20704     fi
20705     ;;
20706   interix*)
20707     # we just hope/assume this is gcc and not c89 (= MSVC++)
20708     with_gnu_ld=yes
20709     ;;
20710   openbsd*)
20711     with_gnu_ld=no
20712     ;;
20713   esac
20714
20715   ld_shlibs_F77=yes
20716   if test "$with_gnu_ld" = yes; then
20717     # If archive_cmds runs LD, not CC, wlarc should be empty
20718     wlarc='${wl}'
20719
20720     # Set some defaults for GNU ld with shared library support. These
20721     # are reset later if shared libraries are not supported. Putting them
20722     # here allows them to be overridden if necessary.
20723     runpath_var=LD_RUN_PATH
20724     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20725     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20726     # ancient GNU ld didn't support --whole-archive et. al.
20727     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20728         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20729       else
20730         whole_archive_flag_spec_F77=
20731     fi
20732     supports_anon_versioning=no
20733     case `$LD -v 2>/dev/null` in
20734       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20735       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20736       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20737       *\ 2.11.*) ;; # other 2.11 versions
20738       *) supports_anon_versioning=yes ;;
20739     esac
20740
20741     # See if GNU ld supports shared libraries.
20742     case $host_os in
20743     aix3* | aix4* | aix5*)
20744       # On AIX/PPC, the GNU linker is very broken
20745       if test "$host_cpu" != ia64; then
20746         ld_shlibs_F77=no
20747         cat <<EOF 1>&2
20748
20749 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20750 *** to be unable to reliably create shared libraries on AIX.
20751 *** Therefore, libtool is disabling shared libraries support.  If you
20752 *** really care for shared libraries, you may want to modify your PATH
20753 *** so that a non-GNU linker is found, and then restart.
20754
20755 EOF
20756       fi
20757       ;;
20758
20759     amigaos*)
20760       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)'
20761       hardcode_libdir_flag_spec_F77='-L$libdir'
20762       hardcode_minus_L_F77=yes
20763
20764       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20765       # that the semantics of dynamic libraries on AmigaOS, at least up
20766       # to version 4, is to share data among multiple programs linked
20767       # with the same dynamic library.  Since this doesn't match the
20768       # behavior of shared libraries on other platforms, we can't use
20769       # them.
20770       ld_shlibs_F77=no
20771       ;;
20772
20773     beos*)
20774       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20775         allow_undefined_flag_F77=unsupported
20776         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20777         # support --undefined.  This deserves some investigation.  FIXME
20778         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20779       else
20780         ld_shlibs_F77=no
20781       fi
20782       ;;
20783
20784     cygwin* | mingw* | pw32*)
20785       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20786       # as there is no search path for DLLs.
20787       hardcode_libdir_flag_spec_F77='-L$libdir'
20788       allow_undefined_flag_F77=unsupported
20789       always_export_symbols_F77=no
20790       enable_shared_with_static_runtimes_F77=yes
20791       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20792
20793       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20794         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20795         # If the export-symbols file already is a .def file (1st line
20796         # is EXPORTS), use it as is; otherwise, prepend...
20797         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20798           cp $export_symbols $output_objdir/$soname.def;
20799         else
20800           echo EXPORTS > $output_objdir/$soname.def;
20801           cat $export_symbols >> $output_objdir/$soname.def;
20802         fi~
20803         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20804       else
20805         ld_shlibs_F77=no
20806       fi
20807       ;;
20808
20809     interix3*)
20810       hardcode_direct_F77=no
20811       hardcode_shlibpath_var_F77=no
20812       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20813       export_dynamic_flag_spec_F77='${wl}-E'
20814       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20815       # Instead, shared libraries are loaded at an image base (0x10000000 by
20816       # default) and relocated if they conflict, which is a slow very memory
20817       # consuming and fragmenting process.  To avoid this, we pick a random,
20818       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20819       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20820       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'
20821       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'
20822       ;;
20823
20824     linux*)
20825       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20826         tmp_addflag=
20827         case $cc_basename,$host_cpu in
20828         pgcc*)                          # Portland Group C compiler
20829           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'
20830           tmp_addflag=' $pic_flag'
20831           ;;
20832         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
20833           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'
20834           tmp_addflag=' $pic_flag -Mnomain' ;;
20835         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
20836           tmp_addflag=' -i_dynamic' ;;
20837         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
20838           tmp_addflag=' -i_dynamic -nofor_main' ;;
20839         ifc* | ifort*)                  # Intel Fortran compiler
20840           tmp_addflag=' -nofor_main' ;;
20841         esac
20842         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20843
20844         if test $supports_anon_versioning = yes; then
20845           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20846   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20847   $echo "local: *; };" >> $output_objdir/$libname.ver~
20848           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20849         fi
20850       else
20851         ld_shlibs_F77=no
20852       fi
20853       ;;
20854
20855     netbsd*)
20856       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20857         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20858         wlarc=
20859       else
20860         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20861         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20862       fi
20863       ;;
20864
20865     solaris*)
20866       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20867         ld_shlibs_F77=no
20868         cat <<EOF 1>&2
20869
20870 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20871 *** create shared libraries on Solaris systems.  Therefore, libtool
20872 *** is disabling shared libraries support.  We urge you to upgrade GNU
20873 *** binutils to release 2.9.1 or newer.  Another option is to modify
20874 *** your PATH or compiler configuration so that the native linker is
20875 *** used, and then restart.
20876
20877 EOF
20878       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20879         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20880         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20881       else
20882         ld_shlibs_F77=no
20883       fi
20884       ;;
20885
20886     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20887       case `$LD -v 2>&1` in
20888         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20889         ld_shlibs_F77=no
20890         cat <<_LT_EOF 1>&2
20891
20892 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20893 *** reliably create shared libraries on SCO systems.  Therefore, libtool
20894 *** is disabling shared libraries support.  We urge you to upgrade GNU
20895 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
20896 *** your PATH or compiler configuration so that the native linker is
20897 *** used, and then restart.
20898
20899 _LT_EOF
20900         ;;
20901         *)
20902           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20903             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20904             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20905             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20906           else
20907             ld_shlibs_F77=no
20908           fi
20909         ;;
20910       esac
20911       ;;
20912
20913     sunos4*)
20914       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20915       wlarc=
20916       hardcode_direct_F77=yes
20917       hardcode_shlibpath_var_F77=no
20918       ;;
20919
20920     *)
20921       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20922         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20923         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20924       else
20925         ld_shlibs_F77=no
20926       fi
20927       ;;
20928     esac
20929
20930     if test "$ld_shlibs_F77" = no; then
20931       runpath_var=
20932       hardcode_libdir_flag_spec_F77=
20933       export_dynamic_flag_spec_F77=
20934       whole_archive_flag_spec_F77=
20935     fi
20936   else
20937     # PORTME fill in a description of your system's linker (not GNU ld)
20938     case $host_os in
20939     aix3*)
20940       allow_undefined_flag_F77=unsupported
20941       always_export_symbols_F77=yes
20942       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'
20943       # Note: this linker hardcodes the directories in LIBPATH if there
20944       # are no directories specified by -L.
20945       hardcode_minus_L_F77=yes
20946       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20947         # Neither direct hardcoding nor static linking is supported with a
20948         # broken collect2.
20949         hardcode_direct_F77=unsupported
20950       fi
20951       ;;
20952
20953     aix4* | aix5*)
20954       if test "$host_cpu" = ia64; then
20955         # On IA64, the linker does run time linking by default, so we don't
20956         # have to do anything special.
20957         aix_use_runtimelinking=no
20958         exp_sym_flag='-Bexport'
20959         no_entry_flag=""
20960       else
20961         # If we're using GNU nm, then we don't want the "-C" option.
20962         # -C means demangle to AIX nm, but means don't demangle with GNU nm
20963         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20964           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'
20965         else
20966           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'
20967         fi
20968         aix_use_runtimelinking=no
20969
20970         # Test if we are trying to use run time linking or normal
20971         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20972         # need to do runtime linking.
20973         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20974           for ld_flag in $LDFLAGS; do
20975           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20976             aix_use_runtimelinking=yes
20977             break
20978           fi
20979           done
20980           ;;
20981         esac
20982
20983         exp_sym_flag='-bexport'
20984         no_entry_flag='-bnoentry'
20985       fi
20986
20987       # When large executables or shared objects are built, AIX ld can
20988       # have problems creating the table of contents.  If linking a library
20989       # or program results in "error TOC overflow" add -mminimal-toc to
20990       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20991       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20992
20993       archive_cmds_F77=''
20994       hardcode_direct_F77=yes
20995       hardcode_libdir_separator_F77=':'
20996       link_all_deplibs_F77=yes
20997
20998       if test "$GCC" = yes; then
20999         case $host_os in aix4.[012]|aix4.[012].*)
21000         # We only want to do this on AIX 4.2 and lower, the check
21001         # below for broken collect2 doesn't work under 4.3+
21002           collect2name=`${CC} -print-prog-name=collect2`
21003           if test -f "$collect2name" && \
21004            strings "$collect2name" | grep resolve_lib_name >/dev/null
21005           then
21006           # We have reworked collect2
21007           hardcode_direct_F77=yes
21008           else
21009           # We have old collect2
21010           hardcode_direct_F77=unsupported
21011           # It fails to find uninstalled libraries when the uninstalled
21012           # path is not listed in the libpath.  Setting hardcode_minus_L
21013           # to unsupported forces relinking
21014           hardcode_minus_L_F77=yes
21015           hardcode_libdir_flag_spec_F77='-L$libdir'
21016           hardcode_libdir_separator_F77=
21017           fi
21018           ;;
21019         esac
21020         shared_flag='-shared'
21021         if test "$aix_use_runtimelinking" = yes; then
21022           shared_flag="$shared_flag "'${wl}-G'
21023         fi
21024       else
21025         # not using gcc
21026         if test "$host_cpu" = ia64; then
21027         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21028         # chokes on -Wl,-G. The following line is correct:
21029           shared_flag='-G'
21030         else
21031           if test "$aix_use_runtimelinking" = yes; then
21032             shared_flag='${wl}-G'
21033           else
21034             shared_flag='${wl}-bM:SRE'
21035           fi
21036         fi
21037       fi
21038
21039       # It seems that -bexpall does not export symbols beginning with
21040       # underscore (_), so it is better to generate a list of symbols to export.
21041       always_export_symbols_F77=yes
21042       if test "$aix_use_runtimelinking" = yes; then
21043         # Warning - without using the other runtime loading flags (-brtl),
21044         # -berok will link without error, but may produce a broken library.
21045         allow_undefined_flag_F77='-berok'
21046        # Determine the default libpath from the value encoded in an empty executable.
21047        cat >conftest.$ac_ext <<_ACEOF
21048       program main
21049
21050       end
21051 _ACEOF
21052 rm -f conftest.$ac_objext conftest$ac_exeext
21053 if { (ac_try="$ac_link"
21054 case "(($ac_try" in
21055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056   *) ac_try_echo=$ac_try;;
21057 esac
21058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059   (eval "$ac_link") 2>conftest.er1
21060   ac_status=$?
21061   grep -v '^ *+' conftest.er1 >conftest.err
21062   rm -f conftest.er1
21063   cat conftest.err >&5
21064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065   (exit $ac_status); } && {
21066          test -z "$ac_f77_werror_flag" ||
21067          test ! -s conftest.err
21068        } && test -s conftest$ac_exeext &&
21069        $as_test_x conftest$ac_exeext; then
21070
21071 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21072 }'`
21073 # Check for a 64-bit object if we didn't find anything.
21074 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; }
21075 }'`; fi
21076 else
21077   echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21079
21080
21081 fi
21082
21083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21084       conftest$ac_exeext conftest.$ac_ext
21085 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21086
21087        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21088         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"
21089        else
21090         if test "$host_cpu" = ia64; then
21091           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21092           allow_undefined_flag_F77="-z nodefs"
21093           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"
21094         else
21095          # Determine the default libpath from the value encoded in an empty executable.
21096          cat >conftest.$ac_ext <<_ACEOF
21097       program main
21098
21099       end
21100 _ACEOF
21101 rm -f conftest.$ac_objext conftest$ac_exeext
21102 if { (ac_try="$ac_link"
21103 case "(($ac_try" in
21104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105   *) ac_try_echo=$ac_try;;
21106 esac
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108   (eval "$ac_link") 2>conftest.er1
21109   ac_status=$?
21110   grep -v '^ *+' conftest.er1 >conftest.err
21111   rm -f conftest.er1
21112   cat conftest.err >&5
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); } && {
21115          test -z "$ac_f77_werror_flag" ||
21116          test ! -s conftest.err
21117        } && test -s conftest$ac_exeext &&
21118        $as_test_x conftest$ac_exeext; then
21119
21120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21121 }'`
21122 # Check for a 64-bit object if we didn't find anything.
21123 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; }
21124 }'`; fi
21125 else
21126   echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.$ac_ext >&5
21128
21129
21130 fi
21131
21132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21133       conftest$ac_exeext conftest.$ac_ext
21134 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21135
21136          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21137           # Warning - without using the other run time loading flags,
21138           # -berok will link without error, but may produce a broken library.
21139           no_undefined_flag_F77=' ${wl}-bernotok'
21140           allow_undefined_flag_F77=' ${wl}-berok'
21141           # Exported symbols can be pulled into shared objects from archives
21142           whole_archive_flag_spec_F77='$convenience'
21143           archive_cmds_need_lc_F77=yes
21144           # This is similar to how AIX traditionally builds its shared libraries.
21145           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'
21146         fi
21147       fi
21148       ;;
21149
21150     amigaos*)
21151       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)'
21152       hardcode_libdir_flag_spec_F77='-L$libdir'
21153       hardcode_minus_L_F77=yes
21154       # see comment about different semantics on the GNU ld section
21155       ld_shlibs_F77=no
21156       ;;
21157
21158     bsdi[45]*)
21159       export_dynamic_flag_spec_F77=-rdynamic
21160       ;;
21161
21162     cygwin* | mingw* | pw32*)
21163       # When not using gcc, we currently assume that we are using
21164       # Microsoft Visual C++.
21165       # hardcode_libdir_flag_spec is actually meaningless, as there is
21166       # no search path for DLLs.
21167       hardcode_libdir_flag_spec_F77=' '
21168       allow_undefined_flag_F77=unsupported
21169       # Tell ltmain to make .lib files, not .a files.
21170       libext=lib
21171       # Tell ltmain to make .dll files, not .so files.
21172       shrext_cmds=".dll"
21173       # FIXME: Setting linknames here is a bad hack.
21174       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21175       # The linker will automatically build a .lib file if we build a DLL.
21176       old_archive_From_new_cmds_F77='true'
21177       # FIXME: Should let the user specify the lib program.
21178       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21179       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21180       enable_shared_with_static_runtimes_F77=yes
21181       ;;
21182
21183     darwin* | rhapsody*)
21184       case $host_os in
21185         rhapsody* | darwin1.[012])
21186          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21187          ;;
21188        *) # Darwin 1.3 on
21189          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21190            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21191          else
21192            case ${MACOSX_DEPLOYMENT_TARGET} in
21193              10.[012])
21194                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21195                ;;
21196              10.*)
21197                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21198                ;;
21199            esac
21200          fi
21201          ;;
21202       esac
21203       archive_cmds_need_lc_F77=no
21204       hardcode_direct_F77=no
21205       hardcode_automatic_F77=yes
21206       hardcode_shlibpath_var_F77=unsupported
21207       whole_archive_flag_spec_F77=''
21208       link_all_deplibs_F77=yes
21209     if test "$GCC" = yes ; then
21210         output_verbose_link_cmd='echo'
21211         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21212       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21213       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21214       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}'
21215       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}'
21216     else
21217       case $cc_basename in
21218         xlc*)
21219          output_verbose_link_cmd='echo'
21220          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21221          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21222           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21223          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}'
21224           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}'
21225           ;;
21226        *)
21227          ld_shlibs_F77=no
21228           ;;
21229       esac
21230     fi
21231       ;;
21232
21233     dgux*)
21234       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21235       hardcode_libdir_flag_spec_F77='-L$libdir'
21236       hardcode_shlibpath_var_F77=no
21237       ;;
21238
21239     freebsd1*)
21240       ld_shlibs_F77=no
21241       ;;
21242
21243     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21244     # support.  Future versions do this automatically, but an explicit c++rt0.o
21245     # does not break anything, and helps significantly (at the cost of a little
21246     # extra space).
21247     freebsd2.2*)
21248       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21249       hardcode_libdir_flag_spec_F77='-R$libdir'
21250       hardcode_direct_F77=yes
21251       hardcode_shlibpath_var_F77=no
21252       ;;
21253
21254     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21255     freebsd2*)
21256       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21257       hardcode_direct_F77=yes
21258       hardcode_minus_L_F77=yes
21259       hardcode_shlibpath_var_F77=no
21260       ;;
21261
21262     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21263     freebsd* | kfreebsd*-gnu | dragonfly*)
21264       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21265       hardcode_libdir_flag_spec_F77='-R$libdir'
21266       hardcode_direct_F77=yes
21267       hardcode_shlibpath_var_F77=no
21268       ;;
21269
21270     hpux9*)
21271       if test "$GCC" = yes; then
21272         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'
21273       else
21274         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'
21275       fi
21276       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21277       hardcode_libdir_separator_F77=:
21278       hardcode_direct_F77=yes
21279
21280       # hardcode_minus_L: Not really in the search PATH,
21281       # but as the default location of the library.
21282       hardcode_minus_L_F77=yes
21283       export_dynamic_flag_spec_F77='${wl}-E'
21284       ;;
21285
21286     hpux10*)
21287       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21288         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21289       else
21290         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21291       fi
21292       if test "$with_gnu_ld" = no; then
21293         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21294         hardcode_libdir_separator_F77=:
21295
21296         hardcode_direct_F77=yes
21297         export_dynamic_flag_spec_F77='${wl}-E'
21298
21299         # hardcode_minus_L: Not really in the search PATH,
21300         # but as the default location of the library.
21301         hardcode_minus_L_F77=yes
21302       fi
21303       ;;
21304
21305     hpux11*)
21306       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21307         case $host_cpu in
21308         hppa*64*)
21309           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21310           ;;
21311         ia64*)
21312           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21313           ;;
21314         *)
21315           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21316           ;;
21317         esac
21318       else
21319         case $host_cpu in
21320         hppa*64*)
21321           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21322           ;;
21323         ia64*)
21324           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21325           ;;
21326         *)
21327           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21328           ;;
21329         esac
21330       fi
21331       if test "$with_gnu_ld" = no; then
21332         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21333         hardcode_libdir_separator_F77=:
21334
21335         case $host_cpu in
21336         hppa*64*|ia64*)
21337           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21338           hardcode_direct_F77=no
21339           hardcode_shlibpath_var_F77=no
21340           ;;
21341         *)
21342           hardcode_direct_F77=yes
21343           export_dynamic_flag_spec_F77='${wl}-E'
21344
21345           # hardcode_minus_L: Not really in the search PATH,
21346           # but as the default location of the library.
21347           hardcode_minus_L_F77=yes
21348           ;;
21349         esac
21350       fi
21351       ;;
21352
21353     irix5* | irix6* | nonstopux*)
21354       if test "$GCC" = yes; then
21355         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'
21356       else
21357         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'
21358         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21359       fi
21360       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21361       hardcode_libdir_separator_F77=:
21362       link_all_deplibs_F77=yes
21363       ;;
21364
21365     netbsd*)
21366       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21367         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21368       else
21369         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21370       fi
21371       hardcode_libdir_flag_spec_F77='-R$libdir'
21372       hardcode_direct_F77=yes
21373       hardcode_shlibpath_var_F77=no
21374       ;;
21375
21376     newsos6)
21377       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21378       hardcode_direct_F77=yes
21379       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21380       hardcode_libdir_separator_F77=:
21381       hardcode_shlibpath_var_F77=no
21382       ;;
21383
21384     openbsd*)
21385       hardcode_direct_F77=yes
21386       hardcode_shlibpath_var_F77=no
21387       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21388         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21389         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21390         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21391         export_dynamic_flag_spec_F77='${wl}-E'
21392       else
21393        case $host_os in
21394          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21395            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21396            hardcode_libdir_flag_spec_F77='-R$libdir'
21397            ;;
21398          *)
21399            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21400            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21401            ;;
21402        esac
21403       fi
21404       ;;
21405
21406     os2*)
21407       hardcode_libdir_flag_spec_F77='-L$libdir'
21408       hardcode_minus_L_F77=yes
21409       allow_undefined_flag_F77=unsupported
21410       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'
21411       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21412       ;;
21413
21414     osf3*)
21415       if test "$GCC" = yes; then
21416         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21417         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'
21418       else
21419         allow_undefined_flag_F77=' -expect_unresolved \*'
21420         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'
21421       fi
21422       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21423       hardcode_libdir_separator_F77=:
21424       ;;
21425
21426     osf4* | osf5*)      # as osf3* with the addition of -msym flag
21427       if test "$GCC" = yes; then
21428         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21429         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'
21430         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21431       else
21432         allow_undefined_flag_F77=' -expect_unresolved \*'
21433         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'
21434         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~
21435         $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'
21436
21437         # Both c and cxx compiler support -rpath directly
21438         hardcode_libdir_flag_spec_F77='-rpath $libdir'
21439       fi
21440       hardcode_libdir_separator_F77=:
21441       ;;
21442
21443     solaris*)
21444       no_undefined_flag_F77=' -z text'
21445       if test "$GCC" = yes; then
21446         wlarc='${wl}'
21447         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21448         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21449           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21450       else
21451         wlarc=''
21452         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21453         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21454         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21455       fi
21456       hardcode_libdir_flag_spec_F77='-R$libdir'
21457       hardcode_shlibpath_var_F77=no
21458       case $host_os in
21459       solaris2.[0-5] | solaris2.[0-5].*) ;;
21460       *)
21461         # The compiler driver will combine linker options so we
21462         # cannot just pass the convience library names through
21463         # without $wl, iff we do not link with $LD.
21464         # Luckily, gcc supports the same syntax we need for Sun Studio.
21465         # Supported since Solaris 2.6 (maybe 2.5.1?)
21466         case $wlarc in
21467         '')
21468           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21469         *)
21470           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' ;;
21471         esac ;;
21472       esac
21473       link_all_deplibs_F77=yes
21474       ;;
21475
21476     sunos4*)
21477       if test "x$host_vendor" = xsequent; then
21478         # Use $CC to link under sequent, because it throws in some extra .o
21479         # files that make .init and .fini sections work.
21480         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21481       else
21482         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21483       fi
21484       hardcode_libdir_flag_spec_F77='-L$libdir'
21485       hardcode_direct_F77=yes
21486       hardcode_minus_L_F77=yes
21487       hardcode_shlibpath_var_F77=no
21488       ;;
21489
21490     sysv4)
21491       case $host_vendor in
21492         sni)
21493           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21494           hardcode_direct_F77=yes # is this really true???
21495         ;;
21496         siemens)
21497           ## LD is ld it makes a PLAMLIB
21498           ## CC just makes a GrossModule.
21499           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21500           reload_cmds_F77='$CC -r -o $output$reload_objs'
21501           hardcode_direct_F77=no
21502         ;;
21503         motorola)
21504           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21505           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21506         ;;
21507       esac
21508       runpath_var='LD_RUN_PATH'
21509       hardcode_shlibpath_var_F77=no
21510       ;;
21511
21512     sysv4.3*)
21513       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21514       hardcode_shlibpath_var_F77=no
21515       export_dynamic_flag_spec_F77='-Bexport'
21516       ;;
21517
21518     sysv4*MP*)
21519       if test -d /usr/nec; then
21520         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21521         hardcode_shlibpath_var_F77=no
21522         runpath_var=LD_RUN_PATH
21523         hardcode_runpath_var=yes
21524         ld_shlibs_F77=yes
21525       fi
21526       ;;
21527
21528     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21529       no_undefined_flag_F77='${wl}-z,text'
21530       archive_cmds_need_lc_F77=no
21531       hardcode_shlibpath_var_F77=no
21532       runpath_var='LD_RUN_PATH'
21533
21534       if test "$GCC" = yes; then
21535         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21536         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21537       else
21538         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21539         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21540       fi
21541       ;;
21542
21543     sysv5* | sco3.2v5* | sco5v6*)
21544       # Note: We can NOT use -z defs as we might desire, because we do not
21545       # link with -lc, and that would cause any symbols used from libc to
21546       # always be unresolved, which means just about no library would
21547       # ever link correctly.  If we're not using GNU ld we use -z text
21548       # though, which does catch some bad symbols but isn't as heavy-handed
21549       # as -z defs.
21550       no_undefined_flag_F77='${wl}-z,text'
21551       allow_undefined_flag_F77='${wl}-z,nodefs'
21552       archive_cmds_need_lc_F77=no
21553       hardcode_shlibpath_var_F77=no
21554       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21555       hardcode_libdir_separator_F77=':'
21556       link_all_deplibs_F77=yes
21557       export_dynamic_flag_spec_F77='${wl}-Bexport'
21558       runpath_var='LD_RUN_PATH'
21559
21560       if test "$GCC" = yes; then
21561         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21562         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21563       else
21564         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21565         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21566       fi
21567       ;;
21568
21569     uts4*)
21570       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21571       hardcode_libdir_flag_spec_F77='-L$libdir'
21572       hardcode_shlibpath_var_F77=no
21573       ;;
21574
21575     *)
21576       ld_shlibs_F77=no
21577       ;;
21578     esac
21579   fi
21580
21581 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21582 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
21583 test "$ld_shlibs_F77" = no && can_build_shared=no
21584
21585 #
21586 # Do we need to explicitly link libc?
21587 #
21588 case "x$archive_cmds_need_lc_F77" in
21589 x|xyes)
21590   # Assume -lc should be added
21591   archive_cmds_need_lc_F77=yes
21592
21593   if test "$enable_shared" = yes && test "$GCC" = yes; then
21594     case $archive_cmds_F77 in
21595     *'~'*)
21596       # FIXME: we may have to deal with multi-command sequences.
21597       ;;
21598     '$CC '*)
21599       # Test whether the compiler implicitly links with -lc since on some
21600       # systems, -lgcc has to come before -lc. If gcc already passes -lc
21601       # to ld, don't add -lc before -lgcc.
21602       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21603 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21604       $rm conftest*
21605       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21606
21607       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21608   (eval $ac_compile) 2>&5
21609   ac_status=$?
21610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611   (exit $ac_status); } 2>conftest.err; then
21612         soname=conftest
21613         lib=conftest
21614         libobjs=conftest.$ac_objext
21615         deplibs=
21616         wl=$lt_prog_compiler_wl_F77
21617         pic_flag=$lt_prog_compiler_pic_F77
21618         compiler_flags=-v
21619         linker_flags=-v
21620         verstring=
21621         output_objdir=.
21622         libname=conftest
21623         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21624         allow_undefined_flag_F77=
21625         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21626   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21627   ac_status=$?
21628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629   (exit $ac_status); }
21630         then
21631           archive_cmds_need_lc_F77=no
21632         else
21633           archive_cmds_need_lc_F77=yes
21634         fi
21635         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21636       else
21637         cat conftest.err 1>&5
21638       fi
21639       $rm conftest*
21640       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21641 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
21642       ;;
21643     esac
21644   fi
21645   ;;
21646 esac
21647
21648 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21649 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21650 library_names_spec=
21651 libname_spec='lib$name'
21652 soname_spec=
21653 shrext_cmds=".so"
21654 postinstall_cmds=
21655 postuninstall_cmds=
21656 finish_cmds=
21657 finish_eval=
21658 shlibpath_var=
21659 shlibpath_overrides_runpath=unknown
21660 version_type=none
21661 dynamic_linker="$host_os ld.so"
21662 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21663 if test "$GCC" = yes; then
21664   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21665   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21666     # if the path contains ";" then we assume it to be the separator
21667     # otherwise default to the standard path separator (i.e. ":") - it is
21668     # assumed that no part of a normal pathname contains ";" but that should
21669     # okay in the real world where ";" in dirpaths is itself problematic.
21670     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21671   else
21672     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21673   fi
21674 else
21675   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21676 fi
21677 need_lib_prefix=unknown
21678 hardcode_into_libs=no
21679
21680 # when you set need_version to no, make sure it does not cause -set_version
21681 # flags to be left without arguments
21682 need_version=unknown
21683
21684 case $host_os in
21685 aix3*)
21686   version_type=linux
21687   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21688   shlibpath_var=LIBPATH
21689
21690   # AIX 3 has no versioning support, so we append a major version to the name.
21691   soname_spec='${libname}${release}${shared_ext}$major'
21692   ;;
21693
21694 aix4* | aix5*)
21695   version_type=linux
21696   need_lib_prefix=no
21697   need_version=no
21698   hardcode_into_libs=yes
21699   if test "$host_cpu" = ia64; then
21700     # AIX 5 supports IA64
21701     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21702     shlibpath_var=LD_LIBRARY_PATH
21703   else
21704     # With GCC up to 2.95.x, collect2 would create an import file
21705     # for dependence libraries.  The import file would start with
21706     # the line `#! .'.  This would cause the generated library to
21707     # depend on `.', always an invalid library.  This was fixed in
21708     # development snapshots of GCC prior to 3.0.
21709     case $host_os in
21710       aix4 | aix4.[01] | aix4.[01].*)
21711       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21712            echo ' yes '
21713            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21714         :
21715       else
21716         can_build_shared=no
21717       fi
21718       ;;
21719     esac
21720     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21721     # soname into executable. Probably we can add versioning support to
21722     # collect2, so additional links can be useful in future.
21723     if test "$aix_use_runtimelinking" = yes; then
21724       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21725       # instead of lib<name>.a to let people know that these are not
21726       # typical AIX shared libraries.
21727       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21728     else
21729       # We preserve .a as extension for shared libraries through AIX4.2
21730       # and later when we are not doing run time linking.
21731       library_names_spec='${libname}${release}.a $libname.a'
21732       soname_spec='${libname}${release}${shared_ext}$major'
21733     fi
21734     shlibpath_var=LIBPATH
21735   fi
21736   ;;
21737
21738 amigaos*)
21739   library_names_spec='$libname.ixlibrary $libname.a'
21740   # Create ${libname}_ixlibrary.a entries in /sys/libs.
21741   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'
21742   ;;
21743
21744 beos*)
21745   library_names_spec='${libname}${shared_ext}'
21746   dynamic_linker="$host_os ld.so"
21747   shlibpath_var=LIBRARY_PATH
21748   ;;
21749
21750 bsdi[45]*)
21751   version_type=linux
21752   need_version=no
21753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21754   soname_spec='${libname}${release}${shared_ext}$major'
21755   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21756   shlibpath_var=LD_LIBRARY_PATH
21757   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21758   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21759   # the default ld.so.conf also contains /usr/contrib/lib and
21760   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21761   # libtool to hard-code these into programs
21762   ;;
21763
21764 cygwin* | mingw* | pw32*)
21765   version_type=windows
21766   shrext_cmds=".dll"
21767   need_version=no
21768   need_lib_prefix=no
21769
21770   case $GCC,$host_os in
21771   yes,cygwin* | yes,mingw* | yes,pw32*)
21772     library_names_spec='$libname.dll.a'
21773     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21774     postinstall_cmds='base_file=`basename \${file}`~
21775       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21776       dldir=$destdir/`dirname \$dlpath`~
21777       test -d \$dldir || mkdir -p \$dldir~
21778       $install_prog $dir/$dlname \$dldir/$dlname~
21779       chmod a+x \$dldir/$dlname'
21780     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21781       dlpath=$dir/\$dldll~
21782        $rm \$dlpath'
21783     shlibpath_overrides_runpath=yes
21784
21785     case $host_os in
21786     cygwin*)
21787       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21788       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21789       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21790       ;;
21791     mingw*)
21792       # MinGW DLLs use traditional 'lib' prefix
21793       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21794       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21795       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21796         # It is most probably a Windows format PATH printed by
21797         # mingw gcc, but we are running on Cygwin. Gcc prints its search
21798         # path with ; separators, and with drive letters. We can handle the
21799         # drive letters (cygwin fileutils understands them), so leave them,
21800         # especially as we might pass files found there to a mingw objdump,
21801         # which wouldn't understand a cygwinified path. Ahh.
21802         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21803       else
21804         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21805       fi
21806       ;;
21807     pw32*)
21808       # pw32 DLLs use 'pw' prefix rather than 'lib'
21809       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21810       ;;
21811     esac
21812     ;;
21813
21814   *)
21815     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21816     ;;
21817   esac
21818   dynamic_linker='Win32 ld.exe'
21819   # FIXME: first we should search . and the directory the executable is in
21820   shlibpath_var=PATH
21821   ;;
21822
21823 darwin* | rhapsody*)
21824   dynamic_linker="$host_os dyld"
21825   version_type=darwin
21826   need_lib_prefix=no
21827   need_version=no
21828   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21829   soname_spec='${libname}${release}${major}$shared_ext'
21830   shlibpath_overrides_runpath=yes
21831   shlibpath_var=DYLD_LIBRARY_PATH
21832   shrext_cmds='.dylib'
21833   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21834   if test "$GCC" = yes; then
21835     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"`
21836   else
21837     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21838   fi
21839   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21840   ;;
21841
21842 dgux*)
21843   version_type=linux
21844   need_lib_prefix=no
21845   need_version=no
21846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21847   soname_spec='${libname}${release}${shared_ext}$major'
21848   shlibpath_var=LD_LIBRARY_PATH
21849   ;;
21850
21851 freebsd1*)
21852   dynamic_linker=no
21853   ;;
21854
21855 kfreebsd*-gnu)
21856   version_type=linux
21857   need_lib_prefix=no
21858   need_version=no
21859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21860   soname_spec='${libname}${release}${shared_ext}$major'
21861   shlibpath_var=LD_LIBRARY_PATH
21862   shlibpath_overrides_runpath=no
21863   hardcode_into_libs=yes
21864   dynamic_linker='GNU ld.so'
21865   ;;
21866
21867 freebsd* | dragonfly*)
21868   # DragonFly does not have aout.  When/if they implement a new
21869   # versioning mechanism, adjust this.
21870   if test -x /usr/bin/objformat; then
21871     objformat=`/usr/bin/objformat`
21872   else
21873     case $host_os in
21874     freebsd[123]*) objformat=aout ;;
21875     *) objformat=elf ;;
21876     esac
21877   fi
21878   version_type=freebsd-$objformat
21879   case $version_type in
21880     freebsd-elf*)
21881       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21882       need_version=no
21883       need_lib_prefix=no
21884       ;;
21885     freebsd-*)
21886       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21887       need_version=yes
21888       ;;
21889   esac
21890   shlibpath_var=LD_LIBRARY_PATH
21891   case $host_os in
21892   freebsd2*)
21893     shlibpath_overrides_runpath=yes
21894     ;;
21895   freebsd3.[01]* | freebsdelf3.[01]*)
21896     shlibpath_overrides_runpath=yes
21897     hardcode_into_libs=yes
21898     ;;
21899   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21900   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21901     shlibpath_overrides_runpath=no
21902     hardcode_into_libs=yes
21903     ;;
21904   freebsd*) # from 4.6 on
21905     shlibpath_overrides_runpath=yes
21906     hardcode_into_libs=yes
21907     ;;
21908   esac
21909   ;;
21910
21911 gnu*)
21912   version_type=linux
21913   need_lib_prefix=no
21914   need_version=no
21915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21916   soname_spec='${libname}${release}${shared_ext}$major'
21917   shlibpath_var=LD_LIBRARY_PATH
21918   hardcode_into_libs=yes
21919   ;;
21920
21921 hpux9* | hpux10* | hpux11*)
21922   # Give a soname corresponding to the major version so that dld.sl refuses to
21923   # link against other versions.
21924   version_type=sunos
21925   need_lib_prefix=no
21926   need_version=no
21927   case $host_cpu in
21928   ia64*)
21929     shrext_cmds='.so'
21930     hardcode_into_libs=yes
21931     dynamic_linker="$host_os dld.so"
21932     shlibpath_var=LD_LIBRARY_PATH
21933     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21935     soname_spec='${libname}${release}${shared_ext}$major'
21936     if test "X$HPUX_IA64_MODE" = X32; then
21937       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21938     else
21939       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21940     fi
21941     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21942     ;;
21943    hppa*64*)
21944      shrext_cmds='.sl'
21945      hardcode_into_libs=yes
21946      dynamic_linker="$host_os dld.sl"
21947      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21948      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21949      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21950      soname_spec='${libname}${release}${shared_ext}$major'
21951      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21952      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21953      ;;
21954    *)
21955     shrext_cmds='.sl'
21956     dynamic_linker="$host_os dld.sl"
21957     shlibpath_var=SHLIB_PATH
21958     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21959     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21960     soname_spec='${libname}${release}${shared_ext}$major'
21961     ;;
21962   esac
21963   # HP-UX runs *really* slowly unless shared libraries are mode 555.
21964   postinstall_cmds='chmod 555 $lib'
21965   ;;
21966
21967 interix3*)
21968   version_type=linux
21969   need_lib_prefix=no
21970   need_version=no
21971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21972   soname_spec='${libname}${release}${shared_ext}$major'
21973   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21974   shlibpath_var=LD_LIBRARY_PATH
21975   shlibpath_overrides_runpath=no
21976   hardcode_into_libs=yes
21977   ;;
21978
21979 irix5* | irix6* | nonstopux*)
21980   case $host_os in
21981     nonstopux*) version_type=nonstopux ;;
21982     *)
21983         if test "$lt_cv_prog_gnu_ld" = yes; then
21984                 version_type=linux
21985         else
21986                 version_type=irix
21987         fi ;;
21988   esac
21989   need_lib_prefix=no
21990   need_version=no
21991   soname_spec='${libname}${release}${shared_ext}$major'
21992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21993   case $host_os in
21994   irix5* | nonstopux*)
21995     libsuff= shlibsuff=
21996     ;;
21997   *)
21998     case $LD in # libtool.m4 will add one of these switches to LD
21999     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22000       libsuff= shlibsuff= libmagic=32-bit;;
22001     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22002       libsuff=32 shlibsuff=N32 libmagic=N32;;
22003     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22004       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22005     *) libsuff= shlibsuff= libmagic=never-match;;
22006     esac
22007     ;;
22008   esac
22009   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22010   shlibpath_overrides_runpath=no
22011   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22012   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22013   hardcode_into_libs=yes
22014   ;;
22015
22016 # No shared lib support for Linux oldld, aout, or coff.
22017 linux*oldld* | linux*aout* | linux*coff*)
22018   dynamic_linker=no
22019   ;;
22020
22021 # This must be Linux ELF.
22022 linux*)
22023   version_type=linux
22024   need_lib_prefix=no
22025   need_version=no
22026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22027   soname_spec='${libname}${release}${shared_ext}$major'
22028   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22029   shlibpath_var=LD_LIBRARY_PATH
22030   shlibpath_overrides_runpath=no
22031   # This implies no fast_install, which is unacceptable.
22032   # Some rework will be needed to allow for fast_install
22033   # before this can be enabled.
22034   hardcode_into_libs=yes
22035
22036   # Append ld.so.conf contents to the search path
22037   if test -f /etc/ld.so.conf; then
22038     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' ' '`
22039     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22040   fi
22041
22042   # We used to test for /lib/ld.so.1 and disable shared libraries on
22043   # powerpc, because MkLinux only supported shared libraries with the
22044   # GNU dynamic linker.  Since this was broken with cross compilers,
22045   # most powerpc-linux boxes support dynamic linking these days and
22046   # people can always --disable-shared, the test was removed, and we
22047   # assume the GNU/Linux dynamic linker is in use.
22048   dynamic_linker='GNU/Linux ld.so'
22049   ;;
22050
22051 knetbsd*-gnu)
22052   version_type=linux
22053   need_lib_prefix=no
22054   need_version=no
22055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22056   soname_spec='${libname}${release}${shared_ext}$major'
22057   shlibpath_var=LD_LIBRARY_PATH
22058   shlibpath_overrides_runpath=no
22059   hardcode_into_libs=yes
22060   dynamic_linker='GNU ld.so'
22061   ;;
22062
22063 netbsd*)
22064   version_type=sunos
22065   need_lib_prefix=no
22066   need_version=no
22067   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22068     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22069     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22070     dynamic_linker='NetBSD (a.out) ld.so'
22071   else
22072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22073     soname_spec='${libname}${release}${shared_ext}$major'
22074     dynamic_linker='NetBSD ld.elf_so'
22075   fi
22076   shlibpath_var=LD_LIBRARY_PATH
22077   shlibpath_overrides_runpath=yes
22078   hardcode_into_libs=yes
22079   ;;
22080
22081 newsos6)
22082   version_type=linux
22083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22084   shlibpath_var=LD_LIBRARY_PATH
22085   shlibpath_overrides_runpath=yes
22086   ;;
22087
22088 nto-qnx*)
22089   version_type=linux
22090   need_lib_prefix=no
22091   need_version=no
22092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22093   soname_spec='${libname}${release}${shared_ext}$major'
22094   shlibpath_var=LD_LIBRARY_PATH
22095   shlibpath_overrides_runpath=yes
22096   ;;
22097
22098 openbsd*)
22099   version_type=sunos
22100   sys_lib_dlsearch_path_spec="/usr/lib"
22101   need_lib_prefix=no
22102   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22103   case $host_os in
22104     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22105     *)                         need_version=no  ;;
22106   esac
22107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22108   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22109   shlibpath_var=LD_LIBRARY_PATH
22110   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22111     case $host_os in
22112       openbsd2.[89] | openbsd2.[89].*)
22113         shlibpath_overrides_runpath=no
22114         ;;
22115       *)
22116         shlibpath_overrides_runpath=yes
22117         ;;
22118       esac
22119   else
22120     shlibpath_overrides_runpath=yes
22121   fi
22122   ;;
22123
22124 os2*)
22125   libname_spec='$name'
22126   shrext_cmds=".dll"
22127   need_lib_prefix=no
22128   library_names_spec='$libname${shared_ext} $libname.a'
22129   dynamic_linker='OS/2 ld.exe'
22130   shlibpath_var=LIBPATH
22131   ;;
22132
22133 osf3* | osf4* | osf5*)
22134   version_type=osf
22135   need_lib_prefix=no
22136   need_version=no
22137   soname_spec='${libname}${release}${shared_ext}$major'
22138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22139   shlibpath_var=LD_LIBRARY_PATH
22140   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22141   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22142   ;;
22143
22144 solaris*)
22145   version_type=linux
22146   need_lib_prefix=no
22147   need_version=no
22148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22149   soname_spec='${libname}${release}${shared_ext}$major'
22150   shlibpath_var=LD_LIBRARY_PATH
22151   shlibpath_overrides_runpath=yes
22152   hardcode_into_libs=yes
22153   # ldd complains unless libraries are executable
22154   postinstall_cmds='chmod +x $lib'
22155   ;;
22156
22157 sunos4*)
22158   version_type=sunos
22159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22160   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22161   shlibpath_var=LD_LIBRARY_PATH
22162   shlibpath_overrides_runpath=yes
22163   if test "$with_gnu_ld" = yes; then
22164     need_lib_prefix=no
22165   fi
22166   need_version=yes
22167   ;;
22168
22169 sysv4 | sysv4.3*)
22170   version_type=linux
22171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22172   soname_spec='${libname}${release}${shared_ext}$major'
22173   shlibpath_var=LD_LIBRARY_PATH
22174   case $host_vendor in
22175     sni)
22176       shlibpath_overrides_runpath=no
22177       need_lib_prefix=no
22178       export_dynamic_flag_spec='${wl}-Blargedynsym'
22179       runpath_var=LD_RUN_PATH
22180       ;;
22181     siemens)
22182       need_lib_prefix=no
22183       ;;
22184     motorola)
22185       need_lib_prefix=no
22186       need_version=no
22187       shlibpath_overrides_runpath=no
22188       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22189       ;;
22190   esac
22191   ;;
22192
22193 sysv4*MP*)
22194   if test -d /usr/nec ;then
22195     version_type=linux
22196     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22197     soname_spec='$libname${shared_ext}.$major'
22198     shlibpath_var=LD_LIBRARY_PATH
22199   fi
22200   ;;
22201
22202 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22203   version_type=freebsd-elf
22204   need_lib_prefix=no
22205   need_version=no
22206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22207   soname_spec='${libname}${release}${shared_ext}$major'
22208   shlibpath_var=LD_LIBRARY_PATH
22209   hardcode_into_libs=yes
22210   if test "$with_gnu_ld" = yes; then
22211     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22212     shlibpath_overrides_runpath=no
22213   else
22214     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22215     shlibpath_overrides_runpath=yes
22216     case $host_os in
22217       sco3.2v5*)
22218         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22219         ;;
22220     esac
22221   fi
22222   sys_lib_dlsearch_path_spec='/usr/lib'
22223   ;;
22224
22225 uts4*)
22226   version_type=linux
22227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22228   soname_spec='${libname}${release}${shared_ext}$major'
22229   shlibpath_var=LD_LIBRARY_PATH
22230   ;;
22231
22232 *)
22233   dynamic_linker=no
22234   ;;
22235 esac
22236 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22237 echo "${ECHO_T}$dynamic_linker" >&6; }
22238 test "$dynamic_linker" = no && can_build_shared=no
22239
22240 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22241 if test "$GCC" = yes; then
22242   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22243 fi
22244
22245 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22246 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22247 hardcode_action_F77=
22248 if test -n "$hardcode_libdir_flag_spec_F77" || \
22249    test -n "$runpath_var_F77" || \
22250    test "X$hardcode_automatic_F77" = "Xyes" ; then
22251
22252   # We can hardcode non-existant directories.
22253   if test "$hardcode_direct_F77" != no &&
22254      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22255      # have to relink, otherwise we might link with an installed library
22256      # when we should be linking with a yet-to-be-installed one
22257      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22258      test "$hardcode_minus_L_F77" != no; then
22259     # Linking always hardcodes the temporary library directory.
22260     hardcode_action_F77=relink
22261   else
22262     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22263     hardcode_action_F77=immediate
22264   fi
22265 else
22266   # We cannot hardcode anything, or else we can only hardcode existing
22267   # directories.
22268   hardcode_action_F77=unsupported
22269 fi
22270 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22271 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22272
22273 if test "$hardcode_action_F77" = relink; then
22274   # Fast installation is not supported
22275   enable_fast_install=no
22276 elif test "$shlibpath_overrides_runpath" = yes ||
22277      test "$enable_shared" = no; then
22278   # Fast installation is not necessary
22279   enable_fast_install=needless
22280 fi
22281
22282
22283 # The else clause should only fire when bootstrapping the
22284 # libtool distribution, otherwise you forgot to ship ltmain.sh
22285 # with your package, and you will get complaints that there are
22286 # no rules to generate ltmain.sh.
22287 if test -f "$ltmain"; then
22288   # See if we are running on zsh, and set the options which allow our commands through
22289   # without removal of \ escapes.
22290   if test -n "${ZSH_VERSION+set}" ; then
22291     setopt NO_GLOB_SUBST
22292   fi
22293   # Now quote all the things that may contain metacharacters while being
22294   # careful not to overquote the AC_SUBSTed values.  We take copies of the
22295   # variables and quote the copies for generation of the libtool script.
22296   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22297     SED SHELL STRIP \
22298     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22299     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22300     deplibs_check_method reload_flag reload_cmds need_locks \
22301     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22302     lt_cv_sys_global_symbol_to_c_name_address \
22303     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22304     old_postinstall_cmds old_postuninstall_cmds \
22305     compiler_F77 \
22306     CC_F77 \
22307     LD_F77 \
22308     lt_prog_compiler_wl_F77 \
22309     lt_prog_compiler_pic_F77 \
22310     lt_prog_compiler_static_F77 \
22311     lt_prog_compiler_no_builtin_flag_F77 \
22312     export_dynamic_flag_spec_F77 \
22313     thread_safe_flag_spec_F77 \
22314     whole_archive_flag_spec_F77 \
22315     enable_shared_with_static_runtimes_F77 \
22316     old_archive_cmds_F77 \
22317     old_archive_from_new_cmds_F77 \
22318     predep_objects_F77 \
22319     postdep_objects_F77 \
22320     predeps_F77 \
22321     postdeps_F77 \
22322     compiler_lib_search_path_F77 \
22323     archive_cmds_F77 \
22324     archive_expsym_cmds_F77 \
22325     postinstall_cmds_F77 \
22326     postuninstall_cmds_F77 \
22327     old_archive_from_expsyms_cmds_F77 \
22328     allow_undefined_flag_F77 \
22329     no_undefined_flag_F77 \
22330     export_symbols_cmds_F77 \
22331     hardcode_libdir_flag_spec_F77 \
22332     hardcode_libdir_flag_spec_ld_F77 \
22333     hardcode_libdir_separator_F77 \
22334     hardcode_automatic_F77 \
22335     module_cmds_F77 \
22336     module_expsym_cmds_F77 \
22337     lt_cv_prog_compiler_c_o_F77 \
22338     exclude_expsyms_F77 \
22339     include_expsyms_F77; do
22340
22341     case $var in
22342     old_archive_cmds_F77 | \
22343     old_archive_from_new_cmds_F77 | \
22344     archive_cmds_F77 | \
22345     archive_expsym_cmds_F77 | \
22346     module_cmds_F77 | \
22347     module_expsym_cmds_F77 | \
22348     old_archive_from_expsyms_cmds_F77 | \
22349     export_symbols_cmds_F77 | \
22350     extract_expsyms_cmds | reload_cmds | finish_cmds | \
22351     postinstall_cmds | postuninstall_cmds | \
22352     old_postinstall_cmds | old_postuninstall_cmds | \
22353     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22354       # Double-quote double-evaled strings.
22355       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22356       ;;
22357     *)
22358       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22359       ;;
22360     esac
22361   done
22362
22363   case $lt_echo in
22364   *'\$0 --fallback-echo"')
22365     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22366     ;;
22367   esac
22368
22369 cfgfile="$ofile"
22370
22371   cat <<__EOF__ >> "$cfgfile"
22372 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22373
22374 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22375
22376 # Shell to use when invoking shell scripts.
22377 SHELL=$lt_SHELL
22378
22379 # Whether or not to build shared libraries.
22380 build_libtool_libs=$enable_shared
22381
22382 # Whether or not to build static libraries.
22383 build_old_libs=$enable_static
22384
22385 # Whether or not to add -lc for building shared libraries.
22386 build_libtool_need_lc=$archive_cmds_need_lc_F77
22387
22388 # Whether or not to disallow shared libs when runtime libs are static
22389 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22390
22391 # Whether or not to optimize for fast installation.
22392 fast_install=$enable_fast_install
22393
22394 # The host system.
22395 host_alias=$host_alias
22396 host=$host
22397 host_os=$host_os
22398
22399 # The build system.
22400 build_alias=$build_alias
22401 build=$build
22402 build_os=$build_os
22403
22404 # An echo program that does not interpret backslashes.
22405 echo=$lt_echo
22406
22407 # The archiver.
22408 AR=$lt_AR
22409 AR_FLAGS=$lt_AR_FLAGS
22410
22411 # A C compiler.
22412 LTCC=$lt_LTCC
22413
22414 # LTCC compiler flags.
22415 LTCFLAGS=$lt_LTCFLAGS
22416
22417 # A language-specific compiler.
22418 CC=$lt_compiler_F77
22419
22420 # Is the compiler the GNU C compiler?
22421 with_gcc=$GCC_F77
22422
22423 # An ERE matcher.
22424 EGREP=$lt_EGREP
22425
22426 # The linker used to build libraries.
22427 LD=$lt_LD_F77
22428
22429 # Whether we need hard or soft links.
22430 LN_S=$lt_LN_S
22431
22432 # A BSD-compatible nm program.
22433 NM=$lt_NM
22434
22435 # A symbol stripping program
22436 STRIP=$lt_STRIP
22437
22438 # Used to examine libraries when file_magic_cmd begins "file"
22439 MAGIC_CMD=$MAGIC_CMD
22440
22441 # Used on cygwin: DLL creation program.
22442 DLLTOOL="$DLLTOOL"
22443
22444 # Used on cygwin: object dumper.
22445 OBJDUMP="$OBJDUMP"
22446
22447 # Used on cygwin: assembler.
22448 AS="$AS"
22449
22450 # The name of the directory that contains temporary libtool files.
22451 objdir=$objdir
22452
22453 # How to create reloadable object files.
22454 reload_flag=$lt_reload_flag
22455 reload_cmds=$lt_reload_cmds
22456
22457 # How to pass a linker flag through the compiler.
22458 wl=$lt_lt_prog_compiler_wl_F77
22459
22460 # Object file suffix (normally "o").
22461 objext="$ac_objext"
22462
22463 # Old archive suffix (normally "a").
22464 libext="$libext"
22465
22466 # Shared library suffix (normally ".so").
22467 shrext_cmds='$shrext_cmds'
22468
22469 # Executable file suffix (normally "").
22470 exeext="$exeext"
22471
22472 # Additional compiler flags for building library objects.
22473 pic_flag=$lt_lt_prog_compiler_pic_F77
22474 pic_mode=$pic_mode
22475
22476 # What is the maximum length of a command?
22477 max_cmd_len=$lt_cv_sys_max_cmd_len
22478
22479 # Does compiler simultaneously support -c and -o options?
22480 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22481
22482 # Must we lock files when doing compilation?
22483 need_locks=$lt_need_locks
22484
22485 # Do we need the lib prefix for modules?
22486 need_lib_prefix=$need_lib_prefix
22487
22488 # Do we need a version for libraries?
22489 need_version=$need_version
22490
22491 # Whether dlopen is supported.
22492 dlopen_support=$enable_dlopen
22493
22494 # Whether dlopen of programs is supported.
22495 dlopen_self=$enable_dlopen_self
22496
22497 # Whether dlopen of statically linked programs is supported.
22498 dlopen_self_static=$enable_dlopen_self_static
22499
22500 # Compiler flag to prevent dynamic linking.
22501 link_static_flag=$lt_lt_prog_compiler_static_F77
22502
22503 # Compiler flag to turn off builtin functions.
22504 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22505
22506 # Compiler flag to allow reflexive dlopens.
22507 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22508
22509 # Compiler flag to generate shared objects directly from archives.
22510 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22511
22512 # Compiler flag to generate thread-safe objects.
22513 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22514
22515 # Library versioning type.
22516 version_type=$version_type
22517
22518 # Format of library name prefix.
22519 libname_spec=$lt_libname_spec
22520
22521 # List of archive names.  First name is the real one, the rest are links.
22522 # The last name is the one that the linker finds with -lNAME.
22523 library_names_spec=$lt_library_names_spec
22524
22525 # The coded name of the library, if different from the real name.
22526 soname_spec=$lt_soname_spec
22527
22528 # Commands used to build and install an old-style archive.
22529 RANLIB=$lt_RANLIB
22530 old_archive_cmds=$lt_old_archive_cmds_F77
22531 old_postinstall_cmds=$lt_old_postinstall_cmds
22532 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22533
22534 # Create an old-style archive from a shared archive.
22535 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22536
22537 # Create a temporary old-style archive to link instead of a shared archive.
22538 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22539
22540 # Commands used to build and install a shared archive.
22541 archive_cmds=$lt_archive_cmds_F77
22542 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22543 postinstall_cmds=$lt_postinstall_cmds
22544 postuninstall_cmds=$lt_postuninstall_cmds
22545
22546 # Commands used to build a loadable module (assumed same as above if empty)
22547 module_cmds=$lt_module_cmds_F77
22548 module_expsym_cmds=$lt_module_expsym_cmds_F77
22549
22550 # Commands to strip libraries.
22551 old_striplib=$lt_old_striplib
22552 striplib=$lt_striplib
22553
22554 # Dependencies to place before the objects being linked to create a
22555 # shared library.
22556 predep_objects=$lt_predep_objects_F77
22557
22558 # Dependencies to place after the objects being linked to create a
22559 # shared library.
22560 postdep_objects=$lt_postdep_objects_F77
22561
22562 # Dependencies to place before the objects being linked to create a
22563 # shared library.
22564 predeps=$lt_predeps_F77
22565
22566 # Dependencies to place after the objects being linked to create a
22567 # shared library.
22568 postdeps=$lt_postdeps_F77
22569
22570 # The library search path used internally by the compiler when linking
22571 # a shared library.
22572 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22573
22574 # Method to check whether dependent libraries are shared objects.
22575 deplibs_check_method=$lt_deplibs_check_method
22576
22577 # Command to use when deplibs_check_method == file_magic.
22578 file_magic_cmd=$lt_file_magic_cmd
22579
22580 # Flag that allows shared libraries with undefined symbols to be built.
22581 allow_undefined_flag=$lt_allow_undefined_flag_F77
22582
22583 # Flag that forces no undefined symbols.
22584 no_undefined_flag=$lt_no_undefined_flag_F77
22585
22586 # Commands used to finish a libtool library installation in a directory.
22587 finish_cmds=$lt_finish_cmds
22588
22589 # Same as above, but a single script fragment to be evaled but not shown.
22590 finish_eval=$lt_finish_eval
22591
22592 # Take the output of nm and produce a listing of raw symbols and C names.
22593 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22594
22595 # Transform the output of nm in a proper C declaration
22596 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22597
22598 # Transform the output of nm in a C name address pair
22599 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22600
22601 # This is the shared library runtime path variable.
22602 runpath_var=$runpath_var
22603
22604 # This is the shared library path variable.
22605 shlibpath_var=$shlibpath_var
22606
22607 # Is shlibpath searched before the hard-coded library search path?
22608 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22609
22610 # How to hardcode a shared library path into an executable.
22611 hardcode_action=$hardcode_action_F77
22612
22613 # Whether we should hardcode library paths into libraries.
22614 hardcode_into_libs=$hardcode_into_libs
22615
22616 # Flag to hardcode \$libdir into a binary during linking.
22617 # This must work even if \$libdir does not exist.
22618 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22619
22620 # If ld is used when linking, flag to hardcode \$libdir into
22621 # a binary during linking. This must work even if \$libdir does
22622 # not exist.
22623 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22624
22625 # Whether we need a single -rpath flag with a separated argument.
22626 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22627
22628 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22629 # resulting binary.
22630 hardcode_direct=$hardcode_direct_F77
22631
22632 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22633 # resulting binary.
22634 hardcode_minus_L=$hardcode_minus_L_F77
22635
22636 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22637 # the resulting binary.
22638 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22639
22640 # Set to yes if building a shared library automatically hardcodes DIR into the library
22641 # and all subsequent libraries and executables linked against it.
22642 hardcode_automatic=$hardcode_automatic_F77
22643
22644 # Variables whose values should be saved in libtool wrapper scripts and
22645 # restored at relink time.
22646 variables_saved_for_relink="$variables_saved_for_relink"
22647
22648 # Whether libtool must link a program against all its dependency libraries.
22649 link_all_deplibs=$link_all_deplibs_F77
22650
22651 # Compile-time system search path for libraries
22652 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22653
22654 # Run-time system search path for libraries
22655 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22656
22657 # Fix the shell variable \$srcfile for the compiler.
22658 fix_srcfile_path="$fix_srcfile_path_F77"
22659
22660 # Set to yes if exported symbols are required.
22661 always_export_symbols=$always_export_symbols_F77
22662
22663 # The commands to list exported symbols.
22664 export_symbols_cmds=$lt_export_symbols_cmds_F77
22665
22666 # The commands to extract the exported symbol list from a shared archive.
22667 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22668
22669 # Symbols that should not be listed in the preloaded symbols.
22670 exclude_expsyms=$lt_exclude_expsyms_F77
22671
22672 # Symbols that must always be exported.
22673 include_expsyms=$lt_include_expsyms_F77
22674
22675 # ### END LIBTOOL TAG CONFIG: $tagname
22676
22677 __EOF__
22678
22679
22680 else
22681   # If there is no Makefile yet, we rely on a make rule to execute
22682   # `config.status --recheck' to rerun these tests and create the
22683   # libtool script then.
22684   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22685   if test -f "$ltmain_in"; then
22686     test -f Makefile && make "$ltmain"
22687   fi
22688 fi
22689
22690
22691 ac_ext=c
22692 ac_cpp='$CPP $CPPFLAGS'
22693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22696
22697 CC="$lt_save_CC"
22698
22699         else
22700           tagname=""
22701         fi
22702         ;;
22703
22704       GCJ)
22705         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22706           ac_ext=c
22707 ac_cpp='$CPP $CPPFLAGS'
22708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22711
22712
22713 # Source file extension for Java test sources.
22714 ac_ext=java
22715
22716 # Object file extension for compiled Java test sources.
22717 objext=o
22718 objext_GCJ=$objext
22719
22720 # Code to be used in simple compile tests
22721 lt_simple_compile_test_code="class foo {}\n"
22722
22723 # Code to be used in simple link tests
22724 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22725
22726 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22727
22728 # If no C compiler was specified, use CC.
22729 LTCC=${LTCC-"$CC"}
22730
22731 # If no C compiler flags were specified, use CFLAGS.
22732 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22733
22734 # Allow CC to be a program name with arguments.
22735 compiler=$CC
22736
22737
22738 # save warnings/boilerplate of simple test code
22739 ac_outfile=conftest.$ac_objext
22740 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22741 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22742 _lt_compiler_boilerplate=`cat conftest.err`
22743 $rm conftest*
22744
22745 ac_outfile=conftest.$ac_objext
22746 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22747 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22748 _lt_linker_boilerplate=`cat conftest.err`
22749 $rm conftest*
22750
22751
22752 # Allow CC to be a program name with arguments.
22753 lt_save_CC="$CC"
22754 CC=${GCJ-"gcj"}
22755 compiler=$CC
22756 compiler_GCJ=$CC
22757 for cc_temp in $compiler""; do
22758   case $cc_temp in
22759     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22760     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22761     \-*) ;;
22762     *) break;;
22763   esac
22764 done
22765 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22766
22767
22768 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22769 archive_cmds_need_lc_GCJ=no
22770
22771 old_archive_cmds_GCJ=$old_archive_cmds
22772
22773 ## CAVEAT EMPTOR:
22774 ## There is no encapsulation within the following macros, do not change
22775 ## the running order or otherwise move them around unless you know exactly
22776 ## what you are doing...
22777
22778 lt_prog_compiler_no_builtin_flag_GCJ=
22779
22780 if test "$GCC" = yes; then
22781   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22782
22783
22784 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22785 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
22786 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22787   echo $ECHO_N "(cached) $ECHO_C" >&6
22788 else
22789   lt_cv_prog_compiler_rtti_exceptions=no
22790   ac_outfile=conftest.$ac_objext
22791    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22792    lt_compiler_flag="-fno-rtti -fno-exceptions"
22793    # Insert the option either (1) after the last *FLAGS variable, or
22794    # (2) before a word containing "conftest.", or (3) at the end.
22795    # Note that $ac_compile itself does not contain backslashes and begins
22796    # with a dollar sign (not a hyphen), so the echo should work correctly.
22797    # The option is referenced via a variable to avoid confusing sed.
22798    lt_compile=`echo "$ac_compile" | $SED \
22799    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22800    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22801    -e 's:$: $lt_compiler_flag:'`
22802    (eval echo "\"\$as_me:22802: $lt_compile\"" >&5)
22803    (eval "$lt_compile" 2>conftest.err)
22804    ac_status=$?
22805    cat conftest.err >&5
22806    echo "$as_me:22806: \$? = $ac_status" >&5
22807    if (exit $ac_status) && test -s "$ac_outfile"; then
22808      # The compiler can only warn and ignore the option if not recognized
22809      # So say no if there are warnings other than the usual output.
22810      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22811      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22812      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22813        lt_cv_prog_compiler_rtti_exceptions=yes
22814      fi
22815    fi
22816    $rm conftest*
22817
22818 fi
22819 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22820 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
22821
22822 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22823     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22824 else
22825     :
22826 fi
22827
22828 fi
22829
22830 lt_prog_compiler_wl_GCJ=
22831 lt_prog_compiler_pic_GCJ=
22832 lt_prog_compiler_static_GCJ=
22833
22834 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22835 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
22836
22837   if test "$GCC" = yes; then
22838     lt_prog_compiler_wl_GCJ='-Wl,'
22839     lt_prog_compiler_static_GCJ='-static'
22840
22841     case $host_os in
22842       aix*)
22843       # All AIX code is PIC.
22844       if test "$host_cpu" = ia64; then
22845         # AIX 5 now supports IA64 processor
22846         lt_prog_compiler_static_GCJ='-Bstatic'
22847       fi
22848       ;;
22849
22850     amigaos*)
22851       # FIXME: we need at least 68020 code to build shared libraries, but
22852       # adding the `-m68020' flag to GCC prevents building anything better,
22853       # like `-m68040'.
22854       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22855       ;;
22856
22857     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22858       # PIC is the default for these OSes.
22859       ;;
22860
22861     mingw* | pw32* | os2*)
22862       # This hack is so that the source file can tell whether it is being
22863       # built for inclusion in a dll (and should export symbols for example).
22864       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22865       ;;
22866
22867     darwin* | rhapsody*)
22868       # PIC is the default on this platform
22869       # Common symbols not allowed in MH_DYLIB files
22870       lt_prog_compiler_pic_GCJ='-fno-common'
22871       ;;
22872
22873     interix3*)
22874       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22875       # Instead, we relocate shared libraries at runtime.
22876       ;;
22877
22878     msdosdjgpp*)
22879       # Just because we use GCC doesn't mean we suddenly get shared libraries
22880       # on systems that don't support them.
22881       lt_prog_compiler_can_build_shared_GCJ=no
22882       enable_shared=no
22883       ;;
22884
22885     sysv4*MP*)
22886       if test -d /usr/nec; then
22887         lt_prog_compiler_pic_GCJ=-Kconform_pic
22888       fi
22889       ;;
22890
22891     hpux*)
22892       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22893       # not for PA HP-UX.
22894       case $host_cpu in
22895       hppa*64*|ia64*)
22896         # +Z the default
22897         ;;
22898       *)
22899         lt_prog_compiler_pic_GCJ='-fPIC'
22900         ;;
22901       esac
22902       ;;
22903
22904     *)
22905       lt_prog_compiler_pic_GCJ='-fPIC'
22906       ;;
22907     esac
22908   else
22909     # PORTME Check for flag to pass linker flags through the system compiler.
22910     case $host_os in
22911     aix*)
22912       lt_prog_compiler_wl_GCJ='-Wl,'
22913       if test "$host_cpu" = ia64; then
22914         # AIX 5 now supports IA64 processor
22915         lt_prog_compiler_static_GCJ='-Bstatic'
22916       else
22917         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22918       fi
22919       ;;
22920       darwin*)
22921         # PIC is the default on this platform
22922         # Common symbols not allowed in MH_DYLIB files
22923        case $cc_basename in
22924          xlc*)
22925          lt_prog_compiler_pic_GCJ='-qnocommon'
22926          lt_prog_compiler_wl_GCJ='-Wl,'
22927          ;;
22928        esac
22929        ;;
22930
22931     mingw* | pw32* | os2*)
22932       # This hack is so that the source file can tell whether it is being
22933       # built for inclusion in a dll (and should export symbols for example).
22934       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22935       ;;
22936
22937     hpux9* | hpux10* | hpux11*)
22938       lt_prog_compiler_wl_GCJ='-Wl,'
22939       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22940       # not for PA HP-UX.
22941       case $host_cpu in
22942       hppa*64*|ia64*)
22943         # +Z the default
22944         ;;
22945       *)
22946         lt_prog_compiler_pic_GCJ='+Z'
22947         ;;
22948       esac
22949       # Is there a better lt_prog_compiler_static that works with the bundled CC?
22950       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22951       ;;
22952
22953     irix5* | irix6* | nonstopux*)
22954       lt_prog_compiler_wl_GCJ='-Wl,'
22955       # PIC (with -KPIC) is the default.
22956       lt_prog_compiler_static_GCJ='-non_shared'
22957       ;;
22958
22959     newsos6)
22960       lt_prog_compiler_pic_GCJ='-KPIC'
22961       lt_prog_compiler_static_GCJ='-Bstatic'
22962       ;;
22963
22964     linux*)
22965       case $cc_basename in
22966       icc* | ecc*)
22967         lt_prog_compiler_wl_GCJ='-Wl,'
22968         lt_prog_compiler_pic_GCJ='-KPIC'
22969         lt_prog_compiler_static_GCJ='-static'
22970         ;;
22971       pgcc* | pgf77* | pgf90* | pgf95*)
22972         # Portland Group compilers (*not* the Pentium gcc compiler,
22973         # which looks to be a dead project)
22974         lt_prog_compiler_wl_GCJ='-Wl,'
22975         lt_prog_compiler_pic_GCJ='-fpic'
22976         lt_prog_compiler_static_GCJ='-Bstatic'
22977         ;;
22978       ccc*)
22979         lt_prog_compiler_wl_GCJ='-Wl,'
22980         # All Alpha code is PIC.
22981         lt_prog_compiler_static_GCJ='-non_shared'
22982         ;;
22983       esac
22984       ;;
22985
22986     osf3* | osf4* | osf5*)
22987       lt_prog_compiler_wl_GCJ='-Wl,'
22988       # All OSF/1 code is PIC.
22989       lt_prog_compiler_static_GCJ='-non_shared'
22990       ;;
22991
22992     solaris*)
22993       lt_prog_compiler_pic_GCJ='-KPIC'
22994       lt_prog_compiler_static_GCJ='-Bstatic'
22995       case $cc_basename in
22996       f77* | f90* | f95*)
22997         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22998       *)
22999         lt_prog_compiler_wl_GCJ='-Wl,';;
23000       esac
23001       ;;
23002
23003     sunos4*)
23004       lt_prog_compiler_wl_GCJ='-Qoption ld '
23005       lt_prog_compiler_pic_GCJ='-PIC'
23006       lt_prog_compiler_static_GCJ='-Bstatic'
23007       ;;
23008
23009     sysv4 | sysv4.2uw2* | sysv4.3*)
23010       lt_prog_compiler_wl_GCJ='-Wl,'
23011       lt_prog_compiler_pic_GCJ='-KPIC'
23012       lt_prog_compiler_static_GCJ='-Bstatic'
23013       ;;
23014
23015     sysv4*MP*)
23016       if test -d /usr/nec ;then
23017         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23018         lt_prog_compiler_static_GCJ='-Bstatic'
23019       fi
23020       ;;
23021
23022     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23023       lt_prog_compiler_wl_GCJ='-Wl,'
23024       lt_prog_compiler_pic_GCJ='-KPIC'
23025       lt_prog_compiler_static_GCJ='-Bstatic'
23026       ;;
23027
23028     unicos*)
23029       lt_prog_compiler_wl_GCJ='-Wl,'
23030       lt_prog_compiler_can_build_shared_GCJ=no
23031       ;;
23032
23033     uts4*)
23034       lt_prog_compiler_pic_GCJ='-pic'
23035       lt_prog_compiler_static_GCJ='-Bstatic'
23036       ;;
23037
23038     *)
23039       lt_prog_compiler_can_build_shared_GCJ=no
23040       ;;
23041     esac
23042   fi
23043
23044 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23045 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23046
23047 #
23048 # Check to make sure the PIC flag actually works.
23049 #
23050 if test -n "$lt_prog_compiler_pic_GCJ"; then
23051
23052 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23053 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23054 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23055   echo $ECHO_N "(cached) $ECHO_C" >&6
23056 else
23057   lt_prog_compiler_pic_works_GCJ=no
23058   ac_outfile=conftest.$ac_objext
23059    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23060    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23061    # Insert the option either (1) after the last *FLAGS variable, or
23062    # (2) before a word containing "conftest.", or (3) at the end.
23063    # Note that $ac_compile itself does not contain backslashes and begins
23064    # with a dollar sign (not a hyphen), so the echo should work correctly.
23065    # The option is referenced via a variable to avoid confusing sed.
23066    lt_compile=`echo "$ac_compile" | $SED \
23067    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23068    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23069    -e 's:$: $lt_compiler_flag:'`
23070    (eval echo "\"\$as_me:23070: $lt_compile\"" >&5)
23071    (eval "$lt_compile" 2>conftest.err)
23072    ac_status=$?
23073    cat conftest.err >&5
23074    echo "$as_me:23074: \$? = $ac_status" >&5
23075    if (exit $ac_status) && test -s "$ac_outfile"; then
23076      # The compiler can only warn and ignore the option if not recognized
23077      # So say no if there are warnings other than the usual output.
23078      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23079      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23080      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23081        lt_prog_compiler_pic_works_GCJ=yes
23082      fi
23083    fi
23084    $rm conftest*
23085
23086 fi
23087 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23088 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23089
23090 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23091     case $lt_prog_compiler_pic_GCJ in
23092      "" | " "*) ;;
23093      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23094      esac
23095 else
23096     lt_prog_compiler_pic_GCJ=
23097      lt_prog_compiler_can_build_shared_GCJ=no
23098 fi
23099
23100 fi
23101 case $host_os in
23102   # For platforms which do not support PIC, -DPIC is meaningless:
23103   *djgpp*)
23104     lt_prog_compiler_pic_GCJ=
23105     ;;
23106   *)
23107     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23108     ;;
23109 esac
23110
23111 #
23112 # Check to make sure the static flag actually works.
23113 #
23114 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23115 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23116 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23117 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23118   echo $ECHO_N "(cached) $ECHO_C" >&6
23119 else
23120   lt_prog_compiler_static_works_GCJ=no
23121    save_LDFLAGS="$LDFLAGS"
23122    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23123    printf "$lt_simple_link_test_code" > conftest.$ac_ext
23124    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23125      # The linker can only warn and ignore the option if not recognized
23126      # So say no if there are warnings
23127      if test -s conftest.err; then
23128        # Append any errors to the config.log.
23129        cat conftest.err 1>&5
23130        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23131        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23132        if diff conftest.exp conftest.er2 >/dev/null; then
23133          lt_prog_compiler_static_works_GCJ=yes
23134        fi
23135      else
23136        lt_prog_compiler_static_works_GCJ=yes
23137      fi
23138    fi
23139    $rm conftest*
23140    LDFLAGS="$save_LDFLAGS"
23141
23142 fi
23143 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23144 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23145
23146 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23147     :
23148 else
23149     lt_prog_compiler_static_GCJ=
23150 fi
23151
23152
23153 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23154 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23155 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23156   echo $ECHO_N "(cached) $ECHO_C" >&6
23157 else
23158   lt_cv_prog_compiler_c_o_GCJ=no
23159    $rm -r conftest 2>/dev/null
23160    mkdir conftest
23161    cd conftest
23162    mkdir out
23163    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23164
23165    lt_compiler_flag="-o out/conftest2.$ac_objext"
23166    # Insert the option either (1) after the last *FLAGS variable, or
23167    # (2) before a word containing "conftest.", or (3) at the end.
23168    # Note that $ac_compile itself does not contain backslashes and begins
23169    # with a dollar sign (not a hyphen), so the echo should work correctly.
23170    lt_compile=`echo "$ac_compile" | $SED \
23171    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23172    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23173    -e 's:$: $lt_compiler_flag:'`
23174    (eval echo "\"\$as_me:23174: $lt_compile\"" >&5)
23175    (eval "$lt_compile" 2>out/conftest.err)
23176    ac_status=$?
23177    cat out/conftest.err >&5
23178    echo "$as_me:23178: \$? = $ac_status" >&5
23179    if (exit $ac_status) && test -s out/conftest2.$ac_objext
23180    then
23181      # The compiler can only warn and ignore the option if not recognized
23182      # So say no if there are warnings
23183      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23184      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23185      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23186        lt_cv_prog_compiler_c_o_GCJ=yes
23187      fi
23188    fi
23189    chmod u+w . 2>&5
23190    $rm conftest*
23191    # SGI C++ compiler will create directory out/ii_files/ for
23192    # template instantiation
23193    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23194    $rm out/* && rmdir out
23195    cd ..
23196    rmdir conftest
23197    $rm conftest*
23198
23199 fi
23200 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23201 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23202
23203
23204 hard_links="nottested"
23205 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23206   # do not overwrite the value of need_locks provided by the user
23207   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23208 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23209   hard_links=yes
23210   $rm conftest*
23211   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23212   touch conftest.a
23213   ln conftest.a conftest.b 2>&5 || hard_links=no
23214   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23215   { echo "$as_me:$LINENO: result: $hard_links" >&5
23216 echo "${ECHO_T}$hard_links" >&6; }
23217   if test "$hard_links" = no; then
23218     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23219 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23220     need_locks=warn
23221   fi
23222 else
23223   need_locks=no
23224 fi
23225
23226 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23227 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23228
23229   runpath_var=
23230   allow_undefined_flag_GCJ=
23231   enable_shared_with_static_runtimes_GCJ=no
23232   archive_cmds_GCJ=
23233   archive_expsym_cmds_GCJ=
23234   old_archive_From_new_cmds_GCJ=
23235   old_archive_from_expsyms_cmds_GCJ=
23236   export_dynamic_flag_spec_GCJ=
23237   whole_archive_flag_spec_GCJ=
23238   thread_safe_flag_spec_GCJ=
23239   hardcode_libdir_flag_spec_GCJ=
23240   hardcode_libdir_flag_spec_ld_GCJ=
23241   hardcode_libdir_separator_GCJ=
23242   hardcode_direct_GCJ=no
23243   hardcode_minus_L_GCJ=no
23244   hardcode_shlibpath_var_GCJ=unsupported
23245   link_all_deplibs_GCJ=unknown
23246   hardcode_automatic_GCJ=no
23247   module_cmds_GCJ=
23248   module_expsym_cmds_GCJ=
23249   always_export_symbols_GCJ=no
23250   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23251   # include_expsyms should be a list of space-separated symbols to be *always*
23252   # included in the symbol list
23253   include_expsyms_GCJ=
23254   # exclude_expsyms can be an extended regexp of symbols to exclude
23255   # it will be wrapped by ` (' and `)$', so one must not match beginning or
23256   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23257   # as well as any symbol that contains `d'.
23258   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23259   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23260   # platforms (ab)use it in PIC code, but their linkers get confused if
23261   # the symbol is explicitly referenced.  Since portable code cannot
23262   # rely on this symbol name, it's probably fine to never include it in
23263   # preloaded symbol tables.
23264   extract_expsyms_cmds=
23265   # Just being paranoid about ensuring that cc_basename is set.
23266   for cc_temp in $compiler""; do
23267   case $cc_temp in
23268     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23269     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23270     \-*) ;;
23271     *) break;;
23272   esac
23273 done
23274 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23275
23276   case $host_os in
23277   cygwin* | mingw* | pw32*)
23278     # FIXME: the MSVC++ port hasn't been tested in a loooong time
23279     # When not using gcc, we currently assume that we are using
23280     # Microsoft Visual C++.
23281     if test "$GCC" != yes; then
23282       with_gnu_ld=no
23283     fi
23284     ;;
23285   interix*)
23286     # we just hope/assume this is gcc and not c89 (= MSVC++)
23287     with_gnu_ld=yes
23288     ;;
23289   openbsd*)
23290     with_gnu_ld=no
23291     ;;
23292   esac
23293
23294   ld_shlibs_GCJ=yes
23295   if test "$with_gnu_ld" = yes; then
23296     # If archive_cmds runs LD, not CC, wlarc should be empty
23297     wlarc='${wl}'
23298
23299     # Set some defaults for GNU ld with shared library support. These
23300     # are reset later if shared libraries are not supported. Putting them
23301     # here allows them to be overridden if necessary.
23302     runpath_var=LD_RUN_PATH
23303     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23304     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23305     # ancient GNU ld didn't support --whole-archive et. al.
23306     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23307         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23308       else
23309         whole_archive_flag_spec_GCJ=
23310     fi
23311     supports_anon_versioning=no
23312     case `$LD -v 2>/dev/null` in
23313       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23314       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23315       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23316       *\ 2.11.*) ;; # other 2.11 versions
23317       *) supports_anon_versioning=yes ;;
23318     esac
23319
23320     # See if GNU ld supports shared libraries.
23321     case $host_os in
23322     aix3* | aix4* | aix5*)
23323       # On AIX/PPC, the GNU linker is very broken
23324       if test "$host_cpu" != ia64; then
23325         ld_shlibs_GCJ=no
23326         cat <<EOF 1>&2
23327
23328 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23329 *** to be unable to reliably create shared libraries on AIX.
23330 *** Therefore, libtool is disabling shared libraries support.  If you
23331 *** really care for shared libraries, you may want to modify your PATH
23332 *** so that a non-GNU linker is found, and then restart.
23333
23334 EOF
23335       fi
23336       ;;
23337
23338     amigaos*)
23339       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)'
23340       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23341       hardcode_minus_L_GCJ=yes
23342
23343       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23344       # that the semantics of dynamic libraries on AmigaOS, at least up
23345       # to version 4, is to share data among multiple programs linked
23346       # with the same dynamic library.  Since this doesn't match the
23347       # behavior of shared libraries on other platforms, we can't use
23348       # them.
23349       ld_shlibs_GCJ=no
23350       ;;
23351
23352     beos*)
23353       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23354         allow_undefined_flag_GCJ=unsupported
23355         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23356         # support --undefined.  This deserves some investigation.  FIXME
23357         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23358       else
23359         ld_shlibs_GCJ=no
23360       fi
23361       ;;
23362
23363     cygwin* | mingw* | pw32*)
23364       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23365       # as there is no search path for DLLs.
23366       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23367       allow_undefined_flag_GCJ=unsupported
23368       always_export_symbols_GCJ=no
23369       enable_shared_with_static_runtimes_GCJ=yes
23370       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23371
23372       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23373         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23374         # If the export-symbols file already is a .def file (1st line
23375         # is EXPORTS), use it as is; otherwise, prepend...
23376         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23377           cp $export_symbols $output_objdir/$soname.def;
23378         else
23379           echo EXPORTS > $output_objdir/$soname.def;
23380           cat $export_symbols >> $output_objdir/$soname.def;
23381         fi~
23382         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23383       else
23384         ld_shlibs_GCJ=no
23385       fi
23386       ;;
23387
23388     interix3*)
23389       hardcode_direct_GCJ=no
23390       hardcode_shlibpath_var_GCJ=no
23391       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23392       export_dynamic_flag_spec_GCJ='${wl}-E'
23393       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23394       # Instead, shared libraries are loaded at an image base (0x10000000 by
23395       # default) and relocated if they conflict, which is a slow very memory
23396       # consuming and fragmenting process.  To avoid this, we pick a random,
23397       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23398       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
23399       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'
23400       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'
23401       ;;
23402
23403     linux*)
23404       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23405         tmp_addflag=
23406         case $cc_basename,$host_cpu in
23407         pgcc*)                          # Portland Group C compiler
23408           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'
23409           tmp_addflag=' $pic_flag'
23410           ;;
23411         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
23412           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'
23413           tmp_addflag=' $pic_flag -Mnomain' ;;
23414         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
23415           tmp_addflag=' -i_dynamic' ;;
23416         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
23417           tmp_addflag=' -i_dynamic -nofor_main' ;;
23418         ifc* | ifort*)                  # Intel Fortran compiler
23419           tmp_addflag=' -nofor_main' ;;
23420         esac
23421         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23422
23423         if test $supports_anon_versioning = yes; then
23424           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23425   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23426   $echo "local: *; };" >> $output_objdir/$libname.ver~
23427           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23428         fi
23429       else
23430         ld_shlibs_GCJ=no
23431       fi
23432       ;;
23433
23434     netbsd*)
23435       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23436         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23437         wlarc=
23438       else
23439         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23440         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23441       fi
23442       ;;
23443
23444     solaris*)
23445       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23446         ld_shlibs_GCJ=no
23447         cat <<EOF 1>&2
23448
23449 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23450 *** create shared libraries on Solaris systems.  Therefore, libtool
23451 *** is disabling shared libraries support.  We urge you to upgrade GNU
23452 *** binutils to release 2.9.1 or newer.  Another option is to modify
23453 *** your PATH or compiler configuration so that the native linker is
23454 *** used, and then restart.
23455
23456 EOF
23457       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23458         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23459         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23460       else
23461         ld_shlibs_GCJ=no
23462       fi
23463       ;;
23464
23465     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23466       case `$LD -v 2>&1` in
23467         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23468         ld_shlibs_GCJ=no
23469         cat <<_LT_EOF 1>&2
23470
23471 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23472 *** reliably create shared libraries on SCO systems.  Therefore, libtool
23473 *** is disabling shared libraries support.  We urge you to upgrade GNU
23474 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
23475 *** your PATH or compiler configuration so that the native linker is
23476 *** used, and then restart.
23477
23478 _LT_EOF
23479         ;;
23480         *)
23481           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23482             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23483             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23484             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23485           else
23486             ld_shlibs_GCJ=no
23487           fi
23488         ;;
23489       esac
23490       ;;
23491
23492     sunos4*)
23493       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23494       wlarc=
23495       hardcode_direct_GCJ=yes
23496       hardcode_shlibpath_var_GCJ=no
23497       ;;
23498
23499     *)
23500       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23501         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23502         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23503       else
23504         ld_shlibs_GCJ=no
23505       fi
23506       ;;
23507     esac
23508
23509     if test "$ld_shlibs_GCJ" = no; then
23510       runpath_var=
23511       hardcode_libdir_flag_spec_GCJ=
23512       export_dynamic_flag_spec_GCJ=
23513       whole_archive_flag_spec_GCJ=
23514     fi
23515   else
23516     # PORTME fill in a description of your system's linker (not GNU ld)
23517     case $host_os in
23518     aix3*)
23519       allow_undefined_flag_GCJ=unsupported
23520       always_export_symbols_GCJ=yes
23521       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'
23522       # Note: this linker hardcodes the directories in LIBPATH if there
23523       # are no directories specified by -L.
23524       hardcode_minus_L_GCJ=yes
23525       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23526         # Neither direct hardcoding nor static linking is supported with a
23527         # broken collect2.
23528         hardcode_direct_GCJ=unsupported
23529       fi
23530       ;;
23531
23532     aix4* | aix5*)
23533       if test "$host_cpu" = ia64; then
23534         # On IA64, the linker does run time linking by default, so we don't
23535         # have to do anything special.
23536         aix_use_runtimelinking=no
23537         exp_sym_flag='-Bexport'
23538         no_entry_flag=""
23539       else
23540         # If we're using GNU nm, then we don't want the "-C" option.
23541         # -C means demangle to AIX nm, but means don't demangle with GNU nm
23542         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23543           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'
23544         else
23545           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'
23546         fi
23547         aix_use_runtimelinking=no
23548
23549         # Test if we are trying to use run time linking or normal
23550         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23551         # need to do runtime linking.
23552         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23553           for ld_flag in $LDFLAGS; do
23554           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23555             aix_use_runtimelinking=yes
23556             break
23557           fi
23558           done
23559           ;;
23560         esac
23561
23562         exp_sym_flag='-bexport'
23563         no_entry_flag='-bnoentry'
23564       fi
23565
23566       # When large executables or shared objects are built, AIX ld can
23567       # have problems creating the table of contents.  If linking a library
23568       # or program results in "error TOC overflow" add -mminimal-toc to
23569       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
23570       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23571
23572       archive_cmds_GCJ=''
23573       hardcode_direct_GCJ=yes
23574       hardcode_libdir_separator_GCJ=':'
23575       link_all_deplibs_GCJ=yes
23576
23577       if test "$GCC" = yes; then
23578         case $host_os in aix4.[012]|aix4.[012].*)
23579         # We only want to do this on AIX 4.2 and lower, the check
23580         # below for broken collect2 doesn't work under 4.3+
23581           collect2name=`${CC} -print-prog-name=collect2`
23582           if test -f "$collect2name" && \
23583            strings "$collect2name" | grep resolve_lib_name >/dev/null
23584           then
23585           # We have reworked collect2
23586           hardcode_direct_GCJ=yes
23587           else
23588           # We have old collect2
23589           hardcode_direct_GCJ=unsupported
23590           # It fails to find uninstalled libraries when the uninstalled
23591           # path is not listed in the libpath.  Setting hardcode_minus_L
23592           # to unsupported forces relinking
23593           hardcode_minus_L_GCJ=yes
23594           hardcode_libdir_flag_spec_GCJ='-L$libdir'
23595           hardcode_libdir_separator_GCJ=
23596           fi
23597           ;;
23598         esac
23599         shared_flag='-shared'
23600         if test "$aix_use_runtimelinking" = yes; then
23601           shared_flag="$shared_flag "'${wl}-G'
23602         fi
23603       else
23604         # not using gcc
23605         if test "$host_cpu" = ia64; then
23606         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23607         # chokes on -Wl,-G. The following line is correct:
23608           shared_flag='-G'
23609         else
23610           if test "$aix_use_runtimelinking" = yes; then
23611             shared_flag='${wl}-G'
23612           else
23613             shared_flag='${wl}-bM:SRE'
23614           fi
23615         fi
23616       fi
23617
23618       # It seems that -bexpall does not export symbols beginning with
23619       # underscore (_), so it is better to generate a list of symbols to export.
23620       always_export_symbols_GCJ=yes
23621       if test "$aix_use_runtimelinking" = yes; then
23622         # Warning - without using the other runtime loading flags (-brtl),
23623         # -berok will link without error, but may produce a broken library.
23624         allow_undefined_flag_GCJ='-berok'
23625        # Determine the default libpath from the value encoded in an empty executable.
23626        cat >conftest.$ac_ext <<_ACEOF
23627 /* confdefs.h.  */
23628 _ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h.  */
23632
23633 int
23634 main ()
23635 {
23636
23637   ;
23638   return 0;
23639 }
23640 _ACEOF
23641 rm -f conftest.$ac_objext conftest$ac_exeext
23642 if { (ac_try="$ac_link"
23643 case "(($ac_try" in
23644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23645   *) ac_try_echo=$ac_try;;
23646 esac
23647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23648   (eval "$ac_link") 2>conftest.er1
23649   ac_status=$?
23650   grep -v '^ *+' conftest.er1 >conftest.err
23651   rm -f conftest.er1
23652   cat conftest.err >&5
23653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654   (exit $ac_status); } && {
23655          test -z "$ac_c_werror_flag" ||
23656          test ! -s conftest.err
23657        } && test -s conftest$ac_exeext &&
23658        $as_test_x conftest$ac_exeext; then
23659
23660 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23661 }'`
23662 # Check for a 64-bit object if we didn't find anything.
23663 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; }
23664 }'`; fi
23665 else
23666   echo "$as_me: failed program was:" >&5
23667 sed 's/^/| /' conftest.$ac_ext >&5
23668
23669
23670 fi
23671
23672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23673       conftest$ac_exeext conftest.$ac_ext
23674 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23675
23676        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23677         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"
23678        else
23679         if test "$host_cpu" = ia64; then
23680           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23681           allow_undefined_flag_GCJ="-z nodefs"
23682           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"
23683         else
23684          # Determine the default libpath from the value encoded in an empty executable.
23685          cat >conftest.$ac_ext <<_ACEOF
23686 /* confdefs.h.  */
23687 _ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h.  */
23691
23692 int
23693 main ()
23694 {
23695
23696   ;
23697   return 0;
23698 }
23699 _ACEOF
23700 rm -f conftest.$ac_objext conftest$ac_exeext
23701 if { (ac_try="$ac_link"
23702 case "(($ac_try" in
23703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23704   *) ac_try_echo=$ac_try;;
23705 esac
23706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23707   (eval "$ac_link") 2>conftest.er1
23708   ac_status=$?
23709   grep -v '^ *+' conftest.er1 >conftest.err
23710   rm -f conftest.er1
23711   cat conftest.err >&5
23712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713   (exit $ac_status); } && {
23714          test -z "$ac_c_werror_flag" ||
23715          test ! -s conftest.err
23716        } && test -s conftest$ac_exeext &&
23717        $as_test_x conftest$ac_exeext; then
23718
23719 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23720 }'`
23721 # Check for a 64-bit object if we didn't find anything.
23722 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; }
23723 }'`; fi
23724 else
23725   echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23727
23728
23729 fi
23730
23731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23732       conftest$ac_exeext conftest.$ac_ext
23733 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23734
23735          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23736           # Warning - without using the other run time loading flags,
23737           # -berok will link without error, but may produce a broken library.
23738           no_undefined_flag_GCJ=' ${wl}-bernotok'
23739           allow_undefined_flag_GCJ=' ${wl}-berok'
23740           # Exported symbols can be pulled into shared objects from archives
23741           whole_archive_flag_spec_GCJ='$convenience'
23742           archive_cmds_need_lc_GCJ=yes
23743           # This is similar to how AIX traditionally builds its shared libraries.
23744           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'
23745         fi
23746       fi
23747       ;;
23748
23749     amigaos*)
23750       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)'
23751       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23752       hardcode_minus_L_GCJ=yes
23753       # see comment about different semantics on the GNU ld section
23754       ld_shlibs_GCJ=no
23755       ;;
23756
23757     bsdi[45]*)
23758       export_dynamic_flag_spec_GCJ=-rdynamic
23759       ;;
23760
23761     cygwin* | mingw* | pw32*)
23762       # When not using gcc, we currently assume that we are using
23763       # Microsoft Visual C++.
23764       # hardcode_libdir_flag_spec is actually meaningless, as there is
23765       # no search path for DLLs.
23766       hardcode_libdir_flag_spec_GCJ=' '
23767       allow_undefined_flag_GCJ=unsupported
23768       # Tell ltmain to make .lib files, not .a files.
23769       libext=lib
23770       # Tell ltmain to make .dll files, not .so files.
23771       shrext_cmds=".dll"
23772       # FIXME: Setting linknames here is a bad hack.
23773       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23774       # The linker will automatically build a .lib file if we build a DLL.
23775       old_archive_From_new_cmds_GCJ='true'
23776       # FIXME: Should let the user specify the lib program.
23777       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23778       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23779       enable_shared_with_static_runtimes_GCJ=yes
23780       ;;
23781
23782     darwin* | rhapsody*)
23783       case $host_os in
23784         rhapsody* | darwin1.[012])
23785          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23786          ;;
23787        *) # Darwin 1.3 on
23788          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23789            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23790          else
23791            case ${MACOSX_DEPLOYMENT_TARGET} in
23792              10.[012])
23793                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23794                ;;
23795              10.*)
23796                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23797                ;;
23798            esac
23799          fi
23800          ;;
23801       esac
23802       archive_cmds_need_lc_GCJ=no
23803       hardcode_direct_GCJ=no
23804       hardcode_automatic_GCJ=yes
23805       hardcode_shlibpath_var_GCJ=unsupported
23806       whole_archive_flag_spec_GCJ=''
23807       link_all_deplibs_GCJ=yes
23808     if test "$GCC" = yes ; then
23809         output_verbose_link_cmd='echo'
23810         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23811       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23812       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23813       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}'
23814       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}'
23815     else
23816       case $cc_basename in
23817         xlc*)
23818          output_verbose_link_cmd='echo'
23819          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23820          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23821           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23822          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}'
23823           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}'
23824           ;;
23825        *)
23826          ld_shlibs_GCJ=no
23827           ;;
23828       esac
23829     fi
23830       ;;
23831
23832     dgux*)
23833       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23834       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23835       hardcode_shlibpath_var_GCJ=no
23836       ;;
23837
23838     freebsd1*)
23839       ld_shlibs_GCJ=no
23840       ;;
23841
23842     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23843     # support.  Future versions do this automatically, but an explicit c++rt0.o
23844     # does not break anything, and helps significantly (at the cost of a little
23845     # extra space).
23846     freebsd2.2*)
23847       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23848       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23849       hardcode_direct_GCJ=yes
23850       hardcode_shlibpath_var_GCJ=no
23851       ;;
23852
23853     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23854     freebsd2*)
23855       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23856       hardcode_direct_GCJ=yes
23857       hardcode_minus_L_GCJ=yes
23858       hardcode_shlibpath_var_GCJ=no
23859       ;;
23860
23861     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23862     freebsd* | kfreebsd*-gnu | dragonfly*)
23863       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23864       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23865       hardcode_direct_GCJ=yes
23866       hardcode_shlibpath_var_GCJ=no
23867       ;;
23868
23869     hpux9*)
23870       if test "$GCC" = yes; then
23871         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'
23872       else
23873         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'
23874       fi
23875       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23876       hardcode_libdir_separator_GCJ=:
23877       hardcode_direct_GCJ=yes
23878
23879       # hardcode_minus_L: Not really in the search PATH,
23880       # but as the default location of the library.
23881       hardcode_minus_L_GCJ=yes
23882       export_dynamic_flag_spec_GCJ='${wl}-E'
23883       ;;
23884
23885     hpux10*)
23886       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23887         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23888       else
23889         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23890       fi
23891       if test "$with_gnu_ld" = no; then
23892         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23893         hardcode_libdir_separator_GCJ=:
23894
23895         hardcode_direct_GCJ=yes
23896         export_dynamic_flag_spec_GCJ='${wl}-E'
23897
23898         # hardcode_minus_L: Not really in the search PATH,
23899         # but as the default location of the library.
23900         hardcode_minus_L_GCJ=yes
23901       fi
23902       ;;
23903
23904     hpux11*)
23905       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23906         case $host_cpu in
23907         hppa*64*)
23908           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23909           ;;
23910         ia64*)
23911           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23912           ;;
23913         *)
23914           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23915           ;;
23916         esac
23917       else
23918         case $host_cpu in
23919         hppa*64*)
23920           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23921           ;;
23922         ia64*)
23923           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23924           ;;
23925         *)
23926           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23927           ;;
23928         esac
23929       fi
23930       if test "$with_gnu_ld" = no; then
23931         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23932         hardcode_libdir_separator_GCJ=:
23933
23934         case $host_cpu in
23935         hppa*64*|ia64*)
23936           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23937           hardcode_direct_GCJ=no
23938           hardcode_shlibpath_var_GCJ=no
23939           ;;
23940         *)
23941           hardcode_direct_GCJ=yes
23942           export_dynamic_flag_spec_GCJ='${wl}-E'
23943
23944           # hardcode_minus_L: Not really in the search PATH,
23945           # but as the default location of the library.
23946           hardcode_minus_L_GCJ=yes
23947           ;;
23948         esac
23949       fi
23950       ;;
23951
23952     irix5* | irix6* | nonstopux*)
23953       if test "$GCC" = yes; then
23954         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'
23955       else
23956         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'
23957         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23958       fi
23959       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23960       hardcode_libdir_separator_GCJ=:
23961       link_all_deplibs_GCJ=yes
23962       ;;
23963
23964     netbsd*)
23965       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23966         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
23967       else
23968         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
23969       fi
23970       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23971       hardcode_direct_GCJ=yes
23972       hardcode_shlibpath_var_GCJ=no
23973       ;;
23974
23975     newsos6)
23976       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23977       hardcode_direct_GCJ=yes
23978       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23979       hardcode_libdir_separator_GCJ=:
23980       hardcode_shlibpath_var_GCJ=no
23981       ;;
23982
23983     openbsd*)
23984       hardcode_direct_GCJ=yes
23985       hardcode_shlibpath_var_GCJ=no
23986       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23987         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23988         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23989         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23990         export_dynamic_flag_spec_GCJ='${wl}-E'
23991       else
23992        case $host_os in
23993          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23994            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23995            hardcode_libdir_flag_spec_GCJ='-R$libdir'
23996            ;;
23997          *)
23998            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23999            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24000            ;;
24001        esac
24002       fi
24003       ;;
24004
24005     os2*)
24006       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24007       hardcode_minus_L_GCJ=yes
24008       allow_undefined_flag_GCJ=unsupported
24009       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'
24010       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24011       ;;
24012
24013     osf3*)
24014       if test "$GCC" = yes; then
24015         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24016         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'
24017       else
24018         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24019         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'
24020       fi
24021       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24022       hardcode_libdir_separator_GCJ=:
24023       ;;
24024
24025     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24026       if test "$GCC" = yes; then
24027         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24028         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'
24029         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24030       else
24031         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24032         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'
24033         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~
24034         $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'
24035
24036         # Both c and cxx compiler support -rpath directly
24037         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24038       fi
24039       hardcode_libdir_separator_GCJ=:
24040       ;;
24041
24042     solaris*)
24043       no_undefined_flag_GCJ=' -z text'
24044       if test "$GCC" = yes; then
24045         wlarc='${wl}'
24046         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24047         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24048           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24049       else
24050         wlarc=''
24051         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24052         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24053         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24054       fi
24055       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24056       hardcode_shlibpath_var_GCJ=no
24057       case $host_os in
24058       solaris2.[0-5] | solaris2.[0-5].*) ;;
24059       *)
24060         # The compiler driver will combine linker options so we
24061         # cannot just pass the convience library names through
24062         # without $wl, iff we do not link with $LD.
24063         # Luckily, gcc supports the same syntax we need for Sun Studio.
24064         # Supported since Solaris 2.6 (maybe 2.5.1?)
24065         case $wlarc in
24066         '')
24067           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24068         *)
24069           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' ;;
24070         esac ;;
24071       esac
24072       link_all_deplibs_GCJ=yes
24073       ;;
24074
24075     sunos4*)
24076       if test "x$host_vendor" = xsequent; then
24077         # Use $CC to link under sequent, because it throws in some extra .o
24078         # files that make .init and .fini sections work.
24079         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24080       else
24081         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24082       fi
24083       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24084       hardcode_direct_GCJ=yes
24085       hardcode_minus_L_GCJ=yes
24086       hardcode_shlibpath_var_GCJ=no
24087       ;;
24088
24089     sysv4)
24090       case $host_vendor in
24091         sni)
24092           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24093           hardcode_direct_GCJ=yes # is this really true???
24094         ;;
24095         siemens)
24096           ## LD is ld it makes a PLAMLIB
24097           ## CC just makes a GrossModule.
24098           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24099           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24100           hardcode_direct_GCJ=no
24101         ;;
24102         motorola)
24103           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24104           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24105         ;;
24106       esac
24107       runpath_var='LD_RUN_PATH'
24108       hardcode_shlibpath_var_GCJ=no
24109       ;;
24110
24111     sysv4.3*)
24112       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24113       hardcode_shlibpath_var_GCJ=no
24114       export_dynamic_flag_spec_GCJ='-Bexport'
24115       ;;
24116
24117     sysv4*MP*)
24118       if test -d /usr/nec; then
24119         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24120         hardcode_shlibpath_var_GCJ=no
24121         runpath_var=LD_RUN_PATH
24122         hardcode_runpath_var=yes
24123         ld_shlibs_GCJ=yes
24124       fi
24125       ;;
24126
24127     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24128       no_undefined_flag_GCJ='${wl}-z,text'
24129       archive_cmds_need_lc_GCJ=no
24130       hardcode_shlibpath_var_GCJ=no
24131       runpath_var='LD_RUN_PATH'
24132
24133       if test "$GCC" = yes; then
24134         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24135         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24136       else
24137         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24138         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24139       fi
24140       ;;
24141
24142     sysv5* | sco3.2v5* | sco5v6*)
24143       # Note: We can NOT use -z defs as we might desire, because we do not
24144       # link with -lc, and that would cause any symbols used from libc to
24145       # always be unresolved, which means just about no library would
24146       # ever link correctly.  If we're not using GNU ld we use -z text
24147       # though, which does catch some bad symbols but isn't as heavy-handed
24148       # as -z defs.
24149       no_undefined_flag_GCJ='${wl}-z,text'
24150       allow_undefined_flag_GCJ='${wl}-z,nodefs'
24151       archive_cmds_need_lc_GCJ=no
24152       hardcode_shlibpath_var_GCJ=no
24153       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24154       hardcode_libdir_separator_GCJ=':'
24155       link_all_deplibs_GCJ=yes
24156       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24157       runpath_var='LD_RUN_PATH'
24158
24159       if test "$GCC" = yes; then
24160         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24161         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24162       else
24163         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24164         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24165       fi
24166       ;;
24167
24168     uts4*)
24169       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24170       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24171       hardcode_shlibpath_var_GCJ=no
24172       ;;
24173
24174     *)
24175       ld_shlibs_GCJ=no
24176       ;;
24177     esac
24178   fi
24179
24180 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24181 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24182 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24183
24184 #
24185 # Do we need to explicitly link libc?
24186 #
24187 case "x$archive_cmds_need_lc_GCJ" in
24188 x|xyes)
24189   # Assume -lc should be added
24190   archive_cmds_need_lc_GCJ=yes
24191
24192   if test "$enable_shared" = yes && test "$GCC" = yes; then
24193     case $archive_cmds_GCJ in
24194     *'~'*)
24195       # FIXME: we may have to deal with multi-command sequences.
24196       ;;
24197     '$CC '*)
24198       # Test whether the compiler implicitly links with -lc since on some
24199       # systems, -lgcc has to come before -lc. If gcc already passes -lc
24200       # to ld, don't add -lc before -lgcc.
24201       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24202 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24203       $rm conftest*
24204       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24205
24206       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24207   (eval $ac_compile) 2>&5
24208   ac_status=$?
24209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210   (exit $ac_status); } 2>conftest.err; then
24211         soname=conftest
24212         lib=conftest
24213         libobjs=conftest.$ac_objext
24214         deplibs=
24215         wl=$lt_prog_compiler_wl_GCJ
24216         pic_flag=$lt_prog_compiler_pic_GCJ
24217         compiler_flags=-v
24218         linker_flags=-v
24219         verstring=
24220         output_objdir=.
24221         libname=conftest
24222         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24223         allow_undefined_flag_GCJ=
24224         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24225   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24226   ac_status=$?
24227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228   (exit $ac_status); }
24229         then
24230           archive_cmds_need_lc_GCJ=no
24231         else
24232           archive_cmds_need_lc_GCJ=yes
24233         fi
24234         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24235       else
24236         cat conftest.err 1>&5
24237       fi
24238       $rm conftest*
24239       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24240 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24241       ;;
24242     esac
24243   fi
24244   ;;
24245 esac
24246
24247 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24248 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24249 library_names_spec=
24250 libname_spec='lib$name'
24251 soname_spec=
24252 shrext_cmds=".so"
24253 postinstall_cmds=
24254 postuninstall_cmds=
24255 finish_cmds=
24256 finish_eval=
24257 shlibpath_var=
24258 shlibpath_overrides_runpath=unknown
24259 version_type=none
24260 dynamic_linker="$host_os ld.so"
24261 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24262 if test "$GCC" = yes; then
24263   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24264   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24265     # if the path contains ";" then we assume it to be the separator
24266     # otherwise default to the standard path separator (i.e. ":") - it is
24267     # assumed that no part of a normal pathname contains ";" but that should
24268     # okay in the real world where ";" in dirpaths is itself problematic.
24269     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24270   else
24271     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24272   fi
24273 else
24274   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24275 fi
24276 need_lib_prefix=unknown
24277 hardcode_into_libs=no
24278
24279 # when you set need_version to no, make sure it does not cause -set_version
24280 # flags to be left without arguments
24281 need_version=unknown
24282
24283 case $host_os in
24284 aix3*)
24285   version_type=linux
24286   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24287   shlibpath_var=LIBPATH
24288
24289   # AIX 3 has no versioning support, so we append a major version to the name.
24290   soname_spec='${libname}${release}${shared_ext}$major'
24291   ;;
24292
24293 aix4* | aix5*)
24294   version_type=linux
24295   need_lib_prefix=no
24296   need_version=no
24297   hardcode_into_libs=yes
24298   if test "$host_cpu" = ia64; then
24299     # AIX 5 supports IA64
24300     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24301     shlibpath_var=LD_LIBRARY_PATH
24302   else
24303     # With GCC up to 2.95.x, collect2 would create an import file
24304     # for dependence libraries.  The import file would start with
24305     # the line `#! .'.  This would cause the generated library to
24306     # depend on `.', always an invalid library.  This was fixed in
24307     # development snapshots of GCC prior to 3.0.
24308     case $host_os in
24309       aix4 | aix4.[01] | aix4.[01].*)
24310       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24311            echo ' yes '
24312            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24313         :
24314       else
24315         can_build_shared=no
24316       fi
24317       ;;
24318     esac
24319     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24320     # soname into executable. Probably we can add versioning support to
24321     # collect2, so additional links can be useful in future.
24322     if test "$aix_use_runtimelinking" = yes; then
24323       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24324       # instead of lib<name>.a to let people know that these are not
24325       # typical AIX shared libraries.
24326       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24327     else
24328       # We preserve .a as extension for shared libraries through AIX4.2
24329       # and later when we are not doing run time linking.
24330       library_names_spec='${libname}${release}.a $libname.a'
24331       soname_spec='${libname}${release}${shared_ext}$major'
24332     fi
24333     shlibpath_var=LIBPATH
24334   fi
24335   ;;
24336
24337 amigaos*)
24338   library_names_spec='$libname.ixlibrary $libname.a'
24339   # Create ${libname}_ixlibrary.a entries in /sys/libs.
24340   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'
24341   ;;
24342
24343 beos*)
24344   library_names_spec='${libname}${shared_ext}'
24345   dynamic_linker="$host_os ld.so"
24346   shlibpath_var=LIBRARY_PATH
24347   ;;
24348
24349 bsdi[45]*)
24350   version_type=linux
24351   need_version=no
24352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24353   soname_spec='${libname}${release}${shared_ext}$major'
24354   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24355   shlibpath_var=LD_LIBRARY_PATH
24356   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24357   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24358   # the default ld.so.conf also contains /usr/contrib/lib and
24359   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24360   # libtool to hard-code these into programs
24361   ;;
24362
24363 cygwin* | mingw* | pw32*)
24364   version_type=windows
24365   shrext_cmds=".dll"
24366   need_version=no
24367   need_lib_prefix=no
24368
24369   case $GCC,$host_os in
24370   yes,cygwin* | yes,mingw* | yes,pw32*)
24371     library_names_spec='$libname.dll.a'
24372     # DLL is installed to $(libdir)/../bin by postinstall_cmds
24373     postinstall_cmds='base_file=`basename \${file}`~
24374       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24375       dldir=$destdir/`dirname \$dlpath`~
24376       test -d \$dldir || mkdir -p \$dldir~
24377       $install_prog $dir/$dlname \$dldir/$dlname~
24378       chmod a+x \$dldir/$dlname'
24379     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24380       dlpath=$dir/\$dldll~
24381        $rm \$dlpath'
24382     shlibpath_overrides_runpath=yes
24383
24384     case $host_os in
24385     cygwin*)
24386       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24387       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24388       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24389       ;;
24390     mingw*)
24391       # MinGW DLLs use traditional 'lib' prefix
24392       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24393       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24394       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24395         # It is most probably a Windows format PATH printed by
24396         # mingw gcc, but we are running on Cygwin. Gcc prints its search
24397         # path with ; separators, and with drive letters. We can handle the
24398         # drive letters (cygwin fileutils understands them), so leave them,
24399         # especially as we might pass files found there to a mingw objdump,
24400         # which wouldn't understand a cygwinified path. Ahh.
24401         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24402       else
24403         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24404       fi
24405       ;;
24406     pw32*)
24407       # pw32 DLLs use 'pw' prefix rather than 'lib'
24408       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24409       ;;
24410     esac
24411     ;;
24412
24413   *)
24414     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24415     ;;
24416   esac
24417   dynamic_linker='Win32 ld.exe'
24418   # FIXME: first we should search . and the directory the executable is in
24419   shlibpath_var=PATH
24420   ;;
24421
24422 darwin* | rhapsody*)
24423   dynamic_linker="$host_os dyld"
24424   version_type=darwin
24425   need_lib_prefix=no
24426   need_version=no
24427   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24428   soname_spec='${libname}${release}${major}$shared_ext'
24429   shlibpath_overrides_runpath=yes
24430   shlibpath_var=DYLD_LIBRARY_PATH
24431   shrext_cmds='.dylib'
24432   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24433   if test "$GCC" = yes; then
24434     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"`
24435   else
24436     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24437   fi
24438   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24439   ;;
24440
24441 dgux*)
24442   version_type=linux
24443   need_lib_prefix=no
24444   need_version=no
24445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24446   soname_spec='${libname}${release}${shared_ext}$major'
24447   shlibpath_var=LD_LIBRARY_PATH
24448   ;;
24449
24450 freebsd1*)
24451   dynamic_linker=no
24452   ;;
24453
24454 kfreebsd*-gnu)
24455   version_type=linux
24456   need_lib_prefix=no
24457   need_version=no
24458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24459   soname_spec='${libname}${release}${shared_ext}$major'
24460   shlibpath_var=LD_LIBRARY_PATH
24461   shlibpath_overrides_runpath=no
24462   hardcode_into_libs=yes
24463   dynamic_linker='GNU ld.so'
24464   ;;
24465
24466 freebsd* | dragonfly*)
24467   # DragonFly does not have aout.  When/if they implement a new
24468   # versioning mechanism, adjust this.
24469   if test -x /usr/bin/objformat; then
24470     objformat=`/usr/bin/objformat`
24471   else
24472     case $host_os in
24473     freebsd[123]*) objformat=aout ;;
24474     *) objformat=elf ;;
24475     esac
24476   fi
24477   version_type=freebsd-$objformat
24478   case $version_type in
24479     freebsd-elf*)
24480       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24481       need_version=no
24482       need_lib_prefix=no
24483       ;;
24484     freebsd-*)
24485       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24486       need_version=yes
24487       ;;
24488   esac
24489   shlibpath_var=LD_LIBRARY_PATH
24490   case $host_os in
24491   freebsd2*)
24492     shlibpath_overrides_runpath=yes
24493     ;;
24494   freebsd3.[01]* | freebsdelf3.[01]*)
24495     shlibpath_overrides_runpath=yes
24496     hardcode_into_libs=yes
24497     ;;
24498   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24499   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24500     shlibpath_overrides_runpath=no
24501     hardcode_into_libs=yes
24502     ;;
24503   freebsd*) # from 4.6 on
24504     shlibpath_overrides_runpath=yes
24505     hardcode_into_libs=yes
24506     ;;
24507   esac
24508   ;;
24509
24510 gnu*)
24511   version_type=linux
24512   need_lib_prefix=no
24513   need_version=no
24514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24515   soname_spec='${libname}${release}${shared_ext}$major'
24516   shlibpath_var=LD_LIBRARY_PATH
24517   hardcode_into_libs=yes
24518   ;;
24519
24520 hpux9* | hpux10* | hpux11*)
24521   # Give a soname corresponding to the major version so that dld.sl refuses to
24522   # link against other versions.
24523   version_type=sunos
24524   need_lib_prefix=no
24525   need_version=no
24526   case $host_cpu in
24527   ia64*)
24528     shrext_cmds='.so'
24529     hardcode_into_libs=yes
24530     dynamic_linker="$host_os dld.so"
24531     shlibpath_var=LD_LIBRARY_PATH
24532     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24533     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24534     soname_spec='${libname}${release}${shared_ext}$major'
24535     if test "X$HPUX_IA64_MODE" = X32; then
24536       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24537     else
24538       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24539     fi
24540     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24541     ;;
24542    hppa*64*)
24543      shrext_cmds='.sl'
24544      hardcode_into_libs=yes
24545      dynamic_linker="$host_os dld.sl"
24546      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24547      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24548      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24549      soname_spec='${libname}${release}${shared_ext}$major'
24550      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24551      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24552      ;;
24553    *)
24554     shrext_cmds='.sl'
24555     dynamic_linker="$host_os dld.sl"
24556     shlibpath_var=SHLIB_PATH
24557     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24558     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24559     soname_spec='${libname}${release}${shared_ext}$major'
24560     ;;
24561   esac
24562   # HP-UX runs *really* slowly unless shared libraries are mode 555.
24563   postinstall_cmds='chmod 555 $lib'
24564   ;;
24565
24566 interix3*)
24567   version_type=linux
24568   need_lib_prefix=no
24569   need_version=no
24570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24571   soname_spec='${libname}${release}${shared_ext}$major'
24572   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24573   shlibpath_var=LD_LIBRARY_PATH
24574   shlibpath_overrides_runpath=no
24575   hardcode_into_libs=yes
24576   ;;
24577
24578 irix5* | irix6* | nonstopux*)
24579   case $host_os in
24580     nonstopux*) version_type=nonstopux ;;
24581     *)
24582         if test "$lt_cv_prog_gnu_ld" = yes; then
24583                 version_type=linux
24584         else
24585                 version_type=irix
24586         fi ;;
24587   esac
24588   need_lib_prefix=no
24589   need_version=no
24590   soname_spec='${libname}${release}${shared_ext}$major'
24591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24592   case $host_os in
24593   irix5* | nonstopux*)
24594     libsuff= shlibsuff=
24595     ;;
24596   *)
24597     case $LD in # libtool.m4 will add one of these switches to LD
24598     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24599       libsuff= shlibsuff= libmagic=32-bit;;
24600     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24601       libsuff=32 shlibsuff=N32 libmagic=N32;;
24602     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24603       libsuff=64 shlibsuff=64 libmagic=64-bit;;
24604     *) libsuff= shlibsuff= libmagic=never-match;;
24605     esac
24606     ;;
24607   esac
24608   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24609   shlibpath_overrides_runpath=no
24610   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24611   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24612   hardcode_into_libs=yes
24613   ;;
24614
24615 # No shared lib support for Linux oldld, aout, or coff.
24616 linux*oldld* | linux*aout* | linux*coff*)
24617   dynamic_linker=no
24618   ;;
24619
24620 # This must be Linux ELF.
24621 linux*)
24622   version_type=linux
24623   need_lib_prefix=no
24624   need_version=no
24625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24626   soname_spec='${libname}${release}${shared_ext}$major'
24627   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24628   shlibpath_var=LD_LIBRARY_PATH
24629   shlibpath_overrides_runpath=no
24630   # This implies no fast_install, which is unacceptable.
24631   # Some rework will be needed to allow for fast_install
24632   # before this can be enabled.
24633   hardcode_into_libs=yes
24634
24635   # Append ld.so.conf contents to the search path
24636   if test -f /etc/ld.so.conf; then
24637     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' ' '`
24638     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24639   fi
24640
24641   # We used to test for /lib/ld.so.1 and disable shared libraries on
24642   # powerpc, because MkLinux only supported shared libraries with the
24643   # GNU dynamic linker.  Since this was broken with cross compilers,
24644   # most powerpc-linux boxes support dynamic linking these days and
24645   # people can always --disable-shared, the test was removed, and we
24646   # assume the GNU/Linux dynamic linker is in use.
24647   dynamic_linker='GNU/Linux ld.so'
24648   ;;
24649
24650 knetbsd*-gnu)
24651   version_type=linux
24652   need_lib_prefix=no
24653   need_version=no
24654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24655   soname_spec='${libname}${release}${shared_ext}$major'
24656   shlibpath_var=LD_LIBRARY_PATH
24657   shlibpath_overrides_runpath=no
24658   hardcode_into_libs=yes
24659   dynamic_linker='GNU ld.so'
24660   ;;
24661
24662 netbsd*)
24663   version_type=sunos
24664   need_lib_prefix=no
24665   need_version=no
24666   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24667     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24668     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24669     dynamic_linker='NetBSD (a.out) ld.so'
24670   else
24671     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24672     soname_spec='${libname}${release}${shared_ext}$major'
24673     dynamic_linker='NetBSD ld.elf_so'
24674   fi
24675   shlibpath_var=LD_LIBRARY_PATH
24676   shlibpath_overrides_runpath=yes
24677   hardcode_into_libs=yes
24678   ;;
24679
24680 newsos6)
24681   version_type=linux
24682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24683   shlibpath_var=LD_LIBRARY_PATH
24684   shlibpath_overrides_runpath=yes
24685   ;;
24686
24687 nto-qnx*)
24688   version_type=linux
24689   need_lib_prefix=no
24690   need_version=no
24691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24692   soname_spec='${libname}${release}${shared_ext}$major'
24693   shlibpath_var=LD_LIBRARY_PATH
24694   shlibpath_overrides_runpath=yes
24695   ;;
24696
24697 openbsd*)
24698   version_type=sunos
24699   sys_lib_dlsearch_path_spec="/usr/lib"
24700   need_lib_prefix=no
24701   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24702   case $host_os in
24703     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24704     *)                         need_version=no  ;;
24705   esac
24706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24707   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24708   shlibpath_var=LD_LIBRARY_PATH
24709   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24710     case $host_os in
24711       openbsd2.[89] | openbsd2.[89].*)
24712         shlibpath_overrides_runpath=no
24713         ;;
24714       *)
24715         shlibpath_overrides_runpath=yes
24716         ;;
24717       esac
24718   else
24719     shlibpath_overrides_runpath=yes
24720   fi
24721   ;;
24722
24723 os2*)
24724   libname_spec='$name'
24725   shrext_cmds=".dll"
24726   need_lib_prefix=no
24727   library_names_spec='$libname${shared_ext} $libname.a'
24728   dynamic_linker='OS/2 ld.exe'
24729   shlibpath_var=LIBPATH
24730   ;;
24731
24732 osf3* | osf4* | osf5*)
24733   version_type=osf
24734   need_lib_prefix=no
24735   need_version=no
24736   soname_spec='${libname}${release}${shared_ext}$major'
24737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24738   shlibpath_var=LD_LIBRARY_PATH
24739   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24740   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24741   ;;
24742
24743 solaris*)
24744   version_type=linux
24745   need_lib_prefix=no
24746   need_version=no
24747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24748   soname_spec='${libname}${release}${shared_ext}$major'
24749   shlibpath_var=LD_LIBRARY_PATH
24750   shlibpath_overrides_runpath=yes
24751   hardcode_into_libs=yes
24752   # ldd complains unless libraries are executable
24753   postinstall_cmds='chmod +x $lib'
24754   ;;
24755
24756 sunos4*)
24757   version_type=sunos
24758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24759   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24760   shlibpath_var=LD_LIBRARY_PATH
24761   shlibpath_overrides_runpath=yes
24762   if test "$with_gnu_ld" = yes; then
24763     need_lib_prefix=no
24764   fi
24765   need_version=yes
24766   ;;
24767
24768 sysv4 | sysv4.3*)
24769   version_type=linux
24770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24771   soname_spec='${libname}${release}${shared_ext}$major'
24772   shlibpath_var=LD_LIBRARY_PATH
24773   case $host_vendor in
24774     sni)
24775       shlibpath_overrides_runpath=no
24776       need_lib_prefix=no
24777       export_dynamic_flag_spec='${wl}-Blargedynsym'
24778       runpath_var=LD_RUN_PATH
24779       ;;
24780     siemens)
24781       need_lib_prefix=no
24782       ;;
24783     motorola)
24784       need_lib_prefix=no
24785       need_version=no
24786       shlibpath_overrides_runpath=no
24787       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24788       ;;
24789   esac
24790   ;;
24791
24792 sysv4*MP*)
24793   if test -d /usr/nec ;then
24794     version_type=linux
24795     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24796     soname_spec='$libname${shared_ext}.$major'
24797     shlibpath_var=LD_LIBRARY_PATH
24798   fi
24799   ;;
24800
24801 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24802   version_type=freebsd-elf
24803   need_lib_prefix=no
24804   need_version=no
24805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24806   soname_spec='${libname}${release}${shared_ext}$major'
24807   shlibpath_var=LD_LIBRARY_PATH
24808   hardcode_into_libs=yes
24809   if test "$with_gnu_ld" = yes; then
24810     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24811     shlibpath_overrides_runpath=no
24812   else
24813     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24814     shlibpath_overrides_runpath=yes
24815     case $host_os in
24816       sco3.2v5*)
24817         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24818         ;;
24819     esac
24820   fi
24821   sys_lib_dlsearch_path_spec='/usr/lib'
24822   ;;
24823
24824 uts4*)
24825   version_type=linux
24826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24827   soname_spec='${libname}${release}${shared_ext}$major'
24828   shlibpath_var=LD_LIBRARY_PATH
24829   ;;
24830
24831 *)
24832   dynamic_linker=no
24833   ;;
24834 esac
24835 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24836 echo "${ECHO_T}$dynamic_linker" >&6; }
24837 test "$dynamic_linker" = no && can_build_shared=no
24838
24839 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24840 if test "$GCC" = yes; then
24841   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24842 fi
24843
24844 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24845 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
24846 hardcode_action_GCJ=
24847 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24848    test -n "$runpath_var_GCJ" || \
24849    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24850
24851   # We can hardcode non-existant directories.
24852   if test "$hardcode_direct_GCJ" != no &&
24853      # If the only mechanism to avoid hardcoding is shlibpath_var, we
24854      # have to relink, otherwise we might link with an installed library
24855      # when we should be linking with a yet-to-be-installed one
24856      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24857      test "$hardcode_minus_L_GCJ" != no; then
24858     # Linking always hardcodes the temporary library directory.
24859     hardcode_action_GCJ=relink
24860   else
24861     # We can link without hardcoding, and we can hardcode nonexisting dirs.
24862     hardcode_action_GCJ=immediate
24863   fi
24864 else
24865   # We cannot hardcode anything, or else we can only hardcode existing
24866   # directories.
24867   hardcode_action_GCJ=unsupported
24868 fi
24869 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24870 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
24871
24872 if test "$hardcode_action_GCJ" = relink; then
24873   # Fast installation is not supported
24874   enable_fast_install=no
24875 elif test "$shlibpath_overrides_runpath" = yes ||
24876      test "$enable_shared" = no; then
24877   # Fast installation is not necessary
24878   enable_fast_install=needless
24879 fi
24880
24881
24882 # The else clause should only fire when bootstrapping the
24883 # libtool distribution, otherwise you forgot to ship ltmain.sh
24884 # with your package, and you will get complaints that there are
24885 # no rules to generate ltmain.sh.
24886 if test -f "$ltmain"; then
24887   # See if we are running on zsh, and set the options which allow our commands through
24888   # without removal of \ escapes.
24889   if test -n "${ZSH_VERSION+set}" ; then
24890     setopt NO_GLOB_SUBST
24891   fi
24892   # Now quote all the things that may contain metacharacters while being
24893   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24894   # variables and quote the copies for generation of the libtool script.
24895   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24896     SED SHELL STRIP \
24897     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24898     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24899     deplibs_check_method reload_flag reload_cmds need_locks \
24900     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24901     lt_cv_sys_global_symbol_to_c_name_address \
24902     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24903     old_postinstall_cmds old_postuninstall_cmds \
24904     compiler_GCJ \
24905     CC_GCJ \
24906     LD_GCJ \
24907     lt_prog_compiler_wl_GCJ \
24908     lt_prog_compiler_pic_GCJ \
24909     lt_prog_compiler_static_GCJ \
24910     lt_prog_compiler_no_builtin_flag_GCJ \
24911     export_dynamic_flag_spec_GCJ \
24912     thread_safe_flag_spec_GCJ \
24913     whole_archive_flag_spec_GCJ \
24914     enable_shared_with_static_runtimes_GCJ \
24915     old_archive_cmds_GCJ \
24916     old_archive_from_new_cmds_GCJ \
24917     predep_objects_GCJ \
24918     postdep_objects_GCJ \
24919     predeps_GCJ \
24920     postdeps_GCJ \
24921     compiler_lib_search_path_GCJ \
24922     archive_cmds_GCJ \
24923     archive_expsym_cmds_GCJ \
24924     postinstall_cmds_GCJ \
24925     postuninstall_cmds_GCJ \
24926     old_archive_from_expsyms_cmds_GCJ \
24927     allow_undefined_flag_GCJ \
24928     no_undefined_flag_GCJ \
24929     export_symbols_cmds_GCJ \
24930     hardcode_libdir_flag_spec_GCJ \
24931     hardcode_libdir_flag_spec_ld_GCJ \
24932     hardcode_libdir_separator_GCJ \
24933     hardcode_automatic_GCJ \
24934     module_cmds_GCJ \
24935     module_expsym_cmds_GCJ \
24936     lt_cv_prog_compiler_c_o_GCJ \
24937     exclude_expsyms_GCJ \
24938     include_expsyms_GCJ; do
24939
24940     case $var in
24941     old_archive_cmds_GCJ | \
24942     old_archive_from_new_cmds_GCJ | \
24943     archive_cmds_GCJ | \
24944     archive_expsym_cmds_GCJ | \
24945     module_cmds_GCJ | \
24946     module_expsym_cmds_GCJ | \
24947     old_archive_from_expsyms_cmds_GCJ | \
24948     export_symbols_cmds_GCJ | \
24949     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24950     postinstall_cmds | postuninstall_cmds | \
24951     old_postinstall_cmds | old_postuninstall_cmds | \
24952     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24953       # Double-quote double-evaled strings.
24954       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24955       ;;
24956     *)
24957       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24958       ;;
24959     esac
24960   done
24961
24962   case $lt_echo in
24963   *'\$0 --fallback-echo"')
24964     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24965     ;;
24966   esac
24967
24968 cfgfile="$ofile"
24969
24970   cat <<__EOF__ >> "$cfgfile"
24971 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24972
24973 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24974
24975 # Shell to use when invoking shell scripts.
24976 SHELL=$lt_SHELL
24977
24978 # Whether or not to build shared libraries.
24979 build_libtool_libs=$enable_shared
24980
24981 # Whether or not to build static libraries.
24982 build_old_libs=$enable_static
24983
24984 # Whether or not to add -lc for building shared libraries.
24985 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24986
24987 # Whether or not to disallow shared libs when runtime libs are static
24988 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24989
24990 # Whether or not to optimize for fast installation.
24991 fast_install=$enable_fast_install
24992
24993 # The host system.
24994 host_alias=$host_alias
24995 host=$host
24996 host_os=$host_os
24997
24998 # The build system.
24999 build_alias=$build_alias
25000 build=$build
25001 build_os=$build_os
25002
25003 # An echo program that does not interpret backslashes.
25004 echo=$lt_echo
25005
25006 # The archiver.
25007 AR=$lt_AR
25008 AR_FLAGS=$lt_AR_FLAGS
25009
25010 # A C compiler.
25011 LTCC=$lt_LTCC
25012
25013 # LTCC compiler flags.
25014 LTCFLAGS=$lt_LTCFLAGS
25015
25016 # A language-specific compiler.
25017 CC=$lt_compiler_GCJ
25018
25019 # Is the compiler the GNU C compiler?
25020 with_gcc=$GCC_GCJ
25021
25022 # An ERE matcher.
25023 EGREP=$lt_EGREP
25024
25025 # The linker used to build libraries.
25026 LD=$lt_LD_GCJ
25027
25028 # Whether we need hard or soft links.
25029 LN_S=$lt_LN_S
25030
25031 # A BSD-compatible nm program.
25032 NM=$lt_NM
25033
25034 # A symbol stripping program
25035 STRIP=$lt_STRIP
25036
25037 # Used to examine libraries when file_magic_cmd begins "file"
25038 MAGIC_CMD=$MAGIC_CMD
25039
25040 # Used on cygwin: DLL creation program.
25041 DLLTOOL="$DLLTOOL"
25042
25043 # Used on cygwin: object dumper.
25044 OBJDUMP="$OBJDUMP"
25045
25046 # Used on cygwin: assembler.
25047 AS="$AS"
25048
25049 # The name of the directory that contains temporary libtool files.
25050 objdir=$objdir
25051
25052 # How to create reloadable object files.
25053 reload_flag=$lt_reload_flag
25054 reload_cmds=$lt_reload_cmds
25055
25056 # How to pass a linker flag through the compiler.
25057 wl=$lt_lt_prog_compiler_wl_GCJ
25058
25059 # Object file suffix (normally "o").
25060 objext="$ac_objext"
25061
25062 # Old archive suffix (normally "a").
25063 libext="$libext"
25064
25065 # Shared library suffix (normally ".so").
25066 shrext_cmds='$shrext_cmds'
25067
25068 # Executable file suffix (normally "").
25069 exeext="$exeext"
25070
25071 # Additional compiler flags for building library objects.
25072 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25073 pic_mode=$pic_mode
25074
25075 # What is the maximum length of a command?
25076 max_cmd_len=$lt_cv_sys_max_cmd_len
25077
25078 # Does compiler simultaneously support -c and -o options?
25079 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25080
25081 # Must we lock files when doing compilation?
25082 need_locks=$lt_need_locks
25083
25084 # Do we need the lib prefix for modules?
25085 need_lib_prefix=$need_lib_prefix
25086
25087 # Do we need a version for libraries?
25088 need_version=$need_version
25089
25090 # Whether dlopen is supported.
25091 dlopen_support=$enable_dlopen
25092
25093 # Whether dlopen of programs is supported.
25094 dlopen_self=$enable_dlopen_self
25095
25096 # Whether dlopen of statically linked programs is supported.
25097 dlopen_self_static=$enable_dlopen_self_static
25098
25099 # Compiler flag to prevent dynamic linking.
25100 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25101
25102 # Compiler flag to turn off builtin functions.
25103 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25104
25105 # Compiler flag to allow reflexive dlopens.
25106 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25107
25108 # Compiler flag to generate shared objects directly from archives.
25109 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25110
25111 # Compiler flag to generate thread-safe objects.
25112 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25113
25114 # Library versioning type.
25115 version_type=$version_type
25116
25117 # Format of library name prefix.
25118 libname_spec=$lt_libname_spec
25119
25120 # List of archive names.  First name is the real one, the rest are links.
25121 # The last name is the one that the linker finds with -lNAME.
25122 library_names_spec=$lt_library_names_spec
25123
25124 # The coded name of the library, if different from the real name.
25125 soname_spec=$lt_soname_spec
25126
25127 # Commands used to build and install an old-style archive.
25128 RANLIB=$lt_RANLIB
25129 old_archive_cmds=$lt_old_archive_cmds_GCJ
25130 old_postinstall_cmds=$lt_old_postinstall_cmds
25131 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25132
25133 # Create an old-style archive from a shared archive.
25134 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25135
25136 # Create a temporary old-style archive to link instead of a shared archive.
25137 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25138
25139 # Commands used to build and install a shared archive.
25140 archive_cmds=$lt_archive_cmds_GCJ
25141 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25142 postinstall_cmds=$lt_postinstall_cmds
25143 postuninstall_cmds=$lt_postuninstall_cmds
25144
25145 # Commands used to build a loadable module (assumed same as above if empty)
25146 module_cmds=$lt_module_cmds_GCJ
25147 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25148
25149 # Commands to strip libraries.
25150 old_striplib=$lt_old_striplib
25151 striplib=$lt_striplib
25152
25153 # Dependencies to place before the objects being linked to create a
25154 # shared library.
25155 predep_objects=$lt_predep_objects_GCJ
25156
25157 # Dependencies to place after the objects being linked to create a
25158 # shared library.
25159 postdep_objects=$lt_postdep_objects_GCJ
25160
25161 # Dependencies to place before the objects being linked to create a
25162 # shared library.
25163 predeps=$lt_predeps_GCJ
25164
25165 # Dependencies to place after the objects being linked to create a
25166 # shared library.
25167 postdeps=$lt_postdeps_GCJ
25168
25169 # The library search path used internally by the compiler when linking
25170 # a shared library.
25171 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25172
25173 # Method to check whether dependent libraries are shared objects.
25174 deplibs_check_method=$lt_deplibs_check_method
25175
25176 # Command to use when deplibs_check_method == file_magic.
25177 file_magic_cmd=$lt_file_magic_cmd
25178
25179 # Flag that allows shared libraries with undefined symbols to be built.
25180 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25181
25182 # Flag that forces no undefined symbols.
25183 no_undefined_flag=$lt_no_undefined_flag_GCJ
25184
25185 # Commands used to finish a libtool library installation in a directory.
25186 finish_cmds=$lt_finish_cmds
25187
25188 # Same as above, but a single script fragment to be evaled but not shown.
25189 finish_eval=$lt_finish_eval
25190
25191 # Take the output of nm and produce a listing of raw symbols and C names.
25192 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25193
25194 # Transform the output of nm in a proper C declaration
25195 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25196
25197 # Transform the output of nm in a C name address pair
25198 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25199
25200 # This is the shared library runtime path variable.
25201 runpath_var=$runpath_var
25202
25203 # This is the shared library path variable.
25204 shlibpath_var=$shlibpath_var
25205
25206 # Is shlibpath searched before the hard-coded library search path?
25207 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25208
25209 # How to hardcode a shared library path into an executable.
25210 hardcode_action=$hardcode_action_GCJ
25211
25212 # Whether we should hardcode library paths into libraries.
25213 hardcode_into_libs=$hardcode_into_libs
25214
25215 # Flag to hardcode \$libdir into a binary during linking.
25216 # This must work even if \$libdir does not exist.
25217 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25218
25219 # If ld is used when linking, flag to hardcode \$libdir into
25220 # a binary during linking. This must work even if \$libdir does
25221 # not exist.
25222 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25223
25224 # Whether we need a single -rpath flag with a separated argument.
25225 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25226
25227 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25228 # resulting binary.
25229 hardcode_direct=$hardcode_direct_GCJ
25230
25231 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25232 # resulting binary.
25233 hardcode_minus_L=$hardcode_minus_L_GCJ
25234
25235 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25236 # the resulting binary.
25237 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25238
25239 # Set to yes if building a shared library automatically hardcodes DIR into the library
25240 # and all subsequent libraries and executables linked against it.
25241 hardcode_automatic=$hardcode_automatic_GCJ
25242
25243 # Variables whose values should be saved in libtool wrapper scripts and
25244 # restored at relink time.
25245 variables_saved_for_relink="$variables_saved_for_relink"
25246
25247 # Whether libtool must link a program against all its dependency libraries.
25248 link_all_deplibs=$link_all_deplibs_GCJ
25249
25250 # Compile-time system search path for libraries
25251 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25252
25253 # Run-time system search path for libraries
25254 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25255
25256 # Fix the shell variable \$srcfile for the compiler.
25257 fix_srcfile_path="$fix_srcfile_path_GCJ"
25258
25259 # Set to yes if exported symbols are required.
25260 always_export_symbols=$always_export_symbols_GCJ
25261
25262 # The commands to list exported symbols.
25263 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25264
25265 # The commands to extract the exported symbol list from a shared archive.
25266 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25267
25268 # Symbols that should not be listed in the preloaded symbols.
25269 exclude_expsyms=$lt_exclude_expsyms_GCJ
25270
25271 # Symbols that must always be exported.
25272 include_expsyms=$lt_include_expsyms_GCJ
25273
25274 # ### END LIBTOOL TAG CONFIG: $tagname
25275
25276 __EOF__
25277
25278
25279 else
25280   # If there is no Makefile yet, we rely on a make rule to execute
25281   # `config.status --recheck' to rerun these tests and create the
25282   # libtool script then.
25283   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25284   if test -f "$ltmain_in"; then
25285     test -f Makefile && make "$ltmain"
25286   fi
25287 fi
25288
25289
25290 ac_ext=c
25291 ac_cpp='$CPP $CPPFLAGS'
25292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25295
25296 CC="$lt_save_CC"
25297
25298         else
25299           tagname=""
25300         fi
25301         ;;
25302
25303       RC)
25304         ac_ext=c
25305 ac_cpp='$CPP $CPPFLAGS'
25306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25309
25310
25311 # Source file extension for RC test sources.
25312 ac_ext=rc
25313
25314 # Object file extension for compiled RC test sources.
25315 objext=o
25316 objext_RC=$objext
25317
25318 # Code to be used in simple compile tests
25319 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25320
25321 # Code to be used in simple link tests
25322 lt_simple_link_test_code="$lt_simple_compile_test_code"
25323
25324 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25325
25326 # If no C compiler was specified, use CC.
25327 LTCC=${LTCC-"$CC"}
25328
25329 # If no C compiler flags were specified, use CFLAGS.
25330 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25331
25332 # Allow CC to be a program name with arguments.
25333 compiler=$CC
25334
25335
25336 # save warnings/boilerplate of simple test code
25337 ac_outfile=conftest.$ac_objext
25338 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25339 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25340 _lt_compiler_boilerplate=`cat conftest.err`
25341 $rm conftest*
25342
25343 ac_outfile=conftest.$ac_objext
25344 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25345 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25346 _lt_linker_boilerplate=`cat conftest.err`
25347 $rm conftest*
25348
25349
25350 # Allow CC to be a program name with arguments.
25351 lt_save_CC="$CC"
25352 CC=${RC-"windres"}
25353 compiler=$CC
25354 compiler_RC=$CC
25355 for cc_temp in $compiler""; do
25356   case $cc_temp in
25357     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25358     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25359     \-*) ;;
25360     *) break;;
25361   esac
25362 done
25363 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25364
25365 lt_cv_prog_compiler_c_o_RC=yes
25366
25367 # The else clause should only fire when bootstrapping the
25368 # libtool distribution, otherwise you forgot to ship ltmain.sh
25369 # with your package, and you will get complaints that there are
25370 # no rules to generate ltmain.sh.
25371 if test -f "$ltmain"; then
25372   # See if we are running on zsh, and set the options which allow our commands through
25373   # without removal of \ escapes.
25374   if test -n "${ZSH_VERSION+set}" ; then
25375     setopt NO_GLOB_SUBST
25376   fi
25377   # Now quote all the things that may contain metacharacters while being
25378   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25379   # variables and quote the copies for generation of the libtool script.
25380   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25381     SED SHELL STRIP \
25382     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25383     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25384     deplibs_check_method reload_flag reload_cmds need_locks \
25385     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25386     lt_cv_sys_global_symbol_to_c_name_address \
25387     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25388     old_postinstall_cmds old_postuninstall_cmds \
25389     compiler_RC \
25390     CC_RC \
25391     LD_RC \
25392     lt_prog_compiler_wl_RC \
25393     lt_prog_compiler_pic_RC \
25394     lt_prog_compiler_static_RC \
25395     lt_prog_compiler_no_builtin_flag_RC \
25396     export_dynamic_flag_spec_RC \
25397     thread_safe_flag_spec_RC \
25398     whole_archive_flag_spec_RC \
25399     enable_shared_with_static_runtimes_RC \
25400     old_archive_cmds_RC \
25401     old_archive_from_new_cmds_RC \
25402     predep_objects_RC \
25403     postdep_objects_RC \
25404     predeps_RC \
25405     postdeps_RC \
25406     compiler_lib_search_path_RC \
25407     archive_cmds_RC \
25408     archive_expsym_cmds_RC \
25409     postinstall_cmds_RC \
25410     postuninstall_cmds_RC \
25411     old_archive_from_expsyms_cmds_RC \
25412     allow_undefined_flag_RC \
25413     no_undefined_flag_RC \
25414     export_symbols_cmds_RC \
25415     hardcode_libdir_flag_spec_RC \
25416     hardcode_libdir_flag_spec_ld_RC \
25417     hardcode_libdir_separator_RC \
25418     hardcode_automatic_RC \
25419     module_cmds_RC \
25420     module_expsym_cmds_RC \
25421     lt_cv_prog_compiler_c_o_RC \
25422     exclude_expsyms_RC \
25423     include_expsyms_RC; do
25424
25425     case $var in
25426     old_archive_cmds_RC | \
25427     old_archive_from_new_cmds_RC | \
25428     archive_cmds_RC | \
25429     archive_expsym_cmds_RC | \
25430     module_cmds_RC | \
25431     module_expsym_cmds_RC | \
25432     old_archive_from_expsyms_cmds_RC | \
25433     export_symbols_cmds_RC | \
25434     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25435     postinstall_cmds | postuninstall_cmds | \
25436     old_postinstall_cmds | old_postuninstall_cmds | \
25437     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25438       # Double-quote double-evaled strings.
25439       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25440       ;;
25441     *)
25442       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25443       ;;
25444     esac
25445   done
25446
25447   case $lt_echo in
25448   *'\$0 --fallback-echo"')
25449     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25450     ;;
25451   esac
25452
25453 cfgfile="$ofile"
25454
25455   cat <<__EOF__ >> "$cfgfile"
25456 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25457
25458 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25459
25460 # Shell to use when invoking shell scripts.
25461 SHELL=$lt_SHELL
25462
25463 # Whether or not to build shared libraries.
25464 build_libtool_libs=$enable_shared
25465
25466 # Whether or not to build static libraries.
25467 build_old_libs=$enable_static
25468
25469 # Whether or not to add -lc for building shared libraries.
25470 build_libtool_need_lc=$archive_cmds_need_lc_RC
25471
25472 # Whether or not to disallow shared libs when runtime libs are static
25473 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25474
25475 # Whether or not to optimize for fast installation.
25476 fast_install=$enable_fast_install
25477
25478 # The host system.
25479 host_alias=$host_alias
25480 host=$host
25481 host_os=$host_os
25482
25483 # The build system.
25484 build_alias=$build_alias
25485 build=$build
25486 build_os=$build_os
25487
25488 # An echo program that does not interpret backslashes.
25489 echo=$lt_echo
25490
25491 # The archiver.
25492 AR=$lt_AR
25493 AR_FLAGS=$lt_AR_FLAGS
25494
25495 # A C compiler.
25496 LTCC=$lt_LTCC
25497
25498 # LTCC compiler flags.
25499 LTCFLAGS=$lt_LTCFLAGS
25500
25501 # A language-specific compiler.
25502 CC=$lt_compiler_RC
25503
25504 # Is the compiler the GNU C compiler?
25505 with_gcc=$GCC_RC
25506
25507 # An ERE matcher.
25508 EGREP=$lt_EGREP
25509
25510 # The linker used to build libraries.
25511 LD=$lt_LD_RC
25512
25513 # Whether we need hard or soft links.
25514 LN_S=$lt_LN_S
25515
25516 # A BSD-compatible nm program.
25517 NM=$lt_NM
25518
25519 # A symbol stripping program
25520 STRIP=$lt_STRIP
25521
25522 # Used to examine libraries when file_magic_cmd begins "file"
25523 MAGIC_CMD=$MAGIC_CMD
25524
25525 # Used on cygwin: DLL creation program.
25526 DLLTOOL="$DLLTOOL"
25527
25528 # Used on cygwin: object dumper.
25529 OBJDUMP="$OBJDUMP"
25530
25531 # Used on cygwin: assembler.
25532 AS="$AS"
25533
25534 # The name of the directory that contains temporary libtool files.
25535 objdir=$objdir
25536
25537 # How to create reloadable object files.
25538 reload_flag=$lt_reload_flag
25539 reload_cmds=$lt_reload_cmds
25540
25541 # How to pass a linker flag through the compiler.
25542 wl=$lt_lt_prog_compiler_wl_RC
25543
25544 # Object file suffix (normally "o").
25545 objext="$ac_objext"
25546
25547 # Old archive suffix (normally "a").
25548 libext="$libext"
25549
25550 # Shared library suffix (normally ".so").
25551 shrext_cmds='$shrext_cmds'
25552
25553 # Executable file suffix (normally "").
25554 exeext="$exeext"
25555
25556 # Additional compiler flags for building library objects.
25557 pic_flag=$lt_lt_prog_compiler_pic_RC
25558 pic_mode=$pic_mode
25559
25560 # What is the maximum length of a command?
25561 max_cmd_len=$lt_cv_sys_max_cmd_len
25562
25563 # Does compiler simultaneously support -c and -o options?
25564 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25565
25566 # Must we lock files when doing compilation?
25567 need_locks=$lt_need_locks
25568
25569 # Do we need the lib prefix for modules?
25570 need_lib_prefix=$need_lib_prefix
25571
25572 # Do we need a version for libraries?
25573 need_version=$need_version
25574
25575 # Whether dlopen is supported.
25576 dlopen_support=$enable_dlopen
25577
25578 # Whether dlopen of programs is supported.
25579 dlopen_self=$enable_dlopen_self
25580
25581 # Whether dlopen of statically linked programs is supported.
25582 dlopen_self_static=$enable_dlopen_self_static
25583
25584 # Compiler flag to prevent dynamic linking.
25585 link_static_flag=$lt_lt_prog_compiler_static_RC
25586
25587 # Compiler flag to turn off builtin functions.
25588 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25589
25590 # Compiler flag to allow reflexive dlopens.
25591 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25592
25593 # Compiler flag to generate shared objects directly from archives.
25594 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25595
25596 # Compiler flag to generate thread-safe objects.
25597 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25598
25599 # Library versioning type.
25600 version_type=$version_type
25601
25602 # Format of library name prefix.
25603 libname_spec=$lt_libname_spec
25604
25605 # List of archive names.  First name is the real one, the rest are links.
25606 # The last name is the one that the linker finds with -lNAME.
25607 library_names_spec=$lt_library_names_spec
25608
25609 # The coded name of the library, if different from the real name.
25610 soname_spec=$lt_soname_spec
25611
25612 # Commands used to build and install an old-style archive.
25613 RANLIB=$lt_RANLIB
25614 old_archive_cmds=$lt_old_archive_cmds_RC
25615 old_postinstall_cmds=$lt_old_postinstall_cmds
25616 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25617
25618 # Create an old-style archive from a shared archive.
25619 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25620
25621 # Create a temporary old-style archive to link instead of a shared archive.
25622 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25623
25624 # Commands used to build and install a shared archive.
25625 archive_cmds=$lt_archive_cmds_RC
25626 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25627 postinstall_cmds=$lt_postinstall_cmds
25628 postuninstall_cmds=$lt_postuninstall_cmds
25629
25630 # Commands used to build a loadable module (assumed same as above if empty)
25631 module_cmds=$lt_module_cmds_RC
25632 module_expsym_cmds=$lt_module_expsym_cmds_RC
25633
25634 # Commands to strip libraries.
25635 old_striplib=$lt_old_striplib
25636 striplib=$lt_striplib
25637
25638 # Dependencies to place before the objects being linked to create a
25639 # shared library.
25640 predep_objects=$lt_predep_objects_RC
25641
25642 # Dependencies to place after the objects being linked to create a
25643 # shared library.
25644 postdep_objects=$lt_postdep_objects_RC
25645
25646 # Dependencies to place before the objects being linked to create a
25647 # shared library.
25648 predeps=$lt_predeps_RC
25649
25650 # Dependencies to place after the objects being linked to create a
25651 # shared library.
25652 postdeps=$lt_postdeps_RC
25653
25654 # The library search path used internally by the compiler when linking
25655 # a shared library.
25656 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25657
25658 # Method to check whether dependent libraries are shared objects.
25659 deplibs_check_method=$lt_deplibs_check_method
25660
25661 # Command to use when deplibs_check_method == file_magic.
25662 file_magic_cmd=$lt_file_magic_cmd
25663
25664 # Flag that allows shared libraries with undefined symbols to be built.
25665 allow_undefined_flag=$lt_allow_undefined_flag_RC
25666
25667 # Flag that forces no undefined symbols.
25668 no_undefined_flag=$lt_no_undefined_flag_RC
25669
25670 # Commands used to finish a libtool library installation in a directory.
25671 finish_cmds=$lt_finish_cmds
25672
25673 # Same as above, but a single script fragment to be evaled but not shown.
25674 finish_eval=$lt_finish_eval
25675
25676 # Take the output of nm and produce a listing of raw symbols and C names.
25677 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25678
25679 # Transform the output of nm in a proper C declaration
25680 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25681
25682 # Transform the output of nm in a C name address pair
25683 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25684
25685 # This is the shared library runtime path variable.
25686 runpath_var=$runpath_var
25687
25688 # This is the shared library path variable.
25689 shlibpath_var=$shlibpath_var
25690
25691 # Is shlibpath searched before the hard-coded library search path?
25692 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25693
25694 # How to hardcode a shared library path into an executable.
25695 hardcode_action=$hardcode_action_RC
25696
25697 # Whether we should hardcode library paths into libraries.
25698 hardcode_into_libs=$hardcode_into_libs
25699
25700 # Flag to hardcode \$libdir into a binary during linking.
25701 # This must work even if \$libdir does not exist.
25702 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25703
25704 # If ld is used when linking, flag to hardcode \$libdir into
25705 # a binary during linking. This must work even if \$libdir does
25706 # not exist.
25707 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25708
25709 # Whether we need a single -rpath flag with a separated argument.
25710 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25711
25712 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25713 # resulting binary.
25714 hardcode_direct=$hardcode_direct_RC
25715
25716 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25717 # resulting binary.
25718 hardcode_minus_L=$hardcode_minus_L_RC
25719
25720 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25721 # the resulting binary.
25722 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25723
25724 # Set to yes if building a shared library automatically hardcodes DIR into the library
25725 # and all subsequent libraries and executables linked against it.
25726 hardcode_automatic=$hardcode_automatic_RC
25727
25728 # Variables whose values should be saved in libtool wrapper scripts and
25729 # restored at relink time.
25730 variables_saved_for_relink="$variables_saved_for_relink"
25731
25732 # Whether libtool must link a program against all its dependency libraries.
25733 link_all_deplibs=$link_all_deplibs_RC
25734
25735 # Compile-time system search path for libraries
25736 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25737
25738 # Run-time system search path for libraries
25739 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25740
25741 # Fix the shell variable \$srcfile for the compiler.
25742 fix_srcfile_path="$fix_srcfile_path_RC"
25743
25744 # Set to yes if exported symbols are required.
25745 always_export_symbols=$always_export_symbols_RC
25746
25747 # The commands to list exported symbols.
25748 export_symbols_cmds=$lt_export_symbols_cmds_RC
25749
25750 # The commands to extract the exported symbol list from a shared archive.
25751 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25752
25753 # Symbols that should not be listed in the preloaded symbols.
25754 exclude_expsyms=$lt_exclude_expsyms_RC
25755
25756 # Symbols that must always be exported.
25757 include_expsyms=$lt_include_expsyms_RC
25758
25759 # ### END LIBTOOL TAG CONFIG: $tagname
25760
25761 __EOF__
25762
25763
25764 else
25765   # If there is no Makefile yet, we rely on a make rule to execute
25766   # `config.status --recheck' to rerun these tests and create the
25767   # libtool script then.
25768   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25769   if test -f "$ltmain_in"; then
25770     test -f Makefile && make "$ltmain"
25771   fi
25772 fi
25773
25774
25775 ac_ext=c
25776 ac_cpp='$CPP $CPPFLAGS'
25777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25780
25781 CC="$lt_save_CC"
25782
25783         ;;
25784
25785       *)
25786         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25787 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25788    { (exit 1); exit 1; }; }
25789         ;;
25790       esac
25791
25792       # Append the new tag name to the list of available tags.
25793       if test -n "$tagname" ; then
25794       available_tags="$available_tags $tagname"
25795     fi
25796     fi
25797   done
25798   IFS="$lt_save_ifs"
25799
25800   # Now substitute the updated list of available tags.
25801   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25802     mv "${ofile}T" "$ofile"
25803     chmod +x "$ofile"
25804   else
25805     rm -f "${ofile}T"
25806     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25807 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25808    { (exit 1); exit 1; }; }
25809   fi
25810 fi
25811
25812
25813
25814 # This can be used to rebuild libtool when needed
25815 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25816
25817 # Always use our own libtool.
25818 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25819
25820 # Prevent multiple expansion
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841
25842 if test "$lt_cv_dlopen_self" = "yes" ; then
25843
25844 cat >>confdefs.h <<\_ACEOF
25845 #define CAN_DLOPEN_SELF 1
25846 _ACEOF
25847
25848 fi
25849
25850 if test "$WITH_LLVMGCCDIR" = "default" ; then
25851   LLVMGCC="llvm-gcc${EXEEXT}"
25852   LLVMGXX="llvm-g++${EXEEXT}"
25853   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25854 set dummy $LLVMGCC; ac_word=$2
25855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25857 if test "${ac_cv_path_LLVMGCC+set}" = set; then
25858   echo $ECHO_N "(cached) $ECHO_C" >&6
25859 else
25860   case $LLVMGCC in
25861   [\\/]* | ?:[\\/]*)
25862   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25863   ;;
25864   *)
25865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25866 for as_dir in $PATH
25867 do
25868   IFS=$as_save_IFS
25869   test -z "$as_dir" && as_dir=.
25870   for ac_exec_ext in '' $ac_executable_extensions; do
25871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25872     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25874     break 2
25875   fi
25876 done
25877 done
25878 IFS=$as_save_IFS
25879
25880   ;;
25881 esac
25882 fi
25883 LLVMGCC=$ac_cv_path_LLVMGCC
25884 if test -n "$LLVMGCC"; then
25885   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25886 echo "${ECHO_T}$LLVMGCC" >&6; }
25887 else
25888   { echo "$as_me:$LINENO: result: no" >&5
25889 echo "${ECHO_T}no" >&6; }
25890 fi
25891
25892
25893   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25894 set dummy $LLVMGXX; ac_word=$2
25895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25897 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25898   echo $ECHO_N "(cached) $ECHO_C" >&6
25899 else
25900   case $LLVMGXX in
25901   [\\/]* | ?:[\\/]*)
25902   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25903   ;;
25904   *)
25905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25906 for as_dir in $PATH
25907 do
25908   IFS=$as_save_IFS
25909   test -z "$as_dir" && as_dir=.
25910   for ac_exec_ext in '' $ac_executable_extensions; do
25911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25912     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25914     break 2
25915   fi
25916 done
25917 done
25918 IFS=$as_save_IFS
25919
25920   ;;
25921 esac
25922 fi
25923 LLVMGXX=$ac_cv_path_LLVMGXX
25924 if test -n "$LLVMGXX"; then
25925   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25926 echo "${ECHO_T}$LLVMGXX" >&6; }
25927 else
25928   { echo "$as_me:$LINENO: result: no" >&5
25929 echo "${ECHO_T}no" >&6; }
25930 fi
25931
25932
25933 else
25934   if test -z "$LLVMGCC"; then
25935     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25936   fi
25937   if test -z "$LLVMGXX"; then
25938     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25939   fi
25940   LLVMGCC=$LLVMGCC
25941
25942   LLVMGXX=$LLVMGXX
25943
25944 fi
25945
25946 { echo "$as_me:$LINENO: checking tool compatibility" >&5
25947 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
25948
25949 ICC=no
25950 IXX=no
25951 case $CC in
25952   icc*|icpc*)
25953     ICC=yes
25954     IXX=yes
25955     ;;
25956    *)
25957     ;;
25958 esac
25959
25960 if test "$GCC" != "yes" && test "$ICC" != "yes"
25961 then
25962   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25963 echo "$as_me: error: gcc|icc required but not found" >&2;}
25964    { (exit 1); exit 1; }; }
25965 fi
25966
25967 if test "$GXX" != "yes" && test "$IXX" != "yes"
25968 then
25969   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25970 echo "$as_me: error: g++|icc required but not found" >&2;}
25971    { (exit 1); exit 1; }; }
25972 fi
25973
25974 if test "$GCC" = "yes"
25975 then
25976   cat >conftest.$ac_ext <<_ACEOF
25977 #if !defined(__GNUC__) || __GNUC__ < 3
25978 #error Unsupported GCC version
25979 #endif
25980
25981 _ACEOF
25982 rm -f conftest.$ac_objext
25983 if { (ac_try="$ac_compile"
25984 case "(($ac_try" in
25985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25986   *) ac_try_echo=$ac_try;;
25987 esac
25988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25989   (eval "$ac_compile") 2>conftest.er1
25990   ac_status=$?
25991   grep -v '^ *+' conftest.er1 >conftest.err
25992   rm -f conftest.er1
25993   cat conftest.err >&5
25994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995   (exit $ac_status); } && {
25996          test -z "$ac_c_werror_flag" ||
25997          test ! -s conftest.err
25998        } && test -s conftest.$ac_objext; then
25999   :
26000 else
26001   echo "$as_me: failed program was:" >&5
26002 sed 's/^/| /' conftest.$ac_ext >&5
26003
26004         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26005 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26006    { (exit 1); exit 1; }; }
26007 fi
26008
26009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26010 fi
26011
26012 if test -z "$llvm_cv_gnu_make_command"
26013 then
26014   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26015 echo "$as_me: error: GNU Make required but not found" >&2;}
26016    { (exit 1); exit 1; }; }
26017 fi
26018
26019 { echo "$as_me:$LINENO: result: ok" >&5
26020 echo "${ECHO_T}ok" >&6; }
26021
26022
26023
26024 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26025 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26026 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26027   echo $ECHO_N "(cached) $ECHO_C" >&6
26028 else
26029   ac_check_lib_save_LIBS=$LIBS
26030 LIBS="-lelf  $LIBS"
26031 cat >conftest.$ac_ext <<_ACEOF
26032 /* confdefs.h.  */
26033 _ACEOF
26034 cat confdefs.h >>conftest.$ac_ext
26035 cat >>conftest.$ac_ext <<_ACEOF
26036 /* end confdefs.h.  */
26037
26038 /* Override any GCC internal prototype to avoid an error.
26039    Use char because int might match the return type of a GCC
26040    builtin and then its argument prototype would still apply.  */
26041 #ifdef __cplusplus
26042 extern "C"
26043 #endif
26044 char elf_begin ();
26045 int
26046 main ()
26047 {
26048 return elf_begin ();
26049   ;
26050   return 0;
26051 }
26052 _ACEOF
26053 rm -f conftest.$ac_objext conftest$ac_exeext
26054 if { (ac_try="$ac_link"
26055 case "(($ac_try" in
26056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057   *) ac_try_echo=$ac_try;;
26058 esac
26059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26060   (eval "$ac_link") 2>conftest.er1
26061   ac_status=$?
26062   grep -v '^ *+' conftest.er1 >conftest.err
26063   rm -f conftest.er1
26064   cat conftest.err >&5
26065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066   (exit $ac_status); } && {
26067          test -z "$ac_c_werror_flag" ||
26068          test ! -s conftest.err
26069        } && test -s conftest$ac_exeext &&
26070        $as_test_x conftest$ac_exeext; then
26071   ac_cv_lib_elf_elf_begin=yes
26072 else
26073   echo "$as_me: failed program was:" >&5
26074 sed 's/^/| /' conftest.$ac_ext >&5
26075
26076         ac_cv_lib_elf_elf_begin=no
26077 fi
26078
26079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26080       conftest$ac_exeext conftest.$ac_ext
26081 LIBS=$ac_check_lib_save_LIBS
26082 fi
26083 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26084 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26085 if test $ac_cv_lib_elf_elf_begin = yes; then
26086   cat >>confdefs.h <<_ACEOF
26087 #define HAVE_LIBELF 1
26088 _ACEOF
26089
26090   LIBS="-lelf $LIBS"
26091
26092 fi
26093
26094
26095 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26096 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26097 if test "${ac_cv_lib_m_sin+set}" = set; then
26098   echo $ECHO_N "(cached) $ECHO_C" >&6
26099 else
26100   ac_check_lib_save_LIBS=$LIBS
26101 LIBS="-lm  $LIBS"
26102 cat >conftest.$ac_ext <<_ACEOF
26103 /* confdefs.h.  */
26104 _ACEOF
26105 cat confdefs.h >>conftest.$ac_ext
26106 cat >>conftest.$ac_ext <<_ACEOF
26107 /* end confdefs.h.  */
26108
26109 /* Override any GCC internal prototype to avoid an error.
26110    Use char because int might match the return type of a GCC
26111    builtin and then its argument prototype would still apply.  */
26112 #ifdef __cplusplus
26113 extern "C"
26114 #endif
26115 char sin ();
26116 int
26117 main ()
26118 {
26119 return sin ();
26120   ;
26121   return 0;
26122 }
26123 _ACEOF
26124 rm -f conftest.$ac_objext conftest$ac_exeext
26125 if { (ac_try="$ac_link"
26126 case "(($ac_try" in
26127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26128   *) ac_try_echo=$ac_try;;
26129 esac
26130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26131   (eval "$ac_link") 2>conftest.er1
26132   ac_status=$?
26133   grep -v '^ *+' conftest.er1 >conftest.err
26134   rm -f conftest.er1
26135   cat conftest.err >&5
26136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137   (exit $ac_status); } && {
26138          test -z "$ac_c_werror_flag" ||
26139          test ! -s conftest.err
26140        } && test -s conftest$ac_exeext &&
26141        $as_test_x conftest$ac_exeext; then
26142   ac_cv_lib_m_sin=yes
26143 else
26144   echo "$as_me: failed program was:" >&5
26145 sed 's/^/| /' conftest.$ac_ext >&5
26146
26147         ac_cv_lib_m_sin=no
26148 fi
26149
26150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26151       conftest$ac_exeext conftest.$ac_ext
26152 LIBS=$ac_check_lib_save_LIBS
26153 fi
26154 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26155 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26156 if test $ac_cv_lib_m_sin = yes; then
26157   cat >>confdefs.h <<_ACEOF
26158 #define HAVE_LIBM 1
26159 _ACEOF
26160
26161   LIBS="-lm $LIBS"
26162
26163 fi
26164
26165 if test "$llvm_cv_os_type" = "MingW" ; then
26166
26167 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26168 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26169 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26170   echo $ECHO_N "(cached) $ECHO_C" >&6
26171 else
26172   ac_check_lib_save_LIBS=$LIBS
26173 LIBS="-limagehlp  $LIBS"
26174 cat >conftest.$ac_ext <<_ACEOF
26175 /* confdefs.h.  */
26176 _ACEOF
26177 cat confdefs.h >>conftest.$ac_ext
26178 cat >>conftest.$ac_ext <<_ACEOF
26179 /* end confdefs.h.  */
26180
26181
26182 int
26183 main ()
26184 {
26185 return main ();
26186   ;
26187   return 0;
26188 }
26189 _ACEOF
26190 rm -f conftest.$ac_objext conftest$ac_exeext
26191 if { (ac_try="$ac_link"
26192 case "(($ac_try" in
26193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194   *) ac_try_echo=$ac_try;;
26195 esac
26196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26197   (eval "$ac_link") 2>conftest.er1
26198   ac_status=$?
26199   grep -v '^ *+' conftest.er1 >conftest.err
26200   rm -f conftest.er1
26201   cat conftest.err >&5
26202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203   (exit $ac_status); } && {
26204          test -z "$ac_c_werror_flag" ||
26205          test ! -s conftest.err
26206        } && test -s conftest$ac_exeext &&
26207        $as_test_x conftest$ac_exeext; then
26208   ac_cv_lib_imagehlp_main=yes
26209 else
26210   echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26212
26213         ac_cv_lib_imagehlp_main=no
26214 fi
26215
26216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26217       conftest$ac_exeext conftest.$ac_ext
26218 LIBS=$ac_check_lib_save_LIBS
26219 fi
26220 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26221 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26222 if test $ac_cv_lib_imagehlp_main = yes; then
26223   cat >>confdefs.h <<_ACEOF
26224 #define HAVE_LIBIMAGEHLP 1
26225 _ACEOF
26226
26227   LIBS="-limagehlp $LIBS"
26228
26229 fi
26230
26231
26232 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26233 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26234 if test "${ac_cv_lib_psapi_main+set}" = set; then
26235   echo $ECHO_N "(cached) $ECHO_C" >&6
26236 else
26237   ac_check_lib_save_LIBS=$LIBS
26238 LIBS="-lpsapi  $LIBS"
26239 cat >conftest.$ac_ext <<_ACEOF
26240 /* confdefs.h.  */
26241 _ACEOF
26242 cat confdefs.h >>conftest.$ac_ext
26243 cat >>conftest.$ac_ext <<_ACEOF
26244 /* end confdefs.h.  */
26245
26246
26247 int
26248 main ()
26249 {
26250 return main ();
26251   ;
26252   return 0;
26253 }
26254 _ACEOF
26255 rm -f conftest.$ac_objext conftest$ac_exeext
26256 if { (ac_try="$ac_link"
26257 case "(($ac_try" in
26258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26259   *) ac_try_echo=$ac_try;;
26260 esac
26261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26262   (eval "$ac_link") 2>conftest.er1
26263   ac_status=$?
26264   grep -v '^ *+' conftest.er1 >conftest.err
26265   rm -f conftest.er1
26266   cat conftest.err >&5
26267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268   (exit $ac_status); } && {
26269          test -z "$ac_c_werror_flag" ||
26270          test ! -s conftest.err
26271        } && test -s conftest$ac_exeext &&
26272        $as_test_x conftest$ac_exeext; then
26273   ac_cv_lib_psapi_main=yes
26274 else
26275   echo "$as_me: failed program was:" >&5
26276 sed 's/^/| /' conftest.$ac_ext >&5
26277
26278         ac_cv_lib_psapi_main=no
26279 fi
26280
26281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26282       conftest$ac_exeext conftest.$ac_ext
26283 LIBS=$ac_check_lib_save_LIBS
26284 fi
26285 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26286 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
26287 if test $ac_cv_lib_psapi_main = yes; then
26288   cat >>confdefs.h <<_ACEOF
26289 #define HAVE_LIBPSAPI 1
26290 _ACEOF
26291
26292   LIBS="-lpsapi $LIBS"
26293
26294 fi
26295
26296 fi
26297
26298 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26299 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
26300 if test "${ac_cv_search_dlopen+set}" = set; then
26301   echo $ECHO_N "(cached) $ECHO_C" >&6
26302 else
26303   ac_func_search_save_LIBS=$LIBS
26304 cat >conftest.$ac_ext <<_ACEOF
26305 /* confdefs.h.  */
26306 _ACEOF
26307 cat confdefs.h >>conftest.$ac_ext
26308 cat >>conftest.$ac_ext <<_ACEOF
26309 /* end confdefs.h.  */
26310
26311 /* Override any GCC internal prototype to avoid an error.
26312    Use char because int might match the return type of a GCC
26313    builtin and then its argument prototype would still apply.  */
26314 #ifdef __cplusplus
26315 extern "C"
26316 #endif
26317 char dlopen ();
26318 int
26319 main ()
26320 {
26321 return dlopen ();
26322   ;
26323   return 0;
26324 }
26325 _ACEOF
26326 for ac_lib in '' dl; do
26327   if test -z "$ac_lib"; then
26328     ac_res="none required"
26329   else
26330     ac_res=-l$ac_lib
26331     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26332   fi
26333   rm -f conftest.$ac_objext conftest$ac_exeext
26334 if { (ac_try="$ac_link"
26335 case "(($ac_try" in
26336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337   *) ac_try_echo=$ac_try;;
26338 esac
26339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26340   (eval "$ac_link") 2>conftest.er1
26341   ac_status=$?
26342   grep -v '^ *+' conftest.er1 >conftest.err
26343   rm -f conftest.er1
26344   cat conftest.err >&5
26345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346   (exit $ac_status); } && {
26347          test -z "$ac_c_werror_flag" ||
26348          test ! -s conftest.err
26349        } && test -s conftest$ac_exeext &&
26350        $as_test_x conftest$ac_exeext; then
26351   ac_cv_search_dlopen=$ac_res
26352 else
26353   echo "$as_me: failed program was:" >&5
26354 sed 's/^/| /' conftest.$ac_ext >&5
26355
26356
26357 fi
26358
26359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26360       conftest$ac_exeext
26361   if test "${ac_cv_search_dlopen+set}" = set; then
26362   break
26363 fi
26364 done
26365 if test "${ac_cv_search_dlopen+set}" = set; then
26366   :
26367 else
26368   ac_cv_search_dlopen=no
26369 fi
26370 rm conftest.$ac_ext
26371 LIBS=$ac_func_search_save_LIBS
26372 fi
26373 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26374 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26375 ac_res=$ac_cv_search_dlopen
26376 if test "$ac_res" != no; then
26377   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26378
26379 cat >>confdefs.h <<\_ACEOF
26380 #define HAVE_DLOPEN 1
26381 _ACEOF
26382
26383 else
26384   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26385 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
26386 fi
26387
26388
26389 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26390 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
26391 if test "${ac_cv_search_mallinfo+set}" = set; then
26392   echo $ECHO_N "(cached) $ECHO_C" >&6
26393 else
26394   ac_func_search_save_LIBS=$LIBS
26395 cat >conftest.$ac_ext <<_ACEOF
26396 /* confdefs.h.  */
26397 _ACEOF
26398 cat confdefs.h >>conftest.$ac_ext
26399 cat >>conftest.$ac_ext <<_ACEOF
26400 /* end confdefs.h.  */
26401
26402 /* Override any GCC internal prototype to avoid an error.
26403    Use char because int might match the return type of a GCC
26404    builtin and then its argument prototype would still apply.  */
26405 #ifdef __cplusplus
26406 extern "C"
26407 #endif
26408 char mallinfo ();
26409 int
26410 main ()
26411 {
26412 return mallinfo ();
26413   ;
26414   return 0;
26415 }
26416 _ACEOF
26417 for ac_lib in '' malloc; do
26418   if test -z "$ac_lib"; then
26419     ac_res="none required"
26420   else
26421     ac_res=-l$ac_lib
26422     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26423   fi
26424   rm -f conftest.$ac_objext conftest$ac_exeext
26425 if { (ac_try="$ac_link"
26426 case "(($ac_try" in
26427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26428   *) ac_try_echo=$ac_try;;
26429 esac
26430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26431   (eval "$ac_link") 2>conftest.er1
26432   ac_status=$?
26433   grep -v '^ *+' conftest.er1 >conftest.err
26434   rm -f conftest.er1
26435   cat conftest.err >&5
26436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437   (exit $ac_status); } && {
26438          test -z "$ac_c_werror_flag" ||
26439          test ! -s conftest.err
26440        } && test -s conftest$ac_exeext &&
26441        $as_test_x conftest$ac_exeext; then
26442   ac_cv_search_mallinfo=$ac_res
26443 else
26444   echo "$as_me: failed program was:" >&5
26445 sed 's/^/| /' conftest.$ac_ext >&5
26446
26447
26448 fi
26449
26450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26451       conftest$ac_exeext
26452   if test "${ac_cv_search_mallinfo+set}" = set; then
26453   break
26454 fi
26455 done
26456 if test "${ac_cv_search_mallinfo+set}" = set; then
26457   :
26458 else
26459   ac_cv_search_mallinfo=no
26460 fi
26461 rm conftest.$ac_ext
26462 LIBS=$ac_func_search_save_LIBS
26463 fi
26464 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26465 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26466 ac_res=$ac_cv_search_mallinfo
26467 if test "$ac_res" != no; then
26468   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26469
26470 cat >>confdefs.h <<\_ACEOF
26471 #define HAVE_MALLINFO 1
26472 _ACEOF
26473
26474 fi
26475
26476
26477 if test "$ENABLE_THREADS" -eq 1 ; then
26478
26479 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26480 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
26481 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26482   echo $ECHO_N "(cached) $ECHO_C" >&6
26483 else
26484   ac_check_lib_save_LIBS=$LIBS
26485 LIBS="-lpthread  $LIBS"
26486 cat >conftest.$ac_ext <<_ACEOF
26487 /* confdefs.h.  */
26488 _ACEOF
26489 cat confdefs.h >>conftest.$ac_ext
26490 cat >>conftest.$ac_ext <<_ACEOF
26491 /* end confdefs.h.  */
26492
26493 /* Override any GCC internal prototype to avoid an error.
26494    Use char because int might match the return type of a GCC
26495    builtin and then its argument prototype would still apply.  */
26496 #ifdef __cplusplus
26497 extern "C"
26498 #endif
26499 char pthread_mutex_init ();
26500 int
26501 main ()
26502 {
26503 return pthread_mutex_init ();
26504   ;
26505   return 0;
26506 }
26507 _ACEOF
26508 rm -f conftest.$ac_objext conftest$ac_exeext
26509 if { (ac_try="$ac_link"
26510 case "(($ac_try" in
26511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26512   *) ac_try_echo=$ac_try;;
26513 esac
26514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26515   (eval "$ac_link") 2>conftest.er1
26516   ac_status=$?
26517   grep -v '^ *+' conftest.er1 >conftest.err
26518   rm -f conftest.er1
26519   cat conftest.err >&5
26520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521   (exit $ac_status); } && {
26522          test -z "$ac_c_werror_flag" ||
26523          test ! -s conftest.err
26524        } && test -s conftest$ac_exeext &&
26525        $as_test_x conftest$ac_exeext; then
26526   ac_cv_lib_pthread_pthread_mutex_init=yes
26527 else
26528   echo "$as_me: failed program was:" >&5
26529 sed 's/^/| /' conftest.$ac_ext >&5
26530
26531         ac_cv_lib_pthread_pthread_mutex_init=no
26532 fi
26533
26534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26535       conftest$ac_exeext conftest.$ac_ext
26536 LIBS=$ac_check_lib_save_LIBS
26537 fi
26538 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26539 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
26540 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26541   cat >>confdefs.h <<_ACEOF
26542 #define HAVE_LIBPTHREAD 1
26543 _ACEOF
26544
26545   LIBS="-lpthread $LIBS"
26546
26547 fi
26548
26549   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26550 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
26551 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26552   echo $ECHO_N "(cached) $ECHO_C" >&6
26553 else
26554   ac_func_search_save_LIBS=$LIBS
26555 cat >conftest.$ac_ext <<_ACEOF
26556 /* confdefs.h.  */
26557 _ACEOF
26558 cat confdefs.h >>conftest.$ac_ext
26559 cat >>conftest.$ac_ext <<_ACEOF
26560 /* end confdefs.h.  */
26561
26562 /* Override any GCC internal prototype to avoid an error.
26563    Use char because int might match the return type of a GCC
26564    builtin and then its argument prototype would still apply.  */
26565 #ifdef __cplusplus
26566 extern "C"
26567 #endif
26568 char pthread_mutex_lock ();
26569 int
26570 main ()
26571 {
26572 return pthread_mutex_lock ();
26573   ;
26574   return 0;
26575 }
26576 _ACEOF
26577 for ac_lib in '' pthread; do
26578   if test -z "$ac_lib"; then
26579     ac_res="none required"
26580   else
26581     ac_res=-l$ac_lib
26582     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26583   fi
26584   rm -f conftest.$ac_objext conftest$ac_exeext
26585 if { (ac_try="$ac_link"
26586 case "(($ac_try" in
26587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26588   *) ac_try_echo=$ac_try;;
26589 esac
26590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26591   (eval "$ac_link") 2>conftest.er1
26592   ac_status=$?
26593   grep -v '^ *+' conftest.er1 >conftest.err
26594   rm -f conftest.er1
26595   cat conftest.err >&5
26596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597   (exit $ac_status); } && {
26598          test -z "$ac_c_werror_flag" ||
26599          test ! -s conftest.err
26600        } && test -s conftest$ac_exeext &&
26601        $as_test_x conftest$ac_exeext; then
26602   ac_cv_search_pthread_mutex_lock=$ac_res
26603 else
26604   echo "$as_me: failed program was:" >&5
26605 sed 's/^/| /' conftest.$ac_ext >&5
26606
26607
26608 fi
26609
26610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26611       conftest$ac_exeext
26612   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26613   break
26614 fi
26615 done
26616 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26617   :
26618 else
26619   ac_cv_search_pthread_mutex_lock=no
26620 fi
26621 rm conftest.$ac_ext
26622 LIBS=$ac_func_search_save_LIBS
26623 fi
26624 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26625 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26626 ac_res=$ac_cv_search_pthread_mutex_lock
26627 if test "$ac_res" != no; then
26628   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26629
26630 cat >>confdefs.h <<\_ACEOF
26631 #define HAVE_PTHREAD_MUTEX_LOCK 1
26632 _ACEOF
26633
26634 fi
26635
26636 fi
26637
26638
26639 # Check whether --with-udis86 was given.
26640 if test "${with_udis86+set}" = set; then
26641   withval=$with_udis86;
26642       USE_UDIS86=1
26643
26644       case "$withval" in
26645         /usr/lib|yes) ;;
26646         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26647       esac
26648
26649 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26650 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26651 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26652   echo $ECHO_N "(cached) $ECHO_C" >&6
26653 else
26654   ac_check_lib_save_LIBS=$LIBS
26655 LIBS="-ludis86  $LIBS"
26656 cat >conftest.$ac_ext <<_ACEOF
26657 /* confdefs.h.  */
26658 _ACEOF
26659 cat confdefs.h >>conftest.$ac_ext
26660 cat >>conftest.$ac_ext <<_ACEOF
26661 /* end confdefs.h.  */
26662
26663 /* Override any GCC internal prototype to avoid an error.
26664    Use char because int might match the return type of a GCC
26665    builtin and then its argument prototype would still apply.  */
26666 #ifdef __cplusplus
26667 extern "C"
26668 #endif
26669 char ud_init ();
26670 int
26671 main ()
26672 {
26673 return ud_init ();
26674   ;
26675   return 0;
26676 }
26677 _ACEOF
26678 rm -f conftest.$ac_objext conftest$ac_exeext
26679 if { (ac_try="$ac_link"
26680 case "(($ac_try" in
26681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26682   *) ac_try_echo=$ac_try;;
26683 esac
26684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26685   (eval "$ac_link") 2>conftest.er1
26686   ac_status=$?
26687   grep -v '^ *+' conftest.er1 >conftest.err
26688   rm -f conftest.er1
26689   cat conftest.err >&5
26690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691   (exit $ac_status); } && {
26692          test -z "$ac_c_werror_flag" ||
26693          test ! -s conftest.err
26694        } && test -s conftest$ac_exeext &&
26695        $as_test_x conftest$ac_exeext; then
26696   ac_cv_lib_udis86_ud_init=yes
26697 else
26698   echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26700
26701         ac_cv_lib_udis86_ud_init=no
26702 fi
26703
26704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26705       conftest$ac_exeext conftest.$ac_ext
26706 LIBS=$ac_check_lib_save_LIBS
26707 fi
26708 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26709 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26710 if test $ac_cv_lib_udis86_ud_init = yes; then
26711   cat >>confdefs.h <<_ACEOF
26712 #define HAVE_LIBUDIS86 1
26713 _ACEOF
26714
26715   LIBS="-ludis86 $LIBS"
26716
26717 else
26718
26719         echo "Error! You need to have libudis86 around."
26720         exit -1
26721
26722 fi
26723
26724
26725 else
26726   USE_UDIS86=0
26727
26728 fi
26729
26730
26731 cat >>confdefs.h <<_ACEOF
26732 #define USE_UDIS86 $USE_UDIS86
26733 _ACEOF
26734
26735
26736
26737
26738
26739
26740
26741
26742 ac_header_dirent=no
26743 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26744   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26745 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26746 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26748   echo $ECHO_N "(cached) $ECHO_C" >&6
26749 else
26750   cat >conftest.$ac_ext <<_ACEOF
26751 /* confdefs.h.  */
26752 _ACEOF
26753 cat confdefs.h >>conftest.$ac_ext
26754 cat >>conftest.$ac_ext <<_ACEOF
26755 /* end confdefs.h.  */
26756 #include <sys/types.h>
26757 #include <$ac_hdr>
26758
26759 int
26760 main ()
26761 {
26762 if ((DIR *) 0)
26763 return 0;
26764   ;
26765   return 0;
26766 }
26767 _ACEOF
26768 rm -f conftest.$ac_objext
26769 if { (ac_try="$ac_compile"
26770 case "(($ac_try" in
26771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26772   *) ac_try_echo=$ac_try;;
26773 esac
26774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26775   (eval "$ac_compile") 2>conftest.er1
26776   ac_status=$?
26777   grep -v '^ *+' conftest.er1 >conftest.err
26778   rm -f conftest.er1
26779   cat conftest.err >&5
26780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781   (exit $ac_status); } && {
26782          test -z "$ac_c_werror_flag" ||
26783          test ! -s conftest.err
26784        } && test -s conftest.$ac_objext; then
26785   eval "$as_ac_Header=yes"
26786 else
26787   echo "$as_me: failed program was:" >&5
26788 sed 's/^/| /' conftest.$ac_ext >&5
26789
26790         eval "$as_ac_Header=no"
26791 fi
26792
26793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26794 fi
26795 ac_res=`eval echo '${'$as_ac_Header'}'`
26796                { echo "$as_me:$LINENO: result: $ac_res" >&5
26797 echo "${ECHO_T}$ac_res" >&6; }
26798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26799   cat >>confdefs.h <<_ACEOF
26800 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26801 _ACEOF
26802
26803 ac_header_dirent=$ac_hdr; break
26804 fi
26805
26806 done
26807 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26808 if test $ac_header_dirent = dirent.h; then
26809   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26810 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26811 if test "${ac_cv_search_opendir+set}" = set; then
26812   echo $ECHO_N "(cached) $ECHO_C" >&6
26813 else
26814   ac_func_search_save_LIBS=$LIBS
26815 cat >conftest.$ac_ext <<_ACEOF
26816 /* confdefs.h.  */
26817 _ACEOF
26818 cat confdefs.h >>conftest.$ac_ext
26819 cat >>conftest.$ac_ext <<_ACEOF
26820 /* end confdefs.h.  */
26821
26822 /* Override any GCC internal prototype to avoid an error.
26823    Use char because int might match the return type of a GCC
26824    builtin and then its argument prototype would still apply.  */
26825 #ifdef __cplusplus
26826 extern "C"
26827 #endif
26828 char opendir ();
26829 int
26830 main ()
26831 {
26832 return opendir ();
26833   ;
26834   return 0;
26835 }
26836 _ACEOF
26837 for ac_lib in '' dir; do
26838   if test -z "$ac_lib"; then
26839     ac_res="none required"
26840   else
26841     ac_res=-l$ac_lib
26842     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26843   fi
26844   rm -f conftest.$ac_objext conftest$ac_exeext
26845 if { (ac_try="$ac_link"
26846 case "(($ac_try" in
26847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26848   *) ac_try_echo=$ac_try;;
26849 esac
26850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26851   (eval "$ac_link") 2>conftest.er1
26852   ac_status=$?
26853   grep -v '^ *+' conftest.er1 >conftest.err
26854   rm -f conftest.er1
26855   cat conftest.err >&5
26856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857   (exit $ac_status); } && {
26858          test -z "$ac_c_werror_flag" ||
26859          test ! -s conftest.err
26860        } && test -s conftest$ac_exeext &&
26861        $as_test_x conftest$ac_exeext; then
26862   ac_cv_search_opendir=$ac_res
26863 else
26864   echo "$as_me: failed program was:" >&5
26865 sed 's/^/| /' conftest.$ac_ext >&5
26866
26867
26868 fi
26869
26870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26871       conftest$ac_exeext
26872   if test "${ac_cv_search_opendir+set}" = set; then
26873   break
26874 fi
26875 done
26876 if test "${ac_cv_search_opendir+set}" = set; then
26877   :
26878 else
26879   ac_cv_search_opendir=no
26880 fi
26881 rm conftest.$ac_ext
26882 LIBS=$ac_func_search_save_LIBS
26883 fi
26884 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26885 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26886 ac_res=$ac_cv_search_opendir
26887 if test "$ac_res" != no; then
26888   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26889
26890 fi
26891
26892 else
26893   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26894 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26895 if test "${ac_cv_search_opendir+set}" = set; then
26896   echo $ECHO_N "(cached) $ECHO_C" >&6
26897 else
26898   ac_func_search_save_LIBS=$LIBS
26899 cat >conftest.$ac_ext <<_ACEOF
26900 /* confdefs.h.  */
26901 _ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h.  */
26905
26906 /* Override any GCC internal prototype to avoid an error.
26907    Use char because int might match the return type of a GCC
26908    builtin and then its argument prototype would still apply.  */
26909 #ifdef __cplusplus
26910 extern "C"
26911 #endif
26912 char opendir ();
26913 int
26914 main ()
26915 {
26916 return opendir ();
26917   ;
26918   return 0;
26919 }
26920 _ACEOF
26921 for ac_lib in '' x; do
26922   if test -z "$ac_lib"; then
26923     ac_res="none required"
26924   else
26925     ac_res=-l$ac_lib
26926     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26927   fi
26928   rm -f conftest.$ac_objext conftest$ac_exeext
26929 if { (ac_try="$ac_link"
26930 case "(($ac_try" in
26931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26932   *) ac_try_echo=$ac_try;;
26933 esac
26934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26935   (eval "$ac_link") 2>conftest.er1
26936   ac_status=$?
26937   grep -v '^ *+' conftest.er1 >conftest.err
26938   rm -f conftest.er1
26939   cat conftest.err >&5
26940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941   (exit $ac_status); } && {
26942          test -z "$ac_c_werror_flag" ||
26943          test ! -s conftest.err
26944        } && test -s conftest$ac_exeext &&
26945        $as_test_x conftest$ac_exeext; then
26946   ac_cv_search_opendir=$ac_res
26947 else
26948   echo "$as_me: failed program was:" >&5
26949 sed 's/^/| /' conftest.$ac_ext >&5
26950
26951
26952 fi
26953
26954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26955       conftest$ac_exeext
26956   if test "${ac_cv_search_opendir+set}" = set; then
26957   break
26958 fi
26959 done
26960 if test "${ac_cv_search_opendir+set}" = set; then
26961   :
26962 else
26963   ac_cv_search_opendir=no
26964 fi
26965 rm conftest.$ac_ext
26966 LIBS=$ac_func_search_save_LIBS
26967 fi
26968 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26969 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26970 ac_res=$ac_cv_search_opendir
26971 if test "$ac_res" != no; then
26972   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26973
26974 fi
26975
26976 fi
26977
26978 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26979 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
26980 if test "${ac_cv_header_mmap_anon+set}" = set; then
26981   echo $ECHO_N "(cached) $ECHO_C" >&6
26982 else
26983    ac_ext=c
26984 ac_cpp='$CPP $CPPFLAGS'
26985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26988
26989   cat >conftest.$ac_ext <<_ACEOF
26990 /* confdefs.h.  */
26991 _ACEOF
26992 cat confdefs.h >>conftest.$ac_ext
26993 cat >>conftest.$ac_ext <<_ACEOF
26994 /* end confdefs.h.  */
26995 #include <sys/mman.h>
26996 #include <unistd.h>
26997 #include <fcntl.h>
26998 int
26999 main ()
27000 {
27001 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27002   ;
27003   return 0;
27004 }
27005 _ACEOF
27006 rm -f conftest.$ac_objext
27007 if { (ac_try="$ac_compile"
27008 case "(($ac_try" in
27009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27010   *) ac_try_echo=$ac_try;;
27011 esac
27012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27013   (eval "$ac_compile") 2>conftest.er1
27014   ac_status=$?
27015   grep -v '^ *+' conftest.er1 >conftest.err
27016   rm -f conftest.er1
27017   cat conftest.err >&5
27018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019   (exit $ac_status); } && {
27020          test -z "$ac_c_werror_flag" ||
27021          test ! -s conftest.err
27022        } && test -s conftest.$ac_objext; then
27023   ac_cv_header_mmap_anon=yes
27024 else
27025   echo "$as_me: failed program was:" >&5
27026 sed 's/^/| /' conftest.$ac_ext >&5
27027
27028         ac_cv_header_mmap_anon=no
27029 fi
27030
27031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27032   ac_ext=c
27033 ac_cpp='$CPP $CPPFLAGS'
27034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27037
27038
27039 fi
27040 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27041 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27042 if test "$ac_cv_header_mmap_anon" = yes; then
27043
27044 cat >>confdefs.h <<\_ACEOF
27045 #define HAVE_MMAP_ANONYMOUS 1
27046 _ACEOF
27047
27048 fi
27049
27050 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27051 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27052 if test "${ac_cv_header_stat_broken+set}" = set; then
27053   echo $ECHO_N "(cached) $ECHO_C" >&6
27054 else
27055   cat >conftest.$ac_ext <<_ACEOF
27056 /* confdefs.h.  */
27057 _ACEOF
27058 cat confdefs.h >>conftest.$ac_ext
27059 cat >>conftest.$ac_ext <<_ACEOF
27060 /* end confdefs.h.  */
27061 #include <sys/types.h>
27062 #include <sys/stat.h>
27063
27064 #if defined S_ISBLK && defined S_IFDIR
27065 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
27066 #endif
27067
27068 #if defined S_ISBLK && defined S_IFCHR
27069 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
27070 #endif
27071
27072 #if defined S_ISLNK && defined S_IFREG
27073 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
27074 #endif
27075
27076 #if defined S_ISSOCK && defined S_IFREG
27077 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
27078 #endif
27079
27080 _ACEOF
27081 rm -f conftest.$ac_objext
27082 if { (ac_try="$ac_compile"
27083 case "(($ac_try" in
27084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085   *) ac_try_echo=$ac_try;;
27086 esac
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088   (eval "$ac_compile") 2>conftest.er1
27089   ac_status=$?
27090   grep -v '^ *+' conftest.er1 >conftest.err
27091   rm -f conftest.er1
27092   cat conftest.err >&5
27093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094   (exit $ac_status); } && {
27095          test -z "$ac_c_werror_flag" ||
27096          test ! -s conftest.err
27097        } && test -s conftest.$ac_objext; then
27098   ac_cv_header_stat_broken=no
27099 else
27100   echo "$as_me: failed program was:" >&5
27101 sed 's/^/| /' conftest.$ac_ext >&5
27102
27103         ac_cv_header_stat_broken=yes
27104 fi
27105
27106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27107 fi
27108 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27109 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27110 if test $ac_cv_header_stat_broken = yes; then
27111
27112 cat >>confdefs.h <<\_ACEOF
27113 #define STAT_MACROS_BROKEN 1
27114 _ACEOF
27115
27116 fi
27117
27118 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27119 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
27120 if test "${ac_cv_header_stdc+set}" = set; then
27121   echo $ECHO_N "(cached) $ECHO_C" >&6
27122 else
27123   cat >conftest.$ac_ext <<_ACEOF
27124 /* confdefs.h.  */
27125 _ACEOF
27126 cat confdefs.h >>conftest.$ac_ext
27127 cat >>conftest.$ac_ext <<_ACEOF
27128 /* end confdefs.h.  */
27129 #include <stdlib.h>
27130 #include <stdarg.h>
27131 #include <string.h>
27132 #include <float.h>
27133
27134 int
27135 main ()
27136 {
27137
27138   ;
27139   return 0;
27140 }
27141 _ACEOF
27142 rm -f conftest.$ac_objext
27143 if { (ac_try="$ac_compile"
27144 case "(($ac_try" in
27145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27146   *) ac_try_echo=$ac_try;;
27147 esac
27148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27149   (eval "$ac_compile") 2>conftest.er1
27150   ac_status=$?
27151   grep -v '^ *+' conftest.er1 >conftest.err
27152   rm -f conftest.er1
27153   cat conftest.err >&5
27154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155   (exit $ac_status); } && {
27156          test -z "$ac_c_werror_flag" ||
27157          test ! -s conftest.err
27158        } && test -s conftest.$ac_objext; then
27159   ac_cv_header_stdc=yes
27160 else
27161   echo "$as_me: failed program was:" >&5
27162 sed 's/^/| /' conftest.$ac_ext >&5
27163
27164         ac_cv_header_stdc=no
27165 fi
27166
27167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27168
27169 if test $ac_cv_header_stdc = yes; then
27170   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27171   cat >conftest.$ac_ext <<_ACEOF
27172 /* confdefs.h.  */
27173 _ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h.  */
27177 #include <string.h>
27178
27179 _ACEOF
27180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27181   $EGREP "memchr" >/dev/null 2>&1; then
27182   :
27183 else
27184   ac_cv_header_stdc=no
27185 fi
27186 rm -f conftest*
27187
27188 fi
27189
27190 if test $ac_cv_header_stdc = yes; then
27191   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27192   cat >conftest.$ac_ext <<_ACEOF
27193 /* confdefs.h.  */
27194 _ACEOF
27195 cat confdefs.h >>conftest.$ac_ext
27196 cat >>conftest.$ac_ext <<_ACEOF
27197 /* end confdefs.h.  */
27198 #include <stdlib.h>
27199
27200 _ACEOF
27201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27202   $EGREP "free" >/dev/null 2>&1; then
27203   :
27204 else
27205   ac_cv_header_stdc=no
27206 fi
27207 rm -f conftest*
27208
27209 fi
27210
27211 if test $ac_cv_header_stdc = yes; then
27212   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27213   if test "$cross_compiling" = yes; then
27214   :
27215 else
27216   cat >conftest.$ac_ext <<_ACEOF
27217 /* confdefs.h.  */
27218 _ACEOF
27219 cat confdefs.h >>conftest.$ac_ext
27220 cat >>conftest.$ac_ext <<_ACEOF
27221 /* end confdefs.h.  */
27222 #include <ctype.h>
27223 #include <stdlib.h>
27224 #if ((' ' & 0x0FF) == 0x020)
27225 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27226 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27227 #else
27228 # define ISLOWER(c) \
27229                    (('a' <= (c) && (c) <= 'i') \
27230                      || ('j' <= (c) && (c) <= 'r') \
27231                      || ('s' <= (c) && (c) <= 'z'))
27232 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27233 #endif
27234
27235 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27236 int
27237 main ()
27238 {
27239   int i;
27240   for (i = 0; i < 256; i++)
27241     if (XOR (islower (i), ISLOWER (i))
27242         || toupper (i) != TOUPPER (i))
27243       return 2;
27244   return 0;
27245 }
27246 _ACEOF
27247 rm -f conftest$ac_exeext
27248 if { (ac_try="$ac_link"
27249 case "(($ac_try" in
27250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27251   *) ac_try_echo=$ac_try;;
27252 esac
27253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27254   (eval "$ac_link") 2>&5
27255   ac_status=$?
27256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27258   { (case "(($ac_try" in
27259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27260   *) ac_try_echo=$ac_try;;
27261 esac
27262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27263   (eval "$ac_try") 2>&5
27264   ac_status=$?
27265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266   (exit $ac_status); }; }; then
27267   :
27268 else
27269   echo "$as_me: program exited with status $ac_status" >&5
27270 echo "$as_me: failed program was:" >&5
27271 sed 's/^/| /' conftest.$ac_ext >&5
27272
27273 ( exit $ac_status )
27274 ac_cv_header_stdc=no
27275 fi
27276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27277 fi
27278
27279
27280 fi
27281 fi
27282 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27283 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
27284 if test $ac_cv_header_stdc = yes; then
27285
27286 cat >>confdefs.h <<\_ACEOF
27287 #define STDC_HEADERS 1
27288 _ACEOF
27289
27290 fi
27291
27292 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27293 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
27294 if test "${ac_cv_header_sys_wait_h+set}" = set; then
27295   echo $ECHO_N "(cached) $ECHO_C" >&6
27296 else
27297   cat >conftest.$ac_ext <<_ACEOF
27298 /* confdefs.h.  */
27299 _ACEOF
27300 cat confdefs.h >>conftest.$ac_ext
27301 cat >>conftest.$ac_ext <<_ACEOF
27302 /* end confdefs.h.  */
27303 #include <sys/types.h>
27304 #include <sys/wait.h>
27305 #ifndef WEXITSTATUS
27306 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
27307 #endif
27308 #ifndef WIFEXITED
27309 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27310 #endif
27311
27312 int
27313 main ()
27314 {
27315   int s;
27316   wait (&s);
27317   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27318   ;
27319   return 0;
27320 }
27321 _ACEOF
27322 rm -f conftest.$ac_objext
27323 if { (ac_try="$ac_compile"
27324 case "(($ac_try" in
27325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326   *) ac_try_echo=$ac_try;;
27327 esac
27328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27329   (eval "$ac_compile") 2>conftest.er1
27330   ac_status=$?
27331   grep -v '^ *+' conftest.er1 >conftest.err
27332   rm -f conftest.er1
27333   cat conftest.err >&5
27334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335   (exit $ac_status); } && {
27336          test -z "$ac_c_werror_flag" ||
27337          test ! -s conftest.err
27338        } && test -s conftest.$ac_objext; then
27339   ac_cv_header_sys_wait_h=yes
27340 else
27341   echo "$as_me: failed program was:" >&5
27342 sed 's/^/| /' conftest.$ac_ext >&5
27343
27344         ac_cv_header_sys_wait_h=no
27345 fi
27346
27347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27348 fi
27349 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27350 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
27351 if test $ac_cv_header_sys_wait_h = yes; then
27352
27353 cat >>confdefs.h <<\_ACEOF
27354 #define HAVE_SYS_WAIT_H 1
27355 _ACEOF
27356
27357 fi
27358
27359 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27360 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
27361 if test "${ac_cv_header_time+set}" = set; then
27362   echo $ECHO_N "(cached) $ECHO_C" >&6
27363 else
27364   cat >conftest.$ac_ext <<_ACEOF
27365 /* confdefs.h.  */
27366 _ACEOF
27367 cat confdefs.h >>conftest.$ac_ext
27368 cat >>conftest.$ac_ext <<_ACEOF
27369 /* end confdefs.h.  */
27370 #include <sys/types.h>
27371 #include <sys/time.h>
27372 #include <time.h>
27373
27374 int
27375 main ()
27376 {
27377 if ((struct tm *) 0)
27378 return 0;
27379   ;
27380   return 0;
27381 }
27382 _ACEOF
27383 rm -f conftest.$ac_objext
27384 if { (ac_try="$ac_compile"
27385 case "(($ac_try" in
27386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27387   *) ac_try_echo=$ac_try;;
27388 esac
27389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27390   (eval "$ac_compile") 2>conftest.er1
27391   ac_status=$?
27392   grep -v '^ *+' conftest.er1 >conftest.err
27393   rm -f conftest.er1
27394   cat conftest.err >&5
27395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396   (exit $ac_status); } && {
27397          test -z "$ac_c_werror_flag" ||
27398          test ! -s conftest.err
27399        } && test -s conftest.$ac_objext; then
27400   ac_cv_header_time=yes
27401 else
27402   echo "$as_me: failed program was:" >&5
27403 sed 's/^/| /' conftest.$ac_ext >&5
27404
27405         ac_cv_header_time=no
27406 fi
27407
27408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27409 fi
27410 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27411 echo "${ECHO_T}$ac_cv_header_time" >&6; }
27412 if test $ac_cv_header_time = yes; then
27413
27414 cat >>confdefs.h <<\_ACEOF
27415 #define TIME_WITH_SYS_TIME 1
27416 _ACEOF
27417
27418 fi
27419
27420
27421
27422
27423
27424
27425
27426
27427 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27428 do
27429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27431   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27434   echo $ECHO_N "(cached) $ECHO_C" >&6
27435 fi
27436 ac_res=`eval echo '${'$as_ac_Header'}'`
27437                { echo "$as_me:$LINENO: result: $ac_res" >&5
27438 echo "${ECHO_T}$ac_res" >&6; }
27439 else
27440   # Is the header compilable?
27441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27443 cat >conftest.$ac_ext <<_ACEOF
27444 /* confdefs.h.  */
27445 _ACEOF
27446 cat confdefs.h >>conftest.$ac_ext
27447 cat >>conftest.$ac_ext <<_ACEOF
27448 /* end confdefs.h.  */
27449 $ac_includes_default
27450 #include <$ac_header>
27451 _ACEOF
27452 rm -f conftest.$ac_objext
27453 if { (ac_try="$ac_compile"
27454 case "(($ac_try" in
27455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27456   *) ac_try_echo=$ac_try;;
27457 esac
27458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27459   (eval "$ac_compile") 2>conftest.er1
27460   ac_status=$?
27461   grep -v '^ *+' conftest.er1 >conftest.err
27462   rm -f conftest.er1
27463   cat conftest.err >&5
27464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465   (exit $ac_status); } && {
27466          test -z "$ac_c_werror_flag" ||
27467          test ! -s conftest.err
27468        } && test -s conftest.$ac_objext; then
27469   ac_header_compiler=yes
27470 else
27471   echo "$as_me: failed program was:" >&5
27472 sed 's/^/| /' conftest.$ac_ext >&5
27473
27474         ac_header_compiler=no
27475 fi
27476
27477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27479 echo "${ECHO_T}$ac_header_compiler" >&6; }
27480
27481 # Is the header present?
27482 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27484 cat >conftest.$ac_ext <<_ACEOF
27485 /* confdefs.h.  */
27486 _ACEOF
27487 cat confdefs.h >>conftest.$ac_ext
27488 cat >>conftest.$ac_ext <<_ACEOF
27489 /* end confdefs.h.  */
27490 #include <$ac_header>
27491 _ACEOF
27492 if { (ac_try="$ac_cpp conftest.$ac_ext"
27493 case "(($ac_try" in
27494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27495   *) ac_try_echo=$ac_try;;
27496 esac
27497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27498   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27499   ac_status=$?
27500   grep -v '^ *+' conftest.er1 >conftest.err
27501   rm -f conftest.er1
27502   cat conftest.err >&5
27503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504   (exit $ac_status); } >/dev/null && {
27505          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27506          test ! -s conftest.err
27507        }; then
27508   ac_header_preproc=yes
27509 else
27510   echo "$as_me: failed program was:" >&5
27511 sed 's/^/| /' conftest.$ac_ext >&5
27512
27513   ac_header_preproc=no
27514 fi
27515
27516 rm -f conftest.err conftest.$ac_ext
27517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27518 echo "${ECHO_T}$ac_header_preproc" >&6; }
27519
27520 # So?  What about this header?
27521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27522   yes:no: )
27523     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27527     ac_header_preproc=yes
27528     ;;
27529   no:yes:* )
27530     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27532     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27533 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27534     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27536     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27537 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27540     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27542     ( cat <<\_ASBOX
27543 ## ----------------------------------- ##
27544 ## Report this to llvmbugs@cs.uiuc.edu ##
27545 ## ----------------------------------- ##
27546 _ASBOX
27547      ) | sed "s/^/$as_me: WARNING:     /" >&2
27548     ;;
27549 esac
27550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27553   echo $ECHO_N "(cached) $ECHO_C" >&6
27554 else
27555   eval "$as_ac_Header=\$ac_header_preproc"
27556 fi
27557 ac_res=`eval echo '${'$as_ac_Header'}'`
27558                { echo "$as_me:$LINENO: result: $ac_res" >&5
27559 echo "${ECHO_T}$ac_res" >&6; }
27560
27561 fi
27562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27563   cat >>confdefs.h <<_ACEOF
27564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27565 _ACEOF
27566
27567 fi
27568
27569 done
27570
27571
27572
27573
27574
27575
27576
27577 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27578 do
27579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27581   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27584   echo $ECHO_N "(cached) $ECHO_C" >&6
27585 fi
27586 ac_res=`eval echo '${'$as_ac_Header'}'`
27587                { echo "$as_me:$LINENO: result: $ac_res" >&5
27588 echo "${ECHO_T}$ac_res" >&6; }
27589 else
27590   # Is the header compilable?
27591 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27593 cat >conftest.$ac_ext <<_ACEOF
27594 /* confdefs.h.  */
27595 _ACEOF
27596 cat confdefs.h >>conftest.$ac_ext
27597 cat >>conftest.$ac_ext <<_ACEOF
27598 /* end confdefs.h.  */
27599 $ac_includes_default
27600 #include <$ac_header>
27601 _ACEOF
27602 rm -f conftest.$ac_objext
27603 if { (ac_try="$ac_compile"
27604 case "(($ac_try" in
27605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27606   *) ac_try_echo=$ac_try;;
27607 esac
27608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27609   (eval "$ac_compile") 2>conftest.er1
27610   ac_status=$?
27611   grep -v '^ *+' conftest.er1 >conftest.err
27612   rm -f conftest.er1
27613   cat conftest.err >&5
27614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615   (exit $ac_status); } && {
27616          test -z "$ac_c_werror_flag" ||
27617          test ! -s conftest.err
27618        } && test -s conftest.$ac_objext; then
27619   ac_header_compiler=yes
27620 else
27621   echo "$as_me: failed program was:" >&5
27622 sed 's/^/| /' conftest.$ac_ext >&5
27623
27624         ac_header_compiler=no
27625 fi
27626
27627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27629 echo "${ECHO_T}$ac_header_compiler" >&6; }
27630
27631 # Is the header present?
27632 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27634 cat >conftest.$ac_ext <<_ACEOF
27635 /* confdefs.h.  */
27636 _ACEOF
27637 cat confdefs.h >>conftest.$ac_ext
27638 cat >>conftest.$ac_ext <<_ACEOF
27639 /* end confdefs.h.  */
27640 #include <$ac_header>
27641 _ACEOF
27642 if { (ac_try="$ac_cpp conftest.$ac_ext"
27643 case "(($ac_try" in
27644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27645   *) ac_try_echo=$ac_try;;
27646 esac
27647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27648   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27649   ac_status=$?
27650   grep -v '^ *+' conftest.er1 >conftest.err
27651   rm -f conftest.er1
27652   cat conftest.err >&5
27653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654   (exit $ac_status); } >/dev/null && {
27655          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27656          test ! -s conftest.err
27657        }; then
27658   ac_header_preproc=yes
27659 else
27660   echo "$as_me: failed program was:" >&5
27661 sed 's/^/| /' conftest.$ac_ext >&5
27662
27663   ac_header_preproc=no
27664 fi
27665
27666 rm -f conftest.err conftest.$ac_ext
27667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27668 echo "${ECHO_T}$ac_header_preproc" >&6; }
27669
27670 # So?  What about this header?
27671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27672   yes:no: )
27673     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27677     ac_header_preproc=yes
27678     ;;
27679   no:yes:* )
27680     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27682     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27683 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27684     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27685 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27686     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27687 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27690     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27691 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27692     ( cat <<\_ASBOX
27693 ## ----------------------------------- ##
27694 ## Report this to llvmbugs@cs.uiuc.edu ##
27695 ## ----------------------------------- ##
27696 _ASBOX
27697      ) | sed "s/^/$as_me: WARNING:     /" >&2
27698     ;;
27699 esac
27700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27703   echo $ECHO_N "(cached) $ECHO_C" >&6
27704 else
27705   eval "$as_ac_Header=\$ac_header_preproc"
27706 fi
27707 ac_res=`eval echo '${'$as_ac_Header'}'`
27708                { echo "$as_me:$LINENO: result: $ac_res" >&5
27709 echo "${ECHO_T}$ac_res" >&6; }
27710
27711 fi
27712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27713   cat >>confdefs.h <<_ACEOF
27714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27715 _ACEOF
27716
27717 fi
27718
27719 done
27720
27721
27722 for ac_header in windows.h
27723 do
27724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27726   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27729   echo $ECHO_N "(cached) $ECHO_C" >&6
27730 fi
27731 ac_res=`eval echo '${'$as_ac_Header'}'`
27732                { echo "$as_me:$LINENO: result: $ac_res" >&5
27733 echo "${ECHO_T}$ac_res" >&6; }
27734 else
27735   # Is the header compilable?
27736 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27738 cat >conftest.$ac_ext <<_ACEOF
27739 /* confdefs.h.  */
27740 _ACEOF
27741 cat confdefs.h >>conftest.$ac_ext
27742 cat >>conftest.$ac_ext <<_ACEOF
27743 /* end confdefs.h.  */
27744 $ac_includes_default
27745 #include <$ac_header>
27746 _ACEOF
27747 rm -f conftest.$ac_objext
27748 if { (ac_try="$ac_compile"
27749 case "(($ac_try" in
27750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27751   *) ac_try_echo=$ac_try;;
27752 esac
27753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27754   (eval "$ac_compile") 2>conftest.er1
27755   ac_status=$?
27756   grep -v '^ *+' conftest.er1 >conftest.err
27757   rm -f conftest.er1
27758   cat conftest.err >&5
27759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760   (exit $ac_status); } && {
27761          test -z "$ac_c_werror_flag" ||
27762          test ! -s conftest.err
27763        } && test -s conftest.$ac_objext; then
27764   ac_header_compiler=yes
27765 else
27766   echo "$as_me: failed program was:" >&5
27767 sed 's/^/| /' conftest.$ac_ext >&5
27768
27769         ac_header_compiler=no
27770 fi
27771
27772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27774 echo "${ECHO_T}$ac_header_compiler" >&6; }
27775
27776 # Is the header present?
27777 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27779 cat >conftest.$ac_ext <<_ACEOF
27780 /* confdefs.h.  */
27781 _ACEOF
27782 cat confdefs.h >>conftest.$ac_ext
27783 cat >>conftest.$ac_ext <<_ACEOF
27784 /* end confdefs.h.  */
27785 #include <$ac_header>
27786 _ACEOF
27787 if { (ac_try="$ac_cpp conftest.$ac_ext"
27788 case "(($ac_try" in
27789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27790   *) ac_try_echo=$ac_try;;
27791 esac
27792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27793   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27794   ac_status=$?
27795   grep -v '^ *+' conftest.er1 >conftest.err
27796   rm -f conftest.er1
27797   cat conftest.err >&5
27798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799   (exit $ac_status); } >/dev/null && {
27800          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27801          test ! -s conftest.err
27802        }; then
27803   ac_header_preproc=yes
27804 else
27805   echo "$as_me: failed program was:" >&5
27806 sed 's/^/| /' conftest.$ac_ext >&5
27807
27808   ac_header_preproc=no
27809 fi
27810
27811 rm -f conftest.err conftest.$ac_ext
27812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27813 echo "${ECHO_T}$ac_header_preproc" >&6; }
27814
27815 # So?  What about this header?
27816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27817   yes:no: )
27818     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27822     ac_header_preproc=yes
27823     ;;
27824   no:yes:* )
27825     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27827     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27828 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27829     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27831     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27832 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27835     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27837     ( cat <<\_ASBOX
27838 ## ----------------------------------- ##
27839 ## Report this to llvmbugs@cs.uiuc.edu ##
27840 ## ----------------------------------- ##
27841 _ASBOX
27842      ) | sed "s/^/$as_me: WARNING:     /" >&2
27843     ;;
27844 esac
27845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27848   echo $ECHO_N "(cached) $ECHO_C" >&6
27849 else
27850   eval "$as_ac_Header=\$ac_header_preproc"
27851 fi
27852 ac_res=`eval echo '${'$as_ac_Header'}'`
27853                { echo "$as_me:$LINENO: result: $ac_res" >&5
27854 echo "${ECHO_T}$ac_res" >&6; }
27855
27856 fi
27857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27858   cat >>confdefs.h <<_ACEOF
27859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27860 _ACEOF
27861
27862 fi
27863
27864 done
27865
27866
27867
27868
27869
27870 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
27871 do
27872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27874   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27877   echo $ECHO_N "(cached) $ECHO_C" >&6
27878 fi
27879 ac_res=`eval echo '${'$as_ac_Header'}'`
27880                { echo "$as_me:$LINENO: result: $ac_res" >&5
27881 echo "${ECHO_T}$ac_res" >&6; }
27882 else
27883   # Is the header compilable?
27884 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27886 cat >conftest.$ac_ext <<_ACEOF
27887 /* confdefs.h.  */
27888 _ACEOF
27889 cat confdefs.h >>conftest.$ac_ext
27890 cat >>conftest.$ac_ext <<_ACEOF
27891 /* end confdefs.h.  */
27892 $ac_includes_default
27893 #include <$ac_header>
27894 _ACEOF
27895 rm -f conftest.$ac_objext
27896 if { (ac_try="$ac_compile"
27897 case "(($ac_try" in
27898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899   *) ac_try_echo=$ac_try;;
27900 esac
27901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902   (eval "$ac_compile") 2>conftest.er1
27903   ac_status=$?
27904   grep -v '^ *+' conftest.er1 >conftest.err
27905   rm -f conftest.er1
27906   cat conftest.err >&5
27907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908   (exit $ac_status); } && {
27909          test -z "$ac_c_werror_flag" ||
27910          test ! -s conftest.err
27911        } && test -s conftest.$ac_objext; then
27912   ac_header_compiler=yes
27913 else
27914   echo "$as_me: failed program was:" >&5
27915 sed 's/^/| /' conftest.$ac_ext >&5
27916
27917         ac_header_compiler=no
27918 fi
27919
27920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27921 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27922 echo "${ECHO_T}$ac_header_compiler" >&6; }
27923
27924 # Is the header present?
27925 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27926 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27927 cat >conftest.$ac_ext <<_ACEOF
27928 /* confdefs.h.  */
27929 _ACEOF
27930 cat confdefs.h >>conftest.$ac_ext
27931 cat >>conftest.$ac_ext <<_ACEOF
27932 /* end confdefs.h.  */
27933 #include <$ac_header>
27934 _ACEOF
27935 if { (ac_try="$ac_cpp conftest.$ac_ext"
27936 case "(($ac_try" in
27937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938   *) ac_try_echo=$ac_try;;
27939 esac
27940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27941   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27942   ac_status=$?
27943   grep -v '^ *+' conftest.er1 >conftest.err
27944   rm -f conftest.er1
27945   cat conftest.err >&5
27946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947   (exit $ac_status); } >/dev/null && {
27948          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27949          test ! -s conftest.err
27950        }; then
27951   ac_header_preproc=yes
27952 else
27953   echo "$as_me: failed program was:" >&5
27954 sed 's/^/| /' conftest.$ac_ext >&5
27955
27956   ac_header_preproc=no
27957 fi
27958
27959 rm -f conftest.err conftest.$ac_ext
27960 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27961 echo "${ECHO_T}$ac_header_preproc" >&6; }
27962
27963 # So?  What about this header?
27964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27965   yes:no: )
27966     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27967 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27968     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27969 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27970     ac_header_preproc=yes
27971     ;;
27972   no:yes:* )
27973     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27974 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27975     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27976 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27977     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27978 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27979     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27980 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27981     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27982 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27983     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27984 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27985     ( cat <<\_ASBOX
27986 ## ----------------------------------- ##
27987 ## Report this to llvmbugs@cs.uiuc.edu ##
27988 ## ----------------------------------- ##
27989 _ASBOX
27990      ) | sed "s/^/$as_me: WARNING:     /" >&2
27991     ;;
27992 esac
27993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27996   echo $ECHO_N "(cached) $ECHO_C" >&6
27997 else
27998   eval "$as_ac_Header=\$ac_header_preproc"
27999 fi
28000 ac_res=`eval echo '${'$as_ac_Header'}'`
28001                { echo "$as_me:$LINENO: result: $ac_res" >&5
28002 echo "${ECHO_T}$ac_res" >&6; }
28003
28004 fi
28005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28006   cat >>confdefs.h <<_ACEOF
28007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28008 _ACEOF
28009
28010 fi
28011
28012 done
28013
28014
28015
28016
28017 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
28018 do
28019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28021   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28024   echo $ECHO_N "(cached) $ECHO_C" >&6
28025 fi
28026 ac_res=`eval echo '${'$as_ac_Header'}'`
28027                { echo "$as_me:$LINENO: result: $ac_res" >&5
28028 echo "${ECHO_T}$ac_res" >&6; }
28029 else
28030   # Is the header compilable?
28031 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28033 cat >conftest.$ac_ext <<_ACEOF
28034 /* confdefs.h.  */
28035 _ACEOF
28036 cat confdefs.h >>conftest.$ac_ext
28037 cat >>conftest.$ac_ext <<_ACEOF
28038 /* end confdefs.h.  */
28039 $ac_includes_default
28040 #include <$ac_header>
28041 _ACEOF
28042 rm -f conftest.$ac_objext
28043 if { (ac_try="$ac_compile"
28044 case "(($ac_try" in
28045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046   *) ac_try_echo=$ac_try;;
28047 esac
28048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28049   (eval "$ac_compile") 2>conftest.er1
28050   ac_status=$?
28051   grep -v '^ *+' conftest.er1 >conftest.err
28052   rm -f conftest.er1
28053   cat conftest.err >&5
28054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055   (exit $ac_status); } && {
28056          test -z "$ac_c_werror_flag" ||
28057          test ! -s conftest.err
28058        } && test -s conftest.$ac_objext; then
28059   ac_header_compiler=yes
28060 else
28061   echo "$as_me: failed program was:" >&5
28062 sed 's/^/| /' conftest.$ac_ext >&5
28063
28064         ac_header_compiler=no
28065 fi
28066
28067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28069 echo "${ECHO_T}$ac_header_compiler" >&6; }
28070
28071 # Is the header present?
28072 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28074 cat >conftest.$ac_ext <<_ACEOF
28075 /* confdefs.h.  */
28076 _ACEOF
28077 cat confdefs.h >>conftest.$ac_ext
28078 cat >>conftest.$ac_ext <<_ACEOF
28079 /* end confdefs.h.  */
28080 #include <$ac_header>
28081 _ACEOF
28082 if { (ac_try="$ac_cpp conftest.$ac_ext"
28083 case "(($ac_try" in
28084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085   *) ac_try_echo=$ac_try;;
28086 esac
28087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28089   ac_status=$?
28090   grep -v '^ *+' conftest.er1 >conftest.err
28091   rm -f conftest.er1
28092   cat conftest.err >&5
28093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094   (exit $ac_status); } >/dev/null && {
28095          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28096          test ! -s conftest.err
28097        }; then
28098   ac_header_preproc=yes
28099 else
28100   echo "$as_me: failed program was:" >&5
28101 sed 's/^/| /' conftest.$ac_ext >&5
28102
28103   ac_header_preproc=no
28104 fi
28105
28106 rm -f conftest.err conftest.$ac_ext
28107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28108 echo "${ECHO_T}$ac_header_preproc" >&6; }
28109
28110 # So?  What about this header?
28111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28112   yes:no: )
28113     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28117     ac_header_preproc=yes
28118     ;;
28119   no:yes:* )
28120     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28122     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28123 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28124     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28126     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28127 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28130     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28132     ( cat <<\_ASBOX
28133 ## ----------------------------------- ##
28134 ## Report this to llvmbugs@cs.uiuc.edu ##
28135 ## ----------------------------------- ##
28136 _ASBOX
28137      ) | sed "s/^/$as_me: WARNING:     /" >&2
28138     ;;
28139 esac
28140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28143   echo $ECHO_N "(cached) $ECHO_C" >&6
28144 else
28145   eval "$as_ac_Header=\$ac_header_preproc"
28146 fi
28147 ac_res=`eval echo '${'$as_ac_Header'}'`
28148                { echo "$as_me:$LINENO: result: $ac_res" >&5
28149 echo "${ECHO_T}$ac_res" >&6; }
28150
28151 fi
28152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28153   cat >>confdefs.h <<_ACEOF
28154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28155 _ACEOF
28156
28157 fi
28158
28159 done
28160
28161 if test "$ENABLE_THREADS" -eq 1 ; then
28162
28163 for ac_header in pthread.h
28164 do
28165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28167   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28170   echo $ECHO_N "(cached) $ECHO_C" >&6
28171 fi
28172 ac_res=`eval echo '${'$as_ac_Header'}'`
28173                { echo "$as_me:$LINENO: result: $ac_res" >&5
28174 echo "${ECHO_T}$ac_res" >&6; }
28175 else
28176   # Is the header compilable?
28177 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28179 cat >conftest.$ac_ext <<_ACEOF
28180 /* confdefs.h.  */
28181 _ACEOF
28182 cat confdefs.h >>conftest.$ac_ext
28183 cat >>conftest.$ac_ext <<_ACEOF
28184 /* end confdefs.h.  */
28185 $ac_includes_default
28186 #include <$ac_header>
28187 _ACEOF
28188 rm -f conftest.$ac_objext
28189 if { (ac_try="$ac_compile"
28190 case "(($ac_try" in
28191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28192   *) ac_try_echo=$ac_try;;
28193 esac
28194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28195   (eval "$ac_compile") 2>conftest.er1
28196   ac_status=$?
28197   grep -v '^ *+' conftest.er1 >conftest.err
28198   rm -f conftest.er1
28199   cat conftest.err >&5
28200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201   (exit $ac_status); } && {
28202          test -z "$ac_c_werror_flag" ||
28203          test ! -s conftest.err
28204        } && test -s conftest.$ac_objext; then
28205   ac_header_compiler=yes
28206 else
28207   echo "$as_me: failed program was:" >&5
28208 sed 's/^/| /' conftest.$ac_ext >&5
28209
28210         ac_header_compiler=no
28211 fi
28212
28213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28215 echo "${ECHO_T}$ac_header_compiler" >&6; }
28216
28217 # Is the header present?
28218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28220 cat >conftest.$ac_ext <<_ACEOF
28221 /* confdefs.h.  */
28222 _ACEOF
28223 cat confdefs.h >>conftest.$ac_ext
28224 cat >>conftest.$ac_ext <<_ACEOF
28225 /* end confdefs.h.  */
28226 #include <$ac_header>
28227 _ACEOF
28228 if { (ac_try="$ac_cpp conftest.$ac_ext"
28229 case "(($ac_try" in
28230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28231   *) ac_try_echo=$ac_try;;
28232 esac
28233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28235   ac_status=$?
28236   grep -v '^ *+' conftest.er1 >conftest.err
28237   rm -f conftest.er1
28238   cat conftest.err >&5
28239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240   (exit $ac_status); } >/dev/null && {
28241          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28242          test ! -s conftest.err
28243        }; then
28244   ac_header_preproc=yes
28245 else
28246   echo "$as_me: failed program was:" >&5
28247 sed 's/^/| /' conftest.$ac_ext >&5
28248
28249   ac_header_preproc=no
28250 fi
28251
28252 rm -f conftest.err conftest.$ac_ext
28253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28254 echo "${ECHO_T}$ac_header_preproc" >&6; }
28255
28256 # So?  What about this header?
28257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28258   yes:no: )
28259     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28263     ac_header_preproc=yes
28264     ;;
28265   no:yes:* )
28266     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28268     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28269 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28270     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28272     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28273 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28276     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28278     ( cat <<\_ASBOX
28279 ## ----------------------------------- ##
28280 ## Report this to llvmbugs@cs.uiuc.edu ##
28281 ## ----------------------------------- ##
28282 _ASBOX
28283      ) | sed "s/^/$as_me: WARNING:     /" >&2
28284     ;;
28285 esac
28286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28289   echo $ECHO_N "(cached) $ECHO_C" >&6
28290 else
28291   eval "$as_ac_Header=\$ac_header_preproc"
28292 fi
28293 ac_res=`eval echo '${'$as_ac_Header'}'`
28294                { echo "$as_me:$LINENO: result: $ac_res" >&5
28295 echo "${ECHO_T}$ac_res" >&6; }
28296
28297 fi
28298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28299   cat >>confdefs.h <<_ACEOF
28300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28301 _ACEOF
28302  HAVE_PTHREAD=1
28303
28304 else
28305   HAVE_PTHREAD=0
28306
28307 fi
28308
28309 done
28310
28311 else
28312   HAVE_PTHREAD=0
28313
28314 fi
28315
28316
28317
28318   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28319 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28320 if test "${ac_cv_huge_val_sanity+set}" = set; then
28321   echo $ECHO_N "(cached) $ECHO_C" >&6
28322 else
28323
28324     ac_ext=cpp
28325 ac_cpp='$CXXCPP $CPPFLAGS'
28326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28329
28330     CXXFLAGS=-pedantic
28331     if test "$cross_compiling" = yes; then
28332   ac_cv_huge_val_sanity=yes
28333 else
28334   cat >conftest.$ac_ext <<_ACEOF
28335 /* confdefs.h.  */
28336 _ACEOF
28337 cat confdefs.h >>conftest.$ac_ext
28338 cat >>conftest.$ac_ext <<_ACEOF
28339 /* end confdefs.h.  */
28340 #include <math.h>
28341 int
28342 main ()
28343 {
28344 double x = HUGE_VAL; return x != x;
28345   ;
28346   return 0;
28347 }
28348 _ACEOF
28349 rm -f conftest$ac_exeext
28350 if { (ac_try="$ac_link"
28351 case "(($ac_try" in
28352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353   *) ac_try_echo=$ac_try;;
28354 esac
28355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28356   (eval "$ac_link") 2>&5
28357   ac_status=$?
28358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28360   { (case "(($ac_try" in
28361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28362   *) ac_try_echo=$ac_try;;
28363 esac
28364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28365   (eval "$ac_try") 2>&5
28366   ac_status=$?
28367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368   (exit $ac_status); }; }; then
28369   ac_cv_huge_val_sanity=yes
28370 else
28371   echo "$as_me: program exited with status $ac_status" >&5
28372 echo "$as_me: failed program was:" >&5
28373 sed 's/^/| /' conftest.$ac_ext >&5
28374
28375 ( exit $ac_status )
28376 ac_cv_huge_val_sanity=no
28377 fi
28378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28379 fi
28380
28381
28382     ac_ext=c
28383 ac_cpp='$CPP $CPPFLAGS'
28384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28387
28388
28389 fi
28390 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28391 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28392   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28393
28394
28395 { echo "$as_me:$LINENO: checking for pid_t" >&5
28396 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
28397 if test "${ac_cv_type_pid_t+set}" = set; then
28398   echo $ECHO_N "(cached) $ECHO_C" >&6
28399 else
28400   cat >conftest.$ac_ext <<_ACEOF
28401 /* confdefs.h.  */
28402 _ACEOF
28403 cat confdefs.h >>conftest.$ac_ext
28404 cat >>conftest.$ac_ext <<_ACEOF
28405 /* end confdefs.h.  */
28406 $ac_includes_default
28407 typedef pid_t ac__type_new_;
28408 int
28409 main ()
28410 {
28411 if ((ac__type_new_ *) 0)
28412   return 0;
28413 if (sizeof (ac__type_new_))
28414   return 0;
28415   ;
28416   return 0;
28417 }
28418 _ACEOF
28419 rm -f conftest.$ac_objext
28420 if { (ac_try="$ac_compile"
28421 case "(($ac_try" in
28422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28423   *) ac_try_echo=$ac_try;;
28424 esac
28425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28426   (eval "$ac_compile") 2>conftest.er1
28427   ac_status=$?
28428   grep -v '^ *+' conftest.er1 >conftest.err
28429   rm -f conftest.er1
28430   cat conftest.err >&5
28431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432   (exit $ac_status); } && {
28433          test -z "$ac_c_werror_flag" ||
28434          test ! -s conftest.err
28435        } && test -s conftest.$ac_objext; then
28436   ac_cv_type_pid_t=yes
28437 else
28438   echo "$as_me: failed program was:" >&5
28439 sed 's/^/| /' conftest.$ac_ext >&5
28440
28441         ac_cv_type_pid_t=no
28442 fi
28443
28444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28445 fi
28446 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28447 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
28448 if test $ac_cv_type_pid_t = yes; then
28449   :
28450 else
28451
28452 cat >>confdefs.h <<_ACEOF
28453 #define pid_t int
28454 _ACEOF
28455
28456 fi
28457
28458 { echo "$as_me:$LINENO: checking for size_t" >&5
28459 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28460 if test "${ac_cv_type_size_t+set}" = set; then
28461   echo $ECHO_N "(cached) $ECHO_C" >&6
28462 else
28463   cat >conftest.$ac_ext <<_ACEOF
28464 /* confdefs.h.  */
28465 _ACEOF
28466 cat confdefs.h >>conftest.$ac_ext
28467 cat >>conftest.$ac_ext <<_ACEOF
28468 /* end confdefs.h.  */
28469 $ac_includes_default
28470 typedef size_t ac__type_new_;
28471 int
28472 main ()
28473 {
28474 if ((ac__type_new_ *) 0)
28475   return 0;
28476 if (sizeof (ac__type_new_))
28477   return 0;
28478   ;
28479   return 0;
28480 }
28481 _ACEOF
28482 rm -f conftest.$ac_objext
28483 if { (ac_try="$ac_compile"
28484 case "(($ac_try" in
28485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28486   *) ac_try_echo=$ac_try;;
28487 esac
28488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28489   (eval "$ac_compile") 2>conftest.er1
28490   ac_status=$?
28491   grep -v '^ *+' conftest.er1 >conftest.err
28492   rm -f conftest.er1
28493   cat conftest.err >&5
28494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495   (exit $ac_status); } && {
28496          test -z "$ac_c_werror_flag" ||
28497          test ! -s conftest.err
28498        } && test -s conftest.$ac_objext; then
28499   ac_cv_type_size_t=yes
28500 else
28501   echo "$as_me: failed program was:" >&5
28502 sed 's/^/| /' conftest.$ac_ext >&5
28503
28504         ac_cv_type_size_t=no
28505 fi
28506
28507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28508 fi
28509 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28510 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28511 if test $ac_cv_type_size_t = yes; then
28512   :
28513 else
28514
28515 cat >>confdefs.h <<_ACEOF
28516 #define size_t unsigned int
28517 _ACEOF
28518
28519 fi
28520
28521 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28522 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
28523 if test "${ac_cv_type_signal+set}" = set; then
28524   echo $ECHO_N "(cached) $ECHO_C" >&6
28525 else
28526   cat >conftest.$ac_ext <<_ACEOF
28527 /* confdefs.h.  */
28528 _ACEOF
28529 cat confdefs.h >>conftest.$ac_ext
28530 cat >>conftest.$ac_ext <<_ACEOF
28531 /* end confdefs.h.  */
28532 #include <sys/types.h>
28533 #include <signal.h>
28534
28535 int
28536 main ()
28537 {
28538 return *(signal (0, 0)) (0) == 1;
28539   ;
28540   return 0;
28541 }
28542 _ACEOF
28543 rm -f conftest.$ac_objext
28544 if { (ac_try="$ac_compile"
28545 case "(($ac_try" in
28546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28547   *) ac_try_echo=$ac_try;;
28548 esac
28549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28550   (eval "$ac_compile") 2>conftest.er1
28551   ac_status=$?
28552   grep -v '^ *+' conftest.er1 >conftest.err
28553   rm -f conftest.er1
28554   cat conftest.err >&5
28555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556   (exit $ac_status); } && {
28557          test -z "$ac_c_werror_flag" ||
28558          test ! -s conftest.err
28559        } && test -s conftest.$ac_objext; then
28560   ac_cv_type_signal=int
28561 else
28562   echo "$as_me: failed program was:" >&5
28563 sed 's/^/| /' conftest.$ac_ext >&5
28564
28565         ac_cv_type_signal=void
28566 fi
28567
28568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28569 fi
28570 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28571 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
28572
28573 cat >>confdefs.h <<_ACEOF
28574 #define RETSIGTYPE $ac_cv_type_signal
28575 _ACEOF
28576
28577
28578 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28579 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
28580 if test "${ac_cv_struct_tm+set}" = set; then
28581   echo $ECHO_N "(cached) $ECHO_C" >&6
28582 else
28583   cat >conftest.$ac_ext <<_ACEOF
28584 /* confdefs.h.  */
28585 _ACEOF
28586 cat confdefs.h >>conftest.$ac_ext
28587 cat >>conftest.$ac_ext <<_ACEOF
28588 /* end confdefs.h.  */
28589 #include <sys/types.h>
28590 #include <time.h>
28591
28592 int
28593 main ()
28594 {
28595 struct tm tm;
28596                                      int *p = &tm.tm_sec;
28597                                      return !p;
28598   ;
28599   return 0;
28600 }
28601 _ACEOF
28602 rm -f conftest.$ac_objext
28603 if { (ac_try="$ac_compile"
28604 case "(($ac_try" in
28605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28606   *) ac_try_echo=$ac_try;;
28607 esac
28608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28609   (eval "$ac_compile") 2>conftest.er1
28610   ac_status=$?
28611   grep -v '^ *+' conftest.er1 >conftest.err
28612   rm -f conftest.er1
28613   cat conftest.err >&5
28614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615   (exit $ac_status); } && {
28616          test -z "$ac_c_werror_flag" ||
28617          test ! -s conftest.err
28618        } && test -s conftest.$ac_objext; then
28619   ac_cv_struct_tm=time.h
28620 else
28621   echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.$ac_ext >&5
28623
28624         ac_cv_struct_tm=sys/time.h
28625 fi
28626
28627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28628 fi
28629 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28630 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
28631 if test $ac_cv_struct_tm = sys/time.h; then
28632
28633 cat >>confdefs.h <<\_ACEOF
28634 #define TM_IN_SYS_TIME 1
28635 _ACEOF
28636
28637 fi
28638
28639 { echo "$as_me:$LINENO: checking for int64_t" >&5
28640 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
28641 if test "${ac_cv_type_int64_t+set}" = set; then
28642   echo $ECHO_N "(cached) $ECHO_C" >&6
28643 else
28644   cat >conftest.$ac_ext <<_ACEOF
28645 /* confdefs.h.  */
28646 _ACEOF
28647 cat confdefs.h >>conftest.$ac_ext
28648 cat >>conftest.$ac_ext <<_ACEOF
28649 /* end confdefs.h.  */
28650 $ac_includes_default
28651 typedef int64_t ac__type_new_;
28652 int
28653 main ()
28654 {
28655 if ((ac__type_new_ *) 0)
28656   return 0;
28657 if (sizeof (ac__type_new_))
28658   return 0;
28659   ;
28660   return 0;
28661 }
28662 _ACEOF
28663 rm -f conftest.$ac_objext
28664 if { (ac_try="$ac_compile"
28665 case "(($ac_try" in
28666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28667   *) ac_try_echo=$ac_try;;
28668 esac
28669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28670   (eval "$ac_compile") 2>conftest.er1
28671   ac_status=$?
28672   grep -v '^ *+' conftest.er1 >conftest.err
28673   rm -f conftest.er1
28674   cat conftest.err >&5
28675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676   (exit $ac_status); } && {
28677          test -z "$ac_c_werror_flag" ||
28678          test ! -s conftest.err
28679        } && test -s conftest.$ac_objext; then
28680   ac_cv_type_int64_t=yes
28681 else
28682   echo "$as_me: failed program was:" >&5
28683 sed 's/^/| /' conftest.$ac_ext >&5
28684
28685         ac_cv_type_int64_t=no
28686 fi
28687
28688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28689 fi
28690 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28691 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
28692 if test $ac_cv_type_int64_t = yes; then
28693
28694 cat >>confdefs.h <<_ACEOF
28695 #define HAVE_INT64_T 1
28696 _ACEOF
28697
28698
28699 else
28700   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28701 echo "$as_me: error: Type int64_t required but not found" >&2;}
28702    { (exit 1); exit 1; }; }
28703 fi
28704
28705 { echo "$as_me:$LINENO: checking for uint64_t" >&5
28706 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
28707 if test "${ac_cv_type_uint64_t+set}" = set; then
28708   echo $ECHO_N "(cached) $ECHO_C" >&6
28709 else
28710   cat >conftest.$ac_ext <<_ACEOF
28711 /* confdefs.h.  */
28712 _ACEOF
28713 cat confdefs.h >>conftest.$ac_ext
28714 cat >>conftest.$ac_ext <<_ACEOF
28715 /* end confdefs.h.  */
28716 $ac_includes_default
28717 typedef uint64_t ac__type_new_;
28718 int
28719 main ()
28720 {
28721 if ((ac__type_new_ *) 0)
28722   return 0;
28723 if (sizeof (ac__type_new_))
28724   return 0;
28725   ;
28726   return 0;
28727 }
28728 _ACEOF
28729 rm -f conftest.$ac_objext
28730 if { (ac_try="$ac_compile"
28731 case "(($ac_try" in
28732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28733   *) ac_try_echo=$ac_try;;
28734 esac
28735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28736   (eval "$ac_compile") 2>conftest.er1
28737   ac_status=$?
28738   grep -v '^ *+' conftest.er1 >conftest.err
28739   rm -f conftest.er1
28740   cat conftest.err >&5
28741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742   (exit $ac_status); } && {
28743          test -z "$ac_c_werror_flag" ||
28744          test ! -s conftest.err
28745        } && test -s conftest.$ac_objext; then
28746   ac_cv_type_uint64_t=yes
28747 else
28748   echo "$as_me: failed program was:" >&5
28749 sed 's/^/| /' conftest.$ac_ext >&5
28750
28751         ac_cv_type_uint64_t=no
28752 fi
28753
28754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28755 fi
28756 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28757 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
28758 if test $ac_cv_type_uint64_t = yes; then
28759
28760 cat >>confdefs.h <<_ACEOF
28761 #define HAVE_UINT64_T 1
28762 _ACEOF
28763
28764
28765 else
28766   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
28767 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
28768 if test "${ac_cv_type_u_int64_t+set}" = set; then
28769   echo $ECHO_N "(cached) $ECHO_C" >&6
28770 else
28771   cat >conftest.$ac_ext <<_ACEOF
28772 /* confdefs.h.  */
28773 _ACEOF
28774 cat confdefs.h >>conftest.$ac_ext
28775 cat >>conftest.$ac_ext <<_ACEOF
28776 /* end confdefs.h.  */
28777 $ac_includes_default
28778 typedef u_int64_t ac__type_new_;
28779 int
28780 main ()
28781 {
28782 if ((ac__type_new_ *) 0)
28783   return 0;
28784 if (sizeof (ac__type_new_))
28785   return 0;
28786   ;
28787   return 0;
28788 }
28789 _ACEOF
28790 rm -f conftest.$ac_objext
28791 if { (ac_try="$ac_compile"
28792 case "(($ac_try" in
28793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794   *) ac_try_echo=$ac_try;;
28795 esac
28796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28797   (eval "$ac_compile") 2>conftest.er1
28798   ac_status=$?
28799   grep -v '^ *+' conftest.er1 >conftest.err
28800   rm -f conftest.er1
28801   cat conftest.err >&5
28802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803   (exit $ac_status); } && {
28804          test -z "$ac_c_werror_flag" ||
28805          test ! -s conftest.err
28806        } && test -s conftest.$ac_objext; then
28807   ac_cv_type_u_int64_t=yes
28808 else
28809   echo "$as_me: failed program was:" >&5
28810 sed 's/^/| /' conftest.$ac_ext >&5
28811
28812         ac_cv_type_u_int64_t=no
28813 fi
28814
28815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28816 fi
28817 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28818 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
28819 if test $ac_cv_type_u_int64_t = yes; then
28820
28821 cat >>confdefs.h <<_ACEOF
28822 #define HAVE_U_INT64_T 1
28823 _ACEOF
28824
28825
28826 else
28827   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28828 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28829    { (exit 1); exit 1; }; }
28830 fi
28831
28832 fi
28833
28834
28835
28836
28837
28838
28839
28840
28841
28842
28843 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28844 do
28845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28846 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28848 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28849   echo $ECHO_N "(cached) $ECHO_C" >&6
28850 else
28851   cat >conftest.$ac_ext <<_ACEOF
28852 /* confdefs.h.  */
28853 _ACEOF
28854 cat confdefs.h >>conftest.$ac_ext
28855 cat >>conftest.$ac_ext <<_ACEOF
28856 /* end confdefs.h.  */
28857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28859 #define $ac_func innocuous_$ac_func
28860
28861 /* System header to define __stub macros and hopefully few prototypes,
28862     which can conflict with char $ac_func (); below.
28863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28864     <limits.h> exists even on freestanding compilers.  */
28865
28866 #ifdef __STDC__
28867 # include <limits.h>
28868 #else
28869 # include <assert.h>
28870 #endif
28871
28872 #undef $ac_func
28873
28874 /* Override any GCC internal prototype to avoid an error.
28875    Use char because int might match the return type of a GCC
28876    builtin and then its argument prototype would still apply.  */
28877 #ifdef __cplusplus
28878 extern "C"
28879 #endif
28880 char $ac_func ();
28881 /* The GNU C library defines this for functions which it implements
28882     to always fail with ENOSYS.  Some functions are actually named
28883     something starting with __ and the normal name is an alias.  */
28884 #if defined __stub_$ac_func || defined __stub___$ac_func
28885 choke me
28886 #endif
28887
28888 int
28889 main ()
28890 {
28891 return $ac_func ();
28892   ;
28893   return 0;
28894 }
28895 _ACEOF
28896 rm -f conftest.$ac_objext conftest$ac_exeext
28897 if { (ac_try="$ac_link"
28898 case "(($ac_try" in
28899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28900   *) ac_try_echo=$ac_try;;
28901 esac
28902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28903   (eval "$ac_link") 2>conftest.er1
28904   ac_status=$?
28905   grep -v '^ *+' conftest.er1 >conftest.err
28906   rm -f conftest.er1
28907   cat conftest.err >&5
28908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909   (exit $ac_status); } && {
28910          test -z "$ac_c_werror_flag" ||
28911          test ! -s conftest.err
28912        } && test -s conftest$ac_exeext &&
28913        $as_test_x conftest$ac_exeext; then
28914   eval "$as_ac_var=yes"
28915 else
28916   echo "$as_me: failed program was:" >&5
28917 sed 's/^/| /' conftest.$ac_ext >&5
28918
28919         eval "$as_ac_var=no"
28920 fi
28921
28922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28923       conftest$ac_exeext conftest.$ac_ext
28924 fi
28925 ac_res=`eval echo '${'$as_ac_var'}'`
28926                { echo "$as_me:$LINENO: result: $ac_res" >&5
28927 echo "${ECHO_T}$ac_res" >&6; }
28928 if test `eval echo '${'$as_ac_var'}'` = yes; then
28929   cat >>confdefs.h <<_ACEOF
28930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28931 _ACEOF
28932
28933 fi
28934 done
28935
28936
28937
28938
28939
28940 for ac_func in powf fmodf strtof round
28941 do
28942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28946   echo $ECHO_N "(cached) $ECHO_C" >&6
28947 else
28948   cat >conftest.$ac_ext <<_ACEOF
28949 /* confdefs.h.  */
28950 _ACEOF
28951 cat confdefs.h >>conftest.$ac_ext
28952 cat >>conftest.$ac_ext <<_ACEOF
28953 /* end confdefs.h.  */
28954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28956 #define $ac_func innocuous_$ac_func
28957
28958 /* System header to define __stub macros and hopefully few prototypes,
28959     which can conflict with char $ac_func (); below.
28960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28961     <limits.h> exists even on freestanding compilers.  */
28962
28963 #ifdef __STDC__
28964 # include <limits.h>
28965 #else
28966 # include <assert.h>
28967 #endif
28968
28969 #undef $ac_func
28970
28971 /* Override any GCC internal prototype to avoid an error.
28972    Use char because int might match the return type of a GCC
28973    builtin and then its argument prototype would still apply.  */
28974 #ifdef __cplusplus
28975 extern "C"
28976 #endif
28977 char $ac_func ();
28978 /* The GNU C library defines this for functions which it implements
28979     to always fail with ENOSYS.  Some functions are actually named
28980     something starting with __ and the normal name is an alias.  */
28981 #if defined __stub_$ac_func || defined __stub___$ac_func
28982 choke me
28983 #endif
28984
28985 int
28986 main ()
28987 {
28988 return $ac_func ();
28989   ;
28990   return 0;
28991 }
28992 _ACEOF
28993 rm -f conftest.$ac_objext conftest$ac_exeext
28994 if { (ac_try="$ac_link"
28995 case "(($ac_try" in
28996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28997   *) ac_try_echo=$ac_try;;
28998 esac
28999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29000   (eval "$ac_link") 2>conftest.er1
29001   ac_status=$?
29002   grep -v '^ *+' conftest.er1 >conftest.err
29003   rm -f conftest.er1
29004   cat conftest.err >&5
29005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006   (exit $ac_status); } && {
29007          test -z "$ac_c_werror_flag" ||
29008          test ! -s conftest.err
29009        } && test -s conftest$ac_exeext &&
29010        $as_test_x conftest$ac_exeext; then
29011   eval "$as_ac_var=yes"
29012 else
29013   echo "$as_me: failed program was:" >&5
29014 sed 's/^/| /' conftest.$ac_ext >&5
29015
29016         eval "$as_ac_var=no"
29017 fi
29018
29019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29020       conftest$ac_exeext conftest.$ac_ext
29021 fi
29022 ac_res=`eval echo '${'$as_ac_var'}'`
29023                { echo "$as_me:$LINENO: result: $ac_res" >&5
29024 echo "${ECHO_T}$ac_res" >&6; }
29025 if test `eval echo '${'$as_ac_var'}'` = yes; then
29026   cat >>confdefs.h <<_ACEOF
29027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29028 _ACEOF
29029
29030 fi
29031 done
29032
29033
29034
29035
29036
29037
29038 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
29039 do
29040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29044   echo $ECHO_N "(cached) $ECHO_C" >&6
29045 else
29046   cat >conftest.$ac_ext <<_ACEOF
29047 /* confdefs.h.  */
29048 _ACEOF
29049 cat confdefs.h >>conftest.$ac_ext
29050 cat >>conftest.$ac_ext <<_ACEOF
29051 /* end confdefs.h.  */
29052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29054 #define $ac_func innocuous_$ac_func
29055
29056 /* System header to define __stub macros and hopefully few prototypes,
29057     which can conflict with char $ac_func (); below.
29058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29059     <limits.h> exists even on freestanding compilers.  */
29060
29061 #ifdef __STDC__
29062 # include <limits.h>
29063 #else
29064 # include <assert.h>
29065 #endif
29066
29067 #undef $ac_func
29068
29069 /* Override any GCC internal prototype to avoid an error.
29070    Use char because int might match the return type of a GCC
29071    builtin and then its argument prototype would still apply.  */
29072 #ifdef __cplusplus
29073 extern "C"
29074 #endif
29075 char $ac_func ();
29076 /* The GNU C library defines this for functions which it implements
29077     to always fail with ENOSYS.  Some functions are actually named
29078     something starting with __ and the normal name is an alias.  */
29079 #if defined __stub_$ac_func || defined __stub___$ac_func
29080 choke me
29081 #endif
29082
29083 int
29084 main ()
29085 {
29086 return $ac_func ();
29087   ;
29088   return 0;
29089 }
29090 _ACEOF
29091 rm -f conftest.$ac_objext conftest$ac_exeext
29092 if { (ac_try="$ac_link"
29093 case "(($ac_try" in
29094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29095   *) ac_try_echo=$ac_try;;
29096 esac
29097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29098   (eval "$ac_link") 2>conftest.er1
29099   ac_status=$?
29100   grep -v '^ *+' conftest.er1 >conftest.err
29101   rm -f conftest.er1
29102   cat conftest.err >&5
29103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104   (exit $ac_status); } && {
29105          test -z "$ac_c_werror_flag" ||
29106          test ! -s conftest.err
29107        } && test -s conftest$ac_exeext &&
29108        $as_test_x conftest$ac_exeext; then
29109   eval "$as_ac_var=yes"
29110 else
29111   echo "$as_me: failed program was:" >&5
29112 sed 's/^/| /' conftest.$ac_ext >&5
29113
29114         eval "$as_ac_var=no"
29115 fi
29116
29117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29118       conftest$ac_exeext conftest.$ac_ext
29119 fi
29120 ac_res=`eval echo '${'$as_ac_var'}'`
29121                { echo "$as_me:$LINENO: result: $ac_res" >&5
29122 echo "${ECHO_T}$ac_res" >&6; }
29123 if test `eval echo '${'$as_ac_var'}'` = yes; then
29124   cat >>confdefs.h <<_ACEOF
29125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29126 _ACEOF
29127
29128 fi
29129 done
29130
29131
29132
29133
29134 for ac_func in isatty mkdtemp mkstemp
29135 do
29136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29140   echo $ECHO_N "(cached) $ECHO_C" >&6
29141 else
29142   cat >conftest.$ac_ext <<_ACEOF
29143 /* confdefs.h.  */
29144 _ACEOF
29145 cat confdefs.h >>conftest.$ac_ext
29146 cat >>conftest.$ac_ext <<_ACEOF
29147 /* end confdefs.h.  */
29148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29150 #define $ac_func innocuous_$ac_func
29151
29152 /* System header to define __stub macros and hopefully few prototypes,
29153     which can conflict with char $ac_func (); below.
29154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29155     <limits.h> exists even on freestanding compilers.  */
29156
29157 #ifdef __STDC__
29158 # include <limits.h>
29159 #else
29160 # include <assert.h>
29161 #endif
29162
29163 #undef $ac_func
29164
29165 /* Override any GCC internal prototype to avoid an error.
29166    Use char because int might match the return type of a GCC
29167    builtin and then its argument prototype would still apply.  */
29168 #ifdef __cplusplus
29169 extern "C"
29170 #endif
29171 char $ac_func ();
29172 /* The GNU C library defines this for functions which it implements
29173     to always fail with ENOSYS.  Some functions are actually named
29174     something starting with __ and the normal name is an alias.  */
29175 #if defined __stub_$ac_func || defined __stub___$ac_func
29176 choke me
29177 #endif
29178
29179 int
29180 main ()
29181 {
29182 return $ac_func ();
29183   ;
29184   return 0;
29185 }
29186 _ACEOF
29187 rm -f conftest.$ac_objext conftest$ac_exeext
29188 if { (ac_try="$ac_link"
29189 case "(($ac_try" in
29190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29191   *) ac_try_echo=$ac_try;;
29192 esac
29193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29194   (eval "$ac_link") 2>conftest.er1
29195   ac_status=$?
29196   grep -v '^ *+' conftest.er1 >conftest.err
29197   rm -f conftest.er1
29198   cat conftest.err >&5
29199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200   (exit $ac_status); } && {
29201          test -z "$ac_c_werror_flag" ||
29202          test ! -s conftest.err
29203        } && test -s conftest$ac_exeext &&
29204        $as_test_x conftest$ac_exeext; then
29205   eval "$as_ac_var=yes"
29206 else
29207   echo "$as_me: failed program was:" >&5
29208 sed 's/^/| /' conftest.$ac_ext >&5
29209
29210         eval "$as_ac_var=no"
29211 fi
29212
29213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29214       conftest$ac_exeext conftest.$ac_ext
29215 fi
29216 ac_res=`eval echo '${'$as_ac_var'}'`
29217                { echo "$as_me:$LINENO: result: $ac_res" >&5
29218 echo "${ECHO_T}$ac_res" >&6; }
29219 if test `eval echo '${'$as_ac_var'}'` = yes; then
29220   cat >>confdefs.h <<_ACEOF
29221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29222 _ACEOF
29223
29224 fi
29225 done
29226
29227
29228
29229
29230
29231
29232
29233
29234 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
29235 do
29236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29240   echo $ECHO_N "(cached) $ECHO_C" >&6
29241 else
29242   cat >conftest.$ac_ext <<_ACEOF
29243 /* confdefs.h.  */
29244 _ACEOF
29245 cat confdefs.h >>conftest.$ac_ext
29246 cat >>conftest.$ac_ext <<_ACEOF
29247 /* end confdefs.h.  */
29248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29250 #define $ac_func innocuous_$ac_func
29251
29252 /* System header to define __stub macros and hopefully few prototypes,
29253     which can conflict with char $ac_func (); below.
29254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29255     <limits.h> exists even on freestanding compilers.  */
29256
29257 #ifdef __STDC__
29258 # include <limits.h>
29259 #else
29260 # include <assert.h>
29261 #endif
29262
29263 #undef $ac_func
29264
29265 /* Override any GCC internal prototype to avoid an error.
29266    Use char because int might match the return type of a GCC
29267    builtin and then its argument prototype would still apply.  */
29268 #ifdef __cplusplus
29269 extern "C"
29270 #endif
29271 char $ac_func ();
29272 /* The GNU C library defines this for functions which it implements
29273     to always fail with ENOSYS.  Some functions are actually named
29274     something starting with __ and the normal name is an alias.  */
29275 #if defined __stub_$ac_func || defined __stub___$ac_func
29276 choke me
29277 #endif
29278
29279 int
29280 main ()
29281 {
29282 return $ac_func ();
29283   ;
29284   return 0;
29285 }
29286 _ACEOF
29287 rm -f conftest.$ac_objext conftest$ac_exeext
29288 if { (ac_try="$ac_link"
29289 case "(($ac_try" in
29290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291   *) ac_try_echo=$ac_try;;
29292 esac
29293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294   (eval "$ac_link") 2>conftest.er1
29295   ac_status=$?
29296   grep -v '^ *+' conftest.er1 >conftest.err
29297   rm -f conftest.er1
29298   cat conftest.err >&5
29299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300   (exit $ac_status); } && {
29301          test -z "$ac_c_werror_flag" ||
29302          test ! -s conftest.err
29303        } && test -s conftest$ac_exeext &&
29304        $as_test_x conftest$ac_exeext; then
29305   eval "$as_ac_var=yes"
29306 else
29307   echo "$as_me: failed program was:" >&5
29308 sed 's/^/| /' conftest.$ac_ext >&5
29309
29310         eval "$as_ac_var=no"
29311 fi
29312
29313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29314       conftest$ac_exeext conftest.$ac_ext
29315 fi
29316 ac_res=`eval echo '${'$as_ac_var'}'`
29317                { echo "$as_me:$LINENO: result: $ac_res" >&5
29318 echo "${ECHO_T}$ac_res" >&6; }
29319 if test `eval echo '${'$as_ac_var'}'` = yes; then
29320   cat >>confdefs.h <<_ACEOF
29321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29322 _ACEOF
29323
29324 fi
29325 done
29326
29327
29328
29329
29330
29331 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
29332 do
29333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29337   echo $ECHO_N "(cached) $ECHO_C" >&6
29338 else
29339   cat >conftest.$ac_ext <<_ACEOF
29340 /* confdefs.h.  */
29341 _ACEOF
29342 cat confdefs.h >>conftest.$ac_ext
29343 cat >>conftest.$ac_ext <<_ACEOF
29344 /* end confdefs.h.  */
29345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29347 #define $ac_func innocuous_$ac_func
29348
29349 /* System header to define __stub macros and hopefully few prototypes,
29350     which can conflict with char $ac_func (); below.
29351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29352     <limits.h> exists even on freestanding compilers.  */
29353
29354 #ifdef __STDC__
29355 # include <limits.h>
29356 #else
29357 # include <assert.h>
29358 #endif
29359
29360 #undef $ac_func
29361
29362 /* Override any GCC internal prototype to avoid an error.
29363    Use char because int might match the return type of a GCC
29364    builtin and then its argument prototype would still apply.  */
29365 #ifdef __cplusplus
29366 extern "C"
29367 #endif
29368 char $ac_func ();
29369 /* The GNU C library defines this for functions which it implements
29370     to always fail with ENOSYS.  Some functions are actually named
29371     something starting with __ and the normal name is an alias.  */
29372 #if defined __stub_$ac_func || defined __stub___$ac_func
29373 choke me
29374 #endif
29375
29376 int
29377 main ()
29378 {
29379 return $ac_func ();
29380   ;
29381   return 0;
29382 }
29383 _ACEOF
29384 rm -f conftest.$ac_objext conftest$ac_exeext
29385 if { (ac_try="$ac_link"
29386 case "(($ac_try" in
29387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29388   *) ac_try_echo=$ac_try;;
29389 esac
29390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29391   (eval "$ac_link") 2>conftest.er1
29392   ac_status=$?
29393   grep -v '^ *+' conftest.er1 >conftest.err
29394   rm -f conftest.er1
29395   cat conftest.err >&5
29396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397   (exit $ac_status); } && {
29398          test -z "$ac_c_werror_flag" ||
29399          test ! -s conftest.err
29400        } && test -s conftest$ac_exeext &&
29401        $as_test_x conftest$ac_exeext; then
29402   eval "$as_ac_var=yes"
29403 else
29404   echo "$as_me: failed program was:" >&5
29405 sed 's/^/| /' conftest.$ac_ext >&5
29406
29407         eval "$as_ac_var=no"
29408 fi
29409
29410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29411       conftest$ac_exeext conftest.$ac_ext
29412 fi
29413 ac_res=`eval echo '${'$as_ac_var'}'`
29414                { echo "$as_me:$LINENO: result: $ac_res" >&5
29415 echo "${ECHO_T}$ac_res" >&6; }
29416 if test `eval echo '${'$as_ac_var'}'` = yes; then
29417   cat >>confdefs.h <<_ACEOF
29418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29419 _ACEOF
29420
29421 fi
29422 done
29423
29424
29425
29426
29427
29428 for ac_func in setjmp longjmp sigsetjmp siglongjmp
29429 do
29430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29431 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29434   echo $ECHO_N "(cached) $ECHO_C" >&6
29435 else
29436   cat >conftest.$ac_ext <<_ACEOF
29437 /* confdefs.h.  */
29438 _ACEOF
29439 cat confdefs.h >>conftest.$ac_ext
29440 cat >>conftest.$ac_ext <<_ACEOF
29441 /* end confdefs.h.  */
29442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29444 #define $ac_func innocuous_$ac_func
29445
29446 /* System header to define __stub macros and hopefully few prototypes,
29447     which can conflict with char $ac_func (); below.
29448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29449     <limits.h> exists even on freestanding compilers.  */
29450
29451 #ifdef __STDC__
29452 # include <limits.h>
29453 #else
29454 # include <assert.h>
29455 #endif
29456
29457 #undef $ac_func
29458
29459 /* Override any GCC internal prototype to avoid an error.
29460    Use char because int might match the return type of a GCC
29461    builtin and then its argument prototype would still apply.  */
29462 #ifdef __cplusplus
29463 extern "C"
29464 #endif
29465 char $ac_func ();
29466 /* The GNU C library defines this for functions which it implements
29467     to always fail with ENOSYS.  Some functions are actually named
29468     something starting with __ and the normal name is an alias.  */
29469 #if defined __stub_$ac_func || defined __stub___$ac_func
29470 choke me
29471 #endif
29472
29473 int
29474 main ()
29475 {
29476 return $ac_func ();
29477   ;
29478   return 0;
29479 }
29480 _ACEOF
29481 rm -f conftest.$ac_objext conftest$ac_exeext
29482 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
29489   ac_status=$?
29490   grep -v '^ *+' conftest.er1 >conftest.err
29491   rm -f conftest.er1
29492   cat conftest.err >&5
29493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494   (exit $ac_status); } && {
29495          test -z "$ac_c_werror_flag" ||
29496          test ! -s conftest.err
29497        } && test -s conftest$ac_exeext &&
29498        $as_test_x conftest$ac_exeext; then
29499   eval "$as_ac_var=yes"
29500 else
29501   echo "$as_me: failed program was:" >&5
29502 sed 's/^/| /' conftest.$ac_ext >&5
29503
29504         eval "$as_ac_var=no"
29505 fi
29506
29507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29508       conftest$ac_exeext conftest.$ac_ext
29509 fi
29510 ac_res=`eval echo '${'$as_ac_var'}'`
29511                { echo "$as_me:$LINENO: result: $ac_res" >&5
29512 echo "${ECHO_T}$ac_res" >&6; }
29513 if test `eval echo '${'$as_ac_var'}'` = yes; then
29514   cat >>confdefs.h <<_ACEOF
29515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29516 _ACEOF
29517
29518 fi
29519 done
29520
29521 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29522 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
29523 if test "${llvm_cv_c_printf_a+set}" = set; then
29524   echo $ECHO_N "(cached) $ECHO_C" >&6
29525 else
29526   ac_ext=c
29527 ac_cpp='$CPP $CPPFLAGS'
29528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29531
29532  if test "$cross_compiling" = yes; then
29533   llvmac_cv_c_printf_a=no
29534 else
29535   cat >conftest.$ac_ext <<_ACEOF
29536
29537   /* confdefs.h.  */
29538 _ACEOF
29539 cat confdefs.h >>conftest.$ac_ext
29540 cat >>conftest.$ac_ext <<_ACEOF
29541 /* end confdefs.h.  */
29542
29543 #include <stdio.h>
29544 #include <stdlib.h>
29545
29546 int
29547 main ()
29548 {
29549
29550 volatile double A, B;
29551 char Buffer[100];
29552 A = 1;
29553 A /= 10.0;
29554 sprintf(Buffer, "%a", A);
29555 B = atof(Buffer);
29556 if (A != B)
29557   return (1);
29558 if (A != 0x1.999999999999ap-4)
29559   return (1);
29560 return (0);
29561   ;
29562   return 0;
29563 }
29564 _ACEOF
29565 rm -f conftest$ac_exeext
29566 if { (ac_try="$ac_link"
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_link") 2>&5
29573   ac_status=$?
29574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29576   { (case "(($ac_try" in
29577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29578   *) ac_try_echo=$ac_try;;
29579 esac
29580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29581   (eval "$ac_try") 2>&5
29582   ac_status=$?
29583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584   (exit $ac_status); }; }; then
29585   llvm_cv_c_printf_a=yes
29586 else
29587   echo "$as_me: program exited with status $ac_status" >&5
29588 echo "$as_me: failed program was:" >&5
29589 sed 's/^/| /' conftest.$ac_ext >&5
29590
29591 ( exit $ac_status )
29592 llvmac_cv_c_printf_a=no
29593 fi
29594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29595 fi
29596
29597
29598  ac_ext=c
29599 ac_cpp='$CPP $CPPFLAGS'
29600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29603
29604 fi
29605 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29606 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
29607  if test "$llvm_cv_c_printf_a" = "yes"; then
29608
29609 cat >>confdefs.h <<\_ACEOF
29610 #define HAVE_PRINTF_A 1
29611 _ACEOF
29612
29613  fi
29614
29615 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29616 # for constant arguments.  Useless!
29617 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
29618 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
29619 if test "${ac_cv_working_alloca_h+set}" = set; then
29620   echo $ECHO_N "(cached) $ECHO_C" >&6
29621 else
29622   cat >conftest.$ac_ext <<_ACEOF
29623 /* confdefs.h.  */
29624 _ACEOF
29625 cat confdefs.h >>conftest.$ac_ext
29626 cat >>conftest.$ac_ext <<_ACEOF
29627 /* end confdefs.h.  */
29628 #include <alloca.h>
29629 int
29630 main ()
29631 {
29632 char *p = (char *) alloca (2 * sizeof (int));
29633                           if (p) return 0;
29634   ;
29635   return 0;
29636 }
29637 _ACEOF
29638 rm -f conftest.$ac_objext conftest$ac_exeext
29639 if { (ac_try="$ac_link"
29640 case "(($ac_try" in
29641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642   *) ac_try_echo=$ac_try;;
29643 esac
29644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645   (eval "$ac_link") 2>conftest.er1
29646   ac_status=$?
29647   grep -v '^ *+' conftest.er1 >conftest.err
29648   rm -f conftest.er1
29649   cat conftest.err >&5
29650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651   (exit $ac_status); } && {
29652          test -z "$ac_c_werror_flag" ||
29653          test ! -s conftest.err
29654        } && test -s conftest$ac_exeext &&
29655        $as_test_x conftest$ac_exeext; then
29656   ac_cv_working_alloca_h=yes
29657 else
29658   echo "$as_me: failed program was:" >&5
29659 sed 's/^/| /' conftest.$ac_ext >&5
29660
29661         ac_cv_working_alloca_h=no
29662 fi
29663
29664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29665       conftest$ac_exeext conftest.$ac_ext
29666 fi
29667 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
29668 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
29669 if test $ac_cv_working_alloca_h = yes; then
29670
29671 cat >>confdefs.h <<\_ACEOF
29672 #define HAVE_ALLOCA_H 1
29673 _ACEOF
29674
29675 fi
29676
29677 { echo "$as_me:$LINENO: checking for alloca" >&5
29678 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
29679 if test "${ac_cv_func_alloca_works+set}" = set; then
29680   echo $ECHO_N "(cached) $ECHO_C" >&6
29681 else
29682   cat >conftest.$ac_ext <<_ACEOF
29683 /* confdefs.h.  */
29684 _ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h.  */
29688 #ifdef __GNUC__
29689 # define alloca __builtin_alloca
29690 #else
29691 # ifdef _MSC_VER
29692 #  include <malloc.h>
29693 #  define alloca _alloca
29694 # else
29695 #  ifdef HAVE_ALLOCA_H
29696 #   include <alloca.h>
29697 #  else
29698 #   ifdef _AIX
29699  #pragma alloca
29700 #   else
29701 #    ifndef alloca /* predefined by HP cc +Olibcalls */
29702 char *alloca ();
29703 #    endif
29704 #   endif
29705 #  endif
29706 # endif
29707 #endif
29708
29709 int
29710 main ()
29711 {
29712 char *p = (char *) alloca (1);
29713                                     if (p) return 0;
29714   ;
29715   return 0;
29716 }
29717 _ACEOF
29718 rm -f conftest.$ac_objext conftest$ac_exeext
29719 if { (ac_try="$ac_link"
29720 case "(($ac_try" in
29721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29722   *) ac_try_echo=$ac_try;;
29723 esac
29724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29725   (eval "$ac_link") 2>conftest.er1
29726   ac_status=$?
29727   grep -v '^ *+' conftest.er1 >conftest.err
29728   rm -f conftest.er1
29729   cat conftest.err >&5
29730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731   (exit $ac_status); } && {
29732          test -z "$ac_c_werror_flag" ||
29733          test ! -s conftest.err
29734        } && test -s conftest$ac_exeext &&
29735        $as_test_x conftest$ac_exeext; then
29736   ac_cv_func_alloca_works=yes
29737 else
29738   echo "$as_me: failed program was:" >&5
29739 sed 's/^/| /' conftest.$ac_ext >&5
29740
29741         ac_cv_func_alloca_works=no
29742 fi
29743
29744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29745       conftest$ac_exeext conftest.$ac_ext
29746 fi
29747 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
29748 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
29749
29750 if test $ac_cv_func_alloca_works = yes; then
29751
29752 cat >>confdefs.h <<\_ACEOF
29753 #define HAVE_ALLOCA 1
29754 _ACEOF
29755
29756 else
29757   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29758 # that cause trouble.  Some versions do not even contain alloca or
29759 # contain a buggy version.  If you still want to use their alloca,
29760 # use ar to extract alloca.o from them instead of compiling alloca.c.
29761
29762 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29763
29764 cat >>confdefs.h <<\_ACEOF
29765 #define C_ALLOCA 1
29766 _ACEOF
29767
29768
29769 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29770 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
29771 if test "${ac_cv_os_cray+set}" = set; then
29772   echo $ECHO_N "(cached) $ECHO_C" >&6
29773 else
29774   cat >conftest.$ac_ext <<_ACEOF
29775 /* confdefs.h.  */
29776 _ACEOF
29777 cat confdefs.h >>conftest.$ac_ext
29778 cat >>conftest.$ac_ext <<_ACEOF
29779 /* end confdefs.h.  */
29780 #if defined CRAY && ! defined CRAY2
29781 webecray
29782 #else
29783 wenotbecray
29784 #endif
29785
29786 _ACEOF
29787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29788   $EGREP "webecray" >/dev/null 2>&1; then
29789   ac_cv_os_cray=yes
29790 else
29791   ac_cv_os_cray=no
29792 fi
29793 rm -f conftest*
29794
29795 fi
29796 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29797 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
29798 if test $ac_cv_os_cray = yes; then
29799   for ac_func in _getb67 GETB67 getb67; do
29800     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29804   echo $ECHO_N "(cached) $ECHO_C" >&6
29805 else
29806   cat >conftest.$ac_ext <<_ACEOF
29807 /* confdefs.h.  */
29808 _ACEOF
29809 cat confdefs.h >>conftest.$ac_ext
29810 cat >>conftest.$ac_ext <<_ACEOF
29811 /* end confdefs.h.  */
29812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29813    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29814 #define $ac_func innocuous_$ac_func
29815
29816 /* System header to define __stub macros and hopefully few prototypes,
29817     which can conflict with char $ac_func (); below.
29818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29819     <limits.h> exists even on freestanding compilers.  */
29820
29821 #ifdef __STDC__
29822 # include <limits.h>
29823 #else
29824 # include <assert.h>
29825 #endif
29826
29827 #undef $ac_func
29828
29829 /* Override any GCC internal prototype to avoid an error.
29830    Use char because int might match the return type of a GCC
29831    builtin and then its argument prototype would still apply.  */
29832 #ifdef __cplusplus
29833 extern "C"
29834 #endif
29835 char $ac_func ();
29836 /* The GNU C library defines this for functions which it implements
29837     to always fail with ENOSYS.  Some functions are actually named
29838     something starting with __ and the normal name is an alias.  */
29839 #if defined __stub_$ac_func || defined __stub___$ac_func
29840 choke me
29841 #endif
29842
29843 int
29844 main ()
29845 {
29846 return $ac_func ();
29847   ;
29848   return 0;
29849 }
29850 _ACEOF
29851 rm -f conftest.$ac_objext conftest$ac_exeext
29852 if { (ac_try="$ac_link"
29853 case "(($ac_try" in
29854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29855   *) ac_try_echo=$ac_try;;
29856 esac
29857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29858   (eval "$ac_link") 2>conftest.er1
29859   ac_status=$?
29860   grep -v '^ *+' conftest.er1 >conftest.err
29861   rm -f conftest.er1
29862   cat conftest.err >&5
29863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864   (exit $ac_status); } && {
29865          test -z "$ac_c_werror_flag" ||
29866          test ! -s conftest.err
29867        } && test -s conftest$ac_exeext &&
29868        $as_test_x conftest$ac_exeext; then
29869   eval "$as_ac_var=yes"
29870 else
29871   echo "$as_me: failed program was:" >&5
29872 sed 's/^/| /' conftest.$ac_ext >&5
29873
29874         eval "$as_ac_var=no"
29875 fi
29876
29877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29878       conftest$ac_exeext conftest.$ac_ext
29879 fi
29880 ac_res=`eval echo '${'$as_ac_var'}'`
29881                { echo "$as_me:$LINENO: result: $ac_res" >&5
29882 echo "${ECHO_T}$ac_res" >&6; }
29883 if test `eval echo '${'$as_ac_var'}'` = yes; then
29884
29885 cat >>confdefs.h <<_ACEOF
29886 #define CRAY_STACKSEG_END $ac_func
29887 _ACEOF
29888
29889     break
29890 fi
29891
29892   done
29893 fi
29894
29895 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29896 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
29897 if test "${ac_cv_c_stack_direction+set}" = set; then
29898   echo $ECHO_N "(cached) $ECHO_C" >&6
29899 else
29900   if test "$cross_compiling" = yes; then
29901   ac_cv_c_stack_direction=0
29902 else
29903   cat >conftest.$ac_ext <<_ACEOF
29904 /* confdefs.h.  */
29905 _ACEOF
29906 cat confdefs.h >>conftest.$ac_ext
29907 cat >>conftest.$ac_ext <<_ACEOF
29908 /* end confdefs.h.  */
29909 $ac_includes_default
29910 int
29911 find_stack_direction ()
29912 {
29913   static char *addr = 0;
29914   auto char dummy;
29915   if (addr == 0)
29916     {
29917       addr = &dummy;
29918       return find_stack_direction ();
29919     }
29920   else
29921     return (&dummy > addr) ? 1 : -1;
29922 }
29923
29924 int
29925 main ()
29926 {
29927   return find_stack_direction () < 0;
29928 }
29929 _ACEOF
29930 rm -f conftest$ac_exeext
29931 if { (ac_try="$ac_link"
29932 case "(($ac_try" in
29933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934   *) ac_try_echo=$ac_try;;
29935 esac
29936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937   (eval "$ac_link") 2>&5
29938   ac_status=$?
29939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29941   { (case "(($ac_try" in
29942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29943   *) ac_try_echo=$ac_try;;
29944 esac
29945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29946   (eval "$ac_try") 2>&5
29947   ac_status=$?
29948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949   (exit $ac_status); }; }; then
29950   ac_cv_c_stack_direction=1
29951 else
29952   echo "$as_me: program exited with status $ac_status" >&5
29953 echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29955
29956 ( exit $ac_status )
29957 ac_cv_c_stack_direction=-1
29958 fi
29959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29960 fi
29961
29962
29963 fi
29964 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29965 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
29966
29967 cat >>confdefs.h <<_ACEOF
29968 #define STACK_DIRECTION $ac_cv_c_stack_direction
29969 _ACEOF
29970
29971
29972 fi
29973
29974
29975 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29976 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
29977 if test "${ac_cv_func_rand48+set}" = set; then
29978   echo $ECHO_N "(cached) $ECHO_C" >&6
29979 else
29980   ac_ext=cpp
29981 ac_cpp='$CXXCPP $CPPFLAGS'
29982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29985
29986    cat >conftest.$ac_ext <<_ACEOF
29987 /* confdefs.h.  */
29988 _ACEOF
29989 cat confdefs.h >>conftest.$ac_ext
29990 cat >>conftest.$ac_ext <<_ACEOF
29991 /* end confdefs.h.  */
29992 #include <stdlib.h>
29993 int
29994 main ()
29995 {
29996 srand48(0);lrand48();drand48();
29997   ;
29998   return 0;
29999 }
30000 _ACEOF
30001 rm -f conftest.$ac_objext
30002 if { (ac_try="$ac_compile"
30003 case "(($ac_try" in
30004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30005   *) ac_try_echo=$ac_try;;
30006 esac
30007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30008   (eval "$ac_compile") 2>conftest.er1
30009   ac_status=$?
30010   grep -v '^ *+' conftest.er1 >conftest.err
30011   rm -f conftest.er1
30012   cat conftest.err >&5
30013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014   (exit $ac_status); } && {
30015          test -z "$ac_cxx_werror_flag" ||
30016          test ! -s conftest.err
30017        } && test -s conftest.$ac_objext; then
30018   ac_cv_func_rand48=yes
30019 else
30020   echo "$as_me: failed program was:" >&5
30021 sed 's/^/| /' conftest.$ac_ext >&5
30022
30023         ac_cv_func_rand48=no
30024 fi
30025
30026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30027   ac_ext=c
30028 ac_cpp='$CPP $CPPFLAGS'
30029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30032
30033 fi
30034 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30035 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
30036
30037 if test "$ac_cv_func_rand48" = "yes" ; then
30038
30039 cat >>confdefs.h <<\_ACEOF
30040 #define HAVE_RAND48 1
30041 _ACEOF
30042
30043 fi
30044
30045
30046 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30047 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
30048 if test "${ac_cv_cxx_namespaces+set}" = set; then
30049   echo $ECHO_N "(cached) $ECHO_C" >&6
30050 else
30051   ac_ext=cpp
30052 ac_cpp='$CXXCPP $CPPFLAGS'
30053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30056
30057  cat >conftest.$ac_ext <<_ACEOF
30058 /* confdefs.h.  */
30059 _ACEOF
30060 cat confdefs.h >>conftest.$ac_ext
30061 cat >>conftest.$ac_ext <<_ACEOF
30062 /* end confdefs.h.  */
30063 namespace Outer { namespace Inner { int i = 0; }}
30064 int
30065 main ()
30066 {
30067 using namespace Outer::Inner; return i;
30068   ;
30069   return 0;
30070 }
30071 _ACEOF
30072 rm -f conftest.$ac_objext
30073 if { (ac_try="$ac_compile"
30074 case "(($ac_try" in
30075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30076   *) ac_try_echo=$ac_try;;
30077 esac
30078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30079   (eval "$ac_compile") 2>conftest.er1
30080   ac_status=$?
30081   grep -v '^ *+' conftest.er1 >conftest.err
30082   rm -f conftest.er1
30083   cat conftest.err >&5
30084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085   (exit $ac_status); } && {
30086          test -z "$ac_cxx_werror_flag" ||
30087          test ! -s conftest.err
30088        } && test -s conftest.$ac_objext; then
30089   ac_cv_cxx_namespaces=yes
30090 else
30091   echo "$as_me: failed program was:" >&5
30092 sed 's/^/| /' conftest.$ac_ext >&5
30093
30094         ac_cv_cxx_namespaces=no
30095 fi
30096
30097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30098  ac_ext=c
30099 ac_cpp='$CPP $CPPFLAGS'
30100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30103
30104
30105 fi
30106 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
30107 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
30108 if test "$ac_cv_cxx_namespaces" = yes; then
30109
30110 cat >>confdefs.h <<\_ACEOF
30111 #define HAVE_NAMESPACES
30112 _ACEOF
30113
30114 fi
30115
30116 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
30117 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
30118 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
30119   echo $ECHO_N "(cached) $ECHO_C" >&6
30120 else
30121
30122   ac_ext=cpp
30123 ac_cpp='$CXXCPP $CPPFLAGS'
30124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30127
30128   cat >conftest.$ac_ext <<_ACEOF
30129 /* confdefs.h.  */
30130 _ACEOF
30131 cat confdefs.h >>conftest.$ac_ext
30132 cat >>conftest.$ac_ext <<_ACEOF
30133 /* end confdefs.h.  */
30134 #include <ext/hash_map>
30135 #ifdef HAVE_NAMESPACES
30136 using namespace std;
30137 #endif
30138 int
30139 main ()
30140 {
30141 hash_map<int, int> t;
30142   ;
30143   return 0;
30144 }
30145 _ACEOF
30146 rm -f conftest.$ac_objext
30147 if { (ac_try="$ac_compile"
30148 case "(($ac_try" in
30149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30150   *) ac_try_echo=$ac_try;;
30151 esac
30152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30153   (eval "$ac_compile") 2>conftest.er1
30154   ac_status=$?
30155   grep -v '^ *+' conftest.er1 >conftest.err
30156   rm -f conftest.er1
30157   cat conftest.err >&5
30158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30159   (exit $ac_status); } && {
30160          test -z "$ac_cxx_werror_flag" ||
30161          test ! -s conftest.err
30162        } && test -s conftest.$ac_objext; then
30163   ac_cv_cxx_have_std_ext_hash_map=yes
30164 else
30165   echo "$as_me: failed program was:" >&5
30166 sed 's/^/| /' conftest.$ac_ext >&5
30167
30168         ac_cv_cxx_have_std_ext_hash_map=no
30169 fi
30170
30171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30172   ac_ext=c
30173 ac_cpp='$CPP $CPPFLAGS'
30174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30177
30178 fi
30179 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
30180 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
30181  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
30182  then
30183
30184 cat >>confdefs.h <<\_ACEOF
30185 #define HAVE_STD_EXT_HASH_MAP 1
30186 _ACEOF
30187
30188  else
30189
30190 cat >>confdefs.h <<\_ACEOF
30191 #define HAVE_STD_EXT_HASH_MAP 0
30192 _ACEOF
30193
30194  fi
30195
30196  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
30197 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
30198 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
30199   echo $ECHO_N "(cached) $ECHO_C" >&6
30200 else
30201
30202   ac_ext=cpp
30203 ac_cpp='$CXXCPP $CPPFLAGS'
30204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30207
30208   cat >conftest.$ac_ext <<_ACEOF
30209 /* confdefs.h.  */
30210 _ACEOF
30211 cat confdefs.h >>conftest.$ac_ext
30212 cat >>conftest.$ac_ext <<_ACEOF
30213 /* end confdefs.h.  */
30214 #include <ext/hash_map>
30215 #ifdef HAVE_NAMESPACES
30216 using namespace __gnu_cxx;
30217 #endif
30218 int
30219 main ()
30220 {
30221 hash_map<int,int> t;
30222   ;
30223   return 0;
30224 }
30225 _ACEOF
30226 rm -f conftest.$ac_objext
30227 if { (ac_try="$ac_compile"
30228 case "(($ac_try" in
30229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30230   *) ac_try_echo=$ac_try;;
30231 esac
30232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30233   (eval "$ac_compile") 2>conftest.er1
30234   ac_status=$?
30235   grep -v '^ *+' conftest.er1 >conftest.err
30236   rm -f conftest.er1
30237   cat conftest.err >&5
30238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30239   (exit $ac_status); } && {
30240          test -z "$ac_cxx_werror_flag" ||
30241          test ! -s conftest.err
30242        } && test -s conftest.$ac_objext; then
30243   ac_cv_cxx_have_gnu_ext_hash_map=yes
30244 else
30245   echo "$as_me: failed program was:" >&5
30246 sed 's/^/| /' conftest.$ac_ext >&5
30247
30248         ac_cv_cxx_have_gnu_ext_hash_map=no
30249 fi
30250
30251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30252   ac_ext=c
30253 ac_cpp='$CPP $CPPFLAGS'
30254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30257
30258 fi
30259 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
30260 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
30261  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
30262  then
30263
30264 cat >>confdefs.h <<\_ACEOF
30265 #define HAVE_GNU_EXT_HASH_MAP 1
30266 _ACEOF
30267
30268  else
30269
30270 cat >>confdefs.h <<\_ACEOF
30271 #define HAVE_GNU_EXT_HASH_MAP 0
30272 _ACEOF
30273
30274  fi
30275
30276  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
30277 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
30278 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
30279   echo $ECHO_N "(cached) $ECHO_C" >&6
30280 else
30281
30282   ac_ext=cpp
30283 ac_cpp='$CXXCPP $CPPFLAGS'
30284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30287
30288   cat >conftest.$ac_ext <<_ACEOF
30289 /* confdefs.h.  */
30290 _ACEOF
30291 cat confdefs.h >>conftest.$ac_ext
30292 cat >>conftest.$ac_ext <<_ACEOF
30293 /* end confdefs.h.  */
30294 #include <hash_map>
30295 int
30296 main ()
30297 {
30298 hash_map<int,int> t;
30299   ;
30300   return 0;
30301 }
30302 _ACEOF
30303 rm -f conftest.$ac_objext
30304 if { (ac_try="$ac_compile"
30305 case "(($ac_try" in
30306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30307   *) ac_try_echo=$ac_try;;
30308 esac
30309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30310   (eval "$ac_compile") 2>conftest.er1
30311   ac_status=$?
30312   grep -v '^ *+' conftest.er1 >conftest.err
30313   rm -f conftest.er1
30314   cat conftest.err >&5
30315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30316   (exit $ac_status); } && {
30317          test -z "$ac_cxx_werror_flag" ||
30318          test ! -s conftest.err
30319        } && test -s conftest.$ac_objext; then
30320   ac_cv_cxx_have_global_hash_map=yes
30321 else
30322   echo "$as_me: failed program was:" >&5
30323 sed 's/^/| /' conftest.$ac_ext >&5
30324
30325         ac_cv_cxx_have_global_hash_map=no
30326 fi
30327
30328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30329   ac_ext=c
30330 ac_cpp='$CPP $CPPFLAGS'
30331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30334
30335 fi
30336 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
30337 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
30338  if test "$ac_cv_cxx_have_global_hash_map" = yes
30339  then
30340
30341 cat >>confdefs.h <<\_ACEOF
30342 #define HAVE_GLOBAL_HASH_MAP 1
30343 _ACEOF
30344
30345  else
30346
30347 cat >>confdefs.h <<\_ACEOF
30348 #define HAVE_GLOBAL_HASH_MAP 0
30349 _ACEOF
30350
30351  fi
30352
30353 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
30354 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
30355 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
30356   echo $ECHO_N "(cached) $ECHO_C" >&6
30357 else
30358
30359   ac_ext=cpp
30360 ac_cpp='$CXXCPP $CPPFLAGS'
30361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30364
30365   cat >conftest.$ac_ext <<_ACEOF
30366 /* confdefs.h.  */
30367 _ACEOF
30368 cat confdefs.h >>conftest.$ac_ext
30369 cat >>conftest.$ac_ext <<_ACEOF
30370 /* end confdefs.h.  */
30371 #include <ext/hash_set>
30372 #ifdef HAVE_NAMESPACES
30373 using namespace std;
30374 #endif
30375 int
30376 main ()
30377 {
30378 hash_set<int> t;
30379   ;
30380   return 0;
30381 }
30382 _ACEOF
30383 rm -f conftest.$ac_objext
30384 if { (ac_try="$ac_compile"
30385 case "(($ac_try" in
30386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30387   *) ac_try_echo=$ac_try;;
30388 esac
30389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30390   (eval "$ac_compile") 2>conftest.er1
30391   ac_status=$?
30392   grep -v '^ *+' conftest.er1 >conftest.err
30393   rm -f conftest.er1
30394   cat conftest.err >&5
30395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396   (exit $ac_status); } && {
30397          test -z "$ac_cxx_werror_flag" ||
30398          test ! -s conftest.err
30399        } && test -s conftest.$ac_objext; then
30400   ac_cv_cxx_have_std_ext_hash_set=yes
30401 else
30402   echo "$as_me: failed program was:" >&5
30403 sed 's/^/| /' conftest.$ac_ext >&5
30404
30405         ac_cv_cxx_have_std_ext_hash_set=no
30406 fi
30407
30408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30409   ac_ext=c
30410 ac_cpp='$CPP $CPPFLAGS'
30411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30414
30415 fi
30416 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
30417 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
30418  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
30419  then
30420
30421 cat >>confdefs.h <<\_ACEOF
30422 #define HAVE_STD_EXT_HASH_SET 1
30423 _ACEOF
30424
30425  else
30426
30427 cat >>confdefs.h <<\_ACEOF
30428 #define HAVE_STD_EXT_HASH_SET 0
30429 _ACEOF
30430
30431  fi
30432
30433  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
30434 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
30435 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
30436   echo $ECHO_N "(cached) $ECHO_C" >&6
30437 else
30438
30439   ac_ext=cpp
30440 ac_cpp='$CXXCPP $CPPFLAGS'
30441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30444
30445   cat >conftest.$ac_ext <<_ACEOF
30446 /* confdefs.h.  */
30447 _ACEOF
30448 cat confdefs.h >>conftest.$ac_ext
30449 cat >>conftest.$ac_ext <<_ACEOF
30450 /* end confdefs.h.  */
30451 #include <ext/hash_set>
30452 #ifdef HAVE_NAMESPACES
30453 using namespace __gnu_cxx;
30454 #endif
30455 int
30456 main ()
30457 {
30458 hash_set<int> t;
30459   ;
30460   return 0;
30461 }
30462 _ACEOF
30463 rm -f conftest.$ac_objext
30464 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30471   ac_status=$?
30472   grep -v '^ *+' conftest.er1 >conftest.err
30473   rm -f conftest.er1
30474   cat conftest.err >&5
30475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476   (exit $ac_status); } && {
30477          test -z "$ac_cxx_werror_flag" ||
30478          test ! -s conftest.err
30479        } && test -s conftest.$ac_objext; then
30480   ac_cv_cxx_have_gnu_ext_hash_set=yes
30481 else
30482   echo "$as_me: failed program was:" >&5
30483 sed 's/^/| /' conftest.$ac_ext >&5
30484
30485         ac_cv_cxx_have_gnu_ext_hash_set=no
30486 fi
30487
30488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30489   ac_ext=c
30490 ac_cpp='$CPP $CPPFLAGS'
30491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30494
30495 fi
30496 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
30497 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
30498  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
30499  then
30500
30501 cat >>confdefs.h <<\_ACEOF
30502 #define HAVE_GNU_EXT_HASH_SET 1
30503 _ACEOF
30504
30505  else
30506
30507 cat >>confdefs.h <<\_ACEOF
30508 #define HAVE_GNU_EXT_HASH_SET 0
30509 _ACEOF
30510
30511  fi
30512
30513  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
30514 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
30515 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
30516   echo $ECHO_N "(cached) $ECHO_C" >&6
30517 else
30518
30519   ac_ext=cpp
30520 ac_cpp='$CXXCPP $CPPFLAGS'
30521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30524
30525   cat >conftest.$ac_ext <<_ACEOF
30526 /* confdefs.h.  */
30527 _ACEOF
30528 cat confdefs.h >>conftest.$ac_ext
30529 cat >>conftest.$ac_ext <<_ACEOF
30530 /* end confdefs.h.  */
30531 #include <hash_set>
30532 int
30533 main ()
30534 {
30535 hash_set<int> t; return 0;
30536   ;
30537   return 0;
30538 }
30539 _ACEOF
30540 rm -f conftest.$ac_objext
30541 if { (ac_try="$ac_compile"
30542 case "(($ac_try" in
30543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30544   *) ac_try_echo=$ac_try;;
30545 esac
30546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30547   (eval "$ac_compile") 2>conftest.er1
30548   ac_status=$?
30549   grep -v '^ *+' conftest.er1 >conftest.err
30550   rm -f conftest.er1
30551   cat conftest.err >&5
30552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30553   (exit $ac_status); } && {
30554          test -z "$ac_cxx_werror_flag" ||
30555          test ! -s conftest.err
30556        } && test -s conftest.$ac_objext; then
30557   ac_cv_cxx_have_global_hash_set=yes
30558 else
30559   echo "$as_me: failed program was:" >&5
30560 sed 's/^/| /' conftest.$ac_ext >&5
30561
30562         ac_cv_cxx_have_global_hash_set=no
30563 fi
30564
30565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30566   ac_ext=c
30567 ac_cpp='$CPP $CPPFLAGS'
30568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30571
30572 fi
30573 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
30574 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
30575  if test "$ac_cv_cxx_have_global_hash_set" = yes
30576  then
30577
30578 cat >>confdefs.h <<\_ACEOF
30579 #define HAVE_GLOBAL_HASH_SET 1
30580 _ACEOF
30581
30582  else
30583
30584 cat >>confdefs.h <<\_ACEOF
30585 #define HAVE_GLOBAL_HASH_SET 0
30586 _ACEOF
30587
30588  fi
30589
30590 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30591 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
30592 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30593   echo $ECHO_N "(cached) $ECHO_C" >&6
30594 else
30595
30596   ac_ext=cpp
30597 ac_cpp='$CXXCPP $CPPFLAGS'
30598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30601
30602   cat >conftest.$ac_ext <<_ACEOF
30603 /* confdefs.h.  */
30604 _ACEOF
30605 cat confdefs.h >>conftest.$ac_ext
30606 cat >>conftest.$ac_ext <<_ACEOF
30607 /* end confdefs.h.  */
30608 #include <iterator>
30609 #ifdef HAVE_NAMESPACES
30610 using namespace std;
30611 #endif
30612 int
30613 main ()
30614 {
30615 iterator<int,int,int> t; return 0;
30616   ;
30617   return 0;
30618 }
30619 _ACEOF
30620 rm -f conftest.$ac_objext
30621 if { (ac_try="$ac_compile"
30622 case "(($ac_try" in
30623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30624   *) ac_try_echo=$ac_try;;
30625 esac
30626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30627   (eval "$ac_compile") 2>conftest.er1
30628   ac_status=$?
30629   grep -v '^ *+' conftest.er1 >conftest.err
30630   rm -f conftest.er1
30631   cat conftest.err >&5
30632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30633   (exit $ac_status); } && {
30634          test -z "$ac_cxx_werror_flag" ||
30635          test ! -s conftest.err
30636        } && test -s conftest.$ac_objext; then
30637   ac_cv_cxx_have_std_iterator=yes
30638 else
30639   echo "$as_me: failed program was:" >&5
30640 sed 's/^/| /' conftest.$ac_ext >&5
30641
30642         ac_cv_cxx_have_std_iterator=no
30643 fi
30644
30645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30646   ac_ext=c
30647 ac_cpp='$CPP $CPPFLAGS'
30648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30651
30652
30653 fi
30654 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
30655 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
30656 if test "$ac_cv_cxx_have_std_iterator" = yes
30657 then
30658
30659 cat >>confdefs.h <<\_ACEOF
30660 #define HAVE_STD_ITERATOR 1
30661 _ACEOF
30662
30663 else
30664
30665 cat >>confdefs.h <<\_ACEOF
30666 #define HAVE_STD_ITERATOR 0
30667 _ACEOF
30668
30669 fi
30670
30671 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
30672 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
30673 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
30674   echo $ECHO_N "(cached) $ECHO_C" >&6
30675 else
30676
30677   ac_ext=cpp
30678 ac_cpp='$CXXCPP $CPPFLAGS'
30679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30682
30683   cat >conftest.$ac_ext <<_ACEOF
30684 /* confdefs.h.  */
30685 _ACEOF
30686 cat confdefs.h >>conftest.$ac_ext
30687 cat >>conftest.$ac_ext <<_ACEOF
30688 /* end confdefs.h.  */
30689 #include <iterator>
30690 #ifdef HAVE_NAMESPACES
30691 using namespace std;
30692 #endif
30693 int
30694 main ()
30695 {
30696 bidirectional_iterator<int,int> t; return 0;
30697   ;
30698   return 0;
30699 }
30700 _ACEOF
30701 rm -f conftest.$ac_objext
30702 if { (ac_try="$ac_compile"
30703 case "(($ac_try" in
30704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30705   *) ac_try_echo=$ac_try;;
30706 esac
30707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30708   (eval "$ac_compile") 2>conftest.er1
30709   ac_status=$?
30710   grep -v '^ *+' conftest.er1 >conftest.err
30711   rm -f conftest.er1
30712   cat conftest.err >&5
30713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30714   (exit $ac_status); } && {
30715          test -z "$ac_cxx_werror_flag" ||
30716          test ! -s conftest.err
30717        } && test -s conftest.$ac_objext; then
30718   ac_cv_cxx_have_bi_iterator=yes
30719 else
30720   echo "$as_me: failed program was:" >&5
30721 sed 's/^/| /' conftest.$ac_ext >&5
30722
30723         ac_cv_cxx_have_bi_iterator=no
30724 fi
30725
30726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30727   ac_ext=c
30728 ac_cpp='$CPP $CPPFLAGS'
30729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30732
30733
30734 fi
30735 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30736 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
30737 if test "$ac_cv_cxx_have_bi_iterator" = yes
30738 then
30739
30740 cat >>confdefs.h <<\_ACEOF
30741 #define HAVE_BI_ITERATOR 1
30742 _ACEOF
30743
30744 else
30745
30746 cat >>confdefs.h <<\_ACEOF
30747 #define HAVE_BI_ITERATOR 0
30748 _ACEOF
30749
30750 fi
30751
30752 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30753 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
30754 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30755   echo $ECHO_N "(cached) $ECHO_C" >&6
30756 else
30757
30758   ac_ext=cpp
30759 ac_cpp='$CXXCPP $CPPFLAGS'
30760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30763
30764   cat >conftest.$ac_ext <<_ACEOF
30765 /* confdefs.h.  */
30766 _ACEOF
30767 cat confdefs.h >>conftest.$ac_ext
30768 cat >>conftest.$ac_ext <<_ACEOF
30769 /* end confdefs.h.  */
30770 #include <iterator>
30771 #ifdef HAVE_NAMESPACES
30772 using namespace std;
30773 #endif
30774 int
30775 main ()
30776 {
30777 forward_iterator<int,int> t; return 0;
30778   ;
30779   return 0;
30780 }
30781 _ACEOF
30782 rm -f conftest.$ac_objext
30783 if { (ac_try="$ac_compile"
30784 case "(($ac_try" in
30785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30786   *) ac_try_echo=$ac_try;;
30787 esac
30788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30789   (eval "$ac_compile") 2>conftest.er1
30790   ac_status=$?
30791   grep -v '^ *+' conftest.er1 >conftest.err
30792   rm -f conftest.er1
30793   cat conftest.err >&5
30794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795   (exit $ac_status); } && {
30796          test -z "$ac_cxx_werror_flag" ||
30797          test ! -s conftest.err
30798        } && test -s conftest.$ac_objext; then
30799   ac_cv_cxx_have_fwd_iterator=yes
30800 else
30801   echo "$as_me: failed program was:" >&5
30802 sed 's/^/| /' conftest.$ac_ext >&5
30803
30804         ac_cv_cxx_have_fwd_iterator=no
30805 fi
30806
30807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30808   ac_ext=c
30809 ac_cpp='$CPP $CPPFLAGS'
30810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30813
30814
30815 fi
30816 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30817 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
30818 if test "$ac_cv_cxx_have_fwd_iterator" = yes
30819 then
30820
30821 cat >>confdefs.h <<\_ACEOF
30822 #define HAVE_FWD_ITERATOR 1
30823 _ACEOF
30824
30825 else
30826
30827 cat >>confdefs.h <<\_ACEOF
30828 #define HAVE_FWD_ITERATOR 0
30829 _ACEOF
30830
30831 fi
30832
30833
30834 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30835 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
30836 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30837   echo $ECHO_N "(cached) $ECHO_C" >&6
30838 else
30839   ac_ext=cpp
30840 ac_cpp='$CXXCPP $CPPFLAGS'
30841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30844
30845    cat >conftest.$ac_ext <<_ACEOF
30846 /* confdefs.h.  */
30847 _ACEOF
30848 cat confdefs.h >>conftest.$ac_ext
30849 cat >>conftest.$ac_ext <<_ACEOF
30850 /* end confdefs.h.  */
30851 #include <math.h>
30852 int
30853 main ()
30854 {
30855 float f; isnan(f);
30856   ;
30857   return 0;
30858 }
30859 _ACEOF
30860 rm -f conftest.$ac_objext
30861 if { (ac_try="$ac_compile"
30862 case "(($ac_try" in
30863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30864   *) ac_try_echo=$ac_try;;
30865 esac
30866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30867   (eval "$ac_compile") 2>conftest.er1
30868   ac_status=$?
30869   grep -v '^ *+' conftest.er1 >conftest.err
30870   rm -f conftest.er1
30871   cat conftest.err >&5
30872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873   (exit $ac_status); } && {
30874          test -z "$ac_cxx_werror_flag" ||
30875          test ! -s conftest.err
30876        } && test -s conftest.$ac_objext; then
30877   ac_cv_func_isnan_in_math_h=yes
30878 else
30879   echo "$as_me: failed program was:" >&5
30880 sed 's/^/| /' conftest.$ac_ext >&5
30881
30882         ac_cv_func_isnan_in_math_h=no
30883 fi
30884
30885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30886   ac_ext=c
30887 ac_cpp='$CPP $CPPFLAGS'
30888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30891
30892 fi
30893 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30894 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
30895
30896
30897 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
30898
30899 cat >>confdefs.h <<\_ACEOF
30900 #define HAVE_ISNAN_IN_MATH_H 1
30901 _ACEOF
30902
30903 fi
30904
30905 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30906 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
30907 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30908   echo $ECHO_N "(cached) $ECHO_C" >&6
30909 else
30910   ac_ext=cpp
30911 ac_cpp='$CXXCPP $CPPFLAGS'
30912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30915
30916    cat >conftest.$ac_ext <<_ACEOF
30917 /* confdefs.h.  */
30918 _ACEOF
30919 cat confdefs.h >>conftest.$ac_ext
30920 cat >>conftest.$ac_ext <<_ACEOF
30921 /* end confdefs.h.  */
30922 #include <cmath>
30923 int
30924 main ()
30925 {
30926 float f; isnan(f);
30927   ;
30928   return 0;
30929 }
30930 _ACEOF
30931 rm -f conftest.$ac_objext
30932 if { (ac_try="$ac_compile"
30933 case "(($ac_try" in
30934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30935   *) ac_try_echo=$ac_try;;
30936 esac
30937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30938   (eval "$ac_compile") 2>conftest.er1
30939   ac_status=$?
30940   grep -v '^ *+' conftest.er1 >conftest.err
30941   rm -f conftest.er1
30942   cat conftest.err >&5
30943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944   (exit $ac_status); } && {
30945          test -z "$ac_cxx_werror_flag" ||
30946          test ! -s conftest.err
30947        } && test -s conftest.$ac_objext; then
30948   ac_cv_func_isnan_in_cmath=yes
30949 else
30950   echo "$as_me: failed program was:" >&5
30951 sed 's/^/| /' conftest.$ac_ext >&5
30952
30953         ac_cv_func_isnan_in_cmath=no
30954 fi
30955
30956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30957   ac_ext=c
30958 ac_cpp='$CPP $CPPFLAGS'
30959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30962
30963 fi
30964 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30965 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
30966
30967 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30968
30969 cat >>confdefs.h <<\_ACEOF
30970 #define HAVE_ISNAN_IN_CMATH 1
30971 _ACEOF
30972
30973 fi
30974
30975 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30976 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
30977 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30978   echo $ECHO_N "(cached) $ECHO_C" >&6
30979 else
30980   ac_ext=cpp
30981 ac_cpp='$CXXCPP $CPPFLAGS'
30982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30985
30986    cat >conftest.$ac_ext <<_ACEOF
30987 /* confdefs.h.  */
30988 _ACEOF
30989 cat confdefs.h >>conftest.$ac_ext
30990 cat >>conftest.$ac_ext <<_ACEOF
30991 /* end confdefs.h.  */
30992 #include <cmath>
30993 int
30994 main ()
30995 {
30996 float f; std::isnan(f);
30997   ;
30998   return 0;
30999 }
31000 _ACEOF
31001 rm -f conftest.$ac_objext
31002 if { (ac_try="$ac_compile"
31003 case "(($ac_try" in
31004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31005   *) ac_try_echo=$ac_try;;
31006 esac
31007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31008   (eval "$ac_compile") 2>conftest.er1
31009   ac_status=$?
31010   grep -v '^ *+' conftest.er1 >conftest.err
31011   rm -f conftest.er1
31012   cat conftest.err >&5
31013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31014   (exit $ac_status); } && {
31015          test -z "$ac_cxx_werror_flag" ||
31016          test ! -s conftest.err
31017        } && test -s conftest.$ac_objext; then
31018   ac_cv_func_std_isnan_in_cmath=yes
31019 else
31020   echo "$as_me: failed program was:" >&5
31021 sed 's/^/| /' conftest.$ac_ext >&5
31022
31023         ac_cv_func_std_isnan_in_cmath=no
31024 fi
31025
31026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31027   ac_ext=c
31028 ac_cpp='$CPP $CPPFLAGS'
31029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31032
31033 fi
31034 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
31035 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
31036
31037 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
31038
31039 cat >>confdefs.h <<\_ACEOF
31040 #define HAVE_STD_ISNAN_IN_CMATH 1
31041 _ACEOF
31042
31043 fi
31044
31045
31046 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
31047 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
31048 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
31049   echo $ECHO_N "(cached) $ECHO_C" >&6
31050 else
31051   ac_ext=cpp
31052 ac_cpp='$CXXCPP $CPPFLAGS'
31053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31056
31057    cat >conftest.$ac_ext <<_ACEOF
31058 /* confdefs.h.  */
31059 _ACEOF
31060 cat confdefs.h >>conftest.$ac_ext
31061 cat >>conftest.$ac_ext <<_ACEOF
31062 /* end confdefs.h.  */
31063 #include <math.h>
31064 int
31065 main ()
31066 {
31067 float f; isinf(f);
31068   ;
31069   return 0;
31070 }
31071 _ACEOF
31072 rm -f conftest.$ac_objext
31073 if { (ac_try="$ac_compile"
31074 case "(($ac_try" in
31075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076   *) ac_try_echo=$ac_try;;
31077 esac
31078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079   (eval "$ac_compile") 2>conftest.er1
31080   ac_status=$?
31081   grep -v '^ *+' conftest.er1 >conftest.err
31082   rm -f conftest.er1
31083   cat conftest.err >&5
31084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085   (exit $ac_status); } && {
31086          test -z "$ac_cxx_werror_flag" ||
31087          test ! -s conftest.err
31088        } && test -s conftest.$ac_objext; then
31089   ac_cv_func_isinf_in_math_h=yes
31090 else
31091   echo "$as_me: failed program was:" >&5
31092 sed 's/^/| /' conftest.$ac_ext >&5
31093
31094         ac_cv_func_isinf_in_math_h=no
31095 fi
31096
31097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31098   ac_ext=c
31099 ac_cpp='$CPP $CPPFLAGS'
31100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31103
31104 fi
31105 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
31106 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
31107
31108 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
31109
31110 cat >>confdefs.h <<\_ACEOF
31111 #define HAVE_ISINF_IN_MATH_H 1
31112 _ACEOF
31113
31114 fi
31115
31116 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
31117 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
31118 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
31119   echo $ECHO_N "(cached) $ECHO_C" >&6
31120 else
31121   ac_ext=cpp
31122 ac_cpp='$CXXCPP $CPPFLAGS'
31123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31126
31127    cat >conftest.$ac_ext <<_ACEOF
31128 /* confdefs.h.  */
31129 _ACEOF
31130 cat confdefs.h >>conftest.$ac_ext
31131 cat >>conftest.$ac_ext <<_ACEOF
31132 /* end confdefs.h.  */
31133 #include <cmath>
31134 int
31135 main ()
31136 {
31137 float f; isinf(f);
31138   ;
31139   return 0;
31140 }
31141 _ACEOF
31142 rm -f conftest.$ac_objext
31143 if { (ac_try="$ac_compile"
31144 case "(($ac_try" in
31145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31146   *) ac_try_echo=$ac_try;;
31147 esac
31148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31149   (eval "$ac_compile") 2>conftest.er1
31150   ac_status=$?
31151   grep -v '^ *+' conftest.er1 >conftest.err
31152   rm -f conftest.er1
31153   cat conftest.err >&5
31154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155   (exit $ac_status); } && {
31156          test -z "$ac_cxx_werror_flag" ||
31157          test ! -s conftest.err
31158        } && test -s conftest.$ac_objext; then
31159   ac_cv_func_isinf_in_cmath=yes
31160 else
31161   echo "$as_me: failed program was:" >&5
31162 sed 's/^/| /' conftest.$ac_ext >&5
31163
31164         ac_cv_func_isinf_in_cmath=no
31165 fi
31166
31167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31168   ac_ext=c
31169 ac_cpp='$CPP $CPPFLAGS'
31170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31173
31174 fi
31175 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
31176 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
31177
31178 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
31179
31180 cat >>confdefs.h <<\_ACEOF
31181 #define HAVE_ISINF_IN_CMATH 1
31182 _ACEOF
31183
31184 fi
31185
31186 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
31187 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
31188 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
31189   echo $ECHO_N "(cached) $ECHO_C" >&6
31190 else
31191   ac_ext=cpp
31192 ac_cpp='$CXXCPP $CPPFLAGS'
31193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31196
31197    cat >conftest.$ac_ext <<_ACEOF
31198 /* confdefs.h.  */
31199 _ACEOF
31200 cat confdefs.h >>conftest.$ac_ext
31201 cat >>conftest.$ac_ext <<_ACEOF
31202 /* end confdefs.h.  */
31203 #include <cmath>
31204 int
31205 main ()
31206 {
31207 float f; std::isinf(f)}
31208   ;
31209   return 0;
31210 }
31211 _ACEOF
31212 rm -f conftest.$ac_objext
31213 if { (ac_try="$ac_compile"
31214 case "(($ac_try" in
31215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31216   *) ac_try_echo=$ac_try;;
31217 esac
31218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31219   (eval "$ac_compile") 2>conftest.er1
31220   ac_status=$?
31221   grep -v '^ *+' conftest.er1 >conftest.err
31222   rm -f conftest.er1
31223   cat conftest.err >&5
31224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225   (exit $ac_status); } && {
31226          test -z "$ac_cxx_werror_flag" ||
31227          test ! -s conftest.err
31228        } && test -s conftest.$ac_objext; then
31229   ac_cv_func_std_isinf_in_cmath=yes
31230 else
31231   echo "$as_me: failed program was:" >&5
31232 sed 's/^/| /' conftest.$ac_ext >&5
31233
31234         ac_cv_func_std_isinf_in_cmath=no
31235 fi
31236
31237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31238   ac_ext=c
31239 ac_cpp='$CPP $CPPFLAGS'
31240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31243
31244 fi
31245 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
31246 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
31247
31248 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
31249
31250 cat >>confdefs.h <<\_ACEOF
31251 #define HAVE_STD_ISINF_IN_CMATH 1
31252 _ACEOF
31253
31254 fi
31255
31256 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
31257 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
31258 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
31259   echo $ECHO_N "(cached) $ECHO_C" >&6
31260 else
31261   ac_ext=cpp
31262 ac_cpp='$CXXCPP $CPPFLAGS'
31263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31266
31267    cat >conftest.$ac_ext <<_ACEOF
31268 /* confdefs.h.  */
31269 _ACEOF
31270 cat confdefs.h >>conftest.$ac_ext
31271 cat >>conftest.$ac_ext <<_ACEOF
31272 /* end confdefs.h.  */
31273 #include <ieeefp.h>
31274 int
31275 main ()
31276 {
31277 float f; finite(f);
31278   ;
31279   return 0;
31280 }
31281 _ACEOF
31282 rm -f conftest.$ac_objext
31283 if { (ac_try="$ac_compile"
31284 case "(($ac_try" in
31285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31286   *) ac_try_echo=$ac_try;;
31287 esac
31288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31289   (eval "$ac_compile") 2>conftest.er1
31290   ac_status=$?
31291   grep -v '^ *+' conftest.er1 >conftest.err
31292   rm -f conftest.er1
31293   cat conftest.err >&5
31294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295   (exit $ac_status); } && {
31296          test -z "$ac_cxx_werror_flag" ||
31297          test ! -s conftest.err
31298        } && test -s conftest.$ac_objext; then
31299   ac_cv_func_finite_in_ieeefp_h=yes
31300 else
31301   echo "$as_me: failed program was:" >&5
31302 sed 's/^/| /' conftest.$ac_ext >&5
31303
31304         ac_cv_func_finite_in_ieeefp_h=no
31305 fi
31306
31307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31308   ac_ext=c
31309 ac_cpp='$CPP $CPPFLAGS'
31310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31313
31314 fi
31315 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
31316 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
31317
31318 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
31319
31320 cat >>confdefs.h <<\_ACEOF
31321 #define HAVE_FINITE_IN_IEEEFP_H 1
31322 _ACEOF
31323
31324 fi
31325
31326
31327
31328 if test "$llvm_cv_platform_type" = "Unix" ; then
31329
31330
31331 for ac_header in stdlib.h unistd.h
31332 do
31333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31335   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31338   echo $ECHO_N "(cached) $ECHO_C" >&6
31339 fi
31340 ac_res=`eval echo '${'$as_ac_Header'}'`
31341                { echo "$as_me:$LINENO: result: $ac_res" >&5
31342 echo "${ECHO_T}$ac_res" >&6; }
31343 else
31344   # Is the header compilable?
31345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31347 cat >conftest.$ac_ext <<_ACEOF
31348 /* confdefs.h.  */
31349 _ACEOF
31350 cat confdefs.h >>conftest.$ac_ext
31351 cat >>conftest.$ac_ext <<_ACEOF
31352 /* end confdefs.h.  */
31353 $ac_includes_default
31354 #include <$ac_header>
31355 _ACEOF
31356 rm -f conftest.$ac_objext
31357 if { (ac_try="$ac_compile"
31358 case "(($ac_try" in
31359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31360   *) ac_try_echo=$ac_try;;
31361 esac
31362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31363   (eval "$ac_compile") 2>conftest.er1
31364   ac_status=$?
31365   grep -v '^ *+' conftest.er1 >conftest.err
31366   rm -f conftest.er1
31367   cat conftest.err >&5
31368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31369   (exit $ac_status); } && {
31370          test -z "$ac_c_werror_flag" ||
31371          test ! -s conftest.err
31372        } && test -s conftest.$ac_objext; then
31373   ac_header_compiler=yes
31374 else
31375   echo "$as_me: failed program was:" >&5
31376 sed 's/^/| /' conftest.$ac_ext >&5
31377
31378         ac_header_compiler=no
31379 fi
31380
31381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31382 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31383 echo "${ECHO_T}$ac_header_compiler" >&6; }
31384
31385 # Is the header present?
31386 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31388 cat >conftest.$ac_ext <<_ACEOF
31389 /* confdefs.h.  */
31390 _ACEOF
31391 cat confdefs.h >>conftest.$ac_ext
31392 cat >>conftest.$ac_ext <<_ACEOF
31393 /* end confdefs.h.  */
31394 #include <$ac_header>
31395 _ACEOF
31396 if { (ac_try="$ac_cpp conftest.$ac_ext"
31397 case "(($ac_try" in
31398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31399   *) ac_try_echo=$ac_try;;
31400 esac
31401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31402   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31403   ac_status=$?
31404   grep -v '^ *+' conftest.er1 >conftest.err
31405   rm -f conftest.er1
31406   cat conftest.err >&5
31407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408   (exit $ac_status); } >/dev/null && {
31409          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31410          test ! -s conftest.err
31411        }; then
31412   ac_header_preproc=yes
31413 else
31414   echo "$as_me: failed program was:" >&5
31415 sed 's/^/| /' conftest.$ac_ext >&5
31416
31417   ac_header_preproc=no
31418 fi
31419
31420 rm -f conftest.err conftest.$ac_ext
31421 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31422 echo "${ECHO_T}$ac_header_preproc" >&6; }
31423
31424 # So?  What about this header?
31425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31426   yes:no: )
31427     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31431     ac_header_preproc=yes
31432     ;;
31433   no:yes:* )
31434     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31436     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31437 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31438     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31440     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31441 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31444     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31446     ( cat <<\_ASBOX
31447 ## ----------------------------------- ##
31448 ## Report this to llvmbugs@cs.uiuc.edu ##
31449 ## ----------------------------------- ##
31450 _ASBOX
31451      ) | sed "s/^/$as_me: WARNING:     /" >&2
31452     ;;
31453 esac
31454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31457   echo $ECHO_N "(cached) $ECHO_C" >&6
31458 else
31459   eval "$as_ac_Header=\$ac_header_preproc"
31460 fi
31461 ac_res=`eval echo '${'$as_ac_Header'}'`
31462                { echo "$as_me:$LINENO: result: $ac_res" >&5
31463 echo "${ECHO_T}$ac_res" >&6; }
31464
31465 fi
31466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31467   cat >>confdefs.h <<_ACEOF
31468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31469 _ACEOF
31470
31471 fi
31472
31473 done
31474
31475
31476 for ac_func in getpagesize
31477 do
31478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31482   echo $ECHO_N "(cached) $ECHO_C" >&6
31483 else
31484   cat >conftest.$ac_ext <<_ACEOF
31485 /* confdefs.h.  */
31486 _ACEOF
31487 cat confdefs.h >>conftest.$ac_ext
31488 cat >>conftest.$ac_ext <<_ACEOF
31489 /* end confdefs.h.  */
31490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31491    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31492 #define $ac_func innocuous_$ac_func
31493
31494 /* System header to define __stub macros and hopefully few prototypes,
31495     which can conflict with char $ac_func (); below.
31496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31497     <limits.h> exists even on freestanding compilers.  */
31498
31499 #ifdef __STDC__
31500 # include <limits.h>
31501 #else
31502 # include <assert.h>
31503 #endif
31504
31505 #undef $ac_func
31506
31507 /* Override any GCC internal prototype to avoid an error.
31508    Use char because int might match the return type of a GCC
31509    builtin and then its argument prototype would still apply.  */
31510 #ifdef __cplusplus
31511 extern "C"
31512 #endif
31513 char $ac_func ();
31514 /* The GNU C library defines this for functions which it implements
31515     to always fail with ENOSYS.  Some functions are actually named
31516     something starting with __ and the normal name is an alias.  */
31517 #if defined __stub_$ac_func || defined __stub___$ac_func
31518 choke me
31519 #endif
31520
31521 int
31522 main ()
31523 {
31524 return $ac_func ();
31525   ;
31526   return 0;
31527 }
31528 _ACEOF
31529 rm -f conftest.$ac_objext conftest$ac_exeext
31530 if { (ac_try="$ac_link"
31531 case "(($ac_try" in
31532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533   *) ac_try_echo=$ac_try;;
31534 esac
31535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536   (eval "$ac_link") 2>conftest.er1
31537   ac_status=$?
31538   grep -v '^ *+' conftest.er1 >conftest.err
31539   rm -f conftest.er1
31540   cat conftest.err >&5
31541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31542   (exit $ac_status); } && {
31543          test -z "$ac_c_werror_flag" ||
31544          test ! -s conftest.err
31545        } && test -s conftest$ac_exeext &&
31546        $as_test_x conftest$ac_exeext; then
31547   eval "$as_ac_var=yes"
31548 else
31549   echo "$as_me: failed program was:" >&5
31550 sed 's/^/| /' conftest.$ac_ext >&5
31551
31552         eval "$as_ac_var=no"
31553 fi
31554
31555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31556       conftest$ac_exeext conftest.$ac_ext
31557 fi
31558 ac_res=`eval echo '${'$as_ac_var'}'`
31559                { echo "$as_me:$LINENO: result: $ac_res" >&5
31560 echo "${ECHO_T}$ac_res" >&6; }
31561 if test `eval echo '${'$as_ac_var'}'` = yes; then
31562   cat >>confdefs.h <<_ACEOF
31563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31564 _ACEOF
31565
31566 fi
31567 done
31568
31569 { echo "$as_me:$LINENO: checking for working mmap" >&5
31570 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
31571 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31572   echo $ECHO_N "(cached) $ECHO_C" >&6
31573 else
31574   if test "$cross_compiling" = yes; then
31575   ac_cv_func_mmap_fixed_mapped=no
31576 else
31577   cat >conftest.$ac_ext <<_ACEOF
31578 /* confdefs.h.  */
31579 _ACEOF
31580 cat confdefs.h >>conftest.$ac_ext
31581 cat >>conftest.$ac_ext <<_ACEOF
31582 /* end confdefs.h.  */
31583 $ac_includes_default
31584 /* malloc might have been renamed as rpl_malloc. */
31585 #undef malloc
31586
31587 /* Thanks to Mike Haertel and Jim Avera for this test.
31588    Here is a matrix of mmap possibilities:
31589         mmap private not fixed
31590         mmap private fixed at somewhere currently unmapped
31591         mmap private fixed at somewhere already mapped
31592         mmap shared not fixed
31593         mmap shared fixed at somewhere currently unmapped
31594         mmap shared fixed at somewhere already mapped
31595    For private mappings, we should verify that changes cannot be read()
31596    back from the file, nor mmap's back from the file at a different
31597    address.  (There have been systems where private was not correctly
31598    implemented like the infamous i386 svr4.0, and systems where the
31599    VM page cache was not coherent with the file system buffer cache
31600    like early versions of FreeBSD and possibly contemporary NetBSD.)
31601    For shared mappings, we should conversely verify that changes get
31602    propagated back to all the places they're supposed to be.
31603
31604    Grep wants private fixed already mapped.
31605    The main things grep needs to know about mmap are:
31606    * does it exist and is it safe to write into the mmap'd area
31607    * how to use it (BSD variants)  */
31608
31609 #include <fcntl.h>
31610 #include <sys/mman.h>
31611
31612 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
31613 char *malloc ();
31614 #endif
31615
31616 /* This mess was copied from the GNU getpagesize.h.  */
31617 #ifndef HAVE_GETPAGESIZE
31618 /* Assume that all systems that can run configure have sys/param.h.  */
31619 # ifndef HAVE_SYS_PARAM_H
31620 #  define HAVE_SYS_PARAM_H 1
31621 # endif
31622
31623 # ifdef _SC_PAGESIZE
31624 #  define getpagesize() sysconf(_SC_PAGESIZE)
31625 # else /* no _SC_PAGESIZE */
31626 #  ifdef HAVE_SYS_PARAM_H
31627 #   include <sys/param.h>
31628 #   ifdef EXEC_PAGESIZE
31629 #    define getpagesize() EXEC_PAGESIZE
31630 #   else /* no EXEC_PAGESIZE */
31631 #    ifdef NBPG
31632 #     define getpagesize() NBPG * CLSIZE
31633 #     ifndef CLSIZE
31634 #      define CLSIZE 1
31635 #     endif /* no CLSIZE */
31636 #    else /* no NBPG */
31637 #     ifdef NBPC
31638 #      define getpagesize() NBPC
31639 #     else /* no NBPC */
31640 #      ifdef PAGESIZE
31641 #       define getpagesize() PAGESIZE
31642 #      endif /* PAGESIZE */
31643 #     endif /* no NBPC */
31644 #    endif /* no NBPG */
31645 #   endif /* no EXEC_PAGESIZE */
31646 #  else /* no HAVE_SYS_PARAM_H */
31647 #   define getpagesize() 8192   /* punt totally */
31648 #  endif /* no HAVE_SYS_PARAM_H */
31649 # endif /* no _SC_PAGESIZE */
31650
31651 #endif /* no HAVE_GETPAGESIZE */
31652
31653 int
31654 main ()
31655 {
31656   char *data, *data2, *data3;
31657   int i, pagesize;
31658   int fd;
31659
31660   pagesize = getpagesize ();
31661
31662   /* First, make a file with some known garbage in it. */
31663   data = (char *) malloc (pagesize);
31664   if (!data)
31665     return 1;
31666   for (i = 0; i < pagesize; ++i)
31667     *(data + i) = rand ();
31668   umask (0);
31669   fd = creat ("conftest.mmap", 0600);
31670   if (fd < 0)
31671     return 1;
31672   if (write (fd, data, pagesize) != pagesize)
31673     return 1;
31674   close (fd);
31675
31676   /* Next, try to mmap the file at a fixed address which already has
31677      something else allocated at it.  If we can, also make sure that
31678      we see the same garbage.  */
31679   fd = open ("conftest.mmap", O_RDWR);
31680   if (fd < 0)
31681     return 1;
31682   data2 = (char *) malloc (2 * pagesize);
31683   if (!data2)
31684     return 1;
31685   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
31686   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
31687                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
31688     return 1;
31689   for (i = 0; i < pagesize; ++i)
31690     if (*(data + i) != *(data2 + i))
31691       return 1;
31692
31693   /* Finally, make sure that changes to the mapped area do not
31694      percolate back to the file as seen by read().  (This is a bug on
31695      some variants of i386 svr4.0.)  */
31696   for (i = 0; i < pagesize; ++i)
31697     *(data2 + i) = *(data2 + i) + 1;
31698   data3 = (char *) malloc (pagesize);
31699   if (!data3)
31700     return 1;
31701   if (read (fd, data3, pagesize) != pagesize)
31702     return 1;
31703   for (i = 0; i < pagesize; ++i)
31704     if (*(data + i) != *(data3 + i))
31705       return 1;
31706   close (fd);
31707   return 0;
31708 }
31709 _ACEOF
31710 rm -f conftest$ac_exeext
31711 if { (ac_try="$ac_link"
31712 case "(($ac_try" in
31713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31714   *) ac_try_echo=$ac_try;;
31715 esac
31716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31717   (eval "$ac_link") 2>&5
31718   ac_status=$?
31719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31721   { (case "(($ac_try" in
31722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31723   *) ac_try_echo=$ac_try;;
31724 esac
31725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31726   (eval "$ac_try") 2>&5
31727   ac_status=$?
31728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729   (exit $ac_status); }; }; then
31730   ac_cv_func_mmap_fixed_mapped=yes
31731 else
31732   echo "$as_me: program exited with status $ac_status" >&5
31733 echo "$as_me: failed program was:" >&5
31734 sed 's/^/| /' conftest.$ac_ext >&5
31735
31736 ( exit $ac_status )
31737 ac_cv_func_mmap_fixed_mapped=no
31738 fi
31739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31740 fi
31741
31742
31743 fi
31744 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31745 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
31746 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31747
31748 cat >>confdefs.h <<\_ACEOF
31749 #define HAVE_MMAP 1
31750 _ACEOF
31751
31752 fi
31753 rm -f conftest.mmap
31754
31755   { echo "$as_me:$LINENO: checking for mmap of files" >&5
31756 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
31757 if test "${ac_cv_func_mmap_file+set}" = set; then
31758   echo $ECHO_N "(cached) $ECHO_C" >&6
31759 else
31760    ac_ext=c
31761 ac_cpp='$CPP $CPPFLAGS'
31762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31765
31766   if test "$cross_compiling" = yes; then
31767   ac_cv_func_mmap_file=no
31768 else
31769   cat >conftest.$ac_ext <<_ACEOF
31770
31771     /* confdefs.h.  */
31772 _ACEOF
31773 cat confdefs.h >>conftest.$ac_ext
31774 cat >>conftest.$ac_ext <<_ACEOF
31775 /* end confdefs.h.  */
31776
31777 #include <sys/types.h>
31778 #include <sys/mman.h>
31779 #include <fcntl.h>
31780
31781 int
31782 main ()
31783 {
31784
31785   int fd;
31786   fd = creat ("foo",0777);
31787   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31788   unlink ("foo");
31789   return (fd != (int) MAP_FAILED);
31790   ;
31791   return 0;
31792 }
31793 _ACEOF
31794 rm -f conftest$ac_exeext
31795 if { (ac_try="$ac_link"
31796 case "(($ac_try" in
31797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798   *) ac_try_echo=$ac_try;;
31799 esac
31800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801   (eval "$ac_link") 2>&5
31802   ac_status=$?
31803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31805   { (case "(($ac_try" in
31806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31807   *) ac_try_echo=$ac_try;;
31808 esac
31809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31810   (eval "$ac_try") 2>&5
31811   ac_status=$?
31812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813   (exit $ac_status); }; }; then
31814   ac_cv_func_mmap_file=yes
31815 else
31816   echo "$as_me: program exited with status $ac_status" >&5
31817 echo "$as_me: failed program was:" >&5
31818 sed 's/^/| /' conftest.$ac_ext >&5
31819
31820 ( exit $ac_status )
31821 ac_cv_func_mmap_file=no
31822 fi
31823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31824 fi
31825
31826
31827   ac_ext=c
31828 ac_cpp='$CPP $CPPFLAGS'
31829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31832
31833
31834 fi
31835 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31836 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
31837 if test "$ac_cv_func_mmap_file" = yes; then
31838
31839 cat >>confdefs.h <<\_ACEOF
31840 #define HAVE_MMAP_FILE
31841 _ACEOF
31842
31843    MMAP_FILE=yes
31844
31845 fi
31846
31847   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31848 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
31849 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31850   echo $ECHO_N "(cached) $ECHO_C" >&6
31851 else
31852   if test "$llvm_cv_os_type" = "Interix" ; then
31853    ac_cv_need_dev_zero_for_mmap=yes
31854  else
31855    ac_cv_need_dev_zero_for_mmap=no
31856  fi
31857
31858 fi
31859 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31860 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
31861 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31862
31863 cat >>confdefs.h <<\_ACEOF
31864 #define NEED_DEV_ZERO_FOR_MMAP 1
31865 _ACEOF
31866
31867 fi
31868
31869   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31870   then
31871     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31872 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31873   fi
31874   if test "$ac_cv_func_mmap_file" = "no"
31875   then
31876     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31877 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31878   fi
31879 fi
31880
31881
31882
31883 for ac_func in __dso_handle
31884 do
31885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31886 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31889   echo $ECHO_N "(cached) $ECHO_C" >&6
31890 else
31891   cat >conftest.$ac_ext <<_ACEOF
31892 /* confdefs.h.  */
31893 _ACEOF
31894 cat confdefs.h >>conftest.$ac_ext
31895 cat >>conftest.$ac_ext <<_ACEOF
31896 /* end confdefs.h.  */
31897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31899 #define $ac_func innocuous_$ac_func
31900
31901 /* System header to define __stub macros and hopefully few prototypes,
31902     which can conflict with char $ac_func (); below.
31903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31904     <limits.h> exists even on freestanding compilers.  */
31905
31906 #ifdef __STDC__
31907 # include <limits.h>
31908 #else
31909 # include <assert.h>
31910 #endif
31911
31912 #undef $ac_func
31913
31914 /* Override any GCC internal prototype to avoid an error.
31915    Use char because int might match the return type of a GCC
31916    builtin and then its argument prototype would still apply.  */
31917 #ifdef __cplusplus
31918 extern "C"
31919 #endif
31920 char $ac_func ();
31921 /* The GNU C library defines this for functions which it implements
31922     to always fail with ENOSYS.  Some functions are actually named
31923     something starting with __ and the normal name is an alias.  */
31924 #if defined __stub_$ac_func || defined __stub___$ac_func
31925 choke me
31926 #endif
31927
31928 int
31929 main ()
31930 {
31931 return $ac_func ();
31932   ;
31933   return 0;
31934 }
31935 _ACEOF
31936 rm -f conftest.$ac_objext conftest$ac_exeext
31937 if { (ac_try="$ac_link"
31938 case "(($ac_try" in
31939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940   *) ac_try_echo=$ac_try;;
31941 esac
31942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943   (eval "$ac_link") 2>conftest.er1
31944   ac_status=$?
31945   grep -v '^ *+' conftest.er1 >conftest.err
31946   rm -f conftest.er1
31947   cat conftest.err >&5
31948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949   (exit $ac_status); } && {
31950          test -z "$ac_c_werror_flag" ||
31951          test ! -s conftest.err
31952        } && test -s conftest$ac_exeext &&
31953        $as_test_x conftest$ac_exeext; then
31954   eval "$as_ac_var=yes"
31955 else
31956   echo "$as_me: failed program was:" >&5
31957 sed 's/^/| /' conftest.$ac_ext >&5
31958
31959         eval "$as_ac_var=no"
31960 fi
31961
31962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31963       conftest$ac_exeext conftest.$ac_ext
31964 fi
31965 ac_res=`eval echo '${'$as_ac_var'}'`
31966                { echo "$as_me:$LINENO: result: $ac_res" >&5
31967 echo "${ECHO_T}$ac_res" >&6; }
31968 if test `eval echo '${'$as_ac_var'}'` = yes; then
31969   cat >>confdefs.h <<_ACEOF
31970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31971 _ACEOF
31972
31973 fi
31974 done
31975
31976
31977 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31978 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
31979 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31980   echo $ECHO_N "(cached) $ECHO_C" >&6
31981 else
31982   llvm_cv_llvmgcc_sanity="no"
31983 if test -x "$LLVMGCC" ; then
31984   cp /dev/null conftest.c
31985   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
31986       grep 'target datalayout =' > /dev/null 2>&1
31987   if test $? -eq 0 ; then
31988     llvm_cv_llvmgcc_sanity="yes"
31989   fi
31990   rm conftest.c
31991 fi
31992 fi
31993 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31994 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
31995
31996 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31997   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
31998 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
31999   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
32000   LLVMCC1=$llvmcc1path
32001
32002   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
32003   LLVMCC1PLUS=$llvmcc1pluspath
32004
32005   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
32006   LLVMGCCDIR=$llvmgccdir
32007
32008   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
32009   LLVMGCCLIBEXEC=$llvmgcclibexec
32010
32011   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
32012   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
32013   LLVMGCC_VERSION=$llvmgccversion
32014
32015   LLVMGCC_MAJVERS=$llvmgccmajvers
32016
32017   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
32018   LLVMGCC_LANGS=$llvmgcclangs
32019
32020   { echo "$as_me:$LINENO: result: ok" >&5
32021 echo "${ECHO_T}ok" >&6; }
32022 fi
32023
32024 SHLIBEXT=$libltdl_cv_shlibext
32025
32026
32027 # Translate the various configuration directories and other basic
32028 # information into substitutions that will end up in Makefile.config.in
32029 # that these configured values can be used by the makefiles
32030 if test "${prefix}" = "NONE" ; then
32031   prefix="/usr/local"
32032 fi
32033 eval LLVM_PREFIX="${prefix}";
32034 eval LLVM_BINDIR="${prefix}/bin";
32035 eval LLVM_LIBDIR="${prefix}/lib";
32036 eval LLVM_DATADIR="${prefix}/share/llvm";
32037 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
32038 eval LLVM_ETCDIR="${prefix}/etc/llvm";
32039 eval LLVM_INCLUDEDIR="${prefix}/include";
32040 eval LLVM_INFODIR="${prefix}/info";
32041 eval LLVM_MANDIR="${prefix}/man";
32042 LLVM_CONFIGTIME=`date`
32043
32044
32045
32046
32047
32048
32049
32050
32051
32052
32053
32054 # Place the various directores into the config.h file as #defines so that we
32055 # can know about the installation paths within LLVM.
32056
32057 cat >>confdefs.h <<_ACEOF
32058 #define LLVM_PREFIX "$LLVM_PREFIX"
32059 _ACEOF
32060
32061
32062 cat >>confdefs.h <<_ACEOF
32063 #define LLVM_BINDIR "$LLVM_BINDIR"
32064 _ACEOF
32065
32066
32067 cat >>confdefs.h <<_ACEOF
32068 #define LLVM_LIBDIR "$LLVM_LIBDIR"
32069 _ACEOF
32070
32071
32072 cat >>confdefs.h <<_ACEOF
32073 #define LLVM_DATADIR "$LLVM_DATADIR"
32074 _ACEOF
32075
32076
32077 cat >>confdefs.h <<_ACEOF
32078 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
32079 _ACEOF
32080
32081
32082 cat >>confdefs.h <<_ACEOF
32083 #define LLVM_ETCDIR "$LLVM_ETCDIR"
32084 _ACEOF
32085
32086
32087 cat >>confdefs.h <<_ACEOF
32088 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
32089 _ACEOF
32090
32091
32092 cat >>confdefs.h <<_ACEOF
32093 #define LLVM_INFODIR "$LLVM_INFODIR"
32094 _ACEOF
32095
32096
32097 cat >>confdefs.h <<_ACEOF
32098 #define LLVM_MANDIR "$LLVM_MANDIR"
32099 _ACEOF
32100
32101
32102 cat >>confdefs.h <<_ACEOF
32103 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
32104 _ACEOF
32105
32106
32107 cat >>confdefs.h <<_ACEOF
32108 #define LLVM_HOSTTRIPLE "$host"
32109 _ACEOF
32110
32111
32112 # Determine which bindings to build.
32113 if test "$BINDINGS_TO_BUILD" = auto ; then
32114   BINDINGS_TO_BUILD=""
32115   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
32116     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
32117   fi
32118 fi
32119 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
32120
32121
32122 # This isn't really configurey, but it avoids having to repeat the list in
32123 # other files.
32124 ALL_BINDINGS=ocaml
32125
32126
32127 # Do any work necessary to ensure that bindings have what they need.
32128 binding_prereqs_failed=0
32129 for a_binding in $BINDINGS_TO_BUILD ; do
32130   case "$a_binding" in
32131   ocaml)
32132     if test "x$OCAMLC" = x ; then
32133       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
32134 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
32135       binding_prereqs_failed=1
32136     fi
32137     if test "x$OCAMLDEP" = x ; then
32138       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
32139 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
32140       binding_prereqs_failed=1
32141     fi
32142     if test "x$OCAMLOPT" = x ; then
32143       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
32144 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
32145           fi
32146     if test "x$with_ocaml_libdir" != xauto ; then
32147       OCAML_LIBDIR=$with_ocaml_libdir
32148
32149     else
32150       ocaml_stdlib="`"$OCAMLC" -where`"
32151       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
32152       then
32153         # ocaml stdlib is beneath our prefix; use stdlib
32154         OCAML_LIBDIR=$ocaml_stdlib
32155
32156       else
32157         # ocaml stdlib is outside our prefix; use libdir/ocaml
32158         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
32159
32160       fi
32161     fi
32162     ;;
32163   esac
32164 done
32165 if test "$binding_prereqs_failed" = 1 ; then
32166   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
32167 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
32168    { (exit 1); exit 1; }; }
32169 fi
32170
32171 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
32172 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
32173 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
32174   echo $ECHO_N "(cached) $ECHO_C" >&6
32175 else
32176    ac_ext=cpp
32177 ac_cpp='$CXXCPP $CPPFLAGS'
32178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32181
32182   oldcxxflags="$CXXFLAGS"
32183   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
32184   cat >conftest.$ac_ext <<_ACEOF
32185 /* confdefs.h.  */
32186 _ACEOF
32187 cat confdefs.h >>conftest.$ac_ext
32188 cat >>conftest.$ac_ext <<_ACEOF
32189 /* end confdefs.h.  */
32190
32191 int
32192 main ()
32193 {
32194
32195   ;
32196   return 0;
32197 }
32198 _ACEOF
32199 rm -f conftest.$ac_objext
32200 if { (ac_try="$ac_compile"
32201 case "(($ac_try" in
32202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32203   *) ac_try_echo=$ac_try;;
32204 esac
32205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32206   (eval "$ac_compile") 2>conftest.er1
32207   ac_status=$?
32208   grep -v '^ *+' conftest.er1 >conftest.err
32209   rm -f conftest.er1
32210   cat conftest.err >&5
32211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32212   (exit $ac_status); } && {
32213          test -z "$ac_cxx_werror_flag" ||
32214          test ! -s conftest.err
32215        } && test -s conftest.$ac_objext; then
32216   llvm_cv_cxx_visibility_inlines_hidden=yes
32217 else
32218   echo "$as_me: failed program was:" >&5
32219 sed 's/^/| /' conftest.$ac_ext >&5
32220
32221         llvm_cv_cxx_visibility_inlines_hidden=no
32222 fi
32223
32224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32225   CXXFLAGS="$oldcxxflags"
32226   ac_ext=c
32227 ac_cpp='$CPP $CPPFLAGS'
32228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32231
32232
32233 fi
32234 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
32235 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
32236 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
32237   ENABLE_VISIBILITY_INLINES_HIDDEN=1
32238
32239 else
32240   ENABLE_VISIBILITY_INLINES_HIDDEN=0
32241
32242 fi
32243
32244
32245
32246 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
32247
32248 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
32249
32250 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
32251
32252 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
32253
32254 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
32255
32256
32257 ac_config_files="$ac_config_files Makefile.config"
32258
32259
32260 ac_config_files="$ac_config_files llvm.spec"
32261
32262
32263 ac_config_files="$ac_config_files docs/doxygen.cfg"
32264
32265
32266 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
32267
32268
32269 ac_config_commands="$ac_config_commands setup"
32270
32271 ac_config_commands="$ac_config_commands Makefile"
32272
32273
32274 ac_config_commands="$ac_config_commands Makefile.common"
32275
32276
32277 ac_config_commands="$ac_config_commands examples/Makefile"
32278
32279
32280 ac_config_commands="$ac_config_commands lib/Makefile"
32281
32282
32283 ac_config_commands="$ac_config_commands runtime/Makefile"
32284
32285
32286 ac_config_commands="$ac_config_commands test/Makefile"
32287
32288
32289 ac_config_commands="$ac_config_commands test/Makefile.tests"
32290
32291
32292 ac_config_commands="$ac_config_commands tools/Makefile"
32293
32294
32295 ac_config_commands="$ac_config_commands utils/Makefile"
32296
32297
32298 ac_config_commands="$ac_config_commands projects/Makefile"
32299
32300
32301 ac_config_commands="$ac_config_commands bindings/Makefile"
32302
32303
32304 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
32305
32306
32307
32308 cat >confcache <<\_ACEOF
32309 # This file is a shell script that caches the results of configure
32310 # tests run on this system so they can be shared between configure
32311 # scripts and configure runs, see configure's option --config-cache.
32312 # It is not useful on other systems.  If it contains results you don't
32313 # want to keep, you may remove or edit it.
32314 #
32315 # config.status only pays attention to the cache file if you give it
32316 # the --recheck option to rerun configure.
32317 #
32318 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32319 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32320 # following values.
32321
32322 _ACEOF
32323
32324 # The following way of writing the cache mishandles newlines in values,
32325 # but we know of no workaround that is simple, portable, and efficient.
32326 # So, we kill variables containing newlines.
32327 # Ultrix sh set writes to stderr and can't be redirected directly,
32328 # and sets the high bit in the cache file unless we assign to the vars.
32329 (
32330   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32331     eval ac_val=\$$ac_var
32332     case $ac_val in #(
32333     *${as_nl}*)
32334       case $ac_var in #(
32335       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32336 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32337       esac
32338       case $ac_var in #(
32339       _ | IFS | as_nl) ;; #(
32340       *) $as_unset $ac_var ;;
32341       esac ;;
32342     esac
32343   done
32344
32345   (set) 2>&1 |
32346     case $as_nl`(ac_space=' '; set) 2>&1` in #(
32347     *${as_nl}ac_space=\ *)
32348       # `set' does not quote correctly, so add quotes (double-quote
32349       # substitution turns \\\\ into \\, and sed turns \\ into \).
32350       sed -n \
32351         "s/'/'\\\\''/g;
32352           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32353       ;; #(
32354     *)
32355       # `set' quotes correctly as required by POSIX, so do not add quotes.
32356       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32357       ;;
32358     esac |
32359     sort
32360 ) |
32361   sed '
32362      /^ac_cv_env_/b end
32363      t clear
32364      :clear
32365      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32366      t end
32367      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32368      :end' >>confcache
32369 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32370   if test -w "$cache_file"; then
32371     test "x$cache_file" != "x/dev/null" &&
32372       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32373 echo "$as_me: updating cache $cache_file" >&6;}
32374     cat confcache >$cache_file
32375   else
32376     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32377 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32378   fi
32379 fi
32380 rm -f confcache
32381
32382 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32383 # Let make expand exec_prefix.
32384 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32385
32386 DEFS=-DHAVE_CONFIG_H
32387
32388 ac_libobjs=
32389 ac_ltlibobjs=
32390 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32391   # 1. Remove the extension, and $U if already installed.
32392   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32393   ac_i=`echo "$ac_i" | sed "$ac_script"`
32394   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32395   #    will be set to the directory where LIBOBJS objects are built.
32396   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32397   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32398 done
32399 LIBOBJS=$ac_libobjs
32400
32401 LTLIBOBJS=$ac_ltlibobjs
32402
32403
32404 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32405   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32406 Usually this means the macro was only invoked conditionally." >&5
32407 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32408 Usually this means the macro was only invoked conditionally." >&2;}
32409    { (exit 1); exit 1; }; }
32410 fi
32411 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32412   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32413 Usually this means the macro was only invoked conditionally." >&5
32414 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32415 Usually this means the macro was only invoked conditionally." >&2;}
32416    { (exit 1); exit 1; }; }
32417 fi
32418
32419 : ${CONFIG_STATUS=./config.status}
32420 ac_clean_files_save=$ac_clean_files
32421 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32422 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32423 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32424 cat >$CONFIG_STATUS <<_ACEOF
32425 #! $SHELL
32426 # Generated by $as_me.
32427 # Run this file to recreate the current configuration.
32428 # Compiler output produced by configure, useful for debugging
32429 # configure, is in config.log if it exists.
32430
32431 debug=false
32432 ac_cs_recheck=false
32433 ac_cs_silent=false
32434 SHELL=\${CONFIG_SHELL-$SHELL}
32435 _ACEOF
32436
32437 cat >>$CONFIG_STATUS <<\_ACEOF
32438 ## --------------------- ##
32439 ## M4sh Initialization.  ##
32440 ## --------------------- ##
32441
32442 # Be more Bourne compatible
32443 DUALCASE=1; export DUALCASE # for MKS sh
32444 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32445   emulate sh
32446   NULLCMD=:
32447   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32448   # is contrary to our usage.  Disable this feature.
32449   alias -g '${1+"$@"}'='"$@"'
32450   setopt NO_GLOB_SUBST
32451 else
32452   case `(set -o) 2>/dev/null` in
32453   *posix*) set -o posix ;;
32454 esac
32455
32456 fi
32457
32458
32459
32460
32461 # PATH needs CR
32462 # Avoid depending upon Character Ranges.
32463 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32464 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32465 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32466 as_cr_digits='0123456789'
32467 as_cr_alnum=$as_cr_Letters$as_cr_digits
32468
32469 # The user is always right.
32470 if test "${PATH_SEPARATOR+set}" != set; then
32471   echo "#! /bin/sh" >conf$$.sh
32472   echo  "exit 0"   >>conf$$.sh
32473   chmod +x conf$$.sh
32474   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32475     PATH_SEPARATOR=';'
32476   else
32477     PATH_SEPARATOR=:
32478   fi
32479   rm -f conf$$.sh
32480 fi
32481
32482 # Support unset when possible.
32483 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32484   as_unset=unset
32485 else
32486   as_unset=false
32487 fi
32488
32489
32490 # IFS
32491 # We need space, tab and new line, in precisely that order.  Quoting is
32492 # there to prevent editors from complaining about space-tab.
32493 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32494 # splitting by setting IFS to empty value.)
32495 as_nl='
32496 '
32497 IFS=" ""        $as_nl"
32498
32499 # Find who we are.  Look in the path if we contain no directory separator.
32500 case $0 in
32501   *[\\/]* ) as_myself=$0 ;;
32502   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32503 for as_dir in $PATH
32504 do
32505   IFS=$as_save_IFS
32506   test -z "$as_dir" && as_dir=.
32507   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32508 done
32509 IFS=$as_save_IFS
32510
32511      ;;
32512 esac
32513 # We did not find ourselves, most probably we were run as `sh COMMAND'
32514 # in which case we are not to be found in the path.
32515 if test "x$as_myself" = x; then
32516   as_myself=$0
32517 fi
32518 if test ! -f "$as_myself"; then
32519   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32520   { (exit 1); exit 1; }
32521 fi
32522
32523 # Work around bugs in pre-3.0 UWIN ksh.
32524 for as_var in ENV MAIL MAILPATH
32525 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32526 done
32527 PS1='$ '
32528 PS2='> '
32529 PS4='+ '
32530
32531 # NLS nuisances.
32532 for as_var in \
32533   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32534   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32535   LC_TELEPHONE LC_TIME
32536 do
32537   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32538     eval $as_var=C; export $as_var
32539   else
32540     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32541   fi
32542 done
32543
32544 # Required to use basename.
32545 if expr a : '\(a\)' >/dev/null 2>&1 &&
32546    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32547   as_expr=expr
32548 else
32549   as_expr=false
32550 fi
32551
32552 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32553   as_basename=basename
32554 else
32555   as_basename=false
32556 fi
32557
32558
32559 # Name of the executable.
32560 as_me=`$as_basename -- "$0" ||
32561 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32562          X"$0" : 'X\(//\)$' \| \
32563          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32564 echo X/"$0" |
32565     sed '/^.*\/\([^/][^/]*\)\/*$/{
32566             s//\1/
32567             q
32568           }
32569           /^X\/\(\/\/\)$/{
32570             s//\1/
32571             q
32572           }
32573           /^X\/\(\/\).*/{
32574             s//\1/
32575             q
32576           }
32577           s/.*/./; q'`
32578
32579 # CDPATH.
32580 $as_unset CDPATH
32581
32582
32583
32584   as_lineno_1=$LINENO
32585   as_lineno_2=$LINENO
32586   test "x$as_lineno_1" != "x$as_lineno_2" &&
32587   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32588
32589   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32590   # uniformly replaced by the line number.  The first 'sed' inserts a
32591   # line-number line after each line using $LINENO; the second 'sed'
32592   # does the real work.  The second script uses 'N' to pair each
32593   # line-number line with the line containing $LINENO, and appends
32594   # trailing '-' during substitution so that $LINENO is not a special
32595   # case at line end.
32596   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32597   # scripts with optimization help from Paolo Bonzini.  Blame Lee
32598   # E. McMahon (1931-1989) for sed's syntax.  :-)
32599   sed -n '
32600     p
32601     /[$]LINENO/=
32602   ' <$as_myself |
32603     sed '
32604       s/[$]LINENO.*/&-/
32605       t lineno
32606       b
32607       :lineno
32608       N
32609       :loop
32610       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32611       t loop
32612       s/-\n.*//
32613     ' >$as_me.lineno &&
32614   chmod +x "$as_me.lineno" ||
32615     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32616    { (exit 1); exit 1; }; }
32617
32618   # Don't try to exec as it changes $[0], causing all sort of problems
32619   # (the dirname of $[0] is not the place where we might find the
32620   # original and so on.  Autoconf is especially sensitive to this).
32621   . "./$as_me.lineno"
32622   # Exit status is that of the last command.
32623   exit
32624 }
32625
32626
32627 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32628   as_dirname=dirname
32629 else
32630   as_dirname=false
32631 fi
32632
32633 ECHO_C= ECHO_N= ECHO_T=
32634 case `echo -n x` in
32635 -n*)
32636   case `echo 'x\c'` in
32637   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
32638   *)   ECHO_C='\c';;
32639   esac;;
32640 *)
32641   ECHO_N='-n';;
32642 esac
32643
32644 if expr a : '\(a\)' >/dev/null 2>&1 &&
32645    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32646   as_expr=expr
32647 else
32648   as_expr=false
32649 fi
32650
32651 rm -f conf$$ conf$$.exe conf$$.file
32652 if test -d conf$$.dir; then
32653   rm -f conf$$.dir/conf$$.file
32654 else
32655   rm -f conf$$.dir
32656   mkdir conf$$.dir
32657 fi
32658 echo >conf$$.file
32659 if ln -s conf$$.file conf$$ 2>/dev/null; then
32660   as_ln_s='ln -s'
32661   # ... but there are two gotchas:
32662   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32663   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32664   # In both cases, we have to default to `cp -p'.
32665   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32666     as_ln_s='cp -p'
32667 elif ln conf$$.file conf$$ 2>/dev/null; then
32668   as_ln_s=ln
32669 else
32670   as_ln_s='cp -p'
32671 fi
32672 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32673 rmdir conf$$.dir 2>/dev/null
32674
32675 if mkdir -p . 2>/dev/null; then
32676   as_mkdir_p=:
32677 else
32678   test -d ./-p && rmdir ./-p
32679   as_mkdir_p=false
32680 fi
32681
32682 if test -x / >/dev/null 2>&1; then
32683   as_test_x='test -x'
32684 else
32685   if ls -dL / >/dev/null 2>&1; then
32686     as_ls_L_option=L
32687   else
32688     as_ls_L_option=
32689   fi
32690   as_test_x='
32691     eval sh -c '\''
32692       if test -d "$1"; then
32693         test -d "$1/.";
32694       else
32695         case $1 in
32696         -*)set "./$1";;
32697         esac;
32698         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32699         ???[sx]*):;;*)false;;esac;fi
32700     '\'' sh
32701   '
32702 fi
32703 as_executable_p=$as_test_x
32704
32705 # Sed expression to map a string onto a valid CPP name.
32706 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32707
32708 # Sed expression to map a string onto a valid variable name.
32709 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32710
32711
32712 exec 6>&1
32713
32714 # Save the log message, to keep $[0] and so on meaningful, and to
32715 # report actual input values of CONFIG_FILES etc. instead of their
32716 # values after options handling.
32717 ac_log="
32718 This file was extended by llvm $as_me 2.5svn, which was
32719 generated by GNU Autoconf 2.61.  Invocation command line was
32720
32721   CONFIG_FILES    = $CONFIG_FILES
32722   CONFIG_HEADERS  = $CONFIG_HEADERS
32723   CONFIG_LINKS    = $CONFIG_LINKS
32724   CONFIG_COMMANDS = $CONFIG_COMMANDS
32725   $ $0 $@
32726
32727 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32728 "
32729
32730 _ACEOF
32731
32732 cat >>$CONFIG_STATUS <<_ACEOF
32733 # Files that config.status was made for.
32734 config_files="$ac_config_files"
32735 config_headers="$ac_config_headers"
32736 config_commands="$ac_config_commands"
32737
32738 _ACEOF
32739
32740 cat >>$CONFIG_STATUS <<\_ACEOF
32741 ac_cs_usage="\
32742 \`$as_me' instantiates files from templates according to the
32743 current configuration.
32744
32745 Usage: $0 [OPTIONS] [FILE]...
32746
32747   -h, --help       print this help, then exit
32748   -V, --version    print version number and configuration settings, then exit
32749   -q, --quiet      do not print progress messages
32750   -d, --debug      don't remove temporary files
32751       --recheck    update $as_me by reconfiguring in the same conditions
32752   --file=FILE[:TEMPLATE]
32753                    instantiate the configuration file FILE
32754   --header=FILE[:TEMPLATE]
32755                    instantiate the configuration header FILE
32756
32757 Configuration files:
32758 $config_files
32759
32760 Configuration headers:
32761 $config_headers
32762
32763 Configuration commands:
32764 $config_commands
32765
32766 Report bugs to <bug-autoconf@gnu.org>."
32767
32768 _ACEOF
32769 cat >>$CONFIG_STATUS <<_ACEOF
32770 ac_cs_version="\\
32771 llvm config.status 2.5svn
32772 configured by $0, generated by GNU Autoconf 2.61,
32773   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32774
32775 Copyright (C) 2006 Free Software Foundation, Inc.
32776 This config.status script is free software; the Free Software Foundation
32777 gives unlimited permission to copy, distribute and modify it."
32778
32779 ac_pwd='$ac_pwd'
32780 srcdir='$srcdir'
32781 INSTALL='$INSTALL'
32782 _ACEOF
32783
32784 cat >>$CONFIG_STATUS <<\_ACEOF
32785 # If no file are specified by the user, then we need to provide default
32786 # value.  By we need to know if files were specified by the user.
32787 ac_need_defaults=:
32788 while test $# != 0
32789 do
32790   case $1 in
32791   --*=*)
32792     ac_option=`expr "X$1" : 'X\([^=]*\)='`
32793     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32794     ac_shift=:
32795     ;;
32796   *)
32797     ac_option=$1
32798     ac_optarg=$2
32799     ac_shift=shift
32800     ;;
32801   esac
32802
32803   case $ac_option in
32804   # Handling of the options.
32805   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32806     ac_cs_recheck=: ;;
32807   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32808     echo "$ac_cs_version"; exit ;;
32809   --debug | --debu | --deb | --de | --d | -d )
32810     debug=: ;;
32811   --file | --fil | --fi | --f )
32812     $ac_shift
32813     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32814     ac_need_defaults=false;;
32815   --header | --heade | --head | --hea )
32816     $ac_shift
32817     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32818     ac_need_defaults=false;;
32819   --he | --h)
32820     # Conflict between --help and --header
32821     { echo "$as_me: error: ambiguous option: $1
32822 Try \`$0 --help' for more information." >&2
32823    { (exit 1); exit 1; }; };;
32824   --help | --hel | -h )
32825     echo "$ac_cs_usage"; exit ;;
32826   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32827   | -silent | --silent | --silen | --sile | --sil | --si | --s)
32828     ac_cs_silent=: ;;
32829
32830   # This is an error.
32831   -*) { echo "$as_me: error: unrecognized option: $1
32832 Try \`$0 --help' for more information." >&2
32833    { (exit 1); exit 1; }; } ;;
32834
32835   *) ac_config_targets="$ac_config_targets $1"
32836      ac_need_defaults=false ;;
32837
32838   esac
32839   shift
32840 done
32841
32842 ac_configure_extra_args=
32843
32844 if $ac_cs_silent; then
32845   exec 6>/dev/null
32846   ac_configure_extra_args="$ac_configure_extra_args --silent"
32847 fi
32848
32849 _ACEOF
32850 cat >>$CONFIG_STATUS <<_ACEOF
32851 if \$ac_cs_recheck; then
32852   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32853   CONFIG_SHELL=$SHELL
32854   export CONFIG_SHELL
32855   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32856 fi
32857
32858 _ACEOF
32859 cat >>$CONFIG_STATUS <<\_ACEOF
32860 exec 5>>config.log
32861 {
32862   echo
32863   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32864 ## Running $as_me. ##
32865 _ASBOX
32866   echo "$ac_log"
32867 } >&5
32868
32869 _ACEOF
32870 cat >>$CONFIG_STATUS <<_ACEOF
32871 #
32872 # INIT-COMMANDS
32873 #
32874 llvm_src="${srcdir}"
32875
32876 _ACEOF
32877
32878 cat >>$CONFIG_STATUS <<\_ACEOF
32879
32880 # Handling of arguments.
32881 for ac_config_target in $ac_config_targets
32882 do
32883   case $ac_config_target in
32884     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
32885     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
32886     "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
32887     "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
32888     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
32889     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
32890     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
32891     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
32892     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
32893     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
32894     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
32895     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
32896     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
32897     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
32898     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
32899     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32900     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
32901     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
32902     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
32903     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
32904     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
32905     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
32906
32907   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32908 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32909    { (exit 1); exit 1; }; };;
32910   esac
32911 done
32912
32913
32914 # If the user did not use the arguments to specify the items to instantiate,
32915 # then the envvar interface is used.  Set only those that are not.
32916 # We use the long form for the default assignment because of an extremely
32917 # bizarre bug on SunOS 4.1.3.
32918 if $ac_need_defaults; then
32919   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32920   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32921   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32922 fi
32923
32924 # Have a temporary directory for convenience.  Make it in the build tree
32925 # simply because there is no reason against having it here, and in addition,
32926 # creating and moving files from /tmp can sometimes cause problems.
32927 # Hook for its removal unless debugging.
32928 # Note that there is a small window in which the directory will not be cleaned:
32929 # after its creation but before its name has been assigned to `$tmp'.
32930 $debug ||
32931 {
32932   tmp=
32933   trap 'exit_status=$?
32934   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32935 ' 0
32936   trap '{ (exit 1); exit 1; }' 1 2 13 15
32937 }
32938 # Create a (secure) tmp directory for tmp files.
32939
32940 {
32941   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32942   test -n "$tmp" && test -d "$tmp"
32943 }  ||
32944 {
32945   tmp=./conf$$-$RANDOM
32946   (umask 077 && mkdir "$tmp")
32947 } ||
32948 {
32949    echo "$me: cannot create a temporary directory in ." >&2
32950    { (exit 1); exit 1; }
32951 }
32952
32953 #
32954 # Set up the sed scripts for CONFIG_FILES section.
32955 #
32956
32957 # No need to generate the scripts if there are no CONFIG_FILES.
32958 # This happens for instance when ./config.status config.h
32959 if test -n "$CONFIG_FILES"; then
32960
32961 _ACEOF
32962
32963
32964
32965 ac_delim='%!_!# '
32966 for ac_last_try in false false false false false :; do
32967   cat >conf$$subs.sed <<_ACEOF
32968 SHELL!$SHELL$ac_delim
32969 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32970 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32971 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32972 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32973 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32974 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32975 exec_prefix!$exec_prefix$ac_delim
32976 prefix!$prefix$ac_delim
32977 program_transform_name!$program_transform_name$ac_delim
32978 bindir!$bindir$ac_delim
32979 sbindir!$sbindir$ac_delim
32980 libexecdir!$libexecdir$ac_delim
32981 datarootdir!$datarootdir$ac_delim
32982 datadir!$datadir$ac_delim
32983 sysconfdir!$sysconfdir$ac_delim
32984 sharedstatedir!$sharedstatedir$ac_delim
32985 localstatedir!$localstatedir$ac_delim
32986 includedir!$includedir$ac_delim
32987 oldincludedir!$oldincludedir$ac_delim
32988 docdir!$docdir$ac_delim
32989 infodir!$infodir$ac_delim
32990 htmldir!$htmldir$ac_delim
32991 dvidir!$dvidir$ac_delim
32992 pdfdir!$pdfdir$ac_delim
32993 psdir!$psdir$ac_delim
32994 libdir!$libdir$ac_delim
32995 localedir!$localedir$ac_delim
32996 mandir!$mandir$ac_delim
32997 DEFS!$DEFS$ac_delim
32998 ECHO_C!$ECHO_C$ac_delim
32999 ECHO_N!$ECHO_N$ac_delim
33000 ECHO_T!$ECHO_T$ac_delim
33001 LIBS!$LIBS$ac_delim
33002 build_alias!$build_alias$ac_delim
33003 host_alias!$host_alias$ac_delim
33004 target_alias!$target_alias$ac_delim
33005 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
33006 subdirs!$subdirs$ac_delim
33007 build!$build$ac_delim
33008 build_cpu!$build_cpu$ac_delim
33009 build_vendor!$build_vendor$ac_delim
33010 build_os!$build_os$ac_delim
33011 host!$host$ac_delim
33012 host_cpu!$host_cpu$ac_delim
33013 host_vendor!$host_vendor$ac_delim
33014 host_os!$host_os$ac_delim
33015 target!$target$ac_delim
33016 target_cpu!$target_cpu$ac_delim
33017 target_vendor!$target_vendor$ac_delim
33018 target_os!$target_os$ac_delim
33019 OS!$OS$ac_delim
33020 LINKALL!$LINKALL$ac_delim
33021 NOLINKALL!$NOLINKALL$ac_delim
33022 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
33023 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
33024 ARCH!$ARCH$ac_delim
33025 ENDIAN!$ENDIAN$ac_delim
33026 CC!$CC$ac_delim
33027 CFLAGS!$CFLAGS$ac_delim
33028 LDFLAGS!$LDFLAGS$ac_delim
33029 CPPFLAGS!$CPPFLAGS$ac_delim
33030 ac_ct_CC!$ac_ct_CC$ac_delim
33031 EXEEXT!$EXEEXT$ac_delim
33032 OBJEXT!$OBJEXT$ac_delim
33033 CPP!$CPP$ac_delim
33034 GREP!$GREP$ac_delim
33035 EGREP!$EGREP$ac_delim
33036 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
33037 BUILD_CC!$BUILD_CC$ac_delim
33038 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
33039 BUILD_CXX!$BUILD_CXX$ac_delim
33040 CVSBUILD!$CVSBUILD$ac_delim
33041 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
33042 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
33043 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
33044 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
33045 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
33046 JIT!$JIT$ac_delim
33047 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
33048 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
33049 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
33050 ENABLE_PIC!$ENABLE_PIC$ac_delim
33051 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
33052 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
33053 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
33054 CXX!$CXX$ac_delim
33055 CXXFLAGS!$CXXFLAGS$ac_delim
33056 ac_ct_CXX!$ac_ct_CXX$ac_delim
33057 LEX!$LEX$ac_delim
33058 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
33059 LEXLIB!$LEXLIB$ac_delim
33060 FLEX!$FLEX$ac_delim
33061 YACC!$YACC$ac_delim
33062 YFLAGS!$YFLAGS$ac_delim
33063 BISON!$BISON$ac_delim
33064 NM!$NM$ac_delim
33065 _ACEOF
33066
33067   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33068     break
33069   elif $ac_last_try; then
33070     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33071 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33072    { (exit 1); exit 1; }; }
33073   else
33074     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33075   fi
33076 done
33077
33078 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33079 if test -n "$ac_eof"; then
33080   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33081   ac_eof=`expr $ac_eof + 1`
33082 fi
33083
33084 cat >>$CONFIG_STATUS <<_ACEOF
33085 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
33086 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33087 _ACEOF
33088 sed '
33089 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33090 s/^/s,@/; s/!/@,|#_!!_#|/
33091 :n
33092 t n
33093 s/'"$ac_delim"'$/,g/; t
33094 s/$/\\/; p
33095 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33096 ' >>$CONFIG_STATUS <conf$$subs.sed
33097 rm -f conf$$subs.sed
33098 cat >>$CONFIG_STATUS <<_ACEOF
33099 CEOF$ac_eof
33100 _ACEOF
33101
33102
33103 ac_delim='%!_!# '
33104 for ac_last_try in false false false false false :; do
33105   cat >conf$$subs.sed <<_ACEOF
33106 ifGNUmake!$ifGNUmake$ac_delim
33107 LN_S!$LN_S$ac_delim
33108 CMP!$CMP$ac_delim
33109 CP!$CP$ac_delim
33110 DATE!$DATE$ac_delim
33111 FIND!$FIND$ac_delim
33112 MKDIR!$MKDIR$ac_delim
33113 MV!$MV$ac_delim
33114 RANLIB!$RANLIB$ac_delim
33115 RM!$RM$ac_delim
33116 SED!$SED$ac_delim
33117 TAR!$TAR$ac_delim
33118 BINPWD!$BINPWD$ac_delim
33119 GRAPHVIZ!$GRAPHVIZ$ac_delim
33120 DOT!$DOT$ac_delim
33121 GV!$GV$ac_delim
33122 DOTTY!$DOTTY$ac_delim
33123 PERL!$PERL$ac_delim
33124 HAVE_PERL!$HAVE_PERL$ac_delim
33125 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
33126 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
33127 INSTALL_DATA!$INSTALL_DATA$ac_delim
33128 BZIP2!$BZIP2$ac_delim
33129 DOXYGEN!$DOXYGEN$ac_delim
33130 GROFF!$GROFF$ac_delim
33131 GZIP!$GZIP$ac_delim
33132 POD2HTML!$POD2HTML$ac_delim
33133 POD2MAN!$POD2MAN$ac_delim
33134 RUNTEST!$RUNTEST$ac_delim
33135 TCLSH!$TCLSH$ac_delim
33136 ZIP!$ZIP$ac_delim
33137 OCAMLC!$OCAMLC$ac_delim
33138 OCAMLOPT!$OCAMLOPT$ac_delim
33139 OCAMLDEP!$OCAMLDEP$ac_delim
33140 OCAMLDOC!$OCAMLDOC$ac_delim
33141 GAS!$GAS$ac_delim
33142 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
33143 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
33144 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
33145 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
33146 LIBADD_DL!$LIBADD_DL$ac_delim
33147 ECHO!$ECHO$ac_delim
33148 AR!$AR$ac_delim
33149 STRIP!$STRIP$ac_delim
33150 CXXCPP!$CXXCPP$ac_delim
33151 F77!$F77$ac_delim
33152 FFLAGS!$FFLAGS$ac_delim
33153 ac_ct_F77!$ac_ct_F77$ac_delim
33154 LIBTOOL!$LIBTOOL$ac_delim
33155 LLVMGCC!$LLVMGCC$ac_delim
33156 LLVMGXX!$LLVMGXX$ac_delim
33157 USE_UDIS86!$USE_UDIS86$ac_delim
33158 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
33159 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
33160 ALLOCA!$ALLOCA$ac_delim
33161 MMAP_FILE!$MMAP_FILE$ac_delim
33162 LLVMCC1!$LLVMCC1$ac_delim
33163 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
33164 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
33165 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
33166 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
33167 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
33168 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
33169 SHLIBEXT!$SHLIBEXT$ac_delim
33170 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
33171 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
33172 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
33173 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
33174 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
33175 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
33176 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
33177 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
33178 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
33179 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
33180 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
33181 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
33182 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
33183 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
33184 LIBOBJS!$LIBOBJS$ac_delim
33185 LTLIBOBJS!$LTLIBOBJS$ac_delim
33186 _ACEOF
33187
33188   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
33189     break
33190   elif $ac_last_try; then
33191     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33192 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33193    { (exit 1); exit 1; }; }
33194   else
33195     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33196   fi
33197 done
33198
33199 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33200 if test -n "$ac_eof"; then
33201   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33202   ac_eof=`expr $ac_eof + 1`
33203 fi
33204
33205 cat >>$CONFIG_STATUS <<_ACEOF
33206 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
33207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
33208 _ACEOF
33209 sed '
33210 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33211 s/^/s,@/; s/!/@,|#_!!_#|/
33212 :n
33213 t n
33214 s/'"$ac_delim"'$/,g/; t
33215 s/$/\\/; p
33216 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33217 ' >>$CONFIG_STATUS <conf$$subs.sed
33218 rm -f conf$$subs.sed
33219 cat >>$CONFIG_STATUS <<_ACEOF
33220 :end
33221 s/|#_!!_#|//g
33222 CEOF$ac_eof
33223 _ACEOF
33224
33225
33226 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33227 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33228 # trailing colons and then remove the whole line if VPATH becomes empty
33229 # (actually we leave an empty line to preserve line numbers).
33230 if test "x$srcdir" = x.; then
33231   ac_vpsub='/^[  ]*VPATH[        ]*=/{
33232 s/:*\$(srcdir):*/:/
33233 s/:*\${srcdir}:*/:/
33234 s/:*@srcdir@:*/:/
33235 s/^\([^=]*=[     ]*\):*/\1/
33236 s/:*$//
33237 s/^[^=]*=[       ]*$//
33238 }'
33239 fi
33240
33241 cat >>$CONFIG_STATUS <<\_ACEOF
33242 fi # test -n "$CONFIG_FILES"
33243
33244
33245 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
33246 do
33247   case $ac_tag in
33248   :[FHLC]) ac_mode=$ac_tag; continue;;
33249   esac
33250   case $ac_mode$ac_tag in
33251   :[FHL]*:*);;
33252   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
33253 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
33254    { (exit 1); exit 1; }; };;
33255   :[FH]-) ac_tag=-:-;;
33256   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33257   esac
33258   ac_save_IFS=$IFS
33259   IFS=:
33260   set x $ac_tag
33261   IFS=$ac_save_IFS
33262   shift
33263   ac_file=$1
33264   shift
33265
33266   case $ac_mode in
33267   :L) ac_source=$1;;
33268   :[FH])
33269     ac_file_inputs=
33270     for ac_f
33271     do
33272       case $ac_f in
33273       -) ac_f="$tmp/stdin";;
33274       *) # Look for the file first in the build tree, then in the source tree
33275          # (if the path is not absolute).  The absolute path cannot be DOS-style,
33276          # because $ac_f cannot contain `:'.
33277          test -f "$ac_f" ||
33278            case $ac_f in
33279            [\\/$]*) false;;
33280            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33281            esac ||
33282            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33283 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33284    { (exit 1); exit 1; }; };;
33285       esac
33286       ac_file_inputs="$ac_file_inputs $ac_f"
33287     done
33288
33289     # Let's still pretend it is `configure' which instantiates (i.e., don't
33290     # use $as_me), people would be surprised to read:
33291     #    /* config.h.  Generated by config.status.  */
33292     configure_input="Generated from "`IFS=:
33293           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33294     if test x"$ac_file" != x-; then
33295       configure_input="$ac_file.  $configure_input"
33296       { echo "$as_me:$LINENO: creating $ac_file" >&5
33297 echo "$as_me: creating $ac_file" >&6;}
33298     fi
33299
33300     case $ac_tag in
33301     *:-:* | *:-) cat >"$tmp/stdin";;
33302     esac
33303     ;;
33304   esac
33305
33306   ac_dir=`$as_dirname -- "$ac_file" ||
33307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33308          X"$ac_file" : 'X\(//\)[^/]' \| \
33309          X"$ac_file" : 'X\(//\)$' \| \
33310          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33311 echo X"$ac_file" |
33312     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33313             s//\1/
33314             q
33315           }
33316           /^X\(\/\/\)[^/].*/{
33317             s//\1/
33318             q
33319           }
33320           /^X\(\/\/\)$/{
33321             s//\1/
33322             q
33323           }
33324           /^X\(\/\).*/{
33325             s//\1/
33326             q
33327           }
33328           s/.*/./; q'`
33329   { as_dir="$ac_dir"
33330   case $as_dir in #(
33331   -*) as_dir=./$as_dir;;
33332   esac
33333   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33334     as_dirs=
33335     while :; do
33336       case $as_dir in #(
33337       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33338       *) as_qdir=$as_dir;;
33339       esac
33340       as_dirs="'$as_qdir' $as_dirs"
33341       as_dir=`$as_dirname -- "$as_dir" ||
33342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33343          X"$as_dir" : 'X\(//\)[^/]' \| \
33344          X"$as_dir" : 'X\(//\)$' \| \
33345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33346 echo X"$as_dir" |
33347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33348             s//\1/
33349             q
33350           }
33351           /^X\(\/\/\)[^/].*/{
33352             s//\1/
33353             q
33354           }
33355           /^X\(\/\/\)$/{
33356             s//\1/
33357             q
33358           }
33359           /^X\(\/\).*/{
33360             s//\1/
33361             q
33362           }
33363           s/.*/./; q'`
33364       test -d "$as_dir" && break
33365     done
33366     test -z "$as_dirs" || eval "mkdir $as_dirs"
33367   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33368 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33369    { (exit 1); exit 1; }; }; }
33370   ac_builddir=.
33371
33372 case "$ac_dir" in
33373 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33374 *)
33375   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33376   # A ".." for each directory in $ac_dir_suffix.
33377   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33378   case $ac_top_builddir_sub in
33379   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33380   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33381   esac ;;
33382 esac
33383 ac_abs_top_builddir=$ac_pwd
33384 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33385 # for backward compatibility:
33386 ac_top_builddir=$ac_top_build_prefix
33387
33388 case $srcdir in
33389   .)  # We are building in place.
33390     ac_srcdir=.
33391     ac_top_srcdir=$ac_top_builddir_sub
33392     ac_abs_top_srcdir=$ac_pwd ;;
33393   [\\/]* | ?:[\\/]* )  # Absolute name.
33394     ac_srcdir=$srcdir$ac_dir_suffix;
33395     ac_top_srcdir=$srcdir
33396     ac_abs_top_srcdir=$srcdir ;;
33397   *) # Relative name.
33398     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33399     ac_top_srcdir=$ac_top_build_prefix$srcdir
33400     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33401 esac
33402 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33403
33404
33405   case $ac_mode in
33406   :F)
33407   #
33408   # CONFIG_FILE
33409   #
33410
33411   case $INSTALL in
33412   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33413   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33414   esac
33415 _ACEOF
33416
33417 cat >>$CONFIG_STATUS <<\_ACEOF
33418 # If the template does not know about datarootdir, expand it.
33419 # FIXME: This hack should be removed a few years after 2.60.
33420 ac_datarootdir_hack=; ac_datarootdir_seen=
33421
33422 case `sed -n '/datarootdir/ {
33423   p
33424   q
33425 }
33426 /@datadir@/p
33427 /@docdir@/p
33428 /@infodir@/p
33429 /@localedir@/p
33430 /@mandir@/p
33431 ' $ac_file_inputs` in
33432 *datarootdir*) ac_datarootdir_seen=yes;;
33433 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33434   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33435 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33436 _ACEOF
33437 cat >>$CONFIG_STATUS <<_ACEOF
33438   ac_datarootdir_hack='
33439   s&@datadir@&$datadir&g
33440   s&@docdir@&$docdir&g
33441   s&@infodir@&$infodir&g
33442   s&@localedir@&$localedir&g
33443   s&@mandir@&$mandir&g
33444     s&\\\${datarootdir}&$datarootdir&g' ;;
33445 esac
33446 _ACEOF
33447
33448 # Neutralize VPATH when `$srcdir' = `.'.
33449 # Shell code in configure.ac might set extrasub.
33450 # FIXME: do we really want to maintain this feature?
33451 cat >>$CONFIG_STATUS <<_ACEOF
33452   sed "$ac_vpsub
33453 $extrasub
33454 _ACEOF
33455 cat >>$CONFIG_STATUS <<\_ACEOF
33456 :t
33457 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33458 s&@configure_input@&$configure_input&;t t
33459 s&@top_builddir@&$ac_top_builddir_sub&;t t
33460 s&@srcdir@&$ac_srcdir&;t t
33461 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33462 s&@top_srcdir@&$ac_top_srcdir&;t t
33463 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33464 s&@builddir@&$ac_builddir&;t t
33465 s&@abs_builddir@&$ac_abs_builddir&;t t
33466 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33467 s&@INSTALL@&$ac_INSTALL&;t t
33468 $ac_datarootdir_hack
33469 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33470
33471 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33472   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33473   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33474   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33475 which seems to be undefined.  Please make sure it is defined." >&5
33476 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33477 which seems to be undefined.  Please make sure it is defined." >&2;}
33478
33479   rm -f "$tmp/stdin"
33480   case $ac_file in
33481   -) cat "$tmp/out"; rm -f "$tmp/out";;
33482   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33483   esac
33484  ;;
33485   :H)
33486   #
33487   # CONFIG_HEADER
33488   #
33489 _ACEOF
33490
33491 # Transform confdefs.h into a sed script `conftest.defines', that
33492 # substitutes the proper values into config.h.in to produce config.h.
33493 rm -f conftest.defines conftest.tail
33494 # First, append a space to every undef/define line, to ease matching.
33495 echo 's/$/ /' >conftest.defines
33496 # Then, protect against being on the right side of a sed subst, or in
33497 # an unquoted here document, in config.status.  If some macros were
33498 # called several times there might be several #defines for the same
33499 # symbol, which is useless.  But do not sort them, since the last
33500 # AC_DEFINE must be honored.
33501 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33502 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33503 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33504 # PARAMS is the parameter list in the macro definition--in most cases, it's
33505 # just an empty string.
33506 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
33507 ac_dB='\\)[      (].*,\\1define\\2'
33508 ac_dC=' '
33509 ac_dD=' ,'
33510
33511 uniq confdefs.h |
33512   sed -n '
33513         t rset
33514         :rset
33515         s/^[     ]*#[    ]*define[       ][      ]*//
33516         t ok
33517         d
33518         :ok
33519         s/[\\&,]/\\&/g
33520         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33521         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33522   ' >>conftest.defines
33523
33524 # Remove the space that was appended to ease matching.
33525 # Then replace #undef with comments.  This is necessary, for
33526 # example, in the case of _POSIX_SOURCE, which is predefined and required
33527 # on some systems where configure will not decide to define it.
33528 # (The regexp can be short, since the line contains either #define or #undef.)
33529 echo 's/ $//
33530 s,^[     #]*u.*,/* & */,' >>conftest.defines
33531
33532 # Break up conftest.defines:
33533 ac_max_sed_lines=50
33534
33535 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33536 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33537 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33538 # et cetera.
33539 ac_in='$ac_file_inputs'
33540 ac_out='"$tmp/out1"'
33541 ac_nxt='"$tmp/out2"'
33542
33543 while :
33544 do
33545   # Write a here document:
33546     cat >>$CONFIG_STATUS <<_ACEOF
33547     # First, check the format of the line:
33548     cat >"\$tmp/defines.sed" <<\\CEOF
33549 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
33550 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
33551 b
33552 :def
33553 _ACEOF
33554   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33555   echo 'CEOF
33556     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33557   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33558   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33559   grep . conftest.tail >/dev/null || break
33560   rm -f conftest.defines
33561   mv conftest.tail conftest.defines
33562 done
33563 rm -f conftest.defines conftest.tail
33564
33565 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33566 cat >>$CONFIG_STATUS <<\_ACEOF
33567   if test x"$ac_file" != x-; then
33568     echo "/* $configure_input  */" >"$tmp/config.h"
33569     cat "$ac_result" >>"$tmp/config.h"
33570     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33571       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33572 echo "$as_me: $ac_file is unchanged" >&6;}
33573     else
33574       rm -f $ac_file
33575       mv "$tmp/config.h" $ac_file
33576     fi
33577   else
33578     echo "/* $configure_input  */"
33579     cat "$ac_result"
33580   fi
33581   rm -f "$tmp/out12"
33582  ;;
33583
33584   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33585 echo "$as_me: executing $ac_file commands" >&6;}
33586  ;;
33587   esac
33588
33589
33590   case $ac_file$ac_mode in
33591     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33592    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33593     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33594    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33595     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33596    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33597     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33598    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
33599     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33600    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
33601     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33602    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33603     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33604    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
33605     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33606    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33607     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33608    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33609     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33610    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
33611     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33612    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33613     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33614    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
33615
33616   esac
33617 done # for ac_tag
33618
33619
33620 { (exit 0); exit 0; }
33621 _ACEOF
33622 chmod +x $CONFIG_STATUS
33623 ac_clean_files=$ac_clean_files_save
33624
33625
33626 # configure is writing to config.log, and then calls config.status.
33627 # config.status does its own redirection, appending to config.log.
33628 # Unfortunately, on DOS this fails, as config.log is still kept open
33629 # by configure, so config.status won't be able to write to it; its
33630 # output is simply discarded.  So we exec the FD to /dev/null,
33631 # effectively closing config.log, so it can be properly (re)opened and
33632 # appended to by config.status.  When coming back to configure, we
33633 # need to make the FD available again.
33634 if test "$no_create" != yes; then
33635   ac_cs_success=:
33636   ac_config_status_args=
33637   test "$silent" = yes &&
33638     ac_config_status_args="$ac_config_status_args --quiet"
33639   exec 5>/dev/null
33640   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33641   exec 5>>config.log
33642   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33643   # would make configure fail if this is the last instruction.
33644   $ac_cs_success || { (exit 1); exit 1; }
33645 fi
33646
33647 #
33648 # CONFIG_SUBDIRS section.
33649 #
33650 if test "$no_recursion" != yes; then
33651
33652   # Remove --cache-file and --srcdir arguments so they do not pile up.
33653   ac_sub_configure_args=
33654   ac_prev=
33655   eval "set x $ac_configure_args"
33656   shift
33657   for ac_arg
33658   do
33659     if test -n "$ac_prev"; then
33660       ac_prev=
33661       continue
33662     fi
33663     case $ac_arg in
33664     -cache-file | --cache-file | --cache-fil | --cache-fi \
33665     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33666       ac_prev=cache_file ;;
33667     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33668     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33669     | --c=*)
33670       ;;
33671     --config-cache | -C)
33672       ;;
33673     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33674       ac_prev=srcdir ;;
33675     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33676       ;;
33677     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33678       ac_prev=prefix ;;
33679     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33680       ;;
33681     *)
33682       case $ac_arg in
33683       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33684       esac
33685       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
33686     esac
33687   done
33688
33689   # Always prepend --prefix to ensure using the same prefix
33690   # in subdir configurations.
33691   ac_arg="--prefix=$prefix"
33692   case $ac_arg in
33693   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33694   esac
33695   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33696
33697   # Pass --silent
33698   if test "$silent" = yes; then
33699     ac_sub_configure_args="--silent $ac_sub_configure_args"
33700   fi
33701
33702   ac_popdir=`pwd`
33703   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33704
33705     # Do not complain, so a configure script can configure whichever
33706     # parts of a large source tree are present.
33707     test -d "$srcdir/$ac_dir" || continue
33708
33709     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33710     echo "$as_me:$LINENO: $ac_msg" >&5
33711     echo "$ac_msg" >&6
33712     { as_dir="$ac_dir"
33713   case $as_dir in #(
33714   -*) as_dir=./$as_dir;;
33715   esac
33716   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33717     as_dirs=
33718     while :; do
33719       case $as_dir in #(
33720       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33721       *) as_qdir=$as_dir;;
33722       esac
33723       as_dirs="'$as_qdir' $as_dirs"
33724       as_dir=`$as_dirname -- "$as_dir" ||
33725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33726          X"$as_dir" : 'X\(//\)[^/]' \| \
33727          X"$as_dir" : 'X\(//\)$' \| \
33728          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33729 echo X"$as_dir" |
33730     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33731             s//\1/
33732             q
33733           }
33734           /^X\(\/\/\)[^/].*/{
33735             s//\1/
33736             q
33737           }
33738           /^X\(\/\/\)$/{
33739             s//\1/
33740             q
33741           }
33742           /^X\(\/\).*/{
33743             s//\1/
33744             q
33745           }
33746           s/.*/./; q'`
33747       test -d "$as_dir" && break
33748     done
33749     test -z "$as_dirs" || eval "mkdir $as_dirs"
33750   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33751 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33752    { (exit 1); exit 1; }; }; }
33753     ac_builddir=.
33754
33755 case "$ac_dir" in
33756 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33757 *)
33758   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33759   # A ".." for each directory in $ac_dir_suffix.
33760   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33761   case $ac_top_builddir_sub in
33762   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33763   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33764   esac ;;
33765 esac
33766 ac_abs_top_builddir=$ac_pwd
33767 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33768 # for backward compatibility:
33769 ac_top_builddir=$ac_top_build_prefix
33770
33771 case $srcdir in
33772   .)  # We are building in place.
33773     ac_srcdir=.
33774     ac_top_srcdir=$ac_top_builddir_sub
33775     ac_abs_top_srcdir=$ac_pwd ;;
33776   [\\/]* | ?:[\\/]* )  # Absolute name.
33777     ac_srcdir=$srcdir$ac_dir_suffix;
33778     ac_top_srcdir=$srcdir
33779     ac_abs_top_srcdir=$srcdir ;;
33780   *) # Relative name.
33781     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33782     ac_top_srcdir=$ac_top_build_prefix$srcdir
33783     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33784 esac
33785 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33786
33787
33788     cd "$ac_dir"
33789
33790     # Check for guested configure; otherwise get Cygnus style configure.
33791     if test -f "$ac_srcdir/configure.gnu"; then
33792       ac_sub_configure=$ac_srcdir/configure.gnu
33793     elif test -f "$ac_srcdir/configure"; then
33794       ac_sub_configure=$ac_srcdir/configure
33795     elif test -f "$ac_srcdir/configure.in"; then
33796       # This should be Cygnus configure.
33797       ac_sub_configure=$ac_aux_dir/configure
33798     else
33799       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
33800 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33801       ac_sub_configure=
33802     fi
33803
33804     # The recursion is here.
33805     if test -n "$ac_sub_configure"; then
33806       # Make the cache file name correct relative to the subdirectory.
33807       case $cache_file in
33808       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33809       *) # Relative name.
33810         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33811       esac
33812
33813       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33814 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33815       # The eval makes quoting arguments work.
33816       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33817            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33818         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
33819 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33820    { (exit 1); exit 1; }; }
33821     fi
33822
33823     cd "$ac_popdir"
33824   done
33825 fi
33826