Add (very basic) bindings for ModuleProvider.
[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.2svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be 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.2svn'
734 PACKAGE_STRING='llvm 2.2svn'
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 CC
832 CFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CC
836 EXEEXT
837 OBJEXT
838 CPP
839 GREP
840 EGREP
841 ENDIAN
842 LLVM_CROSS_COMPILING
843 BUILD_CC
844 BUILD_EXEEXT
845 CVSBUILD
846 ENABLE_OPTIMIZED
847 DISABLE_ASSERTIONS
848 ENABLE_EXPENSIVE_CHECKS
849 EXPENSIVE_CHECKS
850 DEBUG_RUNTIME
851 JIT
852 TARGET_HAS_JIT
853 ENABLE_DOXYGEN
854 ENABLE_THREADS
855 ENABLE_PIC
856 TARGETS_TO_BUILD
857 ENABLE_CBE_PRINTF_A
858 EXTRA_OPTIONS
859 CXX
860 CXXFLAGS
861 ac_ct_CXX
862 LEX
863 LEX_OUTPUT_ROOT
864 LEXLIB
865 FLEX
866 YACC
867 YFLAGS
868 BISON
869 NM
870 ifGNUmake
871 LN_S
872 CMP
873 CP
874 DATE
875 FIND
876 MKDIR
877 MV
878 RANLIB
879 RM
880 SED
881 TAR
882 BINPWD
883 GRAPHVIZ
884 DOT
885 GV
886 DOTTY
887 PERL
888 HAVE_PERL
889 INSTALL_PROGRAM
890 INSTALL_SCRIPT
891 INSTALL_DATA
892 BZIP2
893 DOXYGEN
894 GROFF
895 GZIP
896 POD2HTML
897 POD2MAN
898 RUNTEST
899 TCLSH
900 ZIP
901 OCAMLC
902 OCAMLOPT
903 OCAMLDEP
904 INSTALL_LTDL_TRUE
905 INSTALL_LTDL_FALSE
906 CONVENIENCE_LTDL_TRUE
907 CONVENIENCE_LTDL_FALSE
908 LIBADD_DL
909 ECHO
910 AR
911 STRIP
912 CXXCPP
913 F77
914 FFLAGS
915 ac_ct_F77
916 LIBTOOL
917 LLVMGCC
918 LLVMGXX
919 USE_UDIS86
920 HAVE_PTHREAD
921 HUGE_VAL_SANITY
922 ALLOCA
923 MMAP_FILE
924 LLVMCC1
925 LLVMCC1PLUS
926 LLVMGCCDIR
927 LLVMGCCLIBEXEC
928 LLVMGCC_VERSION
929 LLVMGCC_MAJVERS
930 LLVMGCC_LANGS
931 SHLIBEXT
932 LLVM_PREFIX
933 LLVM_BINDIR
934 LLVM_LIBDIR
935 LLVM_DATADIR
936 LLVM_DOCSDIR
937 LLVM_ETCDIR
938 LLVM_INCLUDEDIR
939 LLVM_INFODIR
940 LLVM_MANDIR
941 LLVM_CONFIGTIME
942 BINDINGS_TO_BUILD
943 ALL_BINDINGS
944 OCAML_LIBDIR
945 LIBOBJS
946 LTLIBOBJS'
947 ac_subst_files=''
948       ac_precious_vars='build_alias
949 host_alias
950 target_alias
951 CC
952 CFLAGS
953 LDFLAGS
954 LIBS
955 CPPFLAGS
956 CPP
957 CXX
958 CXXFLAGS
959 CCC
960 YACC
961 YFLAGS
962 CXXCPP
963 F77
964 FFLAGS'
965 ac_subdirs_all='projects/sample
966 projects/privbracket
967 projects/llvm-stacker
968 projects/llvm-test
969 projects/llvm-reopt
970 projects/llvm-gcc
971 projects/llvm-java
972 projects/llvm-tv
973 projects/llvm-poolalloc
974 projects/poolalloc
975 projects/llvm-kernel'
976
977 # Initialize some variables set by options.
978 ac_init_help=
979 ac_init_version=false
980 # The variables have the same names as the options, with
981 # dashes changed to underlines.
982 cache_file=/dev/null
983 exec_prefix=NONE
984 no_create=
985 no_recursion=
986 prefix=NONE
987 program_prefix=NONE
988 program_suffix=NONE
989 program_transform_name=s,x,x,
990 silent=
991 site=
992 srcdir=
993 verbose=
994 x_includes=NONE
995 x_libraries=NONE
996
997 # Installation directory options.
998 # These are left unexpanded so users can "make install exec_prefix=/foo"
999 # and all the variables that are supposed to be based on exec_prefix
1000 # by default will actually change.
1001 # Use braces instead of parens because sh, perl, etc. also accept them.
1002 # (The list follows the same order as the GNU Coding Standards.)
1003 bindir='${exec_prefix}/bin'
1004 sbindir='${exec_prefix}/sbin'
1005 libexecdir='${exec_prefix}/libexec'
1006 datarootdir='${prefix}/share'
1007 datadir='${datarootdir}'
1008 sysconfdir='${prefix}/etc'
1009 sharedstatedir='${prefix}/com'
1010 localstatedir='${prefix}/var'
1011 includedir='${prefix}/include'
1012 oldincludedir='/usr/include'
1013 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1014 infodir='${datarootdir}/info'
1015 htmldir='${docdir}'
1016 dvidir='${docdir}'
1017 pdfdir='${docdir}'
1018 psdir='${docdir}'
1019 libdir='${exec_prefix}/lib'
1020 localedir='${datarootdir}/locale'
1021 mandir='${datarootdir}/man'
1022
1023 ac_prev=
1024 ac_dashdash=
1025 for ac_option
1026 do
1027   # If the previous option needs an argument, assign it.
1028   if test -n "$ac_prev"; then
1029     eval $ac_prev=\$ac_option
1030     ac_prev=
1031     continue
1032   fi
1033
1034   case $ac_option in
1035   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1036   *)    ac_optarg=yes ;;
1037   esac
1038
1039   # Accept the important Cygnus configure options, so we can diagnose typos.
1040
1041   case $ac_dashdash$ac_option in
1042   --)
1043     ac_dashdash=yes ;;
1044
1045   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1046     ac_prev=bindir ;;
1047   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1048     bindir=$ac_optarg ;;
1049
1050   -build | --build | --buil | --bui | --bu)
1051     ac_prev=build_alias ;;
1052   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1053     build_alias=$ac_optarg ;;
1054
1055   -cache-file | --cache-file | --cache-fil | --cache-fi \
1056   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1057     ac_prev=cache_file ;;
1058   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1059   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1060     cache_file=$ac_optarg ;;
1061
1062   --config-cache | -C)
1063     cache_file=config.cache ;;
1064
1065   -datadir | --datadir | --datadi | --datad)
1066     ac_prev=datadir ;;
1067   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1068     datadir=$ac_optarg ;;
1069
1070   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1071   | --dataroo | --dataro | --datar)
1072     ac_prev=datarootdir ;;
1073   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1074   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1075     datarootdir=$ac_optarg ;;
1076
1077   -disable-* | --disable-*)
1078     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1079     # Reject names that are not valid shell variable names.
1080     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1081       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1082    { (exit 1); exit 1; }; }
1083     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1084     eval enable_$ac_feature=no ;;
1085
1086   -docdir | --docdir | --docdi | --doc | --do)
1087     ac_prev=docdir ;;
1088   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1089     docdir=$ac_optarg ;;
1090
1091   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1092     ac_prev=dvidir ;;
1093   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1094     dvidir=$ac_optarg ;;
1095
1096   -enable-* | --enable-*)
1097     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1098     # Reject names that are not valid shell variable names.
1099     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1101    { (exit 1); exit 1; }; }
1102     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1103     eval enable_$ac_feature=\$ac_optarg ;;
1104
1105   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107   | --exec | --exe | --ex)
1108     ac_prev=exec_prefix ;;
1109   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111   | --exec=* | --exe=* | --ex=*)
1112     exec_prefix=$ac_optarg ;;
1113
1114   -gas | --gas | --ga | --g)
1115     # Obsolete; use --with-gas.
1116     with_gas=yes ;;
1117
1118   -help | --help | --hel | --he | -h)
1119     ac_init_help=long ;;
1120   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121     ac_init_help=recursive ;;
1122   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123     ac_init_help=short ;;
1124
1125   -host | --host | --hos | --ho)
1126     ac_prev=host_alias ;;
1127   -host=* | --host=* | --hos=* | --ho=*)
1128     host_alias=$ac_optarg ;;
1129
1130   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131     ac_prev=htmldir ;;
1132   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133   | --ht=*)
1134     htmldir=$ac_optarg ;;
1135
1136   -includedir | --includedir | --includedi | --included | --include \
1137   | --includ | --inclu | --incl | --inc)
1138     ac_prev=includedir ;;
1139   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140   | --includ=* | --inclu=* | --incl=* | --inc=*)
1141     includedir=$ac_optarg ;;
1142
1143   -infodir | --infodir | --infodi | --infod | --info | --inf)
1144     ac_prev=infodir ;;
1145   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146     infodir=$ac_optarg ;;
1147
1148   -libdir | --libdir | --libdi | --libd)
1149     ac_prev=libdir ;;
1150   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151     libdir=$ac_optarg ;;
1152
1153   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154   | --libexe | --libex | --libe)
1155     ac_prev=libexecdir ;;
1156   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157   | --libexe=* | --libex=* | --libe=*)
1158     libexecdir=$ac_optarg ;;
1159
1160   -localedir | --localedir | --localedi | --localed | --locale)
1161     ac_prev=localedir ;;
1162   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163     localedir=$ac_optarg ;;
1164
1165   -localstatedir | --localstatedir | --localstatedi | --localstated \
1166   | --localstate | --localstat | --localsta | --localst | --locals)
1167     ac_prev=localstatedir ;;
1168   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1169   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1170     localstatedir=$ac_optarg ;;
1171
1172   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173     ac_prev=mandir ;;
1174   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175     mandir=$ac_optarg ;;
1176
1177   -nfp | --nfp | --nf)
1178     # Obsolete; use --without-fp.
1179     with_fp=no ;;
1180
1181   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182   | --no-cr | --no-c | -n)
1183     no_create=yes ;;
1184
1185   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187     no_recursion=yes ;;
1188
1189   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191   | --oldin | --oldi | --old | --ol | --o)
1192     ac_prev=oldincludedir ;;
1193   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196     oldincludedir=$ac_optarg ;;
1197
1198   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199     ac_prev=prefix ;;
1200   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201     prefix=$ac_optarg ;;
1202
1203   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204   | --program-pre | --program-pr | --program-p)
1205     ac_prev=program_prefix ;;
1206   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208     program_prefix=$ac_optarg ;;
1209
1210   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211   | --program-suf | --program-su | --program-s)
1212     ac_prev=program_suffix ;;
1213   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215     program_suffix=$ac_optarg ;;
1216
1217   -program-transform-name | --program-transform-name \
1218   | --program-transform-nam | --program-transform-na \
1219   | --program-transform-n | --program-transform- \
1220   | --program-transform | --program-transfor \
1221   | --program-transfo | --program-transf \
1222   | --program-trans | --program-tran \
1223   | --progr-tra | --program-tr | --program-t)
1224     ac_prev=program_transform_name ;;
1225   -program-transform-name=* | --program-transform-name=* \
1226   | --program-transform-nam=* | --program-transform-na=* \
1227   | --program-transform-n=* | --program-transform-=* \
1228   | --program-transform=* | --program-transfor=* \
1229   | --program-transfo=* | --program-transf=* \
1230   | --program-trans=* | --program-tran=* \
1231   | --progr-tra=* | --program-tr=* | --program-t=*)
1232     program_transform_name=$ac_optarg ;;
1233
1234   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235     ac_prev=pdfdir ;;
1236   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237     pdfdir=$ac_optarg ;;
1238
1239   -psdir | --psdir | --psdi | --psd | --ps)
1240     ac_prev=psdir ;;
1241   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242     psdir=$ac_optarg ;;
1243
1244   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245   | -silent | --silent | --silen | --sile | --sil)
1246     silent=yes ;;
1247
1248   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249     ac_prev=sbindir ;;
1250   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251   | --sbi=* | --sb=*)
1252     sbindir=$ac_optarg ;;
1253
1254   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256   | --sharedst | --shareds | --shared | --share | --shar \
1257   | --sha | --sh)
1258     ac_prev=sharedstatedir ;;
1259   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262   | --sha=* | --sh=*)
1263     sharedstatedir=$ac_optarg ;;
1264
1265   -site | --site | --sit)
1266     ac_prev=site ;;
1267   -site=* | --site=* | --sit=*)
1268     site=$ac_optarg ;;
1269
1270   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271     ac_prev=srcdir ;;
1272   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273     srcdir=$ac_optarg ;;
1274
1275   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276   | --syscon | --sysco | --sysc | --sys | --sy)
1277     ac_prev=sysconfdir ;;
1278   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280     sysconfdir=$ac_optarg ;;
1281
1282   -target | --target | --targe | --targ | --tar | --ta | --t)
1283     ac_prev=target_alias ;;
1284   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285     target_alias=$ac_optarg ;;
1286
1287   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288     verbose=yes ;;
1289
1290   -version | --version | --versio | --versi | --vers | -V)
1291     ac_init_version=: ;;
1292
1293   -with-* | --with-*)
1294     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295     # Reject names that are not valid shell variable names.
1296     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1297       { echo "$as_me: error: invalid package name: $ac_package" >&2
1298    { (exit 1); exit 1; }; }
1299     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1300     eval with_$ac_package=\$ac_optarg ;;
1301
1302   -without-* | --without-*)
1303     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1304     # Reject names that are not valid shell variable names.
1305     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306       { echo "$as_me: error: invalid package name: $ac_package" >&2
1307    { (exit 1); exit 1; }; }
1308     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1309     eval with_$ac_package=no ;;
1310
1311   --x)
1312     # Obsolete; use --with-x.
1313     with_x=yes ;;
1314
1315   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316   | --x-incl | --x-inc | --x-in | --x-i)
1317     ac_prev=x_includes ;;
1318   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320     x_includes=$ac_optarg ;;
1321
1322   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324     ac_prev=x_libraries ;;
1325   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327     x_libraries=$ac_optarg ;;
1328
1329   -*) { echo "$as_me: error: unrecognized option: $ac_option
1330 Try \`$0 --help' for more information." >&2
1331    { (exit 1); exit 1; }; }
1332     ;;
1333
1334   *=*)
1335     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336     # Reject names that are not valid shell variable names.
1337     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1338       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1339    { (exit 1); exit 1; }; }
1340     eval $ac_envvar=\$ac_optarg
1341     export $ac_envvar ;;
1342
1343   *)
1344     # FIXME: should be removed in autoconf 3.0.
1345     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349     ;;
1350
1351   esac
1352 done
1353
1354 if test -n "$ac_prev"; then
1355   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356   { echo "$as_me: error: missing argument to $ac_option" >&2
1357    { (exit 1); exit 1; }; }
1358 fi
1359
1360 # Be sure to have absolute directory names.
1361 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362                 datadir sysconfdir sharedstatedir localstatedir includedir \
1363                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364                 libdir localedir mandir
1365 do
1366   eval ac_val=\$$ac_var
1367   case $ac_val in
1368     [\\/$]* | ?:[\\/]* )  continue;;
1369     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1370   esac
1371   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1372    { (exit 1); exit 1; }; }
1373 done
1374
1375 # There might be people who depend on the old broken behavior: `$host'
1376 # used to hold the argument of --host etc.
1377 # FIXME: To remove some day.
1378 build=$build_alias
1379 host=$host_alias
1380 target=$target_alias
1381
1382 # FIXME: To remove some day.
1383 if test "x$host_alias" != x; then
1384   if test "x$build_alias" = x; then
1385     cross_compiling=maybe
1386     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1387     If a cross compiler is detected then cross compile mode will be used." >&2
1388   elif test "x$build_alias" != "x$host_alias"; then
1389     cross_compiling=yes
1390   fi
1391 fi
1392
1393 ac_tool_prefix=
1394 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395
1396 test "$silent" = yes && exec 6>/dev/null
1397
1398
1399 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400 ac_ls_di=`ls -di .` &&
1401 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402   { echo "$as_me: error: Working directory cannot be determined" >&2
1403    { (exit 1); exit 1; }; }
1404 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1405   { echo "$as_me: error: pwd does not report name of working directory" >&2
1406    { (exit 1); exit 1; }; }
1407
1408
1409 # Find the source files, if location was not specified.
1410 if test -z "$srcdir"; then
1411   ac_srcdir_defaulted=yes
1412   # Try the directory containing this script, then the parent directory.
1413   ac_confdir=`$as_dirname -- "$0" ||
1414 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415          X"$0" : 'X\(//\)[^/]' \| \
1416          X"$0" : 'X\(//\)$' \| \
1417          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1418 echo X"$0" |
1419     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420             s//\1/
1421             q
1422           }
1423           /^X\(\/\/\)[^/].*/{
1424             s//\1/
1425             q
1426           }
1427           /^X\(\/\/\)$/{
1428             s//\1/
1429             q
1430           }
1431           /^X\(\/\).*/{
1432             s//\1/
1433             q
1434           }
1435           s/.*/./; q'`
1436   srcdir=$ac_confdir
1437   if test ! -r "$srcdir/$ac_unique_file"; then
1438     srcdir=..
1439   fi
1440 else
1441   ac_srcdir_defaulted=no
1442 fi
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1445   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1446    { (exit 1); exit 1; }; }
1447 fi
1448 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449 ac_abs_confdir=`(
1450         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1451    { (exit 1); exit 1; }; }
1452         pwd)`
1453 # When building in place, set srcdir=.
1454 if test "$ac_abs_confdir" = "$ac_pwd"; then
1455   srcdir=.
1456 fi
1457 # Remove unnecessary trailing slashes from srcdir.
1458 # Double slashes in file names in object file debugging info
1459 # mess up M-x gdb in Emacs.
1460 case $srcdir in
1461 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462 esac
1463 for ac_var in $ac_precious_vars; do
1464   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1465   eval ac_env_${ac_var}_value=\$${ac_var}
1466   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1467   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1468 done
1469
1470 #
1471 # Report the --help message.
1472 #
1473 if test "$ac_init_help" = "long"; then
1474   # Omit some internal or obsolete options to make the list less imposing.
1475   # This message is too long to be a string in the A/UX 3.1 sh.
1476   cat <<_ACEOF
1477 \`configure' configures llvm 2.2svn to adapt to many kinds of systems.
1478
1479 Usage: $0 [OPTION]... [VAR=VALUE]...
1480
1481 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1482 VAR=VALUE.  See below for descriptions of some of the useful variables.
1483
1484 Defaults for the options are specified in brackets.
1485
1486 Configuration:
1487   -h, --help              display this help and exit
1488       --help=short        display options specific to this package
1489       --help=recursive    display the short help of all the included packages
1490   -V, --version           display version information and exit
1491   -q, --quiet, --silent   do not print \`checking...' messages
1492       --cache-file=FILE   cache test results in FILE [disabled]
1493   -C, --config-cache      alias for \`--cache-file=config.cache'
1494   -n, --no-create         do not create output files
1495       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1496
1497 Installation directories:
1498   --prefix=PREFIX         install architecture-independent files in PREFIX
1499                           [$ac_default_prefix]
1500   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1501                           [PREFIX]
1502
1503 By default, \`make install' will install all the files in
1504 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1505 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1506 for instance \`--prefix=\$HOME'.
1507
1508 For better control, use the options below.
1509
1510 Fine tuning of the installation directories:
1511   --bindir=DIR           user executables [EPREFIX/bin]
1512   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1513   --libexecdir=DIR       program executables [EPREFIX/libexec]
1514   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1515   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1516   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1517   --libdir=DIR           object code libraries [EPREFIX/lib]
1518   --includedir=DIR       C header files [PREFIX/include]
1519   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1520   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1521   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1522   --infodir=DIR          info documentation [DATAROOTDIR/info]
1523   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1524   --mandir=DIR           man documentation [DATAROOTDIR/man]
1525   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1526   --htmldir=DIR          html documentation [DOCDIR]
1527   --dvidir=DIR           dvi documentation [DOCDIR]
1528   --pdfdir=DIR           pdf documentation [DOCDIR]
1529   --psdir=DIR            ps documentation [DOCDIR]
1530 _ACEOF
1531
1532   cat <<\_ACEOF
1533
1534 System types:
1535   --build=BUILD     configure for building on BUILD [guessed]
1536   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1537   --target=TARGET   configure for building compilers for TARGET [HOST]
1538 _ACEOF
1539 fi
1540
1541 if test -n "$ac_init_help"; then
1542   case $ac_init_help in
1543      short | recursive ) echo "Configuration of llvm 2.2svn:";;
1544    esac
1545   cat <<\_ACEOF
1546
1547 Optional Features:
1548   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1549   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1550   --enable-optimized
1551   --enable-assertions
1552   --enable-expensive-checks
1553
1554   --enable-debug-runtime
1555   --enable-jit            Enable Just In Time Compiling (default is YES)
1556   --enable-doxygen        Build doxygen documentation (default is NO)
1557   --enable-threads        Use threads if available (default is YES)
1558   --enable-pic            Build LLVM with Position Independent Code (default
1559                           is NO)
1560   --enable-targets        Build specific host targets:
1561                           all,host-only,{target-name} (default=all)
1562   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1563                           %a (default is YES)
1564   --enable-bindings       Build specific language bindings:
1565                           all,auto,none,{binding-name} (default=auto)
1566   --enable-ltdl-install   install libltdl
1567   --enable-shared[=PKGS]  build shared libraries
1568                           [default=yes]
1569   --enable-static[=PKGS]  build static libraries
1570                           [default=yes]
1571   --enable-fast-install[=PKGS]
1572                           optimize for fast installation
1573                           [default=yes]
1574   --disable-libtool-lock  avoid locking (might break parallel builds)
1575
1576 Optional Packages:
1577   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1578   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1579   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1580                           searches PATH)
1581   --with-llvmgcc          Specify location of llvm-gcc driver (default
1582                           searches PATH)
1583   --with-llvmgxx          Specify location of llvm-g++ driver (default
1584                           searches PATH)
1585   --with-extra-options    Specify addtional options to compile LLVM with
1586   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1587                           is stdlib)
1588   --with-tclinclude       directory where tcl headers are
1589   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1590   --with-pic              try to use only PIC/non-PIC objects [default=use
1591                           both]
1592   --with-tags[=TAGS]      include additional configurations [automatic]
1593   --with-udis86=<path>    Use udis86 external x86 disassembler library
1594
1595 Some influential environment variables:
1596   CC          C compiler command
1597   CFLAGS      C compiler flags
1598   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1599               nonstandard directory <lib dir>
1600   LIBS        libraries to pass to the linker, e.g. -l<library>
1601   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1602               you have headers in a nonstandard directory <include dir>
1603   CPP         C preprocessor
1604   CXX         C++ compiler command
1605   CXXFLAGS    C++ compiler flags
1606   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1607               the first program found out of: `bison -y', `byacc', `yacc'.
1608   YFLAGS      The list of arguments that will be passed by default to $YACC.
1609               This script will default YFLAGS to the empty string to avoid a
1610               default value of `-d' given by some make applications.
1611   CXXCPP      C++ preprocessor
1612   F77         Fortran 77 compiler command
1613   FFLAGS      Fortran 77 compiler flags
1614
1615 Use these variables to override the choices made by `configure' or to help
1616 it to find libraries and programs with nonstandard names/locations.
1617
1618 Report bugs to <llvmbugs@cs.uiuc.edu>.
1619 _ACEOF
1620 ac_status=$?
1621 fi
1622
1623 if test "$ac_init_help" = "recursive"; then
1624   # If there are subdirs, report their specific --help.
1625   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1626     test -d "$ac_dir" || continue
1627     ac_builddir=.
1628
1629 case "$ac_dir" in
1630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *)
1632   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1633   # A ".." for each directory in $ac_dir_suffix.
1634   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1635   case $ac_top_builddir_sub in
1636   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638   esac ;;
1639 esac
1640 ac_abs_top_builddir=$ac_pwd
1641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642 # for backward compatibility:
1643 ac_top_builddir=$ac_top_build_prefix
1644
1645 case $srcdir in
1646   .)  # We are building in place.
1647     ac_srcdir=.
1648     ac_top_srcdir=$ac_top_builddir_sub
1649     ac_abs_top_srcdir=$ac_pwd ;;
1650   [\\/]* | ?:[\\/]* )  # Absolute name.
1651     ac_srcdir=$srcdir$ac_dir_suffix;
1652     ac_top_srcdir=$srcdir
1653     ac_abs_top_srcdir=$srcdir ;;
1654   *) # Relative name.
1655     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656     ac_top_srcdir=$ac_top_build_prefix$srcdir
1657     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1658 esac
1659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660
1661     cd "$ac_dir" || { ac_status=$?; continue; }
1662     # Check for guested configure.
1663     if test -f "$ac_srcdir/configure.gnu"; then
1664       echo &&
1665       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666     elif test -f "$ac_srcdir/configure"; then
1667       echo &&
1668       $SHELL "$ac_srcdir/configure" --help=recursive
1669     else
1670       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671     fi || ac_status=$?
1672     cd "$ac_pwd" || { ac_status=$?; break; }
1673   done
1674 fi
1675
1676 test -n "$ac_init_help" && exit $ac_status
1677 if $ac_init_version; then
1678   cat <<\_ACEOF
1679 llvm configure 2.2svn
1680 generated by GNU Autoconf 2.61
1681
1682 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1683 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1684 This configure script is free software; the Free Software Foundation
1685 gives unlimited permission to copy, distribute and modify it.
1686
1687 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1688 _ACEOF
1689   exit
1690 fi
1691 cat >config.log <<_ACEOF
1692 This file contains any messages produced by compilers while
1693 running configure, to aid debugging if configure makes a mistake.
1694
1695 It was created by llvm $as_me 2.2svn, which was
1696 generated by GNU Autoconf 2.61.  Invocation command line was
1697
1698   $ $0 $@
1699
1700 _ACEOF
1701 exec 5>>config.log
1702 {
1703 cat <<_ASUNAME
1704 ## --------- ##
1705 ## Platform. ##
1706 ## --------- ##
1707
1708 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1709 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1710 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1711 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1712 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1713
1714 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1715 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1716
1717 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1718 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1719 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1720 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1721 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1722 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1723 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1724
1725 _ASUNAME
1726
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 for as_dir in $PATH
1729 do
1730   IFS=$as_save_IFS
1731   test -z "$as_dir" && as_dir=.
1732   echo "PATH: $as_dir"
1733 done
1734 IFS=$as_save_IFS
1735
1736 } >&5
1737
1738 cat >&5 <<_ACEOF
1739
1740
1741 ## ----------- ##
1742 ## Core tests. ##
1743 ## ----------- ##
1744
1745 _ACEOF
1746
1747
1748 # Keep a trace of the command line.
1749 # Strip out --no-create and --no-recursion so they do not pile up.
1750 # Strip out --silent because we don't want to record it for future runs.
1751 # Also quote any args containing shell meta-characters.
1752 # Make two passes to allow for proper duplicate-argument suppression.
1753 ac_configure_args=
1754 ac_configure_args0=
1755 ac_configure_args1=
1756 ac_must_keep_next=false
1757 for ac_pass in 1 2
1758 do
1759   for ac_arg
1760   do
1761     case $ac_arg in
1762     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1763     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1764     | -silent | --silent | --silen | --sile | --sil)
1765       continue ;;
1766     *\'*)
1767       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1768     esac
1769     case $ac_pass in
1770     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1771     2)
1772       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1773       if test $ac_must_keep_next = true; then
1774         ac_must_keep_next=false # Got value, back to normal.
1775       else
1776         case $ac_arg in
1777           *=* | --config-cache | -C | -disable-* | --disable-* \
1778           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1779           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1780           | -with-* | --with-* | -without-* | --without-* | --x)
1781             case "$ac_configure_args0 " in
1782               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1783             esac
1784             ;;
1785           -* ) ac_must_keep_next=true ;;
1786         esac
1787       fi
1788       ac_configure_args="$ac_configure_args '$ac_arg'"
1789       ;;
1790     esac
1791   done
1792 done
1793 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1794 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1795
1796 # When interrupted or exit'd, cleanup temporary files, and complete
1797 # config.log.  We remove comments because anyway the quotes in there
1798 # would cause problems or look ugly.
1799 # WARNING: Use '\'' to represent an apostrophe within the trap.
1800 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1801 trap 'exit_status=$?
1802   # Save into config.log some information that might help in debugging.
1803   {
1804     echo
1805
1806     cat <<\_ASBOX
1807 ## ---------------- ##
1808 ## Cache variables. ##
1809 ## ---------------- ##
1810 _ASBOX
1811     echo
1812     # The following way of writing the cache mishandles newlines in values,
1813 (
1814   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1815     eval ac_val=\$$ac_var
1816     case $ac_val in #(
1817     *${as_nl}*)
1818       case $ac_var in #(
1819       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1820 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1821       esac
1822       case $ac_var in #(
1823       _ | IFS | as_nl) ;; #(
1824       *) $as_unset $ac_var ;;
1825       esac ;;
1826     esac
1827   done
1828   (set) 2>&1 |
1829     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1830     *${as_nl}ac_space=\ *)
1831       sed -n \
1832         "s/'\''/'\''\\\\'\'''\''/g;
1833           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1834       ;; #(
1835     *)
1836       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1837       ;;
1838     esac |
1839     sort
1840 )
1841     echo
1842
1843     cat <<\_ASBOX
1844 ## ----------------- ##
1845 ## Output variables. ##
1846 ## ----------------- ##
1847 _ASBOX
1848     echo
1849     for ac_var in $ac_subst_vars
1850     do
1851       eval ac_val=\$$ac_var
1852       case $ac_val in
1853       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854       esac
1855       echo "$ac_var='\''$ac_val'\''"
1856     done | sort
1857     echo
1858
1859     if test -n "$ac_subst_files"; then
1860       cat <<\_ASBOX
1861 ## ------------------- ##
1862 ## File substitutions. ##
1863 ## ------------------- ##
1864 _ASBOX
1865       echo
1866       for ac_var in $ac_subst_files
1867       do
1868         eval ac_val=\$$ac_var
1869         case $ac_val in
1870         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1871         esac
1872         echo "$ac_var='\''$ac_val'\''"
1873       done | sort
1874       echo
1875     fi
1876
1877     if test -s confdefs.h; then
1878       cat <<\_ASBOX
1879 ## ----------- ##
1880 ## confdefs.h. ##
1881 ## ----------- ##
1882 _ASBOX
1883       echo
1884       cat confdefs.h
1885       echo
1886     fi
1887     test "$ac_signal" != 0 &&
1888       echo "$as_me: caught signal $ac_signal"
1889     echo "$as_me: exit $exit_status"
1890   } >&5
1891   rm -f core *.core core.conftest.* &&
1892     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1893     exit $exit_status
1894 ' 0
1895 for ac_signal in 1 2 13 15; do
1896   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1897 done
1898 ac_signal=0
1899
1900 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1901 rm -f -r conftest* confdefs.h
1902
1903 # Predefined preprocessor variables.
1904
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_NAME "$PACKAGE_NAME"
1907 _ACEOF
1908
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1912 _ACEOF
1913
1914
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1917 _ACEOF
1918
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_STRING "$PACKAGE_STRING"
1922 _ACEOF
1923
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1927 _ACEOF
1928
1929
1930 # Let the site file select an alternate cache file if it wants to.
1931 # Prefer explicitly selected file to automatically selected ones.
1932 if test -n "$CONFIG_SITE"; then
1933   set x "$CONFIG_SITE"
1934 elif test "x$prefix" != xNONE; then
1935   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1936 else
1937   set x "$ac_default_prefix/share/config.site" \
1938         "$ac_default_prefix/etc/config.site"
1939 fi
1940 shift
1941 for ac_site_file
1942 do
1943   if test -r "$ac_site_file"; then
1944     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1945 echo "$as_me: loading site script $ac_site_file" >&6;}
1946     sed 's/^/| /' "$ac_site_file" >&5
1947     . "$ac_site_file"
1948   fi
1949 done
1950
1951 if test -r "$cache_file"; then
1952   # Some versions of bash will fail to source /dev/null (special
1953   # files actually), so we avoid doing that.
1954   if test -f "$cache_file"; then
1955     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1956 echo "$as_me: loading cache $cache_file" >&6;}
1957     case $cache_file in
1958       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1959       *)                      . "./$cache_file";;
1960     esac
1961   fi
1962 else
1963   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1964 echo "$as_me: creating cache $cache_file" >&6;}
1965   >$cache_file
1966 fi
1967
1968 # Check that the precious variables saved in the cache have kept the same
1969 # value.
1970 ac_cache_corrupted=false
1971 for ac_var in $ac_precious_vars; do
1972   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973   eval ac_new_set=\$ac_env_${ac_var}_set
1974   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975   eval ac_new_val=\$ac_env_${ac_var}_value
1976   case $ac_old_set,$ac_new_set in
1977     set,)
1978       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980       ac_cache_corrupted=: ;;
1981     ,set)
1982       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1983 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984       ac_cache_corrupted=: ;;
1985     ,);;
1986     *)
1987       if test "x$ac_old_val" != "x$ac_new_val"; then
1988         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1989 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1990         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1991 echo "$as_me:   former value:  $ac_old_val" >&2;}
1992         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1993 echo "$as_me:   current value: $ac_new_val" >&2;}
1994         ac_cache_corrupted=:
1995       fi;;
1996   esac
1997   # Pass precious variables to config.status.
1998   if test "$ac_new_set" = set; then
1999     case $ac_new_val in
2000     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2001     *) ac_arg=$ac_var=$ac_new_val ;;
2002     esac
2003     case " $ac_configure_args " in
2004       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2005       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2006     esac
2007   fi
2008 done
2009 if $ac_cache_corrupted; then
2010   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2011 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2012   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2013 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2014    { (exit 1); exit 1; }; }
2015 fi
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041 ac_ext=c
2042 ac_cpp='$CPP $CPPFLAGS'
2043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2046
2047
2048
2049 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2050
2051
2052
2053
2054
2055
2056
2057 ac_aux_dir=
2058 for ac_dir in autoconf "$srcdir"/autoconf; do
2059   if test -f "$ac_dir/install-sh"; then
2060     ac_aux_dir=$ac_dir
2061     ac_install_sh="$ac_aux_dir/install-sh -c"
2062     break
2063   elif test -f "$ac_dir/install.sh"; then
2064     ac_aux_dir=$ac_dir
2065     ac_install_sh="$ac_aux_dir/install.sh -c"
2066     break
2067   elif test -f "$ac_dir/shtool"; then
2068     ac_aux_dir=$ac_dir
2069     ac_install_sh="$ac_aux_dir/shtool install -c"
2070     break
2071   fi
2072 done
2073 if test -z "$ac_aux_dir"; then
2074   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2075 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2076    { (exit 1); exit 1; }; }
2077 fi
2078
2079 # These three variables are undocumented and unsupported,
2080 # and are intended to be withdrawn in a future Autoconf release.
2081 # They can cause serious problems if a builder's source tree is in a directory
2082 # whose full name contains unusual characters.
2083 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2084 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2085 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2086
2087
2088
2089 if test ${srcdir} != "." ; then
2090   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2091     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2092 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2093    { (exit 1); exit 1; }; }
2094   fi
2095 fi
2096
2097 for i in `ls ${srcdir}/projects`
2098 do
2099   if test -d ${srcdir}/projects/${i} ; then
2100     case ${i} in
2101       CVS) ;;
2102       sample)       subdirs="$subdirs projects/sample"
2103     ;;
2104       privbracket)  subdirs="$subdirs projects/privbracket"
2105  ;;
2106       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2107  ;;
2108       llvm-test)    subdirs="$subdirs projects/llvm-test"
2109  ;;
2110       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2111 ;;
2112       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2113   ;;
2114       llvm-java)    subdirs="$subdirs projects/llvm-java"
2115  ;;
2116       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2117    ;;
2118       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2119  ;;
2120       poolalloc)    subdirs="$subdirs projects/poolalloc"
2121  ;;
2122       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2123  ;;
2124       *)
2125         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2126 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2127         ;;
2128     esac
2129   fi
2130 done
2131
2132
2133 # Make sure we can run config.sub.
2134 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2135   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2136 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2137    { (exit 1); exit 1; }; }
2138
2139 { echo "$as_me:$LINENO: checking build system type" >&5
2140 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2141 if test "${ac_cv_build+set}" = set; then
2142   echo $ECHO_N "(cached) $ECHO_C" >&6
2143 else
2144   ac_build_alias=$build_alias
2145 test "x$ac_build_alias" = x &&
2146   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2147 test "x$ac_build_alias" = x &&
2148   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2149 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2150    { (exit 1); exit 1; }; }
2151 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2152   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2153 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2154    { (exit 1); exit 1; }; }
2155
2156 fi
2157 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2158 echo "${ECHO_T}$ac_cv_build" >&6; }
2159 case $ac_cv_build in
2160 *-*-*) ;;
2161 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2162 echo "$as_me: error: invalid value of canonical build" >&2;}
2163    { (exit 1); exit 1; }; };;
2164 esac
2165 build=$ac_cv_build
2166 ac_save_IFS=$IFS; IFS='-'
2167 set x $ac_cv_build
2168 shift
2169 build_cpu=$1
2170 build_vendor=$2
2171 shift; shift
2172 # Remember, the first character of IFS is used to create $*,
2173 # except with old shells:
2174 build_os=$*
2175 IFS=$ac_save_IFS
2176 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2177
2178
2179 { echo "$as_me:$LINENO: checking host system type" >&5
2180 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2181 if test "${ac_cv_host+set}" = set; then
2182   echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184   if test "x$host_alias" = x; then
2185   ac_cv_host=$ac_cv_build
2186 else
2187   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2188     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2189 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2190    { (exit 1); exit 1; }; }
2191 fi
2192
2193 fi
2194 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2195 echo "${ECHO_T}$ac_cv_host" >&6; }
2196 case $ac_cv_host in
2197 *-*-*) ;;
2198 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2199 echo "$as_me: error: invalid value of canonical host" >&2;}
2200    { (exit 1); exit 1; }; };;
2201 esac
2202 host=$ac_cv_host
2203 ac_save_IFS=$IFS; IFS='-'
2204 set x $ac_cv_host
2205 shift
2206 host_cpu=$1
2207 host_vendor=$2
2208 shift; shift
2209 # Remember, the first character of IFS is used to create $*,
2210 # except with old shells:
2211 host_os=$*
2212 IFS=$ac_save_IFS
2213 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2214
2215
2216 { echo "$as_me:$LINENO: checking target system type" >&5
2217 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2218 if test "${ac_cv_target+set}" = set; then
2219   echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221   if test "x$target_alias" = x; then
2222   ac_cv_target=$ac_cv_host
2223 else
2224   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2225     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2226 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2227    { (exit 1); exit 1; }; }
2228 fi
2229
2230 fi
2231 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2232 echo "${ECHO_T}$ac_cv_target" >&6; }
2233 case $ac_cv_target in
2234 *-*-*) ;;
2235 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2236 echo "$as_me: error: invalid value of canonical target" >&2;}
2237    { (exit 1); exit 1; }; };;
2238 esac
2239 target=$ac_cv_target
2240 ac_save_IFS=$IFS; IFS='-'
2241 set x $ac_cv_target
2242 shift
2243 target_cpu=$1
2244 target_vendor=$2
2245 shift; shift
2246 # Remember, the first character of IFS is used to create $*,
2247 # except with old shells:
2248 target_os=$*
2249 IFS=$ac_save_IFS
2250 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2251
2252
2253 # The aliases save the names the user supplied, while $host etc.
2254 # will get canonicalized.
2255 test -n "$target_alias" &&
2256   test "$program_prefix$program_suffix$program_transform_name" = \
2257     NONENONEs,x,x, &&
2258   program_prefix=${target_alias}-
2259
2260 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2261 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2262 if test "${llvm_cv_os_type+set}" = set; then
2263   echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265   case $host in
2266   *-*-aix*)
2267     llvm_cv_link_all_option="-Wl,--whole-archive"
2268     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2269     llvm_cv_os_type="AIX"
2270     llvm_cv_platform_type="Unix" ;;
2271   *-*-irix*)
2272     llvm_cv_link_all_option="-Wl,--whole-archive"
2273     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2274     llvm_cv_os_type="IRIX"
2275     llvm_cv_platform_type="Unix" ;;
2276   *-*-cygwin*)
2277     llvm_cv_link_all_option="-Wl,--whole-archive"
2278     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279     llvm_cv_os_type="Cygwin"
2280     llvm_cv_platform_type="Unix" ;;
2281   *-*-darwin*)
2282     llvm_cv_link_all_option="-Wl,-all_load"
2283     llvm_cv_link_all_option="-Wl,-noall_load"
2284     llvm_cv_os_type="Darwin"
2285     llvm_cv_platform_type="Unix" ;;
2286   *-*-freebsd*)
2287     llvm_cv_link_all_option="-Wl,--whole-archive"
2288     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289     llvm_cv_os_type="FreeBSD"
2290     llvm_cv_platform_type="Unix" ;;
2291   *-*-openbsd*)
2292     llvm_cv_link_all_option="-Wl,--whole-archive"
2293     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294     llvm_cv_os_type="OpenBSD"
2295     llvm_cv_platform_type="Unix" ;;
2296   *-*-netbsd*)
2297     llvm_cv_link_all_option="-Wl,--whole-archive"
2298     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2299     llvm_cv_os_type="NetBSD"
2300     llvm_cv_platform_type="Unix" ;;
2301   *-*-hpux*)
2302     llvm_cv_link_all_option="-Wl,--whole-archive"
2303     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2304     llvm_cv_os_type="HP-UX"
2305     llvm_cv_platform_type="Unix" ;;
2306   *-*-interix*)
2307     llvm_cv_link_all_option="-Wl,--whole-archive"
2308     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2309     llvm_cv_os_type="Interix"
2310     llvm_cv_platform_type="Unix" ;;
2311   *-*-linux*)
2312     llvm_cv_link_all_option="-Wl,--whole-archive"
2313     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314     llvm_cv_os_type="Linux"
2315     llvm_cv_platform_type="Unix" ;;
2316   *-*-solaris*)
2317     llvm_cv_link_all_option="-Wl,-z,allextract"
2318     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2319     llvm_cv_os_type="SunOS"
2320     llvm_cv_platform_type="Unix" ;;
2321   *-*-win32*)
2322     llvm_cv_link_all_option="-Wl,--whole-archive"
2323     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2324     llvm_cv_os_type="Win32"
2325     llvm_cv_platform_type="Win32" ;;
2326   *-*-mingw*)
2327     llvm_cv_link_all_option="-Wl,--whole-archive"
2328     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2329     llvm_cv_os_type="MingW"
2330     llvm_cv_platform_type="Win32" ;;
2331   *)
2332     llvm_cv_link_all_option=""
2333     llvm_cv_no_link_all_option=""
2334     llvm_cv_os_type="Unknown"
2335     llvm_cv_platform_type="Unknown" ;;
2336 esac
2337 fi
2338 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2339 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2340
2341 if test "$llvm_cv_os_type" = "Unknown" ; then
2342   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2343 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2344    { (exit 1); exit 1; }; }
2345 fi
2346
2347 OS=$llvm_cv_os_type
2348
2349
2350 LINKALL=$llvm_cv_link_all_option
2351
2352 NOLINKALL=$llvm_cv_no_link_all_option
2353
2354
2355 case $llvm_cv_platform_type in
2356   Unix)
2357
2358 cat >>confdefs.h <<\_ACEOF
2359 #define LLVM_ON_UNIX 1
2360 _ACEOF
2361
2362     LLVM_ON_UNIX=1
2363
2364     LLVM_ON_WIN32=0
2365
2366     ;;
2367   Win32)
2368
2369 cat >>confdefs.h <<\_ACEOF
2370 #define LLVM_ON_WIN32 1
2371 _ACEOF
2372
2373     LLVM_ON_UNIX=0
2374
2375     LLVM_ON_WIN32=1
2376
2377     ;;
2378 esac
2379
2380 { echo "$as_me:$LINENO: checking target architecture" >&5
2381 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2382 if test "${llvm_cv_target_arch+set}" = set; then
2383   echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385   case $target in
2386   i?86-*)                 llvm_cv_target_arch="x86" ;;
2387   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2388   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2389   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2390   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2391   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2392   arm-*)                  llvm_cv_target_arch="ARM" ;;
2393   mips-*)                 llvm_cv_target_arch="Mips" ;;
2394   *)                      llvm_cv_target_arch="Unknown" ;;
2395 esac
2396 fi
2397 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2398 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2399
2400 if test "$llvm_cv_target_arch" = "Unknown" ; then
2401   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2402 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2403 fi
2404
2405 ARCH=$llvm_cv_target_arch
2406
2407
2408 ac_ext=c
2409 ac_cpp='$CPP $CPPFLAGS'
2410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413 if test -n "$ac_tool_prefix"; then
2414   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2415 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2418 if test "${ac_cv_prog_CC+set}" = set; then
2419   echo $ECHO_N "(cached) $ECHO_C" >&6
2420 else
2421   if test -n "$CC"; then
2422   ac_cv_prog_CC="$CC" # Let the user override the test.
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2426 do
2427   IFS=$as_save_IFS
2428   test -z "$as_dir" && as_dir=.
2429   for ac_exec_ext in '' $ac_executable_extensions; do
2430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2431     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433     break 2
2434   fi
2435 done
2436 done
2437 IFS=$as_save_IFS
2438
2439 fi
2440 fi
2441 CC=$ac_cv_prog_CC
2442 if test -n "$CC"; then
2443   { echo "$as_me:$LINENO: result: $CC" >&5
2444 echo "${ECHO_T}$CC" >&6; }
2445 else
2446   { echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6; }
2448 fi
2449
2450
2451 fi
2452 if test -z "$ac_cv_prog_CC"; then
2453   ac_ct_CC=$CC
2454   # Extract the first word of "gcc", so it can be a program name with args.
2455 set dummy gcc; ac_word=$2
2456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2459   echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461   if test -n "$ac_ct_CC"; then
2462   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2463 else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467   IFS=$as_save_IFS
2468   test -z "$as_dir" && as_dir=.
2469   for ac_exec_ext in '' $ac_executable_extensions; do
2470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471     ac_cv_prog_ac_ct_CC="gcc"
2472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473     break 2
2474   fi
2475 done
2476 done
2477 IFS=$as_save_IFS
2478
2479 fi
2480 fi
2481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2482 if test -n "$ac_ct_CC"; then
2483   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2484 echo "${ECHO_T}$ac_ct_CC" >&6; }
2485 else
2486   { echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6; }
2488 fi
2489
2490   if test "x$ac_ct_CC" = x; then
2491     CC=""
2492   else
2493     case $cross_compiling:$ac_tool_warned in
2494 yes:)
2495 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2496 whose name does not start with the host triplet.  If you think this
2497 configuration is useful to you, please write to autoconf@gnu.org." >&5
2498 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2499 whose name does not start with the host triplet.  If you think this
2500 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2501 ac_tool_warned=yes ;;
2502 esac
2503     CC=$ac_ct_CC
2504   fi
2505 else
2506   CC="$ac_cv_prog_CC"
2507 fi
2508
2509 if test -z "$CC"; then
2510           if test -n "$ac_tool_prefix"; then
2511     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2512 set dummy ${ac_tool_prefix}cc; ac_word=$2
2513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2515 if test "${ac_cv_prog_CC+set}" = set; then
2516   echo $ECHO_N "(cached) $ECHO_C" >&6
2517 else
2518   if test -n "$CC"; then
2519   ac_cv_prog_CC="$CC" # Let the user override the test.
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2523 do
2524   IFS=$as_save_IFS
2525   test -z "$as_dir" && as_dir=.
2526   for ac_exec_ext in '' $ac_executable_extensions; do
2527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528     ac_cv_prog_CC="${ac_tool_prefix}cc"
2529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530     break 2
2531   fi
2532 done
2533 done
2534 IFS=$as_save_IFS
2535
2536 fi
2537 fi
2538 CC=$ac_cv_prog_CC
2539 if test -n "$CC"; then
2540   { echo "$as_me:$LINENO: result: $CC" >&5
2541 echo "${ECHO_T}$CC" >&6; }
2542 else
2543   { echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6; }
2545 fi
2546
2547
2548   fi
2549 fi
2550 if test -z "$CC"; then
2551   # Extract the first word of "cc", so it can be a program name with args.
2552 set dummy cc; ac_word=$2
2553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2555 if test "${ac_cv_prog_CC+set}" = set; then
2556   echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558   if test -n "$CC"; then
2559   ac_cv_prog_CC="$CC" # Let the user override the test.
2560 else
2561   ac_prog_rejected=no
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565   IFS=$as_save_IFS
2566   test -z "$as_dir" && as_dir=.
2567   for ac_exec_ext in '' $ac_executable_extensions; do
2568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2570        ac_prog_rejected=yes
2571        continue
2572      fi
2573     ac_cv_prog_CC="cc"
2574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2575     break 2
2576   fi
2577 done
2578 done
2579 IFS=$as_save_IFS
2580
2581 if test $ac_prog_rejected = yes; then
2582   # We found a bogon in the path, so make sure we never use it.
2583   set dummy $ac_cv_prog_CC
2584   shift
2585   if test $# != 0; then
2586     # We chose a different compiler from the bogus one.
2587     # However, it has the same basename, so the bogon will be chosen
2588     # first if we set CC to just the basename; use the full file name.
2589     shift
2590     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2591   fi
2592 fi
2593 fi
2594 fi
2595 CC=$ac_cv_prog_CC
2596 if test -n "$CC"; then
2597   { echo "$as_me:$LINENO: result: $CC" >&5
2598 echo "${ECHO_T}$CC" >&6; }
2599 else
2600   { echo "$as_me:$LINENO: result: no" >&5
2601 echo "${ECHO_T}no" >&6; }
2602 fi
2603
2604
2605 fi
2606 if test -z "$CC"; then
2607   if test -n "$ac_tool_prefix"; then
2608   for ac_prog in cl.exe
2609   do
2610     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_CC+set}" = set; then
2615   echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617   if test -n "$CC"; then
2618   ac_cv_prog_CC="$CC" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623   IFS=$as_save_IFS
2624   test -z "$as_dir" && as_dir=.
2625   for ac_exec_ext in '' $ac_executable_extensions; do
2626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629     break 2
2630   fi
2631 done
2632 done
2633 IFS=$as_save_IFS
2634
2635 fi
2636 fi
2637 CC=$ac_cv_prog_CC
2638 if test -n "$CC"; then
2639   { echo "$as_me:$LINENO: result: $CC" >&5
2640 echo "${ECHO_T}$CC" >&6; }
2641 else
2642   { echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6; }
2644 fi
2645
2646
2647     test -n "$CC" && break
2648   done
2649 fi
2650 if test -z "$CC"; then
2651   ac_ct_CC=$CC
2652   for ac_prog in cl.exe
2653 do
2654   # Extract the first word of "$ac_prog", so it can be a program name with args.
2655 set dummy $ac_prog; ac_word=$2
2656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2659   echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661   if test -n "$ac_ct_CC"; then
2662   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667   IFS=$as_save_IFS
2668   test -z "$as_dir" && as_dir=.
2669   for ac_exec_ext in '' $ac_executable_extensions; do
2670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671     ac_cv_prog_ac_ct_CC="$ac_prog"
2672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673     break 2
2674   fi
2675 done
2676 done
2677 IFS=$as_save_IFS
2678
2679 fi
2680 fi
2681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2682 if test -n "$ac_ct_CC"; then
2683   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2684 echo "${ECHO_T}$ac_ct_CC" >&6; }
2685 else
2686   { echo "$as_me:$LINENO: result: no" >&5
2687 echo "${ECHO_T}no" >&6; }
2688 fi
2689
2690
2691   test -n "$ac_ct_CC" && break
2692 done
2693
2694   if test "x$ac_ct_CC" = x; then
2695     CC=""
2696   else
2697     case $cross_compiling:$ac_tool_warned in
2698 yes:)
2699 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2700 whose name does not start with the host triplet.  If you think this
2701 configuration is useful to you, please write to autoconf@gnu.org." >&5
2702 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2703 whose name does not start with the host triplet.  If you think this
2704 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2705 ac_tool_warned=yes ;;
2706 esac
2707     CC=$ac_ct_CC
2708   fi
2709 fi
2710
2711 fi
2712
2713
2714 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2715 See \`config.log' for more details." >&5
2716 echo "$as_me: error: no acceptable C compiler found in \$PATH
2717 See \`config.log' for more details." >&2;}
2718    { (exit 1); exit 1; }; }
2719
2720 # Provide some information about the compiler.
2721 echo "$as_me:$LINENO: checking for C compiler version" >&5
2722 ac_compiler=`set X $ac_compile; echo $2`
2723 { (ac_try="$ac_compiler --version >&5"
2724 case "(($ac_try" in
2725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726   *) ac_try_echo=$ac_try;;
2727 esac
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729   (eval "$ac_compiler --version >&5") 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }
2733 { (ac_try="$ac_compiler -v >&5"
2734 case "(($ac_try" in
2735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736   *) ac_try_echo=$ac_try;;
2737 esac
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739   (eval "$ac_compiler -v >&5") 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }
2743 { (ac_try="$ac_compiler -V >&5"
2744 case "(($ac_try" in
2745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746   *) ac_try_echo=$ac_try;;
2747 esac
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749   (eval "$ac_compiler -V >&5") 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }
2753
2754 cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h.  */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h.  */
2760
2761 int
2762 main ()
2763 {
2764
2765   ;
2766   return 0;
2767 }
2768 _ACEOF
2769 ac_clean_files_save=$ac_clean_files
2770 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2771 # Try to create an executable without -o first, disregard a.out.
2772 # It will help us diagnose broken compilers, and finding out an intuition
2773 # of exeext.
2774 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2775 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2776 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2777 #
2778 # List of possible output files, starting from the most likely.
2779 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2780 # only as a last resort.  b.out is created by i960 compilers.
2781 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2782 #
2783 # The IRIX 6 linker writes into existing files which may not be
2784 # executable, retaining their permissions.  Remove them first so a
2785 # subsequent execution test works.
2786 ac_rmfiles=
2787 for ac_file in $ac_files
2788 do
2789   case $ac_file in
2790     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2791     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2792   esac
2793 done
2794 rm -f $ac_rmfiles
2795
2796 if { (ac_try="$ac_link_default"
2797 case "(($ac_try" in
2798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799   *) ac_try_echo=$ac_try;;
2800 esac
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802   (eval "$ac_link_default") 2>&5
2803   ac_status=$?
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); }; then
2806   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2807 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2808 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2809 # so that the user can short-circuit this test for compilers unknown to
2810 # Autoconf.
2811 for ac_file in $ac_files ''
2812 do
2813   test -f "$ac_file" || continue
2814   case $ac_file in
2815     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2816         ;;
2817     [ab].out )
2818         # We found the default executable, but exeext='' is most
2819         # certainly right.
2820         break;;
2821     *.* )
2822         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2823         then :; else
2824            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2825         fi
2826         # We set ac_cv_exeext here because the later test for it is not
2827         # safe: cross compilers may not add the suffix if given an `-o'
2828         # argument, so we may need to know it at that point already.
2829         # Even if this section looks crufty: it has the advantage of
2830         # actually working.
2831         break;;
2832     * )
2833         break;;
2834   esac
2835 done
2836 test "$ac_cv_exeext" = no && ac_cv_exeext=
2837
2838 else
2839   ac_file=''
2840 fi
2841
2842 { echo "$as_me:$LINENO: result: $ac_file" >&5
2843 echo "${ECHO_T}$ac_file" >&6; }
2844 if test -z "$ac_file"; then
2845   echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2847
2848 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2849 See \`config.log' for more details." >&5
2850 echo "$as_me: error: C compiler cannot create executables
2851 See \`config.log' for more details." >&2;}
2852    { (exit 77); exit 77; }; }
2853 fi
2854
2855 ac_exeext=$ac_cv_exeext
2856
2857 # Check that the compiler produces executables we can run.  If not, either
2858 # the compiler is broken, or we cross compile.
2859 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2860 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2861 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2862 # If not cross compiling, check that we can run a simple program.
2863 if test "$cross_compiling" != yes; then
2864   if { ac_try='./$ac_file'
2865   { (case "(($ac_try" in
2866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867   *) ac_try_echo=$ac_try;;
2868 esac
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870   (eval "$ac_try") 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }; }; then
2874     cross_compiling=no
2875   else
2876     if test "$cross_compiling" = maybe; then
2877         cross_compiling=yes
2878     else
2879         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2880 If you meant to cross compile, use \`--host'.
2881 See \`config.log' for more details." >&5
2882 echo "$as_me: error: cannot run C compiled programs.
2883 If you meant to cross compile, use \`--host'.
2884 See \`config.log' for more details." >&2;}
2885    { (exit 1); exit 1; }; }
2886     fi
2887   fi
2888 fi
2889 { echo "$as_me:$LINENO: result: yes" >&5
2890 echo "${ECHO_T}yes" >&6; }
2891
2892 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2893 ac_clean_files=$ac_clean_files_save
2894 # Check that the compiler produces executables we can run.  If not, either
2895 # the compiler is broken, or we cross compile.
2896 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2897 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2898 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2899 echo "${ECHO_T}$cross_compiling" >&6; }
2900
2901 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2902 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2903 if { (ac_try="$ac_link"
2904 case "(($ac_try" in
2905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906   *) ac_try_echo=$ac_try;;
2907 esac
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909   (eval "$ac_link") 2>&5
2910   ac_status=$?
2911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912   (exit $ac_status); }; then
2913   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2914 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2915 # work properly (i.e., refer to `conftest.exe'), while it won't with
2916 # `rm'.
2917 for ac_file in conftest.exe conftest conftest.*; do
2918   test -f "$ac_file" || continue
2919   case $ac_file in
2920     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2921     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2922           break;;
2923     * ) break;;
2924   esac
2925 done
2926 else
2927   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2928 See \`config.log' for more details." >&5
2929 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2930 See \`config.log' for more details." >&2;}
2931    { (exit 1); exit 1; }; }
2932 fi
2933
2934 rm -f conftest$ac_cv_exeext
2935 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2936 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2937
2938 rm -f conftest.$ac_ext
2939 EXEEXT=$ac_cv_exeext
2940 ac_exeext=$EXEEXT
2941 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2942 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2943 if test "${ac_cv_objext+set}" = set; then
2944   echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946   cat >conftest.$ac_ext <<_ACEOF
2947 /* confdefs.h.  */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h.  */
2952
2953 int
2954 main ()
2955 {
2956
2957   ;
2958   return 0;
2959 }
2960 _ACEOF
2961 rm -f conftest.o conftest.obj
2962 if { (ac_try="$ac_compile"
2963 case "(($ac_try" in
2964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965   *) ac_try_echo=$ac_try;;
2966 esac
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968   (eval "$ac_compile") 2>&5
2969   ac_status=$?
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); }; then
2972   for ac_file in conftest.o conftest.obj conftest.*; do
2973   test -f "$ac_file" || continue;
2974   case $ac_file in
2975     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2976     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2977        break;;
2978   esac
2979 done
2980 else
2981   echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2985 See \`config.log' for more details." >&5
2986 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2987 See \`config.log' for more details." >&2;}
2988    { (exit 1); exit 1; }; }
2989 fi
2990
2991 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2992 fi
2993 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2994 echo "${ECHO_T}$ac_cv_objext" >&6; }
2995 OBJEXT=$ac_cv_objext
2996 ac_objext=$OBJEXT
2997 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2998 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2999 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3000   echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002   cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h.  */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h.  */
3008
3009 int
3010 main ()
3011 {
3012 #ifndef __GNUC__
3013        choke me
3014 #endif
3015
3016   ;
3017   return 0;
3018 }
3019 _ACEOF
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3022 case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_compile") 2>conftest.er1
3028   ac_status=$?
3029   grep -v '^ *+' conftest.er1 >conftest.err
3030   rm -f conftest.er1
3031   cat conftest.err >&5
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); } && {
3034          test -z "$ac_c_werror_flag" ||
3035          test ! -s conftest.err
3036        } && test -s conftest.$ac_objext; then
3037   ac_compiler_gnu=yes
3038 else
3039   echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3041
3042         ac_compiler_gnu=no
3043 fi
3044
3045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3046 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3047
3048 fi
3049 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3050 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3051 GCC=`test $ac_compiler_gnu = yes && echo yes`
3052 ac_test_CFLAGS=${CFLAGS+set}
3053 ac_save_CFLAGS=$CFLAGS
3054 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3055 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3056 if test "${ac_cv_prog_cc_g+set}" = set; then
3057   echo $ECHO_N "(cached) $ECHO_C" >&6
3058 else
3059   ac_save_c_werror_flag=$ac_c_werror_flag
3060    ac_c_werror_flag=yes
3061    ac_cv_prog_cc_g=no
3062    CFLAGS="-g"
3063    cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h.  */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h.  */
3069
3070 int
3071 main ()
3072 {
3073
3074   ;
3075   return 0;
3076 }
3077 _ACEOF
3078 rm -f conftest.$ac_objext
3079 if { (ac_try="$ac_compile"
3080 case "(($ac_try" in
3081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082   *) ac_try_echo=$ac_try;;
3083 esac
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085   (eval "$ac_compile") 2>conftest.er1
3086   ac_status=$?
3087   grep -v '^ *+' conftest.er1 >conftest.err
3088   rm -f conftest.er1
3089   cat conftest.err >&5
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); } && {
3092          test -z "$ac_c_werror_flag" ||
3093          test ! -s conftest.err
3094        } && test -s conftest.$ac_objext; then
3095   ac_cv_prog_cc_g=yes
3096 else
3097   echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100         CFLAGS=""
3101       cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h.  */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h.  */
3107
3108 int
3109 main ()
3110 {
3111
3112   ;
3113   return 0;
3114 }
3115 _ACEOF
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3118 case "(($ac_try" in
3119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120   *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123   (eval "$ac_compile") 2>conftest.er1
3124   ac_status=$?
3125   grep -v '^ *+' conftest.er1 >conftest.err
3126   rm -f conftest.er1
3127   cat conftest.err >&5
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); } && {
3130          test -z "$ac_c_werror_flag" ||
3131          test ! -s conftest.err
3132        } && test -s conftest.$ac_objext; then
3133   :
3134 else
3135   echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138         ac_c_werror_flag=$ac_save_c_werror_flag
3139          CFLAGS="-g"
3140          cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146
3147 int
3148 main ()
3149 {
3150
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_compile") 2>conftest.er1
3163   ac_status=$?
3164   grep -v '^ *+' conftest.er1 >conftest.err
3165   rm -f conftest.er1
3166   cat conftest.err >&5
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); } && {
3169          test -z "$ac_c_werror_flag" ||
3170          test ! -s conftest.err
3171        } && test -s conftest.$ac_objext; then
3172   ac_cv_prog_cc_g=yes
3173 else
3174   echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3176
3177
3178 fi
3179
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 fi
3182
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 fi
3185
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187    ac_c_werror_flag=$ac_save_c_werror_flag
3188 fi
3189 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3190 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3191 if test "$ac_test_CFLAGS" = set; then
3192   CFLAGS=$ac_save_CFLAGS
3193 elif test $ac_cv_prog_cc_g = yes; then
3194   if test "$GCC" = yes; then
3195     CFLAGS="-g -O2"
3196   else
3197     CFLAGS="-g"
3198   fi
3199 else
3200   if test "$GCC" = yes; then
3201     CFLAGS="-O2"
3202   else
3203     CFLAGS=
3204   fi
3205 fi
3206 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3207 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3208 if test "${ac_cv_prog_cc_c89+set}" = set; then
3209   echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211   ac_cv_prog_cc_c89=no
3212 ac_save_CC=$CC
3213 cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h.  */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h.  */
3219 #include <stdarg.h>
3220 #include <stdio.h>
3221 #include <sys/types.h>
3222 #include <sys/stat.h>
3223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3224 struct buf { int x; };
3225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3226 static char *e (p, i)
3227      char **p;
3228      int i;
3229 {
3230   return p[i];
3231 }
3232 static char *f (char * (*g) (char **, int), char **p, ...)
3233 {
3234   char *s;
3235   va_list v;
3236   va_start (v,p);
3237   s = g (p, va_arg (v,int));
3238   va_end (v);
3239   return s;
3240 }
3241
3242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3243    function prototypes and stuff, but not '\xHH' hex character constants.
3244    These don't provoke an error unfortunately, instead are silently treated
3245    as 'x'.  The following induces an error, until -std is added to get
3246    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3247    array size at least.  It's necessary to write '\x00'==0 to get something
3248    that's true only with -std.  */
3249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3250
3251 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3252    inside strings and character constants.  */
3253 #define FOO(x) 'x'
3254 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3255
3256 int test (int i, double x);
3257 struct s1 {int (*f) (int a);};
3258 struct s2 {int (*f) (double a);};
3259 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3260 int argc;
3261 char **argv;
3262 int
3263 main ()
3264 {
3265 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3266   ;
3267   return 0;
3268 }
3269 _ACEOF
3270 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3271         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3272 do
3273   CC="$ac_save_CC $ac_arg"
3274   rm -f conftest.$ac_objext
3275 if { (ac_try="$ac_compile"
3276 case "(($ac_try" in
3277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278   *) ac_try_echo=$ac_try;;
3279 esac
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281   (eval "$ac_compile") 2>conftest.er1
3282   ac_status=$?
3283   grep -v '^ *+' conftest.er1 >conftest.err
3284   rm -f conftest.er1
3285   cat conftest.err >&5
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); } && {
3288          test -z "$ac_c_werror_flag" ||
3289          test ! -s conftest.err
3290        } && test -s conftest.$ac_objext; then
3291   ac_cv_prog_cc_c89=$ac_arg
3292 else
3293   echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3295
3296
3297 fi
3298
3299 rm -f core conftest.err conftest.$ac_objext
3300   test "x$ac_cv_prog_cc_c89" != "xno" && break
3301 done
3302 rm -f conftest.$ac_ext
3303 CC=$ac_save_CC
3304
3305 fi
3306 # AC_CACHE_VAL
3307 case "x$ac_cv_prog_cc_c89" in
3308   x)
3309     { echo "$as_me:$LINENO: result: none needed" >&5
3310 echo "${ECHO_T}none needed" >&6; } ;;
3311   xno)
3312     { echo "$as_me:$LINENO: result: unsupported" >&5
3313 echo "${ECHO_T}unsupported" >&6; } ;;
3314   *)
3315     CC="$CC $ac_cv_prog_cc_c89"
3316     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3317 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3318 esac
3319
3320
3321 ac_ext=c
3322 ac_cpp='$CPP $CPPFLAGS'
3323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326
3327
3328 ac_ext=c
3329 ac_cpp='$CPP $CPPFLAGS'
3330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3333 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3334 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3335 # On Suns, sometimes $CPP names a directory.
3336 if test -n "$CPP" && test -d "$CPP"; then
3337   CPP=
3338 fi
3339 if test -z "$CPP"; then
3340   if test "${ac_cv_prog_CPP+set}" = set; then
3341   echo $ECHO_N "(cached) $ECHO_C" >&6
3342 else
3343       # Double quotes because CPP needs to be expanded
3344     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3345     do
3346       ac_preproc_ok=false
3347 for ac_c_preproc_warn_flag in '' yes
3348 do
3349   # Use a header file that comes with gcc, so configuring glibc
3350   # with a fresh cross-compiler works.
3351   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3352   # <limits.h> exists even on freestanding compilers.
3353   # On the NeXT, cc -E runs the code through the compiler's parser,
3354   # not just through cpp. "Syntax error" is here to catch this case.
3355   cat >conftest.$ac_ext <<_ACEOF
3356 /* confdefs.h.  */
3357 _ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h.  */
3361 #ifdef __STDC__
3362 # include <limits.h>
3363 #else
3364 # include <assert.h>
3365 #endif
3366                      Syntax error
3367 _ACEOF
3368 if { (ac_try="$ac_cpp conftest.$ac_ext"
3369 case "(($ac_try" in
3370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371   *) ac_try_echo=$ac_try;;
3372 esac
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3375   ac_status=$?
3376   grep -v '^ *+' conftest.er1 >conftest.err
3377   rm -f conftest.er1
3378   cat conftest.err >&5
3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380   (exit $ac_status); } >/dev/null && {
3381          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3382          test ! -s conftest.err
3383        }; then
3384   :
3385 else
3386   echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3388
3389   # Broken: fails on valid input.
3390 continue
3391 fi
3392
3393 rm -f conftest.err conftest.$ac_ext
3394
3395   # OK, works on sane cases.  Now check whether nonexistent headers
3396   # can be detected and how.
3397   cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h.  */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h.  */
3403 #include <ac_nonexistent.h>
3404 _ACEOF
3405 if { (ac_try="$ac_cpp conftest.$ac_ext"
3406 case "(($ac_try" in
3407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408   *) ac_try_echo=$ac_try;;
3409 esac
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3412   ac_status=$?
3413   grep -v '^ *+' conftest.er1 >conftest.err
3414   rm -f conftest.er1
3415   cat conftest.err >&5
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); } >/dev/null && {
3418          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3419          test ! -s conftest.err
3420        }; then
3421   # Broken: success on invalid input.
3422 continue
3423 else
3424   echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3426
3427   # Passes both tests.
3428 ac_preproc_ok=:
3429 break
3430 fi
3431
3432 rm -f conftest.err conftest.$ac_ext
3433
3434 done
3435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436 rm -f conftest.err conftest.$ac_ext
3437 if $ac_preproc_ok; then
3438   break
3439 fi
3440
3441     done
3442     ac_cv_prog_CPP=$CPP
3443
3444 fi
3445   CPP=$ac_cv_prog_CPP
3446 else
3447   ac_cv_prog_CPP=$CPP
3448 fi
3449 { echo "$as_me:$LINENO: result: $CPP" >&5
3450 echo "${ECHO_T}$CPP" >&6; }
3451 ac_preproc_ok=false
3452 for ac_c_preproc_warn_flag in '' yes
3453 do
3454   # Use a header file that comes with gcc, so configuring glibc
3455   # with a fresh cross-compiler works.
3456   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3457   # <limits.h> exists even on freestanding compilers.
3458   # On the NeXT, cc -E runs the code through the compiler's parser,
3459   # not just through cpp. "Syntax error" is here to catch this case.
3460   cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h.  */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h.  */
3466 #ifdef __STDC__
3467 # include <limits.h>
3468 #else
3469 # include <assert.h>
3470 #endif
3471                      Syntax error
3472 _ACEOF
3473 if { (ac_try="$ac_cpp conftest.$ac_ext"
3474 case "(($ac_try" in
3475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476   *) ac_try_echo=$ac_try;;
3477 esac
3478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3480   ac_status=$?
3481   grep -v '^ *+' conftest.er1 >conftest.err
3482   rm -f conftest.er1
3483   cat conftest.err >&5
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); } >/dev/null && {
3486          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3487          test ! -s conftest.err
3488        }; then
3489   :
3490 else
3491   echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494   # Broken: fails on valid input.
3495 continue
3496 fi
3497
3498 rm -f conftest.err conftest.$ac_ext
3499
3500   # OK, works on sane cases.  Now check whether nonexistent headers
3501   # can be detected and how.
3502   cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h.  */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h.  */
3508 #include <ac_nonexistent.h>
3509 _ACEOF
3510 if { (ac_try="$ac_cpp conftest.$ac_ext"
3511 case "(($ac_try" in
3512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513   *) ac_try_echo=$ac_try;;
3514 esac
3515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3517   ac_status=$?
3518   grep -v '^ *+' conftest.er1 >conftest.err
3519   rm -f conftest.er1
3520   cat conftest.err >&5
3521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522   (exit $ac_status); } >/dev/null && {
3523          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3524          test ! -s conftest.err
3525        }; then
3526   # Broken: success on invalid input.
3527 continue
3528 else
3529   echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3531
3532   # Passes both tests.
3533 ac_preproc_ok=:
3534 break
3535 fi
3536
3537 rm -f conftest.err conftest.$ac_ext
3538
3539 done
3540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3541 rm -f conftest.err conftest.$ac_ext
3542 if $ac_preproc_ok; then
3543   :
3544 else
3545   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3546 See \`config.log' for more details." >&5
3547 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3548 See \`config.log' for more details." >&2;}
3549    { (exit 1); exit 1; }; }
3550 fi
3551
3552 ac_ext=c
3553 ac_cpp='$CPP $CPPFLAGS'
3554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3557
3558
3559 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3560 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3561 if test "${ac_cv_path_GREP+set}" = set; then
3562   echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564   # Extract the first word of "grep ggrep" to use in msg output
3565 if test -z "$GREP"; then
3566 set dummy grep ggrep; ac_prog_name=$2
3567 if test "${ac_cv_path_GREP+set}" = set; then
3568   echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570   ac_path_GREP_found=false
3571 # Loop through the user's path and test for each of PROGNAME-LIST
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3574 do
3575   IFS=$as_save_IFS
3576   test -z "$as_dir" && as_dir=.
3577   for ac_prog in grep ggrep; do
3578   for ac_exec_ext in '' $ac_executable_extensions; do
3579     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3580     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3581     # Check for GNU ac_path_GREP and select it if it is found.
3582   # Check for GNU $ac_path_GREP
3583 case `"$ac_path_GREP" --version 2>&1` in
3584 *GNU*)
3585   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3586 *)
3587   ac_count=0
3588   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3589   while :
3590   do
3591     cat "conftest.in" "conftest.in" >"conftest.tmp"
3592     mv "conftest.tmp" "conftest.in"
3593     cp "conftest.in" "conftest.nl"
3594     echo 'GREP' >> "conftest.nl"
3595     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3596     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3597     ac_count=`expr $ac_count + 1`
3598     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3599       # Best one so far, save it but keep looking for a better one
3600       ac_cv_path_GREP="$ac_path_GREP"
3601       ac_path_GREP_max=$ac_count
3602     fi
3603     # 10*(2^10) chars as input seems more than enough
3604     test $ac_count -gt 10 && break
3605   done
3606   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3607 esac
3608
3609
3610     $ac_path_GREP_found && break 3
3611   done
3612 done
3613
3614 done
3615 IFS=$as_save_IFS
3616
3617
3618 fi
3619
3620 GREP="$ac_cv_path_GREP"
3621 if test -z "$GREP"; then
3622   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3623 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3624    { (exit 1); exit 1; }; }
3625 fi
3626
3627 else
3628   ac_cv_path_GREP=$GREP
3629 fi
3630
3631
3632 fi
3633 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3634 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3635  GREP="$ac_cv_path_GREP"
3636
3637
3638 { echo "$as_me:$LINENO: checking for egrep" >&5
3639 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3640 if test "${ac_cv_path_EGREP+set}" = set; then
3641   echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3644    then ac_cv_path_EGREP="$GREP -E"
3645    else
3646      # Extract the first word of "egrep" to use in msg output
3647 if test -z "$EGREP"; then
3648 set dummy egrep; ac_prog_name=$2
3649 if test "${ac_cv_path_EGREP+set}" = set; then
3650   echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652   ac_path_EGREP_found=false
3653 # Loop through the user's path and test for each of PROGNAME-LIST
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3656 do
3657   IFS=$as_save_IFS
3658   test -z "$as_dir" && as_dir=.
3659   for ac_prog in egrep; do
3660   for ac_exec_ext in '' $ac_executable_extensions; do
3661     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3662     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3663     # Check for GNU ac_path_EGREP and select it if it is found.
3664   # Check for GNU $ac_path_EGREP
3665 case `"$ac_path_EGREP" --version 2>&1` in
3666 *GNU*)
3667   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3668 *)
3669   ac_count=0
3670   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3671   while :
3672   do
3673     cat "conftest.in" "conftest.in" >"conftest.tmp"
3674     mv "conftest.tmp" "conftest.in"
3675     cp "conftest.in" "conftest.nl"
3676     echo 'EGREP' >> "conftest.nl"
3677     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3678     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3679     ac_count=`expr $ac_count + 1`
3680     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3681       # Best one so far, save it but keep looking for a better one
3682       ac_cv_path_EGREP="$ac_path_EGREP"
3683       ac_path_EGREP_max=$ac_count
3684     fi
3685     # 10*(2^10) chars as input seems more than enough
3686     test $ac_count -gt 10 && break
3687   done
3688   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3689 esac
3690
3691
3692     $ac_path_EGREP_found && break 3
3693   done
3694 done
3695
3696 done
3697 IFS=$as_save_IFS
3698
3699
3700 fi
3701
3702 EGREP="$ac_cv_path_EGREP"
3703 if test -z "$EGREP"; then
3704   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3705 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3706    { (exit 1); exit 1; }; }
3707 fi
3708
3709 else
3710   ac_cv_path_EGREP=$EGREP
3711 fi
3712
3713
3714    fi
3715 fi
3716 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3717 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3718  EGREP="$ac_cv_path_EGREP"
3719
3720
3721 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3722 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3723 if test "${ac_cv_header_stdc+set}" = set; then
3724   echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726   cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h.  */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h.  */
3732 #include <stdlib.h>
3733 #include <stdarg.h>
3734 #include <string.h>
3735 #include <float.h>
3736
3737 int
3738 main ()
3739 {
3740
3741   ;
3742   return 0;
3743 }
3744 _ACEOF
3745 rm -f conftest.$ac_objext
3746 if { (ac_try="$ac_compile"
3747 case "(($ac_try" in
3748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749   *) ac_try_echo=$ac_try;;
3750 esac
3751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3752   (eval "$ac_compile") 2>conftest.er1
3753   ac_status=$?
3754   grep -v '^ *+' conftest.er1 >conftest.err
3755   rm -f conftest.er1
3756   cat conftest.err >&5
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); } && {
3759          test -z "$ac_c_werror_flag" ||
3760          test ! -s conftest.err
3761        } && test -s conftest.$ac_objext; then
3762   ac_cv_header_stdc=yes
3763 else
3764   echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3766
3767         ac_cv_header_stdc=no
3768 fi
3769
3770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771
3772 if test $ac_cv_header_stdc = yes; then
3773   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3774   cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h.  */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h.  */
3780 #include <string.h>
3781
3782 _ACEOF
3783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3784   $EGREP "memchr" >/dev/null 2>&1; then
3785   :
3786 else
3787   ac_cv_header_stdc=no
3788 fi
3789 rm -f conftest*
3790
3791 fi
3792
3793 if test $ac_cv_header_stdc = yes; then
3794   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3795   cat >conftest.$ac_ext <<_ACEOF
3796 /* confdefs.h.  */
3797 _ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h.  */
3801 #include <stdlib.h>
3802
3803 _ACEOF
3804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805   $EGREP "free" >/dev/null 2>&1; then
3806   :
3807 else
3808   ac_cv_header_stdc=no
3809 fi
3810 rm -f conftest*
3811
3812 fi
3813
3814 if test $ac_cv_header_stdc = yes; then
3815   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3816   if test "$cross_compiling" = yes; then
3817   :
3818 else
3819   cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h.  */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h.  */
3825 #include <ctype.h>
3826 #include <stdlib.h>
3827 #if ((' ' & 0x0FF) == 0x020)
3828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3830 #else
3831 # define ISLOWER(c) \
3832                    (('a' <= (c) && (c) <= 'i') \
3833                      || ('j' <= (c) && (c) <= 'r') \
3834                      || ('s' <= (c) && (c) <= 'z'))
3835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3836 #endif
3837
3838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3839 int
3840 main ()
3841 {
3842   int i;
3843   for (i = 0; i < 256; i++)
3844     if (XOR (islower (i), ISLOWER (i))
3845         || toupper (i) != TOUPPER (i))
3846       return 2;
3847   return 0;
3848 }
3849 _ACEOF
3850 rm -f conftest$ac_exeext
3851 if { (ac_try="$ac_link"
3852 case "(($ac_try" in
3853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854   *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857   (eval "$ac_link") 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3861   { (case "(($ac_try" in
3862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863   *) ac_try_echo=$ac_try;;
3864 esac
3865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866   (eval "$ac_try") 2>&5
3867   ac_status=$?
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); }; }; then
3870   :
3871 else
3872   echo "$as_me: program exited with status $ac_status" >&5
3873 echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3875
3876 ( exit $ac_status )
3877 ac_cv_header_stdc=no
3878 fi
3879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3880 fi
3881
3882
3883 fi
3884 fi
3885 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3886 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3887 if test $ac_cv_header_stdc = yes; then
3888
3889 cat >>confdefs.h <<\_ACEOF
3890 #define STDC_HEADERS 1
3891 _ACEOF
3892
3893 fi
3894
3895 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3906                   inttypes.h stdint.h unistd.h
3907 do
3908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3912   echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914   cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h.  */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h.  */
3920 $ac_includes_default
3921
3922 #include <$ac_header>
3923 _ACEOF
3924 rm -f conftest.$ac_objext
3925 if { (ac_try="$ac_compile"
3926 case "(($ac_try" in
3927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928   *) ac_try_echo=$ac_try;;
3929 esac
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931   (eval "$ac_compile") 2>conftest.er1
3932   ac_status=$?
3933   grep -v '^ *+' conftest.er1 >conftest.err
3934   rm -f conftest.er1
3935   cat conftest.err >&5
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); } && {
3938          test -z "$ac_c_werror_flag" ||
3939          test ! -s conftest.err
3940        } && test -s conftest.$ac_objext; then
3941   eval "$as_ac_Header=yes"
3942 else
3943   echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3945
3946         eval "$as_ac_Header=no"
3947 fi
3948
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 fi
3951 ac_res=`eval echo '${'$as_ac_Header'}'`
3952                { echo "$as_me:$LINENO: result: $ac_res" >&5
3953 echo "${ECHO_T}$ac_res" >&6; }
3954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3955   cat >>confdefs.h <<_ACEOF
3956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3957 _ACEOF
3958
3959 fi
3960
3961 done
3962
3963
3964 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3965 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3966 if test "${ac_cv_c_bigendian+set}" = set; then
3967   echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969   # See if sys/param.h defines the BYTE_ORDER macro.
3970 cat >conftest.$ac_ext <<_ACEOF
3971 /* confdefs.h.  */
3972 _ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h.  */
3976 #include <sys/types.h>
3977 #include <sys/param.h>
3978
3979 int
3980 main ()
3981 {
3982 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3983         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3984  bogus endian macros
3985 #endif
3986
3987   ;
3988   return 0;
3989 }
3990 _ACEOF
3991 rm -f conftest.$ac_objext
3992 if { (ac_try="$ac_compile"
3993 case "(($ac_try" in
3994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995   *) ac_try_echo=$ac_try;;
3996 esac
3997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998   (eval "$ac_compile") 2>conftest.er1
3999   ac_status=$?
4000   grep -v '^ *+' conftest.er1 >conftest.err
4001   rm -f conftest.er1
4002   cat conftest.err >&5
4003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004   (exit $ac_status); } && {
4005          test -z "$ac_c_werror_flag" ||
4006          test ! -s conftest.err
4007        } && test -s conftest.$ac_objext; then
4008   # It does; now see whether it defined to BIG_ENDIAN or not.
4009 cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h.  */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h.  */
4015 #include <sys/types.h>
4016 #include <sys/param.h>
4017
4018 int
4019 main ()
4020 {
4021 #if BYTE_ORDER != BIG_ENDIAN
4022  not big endian
4023 #endif
4024
4025   ;
4026   return 0;
4027 }
4028 _ACEOF
4029 rm -f conftest.$ac_objext
4030 if { (ac_try="$ac_compile"
4031 case "(($ac_try" in
4032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033   *) ac_try_echo=$ac_try;;
4034 esac
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036   (eval "$ac_compile") 2>conftest.er1
4037   ac_status=$?
4038   grep -v '^ *+' conftest.er1 >conftest.err
4039   rm -f conftest.er1
4040   cat conftest.err >&5
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); } && {
4043          test -z "$ac_c_werror_flag" ||
4044          test ! -s conftest.err
4045        } && test -s conftest.$ac_objext; then
4046   ac_cv_c_bigendian=yes
4047 else
4048   echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4050
4051         ac_cv_c_bigendian=no
4052 fi
4053
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 else
4056   echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4058
4059         # It does not; compile a test program.
4060 if test "$cross_compiling" = yes; then
4061   # try to guess the endianness by grepping values into an object file
4062   ac_cv_c_bigendian=unknown
4063   cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h.  */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h.  */
4069 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4070 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4071 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4072 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4073 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4074 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4075 int
4076 main ()
4077 {
4078  _ascii (); _ebcdic ();
4079   ;
4080   return 0;
4081 }
4082 _ACEOF
4083 rm -f conftest.$ac_objext
4084 if { (ac_try="$ac_compile"
4085 case "(($ac_try" in
4086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087   *) ac_try_echo=$ac_try;;
4088 esac
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090   (eval "$ac_compile") 2>conftest.er1
4091   ac_status=$?
4092   grep -v '^ *+' conftest.er1 >conftest.err
4093   rm -f conftest.er1
4094   cat conftest.err >&5
4095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096   (exit $ac_status); } && {
4097          test -z "$ac_c_werror_flag" ||
4098          test ! -s conftest.err
4099        } && test -s conftest.$ac_objext; then
4100   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4101   ac_cv_c_bigendian=yes
4102 fi
4103 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4104   if test "$ac_cv_c_bigendian" = unknown; then
4105     ac_cv_c_bigendian=no
4106   else
4107     # finding both strings is unlikely to happen, but who knows?
4108     ac_cv_c_bigendian=unknown
4109   fi
4110 fi
4111 else
4112   echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4114
4115
4116 fi
4117
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119 else
4120   cat >conftest.$ac_ext <<_ACEOF
4121 /* confdefs.h.  */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h.  */
4126 $ac_includes_default
4127 int
4128 main ()
4129 {
4130
4131   /* Are we little or big endian?  From Harbison&Steele.  */
4132   union
4133   {
4134     long int l;
4135     char c[sizeof (long int)];
4136   } u;
4137   u.l = 1;
4138   return u.c[sizeof (long int) - 1] == 1;
4139
4140   ;
4141   return 0;
4142 }
4143 _ACEOF
4144 rm -f conftest$ac_exeext
4145 if { (ac_try="$ac_link"
4146 case "(($ac_try" in
4147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148   *) ac_try_echo=$ac_try;;
4149 esac
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151   (eval "$ac_link") 2>&5
4152   ac_status=$?
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4155   { (case "(($ac_try" in
4156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157   *) ac_try_echo=$ac_try;;
4158 esac
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160   (eval "$ac_try") 2>&5
4161   ac_status=$?
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); }; }; then
4164   ac_cv_c_bigendian=no
4165 else
4166   echo "$as_me: program exited with status $ac_status" >&5
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4169
4170 ( exit $ac_status )
4171 ac_cv_c_bigendian=yes
4172 fi
4173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4174 fi
4175
4176
4177 fi
4178
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 fi
4181 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4182 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4183 case $ac_cv_c_bigendian in
4184   yes)
4185     ENDIAN=big
4186 ,
4187
4188 cat >>confdefs.h <<\_ACEOF
4189 #define MSB_FIRST 1
4190 _ACEOF
4191  ;;
4192   no)
4193     ENDIAN=little
4194 ,
4195
4196 cat >>confdefs.h <<\_ACEOF
4197 #define LSB_FIRST 1
4198 _ACEOF
4199  ;;
4200   *)
4201     { { echo "$as_me:$LINENO: error: unknown endianness
4202 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4203 echo "$as_me: error: unknown endianness
4204 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4205    { (exit 1); exit 1; }; } ;;
4206 esac
4207
4208
4209 if test "$cross_compiling" = yes; then
4210   LLVM_CROSS_COMPILING=1
4211
4212
4213 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4214 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4215 if test "${ac_cv_build_exeext+set}" = set; then
4216   echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4219   ac_cv_build_exeext=.exe
4220 else
4221   ac_build_prefix=${build_alias}-
4222
4223   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4224 set dummy ${ac_build_prefix}gcc; ac_word=$2
4225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4227 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4228   echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230   if test -n "$BUILD_CC"; then
4231   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4235 do
4236   IFS=$as_save_IFS
4237   test -z "$as_dir" && as_dir=.
4238   for ac_exec_ext in '' $ac_executable_extensions; do
4239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4240     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242     break 2
4243   fi
4244 done
4245 done
4246 IFS=$as_save_IFS
4247
4248 fi
4249 fi
4250 BUILD_CC=$ac_cv_prog_BUILD_CC
4251 if test -n "$BUILD_CC"; then
4252   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4253 echo "${ECHO_T}$BUILD_CC" >&6; }
4254 else
4255   { echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6; }
4257 fi
4258
4259
4260   if test -z "$BUILD_CC"; then
4261      # Extract the first word of "gcc", so it can be a program name with args.
4262 set dummy gcc; ac_word=$2
4263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4265 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4266   echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268   if test -n "$BUILD_CC"; then
4269   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274   IFS=$as_save_IFS
4275   test -z "$as_dir" && as_dir=.
4276   for ac_exec_ext in '' $ac_executable_extensions; do
4277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278     ac_cv_prog_BUILD_CC="gcc"
4279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280     break 2
4281   fi
4282 done
4283 done
4284 IFS=$as_save_IFS
4285
4286 fi
4287 fi
4288 BUILD_CC=$ac_cv_prog_BUILD_CC
4289 if test -n "$BUILD_CC"; then
4290   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4291 echo "${ECHO_T}$BUILD_CC" >&6; }
4292 else
4293   { echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6; }
4295 fi
4296
4297
4298      if test -z "$BUILD_CC"; then
4299        # Extract the first word of "cc", so it can be a program name with args.
4300 set dummy cc; ac_word=$2
4301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4303 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4304   echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306   if test -n "$BUILD_CC"; then
4307   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4308 else
4309   ac_prog_rejected=no
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4312 do
4313   IFS=$as_save_IFS
4314   test -z "$as_dir" && as_dir=.
4315   for ac_exec_ext in '' $ac_executable_extensions; do
4316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4318        ac_prog_rejected=yes
4319        continue
4320      fi
4321     ac_cv_prog_BUILD_CC="cc"
4322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323     break 2
4324   fi
4325 done
4326 done
4327 IFS=$as_save_IFS
4328
4329 if test $ac_prog_rejected = yes; then
4330   # We found a bogon in the path, so make sure we never use it.
4331   set dummy $ac_cv_prog_BUILD_CC
4332   shift
4333   if test $# != 0; then
4334     # We chose a different compiler from the bogus one.
4335     # However, it has the same basename, so the bogon will be chosen
4336     # first if we set BUILD_CC to just the basename; use the full file name.
4337     shift
4338     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4339   fi
4340 fi
4341 fi
4342 fi
4343 BUILD_CC=$ac_cv_prog_BUILD_CC
4344 if test -n "$BUILD_CC"; then
4345   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4346 echo "${ECHO_T}$BUILD_CC" >&6; }
4347 else
4348   { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4350 fi
4351
4352
4353      fi
4354   fi
4355   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4356 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4357    { (exit 1); exit 1; }; }
4358   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4359   rm -f conftest*
4360   echo 'int main () { return 0; }' > conftest.$ac_ext
4361   ac_cv_build_exeext=
4362   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4363   (eval $ac_build_link) 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; then
4367     for file in conftest.*; do
4368       case $file in
4369       *.c | *.o | *.obj) ;;
4370       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4371       esac
4372     done
4373   else
4374     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4375 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4376    { (exit 1); exit 1; }; }
4377   fi
4378   rm -f conftest*
4379   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4380 fi
4381 fi
4382
4383 BUILD_EXEEXT=""
4384 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4385 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4386 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4387 ac_build_exeext=$BUILD_EXEEXT
4388
4389 else
4390   LLVM_CROSS_COMPILING=0
4391
4392 fi
4393
4394 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4395   cvsbuild="yes"
4396   optimize="no"
4397   CVSBUILD=CVSBUILD=1
4398
4399 else
4400   cvsbuild="no"
4401   optimize="yes"
4402 fi
4403
4404
4405 # Check whether --enable-optimized was given.
4406 if test "${enable_optimized+set}" = set; then
4407   enableval=$enable_optimized;
4408 else
4409   enableval=$optimize
4410 fi
4411
4412 if test ${enableval} = "no" ; then
4413   ENABLE_OPTIMIZED=
4414
4415 else
4416   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4417
4418 fi
4419
4420 # Check whether --enable-assertions was given.
4421 if test "${enable_assertions+set}" = set; then
4422   enableval=$enable_assertions;
4423 else
4424   enableval="yes"
4425 fi
4426
4427 if test ${enableval} = "yes" ; then
4428   DISABLE_ASSERTIONS=
4429
4430 else
4431   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4432
4433 fi
4434
4435 # Check whether --enable-expensive-checks was given.
4436 if test "${enable_expensive_checks+set}" = set; then
4437   enableval=$enable_expensive_checks;
4438 else
4439   enableval="no"
4440 fi
4441
4442 if test ${enableval} = "yes" ; then
4443   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4444
4445   EXPENSIVE_CHECKS=yes
4446
4447 else
4448   ENABLE_EXPENSIVE_CHECKS=
4449
4450   EXPENSIVE_CHECKS=no
4451
4452 fi
4453
4454 # Check whether --enable-debug-runtime was given.
4455 if test "${enable_debug_runtime+set}" = set; then
4456   enableval=$enable_debug_runtime;
4457 else
4458   enableval=no
4459 fi
4460
4461 if test ${enableval} = "no" ; then
4462   DEBUG_RUNTIME=
4463
4464 else
4465   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4466
4467 fi
4468
4469 # Check whether --enable-jit was given.
4470 if test "${enable_jit+set}" = set; then
4471   enableval=$enable_jit;
4472 else
4473   enableval=default
4474 fi
4475
4476 if test ${enableval} = "no"
4477 then
4478   JIT=
4479
4480 else
4481   case "$llvm_cv_target_arch" in
4482     x86)     TARGET_HAS_JIT=1
4483  ;;
4484     Sparc)   TARGET_HAS_JIT=0
4485  ;;
4486     PowerPC) TARGET_HAS_JIT=1
4487  ;;
4488     x86_64)  TARGET_HAS_JIT=1
4489  ;;
4490     Alpha)   TARGET_HAS_JIT=1
4491  ;;
4492     IA64)    TARGET_HAS_JIT=0
4493  ;;
4494     ARM)     TARGET_HAS_JIT=0
4495  ;;
4496     Mips)    TARGET_HAS_JIT=0
4497  ;;
4498     *)       TARGET_HAS_JIT=0
4499  ;;
4500   esac
4501 fi
4502
4503 # Check whether --enable-doxygen was given.
4504 if test "${enable_doxygen+set}" = set; then
4505   enableval=$enable_doxygen;
4506 else
4507   enableval=default
4508 fi
4509
4510 case "$enableval" in
4511   yes) ENABLE_DOXYGEN=1
4512  ;;
4513   no)  ENABLE_DOXYGEN=0
4514  ;;
4515   default) ENABLE_DOXYGEN=0
4516  ;;
4517   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4518 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4519    { (exit 1); exit 1; }; } ;;
4520 esac
4521
4522 # Check whether --enable-threads was given.
4523 if test "${enable_threads+set}" = set; then
4524   enableval=$enable_threads;
4525 else
4526   enableval=default
4527 fi
4528
4529 case "$enableval" in
4530   yes) ENABLE_THREADS=1
4531  ;;
4532   no)  ENABLE_THREADS=0
4533  ;;
4534   default) ENABLE_THREADS=1
4535  ;;
4536   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4537 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4538    { (exit 1); exit 1; }; } ;;
4539 esac
4540
4541 cat >>confdefs.h <<_ACEOF
4542 #define ENABLE_THREADS $ENABLE_THREADS
4543 _ACEOF
4544
4545
4546 # Check whether --enable-pic was given.
4547 if test "${enable_pic+set}" = set; then
4548   enableval=$enable_pic;
4549 else
4550   enableval=default
4551 fi
4552
4553 case "$enableval" in
4554   yes) ENABLE_PIC=1
4555  ;;
4556   no)  ENABLE_PIC=0
4557  ;;
4558   default) ENABLE_PIC=0
4559  ;;
4560   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4561 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4562    { (exit 1); exit 1; }; } ;;
4563 esac
4564
4565 cat >>confdefs.h <<_ACEOF
4566 #define ENABLE_PIC $ENABLE_PIC
4567 _ACEOF
4568
4569
4570 TARGETS_TO_BUILD=""
4571 # Check whether --enable-targets was given.
4572 if test "${enable_targets+set}" = set; then
4573   enableval=$enable_targets;
4574 else
4575   enableval=all
4576 fi
4577
4578 case "$enableval" in
4579   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU" ;;
4580   host-only)
4581     case "$llvm_cv_target_arch" in
4582       x86)     TARGETS_TO_BUILD="X86" ;;
4583       x86_64)  TARGETS_TO_BUILD="X86" ;;
4584       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4585       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4586       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4587       IA64)    TARGETS_TO_BUILD="IA64" ;;
4588       ARM)     TARGETS_TO_BUILD="ARM" ;;
4589       Mips)    TARGETS_TO_BUILD="Mips" ;;
4590       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4591       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4592 echo "$as_me: error: Can not set target to build" >&2;}
4593    { (exit 1); exit 1; }; } ;;
4594     esac
4595     ;;
4596   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4597       case "$a_target" in
4598         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4599         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4600         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4601         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4602         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4603         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4604         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4605         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4606         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4607         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4608 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4609    { (exit 1); exit 1; }; } ;;
4610       esac
4611   done
4612   ;;
4613 esac
4614 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4615 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4616
4617
4618 # Check whether --enable-cbe-printf-a was given.
4619 if test "${enable_cbe_printf_a+set}" = set; then
4620   enableval=$enable_cbe_printf_a;
4621 else
4622   enableval=default
4623 fi
4624
4625 case "$enableval" in
4626   yes) ENABLE_CBE_PRINTF_A=1
4627  ;;
4628   no)  ENABLE_CBE_PRINTF_A=0
4629  ;;
4630   default)  ENABLE_CBE_PRINTF_A=1
4631  ;;
4632   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4633 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4634    { (exit 1); exit 1; }; } ;;
4635 esac
4636
4637 cat >>confdefs.h <<_ACEOF
4638 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4639 _ACEOF
4640
4641
4642
4643 # Check whether --with-llvmgccdir was given.
4644 if test "${with_llvmgccdir+set}" = set; then
4645   withval=$with_llvmgccdir;
4646 else
4647   withval=default
4648 fi
4649
4650 case "$withval" in
4651   default) WITH_LLVMGCCDIR=default ;;
4652   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4653   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4654 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4655    { (exit 1); exit 1; }; } ;;
4656 esac
4657
4658
4659 # Check whether --with-llvmgcc was given.
4660 if test "${with_llvmgcc+set}" = set; then
4661   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4662       WITH_LLVMGCCDIR=""
4663 fi
4664
4665
4666
4667 # Check whether --with-llvmgxx was given.
4668 if test "${with_llvmgxx+set}" = set; then
4669   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4670     WITH_LLVMGCCDIR=""
4671 fi
4672
4673
4674 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4675    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4676 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4677    { (exit 1); exit 1; }; };
4678 fi
4679
4680 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4681    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4682 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4683    { (exit 1); exit 1; }; };
4684 fi
4685
4686
4687 # Check whether --with-extra-options was given.
4688 if test "${with_extra_options+set}" = set; then
4689   withval=$with_extra_options;
4690 else
4691   withval=default
4692 fi
4693
4694 case "$withval" in
4695   default) EXTRA_OPTIONS= ;;
4696   *) EXTRA_OPTIONS=$withval ;;
4697 esac
4698 EXTRA_OPTIONS=$EXTRA_OPTIONS
4699
4700
4701 # Check whether --enable-bindings was given.
4702 if test "${enable_bindings+set}" = set; then
4703   enableval=$enable_bindings;
4704 else
4705   enableval=default
4706 fi
4707
4708 BINDINGS_TO_BUILD=""
4709 case "$enableval" in
4710   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4711   all ) BINDINGS_TO_BUILD="ocaml" ;;
4712   none | no) BINDINGS_TO_BUILD="" ;;
4713   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4714       case "$a_binding" in
4715         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4716         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4717 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4718    { (exit 1); exit 1; }; } ;;
4719       esac
4720   done
4721   ;;
4722 esac
4723
4724
4725 # Check whether --with-ocaml-libdir was given.
4726 if test "${with_ocaml_libdir+set}" = set; then
4727   withval=$with_ocaml_libdir;
4728 else
4729   withval=auto
4730 fi
4731
4732 case "$withval" in
4733   auto) with_ocaml_libdir="$withval" ;;
4734   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4735   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4736 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4737    { (exit 1); exit 1; }; } ;;
4738 esac
4739
4740
4741 ac_ext=c
4742 ac_cpp='$CPP $CPPFLAGS'
4743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4746 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4747 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4748 # On Suns, sometimes $CPP names a directory.
4749 if test -n "$CPP" && test -d "$CPP"; then
4750   CPP=
4751 fi
4752 if test -z "$CPP"; then
4753   if test "${ac_cv_prog_CPP+set}" = set; then
4754   echo $ECHO_N "(cached) $ECHO_C" >&6
4755 else
4756       # Double quotes because CPP needs to be expanded
4757     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4758     do
4759       ac_preproc_ok=false
4760 for ac_c_preproc_warn_flag in '' yes
4761 do
4762   # Use a header file that comes with gcc, so configuring glibc
4763   # with a fresh cross-compiler works.
4764   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4765   # <limits.h> exists even on freestanding compilers.
4766   # On the NeXT, cc -E runs the code through the compiler's parser,
4767   # not just through cpp. "Syntax error" is here to catch this case.
4768   cat >conftest.$ac_ext <<_ACEOF
4769 /* confdefs.h.  */
4770 _ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h.  */
4774 #ifdef __STDC__
4775 # include <limits.h>
4776 #else
4777 # include <assert.h>
4778 #endif
4779                      Syntax error
4780 _ACEOF
4781 if { (ac_try="$ac_cpp conftest.$ac_ext"
4782 case "(($ac_try" in
4783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784   *) ac_try_echo=$ac_try;;
4785 esac
4786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4787   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4788   ac_status=$?
4789   grep -v '^ *+' conftest.er1 >conftest.err
4790   rm -f conftest.er1
4791   cat conftest.err >&5
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); } >/dev/null && {
4794          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4795          test ! -s conftest.err
4796        }; then
4797   :
4798 else
4799   echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.$ac_ext >&5
4801
4802   # Broken: fails on valid input.
4803 continue
4804 fi
4805
4806 rm -f conftest.err conftest.$ac_ext
4807
4808   # OK, works on sane cases.  Now check whether nonexistent headers
4809   # can be detected and how.
4810   cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h.  */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h.  */
4816 #include <ac_nonexistent.h>
4817 _ACEOF
4818 if { (ac_try="$ac_cpp conftest.$ac_ext"
4819 case "(($ac_try" in
4820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821   *) ac_try_echo=$ac_try;;
4822 esac
4823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4824   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4825   ac_status=$?
4826   grep -v '^ *+' conftest.er1 >conftest.err
4827   rm -f conftest.er1
4828   cat conftest.err >&5
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); } >/dev/null && {
4831          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4832          test ! -s conftest.err
4833        }; then
4834   # Broken: success on invalid input.
4835 continue
4836 else
4837   echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4839
4840   # Passes both tests.
4841 ac_preproc_ok=:
4842 break
4843 fi
4844
4845 rm -f conftest.err conftest.$ac_ext
4846
4847 done
4848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4849 rm -f conftest.err conftest.$ac_ext
4850 if $ac_preproc_ok; then
4851   break
4852 fi
4853
4854     done
4855     ac_cv_prog_CPP=$CPP
4856
4857 fi
4858   CPP=$ac_cv_prog_CPP
4859 else
4860   ac_cv_prog_CPP=$CPP
4861 fi
4862 { echo "$as_me:$LINENO: result: $CPP" >&5
4863 echo "${ECHO_T}$CPP" >&6; }
4864 ac_preproc_ok=false
4865 for ac_c_preproc_warn_flag in '' yes
4866 do
4867   # Use a header file that comes with gcc, so configuring glibc
4868   # with a fresh cross-compiler works.
4869   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4870   # <limits.h> exists even on freestanding compilers.
4871   # On the NeXT, cc -E runs the code through the compiler's parser,
4872   # not just through cpp. "Syntax error" is here to catch this case.
4873   cat >conftest.$ac_ext <<_ACEOF
4874 /* confdefs.h.  */
4875 _ACEOF
4876 cat confdefs.h >>conftest.$ac_ext
4877 cat >>conftest.$ac_ext <<_ACEOF
4878 /* end confdefs.h.  */
4879 #ifdef __STDC__
4880 # include <limits.h>
4881 #else
4882 # include <assert.h>
4883 #endif
4884                      Syntax error
4885 _ACEOF
4886 if { (ac_try="$ac_cpp conftest.$ac_ext"
4887 case "(($ac_try" in
4888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889   *) ac_try_echo=$ac_try;;
4890 esac
4891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4893   ac_status=$?
4894   grep -v '^ *+' conftest.er1 >conftest.err
4895   rm -f conftest.er1
4896   cat conftest.err >&5
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); } >/dev/null && {
4899          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4900          test ! -s conftest.err
4901        }; then
4902   :
4903 else
4904   echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4906
4907   # Broken: fails on valid input.
4908 continue
4909 fi
4910
4911 rm -f conftest.err conftest.$ac_ext
4912
4913   # OK, works on sane cases.  Now check whether nonexistent headers
4914   # can be detected and how.
4915   cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h.  */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h.  */
4921 #include <ac_nonexistent.h>
4922 _ACEOF
4923 if { (ac_try="$ac_cpp conftest.$ac_ext"
4924 case "(($ac_try" in
4925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926   *) ac_try_echo=$ac_try;;
4927 esac
4928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4929   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4930   ac_status=$?
4931   grep -v '^ *+' conftest.er1 >conftest.err
4932   rm -f conftest.er1
4933   cat conftest.err >&5
4934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935   (exit $ac_status); } >/dev/null && {
4936          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4937          test ! -s conftest.err
4938        }; then
4939   # Broken: success on invalid input.
4940 continue
4941 else
4942   echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4944
4945   # Passes both tests.
4946 ac_preproc_ok=:
4947 break
4948 fi
4949
4950 rm -f conftest.err conftest.$ac_ext
4951
4952 done
4953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4954 rm -f conftest.err conftest.$ac_ext
4955 if $ac_preproc_ok; then
4956   :
4957 else
4958   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4959 See \`config.log' for more details." >&5
4960 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4961 See \`config.log' for more details." >&2;}
4962    { (exit 1); exit 1; }; }
4963 fi
4964
4965 ac_ext=c
4966 ac_cpp='$CPP $CPPFLAGS'
4967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970
4971 ac_ext=c
4972 ac_cpp='$CPP $CPPFLAGS'
4973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4976 if test -n "$ac_tool_prefix"; then
4977   for ac_prog in gcc
4978   do
4979     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4983 if test "${ac_cv_prog_CC+set}" = set; then
4984   echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986   if test -n "$CC"; then
4987   ac_cv_prog_CC="$CC" # Let the user override the test.
4988 else
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4991 do
4992   IFS=$as_save_IFS
4993   test -z "$as_dir" && as_dir=.
4994   for ac_exec_ext in '' $ac_executable_extensions; do
4995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998     break 2
4999   fi
5000 done
5001 done
5002 IFS=$as_save_IFS
5003
5004 fi
5005 fi
5006 CC=$ac_cv_prog_CC
5007 if test -n "$CC"; then
5008   { echo "$as_me:$LINENO: result: $CC" >&5
5009 echo "${ECHO_T}$CC" >&6; }
5010 else
5011   { echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6; }
5013 fi
5014
5015
5016     test -n "$CC" && break
5017   done
5018 fi
5019 if test -z "$CC"; then
5020   ac_ct_CC=$CC
5021   for ac_prog in gcc
5022 do
5023   # Extract the first word of "$ac_prog", so it can be a program name with args.
5024 set dummy $ac_prog; ac_word=$2
5025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5028   echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030   if test -n "$ac_ct_CC"; then
5031   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5035 do
5036   IFS=$as_save_IFS
5037   test -z "$as_dir" && as_dir=.
5038   for ac_exec_ext in '' $ac_executable_extensions; do
5039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040     ac_cv_prog_ac_ct_CC="$ac_prog"
5041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042     break 2
5043   fi
5044 done
5045 done
5046 IFS=$as_save_IFS
5047
5048 fi
5049 fi
5050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5051 if test -n "$ac_ct_CC"; then
5052   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5053 echo "${ECHO_T}$ac_ct_CC" >&6; }
5054 else
5055   { echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6; }
5057 fi
5058
5059
5060   test -n "$ac_ct_CC" && break
5061 done
5062
5063   if test "x$ac_ct_CC" = x; then
5064     CC=""
5065   else
5066     case $cross_compiling:$ac_tool_warned in
5067 yes:)
5068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5069 whose name does not start with the host triplet.  If you think this
5070 configuration is useful to you, please write to autoconf@gnu.org." >&5
5071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5072 whose name does not start with the host triplet.  If you think this
5073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5074 ac_tool_warned=yes ;;
5075 esac
5076     CC=$ac_ct_CC
5077   fi
5078 fi
5079
5080
5081 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5082 See \`config.log' for more details." >&5
5083 echo "$as_me: error: no acceptable C compiler found in \$PATH
5084 See \`config.log' for more details." >&2;}
5085    { (exit 1); exit 1; }; }
5086
5087 # Provide some information about the compiler.
5088 echo "$as_me:$LINENO: checking for C compiler version" >&5
5089 ac_compiler=`set X $ac_compile; echo $2`
5090 { (ac_try="$ac_compiler --version >&5"
5091 case "(($ac_try" in
5092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093   *) ac_try_echo=$ac_try;;
5094 esac
5095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096   (eval "$ac_compiler --version >&5") 2>&5
5097   ac_status=$?
5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099   (exit $ac_status); }
5100 { (ac_try="$ac_compiler -v >&5"
5101 case "(($ac_try" in
5102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103   *) ac_try_echo=$ac_try;;
5104 esac
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106   (eval "$ac_compiler -v >&5") 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); }
5110 { (ac_try="$ac_compiler -V >&5"
5111 case "(($ac_try" in
5112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113   *) ac_try_echo=$ac_try;;
5114 esac
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116   (eval "$ac_compiler -V >&5") 2>&5
5117   ac_status=$?
5118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119   (exit $ac_status); }
5120
5121 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5122 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5123 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5124   echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126   cat >conftest.$ac_ext <<_ACEOF
5127 /* confdefs.h.  */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h.  */
5132
5133 int
5134 main ()
5135 {
5136 #ifndef __GNUC__
5137        choke me
5138 #endif
5139
5140   ;
5141   return 0;
5142 }
5143 _ACEOF
5144 rm -f conftest.$ac_objext
5145 if { (ac_try="$ac_compile"
5146 case "(($ac_try" in
5147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148   *) ac_try_echo=$ac_try;;
5149 esac
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151   (eval "$ac_compile") 2>conftest.er1
5152   ac_status=$?
5153   grep -v '^ *+' conftest.er1 >conftest.err
5154   rm -f conftest.er1
5155   cat conftest.err >&5
5156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157   (exit $ac_status); } && {
5158          test -z "$ac_c_werror_flag" ||
5159          test ! -s conftest.err
5160        } && test -s conftest.$ac_objext; then
5161   ac_compiler_gnu=yes
5162 else
5163   echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5165
5166         ac_compiler_gnu=no
5167 fi
5168
5169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5171
5172 fi
5173 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5174 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5175 GCC=`test $ac_compiler_gnu = yes && echo yes`
5176 ac_test_CFLAGS=${CFLAGS+set}
5177 ac_save_CFLAGS=$CFLAGS
5178 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5179 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5180 if test "${ac_cv_prog_cc_g+set}" = set; then
5181   echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183   ac_save_c_werror_flag=$ac_c_werror_flag
5184    ac_c_werror_flag=yes
5185    ac_cv_prog_cc_g=no
5186    CFLAGS="-g"
5187    cat >conftest.$ac_ext <<_ACEOF
5188 /* confdefs.h.  */
5189 _ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h.  */
5193
5194 int
5195 main ()
5196 {
5197
5198   ;
5199   return 0;
5200 }
5201 _ACEOF
5202 rm -f conftest.$ac_objext
5203 if { (ac_try="$ac_compile"
5204 case "(($ac_try" in
5205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206   *) ac_try_echo=$ac_try;;
5207 esac
5208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209   (eval "$ac_compile") 2>conftest.er1
5210   ac_status=$?
5211   grep -v '^ *+' conftest.er1 >conftest.err
5212   rm -f conftest.er1
5213   cat conftest.err >&5
5214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215   (exit $ac_status); } && {
5216          test -z "$ac_c_werror_flag" ||
5217          test ! -s conftest.err
5218        } && test -s conftest.$ac_objext; then
5219   ac_cv_prog_cc_g=yes
5220 else
5221   echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5223
5224         CFLAGS=""
5225       cat >conftest.$ac_ext <<_ACEOF
5226 /* confdefs.h.  */
5227 _ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h.  */
5231
5232 int
5233 main ()
5234 {
5235
5236   ;
5237   return 0;
5238 }
5239 _ACEOF
5240 rm -f conftest.$ac_objext
5241 if { (ac_try="$ac_compile"
5242 case "(($ac_try" in
5243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244   *) ac_try_echo=$ac_try;;
5245 esac
5246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5247   (eval "$ac_compile") 2>conftest.er1
5248   ac_status=$?
5249   grep -v '^ *+' conftest.er1 >conftest.err
5250   rm -f conftest.er1
5251   cat conftest.err >&5
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); } && {
5254          test -z "$ac_c_werror_flag" ||
5255          test ! -s conftest.err
5256        } && test -s conftest.$ac_objext; then
5257   :
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262         ac_c_werror_flag=$ac_save_c_werror_flag
5263          CFLAGS="-g"
5264          cat >conftest.$ac_ext <<_ACEOF
5265 /* confdefs.h.  */
5266 _ACEOF
5267 cat confdefs.h >>conftest.$ac_ext
5268 cat >>conftest.$ac_ext <<_ACEOF
5269 /* end confdefs.h.  */
5270
5271 int
5272 main ()
5273 {
5274
5275   ;
5276   return 0;
5277 }
5278 _ACEOF
5279 rm -f conftest.$ac_objext
5280 if { (ac_try="$ac_compile"
5281 case "(($ac_try" in
5282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283   *) ac_try_echo=$ac_try;;
5284 esac
5285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286   (eval "$ac_compile") 2>conftest.er1
5287   ac_status=$?
5288   grep -v '^ *+' conftest.er1 >conftest.err
5289   rm -f conftest.er1
5290   cat conftest.err >&5
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); } && {
5293          test -z "$ac_c_werror_flag" ||
5294          test ! -s conftest.err
5295        } && test -s conftest.$ac_objext; then
5296   ac_cv_prog_cc_g=yes
5297 else
5298   echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5300
5301
5302 fi
5303
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 fi
5306
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308 fi
5309
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311    ac_c_werror_flag=$ac_save_c_werror_flag
5312 fi
5313 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5314 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5315 if test "$ac_test_CFLAGS" = set; then
5316   CFLAGS=$ac_save_CFLAGS
5317 elif test $ac_cv_prog_cc_g = yes; then
5318   if test "$GCC" = yes; then
5319     CFLAGS="-g -O2"
5320   else
5321     CFLAGS="-g"
5322   fi
5323 else
5324   if test "$GCC" = yes; then
5325     CFLAGS="-O2"
5326   else
5327     CFLAGS=
5328   fi
5329 fi
5330 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5331 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5332 if test "${ac_cv_prog_cc_c89+set}" = set; then
5333   echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335   ac_cv_prog_cc_c89=no
5336 ac_save_CC=$CC
5337 cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h.  */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h.  */
5343 #include <stdarg.h>
5344 #include <stdio.h>
5345 #include <sys/types.h>
5346 #include <sys/stat.h>
5347 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5348 struct buf { int x; };
5349 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5350 static char *e (p, i)
5351      char **p;
5352      int i;
5353 {
5354   return p[i];
5355 }
5356 static char *f (char * (*g) (char **, int), char **p, ...)
5357 {
5358   char *s;
5359   va_list v;
5360   va_start (v,p);
5361   s = g (p, va_arg (v,int));
5362   va_end (v);
5363   return s;
5364 }
5365
5366 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5367    function prototypes and stuff, but not '\xHH' hex character constants.
5368    These don't provoke an error unfortunately, instead are silently treated
5369    as 'x'.  The following induces an error, until -std is added to get
5370    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5371    array size at least.  It's necessary to write '\x00'==0 to get something
5372    that's true only with -std.  */
5373 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5374
5375 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5376    inside strings and character constants.  */
5377 #define FOO(x) 'x'
5378 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5379
5380 int test (int i, double x);
5381 struct s1 {int (*f) (int a);};
5382 struct s2 {int (*f) (double a);};
5383 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5384 int argc;
5385 char **argv;
5386 int
5387 main ()
5388 {
5389 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5390   ;
5391   return 0;
5392 }
5393 _ACEOF
5394 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5395         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5396 do
5397   CC="$ac_save_CC $ac_arg"
5398   rm -f conftest.$ac_objext
5399 if { (ac_try="$ac_compile"
5400 case "(($ac_try" in
5401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402   *) ac_try_echo=$ac_try;;
5403 esac
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405   (eval "$ac_compile") 2>conftest.er1
5406   ac_status=$?
5407   grep -v '^ *+' conftest.er1 >conftest.err
5408   rm -f conftest.er1
5409   cat conftest.err >&5
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); } && {
5412          test -z "$ac_c_werror_flag" ||
5413          test ! -s conftest.err
5414        } && test -s conftest.$ac_objext; then
5415   ac_cv_prog_cc_c89=$ac_arg
5416 else
5417   echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5419
5420
5421 fi
5422
5423 rm -f core conftest.err conftest.$ac_objext
5424   test "x$ac_cv_prog_cc_c89" != "xno" && break
5425 done
5426 rm -f conftest.$ac_ext
5427 CC=$ac_save_CC
5428
5429 fi
5430 # AC_CACHE_VAL
5431 case "x$ac_cv_prog_cc_c89" in
5432   x)
5433     { echo "$as_me:$LINENO: result: none needed" >&5
5434 echo "${ECHO_T}none needed" >&6; } ;;
5435   xno)
5436     { echo "$as_me:$LINENO: result: unsupported" >&5
5437 echo "${ECHO_T}unsupported" >&6; } ;;
5438   *)
5439     CC="$CC $ac_cv_prog_cc_c89"
5440     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5441 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5442 esac
5443
5444
5445 ac_ext=c
5446 ac_cpp='$CPP $CPPFLAGS'
5447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5450
5451 ac_ext=cpp
5452 ac_cpp='$CXXCPP $CPPFLAGS'
5453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5456 if test -z "$CXX"; then
5457   if test -n "$CCC"; then
5458     CXX=$CCC
5459   else
5460     if test -n "$ac_tool_prefix"; then
5461   for ac_prog in g++
5462   do
5463     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5467 if test "${ac_cv_prog_CXX+set}" = set; then
5468   echo $ECHO_N "(cached) $ECHO_C" >&6
5469 else
5470   if test -n "$CXX"; then
5471   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5472 else
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5475 do
5476   IFS=$as_save_IFS
5477   test -z "$as_dir" && as_dir=.
5478   for ac_exec_ext in '' $ac_executable_extensions; do
5479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482     break 2
5483   fi
5484 done
5485 done
5486 IFS=$as_save_IFS
5487
5488 fi
5489 fi
5490 CXX=$ac_cv_prog_CXX
5491 if test -n "$CXX"; then
5492   { echo "$as_me:$LINENO: result: $CXX" >&5
5493 echo "${ECHO_T}$CXX" >&6; }
5494 else
5495   { echo "$as_me:$LINENO: result: no" >&5
5496 echo "${ECHO_T}no" >&6; }
5497 fi
5498
5499
5500     test -n "$CXX" && break
5501   done
5502 fi
5503 if test -z "$CXX"; then
5504   ac_ct_CXX=$CXX
5505   for ac_prog in g++
5506 do
5507   # Extract the first word of "$ac_prog", so it can be a program name with args.
5508 set dummy $ac_prog; ac_word=$2
5509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5511 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5512   echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514   if test -n "$ac_ct_CXX"; then
5515   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5516 else
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5519 do
5520   IFS=$as_save_IFS
5521   test -z "$as_dir" && as_dir=.
5522   for ac_exec_ext in '' $ac_executable_extensions; do
5523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5524     ac_cv_prog_ac_ct_CXX="$ac_prog"
5525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5526     break 2
5527   fi
5528 done
5529 done
5530 IFS=$as_save_IFS
5531
5532 fi
5533 fi
5534 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5535 if test -n "$ac_ct_CXX"; then
5536   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5537 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5538 else
5539   { echo "$as_me:$LINENO: result: no" >&5
5540 echo "${ECHO_T}no" >&6; }
5541 fi
5542
5543
5544   test -n "$ac_ct_CXX" && break
5545 done
5546
5547   if test "x$ac_ct_CXX" = x; then
5548     CXX="g++"
5549   else
5550     case $cross_compiling:$ac_tool_warned in
5551 yes:)
5552 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5553 whose name does not start with the host triplet.  If you think this
5554 configuration is useful to you, please write to autoconf@gnu.org." >&5
5555 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5556 whose name does not start with the host triplet.  If you think this
5557 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5558 ac_tool_warned=yes ;;
5559 esac
5560     CXX=$ac_ct_CXX
5561   fi
5562 fi
5563
5564   fi
5565 fi
5566 # Provide some information about the compiler.
5567 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5568 ac_compiler=`set X $ac_compile; echo $2`
5569 { (ac_try="$ac_compiler --version >&5"
5570 case "(($ac_try" in
5571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572   *) ac_try_echo=$ac_try;;
5573 esac
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575   (eval "$ac_compiler --version >&5") 2>&5
5576   ac_status=$?
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); }
5579 { (ac_try="$ac_compiler -v >&5"
5580 case "(($ac_try" in
5581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582   *) ac_try_echo=$ac_try;;
5583 esac
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585   (eval "$ac_compiler -v >&5") 2>&5
5586   ac_status=$?
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); }
5589 { (ac_try="$ac_compiler -V >&5"
5590 case "(($ac_try" in
5591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592   *) ac_try_echo=$ac_try;;
5593 esac
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595   (eval "$ac_compiler -V >&5") 2>&5
5596   ac_status=$?
5597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598   (exit $ac_status); }
5599
5600 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5601 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5602 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5603   echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605   cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h.  */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h.  */
5611
5612 int
5613 main ()
5614 {
5615 #ifndef __GNUC__
5616        choke me
5617 #endif
5618
5619   ;
5620   return 0;
5621 }
5622 _ACEOF
5623 rm -f conftest.$ac_objext
5624 if { (ac_try="$ac_compile"
5625 case "(($ac_try" in
5626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627   *) ac_try_echo=$ac_try;;
5628 esac
5629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5630   (eval "$ac_compile") 2>conftest.er1
5631   ac_status=$?
5632   grep -v '^ *+' conftest.er1 >conftest.err
5633   rm -f conftest.er1
5634   cat conftest.err >&5
5635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); } && {
5637          test -z "$ac_cxx_werror_flag" ||
5638          test ! -s conftest.err
5639        } && test -s conftest.$ac_objext; then
5640   ac_compiler_gnu=yes
5641 else
5642   echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645         ac_compiler_gnu=no
5646 fi
5647
5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5650
5651 fi
5652 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5653 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5654 GXX=`test $ac_compiler_gnu = yes && echo yes`
5655 ac_test_CXXFLAGS=${CXXFLAGS+set}
5656 ac_save_CXXFLAGS=$CXXFLAGS
5657 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5658 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5659 if test "${ac_cv_prog_cxx_g+set}" = set; then
5660   echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5663    ac_cxx_werror_flag=yes
5664    ac_cv_prog_cxx_g=no
5665    CXXFLAGS="-g"
5666    cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h.  */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h.  */
5672
5673 int
5674 main ()
5675 {
5676
5677   ;
5678   return 0;
5679 }
5680 _ACEOF
5681 rm -f conftest.$ac_objext
5682 if { (ac_try="$ac_compile"
5683 case "(($ac_try" in
5684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685   *) ac_try_echo=$ac_try;;
5686 esac
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688   (eval "$ac_compile") 2>conftest.er1
5689   ac_status=$?
5690   grep -v '^ *+' conftest.er1 >conftest.err
5691   rm -f conftest.er1
5692   cat conftest.err >&5
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); } && {
5695          test -z "$ac_cxx_werror_flag" ||
5696          test ! -s conftest.err
5697        } && test -s conftest.$ac_objext; then
5698   ac_cv_prog_cxx_g=yes
5699 else
5700   echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5702
5703         CXXFLAGS=""
5704       cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h.  */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h.  */
5710
5711 int
5712 main ()
5713 {
5714
5715   ;
5716   return 0;
5717 }
5718 _ACEOF
5719 rm -f conftest.$ac_objext
5720 if { (ac_try="$ac_compile"
5721 case "(($ac_try" in
5722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723   *) ac_try_echo=$ac_try;;
5724 esac
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726   (eval "$ac_compile") 2>conftest.er1
5727   ac_status=$?
5728   grep -v '^ *+' conftest.er1 >conftest.err
5729   rm -f conftest.er1
5730   cat conftest.err >&5
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); } && {
5733          test -z "$ac_cxx_werror_flag" ||
5734          test ! -s conftest.err
5735        } && test -s conftest.$ac_objext; then
5736   :
5737 else
5738   echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5740
5741         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5742          CXXFLAGS="-g"
5743          cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h.  */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h.  */
5749
5750 int
5751 main ()
5752 {
5753
5754   ;
5755   return 0;
5756 }
5757 _ACEOF
5758 rm -f conftest.$ac_objext
5759 if { (ac_try="$ac_compile"
5760 case "(($ac_try" in
5761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762   *) ac_try_echo=$ac_try;;
5763 esac
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765   (eval "$ac_compile") 2>conftest.er1
5766   ac_status=$?
5767   grep -v '^ *+' conftest.er1 >conftest.err
5768   rm -f conftest.er1
5769   cat conftest.err >&5
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); } && {
5772          test -z "$ac_cxx_werror_flag" ||
5773          test ! -s conftest.err
5774        } && test -s conftest.$ac_objext; then
5775   ac_cv_prog_cxx_g=yes
5776 else
5777   echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5779
5780
5781 fi
5782
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 fi
5785
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 fi
5788
5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5791 fi
5792 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5793 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5794 if test "$ac_test_CXXFLAGS" = set; then
5795   CXXFLAGS=$ac_save_CXXFLAGS
5796 elif test $ac_cv_prog_cxx_g = yes; then
5797   if test "$GXX" = yes; then
5798     CXXFLAGS="-g -O2"
5799   else
5800     CXXFLAGS="-g"
5801   fi
5802 else
5803   if test "$GXX" = yes; then
5804     CXXFLAGS="-O2"
5805   else
5806     CXXFLAGS=
5807   fi
5808 fi
5809 ac_ext=c
5810 ac_cpp='$CPP $CPPFLAGS'
5811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5814
5815 { echo "$as_me:$LINENO: checking " >&5
5816 echo $ECHO_N "checking ... $ECHO_C" >&6; }
5817 if test "${ac_cv_has_flex+set}" = set; then
5818   echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820   for ac_prog in flex lex
5821 do
5822   # Extract the first word of "$ac_prog", so it can be a program name with args.
5823 set dummy $ac_prog; ac_word=$2
5824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5826 if test "${ac_cv_prog_LEX+set}" = set; then
5827   echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829   if test -n "$LEX"; then
5830   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5834 do
5835   IFS=$as_save_IFS
5836   test -z "$as_dir" && as_dir=.
5837   for ac_exec_ext in '' $ac_executable_extensions; do
5838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839     ac_cv_prog_LEX="$ac_prog"
5840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841     break 2
5842   fi
5843 done
5844 done
5845 IFS=$as_save_IFS
5846
5847 fi
5848 fi
5849 LEX=$ac_cv_prog_LEX
5850 if test -n "$LEX"; then
5851   { echo "$as_me:$LINENO: result: $LEX" >&5
5852 echo "${ECHO_T}$LEX" >&6; }
5853 else
5854   { echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6; }
5856 fi
5857
5858
5859   test -n "$LEX" && break
5860 done
5861 test -n "$LEX" || LEX=":"
5862
5863 if test "x$LEX" != "x:"; then
5864   cat >conftest.l <<_ACEOF
5865 %%
5866 a { ECHO; }
5867 b { REJECT; }
5868 c { yymore (); }
5869 d { yyless (1); }
5870 e { yyless (input () != 0); }
5871 f { unput (yytext[0]); }
5872 . { BEGIN INITIAL; }
5873 %%
5874 #ifdef YYTEXT_POINTER
5875 extern char *yytext;
5876 #endif
5877 int
5878 main (void)
5879 {
5880   return ! yylex () + ! yywrap ();
5881 }
5882 _ACEOF
5883 { (ac_try="$LEX conftest.l"
5884 case "(($ac_try" in
5885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886   *) ac_try_echo=$ac_try;;
5887 esac
5888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889   (eval "$LEX conftest.l") 2>&5
5890   ac_status=$?
5891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892   (exit $ac_status); }
5893 { echo "$as_me:$LINENO: checking lex output file root" >&5
5894 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5895 if test "${ac_cv_prog_lex_root+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898
5899 if test -f lex.yy.c; then
5900   ac_cv_prog_lex_root=lex.yy
5901 elif test -f lexyy.c; then
5902   ac_cv_prog_lex_root=lexyy
5903 else
5904   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5905 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5906    { (exit 1); exit 1; }; }
5907 fi
5908 fi
5909 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5910 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5911 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5912
5913 if test -z "${LEXLIB+set}"; then
5914   { echo "$as_me:$LINENO: checking lex library" >&5
5915 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
5916 if test "${ac_cv_lib_lex+set}" = set; then
5917   echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919
5920     ac_save_LIBS=$LIBS
5921     ac_cv_lib_lex='none needed'
5922     for ac_lib in '' -lfl -ll; do
5923       LIBS="$ac_lib $ac_save_LIBS"
5924       cat >conftest.$ac_ext <<_ACEOF
5925 `cat $LEX_OUTPUT_ROOT.c`
5926 _ACEOF
5927 rm -f conftest.$ac_objext conftest$ac_exeext
5928 if { (ac_try="$ac_link"
5929 case "(($ac_try" in
5930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931   *) ac_try_echo=$ac_try;;
5932 esac
5933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934   (eval "$ac_link") 2>conftest.er1
5935   ac_status=$?
5936   grep -v '^ *+' conftest.er1 >conftest.err
5937   rm -f conftest.er1
5938   cat conftest.err >&5
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); } && {
5941          test -z "$ac_c_werror_flag" ||
5942          test ! -s conftest.err
5943        } && test -s conftest$ac_exeext &&
5944        $as_test_x conftest$ac_exeext; then
5945   ac_cv_lib_lex=$ac_lib
5946 else
5947   echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5949
5950
5951 fi
5952
5953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5954       conftest$ac_exeext conftest.$ac_ext
5955       test "$ac_cv_lib_lex" != 'none needed' && break
5956     done
5957     LIBS=$ac_save_LIBS
5958
5959 fi
5960 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
5961 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
5962   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5963 fi
5964
5965
5966 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5967 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5968 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5969   echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971   # POSIX says lex can declare yytext either as a pointer or an array; the
5972 # default is implementation-dependent.  Figure out which it is, since
5973 # not all implementations provide the %pointer and %array declarations.
5974 ac_cv_prog_lex_yytext_pointer=no
5975 ac_save_LIBS=$LIBS
5976 LIBS="$LEXLIB $ac_save_LIBS"
5977 cat >conftest.$ac_ext <<_ACEOF
5978 #define YYTEXT_POINTER 1
5979 `cat $LEX_OUTPUT_ROOT.c`
5980 _ACEOF
5981 rm -f conftest.$ac_objext conftest$ac_exeext
5982 if { (ac_try="$ac_link"
5983 case "(($ac_try" in
5984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985   *) ac_try_echo=$ac_try;;
5986 esac
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988   (eval "$ac_link") 2>conftest.er1
5989   ac_status=$?
5990   grep -v '^ *+' conftest.er1 >conftest.err
5991   rm -f conftest.er1
5992   cat conftest.err >&5
5993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); } && {
5995          test -z "$ac_c_werror_flag" ||
5996          test ! -s conftest.err
5997        } && test -s conftest$ac_exeext &&
5998        $as_test_x conftest$ac_exeext; then
5999   ac_cv_prog_lex_yytext_pointer=yes
6000 else
6001   echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.$ac_ext >&5
6003
6004
6005 fi
6006
6007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6008       conftest$ac_exeext conftest.$ac_ext
6009 LIBS=$ac_save_LIBS
6010
6011 fi
6012 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6013 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6014 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6015
6016 cat >>confdefs.h <<\_ACEOF
6017 #define YYTEXT_POINTER 1
6018 _ACEOF
6019
6020 fi
6021 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6022
6023 fi
6024
6025 fi
6026 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6027 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6028 if test "$LEX" != "flex"; then
6029   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6030 echo "$as_me: error: flex not found but required" >&2;}
6031    { (exit 1); exit 1; }; }
6032 else
6033   FLEX=flex
6034
6035 fi
6036
6037 { echo "$as_me:$LINENO: checking " >&5
6038 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6039 if test "${llvm_cv_has_bison+set}" = set; then
6040   echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042   for ac_prog in 'bison -y' byacc
6043 do
6044   # Extract the first word of "$ac_prog", so it can be a program name with args.
6045 set dummy $ac_prog; ac_word=$2
6046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6048 if test "${ac_cv_prog_YACC+set}" = set; then
6049   echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051   if test -n "$YACC"; then
6052   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6053 else
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH
6056 do
6057   IFS=$as_save_IFS
6058   test -z "$as_dir" && as_dir=.
6059   for ac_exec_ext in '' $ac_executable_extensions; do
6060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6061     ac_cv_prog_YACC="$ac_prog"
6062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6063     break 2
6064   fi
6065 done
6066 done
6067 IFS=$as_save_IFS
6068
6069 fi
6070 fi
6071 YACC=$ac_cv_prog_YACC
6072 if test -n "$YACC"; then
6073   { echo "$as_me:$LINENO: result: $YACC" >&5
6074 echo "${ECHO_T}$YACC" >&6; }
6075 else
6076   { echo "$as_me:$LINENO: result: no" >&5
6077 echo "${ECHO_T}no" >&6; }
6078 fi
6079
6080
6081   test -n "$YACC" && break
6082 done
6083 test -n "$YACC" || YACC="yacc"
6084
6085 fi
6086 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6087 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6088 if test "$YACC" != "bison -y"; then
6089
6090   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6091 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6092 else
6093   BISON=bison
6094
6095 fi
6096
6097 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6098 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6099 if test "${lt_cv_path_NM+set}" = set; then
6100   echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102   if test -n "$NM"; then
6103   # Let the user override the test.
6104   lt_cv_path_NM="$NM"
6105 else
6106   lt_nm_to_check="${ac_tool_prefix}nm"
6107   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6108     lt_nm_to_check="$lt_nm_to_check nm"
6109   fi
6110   for lt_tmp_nm in $lt_nm_to_check; do
6111     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6112     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6113       IFS="$lt_save_ifs"
6114       test -z "$ac_dir" && ac_dir=.
6115       tmp_nm="$ac_dir/$lt_tmp_nm"
6116       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6117         # Check to see if the nm accepts a BSD-compat flag.
6118         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6119         #   nm: unknown option "B" ignored
6120         # Tru64's nm complains that /dev/null is an invalid object file
6121         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6122         */dev/null* | *'Invalid file or object type'*)
6123           lt_cv_path_NM="$tmp_nm -B"
6124           break
6125           ;;
6126         *)
6127           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6128           */dev/null*)
6129             lt_cv_path_NM="$tmp_nm -p"
6130             break
6131             ;;
6132           *)
6133             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6134             continue # so that we can try to find one that supports BSD flags
6135             ;;
6136           esac
6137           ;;
6138         esac
6139       fi
6140     done
6141     IFS="$lt_save_ifs"
6142   done
6143   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6144 fi
6145 fi
6146 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6147 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6148 NM="$lt_cv_path_NM"
6149
6150
6151
6152 { echo "$as_me:$LINENO: checking for GNU make" >&5
6153 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6154 if test "${llvm_cv_gnu_make_command+set}" = set; then
6155   echo $ECHO_N "(cached) $ECHO_C" >&6
6156 else
6157   llvm_cv_gnu_make_command=''
6158  for a in "$MAKE" make gmake gnumake ; do
6159   if test -z "$a" ; then continue ; fi ;
6160   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6161   then
6162    llvm_cv_gnu_make_command=$a ;
6163    break;
6164   fi
6165  done
6166 fi
6167 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6168 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6169  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6170    ifGNUmake='' ;
6171  else
6172    ifGNUmake='#' ;
6173    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6174 echo "${ECHO_T}\"Not found\"" >&6; };
6175  fi
6176
6177
6178 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6179 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6180 LN_S=$as_ln_s
6181 if test "$LN_S" = "ln -s"; then
6182   { echo "$as_me:$LINENO: result: yes" >&5
6183 echo "${ECHO_T}yes" >&6; }
6184 else
6185   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6186 echo "${ECHO_T}no, using $LN_S" >&6; }
6187 fi
6188
6189 # Extract the first word of "cmp", so it can be a program name with args.
6190 set dummy cmp; ac_word=$2
6191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193 if test "${ac_cv_path_CMP+set}" = set; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   case $CMP in
6197   [\\/]* | ?:[\\/]*)
6198   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6199   ;;
6200   *)
6201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204   IFS=$as_save_IFS
6205   test -z "$as_dir" && as_dir=.
6206   for ac_exec_ext in '' $ac_executable_extensions; do
6207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210     break 2
6211   fi
6212 done
6213 done
6214 IFS=$as_save_IFS
6215
6216   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6217   ;;
6218 esac
6219 fi
6220 CMP=$ac_cv_path_CMP
6221 if test -n "$CMP"; then
6222   { echo "$as_me:$LINENO: result: $CMP" >&5
6223 echo "${ECHO_T}$CMP" >&6; }
6224 else
6225   { echo "$as_me:$LINENO: result: no" >&5
6226 echo "${ECHO_T}no" >&6; }
6227 fi
6228
6229
6230 # Extract the first word of "cp", so it can be a program name with args.
6231 set dummy cp; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_path_CP+set}" = set; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237   case $CP in
6238   [\\/]* | ?:[\\/]*)
6239   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6240   ;;
6241   *)
6242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245   IFS=$as_save_IFS
6246   test -z "$as_dir" && as_dir=.
6247   for ac_exec_ext in '' $ac_executable_extensions; do
6248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251     break 2
6252   fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6258   ;;
6259 esac
6260 fi
6261 CP=$ac_cv_path_CP
6262 if test -n "$CP"; then
6263   { echo "$as_me:$LINENO: result: $CP" >&5
6264 echo "${ECHO_T}$CP" >&6; }
6265 else
6266   { echo "$as_me:$LINENO: result: no" >&5
6267 echo "${ECHO_T}no" >&6; }
6268 fi
6269
6270
6271 # Extract the first word of "date", so it can be a program name with args.
6272 set dummy date; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_path_DATE+set}" = set; then
6276   echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278   case $DATE in
6279   [\\/]* | ?:[\\/]*)
6280   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6281   ;;
6282   *)
6283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286   IFS=$as_save_IFS
6287   test -z "$as_dir" && as_dir=.
6288   for ac_exec_ext in '' $ac_executable_extensions; do
6289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6290     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292     break 2
6293   fi
6294 done
6295 done
6296 IFS=$as_save_IFS
6297
6298   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6299   ;;
6300 esac
6301 fi
6302 DATE=$ac_cv_path_DATE
6303 if test -n "$DATE"; then
6304   { echo "$as_me:$LINENO: result: $DATE" >&5
6305 echo "${ECHO_T}$DATE" >&6; }
6306 else
6307   { echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6; }
6309 fi
6310
6311
6312 # Extract the first word of "find", so it can be a program name with args.
6313 set dummy find; ac_word=$2
6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316 if test "${ac_cv_path_FIND+set}" = set; then
6317   echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319   case $FIND in
6320   [\\/]* | ?:[\\/]*)
6321   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6322   ;;
6323   *)
6324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327   IFS=$as_save_IFS
6328   test -z "$as_dir" && as_dir=.
6329   for ac_exec_ext in '' $ac_executable_extensions; do
6330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333     break 2
6334   fi
6335 done
6336 done
6337 IFS=$as_save_IFS
6338
6339   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6340   ;;
6341 esac
6342 fi
6343 FIND=$ac_cv_path_FIND
6344 if test -n "$FIND"; then
6345   { echo "$as_me:$LINENO: result: $FIND" >&5
6346 echo "${ECHO_T}$FIND" >&6; }
6347 else
6348   { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6350 fi
6351
6352
6353 # Extract the first word of "grep", so it can be a program name with args.
6354 set dummy grep; ac_word=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_path_GREP+set}" = set; then
6358   echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360   case $GREP in
6361   [\\/]* | ?:[\\/]*)
6362   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6363   ;;
6364   *)
6365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6367 do
6368   IFS=$as_save_IFS
6369   test -z "$as_dir" && as_dir=.
6370   for ac_exec_ext in '' $ac_executable_extensions; do
6371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6372     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374     break 2
6375   fi
6376 done
6377 done
6378 IFS=$as_save_IFS
6379
6380   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6381   ;;
6382 esac
6383 fi
6384 GREP=$ac_cv_path_GREP
6385 if test -n "$GREP"; then
6386   { echo "$as_me:$LINENO: result: $GREP" >&5
6387 echo "${ECHO_T}$GREP" >&6; }
6388 else
6389   { echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6; }
6391 fi
6392
6393
6394 # Extract the first word of "mkdir", so it can be a program name with args.
6395 set dummy mkdir; ac_word=$2
6396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398 if test "${ac_cv_path_MKDIR+set}" = set; then
6399   echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401   case $MKDIR in
6402   [\\/]* | ?:[\\/]*)
6403   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6404   ;;
6405   *)
6406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6408 do
6409   IFS=$as_save_IFS
6410   test -z "$as_dir" && as_dir=.
6411   for ac_exec_ext in '' $ac_executable_extensions; do
6412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6415     break 2
6416   fi
6417 done
6418 done
6419 IFS=$as_save_IFS
6420
6421   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6422   ;;
6423 esac
6424 fi
6425 MKDIR=$ac_cv_path_MKDIR
6426 if test -n "$MKDIR"; then
6427   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6428 echo "${ECHO_T}$MKDIR" >&6; }
6429 else
6430   { echo "$as_me:$LINENO: result: no" >&5
6431 echo "${ECHO_T}no" >&6; }
6432 fi
6433
6434
6435 # Extract the first word of "mv", so it can be a program name with args.
6436 set dummy mv; ac_word=$2
6437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6439 if test "${ac_cv_path_MV+set}" = set; then
6440   echo $ECHO_N "(cached) $ECHO_C" >&6
6441 else
6442   case $MV in
6443   [\\/]* | ?:[\\/]*)
6444   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6445   ;;
6446   *)
6447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6449 do
6450   IFS=$as_save_IFS
6451   test -z "$as_dir" && as_dir=.
6452   for ac_exec_ext in '' $ac_executable_extensions; do
6453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6456     break 2
6457   fi
6458 done
6459 done
6460 IFS=$as_save_IFS
6461
6462   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6463   ;;
6464 esac
6465 fi
6466 MV=$ac_cv_path_MV
6467 if test -n "$MV"; then
6468   { echo "$as_me:$LINENO: result: $MV" >&5
6469 echo "${ECHO_T}$MV" >&6; }
6470 else
6471   { echo "$as_me:$LINENO: result: no" >&5
6472 echo "${ECHO_T}no" >&6; }
6473 fi
6474
6475
6476 if test -n "$ac_tool_prefix"; then
6477   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6478 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6481 if test "${ac_cv_prog_RANLIB+set}" = set; then
6482   echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484   if test -n "$RANLIB"; then
6485   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6486 else
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490   IFS=$as_save_IFS
6491   test -z "$as_dir" && as_dir=.
6492   for ac_exec_ext in '' $ac_executable_extensions; do
6493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6496     break 2
6497   fi
6498 done
6499 done
6500 IFS=$as_save_IFS
6501
6502 fi
6503 fi
6504 RANLIB=$ac_cv_prog_RANLIB
6505 if test -n "$RANLIB"; then
6506   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6507 echo "${ECHO_T}$RANLIB" >&6; }
6508 else
6509   { echo "$as_me:$LINENO: result: no" >&5
6510 echo "${ECHO_T}no" >&6; }
6511 fi
6512
6513
6514 fi
6515 if test -z "$ac_cv_prog_RANLIB"; then
6516   ac_ct_RANLIB=$RANLIB
6517   # Extract the first word of "ranlib", so it can be a program name with args.
6518 set dummy ranlib; ac_word=$2
6519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6522   echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524   if test -n "$ac_ct_RANLIB"; then
6525   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6529 do
6530   IFS=$as_save_IFS
6531   test -z "$as_dir" && as_dir=.
6532   for ac_exec_ext in '' $ac_executable_extensions; do
6533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6534     ac_cv_prog_ac_ct_RANLIB="ranlib"
6535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536     break 2
6537   fi
6538 done
6539 done
6540 IFS=$as_save_IFS
6541
6542 fi
6543 fi
6544 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6545 if test -n "$ac_ct_RANLIB"; then
6546   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6547 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6548 else
6549   { echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6; }
6551 fi
6552
6553   if test "x$ac_ct_RANLIB" = x; then
6554     RANLIB=":"
6555   else
6556     case $cross_compiling:$ac_tool_warned in
6557 yes:)
6558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6559 whose name does not start with the host triplet.  If you think this
6560 configuration is useful to you, please write to autoconf@gnu.org." >&5
6561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6562 whose name does not start with the host triplet.  If you think this
6563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6564 ac_tool_warned=yes ;;
6565 esac
6566     RANLIB=$ac_ct_RANLIB
6567   fi
6568 else
6569   RANLIB="$ac_cv_prog_RANLIB"
6570 fi
6571
6572 # Extract the first word of "rm", so it can be a program name with args.
6573 set dummy rm; ac_word=$2
6574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576 if test "${ac_cv_path_RM+set}" = set; then
6577   echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579   case $RM in
6580   [\\/]* | ?:[\\/]*)
6581   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6582   ;;
6583   *)
6584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587   IFS=$as_save_IFS
6588   test -z "$as_dir" && as_dir=.
6589   for ac_exec_ext in '' $ac_executable_extensions; do
6590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593     break 2
6594   fi
6595 done
6596 done
6597 IFS=$as_save_IFS
6598
6599   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6600   ;;
6601 esac
6602 fi
6603 RM=$ac_cv_path_RM
6604 if test -n "$RM"; then
6605   { echo "$as_me:$LINENO: result: $RM" >&5
6606 echo "${ECHO_T}$RM" >&6; }
6607 else
6608   { echo "$as_me:$LINENO: result: no" >&5
6609 echo "${ECHO_T}no" >&6; }
6610 fi
6611
6612
6613 # Extract the first word of "sed", so it can be a program name with args.
6614 set dummy sed; ac_word=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_path_SED+set}" = set; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620   case $SED in
6621   [\\/]* | ?:[\\/]*)
6622   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6623   ;;
6624   *)
6625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628   IFS=$as_save_IFS
6629   test -z "$as_dir" && as_dir=.
6630   for ac_exec_ext in '' $ac_executable_extensions; do
6631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6632     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634     break 2
6635   fi
6636 done
6637 done
6638 IFS=$as_save_IFS
6639
6640   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6641   ;;
6642 esac
6643 fi
6644 SED=$ac_cv_path_SED
6645 if test -n "$SED"; then
6646   { echo "$as_me:$LINENO: result: $SED" >&5
6647 echo "${ECHO_T}$SED" >&6; }
6648 else
6649   { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6651 fi
6652
6653
6654 # Extract the first word of "tar", so it can be a program name with args.
6655 set dummy tar; ac_word=$2
6656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658 if test "${ac_cv_path_TAR+set}" = set; then
6659   echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661   case $TAR in
6662   [\\/]* | ?:[\\/]*)
6663   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6664   ;;
6665   *)
6666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669   IFS=$as_save_IFS
6670   test -z "$as_dir" && as_dir=.
6671   for ac_exec_ext in '' $ac_executable_extensions; do
6672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675     break 2
6676   fi
6677 done
6678 done
6679 IFS=$as_save_IFS
6680
6681   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6682   ;;
6683 esac
6684 fi
6685 TAR=$ac_cv_path_TAR
6686 if test -n "$TAR"; then
6687   { echo "$as_me:$LINENO: result: $TAR" >&5
6688 echo "${ECHO_T}$TAR" >&6; }
6689 else
6690   { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6692 fi
6693
6694
6695 # Extract the first word of "pwd", so it can be a program name with args.
6696 set dummy pwd; ac_word=$2
6697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699 if test "${ac_cv_path_BINPWD+set}" = set; then
6700   echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702   case $BINPWD in
6703   [\\/]* | ?:[\\/]*)
6704   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6705   ;;
6706   *)
6707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710   IFS=$as_save_IFS
6711   test -z "$as_dir" && as_dir=.
6712   for ac_exec_ext in '' $ac_executable_extensions; do
6713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6714     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716     break 2
6717   fi
6718 done
6719 done
6720 IFS=$as_save_IFS
6721
6722   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6723   ;;
6724 esac
6725 fi
6726 BINPWD=$ac_cv_path_BINPWD
6727 if test -n "$BINPWD"; then
6728   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6729 echo "${ECHO_T}$BINPWD" >&6; }
6730 else
6731   { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6733 fi
6734
6735
6736
6737 # Extract the first word of "Graphviz", so it can be a program name with args.
6738 set dummy Graphviz; ac_word=$2
6739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6742   echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744   case $GRAPHVIZ in
6745   [\\/]* | ?:[\\/]*)
6746   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6747   ;;
6748   *)
6749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752   IFS=$as_save_IFS
6753   test -z "$as_dir" && as_dir=.
6754   for ac_exec_ext in '' $ac_executable_extensions; do
6755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6756     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758     break 2
6759   fi
6760 done
6761 done
6762 IFS=$as_save_IFS
6763
6764   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6765   ;;
6766 esac
6767 fi
6768 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6769 if test -n "$GRAPHVIZ"; then
6770   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6771 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6772 else
6773   { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6775 fi
6776
6777
6778 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6779
6780 cat >>confdefs.h <<\_ACEOF
6781 #define HAVE_GRAPHVIZ 1
6782 _ACEOF
6783
6784     if test "$llvm_cv_os_type" = "MingW" ; then
6785     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6786   fi
6787
6788 cat >>confdefs.h <<_ACEOF
6789 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6790 _ACEOF
6791
6792 fi
6793 # Extract the first word of "dot", so it can be a program name with args.
6794 set dummy dot; ac_word=$2
6795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797 if test "${ac_cv_path_DOT+set}" = set; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800   case $DOT in
6801   [\\/]* | ?:[\\/]*)
6802   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6803   ;;
6804   *)
6805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6807 do
6808   IFS=$as_save_IFS
6809   test -z "$as_dir" && as_dir=.
6810   for ac_exec_ext in '' $ac_executable_extensions; do
6811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6812     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814     break 2
6815   fi
6816 done
6817 done
6818 IFS=$as_save_IFS
6819
6820   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6821   ;;
6822 esac
6823 fi
6824 DOT=$ac_cv_path_DOT
6825 if test -n "$DOT"; then
6826   { echo "$as_me:$LINENO: result: $DOT" >&5
6827 echo "${ECHO_T}$DOT" >&6; }
6828 else
6829   { echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6; }
6831 fi
6832
6833
6834 if test "$DOT" != "echo dot" ; then
6835
6836 cat >>confdefs.h <<\_ACEOF
6837 #define HAVE_DOT 1
6838 _ACEOF
6839
6840     if test "$llvm_cv_os_type" = "MingW" ; then
6841     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6842   fi
6843
6844 cat >>confdefs.h <<_ACEOF
6845 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6846 _ACEOF
6847
6848 fi
6849 for ac_prog in gv gsview32
6850 do
6851   # Extract the first word of "$ac_prog", so it can be a program name with args.
6852 set dummy $ac_prog; ac_word=$2
6853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855 if test "${ac_cv_path_GV+set}" = set; then
6856   echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858   case $GV in
6859   [\\/]* | ?:[\\/]*)
6860   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6861   ;;
6862   *)
6863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH
6865 do
6866   IFS=$as_save_IFS
6867   test -z "$as_dir" && as_dir=.
6868   for ac_exec_ext in '' $ac_executable_extensions; do
6869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6870     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872     break 2
6873   fi
6874 done
6875 done
6876 IFS=$as_save_IFS
6877
6878   ;;
6879 esac
6880 fi
6881 GV=$ac_cv_path_GV
6882 if test -n "$GV"; then
6883   { echo "$as_me:$LINENO: result: $GV" >&5
6884 echo "${ECHO_T}$GV" >&6; }
6885 else
6886   { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6888 fi
6889
6890
6891   test -n "$GV" && break
6892 done
6893 test -n "$GV" || GV="echo gv"
6894
6895 if test "$GV" != "echo gv" ; then
6896
6897 cat >>confdefs.h <<\_ACEOF
6898 #define HAVE_GV 1
6899 _ACEOF
6900
6901     if test "$llvm_cv_os_type" = "MingW" ; then
6902     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6903   fi
6904
6905 cat >>confdefs.h <<_ACEOF
6906 #define LLVM_PATH_GV "$GV${EXEEXT}"
6907 _ACEOF
6908
6909 fi
6910 # Extract the first word of "dotty", so it can be a program name with args.
6911 set dummy dotty; ac_word=$2
6912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914 if test "${ac_cv_path_DOTTY+set}" = set; then
6915   echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917   case $DOTTY in
6918   [\\/]* | ?:[\\/]*)
6919   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6920   ;;
6921   *)
6922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925   IFS=$as_save_IFS
6926   test -z "$as_dir" && as_dir=.
6927   for ac_exec_ext in '' $ac_executable_extensions; do
6928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931     break 2
6932   fi
6933 done
6934 done
6935 IFS=$as_save_IFS
6936
6937   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6938   ;;
6939 esac
6940 fi
6941 DOTTY=$ac_cv_path_DOTTY
6942 if test -n "$DOTTY"; then
6943   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6944 echo "${ECHO_T}$DOTTY" >&6; }
6945 else
6946   { echo "$as_me:$LINENO: result: no" >&5
6947 echo "${ECHO_T}no" >&6; }
6948 fi
6949
6950
6951 if test "$DOTTY" != "echo dotty" ; then
6952
6953 cat >>confdefs.h <<\_ACEOF
6954 #define HAVE_DOTTY 1
6955 _ACEOF
6956
6957     if test "$llvm_cv_os_type" = "MingW" ; then
6958     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6959   fi
6960
6961 cat >>confdefs.h <<_ACEOF
6962 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6963 _ACEOF
6964
6965 fi
6966
6967
6968 # Extract the first word of "perl", so it can be a program name with args.
6969 set dummy perl; ac_word=$2
6970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6972 if test "${ac_cv_path_PERL+set}" = set; then
6973   echo $ECHO_N "(cached) $ECHO_C" >&6
6974 else
6975   case $PERL in
6976   [\\/]* | ?:[\\/]*)
6977   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6978   ;;
6979   *)
6980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 for as_dir in $PATH
6982 do
6983   IFS=$as_save_IFS
6984   test -z "$as_dir" && as_dir=.
6985   for ac_exec_ext in '' $ac_executable_extensions; do
6986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6987     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6989     break 2
6990   fi
6991 done
6992 done
6993 IFS=$as_save_IFS
6994
6995   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6996   ;;
6997 esac
6998 fi
6999 PERL=$ac_cv_path_PERL
7000 if test -n "$PERL"; then
7001   { echo "$as_me:$LINENO: result: $PERL" >&5
7002 echo "${ECHO_T}$PERL" >&6; }
7003 else
7004   { echo "$as_me:$LINENO: result: no" >&5
7005 echo "${ECHO_T}no" >&6; }
7006 fi
7007
7008
7009 if test "$PERL" != "none"; then
7010   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7011 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7012   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7013     { echo "$as_me:$LINENO: result: yes" >&5
7014 echo "${ECHO_T}yes" >&6; }
7015   else
7016     PERL=none
7017     { echo "$as_me:$LINENO: result: not found" >&5
7018 echo "${ECHO_T}not found" >&6; }
7019   fi
7020 fi
7021
7022
7023 if test x"$PERL" = xnone; then
7024    HAVE_PERL=0
7025
7026    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7027 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7028    { (exit 1); exit 1; }; }
7029 else
7030    HAVE_PERL=1
7031
7032 fi
7033
7034 # Find a good install program.  We prefer a C program (faster),
7035 # so one script is as good as another.  But avoid the broken or
7036 # incompatible versions:
7037 # SysV /etc/install, /usr/sbin/install
7038 # SunOS /usr/etc/install
7039 # IRIX /sbin/install
7040 # AIX /bin/install
7041 # AmigaOS /C/install, which installs bootblocks on floppy discs
7042 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7043 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7044 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7045 # OS/2's system install, which has a completely different semantic
7046 # ./install, which can be erroneously created by make from ./install.sh.
7047 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7048 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7049 if test -z "$INSTALL"; then
7050 if test "${ac_cv_path_install+set}" = set; then
7051   echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7055 do
7056   IFS=$as_save_IFS
7057   test -z "$as_dir" && as_dir=.
7058   # Account for people who put trailing slashes in PATH elements.
7059 case $as_dir/ in
7060   ./ | .// | /cC/* | \
7061   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7062   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7063   /usr/ucb/* ) ;;
7064   *)
7065     # OSF1 and SCO ODT 3.0 have their own names for install.
7066     # Don't use installbsd from OSF since it installs stuff as root
7067     # by default.
7068     for ac_prog in ginstall scoinst install; do
7069       for ac_exec_ext in '' $ac_executable_extensions; do
7070         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7071           if test $ac_prog = install &&
7072             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7073             # AIX install.  It has an incompatible calling convention.
7074             :
7075           elif test $ac_prog = install &&
7076             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7077             # program-specific install script used by HP pwplus--don't use.
7078             :
7079           else
7080             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7081             break 3
7082           fi
7083         fi
7084       done
7085     done
7086     ;;
7087 esac
7088 done
7089 IFS=$as_save_IFS
7090
7091
7092 fi
7093   if test "${ac_cv_path_install+set}" = set; then
7094     INSTALL=$ac_cv_path_install
7095   else
7096     # As a last resort, use the slow shell script.  Don't cache a
7097     # value for INSTALL within a source directory, because that will
7098     # break other packages using the cache if that directory is
7099     # removed, or if the value is a relative name.
7100     INSTALL=$ac_install_sh
7101   fi
7102 fi
7103 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7104 echo "${ECHO_T}$INSTALL" >&6; }
7105
7106 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7107 # It thinks the first close brace ends the variable substitution.
7108 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7109
7110 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7111
7112 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7113
7114
7115 # Extract the first word of "bzip2", so it can be a program name with args.
7116 set dummy bzip2; ac_word=$2
7117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7119 if test "${ac_cv_path_BZIP2+set}" = set; then
7120   echo $ECHO_N "(cached) $ECHO_C" >&6
7121 else
7122   case $BZIP2 in
7123   [\\/]* | ?:[\\/]*)
7124   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7125   ;;
7126   *)
7127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130   IFS=$as_save_IFS
7131   test -z "$as_dir" && as_dir=.
7132   for ac_exec_ext in '' $ac_executable_extensions; do
7133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136     break 2
7137   fi
7138 done
7139 done
7140 IFS=$as_save_IFS
7141
7142   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7143   ;;
7144 esac
7145 fi
7146 BZIP2=$ac_cv_path_BZIP2
7147 if test -n "$BZIP2"; then
7148   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7149 echo "${ECHO_T}$BZIP2" >&6; }
7150 else
7151   { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7153 fi
7154
7155
7156 # Extract the first word of "doxygen", so it can be a program name with args.
7157 set dummy doxygen; ac_word=$2
7158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7160 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7161   echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163   case $DOXYGEN in
7164   [\\/]* | ?:[\\/]*)
7165   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7166   ;;
7167   *)
7168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7170 do
7171   IFS=$as_save_IFS
7172   test -z "$as_dir" && as_dir=.
7173   for ac_exec_ext in '' $ac_executable_extensions; do
7174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7175     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7177     break 2
7178   fi
7179 done
7180 done
7181 IFS=$as_save_IFS
7182
7183   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7184   ;;
7185 esac
7186 fi
7187 DOXYGEN=$ac_cv_path_DOXYGEN
7188 if test -n "$DOXYGEN"; then
7189   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7190 echo "${ECHO_T}$DOXYGEN" >&6; }
7191 else
7192   { echo "$as_me:$LINENO: result: no" >&5
7193 echo "${ECHO_T}no" >&6; }
7194 fi
7195
7196
7197 # Extract the first word of "groff", so it can be a program name with args.
7198 set dummy groff; ac_word=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_path_GROFF+set}" = set; then
7202   echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204   case $GROFF in
7205   [\\/]* | ?:[\\/]*)
7206   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7207   ;;
7208   *)
7209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212   IFS=$as_save_IFS
7213   test -z "$as_dir" && as_dir=.
7214   for ac_exec_ext in '' $ac_executable_extensions; do
7215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7216     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218     break 2
7219   fi
7220 done
7221 done
7222 IFS=$as_save_IFS
7223
7224   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7225   ;;
7226 esac
7227 fi
7228 GROFF=$ac_cv_path_GROFF
7229 if test -n "$GROFF"; then
7230   { echo "$as_me:$LINENO: result: $GROFF" >&5
7231 echo "${ECHO_T}$GROFF" >&6; }
7232 else
7233   { echo "$as_me:$LINENO: result: no" >&5
7234 echo "${ECHO_T}no" >&6; }
7235 fi
7236
7237
7238 # Extract the first word of "gzip", so it can be a program name with args.
7239 set dummy gzip; ac_word=$2
7240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242 if test "${ac_cv_path_GZIP+set}" = set; then
7243   echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245   case $GZIP in
7246   [\\/]* | ?:[\\/]*)
7247   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7248   ;;
7249   *)
7250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253   IFS=$as_save_IFS
7254   test -z "$as_dir" && as_dir=.
7255   for ac_exec_ext in '' $ac_executable_extensions; do
7256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259     break 2
7260   fi
7261 done
7262 done
7263 IFS=$as_save_IFS
7264
7265   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7266   ;;
7267 esac
7268 fi
7269 GZIP=$ac_cv_path_GZIP
7270 if test -n "$GZIP"; then
7271   { echo "$as_me:$LINENO: result: $GZIP" >&5
7272 echo "${ECHO_T}$GZIP" >&6; }
7273 else
7274   { echo "$as_me:$LINENO: result: no" >&5
7275 echo "${ECHO_T}no" >&6; }
7276 fi
7277
7278
7279 # Extract the first word of "pod2html", so it can be a program name with args.
7280 set dummy pod2html; ac_word=$2
7281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7283 if test "${ac_cv_path_POD2HTML+set}" = set; then
7284   echo $ECHO_N "(cached) $ECHO_C" >&6
7285 else
7286   case $POD2HTML in
7287   [\\/]* | ?:[\\/]*)
7288   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7289   ;;
7290   *)
7291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7293 do
7294   IFS=$as_save_IFS
7295   test -z "$as_dir" && as_dir=.
7296   for ac_exec_ext in '' $ac_executable_extensions; do
7297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7298     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7300     break 2
7301   fi
7302 done
7303 done
7304 IFS=$as_save_IFS
7305
7306   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7307   ;;
7308 esac
7309 fi
7310 POD2HTML=$ac_cv_path_POD2HTML
7311 if test -n "$POD2HTML"; then
7312   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7313 echo "${ECHO_T}$POD2HTML" >&6; }
7314 else
7315   { echo "$as_me:$LINENO: result: no" >&5
7316 echo "${ECHO_T}no" >&6; }
7317 fi
7318
7319
7320 # Extract the first word of "pod2man", so it can be a program name with args.
7321 set dummy pod2man; ac_word=$2
7322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7324 if test "${ac_cv_path_POD2MAN+set}" = set; then
7325   echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327   case $POD2MAN in
7328   [\\/]* | ?:[\\/]*)
7329   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7330   ;;
7331   *)
7332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 for as_dir in $PATH
7334 do
7335   IFS=$as_save_IFS
7336   test -z "$as_dir" && as_dir=.
7337   for ac_exec_ext in '' $ac_executable_extensions; do
7338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7339     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7341     break 2
7342   fi
7343 done
7344 done
7345 IFS=$as_save_IFS
7346
7347   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7348   ;;
7349 esac
7350 fi
7351 POD2MAN=$ac_cv_path_POD2MAN
7352 if test -n "$POD2MAN"; then
7353   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7354 echo "${ECHO_T}$POD2MAN" >&6; }
7355 else
7356   { echo "$as_me:$LINENO: result: no" >&5
7357 echo "${ECHO_T}no" >&6; }
7358 fi
7359
7360
7361 # Extract the first word of "runtest", so it can be a program name with args.
7362 set dummy runtest; ac_word=$2
7363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7365 if test "${ac_cv_path_RUNTEST+set}" = set; then
7366   echo $ECHO_N "(cached) $ECHO_C" >&6
7367 else
7368   case $RUNTEST in
7369   [\\/]* | ?:[\\/]*)
7370   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7371   ;;
7372   *)
7373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 for as_dir in $PATH
7375 do
7376   IFS=$as_save_IFS
7377   test -z "$as_dir" && as_dir=.
7378   for ac_exec_ext in '' $ac_executable_extensions; do
7379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7380     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7382     break 2
7383   fi
7384 done
7385 done
7386 IFS=$as_save_IFS
7387
7388   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7389   ;;
7390 esac
7391 fi
7392 RUNTEST=$ac_cv_path_RUNTEST
7393 if test -n "$RUNTEST"; then
7394   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7395 echo "${ECHO_T}$RUNTEST" >&6; }
7396 else
7397   { echo "$as_me:$LINENO: result: no" >&5
7398 echo "${ECHO_T}no" >&6; }
7399 fi
7400
7401
7402
7403 no_itcl=true
7404 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7405 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7406
7407 # Check whether --with-tclinclude was given.
7408 if test "${with_tclinclude+set}" = set; then
7409   withval=$with_tclinclude; with_tclinclude=${withval}
7410 else
7411   with_tclinclude=''
7412 fi
7413
7414 if test "${ac_cv_path_tclsh+set}" = set; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417
7418 if test x"${with_tclinclude}" != x ; then
7419   if test -f ${with_tclinclude}/tclsh ; then
7420     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7421   elif test -f ${with_tclinclude}/src/tclsh ; then
7422     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7423   else
7424     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7425 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7426    { (exit 1); exit 1; }; }
7427   fi
7428 fi
7429
7430 if test x"${ac_cv_path_tclsh}" = x ; then
7431   { echo "$as_me:$LINENO: result: none" >&5
7432 echo "${ECHO_T}none" >&6; }
7433   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
7434 do
7435   # Extract the first word of "$ac_prog", so it can be a program name with args.
7436 set dummy $ac_prog; ac_word=$2
7437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7439 if test "${ac_cv_path_TCLSH+set}" = set; then
7440   echo $ECHO_N "(cached) $ECHO_C" >&6
7441 else
7442   case $TCLSH in
7443   [\\/]* | ?:[\\/]*)
7444   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7445   ;;
7446   *)
7447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7449 do
7450   IFS=$as_save_IFS
7451   test -z "$as_dir" && as_dir=.
7452   for ac_exec_ext in '' $ac_executable_extensions; do
7453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7454     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456     break 2
7457   fi
7458 done
7459 done
7460 IFS=$as_save_IFS
7461
7462   ;;
7463 esac
7464 fi
7465 TCLSH=$ac_cv_path_TCLSH
7466 if test -n "$TCLSH"; then
7467   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7468 echo "${ECHO_T}$TCLSH" >&6; }
7469 else
7470   { echo "$as_me:$LINENO: result: no" >&5
7471 echo "${ECHO_T}no" >&6; }
7472 fi
7473
7474
7475   test -n "$TCLSH" && break
7476 done
7477
7478   if test x"${TCLSH}" = x ; then
7479     ac_cv_path_tclsh='';
7480   else
7481     ac_cv_path_tclsh="${TCLSH}";
7482   fi
7483 else
7484   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7485 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7486   TCLSH="${ac_cv_path_tclsh}"
7487
7488 fi
7489
7490 fi
7491
7492 # Extract the first word of "zip", so it can be a program name with args.
7493 set dummy zip; ac_word=$2
7494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496 if test "${ac_cv_path_ZIP+set}" = set; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499   case $ZIP in
7500   [\\/]* | ?:[\\/]*)
7501   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7502   ;;
7503   *)
7504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507   IFS=$as_save_IFS
7508   test -z "$as_dir" && as_dir=.
7509   for ac_exec_ext in '' $ac_executable_extensions; do
7510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7511     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513     break 2
7514   fi
7515 done
7516 done
7517 IFS=$as_save_IFS
7518
7519   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7520   ;;
7521 esac
7522 fi
7523 ZIP=$ac_cv_path_ZIP
7524 if test -n "$ZIP"; then
7525   { echo "$as_me:$LINENO: result: $ZIP" >&5
7526 echo "${ECHO_T}$ZIP" >&6; }
7527 else
7528   { echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6; }
7530 fi
7531
7532
7533 # Extract the first word of "ocamlc", so it can be a program name with args.
7534 set dummy ocamlc; ac_word=$2
7535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7537 if test "${ac_cv_path_OCAMLC+set}" = set; then
7538   echo $ECHO_N "(cached) $ECHO_C" >&6
7539 else
7540   case $OCAMLC in
7541   [\\/]* | ?:[\\/]*)
7542   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7543   ;;
7544   *)
7545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548   IFS=$as_save_IFS
7549   test -z "$as_dir" && as_dir=.
7550   for ac_exec_ext in '' $ac_executable_extensions; do
7551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554     break 2
7555   fi
7556 done
7557 done
7558 IFS=$as_save_IFS
7559
7560   test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7561   ;;
7562 esac
7563 fi
7564 OCAMLC=$ac_cv_path_OCAMLC
7565 if test -n "$OCAMLC"; then
7566   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7567 echo "${ECHO_T}$OCAMLC" >&6; }
7568 else
7569   { echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6; }
7571 fi
7572
7573
7574 # Extract the first word of "ocamlopt", so it can be a program name with args.
7575 set dummy ocamlopt; ac_word=$2
7576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7578 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7579   echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581   case $OCAMLOPT in
7582   [\\/]* | ?:[\\/]*)
7583   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7584   ;;
7585   *)
7586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7588 do
7589   IFS=$as_save_IFS
7590   test -z "$as_dir" && as_dir=.
7591   for ac_exec_ext in '' $ac_executable_extensions; do
7592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595     break 2
7596   fi
7597 done
7598 done
7599 IFS=$as_save_IFS
7600
7601   test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
7602   ;;
7603 esac
7604 fi
7605 OCAMLOPT=$ac_cv_path_OCAMLOPT
7606 if test -n "$OCAMLOPT"; then
7607   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7608 echo "${ECHO_T}$OCAMLOPT" >&6; }
7609 else
7610   { echo "$as_me:$LINENO: result: no" >&5
7611 echo "${ECHO_T}no" >&6; }
7612 fi
7613
7614
7615 # Extract the first word of "ocamldep", so it can be a program name with args.
7616 set dummy ocamldep; ac_word=$2
7617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7619 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7620   echo $ECHO_N "(cached) $ECHO_C" >&6
7621 else
7622   case $OCAMLDEP in
7623   [\\/]* | ?:[\\/]*)
7624   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7625   ;;
7626   *)
7627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7629 do
7630   IFS=$as_save_IFS
7631   test -z "$as_dir" && as_dir=.
7632   for ac_exec_ext in '' $ac_executable_extensions; do
7633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7634     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7636     break 2
7637   fi
7638 done
7639 done
7640 IFS=$as_save_IFS
7641
7642   test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
7643   ;;
7644 esac
7645 fi
7646 OCAMLDEP=$ac_cv_path_OCAMLDEP
7647 if test -n "$OCAMLDEP"; then
7648   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7649 echo "${ECHO_T}$OCAMLDEP" >&6; }
7650 else
7651   { echo "$as_me:$LINENO: result: no" >&5
7652 echo "${ECHO_T}no" >&6; }
7653 fi
7654
7655
7656
7657 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7658 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7659 if test "${llvm_cv_link_use_r+set}" = set; then
7660   echo $ECHO_N "(cached) $ECHO_C" >&6
7661 else
7662    ac_ext=c
7663 ac_cpp='$CPP $CPPFLAGS'
7664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7667
7668   oldcflags="$CFLAGS"
7669   CFLAGS="$CFLAGS -Wl,-R."
7670   cat >conftest.$ac_ext <<_ACEOF
7671 /* confdefs.h.  */
7672 _ACEOF
7673 cat confdefs.h >>conftest.$ac_ext
7674 cat >>conftest.$ac_ext <<_ACEOF
7675 /* end confdefs.h.  */
7676
7677 int
7678 main ()
7679 {
7680 int main() { return 0; }
7681   ;
7682   return 0;
7683 }
7684 _ACEOF
7685 rm -f conftest.$ac_objext conftest$ac_exeext
7686 if { (ac_try="$ac_link"
7687 case "(($ac_try" in
7688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689   *) ac_try_echo=$ac_try;;
7690 esac
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692   (eval "$ac_link") 2>conftest.er1
7693   ac_status=$?
7694   grep -v '^ *+' conftest.er1 >conftest.err
7695   rm -f conftest.er1
7696   cat conftest.err >&5
7697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698   (exit $ac_status); } && {
7699          test -z "$ac_c_werror_flag" ||
7700          test ! -s conftest.err
7701        } && test -s conftest$ac_exeext &&
7702        $as_test_x conftest$ac_exeext; then
7703   llvm_cv_link_use_r=yes
7704 else
7705   echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7707
7708         llvm_cv_link_use_r=no
7709 fi
7710
7711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7712       conftest$ac_exeext conftest.$ac_ext
7713   CFLAGS="$oldcflags"
7714   ac_ext=c
7715 ac_cpp='$CPP $CPPFLAGS'
7716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7719
7720
7721 fi
7722 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7723 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7724 if test "$llvm_cv_link_use_r" = yes ; then
7725
7726 cat >>confdefs.h <<\_ACEOF
7727 #define HAVE_LINK_R 1
7728 _ACEOF
7729
7730   fi
7731
7732
7733
7734
7735 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7736 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7737 if test "${ac_cv_c_const+set}" = set; then
7738   echo $ECHO_N "(cached) $ECHO_C" >&6
7739 else
7740   cat >conftest.$ac_ext <<_ACEOF
7741 /* confdefs.h.  */
7742 _ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h.  */
7746
7747 int
7748 main ()
7749 {
7750 /* FIXME: Include the comments suggested by Paul. */
7751 #ifndef __cplusplus
7752   /* Ultrix mips cc rejects this.  */
7753   typedef int charset[2];
7754   const charset cs;
7755   /* SunOS 4.1.1 cc rejects this.  */
7756   char const *const *pcpcc;
7757   char **ppc;
7758   /* NEC SVR4.0.2 mips cc rejects this.  */
7759   struct point {int x, y;};
7760   static struct point const zero = {0,0};
7761   /* AIX XL C 1.02.0.0 rejects this.
7762      It does not let you subtract one const X* pointer from another in
7763      an arm of an if-expression whose if-part is not a constant
7764      expression */
7765   const char *g = "string";
7766   pcpcc = &g + (g ? g-g : 0);
7767   /* HPUX 7.0 cc rejects these. */
7768   ++pcpcc;
7769   ppc = (char**) pcpcc;
7770   pcpcc = (char const *const *) ppc;
7771   { /* SCO 3.2v4 cc rejects this.  */
7772     char *t;
7773     char const *s = 0 ? (char *) 0 : (char const *) 0;
7774
7775     *t++ = 0;
7776     if (s) return 0;
7777   }
7778   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7779     int x[] = {25, 17};
7780     const int *foo = &x[0];
7781     ++foo;
7782   }
7783   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7784     typedef const int *iptr;
7785     iptr p = 0;
7786     ++p;
7787   }
7788   { /* AIX XL C 1.02.0.0 rejects this saying
7789        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7790     struct s { int j; const int *ap[3]; };
7791     struct s *b; b->j = 5;
7792   }
7793   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7794     const int foo = 10;
7795     if (!foo) return 0;
7796   }
7797   return !cs[0] && !zero.x;
7798 #endif
7799
7800   ;
7801   return 0;
7802 }
7803 _ACEOF
7804 rm -f conftest.$ac_objext
7805 if { (ac_try="$ac_compile"
7806 case "(($ac_try" in
7807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808   *) ac_try_echo=$ac_try;;
7809 esac
7810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811   (eval "$ac_compile") 2>conftest.er1
7812   ac_status=$?
7813   grep -v '^ *+' conftest.er1 >conftest.err
7814   rm -f conftest.er1
7815   cat conftest.err >&5
7816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817   (exit $ac_status); } && {
7818          test -z "$ac_c_werror_flag" ||
7819          test ! -s conftest.err
7820        } && test -s conftest.$ac_objext; then
7821   ac_cv_c_const=yes
7822 else
7823   echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7825
7826         ac_cv_c_const=no
7827 fi
7828
7829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7830 fi
7831 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7832 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7833 if test $ac_cv_c_const = no; then
7834
7835 cat >>confdefs.h <<\_ACEOF
7836 #define const
7837 _ACEOF
7838
7839 fi
7840
7841
7842
7843
7844
7845
7846 ac_header_dirent=no
7847 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7848   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7849 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7850 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7852   echo $ECHO_N "(cached) $ECHO_C" >&6
7853 else
7854   cat >conftest.$ac_ext <<_ACEOF
7855 /* confdefs.h.  */
7856 _ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h.  */
7860 #include <sys/types.h>
7861 #include <$ac_hdr>
7862
7863 int
7864 main ()
7865 {
7866 if ((DIR *) 0)
7867 return 0;
7868   ;
7869   return 0;
7870 }
7871 _ACEOF
7872 rm -f conftest.$ac_objext
7873 if { (ac_try="$ac_compile"
7874 case "(($ac_try" in
7875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876   *) ac_try_echo=$ac_try;;
7877 esac
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879   (eval "$ac_compile") 2>conftest.er1
7880   ac_status=$?
7881   grep -v '^ *+' conftest.er1 >conftest.err
7882   rm -f conftest.er1
7883   cat conftest.err >&5
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); } && {
7886          test -z "$ac_c_werror_flag" ||
7887          test ! -s conftest.err
7888        } && test -s conftest.$ac_objext; then
7889   eval "$as_ac_Header=yes"
7890 else
7891   echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7893
7894         eval "$as_ac_Header=no"
7895 fi
7896
7897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7898 fi
7899 ac_res=`eval echo '${'$as_ac_Header'}'`
7900                { echo "$as_me:$LINENO: result: $ac_res" >&5
7901 echo "${ECHO_T}$ac_res" >&6; }
7902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7903   cat >>confdefs.h <<_ACEOF
7904 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7905 _ACEOF
7906
7907 ac_header_dirent=$ac_hdr; break
7908 fi
7909
7910 done
7911 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7912 if test $ac_header_dirent = dirent.h; then
7913   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7914 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7915 if test "${ac_cv_search_opendir+set}" = set; then
7916   echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918   ac_func_search_save_LIBS=$LIBS
7919 cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h.  */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h.  */
7925
7926 /* Override any GCC internal prototype to avoid an error.
7927    Use char because int might match the return type of a GCC
7928    builtin and then its argument prototype would still apply.  */
7929 #ifdef __cplusplus
7930 extern "C"
7931 #endif
7932 char opendir ();
7933 int
7934 main ()
7935 {
7936 return opendir ();
7937   ;
7938   return 0;
7939 }
7940 _ACEOF
7941 for ac_lib in '' dir; do
7942   if test -z "$ac_lib"; then
7943     ac_res="none required"
7944   else
7945     ac_res=-l$ac_lib
7946     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7947   fi
7948   rm -f conftest.$ac_objext conftest$ac_exeext
7949 if { (ac_try="$ac_link"
7950 case "(($ac_try" in
7951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952   *) ac_try_echo=$ac_try;;
7953 esac
7954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7955   (eval "$ac_link") 2>conftest.er1
7956   ac_status=$?
7957   grep -v '^ *+' conftest.er1 >conftest.err
7958   rm -f conftest.er1
7959   cat conftest.err >&5
7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); } && {
7962          test -z "$ac_c_werror_flag" ||
7963          test ! -s conftest.err
7964        } && test -s conftest$ac_exeext &&
7965        $as_test_x conftest$ac_exeext; then
7966   ac_cv_search_opendir=$ac_res
7967 else
7968   echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7970
7971
7972 fi
7973
7974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7975       conftest$ac_exeext
7976   if test "${ac_cv_search_opendir+set}" = set; then
7977   break
7978 fi
7979 done
7980 if test "${ac_cv_search_opendir+set}" = set; then
7981   :
7982 else
7983   ac_cv_search_opendir=no
7984 fi
7985 rm conftest.$ac_ext
7986 LIBS=$ac_func_search_save_LIBS
7987 fi
7988 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7989 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7990 ac_res=$ac_cv_search_opendir
7991 if test "$ac_res" != no; then
7992   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7993
7994 fi
7995
7996 else
7997   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7998 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7999 if test "${ac_cv_search_opendir+set}" = set; then
8000   echo $ECHO_N "(cached) $ECHO_C" >&6
8001 else
8002   ac_func_search_save_LIBS=$LIBS
8003 cat >conftest.$ac_ext <<_ACEOF
8004 /* confdefs.h.  */
8005 _ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h.  */
8009
8010 /* Override any GCC internal prototype to avoid an error.
8011    Use char because int might match the return type of a GCC
8012    builtin and then its argument prototype would still apply.  */
8013 #ifdef __cplusplus
8014 extern "C"
8015 #endif
8016 char opendir ();
8017 int
8018 main ()
8019 {
8020 return opendir ();
8021   ;
8022   return 0;
8023 }
8024 _ACEOF
8025 for ac_lib in '' x; do
8026   if test -z "$ac_lib"; then
8027     ac_res="none required"
8028   else
8029     ac_res=-l$ac_lib
8030     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8031   fi
8032   rm -f conftest.$ac_objext conftest$ac_exeext
8033 if { (ac_try="$ac_link"
8034 case "(($ac_try" in
8035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036   *) ac_try_echo=$ac_try;;
8037 esac
8038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039   (eval "$ac_link") 2>conftest.er1
8040   ac_status=$?
8041   grep -v '^ *+' conftest.er1 >conftest.err
8042   rm -f conftest.er1
8043   cat conftest.err >&5
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); } && {
8046          test -z "$ac_c_werror_flag" ||
8047          test ! -s conftest.err
8048        } && test -s conftest$ac_exeext &&
8049        $as_test_x conftest$ac_exeext; then
8050   ac_cv_search_opendir=$ac_res
8051 else
8052   echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8054
8055
8056 fi
8057
8058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8059       conftest$ac_exeext
8060   if test "${ac_cv_search_opendir+set}" = set; then
8061   break
8062 fi
8063 done
8064 if test "${ac_cv_search_opendir+set}" = set; then
8065   :
8066 else
8067   ac_cv_search_opendir=no
8068 fi
8069 rm conftest.$ac_ext
8070 LIBS=$ac_func_search_save_LIBS
8071 fi
8072 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8073 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8074 ac_res=$ac_cv_search_opendir
8075 if test "$ac_res" != no; then
8076   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8077
8078 fi
8079
8080 fi
8081
8082
8083 for ac_header in dlfcn.h
8084 do
8085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8087   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8088 echo $ECHO_N "checking for $ac_header... $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 fi
8092 ac_res=`eval echo '${'$as_ac_Header'}'`
8093                { echo "$as_me:$LINENO: result: $ac_res" >&5
8094 echo "${ECHO_T}$ac_res" >&6; }
8095 else
8096   # Is the header compilable?
8097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8099 cat >conftest.$ac_ext <<_ACEOF
8100 /* confdefs.h.  */
8101 _ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h.  */
8105 $ac_includes_default
8106 #include <$ac_header>
8107 _ACEOF
8108 rm -f conftest.$ac_objext
8109 if { (ac_try="$ac_compile"
8110 case "(($ac_try" in
8111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112   *) ac_try_echo=$ac_try;;
8113 esac
8114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8115   (eval "$ac_compile") 2>conftest.er1
8116   ac_status=$?
8117   grep -v '^ *+' conftest.er1 >conftest.err
8118   rm -f conftest.er1
8119   cat conftest.err >&5
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } && {
8122          test -z "$ac_c_werror_flag" ||
8123          test ! -s conftest.err
8124        } && test -s conftest.$ac_objext; then
8125   ac_header_compiler=yes
8126 else
8127   echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8129
8130         ac_header_compiler=no
8131 fi
8132
8133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8135 echo "${ECHO_T}$ac_header_compiler" >&6; }
8136
8137 # Is the header present?
8138 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8140 cat >conftest.$ac_ext <<_ACEOF
8141 /* confdefs.h.  */
8142 _ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h.  */
8146 #include <$ac_header>
8147 _ACEOF
8148 if { (ac_try="$ac_cpp conftest.$ac_ext"
8149 case "(($ac_try" in
8150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151   *) ac_try_echo=$ac_try;;
8152 esac
8153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8155   ac_status=$?
8156   grep -v '^ *+' conftest.er1 >conftest.err
8157   rm -f conftest.er1
8158   cat conftest.err >&5
8159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160   (exit $ac_status); } >/dev/null && {
8161          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8162          test ! -s conftest.err
8163        }; then
8164   ac_header_preproc=yes
8165 else
8166   echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8168
8169   ac_header_preproc=no
8170 fi
8171
8172 rm -f conftest.err conftest.$ac_ext
8173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8174 echo "${ECHO_T}$ac_header_preproc" >&6; }
8175
8176 # So?  What about this header?
8177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8178   yes:no: )
8179     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8183     ac_header_preproc=yes
8184     ;;
8185   no:yes:* )
8186     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8188     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8189 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8190     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8192     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8193 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8196     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8198     ( cat <<\_ASBOX
8199 ## ----------------------------------- ##
8200 ## Report this to llvmbugs@cs.uiuc.edu ##
8201 ## ----------------------------------- ##
8202 _ASBOX
8203      ) | sed "s/^/$as_me: WARNING:     /" >&2
8204     ;;
8205 esac
8206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8209   echo $ECHO_N "(cached) $ECHO_C" >&6
8210 else
8211   eval "$as_ac_Header=\$ac_header_preproc"
8212 fi
8213 ac_res=`eval echo '${'$as_ac_Header'}'`
8214                { echo "$as_me:$LINENO: result: $ac_res" >&5
8215 echo "${ECHO_T}$ac_res" >&6; }
8216
8217 fi
8218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8219   cat >>confdefs.h <<_ACEOF
8220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8221 _ACEOF
8222
8223 fi
8224
8225 done
8226
8227 # Check whether --enable-ltdl-install was given.
8228 if test "${enable_ltdl_install+set}" = set; then
8229   enableval=$enable_ltdl_install;
8230 fi
8231
8232
8233
8234
8235 if test x"${enable_ltdl_install-no}" != xno; then
8236   INSTALL_LTDL_TRUE=
8237   INSTALL_LTDL_FALSE='#'
8238 else
8239   INSTALL_LTDL_TRUE='#'
8240   INSTALL_LTDL_FALSE=
8241 fi
8242
8243
8244
8245 if test x"${enable_ltdl_convenience-no}" != xno; then
8246   CONVENIENCE_LTDL_TRUE=
8247   CONVENIENCE_LTDL_FALSE='#'
8248 else
8249   CONVENIENCE_LTDL_TRUE='#'
8250   CONVENIENCE_LTDL_FALSE=
8251 fi
8252
8253
8254 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8255 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8256 library_names_spec=
8257 libname_spec='lib$name'
8258 soname_spec=
8259 shrext_cmds=".so"
8260 postinstall_cmds=
8261 postuninstall_cmds=
8262 finish_cmds=
8263 finish_eval=
8264 shlibpath_var=
8265 shlibpath_overrides_runpath=unknown
8266 version_type=none
8267 dynamic_linker="$host_os ld.so"
8268 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8269 if test "$GCC" = yes; then
8270   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8271   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8272     # if the path contains ";" then we assume it to be the separator
8273     # otherwise default to the standard path separator (i.e. ":") - it is
8274     # assumed that no part of a normal pathname contains ";" but that should
8275     # okay in the real world where ";" in dirpaths is itself problematic.
8276     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8277   else
8278     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8279   fi
8280 else
8281   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8282 fi
8283 need_lib_prefix=unknown
8284 hardcode_into_libs=no
8285
8286 # when you set need_version to no, make sure it does not cause -set_version
8287 # flags to be left without arguments
8288 need_version=unknown
8289
8290 case $host_os in
8291 aix3*)
8292   version_type=linux
8293   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8294   shlibpath_var=LIBPATH
8295
8296   # AIX 3 has no versioning support, so we append a major version to the name.
8297   soname_spec='${libname}${release}${shared_ext}$major'
8298   ;;
8299
8300 aix4* | aix5*)
8301   version_type=linux
8302   need_lib_prefix=no
8303   need_version=no
8304   hardcode_into_libs=yes
8305   if test "$host_cpu" = ia64; then
8306     # AIX 5 supports IA64
8307     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8308     shlibpath_var=LD_LIBRARY_PATH
8309   else
8310     # With GCC up to 2.95.x, collect2 would create an import file
8311     # for dependence libraries.  The import file would start with
8312     # the line `#! .'.  This would cause the generated library to
8313     # depend on `.', always an invalid library.  This was fixed in
8314     # development snapshots of GCC prior to 3.0.
8315     case $host_os in
8316       aix4 | aix4.[01] | aix4.[01].*)
8317       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8318            echo ' yes '
8319            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8320         :
8321       else
8322         can_build_shared=no
8323       fi
8324       ;;
8325     esac
8326     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8327     # soname into executable. Probably we can add versioning support to
8328     # collect2, so additional links can be useful in future.
8329     if test "$aix_use_runtimelinking" = yes; then
8330       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8331       # instead of lib<name>.a to let people know that these are not
8332       # typical AIX shared libraries.
8333       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8334     else
8335       # We preserve .a as extension for shared libraries through AIX4.2
8336       # and later when we are not doing run time linking.
8337       library_names_spec='${libname}${release}.a $libname.a'
8338       soname_spec='${libname}${release}${shared_ext}$major'
8339     fi
8340     shlibpath_var=LIBPATH
8341   fi
8342   ;;
8343
8344 amigaos*)
8345   library_names_spec='$libname.ixlibrary $libname.a'
8346   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8347   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'
8348   ;;
8349
8350 beos*)
8351   library_names_spec='${libname}${shared_ext}'
8352   dynamic_linker="$host_os ld.so"
8353   shlibpath_var=LIBRARY_PATH
8354   ;;
8355
8356 bsdi[45]*)
8357   version_type=linux
8358   need_version=no
8359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8360   soname_spec='${libname}${release}${shared_ext}$major'
8361   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8362   shlibpath_var=LD_LIBRARY_PATH
8363   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8364   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8365   # the default ld.so.conf also contains /usr/contrib/lib and
8366   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8367   # libtool to hard-code these into programs
8368   ;;
8369
8370 cygwin* | mingw* | pw32*)
8371   version_type=windows
8372   shrext_cmds=".dll"
8373   need_version=no
8374   need_lib_prefix=no
8375
8376   case $GCC,$host_os in
8377   yes,cygwin* | yes,mingw* | yes,pw32*)
8378     library_names_spec='$libname.dll.a'
8379     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8380     postinstall_cmds='base_file=`basename \${file}`~
8381       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8382       dldir=$destdir/`dirname \$dlpath`~
8383       test -d \$dldir || mkdir -p \$dldir~
8384       $install_prog $dir/$dlname \$dldir/$dlname~
8385       chmod a+x \$dldir/$dlname'
8386     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8387       dlpath=$dir/\$dldll~
8388        $rm \$dlpath'
8389     shlibpath_overrides_runpath=yes
8390
8391     case $host_os in
8392     cygwin*)
8393       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8394       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8395       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8396       ;;
8397     mingw*)
8398       # MinGW DLLs use traditional 'lib' prefix
8399       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8400       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8401       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8402         # It is most probably a Windows format PATH printed by
8403         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8404         # path with ; separators, and with drive letters. We can handle the
8405         # drive letters (cygwin fileutils understands them), so leave them,
8406         # especially as we might pass files found there to a mingw objdump,
8407         # which wouldn't understand a cygwinified path. Ahh.
8408         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8409       else
8410         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8411       fi
8412       ;;
8413     pw32*)
8414       # pw32 DLLs use 'pw' prefix rather than 'lib'
8415       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8416       ;;
8417     esac
8418     ;;
8419
8420   *)
8421     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8422     ;;
8423   esac
8424   dynamic_linker='Win32 ld.exe'
8425   # FIXME: first we should search . and the directory the executable is in
8426   shlibpath_var=PATH
8427   ;;
8428
8429 darwin* | rhapsody*)
8430   dynamic_linker="$host_os dyld"
8431   version_type=darwin
8432   need_lib_prefix=no
8433   need_version=no
8434   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8435   soname_spec='${libname}${release}${major}$shared_ext'
8436   shlibpath_overrides_runpath=yes
8437   shlibpath_var=DYLD_LIBRARY_PATH
8438   shrext_cmds='.dylib'
8439   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8440   if test "$GCC" = yes; then
8441     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"`
8442   else
8443     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8444   fi
8445   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8446   ;;
8447
8448 dgux*)
8449   version_type=linux
8450   need_lib_prefix=no
8451   need_version=no
8452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8453   soname_spec='${libname}${release}${shared_ext}$major'
8454   shlibpath_var=LD_LIBRARY_PATH
8455   ;;
8456
8457 freebsd1*)
8458   dynamic_linker=no
8459   ;;
8460
8461 kfreebsd*-gnu)
8462   version_type=linux
8463   need_lib_prefix=no
8464   need_version=no
8465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8466   soname_spec='${libname}${release}${shared_ext}$major'
8467   shlibpath_var=LD_LIBRARY_PATH
8468   shlibpath_overrides_runpath=no
8469   hardcode_into_libs=yes
8470   dynamic_linker='GNU ld.so'
8471   ;;
8472
8473 freebsd* | dragonfly*)
8474   # DragonFly does not have aout.  When/if they implement a new
8475   # versioning mechanism, adjust this.
8476   if test -x /usr/bin/objformat; then
8477     objformat=`/usr/bin/objformat`
8478   else
8479     case $host_os in
8480     freebsd[123]*) objformat=aout ;;
8481     *) objformat=elf ;;
8482     esac
8483   fi
8484   version_type=freebsd-$objformat
8485   case $version_type in
8486     freebsd-elf*)
8487       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8488       need_version=no
8489       need_lib_prefix=no
8490       ;;
8491     freebsd-*)
8492       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8493       need_version=yes
8494       ;;
8495   esac
8496   shlibpath_var=LD_LIBRARY_PATH
8497   case $host_os in
8498   freebsd2*)
8499     shlibpath_overrides_runpath=yes
8500     ;;
8501   freebsd3.[01]* | freebsdelf3.[01]*)
8502     shlibpath_overrides_runpath=yes
8503     hardcode_into_libs=yes
8504     ;;
8505   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8506   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8507     shlibpath_overrides_runpath=no
8508     hardcode_into_libs=yes
8509     ;;
8510   freebsd*) # from 4.6 on
8511     shlibpath_overrides_runpath=yes
8512     hardcode_into_libs=yes
8513     ;;
8514   esac
8515   ;;
8516
8517 gnu*)
8518   version_type=linux
8519   need_lib_prefix=no
8520   need_version=no
8521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8522   soname_spec='${libname}${release}${shared_ext}$major'
8523   shlibpath_var=LD_LIBRARY_PATH
8524   hardcode_into_libs=yes
8525   ;;
8526
8527 hpux9* | hpux10* | hpux11*)
8528   # Give a soname corresponding to the major version so that dld.sl refuses to
8529   # link against other versions.
8530   version_type=sunos
8531   need_lib_prefix=no
8532   need_version=no
8533   case $host_cpu in
8534   ia64*)
8535     shrext_cmds='.so'
8536     hardcode_into_libs=yes
8537     dynamic_linker="$host_os dld.so"
8538     shlibpath_var=LD_LIBRARY_PATH
8539     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8540     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8541     soname_spec='${libname}${release}${shared_ext}$major'
8542     if test "X$HPUX_IA64_MODE" = X32; then
8543       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8544     else
8545       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8546     fi
8547     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8548     ;;
8549    hppa*64*)
8550      shrext_cmds='.sl'
8551      hardcode_into_libs=yes
8552      dynamic_linker="$host_os dld.sl"
8553      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8554      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8555      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8556      soname_spec='${libname}${release}${shared_ext}$major'
8557      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8558      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8559      ;;
8560    *)
8561     shrext_cmds='.sl'
8562     dynamic_linker="$host_os dld.sl"
8563     shlibpath_var=SHLIB_PATH
8564     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8565     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8566     soname_spec='${libname}${release}${shared_ext}$major'
8567     ;;
8568   esac
8569   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8570   postinstall_cmds='chmod 555 $lib'
8571   ;;
8572
8573 interix3*)
8574   version_type=linux
8575   need_lib_prefix=no
8576   need_version=no
8577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8578   soname_spec='${libname}${release}${shared_ext}$major'
8579   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8580   shlibpath_var=LD_LIBRARY_PATH
8581   shlibpath_overrides_runpath=no
8582   hardcode_into_libs=yes
8583   ;;
8584
8585 irix5* | irix6* | nonstopux*)
8586   case $host_os in
8587     nonstopux*) version_type=nonstopux ;;
8588     *)
8589         if test "$lt_cv_prog_gnu_ld" = yes; then
8590                 version_type=linux
8591         else
8592                 version_type=irix
8593         fi ;;
8594   esac
8595   need_lib_prefix=no
8596   need_version=no
8597   soname_spec='${libname}${release}${shared_ext}$major'
8598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8599   case $host_os in
8600   irix5* | nonstopux*)
8601     libsuff= shlibsuff=
8602     ;;
8603   *)
8604     case $LD in # libtool.m4 will add one of these switches to LD
8605     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8606       libsuff= shlibsuff= libmagic=32-bit;;
8607     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8608       libsuff=32 shlibsuff=N32 libmagic=N32;;
8609     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8610       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8611     *) libsuff= shlibsuff= libmagic=never-match;;
8612     esac
8613     ;;
8614   esac
8615   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8616   shlibpath_overrides_runpath=no
8617   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8618   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8619   hardcode_into_libs=yes
8620   ;;
8621
8622 # No shared lib support for Linux oldld, aout, or coff.
8623 linux*oldld* | linux*aout* | linux*coff*)
8624   dynamic_linker=no
8625   ;;
8626
8627 # This must be Linux ELF.
8628 linux*)
8629   version_type=linux
8630   need_lib_prefix=no
8631   need_version=no
8632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8633   soname_spec='${libname}${release}${shared_ext}$major'
8634   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8635   shlibpath_var=LD_LIBRARY_PATH
8636   shlibpath_overrides_runpath=no
8637   # This implies no fast_install, which is unacceptable.
8638   # Some rework will be needed to allow for fast_install
8639   # before this can be enabled.
8640   hardcode_into_libs=yes
8641
8642   # Append ld.so.conf contents to the search path
8643   if test -f /etc/ld.so.conf; then
8644     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' ' '`
8645     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8646   fi
8647
8648   # We used to test for /lib/ld.so.1 and disable shared libraries on
8649   # powerpc, because MkLinux only supported shared libraries with the
8650   # GNU dynamic linker.  Since this was broken with cross compilers,
8651   # most powerpc-linux boxes support dynamic linking these days and
8652   # people can always --disable-shared, the test was removed, and we
8653   # assume the GNU/Linux dynamic linker is in use.
8654   dynamic_linker='GNU/Linux ld.so'
8655   ;;
8656
8657 knetbsd*-gnu)
8658   version_type=linux
8659   need_lib_prefix=no
8660   need_version=no
8661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8662   soname_spec='${libname}${release}${shared_ext}$major'
8663   shlibpath_var=LD_LIBRARY_PATH
8664   shlibpath_overrides_runpath=no
8665   hardcode_into_libs=yes
8666   dynamic_linker='GNU ld.so'
8667   ;;
8668
8669 netbsd*)
8670   version_type=sunos
8671   need_lib_prefix=no
8672   need_version=no
8673   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8674     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8675     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8676     dynamic_linker='NetBSD (a.out) ld.so'
8677   else
8678     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8679     soname_spec='${libname}${release}${shared_ext}$major'
8680     dynamic_linker='NetBSD ld.elf_so'
8681   fi
8682   shlibpath_var=LD_LIBRARY_PATH
8683   shlibpath_overrides_runpath=yes
8684   hardcode_into_libs=yes
8685   ;;
8686
8687 newsos6)
8688   version_type=linux
8689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8690   shlibpath_var=LD_LIBRARY_PATH
8691   shlibpath_overrides_runpath=yes
8692   ;;
8693
8694 nto-qnx*)
8695   version_type=linux
8696   need_lib_prefix=no
8697   need_version=no
8698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8699   soname_spec='${libname}${release}${shared_ext}$major'
8700   shlibpath_var=LD_LIBRARY_PATH
8701   shlibpath_overrides_runpath=yes
8702   ;;
8703
8704 openbsd*)
8705   version_type=sunos
8706   sys_lib_dlsearch_path_spec="/usr/lib"
8707   need_lib_prefix=no
8708   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8709   case $host_os in
8710     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8711     *)                         need_version=no  ;;
8712   esac
8713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8714   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8715   shlibpath_var=LD_LIBRARY_PATH
8716   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8717     case $host_os in
8718       openbsd2.[89] | openbsd2.[89].*)
8719         shlibpath_overrides_runpath=no
8720         ;;
8721       *)
8722         shlibpath_overrides_runpath=yes
8723         ;;
8724       esac
8725   else
8726     shlibpath_overrides_runpath=yes
8727   fi
8728   ;;
8729
8730 os2*)
8731   libname_spec='$name'
8732   shrext_cmds=".dll"
8733   need_lib_prefix=no
8734   library_names_spec='$libname${shared_ext} $libname.a'
8735   dynamic_linker='OS/2 ld.exe'
8736   shlibpath_var=LIBPATH
8737   ;;
8738
8739 osf3* | osf4* | osf5*)
8740   version_type=osf
8741   need_lib_prefix=no
8742   need_version=no
8743   soname_spec='${libname}${release}${shared_ext}$major'
8744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8745   shlibpath_var=LD_LIBRARY_PATH
8746   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8747   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8748   ;;
8749
8750 solaris*)
8751   version_type=linux
8752   need_lib_prefix=no
8753   need_version=no
8754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8755   soname_spec='${libname}${release}${shared_ext}$major'
8756   shlibpath_var=LD_LIBRARY_PATH
8757   shlibpath_overrides_runpath=yes
8758   hardcode_into_libs=yes
8759   # ldd complains unless libraries are executable
8760   postinstall_cmds='chmod +x $lib'
8761   ;;
8762
8763 sunos4*)
8764   version_type=sunos
8765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8766   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8767   shlibpath_var=LD_LIBRARY_PATH
8768   shlibpath_overrides_runpath=yes
8769   if test "$with_gnu_ld" = yes; then
8770     need_lib_prefix=no
8771   fi
8772   need_version=yes
8773   ;;
8774
8775 sysv4 | sysv4.3*)
8776   version_type=linux
8777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8778   soname_spec='${libname}${release}${shared_ext}$major'
8779   shlibpath_var=LD_LIBRARY_PATH
8780   case $host_vendor in
8781     sni)
8782       shlibpath_overrides_runpath=no
8783       need_lib_prefix=no
8784       export_dynamic_flag_spec='${wl}-Blargedynsym'
8785       runpath_var=LD_RUN_PATH
8786       ;;
8787     siemens)
8788       need_lib_prefix=no
8789       ;;
8790     motorola)
8791       need_lib_prefix=no
8792       need_version=no
8793       shlibpath_overrides_runpath=no
8794       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8795       ;;
8796   esac
8797   ;;
8798
8799 sysv4*MP*)
8800   if test -d /usr/nec ;then
8801     version_type=linux
8802     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8803     soname_spec='$libname${shared_ext}.$major'
8804     shlibpath_var=LD_LIBRARY_PATH
8805   fi
8806   ;;
8807
8808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8809   version_type=freebsd-elf
8810   need_lib_prefix=no
8811   need_version=no
8812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8813   soname_spec='${libname}${release}${shared_ext}$major'
8814   shlibpath_var=LD_LIBRARY_PATH
8815   hardcode_into_libs=yes
8816   if test "$with_gnu_ld" = yes; then
8817     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8818     shlibpath_overrides_runpath=no
8819   else
8820     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8821     shlibpath_overrides_runpath=yes
8822     case $host_os in
8823       sco3.2v5*)
8824         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8825         ;;
8826     esac
8827   fi
8828   sys_lib_dlsearch_path_spec='/usr/lib'
8829   ;;
8830
8831 uts4*)
8832   version_type=linux
8833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8834   soname_spec='${libname}${release}${shared_ext}$major'
8835   shlibpath_var=LD_LIBRARY_PATH
8836   ;;
8837
8838 *)
8839   dynamic_linker=no
8840   ;;
8841 esac
8842 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8843 echo "${ECHO_T}$dynamic_linker" >&6; }
8844 test "$dynamic_linker" = no && can_build_shared=no
8845
8846 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8847 if test "$GCC" = yes; then
8848   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8849 fi
8850
8851
8852 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
8853 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
8854 if test "${libltdl_cv_shlibext+set}" = set; then
8855   echo $ECHO_N "(cached) $ECHO_C" >&6
8856 else
8857
8858 module=yes
8859 eval libltdl_cv_shlibext=$shrext_cmds
8860
8861 fi
8862 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
8863 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
8864 if test -n "$libltdl_cv_shlibext"; then
8865
8866 cat >>confdefs.h <<_ACEOF
8867 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
8868 _ACEOF
8869
8870 fi
8871
8872
8873 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
8874 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
8875 if test "${libltdl_cv_shlibpath_var+set}" = set; then
8876   echo $ECHO_N "(cached) $ECHO_C" >&6
8877 else
8878   libltdl_cv_shlibpath_var="$shlibpath_var"
8879 fi
8880 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
8881 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
8882 if test -n "$libltdl_cv_shlibpath_var"; then
8883
8884 cat >>confdefs.h <<_ACEOF
8885 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
8886 _ACEOF
8887
8888 fi
8889
8890
8891 { echo "$as_me:$LINENO: checking for the default library search path" >&5
8892 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
8893 if test "${libltdl_cv_sys_search_path+set}" = set; then
8894   echo $ECHO_N "(cached) $ECHO_C" >&6
8895 else
8896   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
8897 fi
8898 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
8899 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
8900 if test -n "$libltdl_cv_sys_search_path"; then
8901   sys_search_path=
8902   for dir in $libltdl_cv_sys_search_path; do
8903     if test -z "$sys_search_path"; then
8904       sys_search_path="$dir"
8905     else
8906       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
8907     fi
8908   done
8909
8910 cat >>confdefs.h <<_ACEOF
8911 #define LTDL_SYSSEARCHPATH "$sys_search_path"
8912 _ACEOF
8913
8914 fi
8915
8916 { echo "$as_me:$LINENO: checking for objdir" >&5
8917 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8918 if test "${libltdl_cv_objdir+set}" = set; then
8919   echo $ECHO_N "(cached) $ECHO_C" >&6
8920 else
8921   libltdl_cv_objdir="$objdir"
8922   if test -n "$objdir"; then
8923     :
8924   else
8925     rm -f .libs 2>/dev/null
8926     mkdir .libs 2>/dev/null
8927     if test -d .libs; then
8928       libltdl_cv_objdir=.libs
8929     else
8930       # MS-DOS does not allow filenames that begin with a dot.
8931       libltdl_cv_objdir=_libs
8932     fi
8933   rmdir .libs 2>/dev/null
8934   fi
8935
8936 fi
8937 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
8938 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
8939
8940 cat >>confdefs.h <<_ACEOF
8941 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
8942 _ACEOF
8943
8944
8945
8946
8947
8948
8949 # Check for command to grab the raw symbol name followed by C symbol from nm.
8950 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8951 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8952 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8953   echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955
8956 # These are sane defaults that work on at least a few old systems.
8957 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8958
8959 # Character class describing NM global symbol codes.
8960 symcode='[BCDEGRST]'
8961
8962 # Regexp to match symbols that can be accessed directly from C.
8963 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8964
8965 # Transform an extracted symbol line into a proper C declaration
8966 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8967
8968 # Transform an extracted symbol line into symbol name and symbol address
8969 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'"
8970
8971 # Define system-specific variables.
8972 case $host_os in
8973 aix*)
8974   symcode='[BCDT]'
8975   ;;
8976 cygwin* | mingw* | pw32*)
8977   symcode='[ABCDGISTW]'
8978   ;;
8979 hpux*) # Its linker distinguishes data from code symbols
8980   if test "$host_cpu" = ia64; then
8981     symcode='[ABCDEGRST]'
8982   fi
8983   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8984   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'"
8985   ;;
8986 linux*)
8987   if test "$host_cpu" = ia64; then
8988     symcode='[ABCDGIRSTW]'
8989     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8990     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'"
8991   fi
8992   ;;
8993 irix* | nonstopux*)
8994   symcode='[BCDEGRST]'
8995   ;;
8996 osf*)
8997   symcode='[BCDEGQRST]'
8998   ;;
8999 solaris*)
9000   symcode='[BDRT]'
9001   ;;
9002 sco3.2v5*)
9003   symcode='[DT]'
9004   ;;
9005 sysv4.2uw2*)
9006   symcode='[DT]'
9007   ;;
9008 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9009   symcode='[ABDT]'
9010   ;;
9011 sysv4)
9012   symcode='[DFNSTU]'
9013   ;;
9014 esac
9015
9016 # Handle CRLF in mingw tool chain
9017 opt_cr=
9018 case $build_os in
9019 mingw*)
9020   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9021   ;;
9022 esac
9023
9024 # If we're using GNU nm, then use its standard symbol codes.
9025 case `$NM -V 2>&1` in
9026 *GNU* | *'with BFD'*)
9027   symcode='[ABCDGIRSTW]' ;;
9028 esac
9029
9030 # Try without a prefix undercore, then with it.
9031 for ac_symprfx in "" "_"; do
9032
9033   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9034   symxfrm="\\1 $ac_symprfx\\2 \\2"
9035
9036   # Write the raw and C identifiers.
9037   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9038
9039   # Check to see that the pipe works correctly.
9040   pipe_works=no
9041
9042   rm -f conftest*
9043   cat > conftest.$ac_ext <<EOF
9044 #ifdef __cplusplus
9045 extern "C" {
9046 #endif
9047 char nm_test_var;
9048 void nm_test_func(){}
9049 #ifdef __cplusplus
9050 }
9051 #endif
9052 int main(){nm_test_var='a';nm_test_func();return(0);}
9053 EOF
9054
9055   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9056   (eval $ac_compile) 2>&5
9057   ac_status=$?
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); }; then
9060     # Now try to grab the symbols.
9061     nlist=conftest.nm
9062     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9063   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9064   ac_status=$?
9065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066   (exit $ac_status); } && test -s "$nlist"; then
9067       # Try sorting and uniquifying the output.
9068       if sort "$nlist" | uniq > "$nlist"T; then
9069         mv -f "$nlist"T "$nlist"
9070       else
9071         rm -f "$nlist"T
9072       fi
9073
9074       # Make sure that we snagged all the symbols we need.
9075       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9076         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9077           cat <<EOF > conftest.$ac_ext
9078 #ifdef __cplusplus
9079 extern "C" {
9080 #endif
9081
9082 EOF
9083           # Now generate the symbol file.
9084           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9085
9086           cat <<EOF >> conftest.$ac_ext
9087 #if defined (__STDC__) && __STDC__
9088 # define lt_ptr_t void *
9089 #else
9090 # define lt_ptr_t char *
9091 # define const
9092 #endif
9093
9094 /* The mapping between symbol names and symbols. */
9095 const struct {
9096   const char *name;
9097   lt_ptr_t address;
9098 }
9099 lt_preloaded_symbols[] =
9100 {
9101 EOF
9102           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9103           cat <<\EOF >> conftest.$ac_ext
9104   {0, (lt_ptr_t) 0}
9105 };
9106
9107 #ifdef __cplusplus
9108 }
9109 #endif
9110 EOF
9111           # Now try linking the two files.
9112           mv conftest.$ac_objext conftstm.$ac_objext
9113           lt_save_LIBS="$LIBS"
9114           lt_save_CFLAGS="$CFLAGS"
9115           LIBS="conftstm.$ac_objext"
9116           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9117           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9118   (eval $ac_link) 2>&5
9119   ac_status=$?
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9122             pipe_works=yes
9123           fi
9124           LIBS="$lt_save_LIBS"
9125           CFLAGS="$lt_save_CFLAGS"
9126         else
9127           echo "cannot find nm_test_func in $nlist" >&5
9128         fi
9129       else
9130         echo "cannot find nm_test_var in $nlist" >&5
9131       fi
9132     else
9133       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9134     fi
9135   else
9136     echo "$progname: failed program was:" >&5
9137     cat conftest.$ac_ext >&5
9138   fi
9139   rm -f conftest* conftst*
9140
9141   # Do not use the global_symbol_pipe unless it works.
9142   if test "$pipe_works" = yes; then
9143     break
9144   else
9145     lt_cv_sys_global_symbol_pipe=
9146   fi
9147 done
9148
9149 fi
9150
9151 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9152   lt_cv_sys_global_symbol_to_cdecl=
9153 fi
9154 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9155   { echo "$as_me:$LINENO: result: failed" >&5
9156 echo "${ECHO_T}failed" >&6; }
9157 else
9158   { echo "$as_me:$LINENO: result: ok" >&5
9159 echo "${ECHO_T}ok" >&6; }
9160 fi
9161
9162
9163 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9164 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9165 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9166   echo $ECHO_N "(cached) $ECHO_C" >&6
9167 else
9168   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9169     libltdl_cv_preloaded_symbols=yes
9170   else
9171     libltdl_cv_preloaded_symbols=no
9172   fi
9173
9174 fi
9175 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9176 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9177 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9178
9179 cat >>confdefs.h <<\_ACEOF
9180 #define HAVE_PRELOADED_SYMBOLS 1
9181 _ACEOF
9182
9183 fi
9184
9185 LIBADD_DL=
9186
9187 ac_ext=c
9188 ac_cpp='$CPP $CPPFLAGS'
9189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9192
9193
9194 { echo "$as_me:$LINENO: checking for shl_load" >&5
9195 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9196 if test "${ac_cv_func_shl_load+set}" = set; then
9197   echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199   cat >conftest.$ac_ext <<_ACEOF
9200 /* confdefs.h.  */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h.  */
9205 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9207 #define shl_load innocuous_shl_load
9208
9209 /* System header to define __stub macros and hopefully few prototypes,
9210     which can conflict with char shl_load (); below.
9211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9212     <limits.h> exists even on freestanding compilers.  */
9213
9214 #ifdef __STDC__
9215 # include <limits.h>
9216 #else
9217 # include <assert.h>
9218 #endif
9219
9220 #undef shl_load
9221
9222 /* Override any GCC internal prototype to avoid an error.
9223    Use char because int might match the return type of a GCC
9224    builtin and then its argument prototype would still apply.  */
9225 #ifdef __cplusplus
9226 extern "C"
9227 #endif
9228 char shl_load ();
9229 /* The GNU C library defines this for functions which it implements
9230     to always fail with ENOSYS.  Some functions are actually named
9231     something starting with __ and the normal name is an alias.  */
9232 #if defined __stub_shl_load || defined __stub___shl_load
9233 choke me
9234 #endif
9235
9236 int
9237 main ()
9238 {
9239 return shl_load ();
9240   ;
9241   return 0;
9242 }
9243 _ACEOF
9244 rm -f conftest.$ac_objext conftest$ac_exeext
9245 if { (ac_try="$ac_link"
9246 case "(($ac_try" in
9247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248   *) ac_try_echo=$ac_try;;
9249 esac
9250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251   (eval "$ac_link") 2>conftest.er1
9252   ac_status=$?
9253   grep -v '^ *+' conftest.er1 >conftest.err
9254   rm -f conftest.er1
9255   cat conftest.err >&5
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); } && {
9258          test -z "$ac_c_werror_flag" ||
9259          test ! -s conftest.err
9260        } && test -s conftest$ac_exeext &&
9261        $as_test_x conftest$ac_exeext; then
9262   ac_cv_func_shl_load=yes
9263 else
9264   echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9266
9267         ac_cv_func_shl_load=no
9268 fi
9269
9270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9271       conftest$ac_exeext conftest.$ac_ext
9272 fi
9273 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9274 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9275 if test $ac_cv_func_shl_load = yes; then
9276
9277 cat >>confdefs.h <<\_ACEOF
9278 #define HAVE_SHL_LOAD 1
9279 _ACEOF
9280
9281 else
9282   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9283 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9284 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9285   echo $ECHO_N "(cached) $ECHO_C" >&6
9286 else
9287   ac_check_lib_save_LIBS=$LIBS
9288 LIBS="-ldld  $LIBS"
9289 cat >conftest.$ac_ext <<_ACEOF
9290 /* confdefs.h.  */
9291 _ACEOF
9292 cat confdefs.h >>conftest.$ac_ext
9293 cat >>conftest.$ac_ext <<_ACEOF
9294 /* end confdefs.h.  */
9295
9296 /* Override any GCC internal prototype to avoid an error.
9297    Use char because int might match the return type of a GCC
9298    builtin and then its argument prototype would still apply.  */
9299 #ifdef __cplusplus
9300 extern "C"
9301 #endif
9302 char shl_load ();
9303 int
9304 main ()
9305 {
9306 return shl_load ();
9307   ;
9308   return 0;
9309 }
9310 _ACEOF
9311 rm -f conftest.$ac_objext conftest$ac_exeext
9312 if { (ac_try="$ac_link"
9313 case "(($ac_try" in
9314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315   *) ac_try_echo=$ac_try;;
9316 esac
9317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318   (eval "$ac_link") 2>conftest.er1
9319   ac_status=$?
9320   grep -v '^ *+' conftest.er1 >conftest.err
9321   rm -f conftest.er1
9322   cat conftest.err >&5
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); } && {
9325          test -z "$ac_c_werror_flag" ||
9326          test ! -s conftest.err
9327        } && test -s conftest$ac_exeext &&
9328        $as_test_x conftest$ac_exeext; then
9329   ac_cv_lib_dld_shl_load=yes
9330 else
9331   echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.$ac_ext >&5
9333
9334         ac_cv_lib_dld_shl_load=no
9335 fi
9336
9337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9338       conftest$ac_exeext conftest.$ac_ext
9339 LIBS=$ac_check_lib_save_LIBS
9340 fi
9341 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9342 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9343 if test $ac_cv_lib_dld_shl_load = yes; then
9344
9345 cat >>confdefs.h <<\_ACEOF
9346 #define HAVE_SHL_LOAD 1
9347 _ACEOF
9348
9349         LIBADD_DL="$LIBADD_DL -ldld"
9350 else
9351   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9352 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9353 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9354   echo $ECHO_N "(cached) $ECHO_C" >&6
9355 else
9356   ac_check_lib_save_LIBS=$LIBS
9357 LIBS="-ldl  $LIBS"
9358 cat >conftest.$ac_ext <<_ACEOF
9359 /* confdefs.h.  */
9360 _ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h.  */
9364
9365 /* Override any GCC internal prototype to avoid an error.
9366    Use char because int might match the return type of a GCC
9367    builtin and then its argument prototype would still apply.  */
9368 #ifdef __cplusplus
9369 extern "C"
9370 #endif
9371 char dlopen ();
9372 int
9373 main ()
9374 {
9375 return dlopen ();
9376   ;
9377   return 0;
9378 }
9379 _ACEOF
9380 rm -f conftest.$ac_objext conftest$ac_exeext
9381 if { (ac_try="$ac_link"
9382 case "(($ac_try" in
9383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384   *) ac_try_echo=$ac_try;;
9385 esac
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387   (eval "$ac_link") 2>conftest.er1
9388   ac_status=$?
9389   grep -v '^ *+' conftest.er1 >conftest.err
9390   rm -f conftest.er1
9391   cat conftest.err >&5
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); } && {
9394          test -z "$ac_c_werror_flag" ||
9395          test ! -s conftest.err
9396        } && test -s conftest$ac_exeext &&
9397        $as_test_x conftest$ac_exeext; then
9398   ac_cv_lib_dl_dlopen=yes
9399 else
9400   echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9402
9403         ac_cv_lib_dl_dlopen=no
9404 fi
9405
9406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9407       conftest$ac_exeext conftest.$ac_ext
9408 LIBS=$ac_check_lib_save_LIBS
9409 fi
9410 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9411 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9412 if test $ac_cv_lib_dl_dlopen = yes; then
9413
9414 cat >>confdefs.h <<\_ACEOF
9415 #define HAVE_LIBDL 1
9416 _ACEOF
9417
9418                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9419 else
9420   cat >conftest.$ac_ext <<_ACEOF
9421 /* confdefs.h.  */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h.  */
9426 #if HAVE_DLFCN_H
9427 #  include <dlfcn.h>
9428 #endif
9429
9430 int
9431 main ()
9432 {
9433 dlopen(0, 0);
9434   ;
9435   return 0;
9436 }
9437 _ACEOF
9438 rm -f conftest.$ac_objext conftest$ac_exeext
9439 if { (ac_try="$ac_link"
9440 case "(($ac_try" in
9441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442   *) ac_try_echo=$ac_try;;
9443 esac
9444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445   (eval "$ac_link") 2>conftest.er1
9446   ac_status=$?
9447   grep -v '^ *+' conftest.er1 >conftest.err
9448   rm -f conftest.er1
9449   cat conftest.err >&5
9450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451   (exit $ac_status); } && {
9452          test -z "$ac_c_werror_flag" ||
9453          test ! -s conftest.err
9454        } && test -s conftest$ac_exeext &&
9455        $as_test_x conftest$ac_exeext; then
9456
9457 cat >>confdefs.h <<\_ACEOF
9458 #define HAVE_LIBDL 1
9459 _ACEOF
9460  libltdl_cv_func_dlopen="yes"
9461 else
9462   echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9464
9465         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9466 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9467 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9468   echo $ECHO_N "(cached) $ECHO_C" >&6
9469 else
9470   ac_check_lib_save_LIBS=$LIBS
9471 LIBS="-lsvld  $LIBS"
9472 cat >conftest.$ac_ext <<_ACEOF
9473 /* confdefs.h.  */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h.  */
9478
9479 /* Override any GCC internal prototype to avoid an error.
9480    Use char because int might match the return type of a GCC
9481    builtin and then its argument prototype would still apply.  */
9482 #ifdef __cplusplus
9483 extern "C"
9484 #endif
9485 char dlopen ();
9486 int
9487 main ()
9488 {
9489 return dlopen ();
9490   ;
9491   return 0;
9492 }
9493 _ACEOF
9494 rm -f conftest.$ac_objext conftest$ac_exeext
9495 if { (ac_try="$ac_link"
9496 case "(($ac_try" in
9497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498   *) ac_try_echo=$ac_try;;
9499 esac
9500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501   (eval "$ac_link") 2>conftest.er1
9502   ac_status=$?
9503   grep -v '^ *+' conftest.er1 >conftest.err
9504   rm -f conftest.er1
9505   cat conftest.err >&5
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); } && {
9508          test -z "$ac_c_werror_flag" ||
9509          test ! -s conftest.err
9510        } && test -s conftest$ac_exeext &&
9511        $as_test_x conftest$ac_exeext; then
9512   ac_cv_lib_svld_dlopen=yes
9513 else
9514   echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9516
9517         ac_cv_lib_svld_dlopen=no
9518 fi
9519
9520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9521       conftest$ac_exeext conftest.$ac_ext
9522 LIBS=$ac_check_lib_save_LIBS
9523 fi
9524 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9525 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9526 if test $ac_cv_lib_svld_dlopen = yes; then
9527
9528 cat >>confdefs.h <<\_ACEOF
9529 #define HAVE_LIBDL 1
9530 _ACEOF
9531
9532                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9533 else
9534   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9535 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9536 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9537   echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539   ac_check_lib_save_LIBS=$LIBS
9540 LIBS="-ldld  $LIBS"
9541 cat >conftest.$ac_ext <<_ACEOF
9542 /* confdefs.h.  */
9543 _ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h.  */
9547
9548 /* Override any GCC internal prototype to avoid an error.
9549    Use char because int might match the return type of a GCC
9550    builtin and then its argument prototype would still apply.  */
9551 #ifdef __cplusplus
9552 extern "C"
9553 #endif
9554 char dld_link ();
9555 int
9556 main ()
9557 {
9558 return dld_link ();
9559   ;
9560   return 0;
9561 }
9562 _ACEOF
9563 rm -f conftest.$ac_objext conftest$ac_exeext
9564 if { (ac_try="$ac_link"
9565 case "(($ac_try" in
9566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567   *) ac_try_echo=$ac_try;;
9568 esac
9569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570   (eval "$ac_link") 2>conftest.er1
9571   ac_status=$?
9572   grep -v '^ *+' conftest.er1 >conftest.err
9573   rm -f conftest.er1
9574   cat conftest.err >&5
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); } && {
9577          test -z "$ac_c_werror_flag" ||
9578          test ! -s conftest.err
9579        } && test -s conftest$ac_exeext &&
9580        $as_test_x conftest$ac_exeext; then
9581   ac_cv_lib_dld_dld_link=yes
9582 else
9583   echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9585
9586         ac_cv_lib_dld_dld_link=no
9587 fi
9588
9589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9590       conftest$ac_exeext conftest.$ac_ext
9591 LIBS=$ac_check_lib_save_LIBS
9592 fi
9593 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9594 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9595 if test $ac_cv_lib_dld_dld_link = yes; then
9596
9597 cat >>confdefs.h <<\_ACEOF
9598 #define HAVE_DLD 1
9599 _ACEOF
9600
9601                 LIBADD_DL="$LIBADD_DL -ldld"
9602 else
9603   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9604 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9605 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9606   echo $ECHO_N "(cached) $ECHO_C" >&6
9607 else
9608   cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h.  */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h.  */
9614 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9616 #define _dyld_func_lookup innocuous__dyld_func_lookup
9617
9618 /* System header to define __stub macros and hopefully few prototypes,
9619     which can conflict with char _dyld_func_lookup (); below.
9620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9621     <limits.h> exists even on freestanding compilers.  */
9622
9623 #ifdef __STDC__
9624 # include <limits.h>
9625 #else
9626 # include <assert.h>
9627 #endif
9628
9629 #undef _dyld_func_lookup
9630
9631 /* Override any GCC internal prototype to avoid an error.
9632    Use char because int might match the return type of a GCC
9633    builtin and then its argument prototype would still apply.  */
9634 #ifdef __cplusplus
9635 extern "C"
9636 #endif
9637 char _dyld_func_lookup ();
9638 /* The GNU C library defines this for functions which it implements
9639     to always fail with ENOSYS.  Some functions are actually named
9640     something starting with __ and the normal name is an alias.  */
9641 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9642 choke me
9643 #endif
9644
9645 int
9646 main ()
9647 {
9648 return _dyld_func_lookup ();
9649   ;
9650   return 0;
9651 }
9652 _ACEOF
9653 rm -f conftest.$ac_objext conftest$ac_exeext
9654 if { (ac_try="$ac_link"
9655 case "(($ac_try" in
9656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657   *) ac_try_echo=$ac_try;;
9658 esac
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660   (eval "$ac_link") 2>conftest.er1
9661   ac_status=$?
9662   grep -v '^ *+' conftest.er1 >conftest.err
9663   rm -f conftest.er1
9664   cat conftest.err >&5
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); } && {
9667          test -z "$ac_c_werror_flag" ||
9668          test ! -s conftest.err
9669        } && test -s conftest$ac_exeext &&
9670        $as_test_x conftest$ac_exeext; then
9671   ac_cv_func__dyld_func_lookup=yes
9672 else
9673   echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9675
9676         ac_cv_func__dyld_func_lookup=no
9677 fi
9678
9679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9680       conftest$ac_exeext conftest.$ac_ext
9681 fi
9682 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9683 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9684 if test $ac_cv_func__dyld_func_lookup = yes; then
9685
9686 cat >>confdefs.h <<\_ACEOF
9687 #define HAVE_DYLD 1
9688 _ACEOF
9689
9690 fi
9691
9692
9693 fi
9694
9695
9696 fi
9697
9698
9699 fi
9700
9701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9702       conftest$ac_exeext conftest.$ac_ext
9703
9704 fi
9705
9706
9707 fi
9708
9709
9710 fi
9711
9712
9713 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9714 then
9715   lt_save_LIBS="$LIBS"
9716   LIBS="$LIBS $LIBADD_DL"
9717
9718 for ac_func in dlerror
9719 do
9720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9724   echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726   cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h.  */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h.  */
9732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9734 #define $ac_func innocuous_$ac_func
9735
9736 /* System header to define __stub macros and hopefully few prototypes,
9737     which can conflict with char $ac_func (); below.
9738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9739     <limits.h> exists even on freestanding compilers.  */
9740
9741 #ifdef __STDC__
9742 # include <limits.h>
9743 #else
9744 # include <assert.h>
9745 #endif
9746
9747 #undef $ac_func
9748
9749 /* Override any GCC internal prototype to avoid an error.
9750    Use char because int might match the return type of a GCC
9751    builtin and then its argument prototype would still apply.  */
9752 #ifdef __cplusplus
9753 extern "C"
9754 #endif
9755 char $ac_func ();
9756 /* The GNU C library defines this for functions which it implements
9757     to always fail with ENOSYS.  Some functions are actually named
9758     something starting with __ and the normal name is an alias.  */
9759 #if defined __stub_$ac_func || defined __stub___$ac_func
9760 choke me
9761 #endif
9762
9763 int
9764 main ()
9765 {
9766 return $ac_func ();
9767   ;
9768   return 0;
9769 }
9770 _ACEOF
9771 rm -f conftest.$ac_objext conftest$ac_exeext
9772 if { (ac_try="$ac_link"
9773 case "(($ac_try" in
9774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775   *) ac_try_echo=$ac_try;;
9776 esac
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778   (eval "$ac_link") 2>conftest.er1
9779   ac_status=$?
9780   grep -v '^ *+' conftest.er1 >conftest.err
9781   rm -f conftest.er1
9782   cat conftest.err >&5
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); } && {
9785          test -z "$ac_c_werror_flag" ||
9786          test ! -s conftest.err
9787        } && test -s conftest$ac_exeext &&
9788        $as_test_x conftest$ac_exeext; then
9789   eval "$as_ac_var=yes"
9790 else
9791   echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.$ac_ext >&5
9793
9794         eval "$as_ac_var=no"
9795 fi
9796
9797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9798       conftest$ac_exeext conftest.$ac_ext
9799 fi
9800 ac_res=`eval echo '${'$as_ac_var'}'`
9801                { echo "$as_me:$LINENO: result: $ac_res" >&5
9802 echo "${ECHO_T}$ac_res" >&6; }
9803 if test `eval echo '${'$as_ac_var'}'` = yes; then
9804   cat >>confdefs.h <<_ACEOF
9805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9806 _ACEOF
9807
9808 fi
9809 done
9810
9811   LIBS="$lt_save_LIBS"
9812 fi
9813 ac_ext=c
9814 ac_cpp='$CPP $CPPFLAGS'
9815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9818
9819
9820
9821 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
9822 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
9823 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
9824   echo $ECHO_N "(cached) $ECHO_C" >&6
9825 else
9826   ac_cv_sys_symbol_underscore=no
9827   cat > conftest.$ac_ext <<EOF
9828 void nm_test_func(){}
9829 int main(){nm_test_func;return 0;}
9830 EOF
9831   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9832   (eval $ac_compile) 2>&5
9833   ac_status=$?
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); }; then
9836     # Now try to grab the symbols.
9837     ac_nlist=conftest.nm
9838     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
9839   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); } && test -s "$ac_nlist"; then
9843       # See whether the symbols have a leading underscore.
9844       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9845         ac_cv_sys_symbol_underscore=yes
9846       else
9847         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9848           :
9849         else
9850           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9851         fi
9852       fi
9853     else
9854       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9855     fi
9856   else
9857     echo "configure: failed program was:" >&5
9858     cat conftest.c >&5
9859   fi
9860   rm -rf conftest*
9861
9862 fi
9863 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
9864 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
9865
9866
9867 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
9868   if test x"$libltdl_cv_func_dlopen" = xyes ||
9869      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
9870         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
9871 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
9872 if test "${libltdl_cv_need_uscore+set}" = set; then
9873   echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875   libltdl_cv_need_uscore=unknown
9876           save_LIBS="$LIBS"
9877           LIBS="$LIBS $LIBADD_DL"
9878           if test "$cross_compiling" = yes; then :
9879   libltdl_cv_need_uscore=cross
9880 else
9881   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9882   lt_status=$lt_dlunknown
9883   cat > conftest.$ac_ext <<EOF
9884 #line 9884 "configure"
9885 #include "confdefs.h"
9886
9887 #if HAVE_DLFCN_H
9888 #include <dlfcn.h>
9889 #endif
9890
9891 #include <stdio.h>
9892
9893 #ifdef RTLD_GLOBAL
9894 #  define LT_DLGLOBAL           RTLD_GLOBAL
9895 #else
9896 #  ifdef DL_GLOBAL
9897 #    define LT_DLGLOBAL         DL_GLOBAL
9898 #  else
9899 #    define LT_DLGLOBAL         0
9900 #  endif
9901 #endif
9902
9903 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9904    find out it does not work in some platform. */
9905 #ifndef LT_DLLAZY_OR_NOW
9906 #  ifdef RTLD_LAZY
9907 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9908 #  else
9909 #    ifdef DL_LAZY
9910 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9911 #    else
9912 #      ifdef RTLD_NOW
9913 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9914 #      else
9915 #        ifdef DL_NOW
9916 #          define LT_DLLAZY_OR_NOW      DL_NOW
9917 #        else
9918 #          define LT_DLLAZY_OR_NOW      0
9919 #        endif
9920 #      endif
9921 #    endif
9922 #  endif
9923 #endif
9924
9925 #ifdef __cplusplus
9926 extern "C" void exit (int);
9927 #endif
9928
9929 void fnord() { int i=42;}
9930 int main ()
9931 {
9932   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9933   int status = $lt_dlunknown;
9934
9935   if (self)
9936     {
9937       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9938       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9939       /* dlclose (self); */
9940     }
9941   else
9942     puts (dlerror ());
9943
9944     exit (status);
9945 }
9946 EOF
9947   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948   (eval $ac_link) 2>&5
9949   ac_status=$?
9950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9952     (./conftest; exit; ) >&5 2>/dev/null
9953     lt_status=$?
9954     case x$lt_status in
9955       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
9956       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
9957       x$lt_dlunknown|x*)  ;;
9958     esac
9959   else :
9960     # compilation failed
9961
9962   fi
9963 fi
9964 rm -fr conftest*
9965
9966           LIBS="$save_LIBS"
9967
9968 fi
9969 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
9970 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
9971   fi
9972 fi
9973
9974 if test x"$libltdl_cv_need_uscore" = xyes; then
9975
9976 cat >>confdefs.h <<\_ACEOF
9977 #define NEED_USCORE 1
9978 _ACEOF
9979
9980 fi
9981
9982
9983 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
9984 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
9985 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
9986   echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988   # PORTME does your system automatically load deplibs for dlopen?
9989   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
9990   # For now, we just catch OSes we know something about -- in the
9991   # future, we'll try test this programmatically.
9992   libltdl_cv_sys_dlopen_deplibs=unknown
9993   case "$host_os" in
9994   aix3*|aix4.1.*|aix4.2.*)
9995     # Unknown whether this is true for these versions of AIX, but
9996     # we want this `case' here to explicitly catch those versions.
9997     libltdl_cv_sys_dlopen_deplibs=unknown
9998     ;;
9999   aix[45]*)
10000     libltdl_cv_sys_dlopen_deplibs=yes
10001     ;;
10002   darwin*)
10003     # Assuming the user has installed a libdl from somewhere, this is true
10004     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10005     libltdl_cv_sys_dlopen_deplibs=yes
10006     ;;
10007   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10008     # GNU and its variants, using gnu ld.so (Glibc)
10009     libltdl_cv_sys_dlopen_deplibs=yes
10010     ;;
10011   hpux10*|hpux11*)
10012     libltdl_cv_sys_dlopen_deplibs=yes
10013     ;;
10014   interix*)
10015     libltdl_cv_sys_dlopen_deplibs=yes
10016     ;;
10017   irix[12345]*|irix6.[01]*)
10018     # Catch all versions of IRIX before 6.2, and indicate that we don't
10019     # know how it worked for any of those versions.
10020     libltdl_cv_sys_dlopen_deplibs=unknown
10021     ;;
10022   irix*)
10023     # The case above catches anything before 6.2, and it's known that
10024     # at 6.2 and later dlopen does load deplibs.
10025     libltdl_cv_sys_dlopen_deplibs=yes
10026     ;;
10027   netbsd*)
10028     libltdl_cv_sys_dlopen_deplibs=yes
10029     ;;
10030   openbsd*)
10031     libltdl_cv_sys_dlopen_deplibs=yes
10032     ;;
10033   osf[1234]*)
10034     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10035     # it did *not* use an RPATH in a shared library to find objects the
10036     # library depends on, so we explictly say `no'.
10037     libltdl_cv_sys_dlopen_deplibs=no
10038     ;;
10039   osf5.0|osf5.0a|osf5.1)
10040     # dlopen *does* load deplibs and with the right loader patch applied
10041     # it even uses RPATH in a shared library to search for shared objects
10042     # that the library depends on, but there's no easy way to know if that
10043     # patch is installed.  Since this is the case, all we can really
10044     # say is unknown -- it depends on the patch being installed.  If
10045     # it is, this changes to `yes'.  Without it, it would be `no'.
10046     libltdl_cv_sys_dlopen_deplibs=unknown
10047     ;;
10048   osf*)
10049     # the two cases above should catch all versions of osf <= 5.1.  Read
10050     # the comments above for what we know about them.
10051     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10052     # is used to find them so we can finally say `yes'.
10053     libltdl_cv_sys_dlopen_deplibs=yes
10054     ;;
10055   solaris*)
10056     libltdl_cv_sys_dlopen_deplibs=yes
10057     ;;
10058   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10059     libltdl_cv_sys_dlopen_deplibs=yes
10060     ;;
10061   esac
10062
10063 fi
10064 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10065 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10066 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10067
10068 cat >>confdefs.h <<\_ACEOF
10069 #define LTDL_DLOPEN_DEPLIBS 1
10070 _ACEOF
10071
10072 fi
10073
10074
10075 for ac_header in argz.h
10076 do
10077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10079   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10082   echo $ECHO_N "(cached) $ECHO_C" >&6
10083 fi
10084 ac_res=`eval echo '${'$as_ac_Header'}'`
10085                { echo "$as_me:$LINENO: result: $ac_res" >&5
10086 echo "${ECHO_T}$ac_res" >&6; }
10087 else
10088   # Is the header compilable?
10089 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10091 cat >conftest.$ac_ext <<_ACEOF
10092 /* confdefs.h.  */
10093 _ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h.  */
10097 $ac_includes_default
10098 #include <$ac_header>
10099 _ACEOF
10100 rm -f conftest.$ac_objext
10101 if { (ac_try="$ac_compile"
10102 case "(($ac_try" in
10103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104   *) ac_try_echo=$ac_try;;
10105 esac
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107   (eval "$ac_compile") 2>conftest.er1
10108   ac_status=$?
10109   grep -v '^ *+' conftest.er1 >conftest.err
10110   rm -f conftest.er1
10111   cat conftest.err >&5
10112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113   (exit $ac_status); } && {
10114          test -z "$ac_c_werror_flag" ||
10115          test ! -s conftest.err
10116        } && test -s conftest.$ac_objext; then
10117   ac_header_compiler=yes
10118 else
10119   echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10121
10122         ac_header_compiler=no
10123 fi
10124
10125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10127 echo "${ECHO_T}$ac_header_compiler" >&6; }
10128
10129 # Is the header present?
10130 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10132 cat >conftest.$ac_ext <<_ACEOF
10133 /* confdefs.h.  */
10134 _ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h.  */
10138 #include <$ac_header>
10139 _ACEOF
10140 if { (ac_try="$ac_cpp conftest.$ac_ext"
10141 case "(($ac_try" in
10142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143   *) ac_try_echo=$ac_try;;
10144 esac
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10147   ac_status=$?
10148   grep -v '^ *+' conftest.er1 >conftest.err
10149   rm -f conftest.er1
10150   cat conftest.err >&5
10151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152   (exit $ac_status); } >/dev/null && {
10153          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10154          test ! -s conftest.err
10155        }; then
10156   ac_header_preproc=yes
10157 else
10158   echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10160
10161   ac_header_preproc=no
10162 fi
10163
10164 rm -f conftest.err conftest.$ac_ext
10165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10166 echo "${ECHO_T}$ac_header_preproc" >&6; }
10167
10168 # So?  What about this header?
10169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10170   yes:no: )
10171     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10175     ac_header_preproc=yes
10176     ;;
10177   no:yes:* )
10178     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10180     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10181 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10182     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10184     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10185 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10188     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10190     ( cat <<\_ASBOX
10191 ## ----------------------------------- ##
10192 ## Report this to llvmbugs@cs.uiuc.edu ##
10193 ## ----------------------------------- ##
10194 _ASBOX
10195      ) | sed "s/^/$as_me: WARNING:     /" >&2
10196     ;;
10197 esac
10198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10201   echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203   eval "$as_ac_Header=\$ac_header_preproc"
10204 fi
10205 ac_res=`eval echo '${'$as_ac_Header'}'`
10206                { echo "$as_me:$LINENO: result: $ac_res" >&5
10207 echo "${ECHO_T}$ac_res" >&6; }
10208
10209 fi
10210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10211   cat >>confdefs.h <<_ACEOF
10212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10213 _ACEOF
10214
10215 fi
10216
10217 done
10218
10219
10220 { echo "$as_me:$LINENO: checking for error_t" >&5
10221 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10222 if test "${ac_cv_type_error_t+set}" = set; then
10223   echo $ECHO_N "(cached) $ECHO_C" >&6
10224 else
10225   cat >conftest.$ac_ext <<_ACEOF
10226 /* confdefs.h.  */
10227 _ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h.  */
10231 #if HAVE_ARGZ_H
10232 #  include <argz.h>
10233 #endif
10234
10235 typedef error_t ac__type_new_;
10236 int
10237 main ()
10238 {
10239 if ((ac__type_new_ *) 0)
10240   return 0;
10241 if (sizeof (ac__type_new_))
10242   return 0;
10243   ;
10244   return 0;
10245 }
10246 _ACEOF
10247 rm -f conftest.$ac_objext
10248 if { (ac_try="$ac_compile"
10249 case "(($ac_try" in
10250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251   *) ac_try_echo=$ac_try;;
10252 esac
10253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254   (eval "$ac_compile") 2>conftest.er1
10255   ac_status=$?
10256   grep -v '^ *+' conftest.er1 >conftest.err
10257   rm -f conftest.er1
10258   cat conftest.err >&5
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); } && {
10261          test -z "$ac_c_werror_flag" ||
10262          test ! -s conftest.err
10263        } && test -s conftest.$ac_objext; then
10264   ac_cv_type_error_t=yes
10265 else
10266   echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10268
10269         ac_cv_type_error_t=no
10270 fi
10271
10272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10273 fi
10274 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10275 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10276 if test $ac_cv_type_error_t = yes; then
10277
10278 cat >>confdefs.h <<_ACEOF
10279 #define HAVE_ERROR_T 1
10280 _ACEOF
10281
10282
10283 else
10284
10285 cat >>confdefs.h <<\_ACEOF
10286 #define error_t int
10287 _ACEOF
10288
10289 fi
10290
10291
10292
10293
10294
10295
10296
10297 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10298 do
10299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10303   echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305   cat >conftest.$ac_ext <<_ACEOF
10306 /* confdefs.h.  */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h.  */
10311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10313 #define $ac_func innocuous_$ac_func
10314
10315 /* System header to define __stub macros and hopefully few prototypes,
10316     which can conflict with char $ac_func (); below.
10317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10318     <limits.h> exists even on freestanding compilers.  */
10319
10320 #ifdef __STDC__
10321 # include <limits.h>
10322 #else
10323 # include <assert.h>
10324 #endif
10325
10326 #undef $ac_func
10327
10328 /* Override any GCC internal prototype to avoid an error.
10329    Use char because int might match the return type of a GCC
10330    builtin and then its argument prototype would still apply.  */
10331 #ifdef __cplusplus
10332 extern "C"
10333 #endif
10334 char $ac_func ();
10335 /* The GNU C library defines this for functions which it implements
10336     to always fail with ENOSYS.  Some functions are actually named
10337     something starting with __ and the normal name is an alias.  */
10338 #if defined __stub_$ac_func || defined __stub___$ac_func
10339 choke me
10340 #endif
10341
10342 int
10343 main ()
10344 {
10345 return $ac_func ();
10346   ;
10347   return 0;
10348 }
10349 _ACEOF
10350 rm -f conftest.$ac_objext conftest$ac_exeext
10351 if { (ac_try="$ac_link"
10352 case "(($ac_try" in
10353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354   *) ac_try_echo=$ac_try;;
10355 esac
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357   (eval "$ac_link") 2>conftest.er1
10358   ac_status=$?
10359   grep -v '^ *+' conftest.er1 >conftest.err
10360   rm -f conftest.er1
10361   cat conftest.err >&5
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); } && {
10364          test -z "$ac_c_werror_flag" ||
10365          test ! -s conftest.err
10366        } && test -s conftest$ac_exeext &&
10367        $as_test_x conftest$ac_exeext; then
10368   eval "$as_ac_var=yes"
10369 else
10370   echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10372
10373         eval "$as_ac_var=no"
10374 fi
10375
10376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10377       conftest$ac_exeext conftest.$ac_ext
10378 fi
10379 ac_res=`eval echo '${'$as_ac_var'}'`
10380                { echo "$as_me:$LINENO: result: $ac_res" >&5
10381 echo "${ECHO_T}$ac_res" >&6; }
10382 if test `eval echo '${'$as_ac_var'}'` = yes; then
10383   cat >>confdefs.h <<_ACEOF
10384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10385 _ACEOF
10386
10387 fi
10388 done
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10418                   stdio.h unistd.h
10419 do
10420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10422   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10425   echo $ECHO_N "(cached) $ECHO_C" >&6
10426 fi
10427 ac_res=`eval echo '${'$as_ac_Header'}'`
10428                { echo "$as_me:$LINENO: result: $ac_res" >&5
10429 echo "${ECHO_T}$ac_res" >&6; }
10430 else
10431   # Is the header compilable?
10432 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10434 cat >conftest.$ac_ext <<_ACEOF
10435 /* confdefs.h.  */
10436 _ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h.  */
10440 $ac_includes_default
10441 #include <$ac_header>
10442 _ACEOF
10443 rm -f conftest.$ac_objext
10444 if { (ac_try="$ac_compile"
10445 case "(($ac_try" in
10446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447   *) ac_try_echo=$ac_try;;
10448 esac
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450   (eval "$ac_compile") 2>conftest.er1
10451   ac_status=$?
10452   grep -v '^ *+' conftest.er1 >conftest.err
10453   rm -f conftest.er1
10454   cat conftest.err >&5
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); } && {
10457          test -z "$ac_c_werror_flag" ||
10458          test ! -s conftest.err
10459        } && test -s conftest.$ac_objext; then
10460   ac_header_compiler=yes
10461 else
10462   echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10464
10465         ac_header_compiler=no
10466 fi
10467
10468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10470 echo "${ECHO_T}$ac_header_compiler" >&6; }
10471
10472 # Is the header present?
10473 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10475 cat >conftest.$ac_ext <<_ACEOF
10476 /* confdefs.h.  */
10477 _ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h.  */
10481 #include <$ac_header>
10482 _ACEOF
10483 if { (ac_try="$ac_cpp conftest.$ac_ext"
10484 case "(($ac_try" in
10485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10486   *) ac_try_echo=$ac_try;;
10487 esac
10488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10490   ac_status=$?
10491   grep -v '^ *+' conftest.er1 >conftest.err
10492   rm -f conftest.er1
10493   cat conftest.err >&5
10494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495   (exit $ac_status); } >/dev/null && {
10496          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10497          test ! -s conftest.err
10498        }; then
10499   ac_header_preproc=yes
10500 else
10501   echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10503
10504   ac_header_preproc=no
10505 fi
10506
10507 rm -f conftest.err conftest.$ac_ext
10508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10509 echo "${ECHO_T}$ac_header_preproc" >&6; }
10510
10511 # So?  What about this header?
10512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10513   yes:no: )
10514     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10518     ac_header_preproc=yes
10519     ;;
10520   no:yes:* )
10521     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10523     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10524 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10525     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10527     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10528 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10531     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10533     ( cat <<\_ASBOX
10534 ## ----------------------------------- ##
10535 ## Report this to llvmbugs@cs.uiuc.edu ##
10536 ## ----------------------------------- ##
10537 _ASBOX
10538      ) | sed "s/^/$as_me: WARNING:     /" >&2
10539     ;;
10540 esac
10541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10544   echo $ECHO_N "(cached) $ECHO_C" >&6
10545 else
10546   eval "$as_ac_Header=\$ac_header_preproc"
10547 fi
10548 ac_res=`eval echo '${'$as_ac_Header'}'`
10549                { echo "$as_me:$LINENO: result: $ac_res" >&5
10550 echo "${ECHO_T}$ac_res" >&6; }
10551
10552 fi
10553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10554   cat >>confdefs.h <<_ACEOF
10555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10556 _ACEOF
10557
10558 fi
10559
10560 done
10561
10562
10563
10564
10565
10566 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10567 do
10568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10570   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10573   echo $ECHO_N "(cached) $ECHO_C" >&6
10574 fi
10575 ac_res=`eval echo '${'$as_ac_Header'}'`
10576                { echo "$as_me:$LINENO: result: $ac_res" >&5
10577 echo "${ECHO_T}$ac_res" >&6; }
10578 else
10579   # Is the header compilable?
10580 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10582 cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h.  */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h.  */
10588 $ac_includes_default
10589 #include <$ac_header>
10590 _ACEOF
10591 rm -f conftest.$ac_objext
10592 if { (ac_try="$ac_compile"
10593 case "(($ac_try" in
10594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595   *) ac_try_echo=$ac_try;;
10596 esac
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598   (eval "$ac_compile") 2>conftest.er1
10599   ac_status=$?
10600   grep -v '^ *+' conftest.er1 >conftest.err
10601   rm -f conftest.er1
10602   cat conftest.err >&5
10603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604   (exit $ac_status); } && {
10605          test -z "$ac_c_werror_flag" ||
10606          test ! -s conftest.err
10607        } && test -s conftest.$ac_objext; then
10608   ac_header_compiler=yes
10609 else
10610   echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10612
10613         ac_header_compiler=no
10614 fi
10615
10616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10618 echo "${ECHO_T}$ac_header_compiler" >&6; }
10619
10620 # Is the header present?
10621 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10623 cat >conftest.$ac_ext <<_ACEOF
10624 /* confdefs.h.  */
10625 _ACEOF
10626 cat confdefs.h >>conftest.$ac_ext
10627 cat >>conftest.$ac_ext <<_ACEOF
10628 /* end confdefs.h.  */
10629 #include <$ac_header>
10630 _ACEOF
10631 if { (ac_try="$ac_cpp conftest.$ac_ext"
10632 case "(($ac_try" in
10633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634   *) ac_try_echo=$ac_try;;
10635 esac
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10638   ac_status=$?
10639   grep -v '^ *+' conftest.er1 >conftest.err
10640   rm -f conftest.er1
10641   cat conftest.err >&5
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); } >/dev/null && {
10644          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10645          test ! -s conftest.err
10646        }; then
10647   ac_header_preproc=yes
10648 else
10649   echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10651
10652   ac_header_preproc=no
10653 fi
10654
10655 rm -f conftest.err conftest.$ac_ext
10656 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10657 echo "${ECHO_T}$ac_header_preproc" >&6; }
10658
10659 # So?  What about this header?
10660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10661   yes:no: )
10662     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10666     ac_header_preproc=yes
10667     ;;
10668   no:yes:* )
10669     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10671     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10672 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10673     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10674 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10675     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10676 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10677     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10679     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10680 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10681     ( cat <<\_ASBOX
10682 ## ----------------------------------- ##
10683 ## Report this to llvmbugs@cs.uiuc.edu ##
10684 ## ----------------------------------- ##
10685 _ASBOX
10686      ) | sed "s/^/$as_me: WARNING:     /" >&2
10687     ;;
10688 esac
10689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10692   echo $ECHO_N "(cached) $ECHO_C" >&6
10693 else
10694   eval "$as_ac_Header=\$ac_header_preproc"
10695 fi
10696 ac_res=`eval echo '${'$as_ac_Header'}'`
10697                { echo "$as_me:$LINENO: result: $ac_res" >&5
10698 echo "${ECHO_T}$ac_res" >&6; }
10699
10700 fi
10701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10702   cat >>confdefs.h <<_ACEOF
10703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10704 _ACEOF
10705
10706 fi
10707
10708 done
10709
10710
10711
10712 for ac_header in string.h strings.h
10713 do
10714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10716   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10719   echo $ECHO_N "(cached) $ECHO_C" >&6
10720 fi
10721 ac_res=`eval echo '${'$as_ac_Header'}'`
10722                { echo "$as_me:$LINENO: result: $ac_res" >&5
10723 echo "${ECHO_T}$ac_res" >&6; }
10724 else
10725   # Is the header compilable?
10726 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10728 cat >conftest.$ac_ext <<_ACEOF
10729 /* confdefs.h.  */
10730 _ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h.  */
10734 $ac_includes_default
10735 #include <$ac_header>
10736 _ACEOF
10737 rm -f conftest.$ac_objext
10738 if { (ac_try="$ac_compile"
10739 case "(($ac_try" in
10740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741   *) ac_try_echo=$ac_try;;
10742 esac
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744   (eval "$ac_compile") 2>conftest.er1
10745   ac_status=$?
10746   grep -v '^ *+' conftest.er1 >conftest.err
10747   rm -f conftest.er1
10748   cat conftest.err >&5
10749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); } && {
10751          test -z "$ac_c_werror_flag" ||
10752          test ! -s conftest.err
10753        } && test -s conftest.$ac_objext; then
10754   ac_header_compiler=yes
10755 else
10756   echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10758
10759         ac_header_compiler=no
10760 fi
10761
10762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10764 echo "${ECHO_T}$ac_header_compiler" >&6; }
10765
10766 # Is the header present?
10767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10769 cat >conftest.$ac_ext <<_ACEOF
10770 /* confdefs.h.  */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h.  */
10775 #include <$ac_header>
10776 _ACEOF
10777 if { (ac_try="$ac_cpp conftest.$ac_ext"
10778 case "(($ac_try" in
10779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780   *) ac_try_echo=$ac_try;;
10781 esac
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10784   ac_status=$?
10785   grep -v '^ *+' conftest.er1 >conftest.err
10786   rm -f conftest.er1
10787   cat conftest.err >&5
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); } >/dev/null && {
10790          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10791          test ! -s conftest.err
10792        }; then
10793   ac_header_preproc=yes
10794 else
10795   echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10797
10798   ac_header_preproc=no
10799 fi
10800
10801 rm -f conftest.err conftest.$ac_ext
10802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10803 echo "${ECHO_T}$ac_header_preproc" >&6; }
10804
10805 # So?  What about this header?
10806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10807   yes:no: )
10808     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10812     ac_header_preproc=yes
10813     ;;
10814   no:yes:* )
10815     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10817     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10818 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10819     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10821     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10822 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10825     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10827     ( cat <<\_ASBOX
10828 ## ----------------------------------- ##
10829 ## Report this to llvmbugs@cs.uiuc.edu ##
10830 ## ----------------------------------- ##
10831 _ASBOX
10832      ) | sed "s/^/$as_me: WARNING:     /" >&2
10833     ;;
10834 esac
10835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10838   echo $ECHO_N "(cached) $ECHO_C" >&6
10839 else
10840   eval "$as_ac_Header=\$ac_header_preproc"
10841 fi
10842 ac_res=`eval echo '${'$as_ac_Header'}'`
10843                { echo "$as_me:$LINENO: result: $ac_res" >&5
10844 echo "${ECHO_T}$ac_res" >&6; }
10845
10846 fi
10847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10848   cat >>confdefs.h <<_ACEOF
10849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10850 _ACEOF
10851  break
10852 fi
10853
10854 done
10855
10856
10857
10858
10859 for ac_func in strchr index
10860 do
10861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10865   echo $ECHO_N "(cached) $ECHO_C" >&6
10866 else
10867   cat >conftest.$ac_ext <<_ACEOF
10868 /* confdefs.h.  */
10869 _ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h.  */
10873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10875 #define $ac_func innocuous_$ac_func
10876
10877 /* System header to define __stub macros and hopefully few prototypes,
10878     which can conflict with char $ac_func (); below.
10879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10880     <limits.h> exists even on freestanding compilers.  */
10881
10882 #ifdef __STDC__
10883 # include <limits.h>
10884 #else
10885 # include <assert.h>
10886 #endif
10887
10888 #undef $ac_func
10889
10890 /* Override any GCC internal prototype to avoid an error.
10891    Use char because int might match the return type of a GCC
10892    builtin and then its argument prototype would still apply.  */
10893 #ifdef __cplusplus
10894 extern "C"
10895 #endif
10896 char $ac_func ();
10897 /* The GNU C library defines this for functions which it implements
10898     to always fail with ENOSYS.  Some functions are actually named
10899     something starting with __ and the normal name is an alias.  */
10900 #if defined __stub_$ac_func || defined __stub___$ac_func
10901 choke me
10902 #endif
10903
10904 int
10905 main ()
10906 {
10907 return $ac_func ();
10908   ;
10909   return 0;
10910 }
10911 _ACEOF
10912 rm -f conftest.$ac_objext conftest$ac_exeext
10913 if { (ac_try="$ac_link"
10914 case "(($ac_try" in
10915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916   *) ac_try_echo=$ac_try;;
10917 esac
10918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10919   (eval "$ac_link") 2>conftest.er1
10920   ac_status=$?
10921   grep -v '^ *+' conftest.er1 >conftest.err
10922   rm -f conftest.er1
10923   cat conftest.err >&5
10924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925   (exit $ac_status); } && {
10926          test -z "$ac_c_werror_flag" ||
10927          test ! -s conftest.err
10928        } && test -s conftest$ac_exeext &&
10929        $as_test_x conftest$ac_exeext; then
10930   eval "$as_ac_var=yes"
10931 else
10932   echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10934
10935         eval "$as_ac_var=no"
10936 fi
10937
10938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10939       conftest$ac_exeext conftest.$ac_ext
10940 fi
10941 ac_res=`eval echo '${'$as_ac_var'}'`
10942                { echo "$as_me:$LINENO: result: $ac_res" >&5
10943 echo "${ECHO_T}$ac_res" >&6; }
10944 if test `eval echo '${'$as_ac_var'}'` = yes; then
10945   cat >>confdefs.h <<_ACEOF
10946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10947 _ACEOF
10948  break
10949 fi
10950 done
10951
10952
10953
10954 for ac_func in strrchr rindex
10955 do
10956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10960   echo $ECHO_N "(cached) $ECHO_C" >&6
10961 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10970 #define $ac_func innocuous_$ac_func
10971
10972 /* System header to define __stub macros and hopefully few prototypes,
10973     which can conflict with char $ac_func (); below.
10974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10975     <limits.h> exists even on freestanding compilers.  */
10976
10977 #ifdef __STDC__
10978 # include <limits.h>
10979 #else
10980 # include <assert.h>
10981 #endif
10982
10983 #undef $ac_func
10984
10985 /* Override any GCC internal prototype to avoid an error.
10986    Use char because int might match the return type of a GCC
10987    builtin and then its argument prototype would still apply.  */
10988 #ifdef __cplusplus
10989 extern "C"
10990 #endif
10991 char $ac_func ();
10992 /* The GNU C library defines this for functions which it implements
10993     to always fail with ENOSYS.  Some functions are actually named
10994     something starting with __ and the normal name is an alias.  */
10995 #if defined __stub_$ac_func || defined __stub___$ac_func
10996 choke me
10997 #endif
10998
10999 int
11000 main ()
11001 {
11002 return $ac_func ();
11003   ;
11004   return 0;
11005 }
11006 _ACEOF
11007 rm -f conftest.$ac_objext conftest$ac_exeext
11008 if { (ac_try="$ac_link"
11009 case "(($ac_try" in
11010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011   *) ac_try_echo=$ac_try;;
11012 esac
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014   (eval "$ac_link") 2>conftest.er1
11015   ac_status=$?
11016   grep -v '^ *+' conftest.er1 >conftest.err
11017   rm -f conftest.er1
11018   cat conftest.err >&5
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); } && {
11021          test -z "$ac_c_werror_flag" ||
11022          test ! -s conftest.err
11023        } && test -s conftest$ac_exeext &&
11024        $as_test_x conftest$ac_exeext; then
11025   eval "$as_ac_var=yes"
11026 else
11027   echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11029
11030         eval "$as_ac_var=no"
11031 fi
11032
11033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11034       conftest$ac_exeext conftest.$ac_ext
11035 fi
11036 ac_res=`eval echo '${'$as_ac_var'}'`
11037                { echo "$as_me:$LINENO: result: $ac_res" >&5
11038 echo "${ECHO_T}$ac_res" >&6; }
11039 if test `eval echo '${'$as_ac_var'}'` = yes; then
11040   cat >>confdefs.h <<_ACEOF
11041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11042 _ACEOF
11043  break
11044 fi
11045 done
11046
11047
11048
11049 for ac_func in memcpy bcopy
11050 do
11051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11055   echo $ECHO_N "(cached) $ECHO_C" >&6
11056 else
11057   cat >conftest.$ac_ext <<_ACEOF
11058 /* confdefs.h.  */
11059 _ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h.  */
11063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11065 #define $ac_func innocuous_$ac_func
11066
11067 /* System header to define __stub macros and hopefully few prototypes,
11068     which can conflict with char $ac_func (); below.
11069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11070     <limits.h> exists even on freestanding compilers.  */
11071
11072 #ifdef __STDC__
11073 # include <limits.h>
11074 #else
11075 # include <assert.h>
11076 #endif
11077
11078 #undef $ac_func
11079
11080 /* Override any GCC internal prototype to avoid an error.
11081    Use char because int might match the return type of a GCC
11082    builtin and then its argument prototype would still apply.  */
11083 #ifdef __cplusplus
11084 extern "C"
11085 #endif
11086 char $ac_func ();
11087 /* The GNU C library defines this for functions which it implements
11088     to always fail with ENOSYS.  Some functions are actually named
11089     something starting with __ and the normal name is an alias.  */
11090 #if defined __stub_$ac_func || defined __stub___$ac_func
11091 choke me
11092 #endif
11093
11094 int
11095 main ()
11096 {
11097 return $ac_func ();
11098   ;
11099   return 0;
11100 }
11101 _ACEOF
11102 rm -f conftest.$ac_objext conftest$ac_exeext
11103 if { (ac_try="$ac_link"
11104 case "(($ac_try" in
11105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106   *) ac_try_echo=$ac_try;;
11107 esac
11108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109   (eval "$ac_link") 2>conftest.er1
11110   ac_status=$?
11111   grep -v '^ *+' conftest.er1 >conftest.err
11112   rm -f conftest.er1
11113   cat conftest.err >&5
11114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115   (exit $ac_status); } && {
11116          test -z "$ac_c_werror_flag" ||
11117          test ! -s conftest.err
11118        } && test -s conftest$ac_exeext &&
11119        $as_test_x conftest$ac_exeext; then
11120   eval "$as_ac_var=yes"
11121 else
11122   echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.$ac_ext >&5
11124
11125         eval "$as_ac_var=no"
11126 fi
11127
11128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11129       conftest$ac_exeext conftest.$ac_ext
11130 fi
11131 ac_res=`eval echo '${'$as_ac_var'}'`
11132                { echo "$as_me:$LINENO: result: $ac_res" >&5
11133 echo "${ECHO_T}$ac_res" >&6; }
11134 if test `eval echo '${'$as_ac_var'}'` = yes; then
11135   cat >>confdefs.h <<_ACEOF
11136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11137 _ACEOF
11138  break
11139 fi
11140 done
11141
11142
11143
11144 for ac_func in memmove strcmp
11145 do
11146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11150   echo $ECHO_N "(cached) $ECHO_C" >&6
11151 else
11152   cat >conftest.$ac_ext <<_ACEOF
11153 /* confdefs.h.  */
11154 _ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h.  */
11158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11160 #define $ac_func innocuous_$ac_func
11161
11162 /* System header to define __stub macros and hopefully few prototypes,
11163     which can conflict with char $ac_func (); below.
11164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11165     <limits.h> exists even on freestanding compilers.  */
11166
11167 #ifdef __STDC__
11168 # include <limits.h>
11169 #else
11170 # include <assert.h>
11171 #endif
11172
11173 #undef $ac_func
11174
11175 /* Override any GCC internal prototype to avoid an error.
11176    Use char because int might match the return type of a GCC
11177    builtin and then its argument prototype would still apply.  */
11178 #ifdef __cplusplus
11179 extern "C"
11180 #endif
11181 char $ac_func ();
11182 /* The GNU C library defines this for functions which it implements
11183     to always fail with ENOSYS.  Some functions are actually named
11184     something starting with __ and the normal name is an alias.  */
11185 #if defined __stub_$ac_func || defined __stub___$ac_func
11186 choke me
11187 #endif
11188
11189 int
11190 main ()
11191 {
11192 return $ac_func ();
11193   ;
11194   return 0;
11195 }
11196 _ACEOF
11197 rm -f conftest.$ac_objext conftest$ac_exeext
11198 if { (ac_try="$ac_link"
11199 case "(($ac_try" in
11200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201   *) ac_try_echo=$ac_try;;
11202 esac
11203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204   (eval "$ac_link") 2>conftest.er1
11205   ac_status=$?
11206   grep -v '^ *+' conftest.er1 >conftest.err
11207   rm -f conftest.er1
11208   cat conftest.err >&5
11209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210   (exit $ac_status); } && {
11211          test -z "$ac_c_werror_flag" ||
11212          test ! -s conftest.err
11213        } && test -s conftest$ac_exeext &&
11214        $as_test_x conftest$ac_exeext; then
11215   eval "$as_ac_var=yes"
11216 else
11217   echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11219
11220         eval "$as_ac_var=no"
11221 fi
11222
11223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11224       conftest$ac_exeext conftest.$ac_ext
11225 fi
11226 ac_res=`eval echo '${'$as_ac_var'}'`
11227                { echo "$as_me:$LINENO: result: $ac_res" >&5
11228 echo "${ECHO_T}$ac_res" >&6; }
11229 if test `eval echo '${'$as_ac_var'}'` = yes; then
11230   cat >>confdefs.h <<_ACEOF
11231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11232 _ACEOF
11233
11234 fi
11235 done
11236
11237
11238
11239
11240 for ac_func in closedir opendir readdir
11241 do
11242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11246   echo $ECHO_N "(cached) $ECHO_C" >&6
11247 else
11248   cat >conftest.$ac_ext <<_ACEOF
11249 /* confdefs.h.  */
11250 _ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h.  */
11254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11256 #define $ac_func innocuous_$ac_func
11257
11258 /* System header to define __stub macros and hopefully few prototypes,
11259     which can conflict with char $ac_func (); below.
11260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11261     <limits.h> exists even on freestanding compilers.  */
11262
11263 #ifdef __STDC__
11264 # include <limits.h>
11265 #else
11266 # include <assert.h>
11267 #endif
11268
11269 #undef $ac_func
11270
11271 /* Override any GCC internal prototype to avoid an error.
11272    Use char because int might match the return type of a GCC
11273    builtin and then its argument prototype would still apply.  */
11274 #ifdef __cplusplus
11275 extern "C"
11276 #endif
11277 char $ac_func ();
11278 /* The GNU C library defines this for functions which it implements
11279     to always fail with ENOSYS.  Some functions are actually named
11280     something starting with __ and the normal name is an alias.  */
11281 #if defined __stub_$ac_func || defined __stub___$ac_func
11282 choke me
11283 #endif
11284
11285 int
11286 main ()
11287 {
11288 return $ac_func ();
11289   ;
11290   return 0;
11291 }
11292 _ACEOF
11293 rm -f conftest.$ac_objext conftest$ac_exeext
11294 if { (ac_try="$ac_link"
11295 case "(($ac_try" in
11296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297   *) ac_try_echo=$ac_try;;
11298 esac
11299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300   (eval "$ac_link") 2>conftest.er1
11301   ac_status=$?
11302   grep -v '^ *+' conftest.er1 >conftest.err
11303   rm -f conftest.er1
11304   cat conftest.err >&5
11305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306   (exit $ac_status); } && {
11307          test -z "$ac_c_werror_flag" ||
11308          test ! -s conftest.err
11309        } && test -s conftest$ac_exeext &&
11310        $as_test_x conftest$ac_exeext; then
11311   eval "$as_ac_var=yes"
11312 else
11313   echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11315
11316         eval "$as_ac_var=no"
11317 fi
11318
11319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11320       conftest$ac_exeext conftest.$ac_ext
11321 fi
11322 ac_res=`eval echo '${'$as_ac_var'}'`
11323                { echo "$as_me:$LINENO: result: $ac_res" >&5
11324 echo "${ECHO_T}$ac_res" >&6; }
11325 if test `eval echo '${'$as_ac_var'}'` = yes; then
11326   cat >>confdefs.h <<_ACEOF
11327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11328 _ACEOF
11329
11330 fi
11331 done
11332
11333
11334 # Check whether --enable-shared was given.
11335 if test "${enable_shared+set}" = set; then
11336   enableval=$enable_shared; p=${PACKAGE-default}
11337     case $enableval in
11338     yes) enable_shared=yes ;;
11339     no) enable_shared=no ;;
11340     *)
11341       enable_shared=no
11342       # Look at the argument we got.  We use all the common list separators.
11343       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11344       for pkg in $enableval; do
11345         IFS="$lt_save_ifs"
11346         if test "X$pkg" = "X$p"; then
11347           enable_shared=yes
11348         fi
11349       done
11350       IFS="$lt_save_ifs"
11351       ;;
11352     esac
11353 else
11354   enable_shared=yes
11355 fi
11356
11357
11358 # Check whether --enable-static was given.
11359 if test "${enable_static+set}" = set; then
11360   enableval=$enable_static; p=${PACKAGE-default}
11361     case $enableval in
11362     yes) enable_static=yes ;;
11363     no) enable_static=no ;;
11364     *)
11365      enable_static=no
11366       # Look at the argument we got.  We use all the common list separators.
11367       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11368       for pkg in $enableval; do
11369         IFS="$lt_save_ifs"
11370         if test "X$pkg" = "X$p"; then
11371           enable_static=yes
11372         fi
11373       done
11374       IFS="$lt_save_ifs"
11375       ;;
11376     esac
11377 else
11378   enable_static=yes
11379 fi
11380
11381
11382 # Check whether --enable-fast-install was given.
11383 if test "${enable_fast_install+set}" = set; then
11384   enableval=$enable_fast_install; p=${PACKAGE-default}
11385     case $enableval in
11386     yes) enable_fast_install=yes ;;
11387     no) enable_fast_install=no ;;
11388     *)
11389       enable_fast_install=no
11390       # Look at the argument we got.  We use all the common list separators.
11391       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11392       for pkg in $enableval; do
11393         IFS="$lt_save_ifs"
11394         if test "X$pkg" = "X$p"; then
11395           enable_fast_install=yes
11396         fi
11397       done
11398       IFS="$lt_save_ifs"
11399       ;;
11400     esac
11401 else
11402   enable_fast_install=yes
11403 fi
11404
11405
11406 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11407 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
11408 if test "${lt_cv_path_SED+set}" = set; then
11409   echo $ECHO_N "(cached) $ECHO_C" >&6
11410 else
11411   # Loop through the user's path and test for sed and gsed.
11412 # Then use that list of sed's as ones to test for truncation.
11413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11414 for as_dir in $PATH
11415 do
11416   IFS=$as_save_IFS
11417   test -z "$as_dir" && as_dir=.
11418   for lt_ac_prog in sed gsed; do
11419     for ac_exec_ext in '' $ac_executable_extensions; do
11420       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11421         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11422       fi
11423     done
11424   done
11425 done
11426 lt_ac_max=0
11427 lt_ac_count=0
11428 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11429 # along with /bin/sed that truncates output.
11430 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11431   test ! -f $lt_ac_sed && continue
11432   cat /dev/null > conftest.in
11433   lt_ac_count=0
11434   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11435   # Check for GNU sed and select it if it is found.
11436   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11437     lt_cv_path_SED=$lt_ac_sed
11438     break
11439   fi
11440   while true; do
11441     cat conftest.in conftest.in >conftest.tmp
11442     mv conftest.tmp conftest.in
11443     cp conftest.in conftest.nl
11444     echo >>conftest.nl
11445     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11446     cmp -s conftest.out conftest.nl || break
11447     # 10000 chars as input seems more than enough
11448     test $lt_ac_count -gt 10 && break
11449     lt_ac_count=`expr $lt_ac_count + 1`
11450     if test $lt_ac_count -gt $lt_ac_max; then
11451       lt_ac_max=$lt_ac_count
11452       lt_cv_path_SED=$lt_ac_sed
11453     fi
11454   done
11455 done
11456
11457 fi
11458
11459 SED=$lt_cv_path_SED
11460 { echo "$as_me:$LINENO: result: $SED" >&5
11461 echo "${ECHO_T}$SED" >&6; }
11462
11463
11464 # Check whether --with-gnu-ld was given.
11465 if test "${with_gnu_ld+set}" = set; then
11466   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11467 else
11468   with_gnu_ld=no
11469 fi
11470
11471 ac_prog=ld
11472 if test "$GCC" = yes; then
11473   # Check if gcc -print-prog-name=ld gives a path.
11474   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11475 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11476   case $host in
11477   *-*-mingw*)
11478     # gcc leaves a trailing carriage return which upsets mingw
11479     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11480   *)
11481     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11482   esac
11483   case $ac_prog in
11484     # Accept absolute paths.
11485     [\\/]* | ?:[\\/]*)
11486       re_direlt='/[^/][^/]*/\.\./'
11487       # Canonicalize the pathname of ld
11488       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11489       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11490         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11491       done
11492       test -z "$LD" && LD="$ac_prog"
11493       ;;
11494   "")
11495     # If it fails, then pretend we aren't using GCC.
11496     ac_prog=ld
11497     ;;
11498   *)
11499     # If it is relative, then search for the first ld in PATH.
11500     with_gnu_ld=unknown
11501     ;;
11502   esac
11503 elif test "$with_gnu_ld" = yes; then
11504   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11505 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11506 else
11507   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11508 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11509 fi
11510 if test "${lt_cv_path_LD+set}" = set; then
11511   echo $ECHO_N "(cached) $ECHO_C" >&6
11512 else
11513   if test -z "$LD"; then
11514   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11515   for ac_dir in $PATH; do
11516     IFS="$lt_save_ifs"
11517     test -z "$ac_dir" && ac_dir=.
11518     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11519       lt_cv_path_LD="$ac_dir/$ac_prog"
11520       # Check to see if the program is GNU ld.  I'd rather use --version,
11521       # but apparently some variants of GNU ld only accept -v.
11522       # Break only if it was the GNU/non-GNU ld that we prefer.
11523       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11524       *GNU* | *'with BFD'*)
11525         test "$with_gnu_ld" != no && break
11526         ;;
11527       *)
11528         test "$with_gnu_ld" != yes && break
11529         ;;
11530       esac
11531     fi
11532   done
11533   IFS="$lt_save_ifs"
11534 else
11535   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11536 fi
11537 fi
11538
11539 LD="$lt_cv_path_LD"
11540 if test -n "$LD"; then
11541   { echo "$as_me:$LINENO: result: $LD" >&5
11542 echo "${ECHO_T}$LD" >&6; }
11543 else
11544   { echo "$as_me:$LINENO: result: no" >&5
11545 echo "${ECHO_T}no" >&6; }
11546 fi
11547 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11548 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11549    { (exit 1); exit 1; }; }
11550 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11551 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11552 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11553   echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11556 case `$LD -v 2>&1 </dev/null` in
11557 *GNU* | *'with BFD'*)
11558   lt_cv_prog_gnu_ld=yes
11559   ;;
11560 *)
11561   lt_cv_prog_gnu_ld=no
11562   ;;
11563 esac
11564 fi
11565 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11566 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11567 with_gnu_ld=$lt_cv_prog_gnu_ld
11568
11569
11570 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11571 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
11572 if test "${lt_cv_ld_reload_flag+set}" = set; then
11573   echo $ECHO_N "(cached) $ECHO_C" >&6
11574 else
11575   lt_cv_ld_reload_flag='-r'
11576 fi
11577 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11578 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
11579 reload_flag=$lt_cv_ld_reload_flag
11580 case $reload_flag in
11581 "" | " "*) ;;
11582 *) reload_flag=" $reload_flag" ;;
11583 esac
11584 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11585 case $host_os in
11586   darwin*)
11587     if test "$GCC" = yes; then
11588       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
11589     else
11590       reload_cmds='$LD$reload_flag -o $output$reload_objs'
11591     fi
11592     ;;
11593 esac
11594
11595 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11596 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
11597 if test "${lt_cv_deplibs_check_method+set}" = set; then
11598   echo $ECHO_N "(cached) $ECHO_C" >&6
11599 else
11600   lt_cv_file_magic_cmd='$MAGIC_CMD'
11601 lt_cv_file_magic_test_file=
11602 lt_cv_deplibs_check_method='unknown'
11603 # Need to set the preceding variable on all platforms that support
11604 # interlibrary dependencies.
11605 # 'none' -- dependencies not supported.
11606 # `unknown' -- same as none, but documents that we really don't know.
11607 # 'pass_all' -- all dependencies passed with no checks.
11608 # 'test_compile' -- check by making test program.
11609 # 'file_magic [[regex]]' -- check by looking for files in library path
11610 # which responds to the $file_magic_cmd with a given extended regex.
11611 # If you have `file' or equivalent on your system and you're not sure
11612 # whether `pass_all' will *always* work, you probably want this one.
11613
11614 case $host_os in
11615 aix4* | aix5*)
11616   lt_cv_deplibs_check_method=pass_all
11617   ;;
11618
11619 beos*)
11620   lt_cv_deplibs_check_method=pass_all
11621   ;;
11622
11623 bsdi[45]*)
11624   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11625   lt_cv_file_magic_cmd='/usr/bin/file -L'
11626   lt_cv_file_magic_test_file=/shlib/libc.so
11627   ;;
11628
11629 cygwin*)
11630   # func_win32_libid is a shell function defined in ltmain.sh
11631   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11632   lt_cv_file_magic_cmd='func_win32_libid'
11633   ;;
11634
11635 mingw* | pw32*)
11636   # Base MSYS/MinGW do not provide the 'file' command needed by
11637   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11638   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11639   lt_cv_file_magic_cmd='$OBJDUMP -f'
11640   ;;
11641
11642 darwin* | rhapsody*)
11643   lt_cv_deplibs_check_method=pass_all
11644   ;;
11645
11646 freebsd* | kfreebsd*-gnu | dragonfly*)
11647   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11648     case $host_cpu in
11649     i*86 )
11650       # Not sure whether the presence of OpenBSD here was a mistake.
11651       # Let's accept both of them until this is cleared up.
11652       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11653       lt_cv_file_magic_cmd=/usr/bin/file
11654       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11655       ;;
11656     esac
11657   else
11658     lt_cv_deplibs_check_method=pass_all
11659   fi
11660   ;;
11661
11662 gnu*)
11663   lt_cv_deplibs_check_method=pass_all
11664   ;;
11665
11666 hpux10.20* | hpux11*)
11667   lt_cv_file_magic_cmd=/usr/bin/file
11668   case $host_cpu in
11669   ia64*)
11670     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11671     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11672     ;;
11673   hppa*64*)
11674     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]'
11675     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11676     ;;
11677   *)
11678     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11679     lt_cv_file_magic_test_file=/usr/lib/libc.sl
11680     ;;
11681   esac
11682   ;;
11683
11684 interix3*)
11685   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11686   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11687   ;;
11688
11689 irix5* | irix6* | nonstopux*)
11690   case $LD in
11691   *-32|*"-32 ") libmagic=32-bit;;
11692   *-n32|*"-n32 ") libmagic=N32;;
11693   *-64|*"-64 ") libmagic=64-bit;;
11694   *) libmagic=never-match;;
11695   esac
11696   lt_cv_deplibs_check_method=pass_all
11697   ;;
11698
11699 # This must be Linux ELF.
11700 linux*)
11701   lt_cv_deplibs_check_method=pass_all
11702   ;;
11703
11704 netbsd*)
11705   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11706     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11707   else
11708     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11709   fi
11710   ;;
11711
11712 newos6*)
11713   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11714   lt_cv_file_magic_cmd=/usr/bin/file
11715   lt_cv_file_magic_test_file=/usr/lib/libnls.so
11716   ;;
11717
11718 nto-qnx*)
11719   lt_cv_deplibs_check_method=unknown
11720   ;;
11721
11722 openbsd*)
11723   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11724     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11725   else
11726     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11727   fi
11728   ;;
11729
11730 osf3* | osf4* | osf5*)
11731   lt_cv_deplibs_check_method=pass_all
11732   ;;
11733
11734 solaris*)
11735   lt_cv_deplibs_check_method=pass_all
11736   ;;
11737
11738 sysv4 | sysv4.3*)
11739   case $host_vendor in
11740   motorola)
11741     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]'
11742     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11743     ;;
11744   ncr)
11745     lt_cv_deplibs_check_method=pass_all
11746     ;;
11747   sequent)
11748     lt_cv_file_magic_cmd='/bin/file'
11749     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11750     ;;
11751   sni)
11752     lt_cv_file_magic_cmd='/bin/file'
11753     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11754     lt_cv_file_magic_test_file=/lib/libc.so
11755     ;;
11756   siemens)
11757     lt_cv_deplibs_check_method=pass_all
11758     ;;
11759   pc)
11760     lt_cv_deplibs_check_method=pass_all
11761     ;;
11762   esac
11763   ;;
11764
11765 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11766   lt_cv_deplibs_check_method=pass_all
11767   ;;
11768 esac
11769
11770 fi
11771 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11772 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
11773 file_magic_cmd=$lt_cv_file_magic_cmd
11774 deplibs_check_method=$lt_cv_deplibs_check_method
11775 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11776
11777
11778
11779 # If no C compiler was specified, use CC.
11780 LTCC=${LTCC-"$CC"}
11781
11782 # If no C compiler flags were specified, use CFLAGS.
11783 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11784
11785 # Allow CC to be a program name with arguments.
11786 compiler=$CC
11787
11788 # Check whether --enable-libtool-lock was given.
11789 if test "${enable_libtool_lock+set}" = set; then
11790   enableval=$enable_libtool_lock;
11791 fi
11792
11793 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11794
11795 # Some flags need to be propagated to the compiler or linker for good
11796 # libtool support.
11797 case $host in
11798 ia64-*-hpux*)
11799   # Find out which ABI we are using.
11800   echo 'int i;' > conftest.$ac_ext
11801   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11802   (eval $ac_compile) 2>&5
11803   ac_status=$?
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   (exit $ac_status); }; then
11806     case `/usr/bin/file conftest.$ac_objext` in
11807     *ELF-32*)
11808       HPUX_IA64_MODE="32"
11809       ;;
11810     *ELF-64*)
11811       HPUX_IA64_MODE="64"
11812       ;;
11813     esac
11814   fi
11815   rm -rf conftest*
11816   ;;
11817 *-*-irix6*)
11818   # Find out which ABI we are using.
11819   echo '#line 11819 "configure"' > conftest.$ac_ext
11820   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11821   (eval $ac_compile) 2>&5
11822   ac_status=$?
11823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824   (exit $ac_status); }; then
11825    if test "$lt_cv_prog_gnu_ld" = yes; then
11826     case `/usr/bin/file conftest.$ac_objext` in
11827     *32-bit*)
11828       LD="${LD-ld} -melf32bsmip"
11829       ;;
11830     *N32*)
11831       LD="${LD-ld} -melf32bmipn32"
11832       ;;
11833     *64-bit*)
11834       LD="${LD-ld} -melf64bmip"
11835       ;;
11836     esac
11837    else
11838     case `/usr/bin/file conftest.$ac_objext` in
11839     *32-bit*)
11840       LD="${LD-ld} -32"
11841       ;;
11842     *N32*)
11843       LD="${LD-ld} -n32"
11844       ;;
11845     *64-bit*)
11846       LD="${LD-ld} -64"
11847       ;;
11848     esac
11849    fi
11850   fi
11851   rm -rf conftest*
11852   ;;
11853
11854 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11855   # Find out which ABI we are using.
11856   echo 'int i;' > conftest.$ac_ext
11857   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11858   (eval $ac_compile) 2>&5
11859   ac_status=$?
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); }; then
11862     case `/usr/bin/file conftest.o` in
11863     *32-bit*)
11864       case $host in
11865         x86_64-*linux*)
11866           LD="${LD-ld} -m elf_i386"
11867           ;;
11868         ppc64-*linux*|powerpc64-*linux*)
11869           LD="${LD-ld} -m elf32ppclinux"
11870           ;;
11871         s390x-*linux*)
11872           LD="${LD-ld} -m elf_s390"
11873           ;;
11874         sparc64-*linux*)
11875           LD="${LD-ld} -m elf32_sparc"
11876           ;;
11877       esac
11878       ;;
11879     *64-bit*)
11880       case $host in
11881         x86_64-*linux*)
11882           LD="${LD-ld} -m elf_x86_64"
11883           ;;
11884         ppc*-*linux*|powerpc*-*linux*)
11885           LD="${LD-ld} -m elf64ppc"
11886           ;;
11887         s390*-*linux*)
11888           LD="${LD-ld} -m elf64_s390"
11889           ;;
11890         sparc*-*linux*)
11891           LD="${LD-ld} -m elf64_sparc"
11892           ;;
11893       esac
11894       ;;
11895     esac
11896   fi
11897   rm -rf conftest*
11898   ;;
11899
11900 *-*-sco3.2v5*)
11901   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11902   SAVE_CFLAGS="$CFLAGS"
11903   CFLAGS="$CFLAGS -belf"
11904   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11905 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
11906 if test "${lt_cv_cc_needs_belf+set}" = set; then
11907   echo $ECHO_N "(cached) $ECHO_C" >&6
11908 else
11909   ac_ext=c
11910 ac_cpp='$CPP $CPPFLAGS'
11911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11914
11915      cat >conftest.$ac_ext <<_ACEOF
11916 /* confdefs.h.  */
11917 _ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h.  */
11921
11922 int
11923 main ()
11924 {
11925
11926   ;
11927   return 0;
11928 }
11929 _ACEOF
11930 rm -f conftest.$ac_objext conftest$ac_exeext
11931 if { (ac_try="$ac_link"
11932 case "(($ac_try" in
11933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934   *) ac_try_echo=$ac_try;;
11935 esac
11936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937   (eval "$ac_link") 2>conftest.er1
11938   ac_status=$?
11939   grep -v '^ *+' conftest.er1 >conftest.err
11940   rm -f conftest.er1
11941   cat conftest.err >&5
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); } && {
11944          test -z "$ac_c_werror_flag" ||
11945          test ! -s conftest.err
11946        } && test -s conftest$ac_exeext &&
11947        $as_test_x conftest$ac_exeext; then
11948   lt_cv_cc_needs_belf=yes
11949 else
11950   echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11952
11953         lt_cv_cc_needs_belf=no
11954 fi
11955
11956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11957       conftest$ac_exeext conftest.$ac_ext
11958      ac_ext=c
11959 ac_cpp='$CPP $CPPFLAGS'
11960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11963
11964 fi
11965 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11966 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
11967   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11968     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11969     CFLAGS="$SAVE_CFLAGS"
11970   fi
11971   ;;
11972 sparc*-*solaris*)
11973   # Find out which ABI we are using.
11974   echo 'int i;' > conftest.$ac_ext
11975   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11976   (eval $ac_compile) 2>&5
11977   ac_status=$?
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); }; then
11980     case `/usr/bin/file conftest.o` in
11981     *64-bit*)
11982       case $lt_cv_prog_gnu_ld in
11983       yes*) LD="${LD-ld} -m elf64_sparc" ;;
11984       *)    LD="${LD-ld} -64" ;;
11985       esac
11986       ;;
11987     esac
11988   fi
11989   rm -rf conftest*
11990   ;;
11991
11992
11993 esac
11994
11995 need_locks="$enable_libtool_lock"
11996
11997
11998
11999
12000 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12001     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12002     (test "X$CXX" != "Xg++"))) ; then
12003   ac_ext=cpp
12004 ac_cpp='$CXXCPP $CPPFLAGS'
12005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12008 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12009 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12010 if test -z "$CXXCPP"; then
12011   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12012   echo $ECHO_N "(cached) $ECHO_C" >&6
12013 else
12014       # Double quotes because CXXCPP needs to be expanded
12015     for CXXCPP in "$CXX -E" "/lib/cpp"
12016     do
12017       ac_preproc_ok=false
12018 for ac_cxx_preproc_warn_flag in '' yes
12019 do
12020   # Use a header file that comes with gcc, so configuring glibc
12021   # with a fresh cross-compiler works.
12022   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12023   # <limits.h> exists even on freestanding compilers.
12024   # On the NeXT, cc -E runs the code through the compiler's parser,
12025   # not just through cpp. "Syntax error" is here to catch this case.
12026   cat >conftest.$ac_ext <<_ACEOF
12027 /* confdefs.h.  */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h.  */
12032 #ifdef __STDC__
12033 # include <limits.h>
12034 #else
12035 # include <assert.h>
12036 #endif
12037                      Syntax error
12038 _ACEOF
12039 if { (ac_try="$ac_cpp conftest.$ac_ext"
12040 case "(($ac_try" in
12041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042   *) ac_try_echo=$ac_try;;
12043 esac
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12046   ac_status=$?
12047   grep -v '^ *+' conftest.er1 >conftest.err
12048   rm -f conftest.er1
12049   cat conftest.err >&5
12050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051   (exit $ac_status); } >/dev/null && {
12052          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12053          test ! -s conftest.err
12054        }; then
12055   :
12056 else
12057   echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12059
12060   # Broken: fails on valid input.
12061 continue
12062 fi
12063
12064 rm -f conftest.err conftest.$ac_ext
12065
12066   # OK, works on sane cases.  Now check whether nonexistent headers
12067   # can be detected and how.
12068   cat >conftest.$ac_ext <<_ACEOF
12069 /* confdefs.h.  */
12070 _ACEOF
12071 cat confdefs.h >>conftest.$ac_ext
12072 cat >>conftest.$ac_ext <<_ACEOF
12073 /* end confdefs.h.  */
12074 #include <ac_nonexistent.h>
12075 _ACEOF
12076 if { (ac_try="$ac_cpp conftest.$ac_ext"
12077 case "(($ac_try" in
12078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079   *) ac_try_echo=$ac_try;;
12080 esac
12081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12083   ac_status=$?
12084   grep -v '^ *+' conftest.er1 >conftest.err
12085   rm -f conftest.er1
12086   cat conftest.err >&5
12087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088   (exit $ac_status); } >/dev/null && {
12089          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12090          test ! -s conftest.err
12091        }; then
12092   # Broken: success on invalid input.
12093 continue
12094 else
12095   echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12097
12098   # Passes both tests.
12099 ac_preproc_ok=:
12100 break
12101 fi
12102
12103 rm -f conftest.err conftest.$ac_ext
12104
12105 done
12106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12107 rm -f conftest.err conftest.$ac_ext
12108 if $ac_preproc_ok; then
12109   break
12110 fi
12111
12112     done
12113     ac_cv_prog_CXXCPP=$CXXCPP
12114
12115 fi
12116   CXXCPP=$ac_cv_prog_CXXCPP
12117 else
12118   ac_cv_prog_CXXCPP=$CXXCPP
12119 fi
12120 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12121 echo "${ECHO_T}$CXXCPP" >&6; }
12122 ac_preproc_ok=false
12123 for ac_cxx_preproc_warn_flag in '' yes
12124 do
12125   # Use a header file that comes with gcc, so configuring glibc
12126   # with a fresh cross-compiler works.
12127   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12128   # <limits.h> exists even on freestanding compilers.
12129   # On the NeXT, cc -E runs the code through the compiler's parser,
12130   # not just through cpp. "Syntax error" is here to catch this case.
12131   cat >conftest.$ac_ext <<_ACEOF
12132 /* confdefs.h.  */
12133 _ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h.  */
12137 #ifdef __STDC__
12138 # include <limits.h>
12139 #else
12140 # include <assert.h>
12141 #endif
12142                      Syntax error
12143 _ACEOF
12144 if { (ac_try="$ac_cpp conftest.$ac_ext"
12145 case "(($ac_try" in
12146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12147   *) ac_try_echo=$ac_try;;
12148 esac
12149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12151   ac_status=$?
12152   grep -v '^ *+' conftest.er1 >conftest.err
12153   rm -f conftest.er1
12154   cat conftest.err >&5
12155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156   (exit $ac_status); } >/dev/null && {
12157          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12158          test ! -s conftest.err
12159        }; then
12160   :
12161 else
12162   echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12164
12165   # Broken: fails on valid input.
12166 continue
12167 fi
12168
12169 rm -f conftest.err conftest.$ac_ext
12170
12171   # OK, works on sane cases.  Now check whether nonexistent headers
12172   # can be detected and how.
12173   cat >conftest.$ac_ext <<_ACEOF
12174 /* confdefs.h.  */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h.  */
12179 #include <ac_nonexistent.h>
12180 _ACEOF
12181 if { (ac_try="$ac_cpp conftest.$ac_ext"
12182 case "(($ac_try" in
12183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184   *) ac_try_echo=$ac_try;;
12185 esac
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12188   ac_status=$?
12189   grep -v '^ *+' conftest.er1 >conftest.err
12190   rm -f conftest.er1
12191   cat conftest.err >&5
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); } >/dev/null && {
12194          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12195          test ! -s conftest.err
12196        }; then
12197   # Broken: success on invalid input.
12198 continue
12199 else
12200   echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12202
12203   # Passes both tests.
12204 ac_preproc_ok=:
12205 break
12206 fi
12207
12208 rm -f conftest.err conftest.$ac_ext
12209
12210 done
12211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12212 rm -f conftest.err conftest.$ac_ext
12213 if $ac_preproc_ok; then
12214   :
12215 else
12216   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12217 See \`config.log' for more details." >&5
12218 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12219 See \`config.log' for more details." >&2;}
12220    { (exit 1); exit 1; }; }
12221 fi
12222
12223 ac_ext=cpp
12224 ac_cpp='$CXXCPP $CPPFLAGS'
12225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12228
12229 fi
12230
12231
12232 ac_ext=f
12233 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12234 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12235 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12236 if test -n "$ac_tool_prefix"; then
12237   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
12238   do
12239     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12240 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12243 if test "${ac_cv_prog_F77+set}" = set; then
12244   echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246   if test -n "$F77"; then
12247   ac_cv_prog_F77="$F77" # Let the user override the test.
12248 else
12249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12250 for as_dir in $PATH
12251 do
12252   IFS=$as_save_IFS
12253   test -z "$as_dir" && as_dir=.
12254   for ac_exec_ext in '' $ac_executable_extensions; do
12255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12256     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12258     break 2
12259   fi
12260 done
12261 done
12262 IFS=$as_save_IFS
12263
12264 fi
12265 fi
12266 F77=$ac_cv_prog_F77
12267 if test -n "$F77"; then
12268   { echo "$as_me:$LINENO: result: $F77" >&5
12269 echo "${ECHO_T}$F77" >&6; }
12270 else
12271   { echo "$as_me:$LINENO: result: no" >&5
12272 echo "${ECHO_T}no" >&6; }
12273 fi
12274
12275
12276     test -n "$F77" && break
12277   done
12278 fi
12279 if test -z "$F77"; then
12280   ac_ct_F77=$F77
12281   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
12282 do
12283   # Extract the first word of "$ac_prog", so it can be a program name with args.
12284 set dummy $ac_prog; ac_word=$2
12285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12287 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12288   echo $ECHO_N "(cached) $ECHO_C" >&6
12289 else
12290   if test -n "$ac_ct_F77"; then
12291   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12292 else
12293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12294 for as_dir in $PATH
12295 do
12296   IFS=$as_save_IFS
12297   test -z "$as_dir" && as_dir=.
12298   for ac_exec_ext in '' $ac_executable_extensions; do
12299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12300     ac_cv_prog_ac_ct_F77="$ac_prog"
12301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12302     break 2
12303   fi
12304 done
12305 done
12306 IFS=$as_save_IFS
12307
12308 fi
12309 fi
12310 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12311 if test -n "$ac_ct_F77"; then
12312   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12313 echo "${ECHO_T}$ac_ct_F77" >&6; }
12314 else
12315   { echo "$as_me:$LINENO: result: no" >&5
12316 echo "${ECHO_T}no" >&6; }
12317 fi
12318
12319
12320   test -n "$ac_ct_F77" && break
12321 done
12322
12323   if test "x$ac_ct_F77" = x; then
12324     F77=""
12325   else
12326     case $cross_compiling:$ac_tool_warned in
12327 yes:)
12328 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12329 whose name does not start with the host triplet.  If you think this
12330 configuration is useful to you, please write to autoconf@gnu.org." >&5
12331 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12332 whose name does not start with the host triplet.  If you think this
12333 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12334 ac_tool_warned=yes ;;
12335 esac
12336     F77=$ac_ct_F77
12337   fi
12338 fi
12339
12340
12341 # Provide some information about the compiler.
12342 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12343 ac_compiler=`set X $ac_compile; echo $2`
12344 { (ac_try="$ac_compiler --version >&5"
12345 case "(($ac_try" in
12346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347   *) ac_try_echo=$ac_try;;
12348 esac
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350   (eval "$ac_compiler --version >&5") 2>&5
12351   ac_status=$?
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); }
12354 { (ac_try="$ac_compiler -v >&5"
12355 case "(($ac_try" in
12356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357   *) ac_try_echo=$ac_try;;
12358 esac
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360   (eval "$ac_compiler -v >&5") 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); }
12364 { (ac_try="$ac_compiler -V >&5"
12365 case "(($ac_try" in
12366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367   *) ac_try_echo=$ac_try;;
12368 esac
12369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370   (eval "$ac_compiler -V >&5") 2>&5
12371   ac_status=$?
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); }
12374 rm -f a.out
12375
12376 # If we don't use `.F' as extension, the preprocessor is not run on the
12377 # input file.  (Note that this only needs to work for GNU compilers.)
12378 ac_save_ext=$ac_ext
12379 ac_ext=F
12380 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12381 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
12382 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12383   echo $ECHO_N "(cached) $ECHO_C" >&6
12384 else
12385   cat >conftest.$ac_ext <<_ACEOF
12386       program main
12387 #ifndef __GNUC__
12388        choke me
12389 #endif
12390
12391       end
12392 _ACEOF
12393 rm -f conftest.$ac_objext
12394 if { (ac_try="$ac_compile"
12395 case "(($ac_try" in
12396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397   *) ac_try_echo=$ac_try;;
12398 esac
12399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400   (eval "$ac_compile") 2>conftest.er1
12401   ac_status=$?
12402   grep -v '^ *+' conftest.er1 >conftest.err
12403   rm -f conftest.er1
12404   cat conftest.err >&5
12405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); } && {
12407          test -z "$ac_f77_werror_flag" ||
12408          test ! -s conftest.err
12409        } && test -s conftest.$ac_objext; then
12410   ac_compiler_gnu=yes
12411 else
12412   echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12414
12415         ac_compiler_gnu=no
12416 fi
12417
12418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12419 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12420
12421 fi
12422 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12423 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
12424 ac_ext=$ac_save_ext
12425 ac_test_FFLAGS=${FFLAGS+set}
12426 ac_save_FFLAGS=$FFLAGS
12427 FFLAGS=
12428 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12429 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
12430 if test "${ac_cv_prog_f77_g+set}" = set; then
12431   echo $ECHO_N "(cached) $ECHO_C" >&6
12432 else
12433   FFLAGS=-g
12434 cat >conftest.$ac_ext <<_ACEOF
12435       program main
12436
12437       end
12438 _ACEOF
12439 rm -f conftest.$ac_objext
12440 if { (ac_try="$ac_compile"
12441 case "(($ac_try" in
12442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12443   *) ac_try_echo=$ac_try;;
12444 esac
12445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12446   (eval "$ac_compile") 2>conftest.er1
12447   ac_status=$?
12448   grep -v '^ *+' conftest.er1 >conftest.err
12449   rm -f conftest.er1
12450   cat conftest.err >&5
12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); } && {
12453          test -z "$ac_f77_werror_flag" ||
12454          test ! -s conftest.err
12455        } && test -s conftest.$ac_objext; then
12456   ac_cv_prog_f77_g=yes
12457 else
12458   echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12460
12461         ac_cv_prog_f77_g=no
12462 fi
12463
12464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12465
12466 fi
12467 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12468 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
12469 if test "$ac_test_FFLAGS" = set; then
12470   FFLAGS=$ac_save_FFLAGS
12471 elif test $ac_cv_prog_f77_g = yes; then
12472   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12473     FFLAGS="-g -O2"
12474   else
12475     FFLAGS="-g"
12476   fi
12477 else
12478   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12479     FFLAGS="-O2"
12480   else
12481     FFLAGS=
12482   fi
12483 fi
12484
12485 G77=`test $ac_compiler_gnu = yes && echo yes`
12486 ac_ext=c
12487 ac_cpp='$CPP $CPPFLAGS'
12488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12491
12492
12493
12494 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12495
12496 # find the maximum length of command line arguments
12497 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12498 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
12499 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12500   echo $ECHO_N "(cached) $ECHO_C" >&6
12501 else
12502     i=0
12503   teststring="ABCD"
12504
12505   case $build_os in
12506   msdosdjgpp*)
12507     # On DJGPP, this test can blow up pretty badly due to problems in libc
12508     # (any single argument exceeding 2000 bytes causes a buffer overrun
12509     # during glob expansion).  Even if it were fixed, the result of this
12510     # check would be larger than it should be.
12511     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12512     ;;
12513
12514   gnu*)
12515     # Under GNU Hurd, this test is not required because there is
12516     # no limit to the length of command line arguments.
12517     # Libtool will interpret -1 as no limit whatsoever
12518     lt_cv_sys_max_cmd_len=-1;
12519     ;;
12520
12521   cygwin* | mingw*)
12522     # On Win9x/ME, this test blows up -- it succeeds, but takes
12523     # about 5 minutes as the teststring grows exponentially.
12524     # Worse, since 9x/ME are not pre-emptively multitasking,
12525     # you end up with a "frozen" computer, even though with patience
12526     # the test eventually succeeds (with a max line length of 256k).
12527     # Instead, let's just punt: use the minimum linelength reported by
12528     # all of the supported platforms: 8192 (on NT/2K/XP).
12529     lt_cv_sys_max_cmd_len=8192;
12530     ;;
12531
12532   amigaos*)
12533     # On AmigaOS with pdksh, this test takes hours, literally.
12534     # So we just punt and use a minimum line length of 8192.
12535     lt_cv_sys_max_cmd_len=8192;
12536     ;;
12537
12538   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12539     # This has been around since 386BSD, at least.  Likely further.
12540     if test -x /sbin/sysctl; then
12541       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12542     elif test -x /usr/sbin/sysctl; then
12543       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12544     else
12545       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12546     fi
12547     # And add a safety zone
12548     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12549     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12550     ;;
12551
12552   interix*)
12553     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12554     lt_cv_sys_max_cmd_len=196608
12555     ;;
12556
12557   osf*)
12558     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12559     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12560     # nice to cause kernel panics so lets avoid the loop below.
12561     # First set a reasonable default.
12562     lt_cv_sys_max_cmd_len=16384
12563     #
12564     if test -x /sbin/sysconfig; then
12565       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12566         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12567       esac
12568     fi
12569     ;;
12570   sco3.2v5*)
12571     lt_cv_sys_max_cmd_len=102400
12572     ;;
12573   sysv5* | sco5v6* | sysv4.2uw2*)
12574     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12575     if test -n "$kargmax"; then
12576       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
12577     else
12578       lt_cv_sys_max_cmd_len=32768
12579     fi
12580     ;;
12581   *)
12582     # If test is not a shell built-in, we'll probably end up computing a
12583     # maximum length that is only half of the actual maximum length, but
12584     # we can't tell.
12585     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12586     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12587                = "XX$teststring") >/dev/null 2>&1 &&
12588             new_result=`expr "X$teststring" : ".*" 2>&1` &&
12589             lt_cv_sys_max_cmd_len=$new_result &&
12590             test $i != 17 # 1/2 MB should be enough
12591     do
12592       i=`expr $i + 1`
12593       teststring=$teststring$teststring
12594     done
12595     teststring=
12596     # Add a significant safety factor because C++ compilers can tack on massive
12597     # amounts of additional arguments before passing them to the linker.
12598     # It appears as though 1/2 is a usable value.
12599     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12600     ;;
12601   esac
12602
12603 fi
12604
12605 if test -n $lt_cv_sys_max_cmd_len ; then
12606   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12607 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
12608 else
12609   { echo "$as_me:$LINENO: result: none" >&5
12610 echo "${ECHO_T}none" >&6; }
12611 fi
12612
12613
12614
12615
12616 # Check for command to grab the raw symbol name followed by C symbol from nm.
12617 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12618 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
12619 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12620   echo $ECHO_N "(cached) $ECHO_C" >&6
12621 else
12622
12623 # These are sane defaults that work on at least a few old systems.
12624 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12625
12626 # Character class describing NM global symbol codes.
12627 symcode='[BCDEGRST]'
12628
12629 # Regexp to match symbols that can be accessed directly from C.
12630 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12631
12632 # Transform an extracted symbol line into a proper C declaration
12633 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12634
12635 # Transform an extracted symbol line into symbol name and symbol address
12636 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'"
12637
12638 # Define system-specific variables.
12639 case $host_os in
12640 aix*)
12641   symcode='[BCDT]'
12642   ;;
12643 cygwin* | mingw* | pw32*)
12644   symcode='[ABCDGISTW]'
12645   ;;
12646 hpux*) # Its linker distinguishes data from code symbols
12647   if test "$host_cpu" = ia64; then
12648     symcode='[ABCDEGRST]'
12649   fi
12650   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12651   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'"
12652   ;;
12653 linux*)
12654   if test "$host_cpu" = ia64; then
12655     symcode='[ABCDGIRSTW]'
12656     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12657     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'"
12658   fi
12659   ;;
12660 irix* | nonstopux*)
12661   symcode='[BCDEGRST]'
12662   ;;
12663 osf*)
12664   symcode='[BCDEGQRST]'
12665   ;;
12666 solaris*)
12667   symcode='[BDRT]'
12668   ;;
12669 sco3.2v5*)
12670   symcode='[DT]'
12671   ;;
12672 sysv4.2uw2*)
12673   symcode='[DT]'
12674   ;;
12675 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12676   symcode='[ABDT]'
12677   ;;
12678 sysv4)
12679   symcode='[DFNSTU]'
12680   ;;
12681 esac
12682
12683 # Handle CRLF in mingw tool chain
12684 opt_cr=
12685 case $build_os in
12686 mingw*)
12687   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12688   ;;
12689 esac
12690
12691 # If we're using GNU nm, then use its standard symbol codes.
12692 case `$NM -V 2>&1` in
12693 *GNU* | *'with BFD'*)
12694   symcode='[ABCDGIRSTW]' ;;
12695 esac
12696
12697 # Try without a prefix undercore, then with it.
12698 for ac_symprfx in "" "_"; do
12699
12700   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12701   symxfrm="\\1 $ac_symprfx\\2 \\2"
12702
12703   # Write the raw and C identifiers.
12704   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12705
12706   # Check to see that the pipe works correctly.
12707   pipe_works=no
12708
12709   rm -f conftest*
12710   cat > conftest.$ac_ext <<EOF
12711 #ifdef __cplusplus
12712 extern "C" {
12713 #endif
12714 char nm_test_var;
12715 void nm_test_func(){}
12716 #ifdef __cplusplus
12717 }
12718 #endif
12719 int main(){nm_test_var='a';nm_test_func();return(0);}
12720 EOF
12721
12722   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12723   (eval $ac_compile) 2>&5
12724   ac_status=$?
12725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726   (exit $ac_status); }; then
12727     # Now try to grab the symbols.
12728     nlist=conftest.nm
12729     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12730   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12731   ac_status=$?
12732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733   (exit $ac_status); } && test -s "$nlist"; then
12734       # Try sorting and uniquifying the output.
12735       if sort "$nlist" | uniq > "$nlist"T; then
12736         mv -f "$nlist"T "$nlist"
12737       else
12738         rm -f "$nlist"T
12739       fi
12740
12741       # Make sure that we snagged all the symbols we need.
12742       if grep ' nm_test_var$' "$nlist" >/dev/null; then
12743         if grep ' nm_test_func$' "$nlist" >/dev/null; then
12744           cat <<EOF > conftest.$ac_ext
12745 #ifdef __cplusplus
12746 extern "C" {
12747 #endif
12748
12749 EOF
12750           # Now generate the symbol file.
12751           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12752
12753           cat <<EOF >> conftest.$ac_ext
12754 #if defined (__STDC__) && __STDC__
12755 # define lt_ptr_t void *
12756 #else
12757 # define lt_ptr_t char *
12758 # define const
12759 #endif
12760
12761 /* The mapping between symbol names and symbols. */
12762 const struct {
12763   const char *name;
12764   lt_ptr_t address;
12765 }
12766 lt_preloaded_symbols[] =
12767 {
12768 EOF
12769           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12770           cat <<\EOF >> conftest.$ac_ext
12771   {0, (lt_ptr_t) 0}
12772 };
12773
12774 #ifdef __cplusplus
12775 }
12776 #endif
12777 EOF
12778           # Now try linking the two files.
12779           mv conftest.$ac_objext conftstm.$ac_objext
12780           lt_save_LIBS="$LIBS"
12781           lt_save_CFLAGS="$CFLAGS"
12782           LIBS="conftstm.$ac_objext"
12783           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12784           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12785   (eval $ac_link) 2>&5
12786   ac_status=$?
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); } && test -s conftest${ac_exeext}; then
12789             pipe_works=yes
12790           fi
12791           LIBS="$lt_save_LIBS"
12792           CFLAGS="$lt_save_CFLAGS"
12793         else
12794           echo "cannot find nm_test_func in $nlist" >&5
12795         fi
12796       else
12797         echo "cannot find nm_test_var in $nlist" >&5
12798       fi
12799     else
12800       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12801     fi
12802   else
12803     echo "$progname: failed program was:" >&5
12804     cat conftest.$ac_ext >&5
12805   fi
12806   rm -f conftest* conftst*
12807
12808   # Do not use the global_symbol_pipe unless it works.
12809   if test "$pipe_works" = yes; then
12810     break
12811   else
12812     lt_cv_sys_global_symbol_pipe=
12813   fi
12814 done
12815
12816 fi
12817
12818 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12819   lt_cv_sys_global_symbol_to_cdecl=
12820 fi
12821 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12822   { echo "$as_me:$LINENO: result: failed" >&5
12823 echo "${ECHO_T}failed" >&6; }
12824 else
12825   { echo "$as_me:$LINENO: result: ok" >&5
12826 echo "${ECHO_T}ok" >&6; }
12827 fi
12828
12829 { echo "$as_me:$LINENO: checking for objdir" >&5
12830 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
12831 if test "${lt_cv_objdir+set}" = set; then
12832   echo $ECHO_N "(cached) $ECHO_C" >&6
12833 else
12834   rm -f .libs 2>/dev/null
12835 mkdir .libs 2>/dev/null
12836 if test -d .libs; then
12837   lt_cv_objdir=.libs
12838 else
12839   # MS-DOS does not allow filenames that begin with a dot.
12840   lt_cv_objdir=_libs
12841 fi
12842 rmdir .libs 2>/dev/null
12843 fi
12844 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12845 echo "${ECHO_T}$lt_cv_objdir" >&6; }
12846 objdir=$lt_cv_objdir
12847
12848
12849
12850
12851
12852 case $host_os in
12853 aix3*)
12854   # AIX sometimes has problems with the GCC collect2 program.  For some
12855   # reason, if we set the COLLECT_NAMES environment variable, the problems
12856   # vanish in a puff of smoke.
12857   if test "X${COLLECT_NAMES+set}" != Xset; then
12858     COLLECT_NAMES=
12859     export COLLECT_NAMES
12860   fi
12861   ;;
12862 esac
12863
12864 # Sed substitution that helps us do robust quoting.  It backslashifies
12865 # metacharacters that are still active within double-quoted strings.
12866 Xsed='sed -e 1s/^X//'
12867 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12868
12869 # Same as above, but do not quote variable references.
12870 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12871
12872 # Sed substitution to delay expansion of an escaped shell variable in a
12873 # double_quote_subst'ed string.
12874 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12875
12876 # Sed substitution to avoid accidental globbing in evaled expressions
12877 no_glob_subst='s/\*/\\\*/g'
12878
12879 # Constants:
12880 rm="rm -f"
12881
12882 # Global variables:
12883 default_ofile=mklib
12884 can_build_shared=yes
12885
12886 # All known linkers require a `.a' archive for static linking (except MSVC,
12887 # which needs '.lib').
12888 libext=a
12889 ltmain="$ac_aux_dir/ltmain.sh"
12890 ofile="$default_ofile"
12891 with_gnu_ld="$lt_cv_prog_gnu_ld"
12892
12893 if test -n "$ac_tool_prefix"; then
12894   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12895 set dummy ${ac_tool_prefix}ar; ac_word=$2
12896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12898 if test "${ac_cv_prog_AR+set}" = set; then
12899   echo $ECHO_N "(cached) $ECHO_C" >&6
12900 else
12901   if test -n "$AR"; then
12902   ac_cv_prog_AR="$AR" # Let the user override the test.
12903 else
12904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12905 for as_dir in $PATH
12906 do
12907   IFS=$as_save_IFS
12908   test -z "$as_dir" && as_dir=.
12909   for ac_exec_ext in '' $ac_executable_extensions; do
12910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12911     ac_cv_prog_AR="${ac_tool_prefix}ar"
12912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12913     break 2
12914   fi
12915 done
12916 done
12917 IFS=$as_save_IFS
12918
12919 fi
12920 fi
12921 AR=$ac_cv_prog_AR
12922 if test -n "$AR"; then
12923   { echo "$as_me:$LINENO: result: $AR" >&5
12924 echo "${ECHO_T}$AR" >&6; }
12925 else
12926   { echo "$as_me:$LINENO: result: no" >&5
12927 echo "${ECHO_T}no" >&6; }
12928 fi
12929
12930
12931 fi
12932 if test -z "$ac_cv_prog_AR"; then
12933   ac_ct_AR=$AR
12934   # Extract the first word of "ar", so it can be a program name with args.
12935 set dummy ar; ac_word=$2
12936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12938 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12939   echo $ECHO_N "(cached) $ECHO_C" >&6
12940 else
12941   if test -n "$ac_ct_AR"; then
12942   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12943 else
12944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945 for as_dir in $PATH
12946 do
12947   IFS=$as_save_IFS
12948   test -z "$as_dir" && as_dir=.
12949   for ac_exec_ext in '' $ac_executable_extensions; do
12950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12951     ac_cv_prog_ac_ct_AR="ar"
12952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12953     break 2
12954   fi
12955 done
12956 done
12957 IFS=$as_save_IFS
12958
12959 fi
12960 fi
12961 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12962 if test -n "$ac_ct_AR"; then
12963   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12964 echo "${ECHO_T}$ac_ct_AR" >&6; }
12965 else
12966   { echo "$as_me:$LINENO: result: no" >&5
12967 echo "${ECHO_T}no" >&6; }
12968 fi
12969
12970   if test "x$ac_ct_AR" = x; then
12971     AR="false"
12972   else
12973     case $cross_compiling:$ac_tool_warned in
12974 yes:)
12975 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12976 whose name does not start with the host triplet.  If you think this
12977 configuration is useful to you, please write to autoconf@gnu.org." >&5
12978 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12979 whose name does not start with the host triplet.  If you think this
12980 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12981 ac_tool_warned=yes ;;
12982 esac
12983     AR=$ac_ct_AR
12984   fi
12985 else
12986   AR="$ac_cv_prog_AR"
12987 fi
12988
12989 if test -n "$ac_tool_prefix"; then
12990   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12991 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12994 if test "${ac_cv_prog_RANLIB+set}" = set; then
12995   echo $ECHO_N "(cached) $ECHO_C" >&6
12996 else
12997   if test -n "$RANLIB"; then
12998   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12999 else
13000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001 for as_dir in $PATH
13002 do
13003   IFS=$as_save_IFS
13004   test -z "$as_dir" && as_dir=.
13005   for ac_exec_ext in '' $ac_executable_extensions; do
13006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13007     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13009     break 2
13010   fi
13011 done
13012 done
13013 IFS=$as_save_IFS
13014
13015 fi
13016 fi
13017 RANLIB=$ac_cv_prog_RANLIB
13018 if test -n "$RANLIB"; then
13019   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13020 echo "${ECHO_T}$RANLIB" >&6; }
13021 else
13022   { echo "$as_me:$LINENO: result: no" >&5
13023 echo "${ECHO_T}no" >&6; }
13024 fi
13025
13026
13027 fi
13028 if test -z "$ac_cv_prog_RANLIB"; then
13029   ac_ct_RANLIB=$RANLIB
13030   # Extract the first word of "ranlib", so it can be a program name with args.
13031 set dummy ranlib; ac_word=$2
13032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13034 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13035   echo $ECHO_N "(cached) $ECHO_C" >&6
13036 else
13037   if test -n "$ac_ct_RANLIB"; then
13038   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13039 else
13040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13041 for as_dir in $PATH
13042 do
13043   IFS=$as_save_IFS
13044   test -z "$as_dir" && as_dir=.
13045   for ac_exec_ext in '' $ac_executable_extensions; do
13046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13047     ac_cv_prog_ac_ct_RANLIB="ranlib"
13048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13049     break 2
13050   fi
13051 done
13052 done
13053 IFS=$as_save_IFS
13054
13055 fi
13056 fi
13057 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13058 if test -n "$ac_ct_RANLIB"; then
13059   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13060 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13061 else
13062   { echo "$as_me:$LINENO: result: no" >&5
13063 echo "${ECHO_T}no" >&6; }
13064 fi
13065
13066   if test "x$ac_ct_RANLIB" = x; then
13067     RANLIB=":"
13068   else
13069     case $cross_compiling:$ac_tool_warned in
13070 yes:)
13071 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13072 whose name does not start with the host triplet.  If you think this
13073 configuration is useful to you, please write to autoconf@gnu.org." >&5
13074 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13075 whose name does not start with the host triplet.  If you think this
13076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13077 ac_tool_warned=yes ;;
13078 esac
13079     RANLIB=$ac_ct_RANLIB
13080   fi
13081 else
13082   RANLIB="$ac_cv_prog_RANLIB"
13083 fi
13084
13085 if test -n "$ac_tool_prefix"; then
13086   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13087 set dummy ${ac_tool_prefix}strip; ac_word=$2
13088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13090 if test "${ac_cv_prog_STRIP+set}" = set; then
13091   echo $ECHO_N "(cached) $ECHO_C" >&6
13092 else
13093   if test -n "$STRIP"; then
13094   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13095 else
13096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097 for as_dir in $PATH
13098 do
13099   IFS=$as_save_IFS
13100   test -z "$as_dir" && as_dir=.
13101   for ac_exec_ext in '' $ac_executable_extensions; do
13102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13103     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13105     break 2
13106   fi
13107 done
13108 done
13109 IFS=$as_save_IFS
13110
13111 fi
13112 fi
13113 STRIP=$ac_cv_prog_STRIP
13114 if test -n "$STRIP"; then
13115   { echo "$as_me:$LINENO: result: $STRIP" >&5
13116 echo "${ECHO_T}$STRIP" >&6; }
13117 else
13118   { echo "$as_me:$LINENO: result: no" >&5
13119 echo "${ECHO_T}no" >&6; }
13120 fi
13121
13122
13123 fi
13124 if test -z "$ac_cv_prog_STRIP"; then
13125   ac_ct_STRIP=$STRIP
13126   # Extract the first word of "strip", so it can be a program name with args.
13127 set dummy strip; ac_word=$2
13128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13130 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13131   echo $ECHO_N "(cached) $ECHO_C" >&6
13132 else
13133   if test -n "$ac_ct_STRIP"; then
13134   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13135 else
13136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137 for as_dir in $PATH
13138 do
13139   IFS=$as_save_IFS
13140   test -z "$as_dir" && as_dir=.
13141   for ac_exec_ext in '' $ac_executable_extensions; do
13142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13143     ac_cv_prog_ac_ct_STRIP="strip"
13144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13145     break 2
13146   fi
13147 done
13148 done
13149 IFS=$as_save_IFS
13150
13151 fi
13152 fi
13153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13154 if test -n "$ac_ct_STRIP"; then
13155   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13156 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13157 else
13158   { echo "$as_me:$LINENO: result: no" >&5
13159 echo "${ECHO_T}no" >&6; }
13160 fi
13161
13162   if test "x$ac_ct_STRIP" = x; then
13163     STRIP=":"
13164   else
13165     case $cross_compiling:$ac_tool_warned in
13166 yes:)
13167 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13168 whose name does not start with the host triplet.  If you think this
13169 configuration is useful to you, please write to autoconf@gnu.org." >&5
13170 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13171 whose name does not start with the host triplet.  If you think this
13172 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13173 ac_tool_warned=yes ;;
13174 esac
13175     STRIP=$ac_ct_STRIP
13176   fi
13177 else
13178   STRIP="$ac_cv_prog_STRIP"
13179 fi
13180
13181
13182 old_CC="$CC"
13183 old_CFLAGS="$CFLAGS"
13184
13185 # Set sane defaults for various variables
13186 test -z "$AR" && AR=ar
13187 test -z "$AR_FLAGS" && AR_FLAGS=cru
13188 test -z "$AS" && AS=as
13189 test -z "$CC" && CC=cc
13190 test -z "$LTCC" && LTCC=$CC
13191 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13192 test -z "$DLLTOOL" && DLLTOOL=dlltool
13193 test -z "$LD" && LD=ld
13194 test -z "$LN_S" && LN_S="ln -s"
13195 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13196 test -z "$NM" && NM=nm
13197 test -z "$SED" && SED=sed
13198 test -z "$OBJDUMP" && OBJDUMP=objdump
13199 test -z "$RANLIB" && RANLIB=:
13200 test -z "$STRIP" && STRIP=:
13201 test -z "$ac_objext" && ac_objext=o
13202
13203 # Determine commands to create old-style static archives.
13204 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13205 old_postinstall_cmds='chmod 644 $oldlib'
13206 old_postuninstall_cmds=
13207
13208 if test -n "$RANLIB"; then
13209   case $host_os in
13210   openbsd*)
13211     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13212     ;;
13213   *)
13214     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13215     ;;
13216   esac
13217   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13218 fi
13219
13220 for cc_temp in $compiler""; do
13221   case $cc_temp in
13222     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13223     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13224     \-*) ;;
13225     *) break;;
13226   esac
13227 done
13228 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13229
13230
13231 # Only perform the check for file, if the check method requires it
13232 case $deplibs_check_method in
13233 file_magic*)
13234   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13235     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13236 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13237 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13238   echo $ECHO_N "(cached) $ECHO_C" >&6
13239 else
13240   case $MAGIC_CMD in
13241 [\\/*] |  ?:[\\/]*)
13242   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13243   ;;
13244 *)
13245   lt_save_MAGIC_CMD="$MAGIC_CMD"
13246   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13247   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13248   for ac_dir in $ac_dummy; do
13249     IFS="$lt_save_ifs"
13250     test -z "$ac_dir" && ac_dir=.
13251     if test -f $ac_dir/${ac_tool_prefix}file; then
13252       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13253       if test -n "$file_magic_test_file"; then
13254         case $deplibs_check_method in
13255         "file_magic "*)
13256           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13257           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13258           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13259             $EGREP "$file_magic_regex" > /dev/null; then
13260             :
13261           else
13262             cat <<EOF 1>&2
13263
13264 *** Warning: the command libtool uses to detect shared libraries,
13265 *** $file_magic_cmd, produces output that libtool cannot recognize.
13266 *** The result is that libtool may fail to recognize shared libraries
13267 *** as such.  This will affect the creation of libtool libraries that
13268 *** depend on shared libraries, but programs linked with such libtool
13269 *** libraries will work regardless of this problem.  Nevertheless, you
13270 *** may want to report the problem to your system manager and/or to
13271 *** bug-libtool@gnu.org
13272
13273 EOF
13274           fi ;;
13275         esac
13276       fi
13277       break
13278     fi
13279   done
13280   IFS="$lt_save_ifs"
13281   MAGIC_CMD="$lt_save_MAGIC_CMD"
13282   ;;
13283 esac
13284 fi
13285
13286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13287 if test -n "$MAGIC_CMD"; then
13288   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13289 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13290 else
13291   { echo "$as_me:$LINENO: result: no" >&5
13292 echo "${ECHO_T}no" >&6; }
13293 fi
13294
13295 if test -z "$lt_cv_path_MAGIC_CMD"; then
13296   if test -n "$ac_tool_prefix"; then
13297     { echo "$as_me:$LINENO: checking for file" >&5
13298 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13299 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13300   echo $ECHO_N "(cached) $ECHO_C" >&6
13301 else
13302   case $MAGIC_CMD in
13303 [\\/*] |  ?:[\\/]*)
13304   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13305   ;;
13306 *)
13307   lt_save_MAGIC_CMD="$MAGIC_CMD"
13308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13309   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13310   for ac_dir in $ac_dummy; do
13311     IFS="$lt_save_ifs"
13312     test -z "$ac_dir" && ac_dir=.
13313     if test -f $ac_dir/file; then
13314       lt_cv_path_MAGIC_CMD="$ac_dir/file"
13315       if test -n "$file_magic_test_file"; then
13316         case $deplibs_check_method in
13317         "file_magic "*)
13318           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13319           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13320           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13321             $EGREP "$file_magic_regex" > /dev/null; then
13322             :
13323           else
13324             cat <<EOF 1>&2
13325
13326 *** Warning: the command libtool uses to detect shared libraries,
13327 *** $file_magic_cmd, produces output that libtool cannot recognize.
13328 *** The result is that libtool may fail to recognize shared libraries
13329 *** as such.  This will affect the creation of libtool libraries that
13330 *** depend on shared libraries, but programs linked with such libtool
13331 *** libraries will work regardless of this problem.  Nevertheless, you
13332 *** may want to report the problem to your system manager and/or to
13333 *** bug-libtool@gnu.org
13334
13335 EOF
13336           fi ;;
13337         esac
13338       fi
13339       break
13340     fi
13341   done
13342   IFS="$lt_save_ifs"
13343   MAGIC_CMD="$lt_save_MAGIC_CMD"
13344   ;;
13345 esac
13346 fi
13347
13348 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13349 if test -n "$MAGIC_CMD"; then
13350   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13351 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13352 else
13353   { echo "$as_me:$LINENO: result: no" >&5
13354 echo "${ECHO_T}no" >&6; }
13355 fi
13356
13357   else
13358     MAGIC_CMD=:
13359   fi
13360 fi
13361
13362   fi
13363   ;;
13364 esac
13365
13366 enable_dlopen=yes
13367 enable_win32_dll=no
13368
13369 # Check whether --enable-libtool-lock was given.
13370 if test "${enable_libtool_lock+set}" = set; then
13371   enableval=$enable_libtool_lock;
13372 fi
13373
13374 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13375
13376
13377 # Check whether --with-pic was given.
13378 if test "${with_pic+set}" = set; then
13379   withval=$with_pic; pic_mode="$withval"
13380 else
13381   pic_mode=default
13382 fi
13383
13384 test -z "$pic_mode" && pic_mode=default
13385
13386 # Use C for the default configuration in the libtool script
13387 tagname=
13388 lt_save_CC="$CC"
13389 ac_ext=c
13390 ac_cpp='$CPP $CPPFLAGS'
13391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13394
13395
13396 # Source file extension for C test sources.
13397 ac_ext=c
13398
13399 # Object file extension for compiled C test sources.
13400 objext=o
13401 objext=$objext
13402
13403 # Code to be used in simple compile tests
13404 lt_simple_compile_test_code="int some_variable = 0;\n"
13405
13406 # Code to be used in simple link tests
13407 lt_simple_link_test_code='int main(){return(0);}\n'
13408
13409
13410 # If no C compiler was specified, use CC.
13411 LTCC=${LTCC-"$CC"}
13412
13413 # If no C compiler flags were specified, use CFLAGS.
13414 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13415
13416 # Allow CC to be a program name with arguments.
13417 compiler=$CC
13418
13419
13420 # save warnings/boilerplate of simple test code
13421 ac_outfile=conftest.$ac_objext
13422 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13423 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13424 _lt_compiler_boilerplate=`cat conftest.err`
13425 $rm conftest*
13426
13427 ac_outfile=conftest.$ac_objext
13428 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13429 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13430 _lt_linker_boilerplate=`cat conftest.err`
13431 $rm conftest*
13432
13433
13434
13435 lt_prog_compiler_no_builtin_flag=
13436
13437 if test "$GCC" = yes; then
13438   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13439
13440
13441 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13442 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
13443 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13444   echo $ECHO_N "(cached) $ECHO_C" >&6
13445 else
13446   lt_cv_prog_compiler_rtti_exceptions=no
13447   ac_outfile=conftest.$ac_objext
13448    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13449    lt_compiler_flag="-fno-rtti -fno-exceptions"
13450    # Insert the option either (1) after the last *FLAGS variable, or
13451    # (2) before a word containing "conftest.", or (3) at the end.
13452    # Note that $ac_compile itself does not contain backslashes and begins
13453    # with a dollar sign (not a hyphen), so the echo should work correctly.
13454    # The option is referenced via a variable to avoid confusing sed.
13455    lt_compile=`echo "$ac_compile" | $SED \
13456    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13457    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13458    -e 's:$: $lt_compiler_flag:'`
13459    (eval echo "\"\$as_me:13459: $lt_compile\"" >&5)
13460    (eval "$lt_compile" 2>conftest.err)
13461    ac_status=$?
13462    cat conftest.err >&5
13463    echo "$as_me:13463: \$? = $ac_status" >&5
13464    if (exit $ac_status) && test -s "$ac_outfile"; then
13465      # The compiler can only warn and ignore the option if not recognized
13466      # So say no if there are warnings other than the usual output.
13467      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13468      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13469      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13470        lt_cv_prog_compiler_rtti_exceptions=yes
13471      fi
13472    fi
13473    $rm conftest*
13474
13475 fi
13476 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13477 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13478
13479 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13480     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13481 else
13482     :
13483 fi
13484
13485 fi
13486
13487 lt_prog_compiler_wl=
13488 lt_prog_compiler_pic=
13489 lt_prog_compiler_static=
13490
13491 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13492 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13493
13494   if test "$GCC" = yes; then
13495     lt_prog_compiler_wl='-Wl,'
13496     lt_prog_compiler_static='-static'
13497
13498     case $host_os in
13499       aix*)
13500       # All AIX code is PIC.
13501       if test "$host_cpu" = ia64; then
13502         # AIX 5 now supports IA64 processor
13503         lt_prog_compiler_static='-Bstatic'
13504       fi
13505       ;;
13506
13507     amigaos*)
13508       # FIXME: we need at least 68020 code to build shared libraries, but
13509       # adding the `-m68020' flag to GCC prevents building anything better,
13510       # like `-m68040'.
13511       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13512       ;;
13513
13514     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13515       # PIC is the default for these OSes.
13516       ;;
13517
13518     mingw* | pw32* | os2*)
13519       # This hack is so that the source file can tell whether it is being
13520       # built for inclusion in a dll (and should export symbols for example).
13521       lt_prog_compiler_pic='-DDLL_EXPORT'
13522       ;;
13523
13524     darwin* | rhapsody*)
13525       # PIC is the default on this platform
13526       # Common symbols not allowed in MH_DYLIB files
13527       lt_prog_compiler_pic='-fno-common'
13528       ;;
13529
13530     interix3*)
13531       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13532       # Instead, we relocate shared libraries at runtime.
13533       ;;
13534
13535     msdosdjgpp*)
13536       # Just because we use GCC doesn't mean we suddenly get shared libraries
13537       # on systems that don't support them.
13538       lt_prog_compiler_can_build_shared=no
13539       enable_shared=no
13540       ;;
13541
13542     sysv4*MP*)
13543       if test -d /usr/nec; then
13544         lt_prog_compiler_pic=-Kconform_pic
13545       fi
13546       ;;
13547
13548     hpux*)
13549       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13550       # not for PA HP-UX.
13551       case $host_cpu in
13552       hppa*64*|ia64*)
13553         # +Z the default
13554         ;;
13555       *)
13556         lt_prog_compiler_pic='-fPIC'
13557         ;;
13558       esac
13559       ;;
13560
13561     *)
13562       lt_prog_compiler_pic='-fPIC'
13563       ;;
13564     esac
13565   else
13566     # PORTME Check for flag to pass linker flags through the system compiler.
13567     case $host_os in
13568     aix*)
13569       lt_prog_compiler_wl='-Wl,'
13570       if test "$host_cpu" = ia64; then
13571         # AIX 5 now supports IA64 processor
13572         lt_prog_compiler_static='-Bstatic'
13573       else
13574         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13575       fi
13576       ;;
13577       darwin*)
13578         # PIC is the default on this platform
13579         # Common symbols not allowed in MH_DYLIB files
13580        case $cc_basename in
13581          xlc*)
13582          lt_prog_compiler_pic='-qnocommon'
13583          lt_prog_compiler_wl='-Wl,'
13584          ;;
13585        esac
13586        ;;
13587
13588     mingw* | pw32* | os2*)
13589       # This hack is so that the source file can tell whether it is being
13590       # built for inclusion in a dll (and should export symbols for example).
13591       lt_prog_compiler_pic='-DDLL_EXPORT'
13592       ;;
13593
13594     hpux9* | hpux10* | hpux11*)
13595       lt_prog_compiler_wl='-Wl,'
13596       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13597       # not for PA HP-UX.
13598       case $host_cpu in
13599       hppa*64*|ia64*)
13600         # +Z the default
13601         ;;
13602       *)
13603         lt_prog_compiler_pic='+Z'
13604         ;;
13605       esac
13606       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13607       lt_prog_compiler_static='${wl}-a ${wl}archive'
13608       ;;
13609
13610     irix5* | irix6* | nonstopux*)
13611       lt_prog_compiler_wl='-Wl,'
13612       # PIC (with -KPIC) is the default.
13613       lt_prog_compiler_static='-non_shared'
13614       ;;
13615
13616     newsos6)
13617       lt_prog_compiler_pic='-KPIC'
13618       lt_prog_compiler_static='-Bstatic'
13619       ;;
13620
13621     linux*)
13622       case $cc_basename in
13623       icc* | ecc*)
13624         lt_prog_compiler_wl='-Wl,'
13625         lt_prog_compiler_pic='-KPIC'
13626         lt_prog_compiler_static='-static'
13627         ;;
13628       pgcc* | pgf77* | pgf90* | pgf95*)
13629         # Portland Group compilers (*not* the Pentium gcc compiler,
13630         # which looks to be a dead project)
13631         lt_prog_compiler_wl='-Wl,'
13632         lt_prog_compiler_pic='-fpic'
13633         lt_prog_compiler_static='-Bstatic'
13634         ;;
13635       ccc*)
13636         lt_prog_compiler_wl='-Wl,'
13637         # All Alpha code is PIC.
13638         lt_prog_compiler_static='-non_shared'
13639         ;;
13640       esac
13641       ;;
13642
13643     osf3* | osf4* | osf5*)
13644       lt_prog_compiler_wl='-Wl,'
13645       # All OSF/1 code is PIC.
13646       lt_prog_compiler_static='-non_shared'
13647       ;;
13648
13649     solaris*)
13650       lt_prog_compiler_pic='-KPIC'
13651       lt_prog_compiler_static='-Bstatic'
13652       case $cc_basename in
13653       f77* | f90* | f95*)
13654         lt_prog_compiler_wl='-Qoption ld ';;
13655       *)
13656         lt_prog_compiler_wl='-Wl,';;
13657       esac
13658       ;;
13659
13660     sunos4*)
13661       lt_prog_compiler_wl='-Qoption ld '
13662       lt_prog_compiler_pic='-PIC'
13663       lt_prog_compiler_static='-Bstatic'
13664       ;;
13665
13666     sysv4 | sysv4.2uw2* | sysv4.3*)
13667       lt_prog_compiler_wl='-Wl,'
13668       lt_prog_compiler_pic='-KPIC'
13669       lt_prog_compiler_static='-Bstatic'
13670       ;;
13671
13672     sysv4*MP*)
13673       if test -d /usr/nec ;then
13674         lt_prog_compiler_pic='-Kconform_pic'
13675         lt_prog_compiler_static='-Bstatic'
13676       fi
13677       ;;
13678
13679     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13680       lt_prog_compiler_wl='-Wl,'
13681       lt_prog_compiler_pic='-KPIC'
13682       lt_prog_compiler_static='-Bstatic'
13683       ;;
13684
13685     unicos*)
13686       lt_prog_compiler_wl='-Wl,'
13687       lt_prog_compiler_can_build_shared=no
13688       ;;
13689
13690     uts4*)
13691       lt_prog_compiler_pic='-pic'
13692       lt_prog_compiler_static='-Bstatic'
13693       ;;
13694
13695     *)
13696       lt_prog_compiler_can_build_shared=no
13697       ;;
13698     esac
13699   fi
13700
13701 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13702 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
13703
13704 #
13705 # Check to make sure the PIC flag actually works.
13706 #
13707 if test -n "$lt_prog_compiler_pic"; then
13708
13709 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13710 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
13711 if test "${lt_prog_compiler_pic_works+set}" = set; then
13712   echo $ECHO_N "(cached) $ECHO_C" >&6
13713 else
13714   lt_prog_compiler_pic_works=no
13715   ac_outfile=conftest.$ac_objext
13716    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13717    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13718    # Insert the option either (1) after the last *FLAGS variable, or
13719    # (2) before a word containing "conftest.", or (3) at the end.
13720    # Note that $ac_compile itself does not contain backslashes and begins
13721    # with a dollar sign (not a hyphen), so the echo should work correctly.
13722    # The option is referenced via a variable to avoid confusing sed.
13723    lt_compile=`echo "$ac_compile" | $SED \
13724    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13725    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13726    -e 's:$: $lt_compiler_flag:'`
13727    (eval echo "\"\$as_me:13727: $lt_compile\"" >&5)
13728    (eval "$lt_compile" 2>conftest.err)
13729    ac_status=$?
13730    cat conftest.err >&5
13731    echo "$as_me:13731: \$? = $ac_status" >&5
13732    if (exit $ac_status) && test -s "$ac_outfile"; then
13733      # The compiler can only warn and ignore the option if not recognized
13734      # So say no if there are warnings other than the usual output.
13735      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13736      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13737      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13738        lt_prog_compiler_pic_works=yes
13739      fi
13740    fi
13741    $rm conftest*
13742
13743 fi
13744 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13745 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
13746
13747 if test x"$lt_prog_compiler_pic_works" = xyes; then
13748     case $lt_prog_compiler_pic in
13749      "" | " "*) ;;
13750      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13751      esac
13752 else
13753     lt_prog_compiler_pic=
13754      lt_prog_compiler_can_build_shared=no
13755 fi
13756
13757 fi
13758 case $host_os in
13759   # For platforms which do not support PIC, -DPIC is meaningless:
13760   *djgpp*)
13761     lt_prog_compiler_pic=
13762     ;;
13763   *)
13764     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13765     ;;
13766 esac
13767
13768 #
13769 # Check to make sure the static flag actually works.
13770 #
13771 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13772 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13773 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13774 if test "${lt_prog_compiler_static_works+set}" = set; then
13775   echo $ECHO_N "(cached) $ECHO_C" >&6
13776 else
13777   lt_prog_compiler_static_works=no
13778    save_LDFLAGS="$LDFLAGS"
13779    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13780    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13781    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13782      # The linker can only warn and ignore the option if not recognized
13783      # So say no if there are warnings
13784      if test -s conftest.err; then
13785        # Append any errors to the config.log.
13786        cat conftest.err 1>&5
13787        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13788        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13789        if diff conftest.exp conftest.er2 >/dev/null; then
13790          lt_prog_compiler_static_works=yes
13791        fi
13792      else
13793        lt_prog_compiler_static_works=yes
13794      fi
13795    fi
13796    $rm conftest*
13797    LDFLAGS="$save_LDFLAGS"
13798
13799 fi
13800 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13801 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
13802
13803 if test x"$lt_prog_compiler_static_works" = xyes; then
13804     :
13805 else
13806     lt_prog_compiler_static=
13807 fi
13808
13809
13810 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13811 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13812 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13813   echo $ECHO_N "(cached) $ECHO_C" >&6
13814 else
13815   lt_cv_prog_compiler_c_o=no
13816    $rm -r conftest 2>/dev/null
13817    mkdir conftest
13818    cd conftest
13819    mkdir out
13820    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13821
13822    lt_compiler_flag="-o out/conftest2.$ac_objext"
13823    # Insert the option either (1) after the last *FLAGS variable, or
13824    # (2) before a word containing "conftest.", or (3) at the end.
13825    # Note that $ac_compile itself does not contain backslashes and begins
13826    # with a dollar sign (not a hyphen), so the echo should work correctly.
13827    lt_compile=`echo "$ac_compile" | $SED \
13828    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13829    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13830    -e 's:$: $lt_compiler_flag:'`
13831    (eval echo "\"\$as_me:13831: $lt_compile\"" >&5)
13832    (eval "$lt_compile" 2>out/conftest.err)
13833    ac_status=$?
13834    cat out/conftest.err >&5
13835    echo "$as_me:13835: \$? = $ac_status" >&5
13836    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13837    then
13838      # The compiler can only warn and ignore the option if not recognized
13839      # So say no if there are warnings
13840      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13841      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13842      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13843        lt_cv_prog_compiler_c_o=yes
13844      fi
13845    fi
13846    chmod u+w . 2>&5
13847    $rm conftest*
13848    # SGI C++ compiler will create directory out/ii_files/ for
13849    # template instantiation
13850    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13851    $rm out/* && rmdir out
13852    cd ..
13853    rmdir conftest
13854    $rm conftest*
13855
13856 fi
13857 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13858 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
13859
13860
13861 hard_links="nottested"
13862 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13863   # do not overwrite the value of need_locks provided by the user
13864   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13865 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13866   hard_links=yes
13867   $rm conftest*
13868   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13869   touch conftest.a
13870   ln conftest.a conftest.b 2>&5 || hard_links=no
13871   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13872   { echo "$as_me:$LINENO: result: $hard_links" >&5
13873 echo "${ECHO_T}$hard_links" >&6; }
13874   if test "$hard_links" = no; then
13875     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13876 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13877     need_locks=warn
13878   fi
13879 else
13880   need_locks=no
13881 fi
13882
13883 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13884 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13885
13886   runpath_var=
13887   allow_undefined_flag=
13888   enable_shared_with_static_runtimes=no
13889   archive_cmds=
13890   archive_expsym_cmds=
13891   old_archive_From_new_cmds=
13892   old_archive_from_expsyms_cmds=
13893   export_dynamic_flag_spec=
13894   whole_archive_flag_spec=
13895   thread_safe_flag_spec=
13896   hardcode_libdir_flag_spec=
13897   hardcode_libdir_flag_spec_ld=
13898   hardcode_libdir_separator=
13899   hardcode_direct=no
13900   hardcode_minus_L=no
13901   hardcode_shlibpath_var=unsupported
13902   link_all_deplibs=unknown
13903   hardcode_automatic=no
13904   module_cmds=
13905   module_expsym_cmds=
13906   always_export_symbols=no
13907   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13908   # include_expsyms should be a list of space-separated symbols to be *always*
13909   # included in the symbol list
13910   include_expsyms=
13911   # exclude_expsyms can be an extended regexp of symbols to exclude
13912   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13913   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13914   # as well as any symbol that contains `d'.
13915   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13916   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13917   # platforms (ab)use it in PIC code, but their linkers get confused if
13918   # the symbol is explicitly referenced.  Since portable code cannot
13919   # rely on this symbol name, it's probably fine to never include it in
13920   # preloaded symbol tables.
13921   extract_expsyms_cmds=
13922   # Just being paranoid about ensuring that cc_basename is set.
13923   for cc_temp in $compiler""; do
13924   case $cc_temp in
13925     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13926     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13927     \-*) ;;
13928     *) break;;
13929   esac
13930 done
13931 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13932
13933   case $host_os in
13934   cygwin* | mingw* | pw32*)
13935     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13936     # When not using gcc, we currently assume that we are using
13937     # Microsoft Visual C++.
13938     if test "$GCC" != yes; then
13939       with_gnu_ld=no
13940     fi
13941     ;;
13942   interix*)
13943     # we just hope/assume this is gcc and not c89 (= MSVC++)
13944     with_gnu_ld=yes
13945     ;;
13946   openbsd*)
13947     with_gnu_ld=no
13948     ;;
13949   esac
13950
13951   ld_shlibs=yes
13952   if test "$with_gnu_ld" = yes; then
13953     # If archive_cmds runs LD, not CC, wlarc should be empty
13954     wlarc='${wl}'
13955
13956     # Set some defaults for GNU ld with shared library support. These
13957     # are reset later if shared libraries are not supported. Putting them
13958     # here allows them to be overridden if necessary.
13959     runpath_var=LD_RUN_PATH
13960     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13961     export_dynamic_flag_spec='${wl}--export-dynamic'
13962     # ancient GNU ld didn't support --whole-archive et. al.
13963     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13964         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13965       else
13966         whole_archive_flag_spec=
13967     fi
13968     supports_anon_versioning=no
13969     case `$LD -v 2>/dev/null` in
13970       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13971       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13972       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13973       *\ 2.11.*) ;; # other 2.11 versions
13974       *) supports_anon_versioning=yes ;;
13975     esac
13976
13977     # See if GNU ld supports shared libraries.
13978     case $host_os in
13979     aix3* | aix4* | aix5*)
13980       # On AIX/PPC, the GNU linker is very broken
13981       if test "$host_cpu" != ia64; then
13982         ld_shlibs=no
13983         cat <<EOF 1>&2
13984
13985 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13986 *** to be unable to reliably create shared libraries on AIX.
13987 *** Therefore, libtool is disabling shared libraries support.  If you
13988 *** really care for shared libraries, you may want to modify your PATH
13989 *** so that a non-GNU linker is found, and then restart.
13990
13991 EOF
13992       fi
13993       ;;
13994
13995     amigaos*)
13996       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)'
13997       hardcode_libdir_flag_spec='-L$libdir'
13998       hardcode_minus_L=yes
13999
14000       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14001       # that the semantics of dynamic libraries on AmigaOS, at least up
14002       # to version 4, is to share data among multiple programs linked
14003       # with the same dynamic library.  Since this doesn't match the
14004       # behavior of shared libraries on other platforms, we can't use
14005       # them.
14006       ld_shlibs=no
14007       ;;
14008
14009     beos*)
14010       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14011         allow_undefined_flag=unsupported
14012         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14013         # support --undefined.  This deserves some investigation.  FIXME
14014         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14015       else
14016         ld_shlibs=no
14017       fi
14018       ;;
14019
14020     cygwin* | mingw* | pw32*)
14021       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14022       # as there is no search path for DLLs.
14023       hardcode_libdir_flag_spec='-L$libdir'
14024       allow_undefined_flag=unsupported
14025       always_export_symbols=no
14026       enable_shared_with_static_runtimes=yes
14027       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14028
14029       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14030         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14031         # If the export-symbols file already is a .def file (1st line
14032         # is EXPORTS), use it as is; otherwise, prepend...
14033         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14034           cp $export_symbols $output_objdir/$soname.def;
14035         else
14036           echo EXPORTS > $output_objdir/$soname.def;
14037           cat $export_symbols >> $output_objdir/$soname.def;
14038         fi~
14039         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14040       else
14041         ld_shlibs=no
14042       fi
14043       ;;
14044
14045     interix3*)
14046       hardcode_direct=no
14047       hardcode_shlibpath_var=no
14048       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14049       export_dynamic_flag_spec='${wl}-E'
14050       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14051       # Instead, shared libraries are loaded at an image base (0x10000000 by
14052       # default) and relocated if they conflict, which is a slow very memory
14053       # consuming and fragmenting process.  To avoid this, we pick a random,
14054       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14055       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14056       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14057       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'
14058       ;;
14059
14060     linux*)
14061       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14062         tmp_addflag=
14063         case $cc_basename,$host_cpu in
14064         pgcc*)                          # Portland Group C compiler
14065           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'
14066           tmp_addflag=' $pic_flag'
14067           ;;
14068         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14069           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'
14070           tmp_addflag=' $pic_flag -Mnomain' ;;
14071         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14072           tmp_addflag=' -i_dynamic' ;;
14073         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14074           tmp_addflag=' -i_dynamic -nofor_main' ;;
14075         ifc* | ifort*)                  # Intel Fortran compiler
14076           tmp_addflag=' -nofor_main' ;;
14077         esac
14078         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14079
14080         if test $supports_anon_versioning = yes; then
14081           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14082   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14083   $echo "local: *; };" >> $output_objdir/$libname.ver~
14084           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14085         fi
14086       else
14087         ld_shlibs=no
14088       fi
14089       ;;
14090
14091     netbsd*)
14092       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14093         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14094         wlarc=
14095       else
14096         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14097         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14098       fi
14099       ;;
14100
14101     solaris*)
14102       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14103         ld_shlibs=no
14104         cat <<EOF 1>&2
14105
14106 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14107 *** create shared libraries on Solaris systems.  Therefore, libtool
14108 *** is disabling shared libraries support.  We urge you to upgrade GNU
14109 *** binutils to release 2.9.1 or newer.  Another option is to modify
14110 *** your PATH or compiler configuration so that the native linker is
14111 *** used, and then restart.
14112
14113 EOF
14114       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14115         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14116         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14117       else
14118         ld_shlibs=no
14119       fi
14120       ;;
14121
14122     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14123       case `$LD -v 2>&1` in
14124         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14125         ld_shlibs=no
14126         cat <<_LT_EOF 1>&2
14127
14128 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14129 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14130 *** is disabling shared libraries support.  We urge you to upgrade GNU
14131 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14132 *** your PATH or compiler configuration so that the native linker is
14133 *** used, and then restart.
14134
14135 _LT_EOF
14136         ;;
14137         *)
14138           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14139             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14140             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14141             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14142           else
14143             ld_shlibs=no
14144           fi
14145         ;;
14146       esac
14147       ;;
14148
14149     sunos4*)
14150       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14151       wlarc=
14152       hardcode_direct=yes
14153       hardcode_shlibpath_var=no
14154       ;;
14155
14156     *)
14157       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14158         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14159         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14160       else
14161         ld_shlibs=no
14162       fi
14163       ;;
14164     esac
14165
14166     if test "$ld_shlibs" = no; then
14167       runpath_var=
14168       hardcode_libdir_flag_spec=
14169       export_dynamic_flag_spec=
14170       whole_archive_flag_spec=
14171     fi
14172   else
14173     # PORTME fill in a description of your system's linker (not GNU ld)
14174     case $host_os in
14175     aix3*)
14176       allow_undefined_flag=unsupported
14177       always_export_symbols=yes
14178       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'
14179       # Note: this linker hardcodes the directories in LIBPATH if there
14180       # are no directories specified by -L.
14181       hardcode_minus_L=yes
14182       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14183         # Neither direct hardcoding nor static linking is supported with a
14184         # broken collect2.
14185         hardcode_direct=unsupported
14186       fi
14187       ;;
14188
14189     aix4* | aix5*)
14190       if test "$host_cpu" = ia64; then
14191         # On IA64, the linker does run time linking by default, so we don't
14192         # have to do anything special.
14193         aix_use_runtimelinking=no
14194         exp_sym_flag='-Bexport'
14195         no_entry_flag=""
14196       else
14197         # If we're using GNU nm, then we don't want the "-C" option.
14198         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14199         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14200           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'
14201         else
14202           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'
14203         fi
14204         aix_use_runtimelinking=no
14205
14206         # Test if we are trying to use run time linking or normal
14207         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14208         # need to do runtime linking.
14209         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14210           for ld_flag in $LDFLAGS; do
14211           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14212             aix_use_runtimelinking=yes
14213             break
14214           fi
14215           done
14216           ;;
14217         esac
14218
14219         exp_sym_flag='-bexport'
14220         no_entry_flag='-bnoentry'
14221       fi
14222
14223       # When large executables or shared objects are built, AIX ld can
14224       # have problems creating the table of contents.  If linking a library
14225       # or program results in "error TOC overflow" add -mminimal-toc to
14226       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14227       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14228
14229       archive_cmds=''
14230       hardcode_direct=yes
14231       hardcode_libdir_separator=':'
14232       link_all_deplibs=yes
14233
14234       if test "$GCC" = yes; then
14235         case $host_os in aix4.[012]|aix4.[012].*)
14236         # We only want to do this on AIX 4.2 and lower, the check
14237         # below for broken collect2 doesn't work under 4.3+
14238           collect2name=`${CC} -print-prog-name=collect2`
14239           if test -f "$collect2name" && \
14240            strings "$collect2name" | grep resolve_lib_name >/dev/null
14241           then
14242           # We have reworked collect2
14243           hardcode_direct=yes
14244           else
14245           # We have old collect2
14246           hardcode_direct=unsupported
14247           # It fails to find uninstalled libraries when the uninstalled
14248           # path is not listed in the libpath.  Setting hardcode_minus_L
14249           # to unsupported forces relinking
14250           hardcode_minus_L=yes
14251           hardcode_libdir_flag_spec='-L$libdir'
14252           hardcode_libdir_separator=
14253           fi
14254           ;;
14255         esac
14256         shared_flag='-shared'
14257         if test "$aix_use_runtimelinking" = yes; then
14258           shared_flag="$shared_flag "'${wl}-G'
14259         fi
14260       else
14261         # not using gcc
14262         if test "$host_cpu" = ia64; then
14263         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14264         # chokes on -Wl,-G. The following line is correct:
14265           shared_flag='-G'
14266         else
14267           if test "$aix_use_runtimelinking" = yes; then
14268             shared_flag='${wl}-G'
14269           else
14270             shared_flag='${wl}-bM:SRE'
14271           fi
14272         fi
14273       fi
14274
14275       # It seems that -bexpall does not export symbols beginning with
14276       # underscore (_), so it is better to generate a list of symbols to export.
14277       always_export_symbols=yes
14278       if test "$aix_use_runtimelinking" = yes; then
14279         # Warning - without using the other runtime loading flags (-brtl),
14280         # -berok will link without error, but may produce a broken library.
14281         allow_undefined_flag='-berok'
14282        # Determine the default libpath from the value encoded in an empty executable.
14283        cat >conftest.$ac_ext <<_ACEOF
14284 /* confdefs.h.  */
14285 _ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h.  */
14289
14290 int
14291 main ()
14292 {
14293
14294   ;
14295   return 0;
14296 }
14297 _ACEOF
14298 rm -f conftest.$ac_objext conftest$ac_exeext
14299 if { (ac_try="$ac_link"
14300 case "(($ac_try" in
14301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302   *) ac_try_echo=$ac_try;;
14303 esac
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305   (eval "$ac_link") 2>conftest.er1
14306   ac_status=$?
14307   grep -v '^ *+' conftest.er1 >conftest.err
14308   rm -f conftest.er1
14309   cat conftest.err >&5
14310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311   (exit $ac_status); } && {
14312          test -z "$ac_c_werror_flag" ||
14313          test ! -s conftest.err
14314        } && test -s conftest$ac_exeext &&
14315        $as_test_x conftest$ac_exeext; then
14316
14317 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14318 }'`
14319 # Check for a 64-bit object if we didn't find anything.
14320 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; }
14321 }'`; fi
14322 else
14323   echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14325
14326
14327 fi
14328
14329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14330       conftest$ac_exeext conftest.$ac_ext
14331 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14332
14333        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14334         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"
14335        else
14336         if test "$host_cpu" = ia64; then
14337           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14338           allow_undefined_flag="-z nodefs"
14339           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"
14340         else
14341          # Determine the default libpath from the value encoded in an empty executable.
14342          cat >conftest.$ac_ext <<_ACEOF
14343 /* confdefs.h.  */
14344 _ACEOF
14345 cat confdefs.h >>conftest.$ac_ext
14346 cat >>conftest.$ac_ext <<_ACEOF
14347 /* end confdefs.h.  */
14348
14349 int
14350 main ()
14351 {
14352
14353   ;
14354   return 0;
14355 }
14356 _ACEOF
14357 rm -f conftest.$ac_objext conftest$ac_exeext
14358 if { (ac_try="$ac_link"
14359 case "(($ac_try" in
14360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361   *) ac_try_echo=$ac_try;;
14362 esac
14363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364   (eval "$ac_link") 2>conftest.er1
14365   ac_status=$?
14366   grep -v '^ *+' conftest.er1 >conftest.err
14367   rm -f conftest.er1
14368   cat conftest.err >&5
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); } && {
14371          test -z "$ac_c_werror_flag" ||
14372          test ! -s conftest.err
14373        } && test -s conftest$ac_exeext &&
14374        $as_test_x conftest$ac_exeext; then
14375
14376 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14377 }'`
14378 # Check for a 64-bit object if we didn't find anything.
14379 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; }
14380 }'`; fi
14381 else
14382   echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.$ac_ext >&5
14384
14385
14386 fi
14387
14388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14389       conftest$ac_exeext conftest.$ac_ext
14390 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14391
14392          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14393           # Warning - without using the other run time loading flags,
14394           # -berok will link without error, but may produce a broken library.
14395           no_undefined_flag=' ${wl}-bernotok'
14396           allow_undefined_flag=' ${wl}-berok'
14397           # Exported symbols can be pulled into shared objects from archives
14398           whole_archive_flag_spec='$convenience'
14399           archive_cmds_need_lc=yes
14400           # This is similar to how AIX traditionally builds its shared libraries.
14401           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'
14402         fi
14403       fi
14404       ;;
14405
14406     amigaos*)
14407       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)'
14408       hardcode_libdir_flag_spec='-L$libdir'
14409       hardcode_minus_L=yes
14410       # see comment about different semantics on the GNU ld section
14411       ld_shlibs=no
14412       ;;
14413
14414     bsdi[45]*)
14415       export_dynamic_flag_spec=-rdynamic
14416       ;;
14417
14418     cygwin* | mingw* | pw32*)
14419       # When not using gcc, we currently assume that we are using
14420       # Microsoft Visual C++.
14421       # hardcode_libdir_flag_spec is actually meaningless, as there is
14422       # no search path for DLLs.
14423       hardcode_libdir_flag_spec=' '
14424       allow_undefined_flag=unsupported
14425       # Tell ltmain to make .lib files, not .a files.
14426       libext=lib
14427       # Tell ltmain to make .dll files, not .so files.
14428       shrext_cmds=".dll"
14429       # FIXME: Setting linknames here is a bad hack.
14430       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14431       # The linker will automatically build a .lib file if we build a DLL.
14432       old_archive_From_new_cmds='true'
14433       # FIXME: Should let the user specify the lib program.
14434       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14435       fix_srcfile_path='`cygpath -w "$srcfile"`'
14436       enable_shared_with_static_runtimes=yes
14437       ;;
14438
14439     darwin* | rhapsody*)
14440       case $host_os in
14441         rhapsody* | darwin1.[012])
14442          allow_undefined_flag='${wl}-undefined ${wl}suppress'
14443          ;;
14444        *) # Darwin 1.3 on
14445          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14446            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14447          else
14448            case ${MACOSX_DEPLOYMENT_TARGET} in
14449              10.[012])
14450                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14451                ;;
14452              10.*)
14453                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14454                ;;
14455            esac
14456          fi
14457          ;;
14458       esac
14459       archive_cmds_need_lc=no
14460       hardcode_direct=no
14461       hardcode_automatic=yes
14462       hardcode_shlibpath_var=unsupported
14463       whole_archive_flag_spec=''
14464       link_all_deplibs=yes
14465     if test "$GCC" = yes ; then
14466         output_verbose_link_cmd='echo'
14467         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14468       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14469       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14470       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}'
14471       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}'
14472     else
14473       case $cc_basename in
14474         xlc*)
14475          output_verbose_link_cmd='echo'
14476          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14477          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14478           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14479          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}'
14480           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}'
14481           ;;
14482        *)
14483          ld_shlibs=no
14484           ;;
14485       esac
14486     fi
14487       ;;
14488
14489     dgux*)
14490       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14491       hardcode_libdir_flag_spec='-L$libdir'
14492       hardcode_shlibpath_var=no
14493       ;;
14494
14495     freebsd1*)
14496       ld_shlibs=no
14497       ;;
14498
14499     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14500     # support.  Future versions do this automatically, but an explicit c++rt0.o
14501     # does not break anything, and helps significantly (at the cost of a little
14502     # extra space).
14503     freebsd2.2*)
14504       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14505       hardcode_libdir_flag_spec='-R$libdir'
14506       hardcode_direct=yes
14507       hardcode_shlibpath_var=no
14508       ;;
14509
14510     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14511     freebsd2*)
14512       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14513       hardcode_direct=yes
14514       hardcode_minus_L=yes
14515       hardcode_shlibpath_var=no
14516       ;;
14517
14518     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14519     freebsd* | kfreebsd*-gnu | dragonfly*)
14520       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14521       hardcode_libdir_flag_spec='-R$libdir'
14522       hardcode_direct=yes
14523       hardcode_shlibpath_var=no
14524       ;;
14525
14526     hpux9*)
14527       if test "$GCC" = yes; then
14528         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'
14529       else
14530         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'
14531       fi
14532       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14533       hardcode_libdir_separator=:
14534       hardcode_direct=yes
14535
14536       # hardcode_minus_L: Not really in the search PATH,
14537       # but as the default location of the library.
14538       hardcode_minus_L=yes
14539       export_dynamic_flag_spec='${wl}-E'
14540       ;;
14541
14542     hpux10*)
14543       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14544         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14545       else
14546         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14547       fi
14548       if test "$with_gnu_ld" = no; then
14549         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14550         hardcode_libdir_separator=:
14551
14552         hardcode_direct=yes
14553         export_dynamic_flag_spec='${wl}-E'
14554
14555         # hardcode_minus_L: Not really in the search PATH,
14556         # but as the default location of the library.
14557         hardcode_minus_L=yes
14558       fi
14559       ;;
14560
14561     hpux11*)
14562       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14563         case $host_cpu in
14564         hppa*64*)
14565           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14566           ;;
14567         ia64*)
14568           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14569           ;;
14570         *)
14571           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14572           ;;
14573         esac
14574       else
14575         case $host_cpu in
14576         hppa*64*)
14577           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14578           ;;
14579         ia64*)
14580           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14581           ;;
14582         *)
14583           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14584           ;;
14585         esac
14586       fi
14587       if test "$with_gnu_ld" = no; then
14588         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14589         hardcode_libdir_separator=:
14590
14591         case $host_cpu in
14592         hppa*64*|ia64*)
14593           hardcode_libdir_flag_spec_ld='+b $libdir'
14594           hardcode_direct=no
14595           hardcode_shlibpath_var=no
14596           ;;
14597         *)
14598           hardcode_direct=yes
14599           export_dynamic_flag_spec='${wl}-E'
14600
14601           # hardcode_minus_L: Not really in the search PATH,
14602           # but as the default location of the library.
14603           hardcode_minus_L=yes
14604           ;;
14605         esac
14606       fi
14607       ;;
14608
14609     irix5* | irix6* | nonstopux*)
14610       if test "$GCC" = yes; then
14611         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'
14612       else
14613         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'
14614         hardcode_libdir_flag_spec_ld='-rpath $libdir'
14615       fi
14616       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14617       hardcode_libdir_separator=:
14618       link_all_deplibs=yes
14619       ;;
14620
14621     netbsd*)
14622       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14623         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14624       else
14625         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14626       fi
14627       hardcode_libdir_flag_spec='-R$libdir'
14628       hardcode_direct=yes
14629       hardcode_shlibpath_var=no
14630       ;;
14631
14632     newsos6)
14633       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14634       hardcode_direct=yes
14635       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14636       hardcode_libdir_separator=:
14637       hardcode_shlibpath_var=no
14638       ;;
14639
14640     openbsd*)
14641       hardcode_direct=yes
14642       hardcode_shlibpath_var=no
14643       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14644         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14645         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14646         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14647         export_dynamic_flag_spec='${wl}-E'
14648       else
14649        case $host_os in
14650          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14651            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14652            hardcode_libdir_flag_spec='-R$libdir'
14653            ;;
14654          *)
14655            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14656            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14657            ;;
14658        esac
14659       fi
14660       ;;
14661
14662     os2*)
14663       hardcode_libdir_flag_spec='-L$libdir'
14664       hardcode_minus_L=yes
14665       allow_undefined_flag=unsupported
14666       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'
14667       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14668       ;;
14669
14670     osf3*)
14671       if test "$GCC" = yes; then
14672         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14673         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'
14674       else
14675         allow_undefined_flag=' -expect_unresolved \*'
14676         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'
14677       fi
14678       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14679       hardcode_libdir_separator=:
14680       ;;
14681
14682     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14683       if test "$GCC" = yes; then
14684         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14685         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'
14686         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14687       else
14688         allow_undefined_flag=' -expect_unresolved \*'
14689         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'
14690         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14691         $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'
14692
14693         # Both c and cxx compiler support -rpath directly
14694         hardcode_libdir_flag_spec='-rpath $libdir'
14695       fi
14696       hardcode_libdir_separator=:
14697       ;;
14698
14699     solaris*)
14700       no_undefined_flag=' -z text'
14701       if test "$GCC" = yes; then
14702         wlarc='${wl}'
14703         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14704         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14705           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14706       else
14707         wlarc=''
14708         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14709         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14710         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14711       fi
14712       hardcode_libdir_flag_spec='-R$libdir'
14713       hardcode_shlibpath_var=no
14714       case $host_os in
14715       solaris2.[0-5] | solaris2.[0-5].*) ;;
14716       *)
14717         # The compiler driver will combine linker options so we
14718         # cannot just pass the convience library names through
14719         # without $wl, iff we do not link with $LD.
14720         # Luckily, gcc supports the same syntax we need for Sun Studio.
14721         # Supported since Solaris 2.6 (maybe 2.5.1?)
14722         case $wlarc in
14723         '')
14724           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14725         *)
14726           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' ;;
14727         esac ;;
14728       esac
14729       link_all_deplibs=yes
14730       ;;
14731
14732     sunos4*)
14733       if test "x$host_vendor" = xsequent; then
14734         # Use $CC to link under sequent, because it throws in some extra .o
14735         # files that make .init and .fini sections work.
14736         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14737       else
14738         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14739       fi
14740       hardcode_libdir_flag_spec='-L$libdir'
14741       hardcode_direct=yes
14742       hardcode_minus_L=yes
14743       hardcode_shlibpath_var=no
14744       ;;
14745
14746     sysv4)
14747       case $host_vendor in
14748         sni)
14749           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14750           hardcode_direct=yes # is this really true???
14751         ;;
14752         siemens)
14753           ## LD is ld it makes a PLAMLIB
14754           ## CC just makes a GrossModule.
14755           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14756           reload_cmds='$CC -r -o $output$reload_objs'
14757           hardcode_direct=no
14758         ;;
14759         motorola)
14760           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14761           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14762         ;;
14763       esac
14764       runpath_var='LD_RUN_PATH'
14765       hardcode_shlibpath_var=no
14766       ;;
14767
14768     sysv4.3*)
14769       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14770       hardcode_shlibpath_var=no
14771       export_dynamic_flag_spec='-Bexport'
14772       ;;
14773
14774     sysv4*MP*)
14775       if test -d /usr/nec; then
14776         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14777         hardcode_shlibpath_var=no
14778         runpath_var=LD_RUN_PATH
14779         hardcode_runpath_var=yes
14780         ld_shlibs=yes
14781       fi
14782       ;;
14783
14784     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14785       no_undefined_flag='${wl}-z,text'
14786       archive_cmds_need_lc=no
14787       hardcode_shlibpath_var=no
14788       runpath_var='LD_RUN_PATH'
14789
14790       if test "$GCC" = yes; then
14791         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14792         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14793       else
14794         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14795         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14796       fi
14797       ;;
14798
14799     sysv5* | sco3.2v5* | sco5v6*)
14800       # Note: We can NOT use -z defs as we might desire, because we do not
14801       # link with -lc, and that would cause any symbols used from libc to
14802       # always be unresolved, which means just about no library would
14803       # ever link correctly.  If we're not using GNU ld we use -z text
14804       # though, which does catch some bad symbols but isn't as heavy-handed
14805       # as -z defs.
14806       no_undefined_flag='${wl}-z,text'
14807       allow_undefined_flag='${wl}-z,nodefs'
14808       archive_cmds_need_lc=no
14809       hardcode_shlibpath_var=no
14810       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14811       hardcode_libdir_separator=':'
14812       link_all_deplibs=yes
14813       export_dynamic_flag_spec='${wl}-Bexport'
14814       runpath_var='LD_RUN_PATH'
14815
14816       if test "$GCC" = yes; then
14817         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14818         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14819       else
14820         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14821         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14822       fi
14823       ;;
14824
14825     uts4*)
14826       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14827       hardcode_libdir_flag_spec='-L$libdir'
14828       hardcode_shlibpath_var=no
14829       ;;
14830
14831     *)
14832       ld_shlibs=no
14833       ;;
14834     esac
14835   fi
14836
14837 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14838 echo "${ECHO_T}$ld_shlibs" >&6; }
14839 test "$ld_shlibs" = no && can_build_shared=no
14840
14841 #
14842 # Do we need to explicitly link libc?
14843 #
14844 case "x$archive_cmds_need_lc" in
14845 x|xyes)
14846   # Assume -lc should be added
14847   archive_cmds_need_lc=yes
14848
14849   if test "$enable_shared" = yes && test "$GCC" = yes; then
14850     case $archive_cmds in
14851     *'~'*)
14852       # FIXME: we may have to deal with multi-command sequences.
14853       ;;
14854     '$CC '*)
14855       # Test whether the compiler implicitly links with -lc since on some
14856       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14857       # to ld, don't add -lc before -lgcc.
14858       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14859 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14860       $rm conftest*
14861       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14862
14863       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14864   (eval $ac_compile) 2>&5
14865   ac_status=$?
14866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); } 2>conftest.err; then
14868         soname=conftest
14869         lib=conftest
14870         libobjs=conftest.$ac_objext
14871         deplibs=
14872         wl=$lt_prog_compiler_wl
14873         pic_flag=$lt_prog_compiler_pic
14874         compiler_flags=-v
14875         linker_flags=-v
14876         verstring=
14877         output_objdir=.
14878         libname=conftest
14879         lt_save_allow_undefined_flag=$allow_undefined_flag
14880         allow_undefined_flag=
14881         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14882   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14883   ac_status=$?
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); }
14886         then
14887           archive_cmds_need_lc=no
14888         else
14889           archive_cmds_need_lc=yes
14890         fi
14891         allow_undefined_flag=$lt_save_allow_undefined_flag
14892       else
14893         cat conftest.err 1>&5
14894       fi
14895       $rm conftest*
14896       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14897 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
14898       ;;
14899     esac
14900   fi
14901   ;;
14902 esac
14903
14904 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14905 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14906 library_names_spec=
14907 libname_spec='lib$name'
14908 soname_spec=
14909 shrext_cmds=".so"
14910 postinstall_cmds=
14911 postuninstall_cmds=
14912 finish_cmds=
14913 finish_eval=
14914 shlibpath_var=
14915 shlibpath_overrides_runpath=unknown
14916 version_type=none
14917 dynamic_linker="$host_os ld.so"
14918 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14919 if test "$GCC" = yes; then
14920   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14921   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14922     # if the path contains ";" then we assume it to be the separator
14923     # otherwise default to the standard path separator (i.e. ":") - it is
14924     # assumed that no part of a normal pathname contains ";" but that should
14925     # okay in the real world where ";" in dirpaths is itself problematic.
14926     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14927   else
14928     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14929   fi
14930 else
14931   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14932 fi
14933 need_lib_prefix=unknown
14934 hardcode_into_libs=no
14935
14936 # when you set need_version to no, make sure it does not cause -set_version
14937 # flags to be left without arguments
14938 need_version=unknown
14939
14940 case $host_os in
14941 aix3*)
14942   version_type=linux
14943   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14944   shlibpath_var=LIBPATH
14945
14946   # AIX 3 has no versioning support, so we append a major version to the name.
14947   soname_spec='${libname}${release}${shared_ext}$major'
14948   ;;
14949
14950 aix4* | aix5*)
14951   version_type=linux
14952   need_lib_prefix=no
14953   need_version=no
14954   hardcode_into_libs=yes
14955   if test "$host_cpu" = ia64; then
14956     # AIX 5 supports IA64
14957     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14958     shlibpath_var=LD_LIBRARY_PATH
14959   else
14960     # With GCC up to 2.95.x, collect2 would create an import file
14961     # for dependence libraries.  The import file would start with
14962     # the line `#! .'.  This would cause the generated library to
14963     # depend on `.', always an invalid library.  This was fixed in
14964     # development snapshots of GCC prior to 3.0.
14965     case $host_os in
14966       aix4 | aix4.[01] | aix4.[01].*)
14967       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14968            echo ' yes '
14969            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14970         :
14971       else
14972         can_build_shared=no
14973       fi
14974       ;;
14975     esac
14976     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14977     # soname into executable. Probably we can add versioning support to
14978     # collect2, so additional links can be useful in future.
14979     if test "$aix_use_runtimelinking" = yes; then
14980       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14981       # instead of lib<name>.a to let people know that these are not
14982       # typical AIX shared libraries.
14983       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14984     else
14985       # We preserve .a as extension for shared libraries through AIX4.2
14986       # and later when we are not doing run time linking.
14987       library_names_spec='${libname}${release}.a $libname.a'
14988       soname_spec='${libname}${release}${shared_ext}$major'
14989     fi
14990     shlibpath_var=LIBPATH
14991   fi
14992   ;;
14993
14994 amigaos*)
14995   library_names_spec='$libname.ixlibrary $libname.a'
14996   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14997   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'
14998   ;;
14999
15000 beos*)
15001   library_names_spec='${libname}${shared_ext}'
15002   dynamic_linker="$host_os ld.so"
15003   shlibpath_var=LIBRARY_PATH
15004   ;;
15005
15006 bsdi[45]*)
15007   version_type=linux
15008   need_version=no
15009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15010   soname_spec='${libname}${release}${shared_ext}$major'
15011   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15012   shlibpath_var=LD_LIBRARY_PATH
15013   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15014   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15015   # the default ld.so.conf also contains /usr/contrib/lib and
15016   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15017   # libtool to hard-code these into programs
15018   ;;
15019
15020 cygwin* | mingw* | pw32*)
15021   version_type=windows
15022   shrext_cmds=".dll"
15023   need_version=no
15024   need_lib_prefix=no
15025
15026   case $GCC,$host_os in
15027   yes,cygwin* | yes,mingw* | yes,pw32*)
15028     library_names_spec='$libname.dll.a'
15029     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15030     postinstall_cmds='base_file=`basename \${file}`~
15031       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15032       dldir=$destdir/`dirname \$dlpath`~
15033       test -d \$dldir || mkdir -p \$dldir~
15034       $install_prog $dir/$dlname \$dldir/$dlname~
15035       chmod a+x \$dldir/$dlname'
15036     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15037       dlpath=$dir/\$dldll~
15038        $rm \$dlpath'
15039     shlibpath_overrides_runpath=yes
15040
15041     case $host_os in
15042     cygwin*)
15043       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15044       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15045       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15046       ;;
15047     mingw*)
15048       # MinGW DLLs use traditional 'lib' prefix
15049       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15050       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15051       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15052         # It is most probably a Windows format PATH printed by
15053         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15054         # path with ; separators, and with drive letters. We can handle the
15055         # drive letters (cygwin fileutils understands them), so leave them,
15056         # especially as we might pass files found there to a mingw objdump,
15057         # which wouldn't understand a cygwinified path. Ahh.
15058         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15059       else
15060         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15061       fi
15062       ;;
15063     pw32*)
15064       # pw32 DLLs use 'pw' prefix rather than 'lib'
15065       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15066       ;;
15067     esac
15068     ;;
15069
15070   *)
15071     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15072     ;;
15073   esac
15074   dynamic_linker='Win32 ld.exe'
15075   # FIXME: first we should search . and the directory the executable is in
15076   shlibpath_var=PATH
15077   ;;
15078
15079 darwin* | rhapsody*)
15080   dynamic_linker="$host_os dyld"
15081   version_type=darwin
15082   need_lib_prefix=no
15083   need_version=no
15084   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15085   soname_spec='${libname}${release}${major}$shared_ext'
15086   shlibpath_overrides_runpath=yes
15087   shlibpath_var=DYLD_LIBRARY_PATH
15088   shrext_cmds='.dylib'
15089   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15090   if test "$GCC" = yes; then
15091     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"`
15092   else
15093     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15094   fi
15095   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15096   ;;
15097
15098 dgux*)
15099   version_type=linux
15100   need_lib_prefix=no
15101   need_version=no
15102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15103   soname_spec='${libname}${release}${shared_ext}$major'
15104   shlibpath_var=LD_LIBRARY_PATH
15105   ;;
15106
15107 freebsd1*)
15108   dynamic_linker=no
15109   ;;
15110
15111 kfreebsd*-gnu)
15112   version_type=linux
15113   need_lib_prefix=no
15114   need_version=no
15115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15116   soname_spec='${libname}${release}${shared_ext}$major'
15117   shlibpath_var=LD_LIBRARY_PATH
15118   shlibpath_overrides_runpath=no
15119   hardcode_into_libs=yes
15120   dynamic_linker='GNU ld.so'
15121   ;;
15122
15123 freebsd* | dragonfly*)
15124   # DragonFly does not have aout.  When/if they implement a new
15125   # versioning mechanism, adjust this.
15126   if test -x /usr/bin/objformat; then
15127     objformat=`/usr/bin/objformat`
15128   else
15129     case $host_os in
15130     freebsd[123]*) objformat=aout ;;
15131     *) objformat=elf ;;
15132     esac
15133   fi
15134   version_type=freebsd-$objformat
15135   case $version_type in
15136     freebsd-elf*)
15137       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15138       need_version=no
15139       need_lib_prefix=no
15140       ;;
15141     freebsd-*)
15142       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15143       need_version=yes
15144       ;;
15145   esac
15146   shlibpath_var=LD_LIBRARY_PATH
15147   case $host_os in
15148   freebsd2*)
15149     shlibpath_overrides_runpath=yes
15150     ;;
15151   freebsd3.[01]* | freebsdelf3.[01]*)
15152     shlibpath_overrides_runpath=yes
15153     hardcode_into_libs=yes
15154     ;;
15155   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15156   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15157     shlibpath_overrides_runpath=no
15158     hardcode_into_libs=yes
15159     ;;
15160   freebsd*) # from 4.6 on
15161     shlibpath_overrides_runpath=yes
15162     hardcode_into_libs=yes
15163     ;;
15164   esac
15165   ;;
15166
15167 gnu*)
15168   version_type=linux
15169   need_lib_prefix=no
15170   need_version=no
15171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15172   soname_spec='${libname}${release}${shared_ext}$major'
15173   shlibpath_var=LD_LIBRARY_PATH
15174   hardcode_into_libs=yes
15175   ;;
15176
15177 hpux9* | hpux10* | hpux11*)
15178   # Give a soname corresponding to the major version so that dld.sl refuses to
15179   # link against other versions.
15180   version_type=sunos
15181   need_lib_prefix=no
15182   need_version=no
15183   case $host_cpu in
15184   ia64*)
15185     shrext_cmds='.so'
15186     hardcode_into_libs=yes
15187     dynamic_linker="$host_os dld.so"
15188     shlibpath_var=LD_LIBRARY_PATH
15189     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15190     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15191     soname_spec='${libname}${release}${shared_ext}$major'
15192     if test "X$HPUX_IA64_MODE" = X32; then
15193       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15194     else
15195       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15196     fi
15197     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15198     ;;
15199    hppa*64*)
15200      shrext_cmds='.sl'
15201      hardcode_into_libs=yes
15202      dynamic_linker="$host_os dld.sl"
15203      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15204      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15205      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15206      soname_spec='${libname}${release}${shared_ext}$major'
15207      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15208      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15209      ;;
15210    *)
15211     shrext_cmds='.sl'
15212     dynamic_linker="$host_os dld.sl"
15213     shlibpath_var=SHLIB_PATH
15214     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15215     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15216     soname_spec='${libname}${release}${shared_ext}$major'
15217     ;;
15218   esac
15219   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15220   postinstall_cmds='chmod 555 $lib'
15221   ;;
15222
15223 interix3*)
15224   version_type=linux
15225   need_lib_prefix=no
15226   need_version=no
15227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15228   soname_spec='${libname}${release}${shared_ext}$major'
15229   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15230   shlibpath_var=LD_LIBRARY_PATH
15231   shlibpath_overrides_runpath=no
15232   hardcode_into_libs=yes
15233   ;;
15234
15235 irix5* | irix6* | nonstopux*)
15236   case $host_os in
15237     nonstopux*) version_type=nonstopux ;;
15238     *)
15239         if test "$lt_cv_prog_gnu_ld" = yes; then
15240                 version_type=linux
15241         else
15242                 version_type=irix
15243         fi ;;
15244   esac
15245   need_lib_prefix=no
15246   need_version=no
15247   soname_spec='${libname}${release}${shared_ext}$major'
15248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15249   case $host_os in
15250   irix5* | nonstopux*)
15251     libsuff= shlibsuff=
15252     ;;
15253   *)
15254     case $LD in # libtool.m4 will add one of these switches to LD
15255     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15256       libsuff= shlibsuff= libmagic=32-bit;;
15257     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15258       libsuff=32 shlibsuff=N32 libmagic=N32;;
15259     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15260       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15261     *) libsuff= shlibsuff= libmagic=never-match;;
15262     esac
15263     ;;
15264   esac
15265   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15266   shlibpath_overrides_runpath=no
15267   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15268   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15269   hardcode_into_libs=yes
15270   ;;
15271
15272 # No shared lib support for Linux oldld, aout, or coff.
15273 linux*oldld* | linux*aout* | linux*coff*)
15274   dynamic_linker=no
15275   ;;
15276
15277 # This must be Linux ELF.
15278 linux*)
15279   version_type=linux
15280   need_lib_prefix=no
15281   need_version=no
15282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15283   soname_spec='${libname}${release}${shared_ext}$major'
15284   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15285   shlibpath_var=LD_LIBRARY_PATH
15286   shlibpath_overrides_runpath=no
15287   # This implies no fast_install, which is unacceptable.
15288   # Some rework will be needed to allow for fast_install
15289   # before this can be enabled.
15290   hardcode_into_libs=yes
15291
15292   # Append ld.so.conf contents to the search path
15293   if test -f /etc/ld.so.conf; then
15294     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' ' '`
15295     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15296   fi
15297
15298   # We used to test for /lib/ld.so.1 and disable shared libraries on
15299   # powerpc, because MkLinux only supported shared libraries with the
15300   # GNU dynamic linker.  Since this was broken with cross compilers,
15301   # most powerpc-linux boxes support dynamic linking these days and
15302   # people can always --disable-shared, the test was removed, and we
15303   # assume the GNU/Linux dynamic linker is in use.
15304   dynamic_linker='GNU/Linux ld.so'
15305   ;;
15306
15307 knetbsd*-gnu)
15308   version_type=linux
15309   need_lib_prefix=no
15310   need_version=no
15311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15312   soname_spec='${libname}${release}${shared_ext}$major'
15313   shlibpath_var=LD_LIBRARY_PATH
15314   shlibpath_overrides_runpath=no
15315   hardcode_into_libs=yes
15316   dynamic_linker='GNU ld.so'
15317   ;;
15318
15319 netbsd*)
15320   version_type=sunos
15321   need_lib_prefix=no
15322   need_version=no
15323   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15324     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15325     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15326     dynamic_linker='NetBSD (a.out) ld.so'
15327   else
15328     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15329     soname_spec='${libname}${release}${shared_ext}$major'
15330     dynamic_linker='NetBSD ld.elf_so'
15331   fi
15332   shlibpath_var=LD_LIBRARY_PATH
15333   shlibpath_overrides_runpath=yes
15334   hardcode_into_libs=yes
15335   ;;
15336
15337 newsos6)
15338   version_type=linux
15339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340   shlibpath_var=LD_LIBRARY_PATH
15341   shlibpath_overrides_runpath=yes
15342   ;;
15343
15344 nto-qnx*)
15345   version_type=linux
15346   need_lib_prefix=no
15347   need_version=no
15348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349   soname_spec='${libname}${release}${shared_ext}$major'
15350   shlibpath_var=LD_LIBRARY_PATH
15351   shlibpath_overrides_runpath=yes
15352   ;;
15353
15354 openbsd*)
15355   version_type=sunos
15356   sys_lib_dlsearch_path_spec="/usr/lib"
15357   need_lib_prefix=no
15358   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15359   case $host_os in
15360     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15361     *)                         need_version=no  ;;
15362   esac
15363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15364   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15365   shlibpath_var=LD_LIBRARY_PATH
15366   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15367     case $host_os in
15368       openbsd2.[89] | openbsd2.[89].*)
15369         shlibpath_overrides_runpath=no
15370         ;;
15371       *)
15372         shlibpath_overrides_runpath=yes
15373         ;;
15374       esac
15375   else
15376     shlibpath_overrides_runpath=yes
15377   fi
15378   ;;
15379
15380 os2*)
15381   libname_spec='$name'
15382   shrext_cmds=".dll"
15383   need_lib_prefix=no
15384   library_names_spec='$libname${shared_ext} $libname.a'
15385   dynamic_linker='OS/2 ld.exe'
15386   shlibpath_var=LIBPATH
15387   ;;
15388
15389 osf3* | osf4* | osf5*)
15390   version_type=osf
15391   need_lib_prefix=no
15392   need_version=no
15393   soname_spec='${libname}${release}${shared_ext}$major'
15394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395   shlibpath_var=LD_LIBRARY_PATH
15396   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15397   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15398   ;;
15399
15400 solaris*)
15401   version_type=linux
15402   need_lib_prefix=no
15403   need_version=no
15404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15405   soname_spec='${libname}${release}${shared_ext}$major'
15406   shlibpath_var=LD_LIBRARY_PATH
15407   shlibpath_overrides_runpath=yes
15408   hardcode_into_libs=yes
15409   # ldd complains unless libraries are executable
15410   postinstall_cmds='chmod +x $lib'
15411   ;;
15412
15413 sunos4*)
15414   version_type=sunos
15415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15416   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15417   shlibpath_var=LD_LIBRARY_PATH
15418   shlibpath_overrides_runpath=yes
15419   if test "$with_gnu_ld" = yes; then
15420     need_lib_prefix=no
15421   fi
15422   need_version=yes
15423   ;;
15424
15425 sysv4 | sysv4.3*)
15426   version_type=linux
15427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428   soname_spec='${libname}${release}${shared_ext}$major'
15429   shlibpath_var=LD_LIBRARY_PATH
15430   case $host_vendor in
15431     sni)
15432       shlibpath_overrides_runpath=no
15433       need_lib_prefix=no
15434       export_dynamic_flag_spec='${wl}-Blargedynsym'
15435       runpath_var=LD_RUN_PATH
15436       ;;
15437     siemens)
15438       need_lib_prefix=no
15439       ;;
15440     motorola)
15441       need_lib_prefix=no
15442       need_version=no
15443       shlibpath_overrides_runpath=no
15444       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15445       ;;
15446   esac
15447   ;;
15448
15449 sysv4*MP*)
15450   if test -d /usr/nec ;then
15451     version_type=linux
15452     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15453     soname_spec='$libname${shared_ext}.$major'
15454     shlibpath_var=LD_LIBRARY_PATH
15455   fi
15456   ;;
15457
15458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15459   version_type=freebsd-elf
15460   need_lib_prefix=no
15461   need_version=no
15462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15463   soname_spec='${libname}${release}${shared_ext}$major'
15464   shlibpath_var=LD_LIBRARY_PATH
15465   hardcode_into_libs=yes
15466   if test "$with_gnu_ld" = yes; then
15467     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15468     shlibpath_overrides_runpath=no
15469   else
15470     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15471     shlibpath_overrides_runpath=yes
15472     case $host_os in
15473       sco3.2v5*)
15474         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15475         ;;
15476     esac
15477   fi
15478   sys_lib_dlsearch_path_spec='/usr/lib'
15479   ;;
15480
15481 uts4*)
15482   version_type=linux
15483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484   soname_spec='${libname}${release}${shared_ext}$major'
15485   shlibpath_var=LD_LIBRARY_PATH
15486   ;;
15487
15488 *)
15489   dynamic_linker=no
15490   ;;
15491 esac
15492 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15493 echo "${ECHO_T}$dynamic_linker" >&6; }
15494 test "$dynamic_linker" = no && can_build_shared=no
15495
15496 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15497 if test "$GCC" = yes; then
15498   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15499 fi
15500
15501 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15502 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15503 hardcode_action=
15504 if test -n "$hardcode_libdir_flag_spec" || \
15505    test -n "$runpath_var" || \
15506    test "X$hardcode_automatic" = "Xyes" ; then
15507
15508   # We can hardcode non-existant directories.
15509   if test "$hardcode_direct" != no &&
15510      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15511      # have to relink, otherwise we might link with an installed library
15512      # when we should be linking with a yet-to-be-installed one
15513      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15514      test "$hardcode_minus_L" != no; then
15515     # Linking always hardcodes the temporary library directory.
15516     hardcode_action=relink
15517   else
15518     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15519     hardcode_action=immediate
15520   fi
15521 else
15522   # We cannot hardcode anything, or else we can only hardcode existing
15523   # directories.
15524   hardcode_action=unsupported
15525 fi
15526 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
15527 echo "${ECHO_T}$hardcode_action" >&6; }
15528
15529 if test "$hardcode_action" = relink; then
15530   # Fast installation is not supported
15531   enable_fast_install=no
15532 elif test "$shlibpath_overrides_runpath" = yes ||
15533      test "$enable_shared" = no; then
15534   # Fast installation is not necessary
15535   enable_fast_install=needless
15536 fi
15537
15538 striplib=
15539 old_striplib=
15540 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15541 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15542 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15543   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15544   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15545   { echo "$as_me:$LINENO: result: yes" >&5
15546 echo "${ECHO_T}yes" >&6; }
15547 else
15548 # FIXME - insert some real tests, host_os isn't really good enough
15549   case $host_os in
15550    darwin*)
15551        if test -n "$STRIP" ; then
15552          striplib="$STRIP -x"
15553          { echo "$as_me:$LINENO: result: yes" >&5
15554 echo "${ECHO_T}yes" >&6; }
15555        else
15556   { echo "$as_me:$LINENO: result: no" >&5
15557 echo "${ECHO_T}no" >&6; }
15558 fi
15559        ;;
15560    *)
15561   { echo "$as_me:$LINENO: result: no" >&5
15562 echo "${ECHO_T}no" >&6; }
15563     ;;
15564   esac
15565 fi
15566
15567 if test "x$enable_dlopen" != xyes; then
15568   enable_dlopen=unknown
15569   enable_dlopen_self=unknown
15570   enable_dlopen_self_static=unknown
15571 else
15572   lt_cv_dlopen=no
15573   lt_cv_dlopen_libs=
15574
15575   case $host_os in
15576   beos*)
15577     lt_cv_dlopen="load_add_on"
15578     lt_cv_dlopen_libs=
15579     lt_cv_dlopen_self=yes
15580     ;;
15581
15582   mingw* | pw32*)
15583     lt_cv_dlopen="LoadLibrary"
15584     lt_cv_dlopen_libs=
15585    ;;
15586
15587   cygwin*)
15588     lt_cv_dlopen="dlopen"
15589     lt_cv_dlopen_libs=
15590    ;;
15591
15592   darwin*)
15593   # if libdl is installed we need to link against it
15594     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15595 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15596 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15597   echo $ECHO_N "(cached) $ECHO_C" >&6
15598 else
15599   ac_check_lib_save_LIBS=$LIBS
15600 LIBS="-ldl  $LIBS"
15601 cat >conftest.$ac_ext <<_ACEOF
15602 /* confdefs.h.  */
15603 _ACEOF
15604 cat confdefs.h >>conftest.$ac_ext
15605 cat >>conftest.$ac_ext <<_ACEOF
15606 /* end confdefs.h.  */
15607
15608 /* Override any GCC internal prototype to avoid an error.
15609    Use char because int might match the return type of a GCC
15610    builtin and then its argument prototype would still apply.  */
15611 #ifdef __cplusplus
15612 extern "C"
15613 #endif
15614 char dlopen ();
15615 int
15616 main ()
15617 {
15618 return dlopen ();
15619   ;
15620   return 0;
15621 }
15622 _ACEOF
15623 rm -f conftest.$ac_objext conftest$ac_exeext
15624 if { (ac_try="$ac_link"
15625 case "(($ac_try" in
15626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627   *) ac_try_echo=$ac_try;;
15628 esac
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630   (eval "$ac_link") 2>conftest.er1
15631   ac_status=$?
15632   grep -v '^ *+' conftest.er1 >conftest.err
15633   rm -f conftest.er1
15634   cat conftest.err >&5
15635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636   (exit $ac_status); } && {
15637          test -z "$ac_c_werror_flag" ||
15638          test ! -s conftest.err
15639        } && test -s conftest$ac_exeext &&
15640        $as_test_x conftest$ac_exeext; then
15641   ac_cv_lib_dl_dlopen=yes
15642 else
15643   echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15645
15646         ac_cv_lib_dl_dlopen=no
15647 fi
15648
15649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15650       conftest$ac_exeext conftest.$ac_ext
15651 LIBS=$ac_check_lib_save_LIBS
15652 fi
15653 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15654 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15655 if test $ac_cv_lib_dl_dlopen = yes; then
15656   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15657 else
15658
15659     lt_cv_dlopen="dyld"
15660     lt_cv_dlopen_libs=
15661     lt_cv_dlopen_self=yes
15662
15663 fi
15664
15665    ;;
15666
15667   *)
15668     { echo "$as_me:$LINENO: checking for shl_load" >&5
15669 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15670 if test "${ac_cv_func_shl_load+set}" = set; then
15671   echo $ECHO_N "(cached) $ECHO_C" >&6
15672 else
15673   cat >conftest.$ac_ext <<_ACEOF
15674 /* confdefs.h.  */
15675 _ACEOF
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h.  */
15679 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15681 #define shl_load innocuous_shl_load
15682
15683 /* System header to define __stub macros and hopefully few prototypes,
15684     which can conflict with char shl_load (); below.
15685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15686     <limits.h> exists even on freestanding compilers.  */
15687
15688 #ifdef __STDC__
15689 # include <limits.h>
15690 #else
15691 # include <assert.h>
15692 #endif
15693
15694 #undef shl_load
15695
15696 /* Override any GCC internal prototype to avoid an error.
15697    Use char because int might match the return type of a GCC
15698    builtin and then its argument prototype would still apply.  */
15699 #ifdef __cplusplus
15700 extern "C"
15701 #endif
15702 char shl_load ();
15703 /* The GNU C library defines this for functions which it implements
15704     to always fail with ENOSYS.  Some functions are actually named
15705     something starting with __ and the normal name is an alias.  */
15706 #if defined __stub_shl_load || defined __stub___shl_load
15707 choke me
15708 #endif
15709
15710 int
15711 main ()
15712 {
15713 return shl_load ();
15714   ;
15715   return 0;
15716 }
15717 _ACEOF
15718 rm -f conftest.$ac_objext conftest$ac_exeext
15719 if { (ac_try="$ac_link"
15720 case "(($ac_try" in
15721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722   *) ac_try_echo=$ac_try;;
15723 esac
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725   (eval "$ac_link") 2>conftest.er1
15726   ac_status=$?
15727   grep -v '^ *+' conftest.er1 >conftest.err
15728   rm -f conftest.er1
15729   cat conftest.err >&5
15730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); } && {
15732          test -z "$ac_c_werror_flag" ||
15733          test ! -s conftest.err
15734        } && test -s conftest$ac_exeext &&
15735        $as_test_x conftest$ac_exeext; then
15736   ac_cv_func_shl_load=yes
15737 else
15738   echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15740
15741         ac_cv_func_shl_load=no
15742 fi
15743
15744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15745       conftest$ac_exeext conftest.$ac_ext
15746 fi
15747 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15748 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15749 if test $ac_cv_func_shl_load = yes; then
15750   lt_cv_dlopen="shl_load"
15751 else
15752   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15753 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15754 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15755   echo $ECHO_N "(cached) $ECHO_C" >&6
15756 else
15757   ac_check_lib_save_LIBS=$LIBS
15758 LIBS="-ldld  $LIBS"
15759 cat >conftest.$ac_ext <<_ACEOF
15760 /* confdefs.h.  */
15761 _ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h.  */
15765
15766 /* Override any GCC internal prototype to avoid an error.
15767    Use char because int might match the return type of a GCC
15768    builtin and then its argument prototype would still apply.  */
15769 #ifdef __cplusplus
15770 extern "C"
15771 #endif
15772 char shl_load ();
15773 int
15774 main ()
15775 {
15776 return shl_load ();
15777   ;
15778   return 0;
15779 }
15780 _ACEOF
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (ac_try="$ac_link"
15783 case "(($ac_try" in
15784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785   *) ac_try_echo=$ac_try;;
15786 esac
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788   (eval "$ac_link") 2>conftest.er1
15789   ac_status=$?
15790   grep -v '^ *+' conftest.er1 >conftest.err
15791   rm -f conftest.er1
15792   cat conftest.err >&5
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); } && {
15795          test -z "$ac_c_werror_flag" ||
15796          test ! -s conftest.err
15797        } && test -s conftest$ac_exeext &&
15798        $as_test_x conftest$ac_exeext; then
15799   ac_cv_lib_dld_shl_load=yes
15800 else
15801   echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15803
15804         ac_cv_lib_dld_shl_load=no
15805 fi
15806
15807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15808       conftest$ac_exeext conftest.$ac_ext
15809 LIBS=$ac_check_lib_save_LIBS
15810 fi
15811 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15812 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15813 if test $ac_cv_lib_dld_shl_load = yes; then
15814   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15815 else
15816   { echo "$as_me:$LINENO: checking for dlopen" >&5
15817 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
15818 if test "${ac_cv_func_dlopen+set}" = set; then
15819   echo $ECHO_N "(cached) $ECHO_C" >&6
15820 else
15821   cat >conftest.$ac_ext <<_ACEOF
15822 /* confdefs.h.  */
15823 _ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h.  */
15827 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15829 #define dlopen innocuous_dlopen
15830
15831 /* System header to define __stub macros and hopefully few prototypes,
15832     which can conflict with char dlopen (); below.
15833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15834     <limits.h> exists even on freestanding compilers.  */
15835
15836 #ifdef __STDC__
15837 # include <limits.h>
15838 #else
15839 # include <assert.h>
15840 #endif
15841
15842 #undef dlopen
15843
15844 /* Override any GCC internal prototype to avoid an error.
15845    Use char because int might match the return type of a GCC
15846    builtin and then its argument prototype would still apply.  */
15847 #ifdef __cplusplus
15848 extern "C"
15849 #endif
15850 char dlopen ();
15851 /* The GNU C library defines this for functions which it implements
15852     to always fail with ENOSYS.  Some functions are actually named
15853     something starting with __ and the normal name is an alias.  */
15854 #if defined __stub_dlopen || defined __stub___dlopen
15855 choke me
15856 #endif
15857
15858 int
15859 main ()
15860 {
15861 return dlopen ();
15862   ;
15863   return 0;
15864 }
15865 _ACEOF
15866 rm -f conftest.$ac_objext conftest$ac_exeext
15867 if { (ac_try="$ac_link"
15868 case "(($ac_try" in
15869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870   *) ac_try_echo=$ac_try;;
15871 esac
15872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873   (eval "$ac_link") 2>conftest.er1
15874   ac_status=$?
15875   grep -v '^ *+' conftest.er1 >conftest.err
15876   rm -f conftest.er1
15877   cat conftest.err >&5
15878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879   (exit $ac_status); } && {
15880          test -z "$ac_c_werror_flag" ||
15881          test ! -s conftest.err
15882        } && test -s conftest$ac_exeext &&
15883        $as_test_x conftest$ac_exeext; then
15884   ac_cv_func_dlopen=yes
15885 else
15886   echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15888
15889         ac_cv_func_dlopen=no
15890 fi
15891
15892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15893       conftest$ac_exeext conftest.$ac_ext
15894 fi
15895 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15896 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
15897 if test $ac_cv_func_dlopen = yes; then
15898   lt_cv_dlopen="dlopen"
15899 else
15900   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15901 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15902 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15903   echo $ECHO_N "(cached) $ECHO_C" >&6
15904 else
15905   ac_check_lib_save_LIBS=$LIBS
15906 LIBS="-ldl  $LIBS"
15907 cat >conftest.$ac_ext <<_ACEOF
15908 /* confdefs.h.  */
15909 _ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h.  */
15913
15914 /* Override any GCC internal prototype to avoid an error.
15915    Use char because int might match the return type of a GCC
15916    builtin and then its argument prototype would still apply.  */
15917 #ifdef __cplusplus
15918 extern "C"
15919 #endif
15920 char dlopen ();
15921 int
15922 main ()
15923 {
15924 return dlopen ();
15925   ;
15926   return 0;
15927 }
15928 _ACEOF
15929 rm -f conftest.$ac_objext conftest$ac_exeext
15930 if { (ac_try="$ac_link"
15931 case "(($ac_try" in
15932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933   *) ac_try_echo=$ac_try;;
15934 esac
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936   (eval "$ac_link") 2>conftest.er1
15937   ac_status=$?
15938   grep -v '^ *+' conftest.er1 >conftest.err
15939   rm -f conftest.er1
15940   cat conftest.err >&5
15941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942   (exit $ac_status); } && {
15943          test -z "$ac_c_werror_flag" ||
15944          test ! -s conftest.err
15945        } && test -s conftest$ac_exeext &&
15946        $as_test_x conftest$ac_exeext; then
15947   ac_cv_lib_dl_dlopen=yes
15948 else
15949   echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15951
15952         ac_cv_lib_dl_dlopen=no
15953 fi
15954
15955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15956       conftest$ac_exeext conftest.$ac_ext
15957 LIBS=$ac_check_lib_save_LIBS
15958 fi
15959 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15960 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15961 if test $ac_cv_lib_dl_dlopen = yes; then
15962   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15963 else
15964   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15965 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
15966 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15967   echo $ECHO_N "(cached) $ECHO_C" >&6
15968 else
15969   ac_check_lib_save_LIBS=$LIBS
15970 LIBS="-lsvld  $LIBS"
15971 cat >conftest.$ac_ext <<_ACEOF
15972 /* confdefs.h.  */
15973 _ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h.  */
15977
15978 /* Override any GCC internal prototype to avoid an error.
15979    Use char because int might match the return type of a GCC
15980    builtin and then its argument prototype would still apply.  */
15981 #ifdef __cplusplus
15982 extern "C"
15983 #endif
15984 char dlopen ();
15985 int
15986 main ()
15987 {
15988 return dlopen ();
15989   ;
15990   return 0;
15991 }
15992 _ACEOF
15993 rm -f conftest.$ac_objext conftest$ac_exeext
15994 if { (ac_try="$ac_link"
15995 case "(($ac_try" in
15996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997   *) ac_try_echo=$ac_try;;
15998 esac
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000   (eval "$ac_link") 2>conftest.er1
16001   ac_status=$?
16002   grep -v '^ *+' conftest.er1 >conftest.err
16003   rm -f conftest.er1
16004   cat conftest.err >&5
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); } && {
16007          test -z "$ac_c_werror_flag" ||
16008          test ! -s conftest.err
16009        } && test -s conftest$ac_exeext &&
16010        $as_test_x conftest$ac_exeext; then
16011   ac_cv_lib_svld_dlopen=yes
16012 else
16013   echo "$as_me: failed program was:" >&5
16014 sed 's/^/| /' conftest.$ac_ext >&5
16015
16016         ac_cv_lib_svld_dlopen=no
16017 fi
16018
16019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16020       conftest$ac_exeext conftest.$ac_ext
16021 LIBS=$ac_check_lib_save_LIBS
16022 fi
16023 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16024 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16025 if test $ac_cv_lib_svld_dlopen = yes; then
16026   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16027 else
16028   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16029 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16030 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16031   echo $ECHO_N "(cached) $ECHO_C" >&6
16032 else
16033   ac_check_lib_save_LIBS=$LIBS
16034 LIBS="-ldld  $LIBS"
16035 cat >conftest.$ac_ext <<_ACEOF
16036 /* confdefs.h.  */
16037 _ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h.  */
16041
16042 /* Override any GCC internal prototype to avoid an error.
16043    Use char because int might match the return type of a GCC
16044    builtin and then its argument prototype would still apply.  */
16045 #ifdef __cplusplus
16046 extern "C"
16047 #endif
16048 char dld_link ();
16049 int
16050 main ()
16051 {
16052 return dld_link ();
16053   ;
16054   return 0;
16055 }
16056 _ACEOF
16057 rm -f conftest.$ac_objext conftest$ac_exeext
16058 if { (ac_try="$ac_link"
16059 case "(($ac_try" in
16060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061   *) ac_try_echo=$ac_try;;
16062 esac
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064   (eval "$ac_link") 2>conftest.er1
16065   ac_status=$?
16066   grep -v '^ *+' conftest.er1 >conftest.err
16067   rm -f conftest.er1
16068   cat conftest.err >&5
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); } && {
16071          test -z "$ac_c_werror_flag" ||
16072          test ! -s conftest.err
16073        } && test -s conftest$ac_exeext &&
16074        $as_test_x conftest$ac_exeext; then
16075   ac_cv_lib_dld_dld_link=yes
16076 else
16077   echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.$ac_ext >&5
16079
16080         ac_cv_lib_dld_dld_link=no
16081 fi
16082
16083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16084       conftest$ac_exeext conftest.$ac_ext
16085 LIBS=$ac_check_lib_save_LIBS
16086 fi
16087 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16088 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16089 if test $ac_cv_lib_dld_dld_link = yes; then
16090   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16091 fi
16092
16093
16094 fi
16095
16096
16097 fi
16098
16099
16100 fi
16101
16102
16103 fi
16104
16105
16106 fi
16107
16108     ;;
16109   esac
16110
16111   if test "x$lt_cv_dlopen" != xno; then
16112     enable_dlopen=yes
16113   else
16114     enable_dlopen=no
16115   fi
16116
16117   case $lt_cv_dlopen in
16118   dlopen)
16119     save_CPPFLAGS="$CPPFLAGS"
16120     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16121
16122     save_LDFLAGS="$LDFLAGS"
16123     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16124
16125     save_LIBS="$LIBS"
16126     LIBS="$lt_cv_dlopen_libs $LIBS"
16127
16128     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16129 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16130 if test "${lt_cv_dlopen_self+set}" = set; then
16131   echo $ECHO_N "(cached) $ECHO_C" >&6
16132 else
16133           if test "$cross_compiling" = yes; then :
16134   lt_cv_dlopen_self=cross
16135 else
16136   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16137   lt_status=$lt_dlunknown
16138   cat > conftest.$ac_ext <<EOF
16139 #line 16139 "configure"
16140 #include "confdefs.h"
16141
16142 #if HAVE_DLFCN_H
16143 #include <dlfcn.h>
16144 #endif
16145
16146 #include <stdio.h>
16147
16148 #ifdef RTLD_GLOBAL
16149 #  define LT_DLGLOBAL           RTLD_GLOBAL
16150 #else
16151 #  ifdef DL_GLOBAL
16152 #    define LT_DLGLOBAL         DL_GLOBAL
16153 #  else
16154 #    define LT_DLGLOBAL         0
16155 #  endif
16156 #endif
16157
16158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16159    find out it does not work in some platform. */
16160 #ifndef LT_DLLAZY_OR_NOW
16161 #  ifdef RTLD_LAZY
16162 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16163 #  else
16164 #    ifdef DL_LAZY
16165 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16166 #    else
16167 #      ifdef RTLD_NOW
16168 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16169 #      else
16170 #        ifdef DL_NOW
16171 #          define LT_DLLAZY_OR_NOW      DL_NOW
16172 #        else
16173 #          define LT_DLLAZY_OR_NOW      0
16174 #        endif
16175 #      endif
16176 #    endif
16177 #  endif
16178 #endif
16179
16180 #ifdef __cplusplus
16181 extern "C" void exit (int);
16182 #endif
16183
16184 void fnord() { int i=42;}
16185 int main ()
16186 {
16187   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16188   int status = $lt_dlunknown;
16189
16190   if (self)
16191     {
16192       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16193       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16194       /* dlclose (self); */
16195     }
16196   else
16197     puts (dlerror ());
16198
16199     exit (status);
16200 }
16201 EOF
16202   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16203   (eval $ac_link) 2>&5
16204   ac_status=$?
16205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16207     (./conftest; exit; ) >&5 2>/dev/null
16208     lt_status=$?
16209     case x$lt_status in
16210       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16211       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16212       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16213     esac
16214   else :
16215     # compilation failed
16216     lt_cv_dlopen_self=no
16217   fi
16218 fi
16219 rm -fr conftest*
16220
16221
16222 fi
16223 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16224 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
16225
16226     if test "x$lt_cv_dlopen_self" = xyes; then
16227       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16228       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16229 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16230 if test "${lt_cv_dlopen_self_static+set}" = set; then
16231   echo $ECHO_N "(cached) $ECHO_C" >&6
16232 else
16233           if test "$cross_compiling" = yes; then :
16234   lt_cv_dlopen_self_static=cross
16235 else
16236   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16237   lt_status=$lt_dlunknown
16238   cat > conftest.$ac_ext <<EOF
16239 #line 16239 "configure"
16240 #include "confdefs.h"
16241
16242 #if HAVE_DLFCN_H
16243 #include <dlfcn.h>
16244 #endif
16245
16246 #include <stdio.h>
16247
16248 #ifdef RTLD_GLOBAL
16249 #  define LT_DLGLOBAL           RTLD_GLOBAL
16250 #else
16251 #  ifdef DL_GLOBAL
16252 #    define LT_DLGLOBAL         DL_GLOBAL
16253 #  else
16254 #    define LT_DLGLOBAL         0
16255 #  endif
16256 #endif
16257
16258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16259    find out it does not work in some platform. */
16260 #ifndef LT_DLLAZY_OR_NOW
16261 #  ifdef RTLD_LAZY
16262 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16263 #  else
16264 #    ifdef DL_LAZY
16265 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16266 #    else
16267 #      ifdef RTLD_NOW
16268 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16269 #      else
16270 #        ifdef DL_NOW
16271 #          define LT_DLLAZY_OR_NOW      DL_NOW
16272 #        else
16273 #          define LT_DLLAZY_OR_NOW      0
16274 #        endif
16275 #      endif
16276 #    endif
16277 #  endif
16278 #endif
16279
16280 #ifdef __cplusplus
16281 extern "C" void exit (int);
16282 #endif
16283
16284 void fnord() { int i=42;}
16285 int main ()
16286 {
16287   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16288   int status = $lt_dlunknown;
16289
16290   if (self)
16291     {
16292       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16293       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16294       /* dlclose (self); */
16295     }
16296   else
16297     puts (dlerror ());
16298
16299     exit (status);
16300 }
16301 EOF
16302   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16303   (eval $ac_link) 2>&5
16304   ac_status=$?
16305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16307     (./conftest; exit; ) >&5 2>/dev/null
16308     lt_status=$?
16309     case x$lt_status in
16310       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16311       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16312       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16313     esac
16314   else :
16315     # compilation failed
16316     lt_cv_dlopen_self_static=no
16317   fi
16318 fi
16319 rm -fr conftest*
16320
16321
16322 fi
16323 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16324 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16325     fi
16326
16327     CPPFLAGS="$save_CPPFLAGS"
16328     LDFLAGS="$save_LDFLAGS"
16329     LIBS="$save_LIBS"
16330     ;;
16331   esac
16332
16333   case $lt_cv_dlopen_self in
16334   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16335   *) enable_dlopen_self=unknown ;;
16336   esac
16337
16338   case $lt_cv_dlopen_self_static in
16339   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16340   *) enable_dlopen_self_static=unknown ;;
16341   esac
16342 fi
16343
16344
16345 # Report which library types will actually be built
16346 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16347 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16348 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
16349 echo "${ECHO_T}$can_build_shared" >&6; }
16350
16351 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16352 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16353 test "$can_build_shared" = "no" && enable_shared=no
16354
16355 # On AIX, shared libraries and static libraries use the same namespace, and
16356 # are all built from PIC.
16357 case $host_os in
16358 aix3*)
16359   test "$enable_shared" = yes && enable_static=no
16360   if test -n "$RANLIB"; then
16361     archive_cmds="$archive_cmds~\$RANLIB \$lib"
16362     postinstall_cmds='$RANLIB $lib'
16363   fi
16364   ;;
16365
16366 aix4* | aix5*)
16367   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16368     test "$enable_shared" = yes && enable_static=no
16369   fi
16370     ;;
16371 esac
16372 { echo "$as_me:$LINENO: result: $enable_shared" >&5
16373 echo "${ECHO_T}$enable_shared" >&6; }
16374
16375 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16376 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16377 # Make sure either enable_shared or enable_static is yes.
16378 test "$enable_shared" = yes || enable_static=yes
16379 { echo "$as_me:$LINENO: result: $enable_static" >&5
16380 echo "${ECHO_T}$enable_static" >&6; }
16381
16382 # The else clause should only fire when bootstrapping the
16383 # libtool distribution, otherwise you forgot to ship ltmain.sh
16384 # with your package, and you will get complaints that there are
16385 # no rules to generate ltmain.sh.
16386 if test -f "$ltmain"; then
16387   # See if we are running on zsh, and set the options which allow our commands through
16388   # without removal of \ escapes.
16389   if test -n "${ZSH_VERSION+set}" ; then
16390     setopt NO_GLOB_SUBST
16391   fi
16392   # Now quote all the things that may contain metacharacters while being
16393   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16394   # variables and quote the copies for generation of the libtool script.
16395   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16396     SED SHELL STRIP \
16397     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16398     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16399     deplibs_check_method reload_flag reload_cmds need_locks \
16400     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16401     lt_cv_sys_global_symbol_to_c_name_address \
16402     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16403     old_postinstall_cmds old_postuninstall_cmds \
16404     compiler \
16405     CC \
16406     LD \
16407     lt_prog_compiler_wl \
16408     lt_prog_compiler_pic \
16409     lt_prog_compiler_static \
16410     lt_prog_compiler_no_builtin_flag \
16411     export_dynamic_flag_spec \
16412     thread_safe_flag_spec \
16413     whole_archive_flag_spec \
16414     enable_shared_with_static_runtimes \
16415     old_archive_cmds \
16416     old_archive_from_new_cmds \
16417     predep_objects \
16418     postdep_objects \
16419     predeps \
16420     postdeps \
16421     compiler_lib_search_path \
16422     archive_cmds \
16423     archive_expsym_cmds \
16424     postinstall_cmds \
16425     postuninstall_cmds \
16426     old_archive_from_expsyms_cmds \
16427     allow_undefined_flag \
16428     no_undefined_flag \
16429     export_symbols_cmds \
16430     hardcode_libdir_flag_spec \
16431     hardcode_libdir_flag_spec_ld \
16432     hardcode_libdir_separator \
16433     hardcode_automatic \
16434     module_cmds \
16435     module_expsym_cmds \
16436     lt_cv_prog_compiler_c_o \
16437     exclude_expsyms \
16438     include_expsyms; do
16439
16440     case $var in
16441     old_archive_cmds | \
16442     old_archive_from_new_cmds | \
16443     archive_cmds | \
16444     archive_expsym_cmds | \
16445     module_cmds | \
16446     module_expsym_cmds | \
16447     old_archive_from_expsyms_cmds | \
16448     export_symbols_cmds | \
16449     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16450     postinstall_cmds | postuninstall_cmds | \
16451     old_postinstall_cmds | old_postuninstall_cmds | \
16452     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16453       # Double-quote double-evaled strings.
16454       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16455       ;;
16456     *)
16457       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16458       ;;
16459     esac
16460   done
16461
16462   case $lt_echo in
16463   *'\$0 --fallback-echo"')
16464     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16465     ;;
16466   esac
16467
16468 cfgfile="${ofile}T"
16469   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16470   $rm -f "$cfgfile"
16471   { echo "$as_me:$LINENO: creating $ofile" >&5
16472 echo "$as_me: creating $ofile" >&6;}
16473
16474   cat <<__EOF__ >> "$cfgfile"
16475 #! $SHELL
16476
16477 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16478 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16479 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16480 #
16481 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16482 # Free Software Foundation, Inc.
16483 #
16484 # This file is part of GNU Libtool:
16485 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16486 #
16487 # This program is free software; you can redistribute it and/or modify
16488 # it under the terms of the GNU General Public License as published by
16489 # the Free Software Foundation; either version 2 of the License, or
16490 # (at your option) any later version.
16491 #
16492 # This program is distributed in the hope that it will be useful, but
16493 # WITHOUT ANY WARRANTY; without even the implied warranty of
16494 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16495 # General Public License for more details.
16496 #
16497 # You should have received a copy of the GNU General Public License
16498 # along with this program; if not, write to the Free Software
16499 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16500 #
16501 # As a special exception to the GNU General Public License, if you
16502 # distribute this file as part of a program that contains a
16503 # configuration script generated by Autoconf, you may include it under
16504 # the same distribution terms that you use for the rest of that program.
16505
16506 # A sed program that does not truncate output.
16507 SED=$lt_SED
16508
16509 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16510 Xsed="$SED -e 1s/^X//"
16511
16512 # The HP-UX ksh and POSIX shell print the target directory to stdout
16513 # if CDPATH is set.
16514 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16515
16516 # The names of the tagged configurations supported by this script.
16517 available_tags=
16518
16519 # ### BEGIN LIBTOOL CONFIG
16520
16521 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16522
16523 # Shell to use when invoking shell scripts.
16524 SHELL=$lt_SHELL
16525
16526 # Whether or not to build shared libraries.
16527 build_libtool_libs=$enable_shared
16528
16529 # Whether or not to build static libraries.
16530 build_old_libs=$enable_static
16531
16532 # Whether or not to add -lc for building shared libraries.
16533 build_libtool_need_lc=$archive_cmds_need_lc
16534
16535 # Whether or not to disallow shared libs when runtime libs are static
16536 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16537
16538 # Whether or not to optimize for fast installation.
16539 fast_install=$enable_fast_install
16540
16541 # The host system.
16542 host_alias=$host_alias
16543 host=$host
16544 host_os=$host_os
16545
16546 # The build system.
16547 build_alias=$build_alias
16548 build=$build
16549 build_os=$build_os
16550
16551 # An echo program that does not interpret backslashes.
16552 echo=$lt_echo
16553
16554 # The archiver.
16555 AR=$lt_AR
16556 AR_FLAGS=$lt_AR_FLAGS
16557
16558 # A C compiler.
16559 LTCC=$lt_LTCC
16560
16561 # LTCC compiler flags.
16562 LTCFLAGS=$lt_LTCFLAGS
16563
16564 # A language-specific compiler.
16565 CC=$lt_compiler
16566
16567 # Is the compiler the GNU C compiler?
16568 with_gcc=$GCC
16569
16570 # An ERE matcher.
16571 EGREP=$lt_EGREP
16572
16573 # The linker used to build libraries.
16574 LD=$lt_LD
16575
16576 # Whether we need hard or soft links.
16577 LN_S=$lt_LN_S
16578
16579 # A BSD-compatible nm program.
16580 NM=$lt_NM
16581
16582 # A symbol stripping program
16583 STRIP=$lt_STRIP
16584
16585 # Used to examine libraries when file_magic_cmd begins "file"
16586 MAGIC_CMD=$MAGIC_CMD
16587
16588 # Used on cygwin: DLL creation program.
16589 DLLTOOL="$DLLTOOL"
16590
16591 # Used on cygwin: object dumper.
16592 OBJDUMP="$OBJDUMP"
16593
16594 # Used on cygwin: assembler.
16595 AS="$AS"
16596
16597 # The name of the directory that contains temporary libtool files.
16598 objdir=$objdir
16599
16600 # How to create reloadable object files.
16601 reload_flag=$lt_reload_flag
16602 reload_cmds=$lt_reload_cmds
16603
16604 # How to pass a linker flag through the compiler.
16605 wl=$lt_lt_prog_compiler_wl
16606
16607 # Object file suffix (normally "o").
16608 objext="$ac_objext"
16609
16610 # Old archive suffix (normally "a").
16611 libext="$libext"
16612
16613 # Shared library suffix (normally ".so").
16614 shrext_cmds='$shrext_cmds'
16615
16616 # Executable file suffix (normally "").
16617 exeext="$exeext"
16618
16619 # Additional compiler flags for building library objects.
16620 pic_flag=$lt_lt_prog_compiler_pic
16621 pic_mode=$pic_mode
16622
16623 # What is the maximum length of a command?
16624 max_cmd_len=$lt_cv_sys_max_cmd_len
16625
16626 # Does compiler simultaneously support -c and -o options?
16627 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16628
16629 # Must we lock files when doing compilation?
16630 need_locks=$lt_need_locks
16631
16632 # Do we need the lib prefix for modules?
16633 need_lib_prefix=$need_lib_prefix
16634
16635 # Do we need a version for libraries?
16636 need_version=$need_version
16637
16638 # Whether dlopen is supported.
16639 dlopen_support=$enable_dlopen
16640
16641 # Whether dlopen of programs is supported.
16642 dlopen_self=$enable_dlopen_self
16643
16644 # Whether dlopen of statically linked programs is supported.
16645 dlopen_self_static=$enable_dlopen_self_static
16646
16647 # Compiler flag to prevent dynamic linking.
16648 link_static_flag=$lt_lt_prog_compiler_static
16649
16650 # Compiler flag to turn off builtin functions.
16651 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16652
16653 # Compiler flag to allow reflexive dlopens.
16654 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16655
16656 # Compiler flag to generate shared objects directly from archives.
16657 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16658
16659 # Compiler flag to generate thread-safe objects.
16660 thread_safe_flag_spec=$lt_thread_safe_flag_spec
16661
16662 # Library versioning type.
16663 version_type=$version_type
16664
16665 # Format of library name prefix.
16666 libname_spec=$lt_libname_spec
16667
16668 # List of archive names.  First name is the real one, the rest are links.
16669 # The last name is the one that the linker finds with -lNAME.
16670 library_names_spec=$lt_library_names_spec
16671
16672 # The coded name of the library, if different from the real name.
16673 soname_spec=$lt_soname_spec
16674
16675 # Commands used to build and install an old-style archive.
16676 RANLIB=$lt_RANLIB
16677 old_archive_cmds=$lt_old_archive_cmds
16678 old_postinstall_cmds=$lt_old_postinstall_cmds
16679 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16680
16681 # Create an old-style archive from a shared archive.
16682 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16683
16684 # Create a temporary old-style archive to link instead of a shared archive.
16685 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16686
16687 # Commands used to build and install a shared archive.
16688 archive_cmds=$lt_archive_cmds
16689 archive_expsym_cmds=$lt_archive_expsym_cmds
16690 postinstall_cmds=$lt_postinstall_cmds
16691 postuninstall_cmds=$lt_postuninstall_cmds
16692
16693 # Commands used to build a loadable module (assumed same as above if empty)
16694 module_cmds=$lt_module_cmds
16695 module_expsym_cmds=$lt_module_expsym_cmds
16696
16697 # Commands to strip libraries.
16698 old_striplib=$lt_old_striplib
16699 striplib=$lt_striplib
16700
16701 # Dependencies to place before the objects being linked to create a
16702 # shared library.
16703 predep_objects=$lt_predep_objects
16704
16705 # Dependencies to place after the objects being linked to create a
16706 # shared library.
16707 postdep_objects=$lt_postdep_objects
16708
16709 # Dependencies to place before the objects being linked to create a
16710 # shared library.
16711 predeps=$lt_predeps
16712
16713 # Dependencies to place after the objects being linked to create a
16714 # shared library.
16715 postdeps=$lt_postdeps
16716
16717 # The library search path used internally by the compiler when linking
16718 # a shared library.
16719 compiler_lib_search_path=$lt_compiler_lib_search_path
16720
16721 # Method to check whether dependent libraries are shared objects.
16722 deplibs_check_method=$lt_deplibs_check_method
16723
16724 # Command to use when deplibs_check_method == file_magic.
16725 file_magic_cmd=$lt_file_magic_cmd
16726
16727 # Flag that allows shared libraries with undefined symbols to be built.
16728 allow_undefined_flag=$lt_allow_undefined_flag
16729
16730 # Flag that forces no undefined symbols.
16731 no_undefined_flag=$lt_no_undefined_flag
16732
16733 # Commands used to finish a libtool library installation in a directory.
16734 finish_cmds=$lt_finish_cmds
16735
16736 # Same as above, but a single script fragment to be evaled but not shown.
16737 finish_eval=$lt_finish_eval
16738
16739 # Take the output of nm and produce a listing of raw symbols and C names.
16740 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16741
16742 # Transform the output of nm in a proper C declaration
16743 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16744
16745 # Transform the output of nm in a C name address pair
16746 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16747
16748 # This is the shared library runtime path variable.
16749 runpath_var=$runpath_var
16750
16751 # This is the shared library path variable.
16752 shlibpath_var=$shlibpath_var
16753
16754 # Is shlibpath searched before the hard-coded library search path?
16755 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16756
16757 # How to hardcode a shared library path into an executable.
16758 hardcode_action=$hardcode_action
16759
16760 # Whether we should hardcode library paths into libraries.
16761 hardcode_into_libs=$hardcode_into_libs
16762
16763 # Flag to hardcode \$libdir into a binary during linking.
16764 # This must work even if \$libdir does not exist.
16765 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16766
16767 # If ld is used when linking, flag to hardcode \$libdir into
16768 # a binary during linking. This must work even if \$libdir does
16769 # not exist.
16770 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16771
16772 # Whether we need a single -rpath flag with a separated argument.
16773 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16774
16775 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16776 # resulting binary.
16777 hardcode_direct=$hardcode_direct
16778
16779 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16780 # resulting binary.
16781 hardcode_minus_L=$hardcode_minus_L
16782
16783 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16784 # the resulting binary.
16785 hardcode_shlibpath_var=$hardcode_shlibpath_var
16786
16787 # Set to yes if building a shared library automatically hardcodes DIR into the library
16788 # and all subsequent libraries and executables linked against it.
16789 hardcode_automatic=$hardcode_automatic
16790
16791 # Variables whose values should be saved in libtool wrapper scripts and
16792 # restored at relink time.
16793 variables_saved_for_relink="$variables_saved_for_relink"
16794
16795 # Whether libtool must link a program against all its dependency libraries.
16796 link_all_deplibs=$link_all_deplibs
16797
16798 # Compile-time system search path for libraries
16799 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16800
16801 # Run-time system search path for libraries
16802 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16803
16804 # Fix the shell variable \$srcfile for the compiler.
16805 fix_srcfile_path="$fix_srcfile_path"
16806
16807 # Set to yes if exported symbols are required.
16808 always_export_symbols=$always_export_symbols
16809
16810 # The commands to list exported symbols.
16811 export_symbols_cmds=$lt_export_symbols_cmds
16812
16813 # The commands to extract the exported symbol list from a shared archive.
16814 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16815
16816 # Symbols that should not be listed in the preloaded symbols.
16817 exclude_expsyms=$lt_exclude_expsyms
16818
16819 # Symbols that must always be exported.
16820 include_expsyms=$lt_include_expsyms
16821
16822 # ### END LIBTOOL CONFIG
16823
16824 __EOF__
16825
16826
16827   case $host_os in
16828   aix3*)
16829     cat <<\EOF >> "$cfgfile"
16830
16831 # AIX sometimes has problems with the GCC collect2 program.  For some
16832 # reason, if we set the COLLECT_NAMES environment variable, the problems
16833 # vanish in a puff of smoke.
16834 if test "X${COLLECT_NAMES+set}" != Xset; then
16835   COLLECT_NAMES=
16836   export COLLECT_NAMES
16837 fi
16838 EOF
16839     ;;
16840   esac
16841
16842   # We use sed instead of cat because bash on DJGPP gets confused if
16843   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16844   # text mode, it properly converts lines to CR/LF.  This bash problem
16845   # is reportedly fixed, but why not run on old versions too?
16846   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
16847
16848   mv -f "$cfgfile" "$ofile" || \
16849     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16850   chmod +x "$ofile"
16851
16852 else
16853   # If there is no Makefile yet, we rely on a make rule to execute
16854   # `config.status --recheck' to rerun these tests and create the
16855   # libtool script then.
16856   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16857   if test -f "$ltmain_in"; then
16858     test -f Makefile && make "$ltmain"
16859   fi
16860 fi
16861
16862
16863 ac_ext=c
16864 ac_cpp='$CPP $CPPFLAGS'
16865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16868
16869 CC="$lt_save_CC"
16870
16871
16872 # Check whether --with-tags was given.
16873 if test "${with_tags+set}" = set; then
16874   withval=$with_tags; tagnames="$withval"
16875 fi
16876
16877
16878 if test -f "$ltmain" && test -n "$tagnames"; then
16879   if test ! -f "${ofile}"; then
16880     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16881 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16882   fi
16883
16884   if test -z "$LTCC"; then
16885     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16886     if test -z "$LTCC"; then
16887       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16888 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16889     else
16890       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16891 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16892     fi
16893   fi
16894   if test -z "$LTCFLAGS"; then
16895     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
16896   fi
16897
16898   # Extract list of available tagged configurations in $ofile.
16899   # Note that this assumes the entire list is on one line.
16900   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16901
16902   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16903   for tagname in $tagnames; do
16904     IFS="$lt_save_ifs"
16905     # Check whether tagname contains only valid characters
16906     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16907     "") ;;
16908     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16909 echo "$as_me: error: invalid tag name: $tagname" >&2;}
16910    { (exit 1); exit 1; }; }
16911         ;;
16912     esac
16913
16914     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16915     then
16916       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16917 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16918    { (exit 1); exit 1; }; }
16919     fi
16920
16921     # Update the list of available tags.
16922     if test -n "$tagname"; then
16923       echo appending configuration tag \"$tagname\" to $ofile
16924
16925       case $tagname in
16926       CXX)
16927         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16928             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16929             (test "X$CXX" != "Xg++"))) ; then
16930           ac_ext=cpp
16931 ac_cpp='$CXXCPP $CPPFLAGS'
16932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16935
16936
16937
16938
16939 archive_cmds_need_lc_CXX=no
16940 allow_undefined_flag_CXX=
16941 always_export_symbols_CXX=no
16942 archive_expsym_cmds_CXX=
16943 export_dynamic_flag_spec_CXX=
16944 hardcode_direct_CXX=no
16945 hardcode_libdir_flag_spec_CXX=
16946 hardcode_libdir_flag_spec_ld_CXX=
16947 hardcode_libdir_separator_CXX=
16948 hardcode_minus_L_CXX=no
16949 hardcode_shlibpath_var_CXX=unsupported
16950 hardcode_automatic_CXX=no
16951 module_cmds_CXX=
16952 module_expsym_cmds_CXX=
16953 link_all_deplibs_CXX=unknown
16954 old_archive_cmds_CXX=$old_archive_cmds
16955 no_undefined_flag_CXX=
16956 whole_archive_flag_spec_CXX=
16957 enable_shared_with_static_runtimes_CXX=no
16958
16959 # Dependencies to place before and after the object being linked:
16960 predep_objects_CXX=
16961 postdep_objects_CXX=
16962 predeps_CXX=
16963 postdeps_CXX=
16964 compiler_lib_search_path_CXX=
16965
16966 # Source file extension for C++ test sources.
16967 ac_ext=cpp
16968
16969 # Object file extension for compiled C++ test sources.
16970 objext=o
16971 objext_CXX=$objext
16972
16973 # Code to be used in simple compile tests
16974 lt_simple_compile_test_code="int some_variable = 0;\n"
16975
16976 # Code to be used in simple link tests
16977 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
16978
16979 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16980
16981 # If no C compiler was specified, use CC.
16982 LTCC=${LTCC-"$CC"}
16983
16984 # If no C compiler flags were specified, use CFLAGS.
16985 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16986
16987 # Allow CC to be a program name with arguments.
16988 compiler=$CC
16989
16990
16991 # save warnings/boilerplate of simple test code
16992 ac_outfile=conftest.$ac_objext
16993 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16994 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16995 _lt_compiler_boilerplate=`cat conftest.err`
16996 $rm conftest*
16997
16998 ac_outfile=conftest.$ac_objext
16999 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17000 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17001 _lt_linker_boilerplate=`cat conftest.err`
17002 $rm conftest*
17003
17004
17005 # Allow CC to be a program name with arguments.
17006 lt_save_CC=$CC
17007 lt_save_LD=$LD
17008 lt_save_GCC=$GCC
17009 GCC=$GXX
17010 lt_save_with_gnu_ld=$with_gnu_ld
17011 lt_save_path_LD=$lt_cv_path_LD
17012 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17013   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17014 else
17015   $as_unset lt_cv_prog_gnu_ld
17016 fi
17017 if test -n "${lt_cv_path_LDCXX+set}"; then
17018   lt_cv_path_LD=$lt_cv_path_LDCXX
17019 else
17020   $as_unset lt_cv_path_LD
17021 fi
17022 test -z "${LDCXX+set}" || LD=$LDCXX
17023 CC=${CXX-"c++"}
17024 compiler=$CC
17025 compiler_CXX=$CC
17026 for cc_temp in $compiler""; do
17027   case $cc_temp in
17028     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17029     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17030     \-*) ;;
17031     *) break;;
17032   esac
17033 done
17034 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17035
17036
17037 # We don't want -fno-exception wen compiling C++ code, so set the
17038 # no_builtin_flag separately
17039 if test "$GXX" = yes; then
17040   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17041 else
17042   lt_prog_compiler_no_builtin_flag_CXX=
17043 fi
17044
17045 if test "$GXX" = yes; then
17046   # Set up default GNU C++ configuration
17047
17048
17049 # Check whether --with-gnu-ld was given.
17050 if test "${with_gnu_ld+set}" = set; then
17051   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17052 else
17053   with_gnu_ld=no
17054 fi
17055
17056 ac_prog=ld
17057 if test "$GCC" = yes; then
17058   # Check if gcc -print-prog-name=ld gives a path.
17059   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17060 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17061   case $host in
17062   *-*-mingw*)
17063     # gcc leaves a trailing carriage return which upsets mingw
17064     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17065   *)
17066     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17067   esac
17068   case $ac_prog in
17069     # Accept absolute paths.
17070     [\\/]* | ?:[\\/]*)
17071       re_direlt='/[^/][^/]*/\.\./'
17072       # Canonicalize the pathname of ld
17073       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17074       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17075         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17076       done
17077       test -z "$LD" && LD="$ac_prog"
17078       ;;
17079   "")
17080     # If it fails, then pretend we aren't using GCC.
17081     ac_prog=ld
17082     ;;
17083   *)
17084     # If it is relative, then search for the first ld in PATH.
17085     with_gnu_ld=unknown
17086     ;;
17087   esac
17088 elif test "$with_gnu_ld" = yes; then
17089   { echo "$as_me:$LINENO: checking for GNU ld" >&5
17090 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17091 else
17092   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17093 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17094 fi
17095 if test "${lt_cv_path_LD+set}" = set; then
17096   echo $ECHO_N "(cached) $ECHO_C" >&6
17097 else
17098   if test -z "$LD"; then
17099   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17100   for ac_dir in $PATH; do
17101     IFS="$lt_save_ifs"
17102     test -z "$ac_dir" && ac_dir=.
17103     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17104       lt_cv_path_LD="$ac_dir/$ac_prog"
17105       # Check to see if the program is GNU ld.  I'd rather use --version,
17106       # but apparently some variants of GNU ld only accept -v.
17107       # Break only if it was the GNU/non-GNU ld that we prefer.
17108       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17109       *GNU* | *'with BFD'*)
17110         test "$with_gnu_ld" != no && break
17111         ;;
17112       *)
17113         test "$with_gnu_ld" != yes && break
17114         ;;
17115       esac
17116     fi
17117   done
17118   IFS="$lt_save_ifs"
17119 else
17120   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17121 fi
17122 fi
17123
17124 LD="$lt_cv_path_LD"
17125 if test -n "$LD"; then
17126   { echo "$as_me:$LINENO: result: $LD" >&5
17127 echo "${ECHO_T}$LD" >&6; }
17128 else
17129   { echo "$as_me:$LINENO: result: no" >&5
17130 echo "${ECHO_T}no" >&6; }
17131 fi
17132 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17133 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17134    { (exit 1); exit 1; }; }
17135 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17136 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17137 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17138   echo $ECHO_N "(cached) $ECHO_C" >&6
17139 else
17140   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17141 case `$LD -v 2>&1 </dev/null` in
17142 *GNU* | *'with BFD'*)
17143   lt_cv_prog_gnu_ld=yes
17144   ;;
17145 *)
17146   lt_cv_prog_gnu_ld=no
17147   ;;
17148 esac
17149 fi
17150 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17151 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17152 with_gnu_ld=$lt_cv_prog_gnu_ld
17153
17154
17155
17156   # Check if GNU C++ uses GNU ld as the underlying linker, since the
17157   # archiving commands below assume that GNU ld is being used.
17158   if test "$with_gnu_ld" = yes; then
17159     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17160     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'
17161
17162     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17163     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17164
17165     # If archive_cmds runs LD, not CC, wlarc should be empty
17166     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17167     #     investigate it a little bit more. (MM)
17168     wlarc='${wl}'
17169
17170     # ancient GNU ld didn't support --whole-archive et. al.
17171     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17172         grep 'no-whole-archive' > /dev/null; then
17173       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17174     else
17175       whole_archive_flag_spec_CXX=
17176     fi
17177   else
17178     with_gnu_ld=no
17179     wlarc=
17180
17181     # A generic and very simple default shared library creation
17182     # command for GNU C++ for the case where it uses the native
17183     # linker, instead of GNU ld.  If possible, this setting should
17184     # overridden to take advantage of the native linker features on
17185     # the platform it is being used on.
17186     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17187   fi
17188
17189   # Commands to make compiler produce verbose output that lists
17190   # what "hidden" libraries, object files and flags are used when
17191   # linking a shared library.
17192   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17193
17194 else
17195   GXX=no
17196   with_gnu_ld=no
17197   wlarc=
17198 fi
17199
17200 # PORTME: fill in a description of your system's C++ link characteristics
17201 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17202 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17203 ld_shlibs_CXX=yes
17204 case $host_os in
17205   aix3*)
17206     # FIXME: insert proper C++ library support
17207     ld_shlibs_CXX=no
17208     ;;
17209   aix4* | aix5*)
17210     if test "$host_cpu" = ia64; then
17211       # On IA64, the linker does run time linking by default, so we don't
17212       # have to do anything special.
17213       aix_use_runtimelinking=no
17214       exp_sym_flag='-Bexport'
17215       no_entry_flag=""
17216     else
17217       aix_use_runtimelinking=no
17218
17219       # Test if we are trying to use run time linking or normal
17220       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17221       # need to do runtime linking.
17222       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17223         for ld_flag in $LDFLAGS; do
17224           case $ld_flag in
17225           *-brtl*)
17226             aix_use_runtimelinking=yes
17227             break
17228             ;;
17229           esac
17230         done
17231         ;;
17232       esac
17233
17234       exp_sym_flag='-bexport'
17235       no_entry_flag='-bnoentry'
17236     fi
17237
17238     # When large executables or shared objects are built, AIX ld can
17239     # have problems creating the table of contents.  If linking a library
17240     # or program results in "error TOC overflow" add -mminimal-toc to
17241     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17242     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17243
17244     archive_cmds_CXX=''
17245     hardcode_direct_CXX=yes
17246     hardcode_libdir_separator_CXX=':'
17247     link_all_deplibs_CXX=yes
17248
17249     if test "$GXX" = yes; then
17250       case $host_os in aix4.[012]|aix4.[012].*)
17251       # We only want to do this on AIX 4.2 and lower, the check
17252       # below for broken collect2 doesn't work under 4.3+
17253         collect2name=`${CC} -print-prog-name=collect2`
17254         if test -f "$collect2name" && \
17255            strings "$collect2name" | grep resolve_lib_name >/dev/null
17256         then
17257           # We have reworked collect2
17258           hardcode_direct_CXX=yes
17259         else
17260           # We have old collect2
17261           hardcode_direct_CXX=unsupported
17262           # It fails to find uninstalled libraries when the uninstalled
17263           # path is not listed in the libpath.  Setting hardcode_minus_L
17264           # to unsupported forces relinking
17265           hardcode_minus_L_CXX=yes
17266           hardcode_libdir_flag_spec_CXX='-L$libdir'
17267           hardcode_libdir_separator_CXX=
17268         fi
17269         ;;
17270       esac
17271       shared_flag='-shared'
17272       if test "$aix_use_runtimelinking" = yes; then
17273         shared_flag="$shared_flag "'${wl}-G'
17274       fi
17275     else
17276       # not using gcc
17277       if test "$host_cpu" = ia64; then
17278         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17279         # chokes on -Wl,-G. The following line is correct:
17280         shared_flag='-G'
17281       else
17282         if test "$aix_use_runtimelinking" = yes; then
17283           shared_flag='${wl}-G'
17284         else
17285           shared_flag='${wl}-bM:SRE'
17286         fi
17287       fi
17288     fi
17289
17290     # It seems that -bexpall does not export symbols beginning with
17291     # underscore (_), so it is better to generate a list of symbols to export.
17292     always_export_symbols_CXX=yes
17293     if test "$aix_use_runtimelinking" = yes; then
17294       # Warning - without using the other runtime loading flags (-brtl),
17295       # -berok will link without error, but may produce a broken library.
17296       allow_undefined_flag_CXX='-berok'
17297       # Determine the default libpath from the value encoded in an empty executable.
17298       cat >conftest.$ac_ext <<_ACEOF
17299 /* confdefs.h.  */
17300 _ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h.  */
17304
17305 int
17306 main ()
17307 {
17308
17309   ;
17310   return 0;
17311 }
17312 _ACEOF
17313 rm -f conftest.$ac_objext conftest$ac_exeext
17314 if { (ac_try="$ac_link"
17315 case "(($ac_try" in
17316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317   *) ac_try_echo=$ac_try;;
17318 esac
17319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17320   (eval "$ac_link") 2>conftest.er1
17321   ac_status=$?
17322   grep -v '^ *+' conftest.er1 >conftest.err
17323   rm -f conftest.er1
17324   cat conftest.err >&5
17325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); } && {
17327          test -z "$ac_cxx_werror_flag" ||
17328          test ! -s conftest.err
17329        } && test -s conftest$ac_exeext &&
17330        $as_test_x conftest$ac_exeext; then
17331
17332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17333 }'`
17334 # Check for a 64-bit object if we didn't find anything.
17335 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; }
17336 }'`; fi
17337 else
17338   echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17340
17341
17342 fi
17343
17344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17345       conftest$ac_exeext conftest.$ac_ext
17346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17347
17348       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17349
17350       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"
17351      else
17352       if test "$host_cpu" = ia64; then
17353         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17354         allow_undefined_flag_CXX="-z nodefs"
17355         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"
17356       else
17357         # Determine the default libpath from the value encoded in an empty executable.
17358         cat >conftest.$ac_ext <<_ACEOF
17359 /* confdefs.h.  */
17360 _ACEOF
17361 cat confdefs.h >>conftest.$ac_ext
17362 cat >>conftest.$ac_ext <<_ACEOF
17363 /* end confdefs.h.  */
17364
17365 int
17366 main ()
17367 {
17368
17369   ;
17370   return 0;
17371 }
17372 _ACEOF
17373 rm -f conftest.$ac_objext conftest$ac_exeext
17374 if { (ac_try="$ac_link"
17375 case "(($ac_try" in
17376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377   *) ac_try_echo=$ac_try;;
17378 esac
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380   (eval "$ac_link") 2>conftest.er1
17381   ac_status=$?
17382   grep -v '^ *+' conftest.er1 >conftest.err
17383   rm -f conftest.er1
17384   cat conftest.err >&5
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); } && {
17387          test -z "$ac_cxx_werror_flag" ||
17388          test ! -s conftest.err
17389        } && test -s conftest$ac_exeext &&
17390        $as_test_x conftest$ac_exeext; then
17391
17392 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17393 }'`
17394 # Check for a 64-bit object if we didn't find anything.
17395 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; }
17396 }'`; fi
17397 else
17398   echo "$as_me: failed program was:" >&5
17399 sed 's/^/| /' conftest.$ac_ext >&5
17400
17401
17402 fi
17403
17404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17405       conftest$ac_exeext conftest.$ac_ext
17406 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17407
17408         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17409         # Warning - without using the other run time loading flags,
17410         # -berok will link without error, but may produce a broken library.
17411         no_undefined_flag_CXX=' ${wl}-bernotok'
17412         allow_undefined_flag_CXX=' ${wl}-berok'
17413         # Exported symbols can be pulled into shared objects from archives
17414         whole_archive_flag_spec_CXX='$convenience'
17415         archive_cmds_need_lc_CXX=yes
17416         # This is similar to how AIX traditionally builds its shared libraries.
17417         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'
17418       fi
17419     fi
17420     ;;
17421
17422   beos*)
17423     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17424       allow_undefined_flag_CXX=unsupported
17425       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17426       # support --undefined.  This deserves some investigation.  FIXME
17427       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17428     else
17429       ld_shlibs_CXX=no
17430     fi
17431     ;;
17432
17433   chorus*)
17434     case $cc_basename in
17435       *)
17436         # FIXME: insert proper C++ library support
17437         ld_shlibs_CXX=no
17438         ;;
17439     esac
17440     ;;
17441
17442   cygwin* | mingw* | pw32*)
17443     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17444     # as there is no search path for DLLs.
17445     hardcode_libdir_flag_spec_CXX='-L$libdir'
17446     allow_undefined_flag_CXX=unsupported
17447     always_export_symbols_CXX=no
17448     enable_shared_with_static_runtimes_CXX=yes
17449
17450     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17451       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'
17452       # If the export-symbols file already is a .def file (1st line
17453       # is EXPORTS), use it as is; otherwise, prepend...
17454       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17455         cp $export_symbols $output_objdir/$soname.def;
17456       else
17457         echo EXPORTS > $output_objdir/$soname.def;
17458         cat $export_symbols >> $output_objdir/$soname.def;
17459       fi~
17460       $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'
17461     else
17462       ld_shlibs_CXX=no
17463     fi
17464   ;;
17465       darwin* | rhapsody*)
17466         case $host_os in
17467         rhapsody* | darwin1.[012])
17468          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17469          ;;
17470        *) # Darwin 1.3 on
17471          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17472            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17473          else
17474            case ${MACOSX_DEPLOYMENT_TARGET} in
17475              10.[012])
17476                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17477                ;;
17478              10.*)
17479                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17480                ;;
17481            esac
17482          fi
17483          ;;
17484         esac
17485       archive_cmds_need_lc_CXX=no
17486       hardcode_direct_CXX=no
17487       hardcode_automatic_CXX=yes
17488       hardcode_shlibpath_var_CXX=unsupported
17489       whole_archive_flag_spec_CXX=''
17490       link_all_deplibs_CXX=yes
17491
17492     if test "$GXX" = yes ; then
17493       lt_int_apple_cc_single_mod=no
17494       output_verbose_link_cmd='echo'
17495       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17496        lt_int_apple_cc_single_mod=yes
17497       fi
17498       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17499        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17500       else
17501           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'
17502         fi
17503         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17504         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17505           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17506             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}'
17507           else
17508             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}'
17509           fi
17510             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}'
17511       else
17512       case $cc_basename in
17513         xlc*)
17514          output_verbose_link_cmd='echo'
17515           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'
17516           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17517           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17518           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}'
17519           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}'
17520           ;;
17521        *)
17522          ld_shlibs_CXX=no
17523           ;;
17524       esac
17525       fi
17526         ;;
17527
17528   dgux*)
17529     case $cc_basename in
17530       ec++*)
17531         # FIXME: insert proper C++ library support
17532         ld_shlibs_CXX=no
17533         ;;
17534       ghcx*)
17535         # Green Hills C++ Compiler
17536         # FIXME: insert proper C++ library support
17537         ld_shlibs_CXX=no
17538         ;;
17539       *)
17540         # FIXME: insert proper C++ library support
17541         ld_shlibs_CXX=no
17542         ;;
17543     esac
17544     ;;
17545   freebsd[12]*)
17546     # C++ shared libraries reported to be fairly broken before switch to ELF
17547     ld_shlibs_CXX=no
17548     ;;
17549   freebsd-elf*)
17550     archive_cmds_need_lc_CXX=no
17551     ;;
17552   freebsd* | kfreebsd*-gnu | dragonfly*)
17553     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17554     # conventions
17555     ld_shlibs_CXX=yes
17556     ;;
17557   gnu*)
17558     ;;
17559   hpux9*)
17560     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17561     hardcode_libdir_separator_CXX=:
17562     export_dynamic_flag_spec_CXX='${wl}-E'
17563     hardcode_direct_CXX=yes
17564     hardcode_minus_L_CXX=yes # Not in the search PATH,
17565                                 # but as the default
17566                                 # location of the library.
17567
17568     case $cc_basename in
17569     CC*)
17570       # FIXME: insert proper C++ library support
17571       ld_shlibs_CXX=no
17572       ;;
17573     aCC*)
17574       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'
17575       # Commands to make compiler produce verbose output that lists
17576       # what "hidden" libraries, object files and flags are used when
17577       # linking a shared library.
17578       #
17579       # There doesn't appear to be a way to prevent this compiler from
17580       # explicitly linking system object files so we need to strip them
17581       # from the output so that they don't get included in the library
17582       # dependencies.
17583       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'
17584       ;;
17585     *)
17586       if test "$GXX" = yes; then
17587         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'
17588       else
17589         # FIXME: insert proper C++ library support
17590         ld_shlibs_CXX=no
17591       fi
17592       ;;
17593     esac
17594     ;;
17595   hpux10*|hpux11*)
17596     if test $with_gnu_ld = no; then
17597       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17598       hardcode_libdir_separator_CXX=:
17599
17600       case $host_cpu in
17601       hppa*64*|ia64*)
17602         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17603         ;;
17604       *)
17605         export_dynamic_flag_spec_CXX='${wl}-E'
17606         ;;
17607       esac
17608     fi
17609     case $host_cpu in
17610     hppa*64*|ia64*)
17611       hardcode_direct_CXX=no
17612       hardcode_shlibpath_var_CXX=no
17613       ;;
17614     *)
17615       hardcode_direct_CXX=yes
17616       hardcode_minus_L_CXX=yes # Not in the search PATH,
17617                                               # but as the default
17618                                               # location of the library.
17619       ;;
17620     esac
17621
17622     case $cc_basename in
17623       CC*)
17624         # FIXME: insert proper C++ library support
17625         ld_shlibs_CXX=no
17626         ;;
17627       aCC*)
17628         case $host_cpu in
17629         hppa*64*)
17630           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17631           ;;
17632         ia64*)
17633           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17634           ;;
17635         *)
17636           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17637           ;;
17638         esac
17639         # Commands to make compiler produce verbose output that lists
17640         # what "hidden" libraries, object files and flags are used when
17641         # linking a shared library.
17642         #
17643         # There doesn't appear to be a way to prevent this compiler from
17644         # explicitly linking system object files so we need to strip them
17645         # from the output so that they don't get included in the library
17646         # dependencies.
17647         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'
17648         ;;
17649       *)
17650         if test "$GXX" = yes; then
17651           if test $with_gnu_ld = no; then
17652             case $host_cpu in
17653             hppa*64*)
17654               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17655               ;;
17656             ia64*)
17657               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17658               ;;
17659             *)
17660               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'
17661               ;;
17662             esac
17663           fi
17664         else
17665           # FIXME: insert proper C++ library support
17666           ld_shlibs_CXX=no
17667         fi
17668         ;;
17669     esac
17670     ;;
17671   interix3*)
17672     hardcode_direct_CXX=no
17673     hardcode_shlibpath_var_CXX=no
17674     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17675     export_dynamic_flag_spec_CXX='${wl}-E'
17676     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17677     # Instead, shared libraries are loaded at an image base (0x10000000 by
17678     # default) and relocated if they conflict, which is a slow very memory
17679     # consuming and fragmenting process.  To avoid this, we pick a random,
17680     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17681     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17682     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'
17683     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'
17684     ;;
17685   irix5* | irix6*)
17686     case $cc_basename in
17687       CC*)
17688         # SGI C++
17689         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'
17690
17691         # Archives containing C++ object files must be created using
17692         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17693         # necessary to make sure instantiated templates are included
17694         # in the archive.
17695         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17696         ;;
17697       *)
17698         if test "$GXX" = yes; then
17699           if test "$with_gnu_ld" = no; then
17700             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'
17701           else
17702             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'
17703           fi
17704         fi
17705         link_all_deplibs_CXX=yes
17706         ;;
17707     esac
17708     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17709     hardcode_libdir_separator_CXX=:
17710     ;;
17711   linux*)
17712     case $cc_basename in
17713       KCC*)
17714         # Kuck and Associates, Inc. (KAI) C++ Compiler
17715
17716         # KCC will only create a shared library if the output file
17717         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17718         # to its proper name (with version) after linking.
17719         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'
17720         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'
17721         # Commands to make compiler produce verbose output that lists
17722         # what "hidden" libraries, object files and flags are used when
17723         # linking a shared library.
17724         #
17725         # There doesn't appear to be a way to prevent this compiler from
17726         # explicitly linking system object files so we need to strip them
17727         # from the output so that they don't get included in the library
17728         # dependencies.
17729         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'
17730
17731         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17732         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17733
17734         # Archives containing C++ object files must be created using
17735         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17736         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17737         ;;
17738       icpc*)
17739         # Intel C++
17740         with_gnu_ld=yes
17741         # version 8.0 and above of icpc choke on multiply defined symbols
17742         # if we add $predep_objects and $postdep_objects, however 7.1 and
17743         # earlier do not add the objects themselves.
17744         case `$CC -V 2>&1` in
17745         *"Version 7."*)
17746           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17747           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'
17748           ;;
17749         *)  # Version 8.0 or newer
17750           tmp_idyn=
17751           case $host_cpu in
17752             ia64*) tmp_idyn=' -i_dynamic';;
17753           esac
17754           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17755           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'
17756           ;;
17757         esac
17758         archive_cmds_need_lc_CXX=no
17759         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17760         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17761         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17762         ;;
17763       pgCC*)
17764         # Portland Group C++ compiler
17765         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17766         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'
17767
17768         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17769         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17770         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'
17771         ;;
17772       cxx*)
17773         # Compaq C++
17774         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17775         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'
17776
17777         runpath_var=LD_RUN_PATH
17778         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17779         hardcode_libdir_separator_CXX=:
17780
17781         # Commands to make compiler produce verbose output that lists
17782         # what "hidden" libraries, object files and flags are used when
17783         # linking a shared library.
17784         #
17785         # There doesn't appear to be a way to prevent this compiler from
17786         # explicitly linking system object files so we need to strip them
17787         # from the output so that they don't get included in the library
17788         # dependencies.
17789         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'
17790         ;;
17791     esac
17792     ;;
17793   lynxos*)
17794     # FIXME: insert proper C++ library support
17795     ld_shlibs_CXX=no
17796     ;;
17797   m88k*)
17798     # FIXME: insert proper C++ library support
17799     ld_shlibs_CXX=no
17800     ;;
17801   mvs*)
17802     case $cc_basename in
17803       cxx*)
17804         # FIXME: insert proper C++ library support
17805         ld_shlibs_CXX=no
17806         ;;
17807       *)
17808         # FIXME: insert proper C++ library support
17809         ld_shlibs_CXX=no
17810         ;;
17811     esac
17812     ;;
17813   netbsd*)
17814     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17815       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17816       wlarc=
17817       hardcode_libdir_flag_spec_CXX='-R$libdir'
17818       hardcode_direct_CXX=yes
17819       hardcode_shlibpath_var_CXX=no
17820     fi
17821     # Workaround some broken pre-1.5 toolchains
17822     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17823     ;;
17824   openbsd2*)
17825     # C++ shared libraries are fairly broken
17826     ld_shlibs_CXX=no
17827     ;;
17828   openbsd*)
17829     hardcode_direct_CXX=yes
17830     hardcode_shlibpath_var_CXX=no
17831     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17832     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17833     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17834       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17835       export_dynamic_flag_spec_CXX='${wl}-E'
17836       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17837     fi
17838     output_verbose_link_cmd='echo'
17839     ;;
17840   osf3*)
17841     case $cc_basename in
17842       KCC*)
17843         # Kuck and Associates, Inc. (KAI) C++ Compiler
17844
17845         # KCC will only create a shared library if the output file
17846         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17847         # to its proper name (with version) after linking.
17848         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'
17849
17850         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17851         hardcode_libdir_separator_CXX=:
17852
17853         # Archives containing C++ object files must be created using
17854         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17855         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17856
17857         ;;
17858       RCC*)
17859         # Rational C++ 2.4.1
17860         # FIXME: insert proper C++ library support
17861         ld_shlibs_CXX=no
17862         ;;
17863       cxx*)
17864         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17865         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'
17866
17867         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17868         hardcode_libdir_separator_CXX=:
17869
17870         # Commands to make compiler produce verbose output that lists
17871         # what "hidden" libraries, object files and flags are used when
17872         # linking a shared library.
17873         #
17874         # There doesn't appear to be a way to prevent this compiler from
17875         # explicitly linking system object files so we need to strip them
17876         # from the output so that they don't get included in the library
17877         # dependencies.
17878         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'
17879         ;;
17880       *)
17881         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17882           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17883           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'
17884
17885           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17886           hardcode_libdir_separator_CXX=:
17887
17888           # Commands to make compiler produce verbose output that lists
17889           # what "hidden" libraries, object files and flags are used when
17890           # linking a shared library.
17891           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17892
17893         else
17894           # FIXME: insert proper C++ library support
17895           ld_shlibs_CXX=no
17896         fi
17897         ;;
17898     esac
17899     ;;
17900   osf4* | osf5*)
17901     case $cc_basename in
17902       KCC*)
17903         # Kuck and Associates, Inc. (KAI) C++ Compiler
17904
17905         # KCC will only create a shared library if the output file
17906         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17907         # to its proper name (with version) after linking.
17908         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'
17909
17910         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17911         hardcode_libdir_separator_CXX=:
17912
17913         # Archives containing C++ object files must be created using
17914         # the KAI C++ compiler.
17915         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17916         ;;
17917       RCC*)
17918         # Rational C++ 2.4.1
17919         # FIXME: insert proper C++ library support
17920         ld_shlibs_CXX=no
17921         ;;
17922       cxx*)
17923         allow_undefined_flag_CXX=' -expect_unresolved \*'
17924         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'
17925         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17926           echo "-hidden">> $lib.exp~
17927           $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~
17928           $rm $lib.exp'
17929
17930         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17931         hardcode_libdir_separator_CXX=:
17932
17933         # Commands to make compiler produce verbose output that lists
17934         # what "hidden" libraries, object files and flags are used when
17935         # linking a shared library.
17936         #
17937         # There doesn't appear to be a way to prevent this compiler from
17938         # explicitly linking system object files so we need to strip them
17939         # from the output so that they don't get included in the library
17940         # dependencies.
17941         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'
17942         ;;
17943       *)
17944         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17945           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17946          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'
17947
17948           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17949           hardcode_libdir_separator_CXX=:
17950
17951           # Commands to make compiler produce verbose output that lists
17952           # what "hidden" libraries, object files and flags are used when
17953           # linking a shared library.
17954           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17955
17956         else
17957           # FIXME: insert proper C++ library support
17958           ld_shlibs_CXX=no
17959         fi
17960         ;;
17961     esac
17962     ;;
17963   psos*)
17964     # FIXME: insert proper C++ library support
17965     ld_shlibs_CXX=no
17966     ;;
17967   sunos4*)
17968     case $cc_basename in
17969       CC*)
17970         # Sun C++ 4.x
17971         # FIXME: insert proper C++ library support
17972         ld_shlibs_CXX=no
17973         ;;
17974       lcc*)
17975         # Lucid
17976         # FIXME: insert proper C++ library support
17977         ld_shlibs_CXX=no
17978         ;;
17979       *)
17980         # FIXME: insert proper C++ library support
17981         ld_shlibs_CXX=no
17982         ;;
17983     esac
17984     ;;
17985   solaris*)
17986     case $cc_basename in
17987       CC*)
17988         # Sun C++ 4.2, 5.x and Centerline C++
17989         archive_cmds_need_lc_CXX=yes
17990         no_undefined_flag_CXX=' -zdefs'
17991         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17992         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17993         $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'
17994
17995         hardcode_libdir_flag_spec_CXX='-R$libdir'
17996         hardcode_shlibpath_var_CXX=no
17997         case $host_os in
17998           solaris2.[0-5] | solaris2.[0-5].*) ;;
17999           *)
18000             # The C++ compiler is used as linker so we must use $wl
18001             # flag to pass the commands to the underlying system
18002             # linker. We must also pass each convience library through
18003             # to the system linker between allextract/defaultextract.
18004             # The C++ compiler will combine linker options so we
18005             # cannot just pass the convience library names through
18006             # without $wl.
18007             # Supported since Solaris 2.6 (maybe 2.5.1?)
18008             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'
18009             ;;
18010         esac
18011         link_all_deplibs_CXX=yes
18012
18013         output_verbose_link_cmd='echo'
18014
18015         # Archives containing C++ object files must be created using
18016         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18017         # necessary to make sure instantiated templates are included
18018         # in the archive.
18019         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18020         ;;
18021       gcx*)
18022         # Green Hills C++ Compiler
18023         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18024
18025         # The C++ compiler must be used to create the archive.
18026         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18027         ;;
18028       *)
18029         # GNU C++ compiler with Solaris linker
18030         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18031           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18032           if $CC --version | grep -v '^2\.7' > /dev/null; then
18033             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18034             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18035                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18036
18037             # Commands to make compiler produce verbose output that lists
18038             # what "hidden" libraries, object files and flags are used when
18039             # linking a shared library.
18040             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18041           else
18042             # g++ 2.7 appears to require `-G' NOT `-shared' on this
18043             # platform.
18044             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18045             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18046                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18047
18048             # Commands to make compiler produce verbose output that lists
18049             # what "hidden" libraries, object files and flags are used when
18050             # linking a shared library.
18051             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18052           fi
18053
18054           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18055         fi
18056         ;;
18057     esac
18058     ;;
18059   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18060     no_undefined_flag_CXX='${wl}-z,text'
18061     archive_cmds_need_lc_CXX=no
18062     hardcode_shlibpath_var_CXX=no
18063     runpath_var='LD_RUN_PATH'
18064
18065     case $cc_basename in
18066       CC*)
18067         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18068         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18069         ;;
18070       *)
18071         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18072         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18073         ;;
18074     esac
18075     ;;
18076   sysv5* | sco3.2v5* | sco5v6*)
18077     # Note: We can NOT use -z defs as we might desire, because we do not
18078     # link with -lc, and that would cause any symbols used from libc to
18079     # always be unresolved, which means just about no library would
18080     # ever link correctly.  If we're not using GNU ld we use -z text
18081     # though, which does catch some bad symbols but isn't as heavy-handed
18082     # as -z defs.
18083     # For security reasons, it is highly recommended that you always
18084     # use absolute paths for naming shared libraries, and exclude the
18085     # DT_RUNPATH tag from executables and libraries.  But doing so
18086     # requires that you compile everything twice, which is a pain.
18087     # So that behaviour is only enabled if SCOABSPATH is set to a
18088     # non-empty value in the environment.  Most likely only useful for
18089     # creating official distributions of packages.
18090     # This is a hack until libtool officially supports absolute path
18091     # names for shared libraries.
18092     no_undefined_flag_CXX='${wl}-z,text'
18093     allow_undefined_flag_CXX='${wl}-z,nodefs'
18094     archive_cmds_need_lc_CXX=no
18095     hardcode_shlibpath_var_CXX=no
18096     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18097     hardcode_libdir_separator_CXX=':'
18098     link_all_deplibs_CXX=yes
18099     export_dynamic_flag_spec_CXX='${wl}-Bexport'
18100     runpath_var='LD_RUN_PATH'
18101
18102     case $cc_basename in
18103       CC*)
18104         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18105         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18106         ;;
18107       *)
18108         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18109         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18110         ;;
18111     esac
18112     ;;
18113   tandem*)
18114     case $cc_basename in
18115       NCC*)
18116         # NonStop-UX NCC 3.20
18117         # FIXME: insert proper C++ library support
18118         ld_shlibs_CXX=no
18119         ;;
18120       *)
18121         # FIXME: insert proper C++ library support
18122         ld_shlibs_CXX=no
18123         ;;
18124     esac
18125     ;;
18126   vxworks*)
18127     # FIXME: insert proper C++ library support
18128     ld_shlibs_CXX=no
18129     ;;
18130   *)
18131     # FIXME: insert proper C++ library support
18132     ld_shlibs_CXX=no
18133     ;;
18134 esac
18135 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18136 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18137 test "$ld_shlibs_CXX" = no && can_build_shared=no
18138
18139 GCC_CXX="$GXX"
18140 LD_CXX="$LD"
18141
18142
18143 cat > conftest.$ac_ext <<EOF
18144 class Foo
18145 {
18146 public:
18147   Foo (void) { a = 0; }
18148 private:
18149   int a;
18150 };
18151 EOF
18152
18153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18154   (eval $ac_compile) 2>&5
18155   ac_status=$?
18156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157   (exit $ac_status); }; then
18158   # Parse the compiler output and extract the necessary
18159   # objects, libraries and library flags.
18160
18161   # Sentinel used to keep track of whether or not we are before
18162   # the conftest object file.
18163   pre_test_object_deps_done=no
18164
18165   # The `*' in the case matches for architectures that use `case' in
18166   # $output_verbose_cmd can trigger glob expansion during the loop
18167   # eval without this substitution.
18168   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18169
18170   for p in `eval $output_verbose_link_cmd`; do
18171     case $p in
18172
18173     -L* | -R* | -l*)
18174        # Some compilers place space between "-{L,R}" and the path.
18175        # Remove the space.
18176        if test $p = "-L" \
18177           || test $p = "-R"; then
18178          prev=$p
18179          continue
18180        else
18181          prev=
18182        fi
18183
18184        if test "$pre_test_object_deps_done" = no; then
18185          case $p in
18186          -L* | -R*)
18187            # Internal compiler library paths should come after those
18188            # provided the user.  The postdeps already come after the
18189            # user supplied libs so there is no need to process them.
18190            if test -z "$compiler_lib_search_path_CXX"; then
18191              compiler_lib_search_path_CXX="${prev}${p}"
18192            else
18193              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18194            fi
18195            ;;
18196          # The "-l" case would never come before the object being
18197          # linked, so don't bother handling this case.
18198          esac
18199        else
18200          if test -z "$postdeps_CXX"; then
18201            postdeps_CXX="${prev}${p}"
18202          else
18203            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18204          fi
18205        fi
18206        ;;
18207
18208     *.$objext)
18209        # This assumes that the test object file only shows up
18210        # once in the compiler output.
18211        if test "$p" = "conftest.$objext"; then
18212          pre_test_object_deps_done=yes
18213          continue
18214        fi
18215
18216        if test "$pre_test_object_deps_done" = no; then
18217          if test -z "$predep_objects_CXX"; then
18218            predep_objects_CXX="$p"
18219          else
18220            predep_objects_CXX="$predep_objects_CXX $p"
18221          fi
18222        else
18223          if test -z "$postdep_objects_CXX"; then
18224            postdep_objects_CXX="$p"
18225          else
18226            postdep_objects_CXX="$postdep_objects_CXX $p"
18227          fi
18228        fi
18229        ;;
18230
18231     *) ;; # Ignore the rest.
18232
18233     esac
18234   done
18235
18236   # Clean up.
18237   rm -f a.out a.exe
18238 else
18239   echo "libtool.m4: error: problem compiling CXX test program"
18240 fi
18241
18242 $rm -f confest.$objext
18243
18244 # PORTME: override above test on systems where it is broken
18245 case $host_os in
18246 interix3*)
18247   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18248   # hack all around it, let's just trust "g++" to DTRT.
18249   predep_objects_CXX=
18250   postdep_objects_CXX=
18251   postdeps_CXX=
18252   ;;
18253
18254 solaris*)
18255   case $cc_basename in
18256   CC*)
18257     # Adding this requires a known-good setup of shared libraries for
18258     # Sun compiler versions before 5.6, else PIC objects from an old
18259     # archive will be linked into the output, leading to subtle bugs.
18260     postdeps_CXX='-lCstd -lCrun'
18261     ;;
18262   esac
18263   ;;
18264 esac
18265
18266
18267 case " $postdeps_CXX " in
18268 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18269 esac
18270
18271 lt_prog_compiler_wl_CXX=
18272 lt_prog_compiler_pic_CXX=
18273 lt_prog_compiler_static_CXX=
18274
18275 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18276 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18277
18278   # C++ specific cases for pic, static, wl, etc.
18279   if test "$GXX" = yes; then
18280     lt_prog_compiler_wl_CXX='-Wl,'
18281     lt_prog_compiler_static_CXX='-static'
18282
18283     case $host_os in
18284     aix*)
18285       # All AIX code is PIC.
18286       if test "$host_cpu" = ia64; then
18287         # AIX 5 now supports IA64 processor
18288         lt_prog_compiler_static_CXX='-Bstatic'
18289       fi
18290       ;;
18291     amigaos*)
18292       # FIXME: we need at least 68020 code to build shared libraries, but
18293       # adding the `-m68020' flag to GCC prevents building anything better,
18294       # like `-m68040'.
18295       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18296       ;;
18297     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18298       # PIC is the default for these OSes.
18299       ;;
18300     mingw* | os2* | pw32*)
18301       # This hack is so that the source file can tell whether it is being
18302       # built for inclusion in a dll (and should export symbols for example).
18303       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18304       ;;
18305     darwin* | rhapsody*)
18306       # PIC is the default on this platform
18307       # Common symbols not allowed in MH_DYLIB files
18308       lt_prog_compiler_pic_CXX='-fno-common'
18309       ;;
18310     *djgpp*)
18311       # DJGPP does not support shared libraries at all
18312       lt_prog_compiler_pic_CXX=
18313       ;;
18314     interix3*)
18315       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18316       # Instead, we relocate shared libraries at runtime.
18317       ;;
18318     sysv4*MP*)
18319       if test -d /usr/nec; then
18320         lt_prog_compiler_pic_CXX=-Kconform_pic
18321       fi
18322       ;;
18323     hpux*)
18324       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18325       # not for PA HP-UX.
18326       case $host_cpu in
18327       hppa*64*|ia64*)
18328         ;;
18329       *)
18330         lt_prog_compiler_pic_CXX='-fPIC'
18331         ;;
18332       esac
18333       ;;
18334     *)
18335       lt_prog_compiler_pic_CXX='-fPIC'
18336       ;;
18337     esac
18338   else
18339     case $host_os in
18340       aix4* | aix5*)
18341         # All AIX code is PIC.
18342         if test "$host_cpu" = ia64; then
18343           # AIX 5 now supports IA64 processor
18344           lt_prog_compiler_static_CXX='-Bstatic'
18345         else
18346           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18347         fi
18348         ;;
18349       chorus*)
18350         case $cc_basename in
18351         cxch68*)
18352           # Green Hills C++ Compiler
18353           # _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"
18354           ;;
18355         esac
18356         ;;
18357        darwin*)
18358          # PIC is the default on this platform
18359          # Common symbols not allowed in MH_DYLIB files
18360          case $cc_basename in
18361            xlc*)
18362            lt_prog_compiler_pic_CXX='-qnocommon'
18363            lt_prog_compiler_wl_CXX='-Wl,'
18364            ;;
18365          esac
18366        ;;
18367       dgux*)
18368         case $cc_basename in
18369           ec++*)
18370             lt_prog_compiler_pic_CXX='-KPIC'
18371             ;;
18372           ghcx*)
18373             # Green Hills C++ Compiler
18374             lt_prog_compiler_pic_CXX='-pic'
18375             ;;
18376           *)
18377             ;;
18378         esac
18379         ;;
18380       freebsd* | kfreebsd*-gnu | dragonfly*)
18381         # FreeBSD uses GNU C++
18382         ;;
18383       hpux9* | hpux10* | hpux11*)
18384         case $cc_basename in
18385           CC*)
18386             lt_prog_compiler_wl_CXX='-Wl,'
18387             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18388             if test "$host_cpu" != ia64; then
18389               lt_prog_compiler_pic_CXX='+Z'
18390             fi
18391             ;;
18392           aCC*)
18393             lt_prog_compiler_wl_CXX='-Wl,'
18394             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18395             case $host_cpu in
18396             hppa*64*|ia64*)
18397               # +Z the default
18398               ;;
18399             *)
18400               lt_prog_compiler_pic_CXX='+Z'
18401               ;;
18402             esac
18403             ;;
18404           *)
18405             ;;
18406         esac
18407         ;;
18408       interix*)
18409         # This is c89, which is MS Visual C++ (no shared libs)
18410         # Anyone wants to do a port?
18411         ;;
18412       irix5* | irix6* | nonstopux*)
18413         case $cc_basename in
18414           CC*)
18415             lt_prog_compiler_wl_CXX='-Wl,'
18416             lt_prog_compiler_static_CXX='-non_shared'
18417             # CC pic flag -KPIC is the default.
18418             ;;
18419           *)
18420             ;;
18421         esac
18422         ;;
18423       linux*)
18424         case $cc_basename in
18425           KCC*)
18426             # KAI C++ Compiler
18427             lt_prog_compiler_wl_CXX='--backend -Wl,'
18428             lt_prog_compiler_pic_CXX='-fPIC'
18429             ;;
18430           icpc* | ecpc*)
18431             # Intel C++
18432             lt_prog_compiler_wl_CXX='-Wl,'
18433             lt_prog_compiler_pic_CXX='-KPIC'
18434             lt_prog_compiler_static_CXX='-static'
18435             ;;
18436           pgCC*)
18437             # Portland Group C++ compiler.
18438             lt_prog_compiler_wl_CXX='-Wl,'
18439             lt_prog_compiler_pic_CXX='-fpic'
18440             lt_prog_compiler_static_CXX='-Bstatic'
18441             ;;
18442           cxx*)
18443             # Compaq C++
18444             # Make sure the PIC flag is empty.  It appears that all Alpha
18445             # Linux and Compaq Tru64 Unix objects are PIC.
18446             lt_prog_compiler_pic_CXX=
18447             lt_prog_compiler_static_CXX='-non_shared'
18448             ;;
18449           *)
18450             ;;
18451         esac
18452         ;;
18453       lynxos*)
18454         ;;
18455       m88k*)
18456         ;;
18457       mvs*)
18458         case $cc_basename in
18459           cxx*)
18460             lt_prog_compiler_pic_CXX='-W c,exportall'
18461             ;;
18462           *)
18463             ;;
18464         esac
18465         ;;
18466       netbsd*)
18467         ;;
18468       osf3* | osf4* | osf5*)
18469         case $cc_basename in
18470           KCC*)
18471             lt_prog_compiler_wl_CXX='--backend -Wl,'
18472             ;;
18473           RCC*)
18474             # Rational C++ 2.4.1
18475             lt_prog_compiler_pic_CXX='-pic'
18476             ;;
18477           cxx*)
18478             # Digital/Compaq C++
18479             lt_prog_compiler_wl_CXX='-Wl,'
18480             # Make sure the PIC flag is empty.  It appears that all Alpha
18481             # Linux and Compaq Tru64 Unix objects are PIC.
18482             lt_prog_compiler_pic_CXX=
18483             lt_prog_compiler_static_CXX='-non_shared'
18484             ;;
18485           *)
18486             ;;
18487         esac
18488         ;;
18489       psos*)
18490         ;;
18491       solaris*)
18492         case $cc_basename in
18493           CC*)
18494             # Sun C++ 4.2, 5.x and Centerline C++
18495             lt_prog_compiler_pic_CXX='-KPIC'
18496             lt_prog_compiler_static_CXX='-Bstatic'
18497             lt_prog_compiler_wl_CXX='-Qoption ld '
18498             ;;
18499           gcx*)
18500             # Green Hills C++ Compiler
18501             lt_prog_compiler_pic_CXX='-PIC'
18502             ;;
18503           *)
18504             ;;
18505         esac
18506         ;;
18507       sunos4*)
18508         case $cc_basename in
18509           CC*)
18510             # Sun C++ 4.x
18511             lt_prog_compiler_pic_CXX='-pic'
18512             lt_prog_compiler_static_CXX='-Bstatic'
18513             ;;
18514           lcc*)
18515             # Lucid
18516             lt_prog_compiler_pic_CXX='-pic'
18517             ;;
18518           *)
18519             ;;
18520         esac
18521         ;;
18522       tandem*)
18523         case $cc_basename in
18524           NCC*)
18525             # NonStop-UX NCC 3.20
18526             lt_prog_compiler_pic_CXX='-KPIC'
18527             ;;
18528           *)
18529             ;;
18530         esac
18531         ;;
18532       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18533         case $cc_basename in
18534           CC*)
18535             lt_prog_compiler_wl_CXX='-Wl,'
18536             lt_prog_compiler_pic_CXX='-KPIC'
18537             lt_prog_compiler_static_CXX='-Bstatic'
18538             ;;
18539         esac
18540         ;;
18541       vxworks*)
18542         ;;
18543       *)
18544         lt_prog_compiler_can_build_shared_CXX=no
18545         ;;
18546     esac
18547   fi
18548
18549 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18550 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
18551
18552 #
18553 # Check to make sure the PIC flag actually works.
18554 #
18555 if test -n "$lt_prog_compiler_pic_CXX"; then
18556
18557 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18558 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
18559 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18560   echo $ECHO_N "(cached) $ECHO_C" >&6
18561 else
18562   lt_prog_compiler_pic_works_CXX=no
18563   ac_outfile=conftest.$ac_objext
18564    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18565    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18566    # Insert the option either (1) after the last *FLAGS variable, or
18567    # (2) before a word containing "conftest.", or (3) at the end.
18568    # Note that $ac_compile itself does not contain backslashes and begins
18569    # with a dollar sign (not a hyphen), so the echo should work correctly.
18570    # The option is referenced via a variable to avoid confusing sed.
18571    lt_compile=`echo "$ac_compile" | $SED \
18572    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18573    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18574    -e 's:$: $lt_compiler_flag:'`
18575    (eval echo "\"\$as_me:18575: $lt_compile\"" >&5)
18576    (eval "$lt_compile" 2>conftest.err)
18577    ac_status=$?
18578    cat conftest.err >&5
18579    echo "$as_me:18579: \$? = $ac_status" >&5
18580    if (exit $ac_status) && test -s "$ac_outfile"; then
18581      # The compiler can only warn and ignore the option if not recognized
18582      # So say no if there are warnings other than the usual output.
18583      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18584      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18585      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18586        lt_prog_compiler_pic_works_CXX=yes
18587      fi
18588    fi
18589    $rm conftest*
18590
18591 fi
18592 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18593 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
18594
18595 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18596     case $lt_prog_compiler_pic_CXX in
18597      "" | " "*) ;;
18598      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18599      esac
18600 else
18601     lt_prog_compiler_pic_CXX=
18602      lt_prog_compiler_can_build_shared_CXX=no
18603 fi
18604
18605 fi
18606 case $host_os in
18607   # For platforms which do not support PIC, -DPIC is meaningless:
18608   *djgpp*)
18609     lt_prog_compiler_pic_CXX=
18610     ;;
18611   *)
18612     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18613     ;;
18614 esac
18615
18616 #
18617 # Check to make sure the static flag actually works.
18618 #
18619 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18620 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18621 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18622 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18623   echo $ECHO_N "(cached) $ECHO_C" >&6
18624 else
18625   lt_prog_compiler_static_works_CXX=no
18626    save_LDFLAGS="$LDFLAGS"
18627    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18628    printf "$lt_simple_link_test_code" > conftest.$ac_ext
18629    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18630      # The linker can only warn and ignore the option if not recognized
18631      # So say no if there are warnings
18632      if test -s conftest.err; then
18633        # Append any errors to the config.log.
18634        cat conftest.err 1>&5
18635        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18636        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18637        if diff conftest.exp conftest.er2 >/dev/null; then
18638          lt_prog_compiler_static_works_CXX=yes
18639        fi
18640      else
18641        lt_prog_compiler_static_works_CXX=yes
18642      fi
18643    fi
18644    $rm conftest*
18645    LDFLAGS="$save_LDFLAGS"
18646
18647 fi
18648 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18649 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18650
18651 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18652     :
18653 else
18654     lt_prog_compiler_static_CXX=
18655 fi
18656
18657
18658 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18659 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18660 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18661   echo $ECHO_N "(cached) $ECHO_C" >&6
18662 else
18663   lt_cv_prog_compiler_c_o_CXX=no
18664    $rm -r conftest 2>/dev/null
18665    mkdir conftest
18666    cd conftest
18667    mkdir out
18668    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18669
18670    lt_compiler_flag="-o out/conftest2.$ac_objext"
18671    # Insert the option either (1) after the last *FLAGS variable, or
18672    # (2) before a word containing "conftest.", or (3) at the end.
18673    # Note that $ac_compile itself does not contain backslashes and begins
18674    # with a dollar sign (not a hyphen), so the echo should work correctly.
18675    lt_compile=`echo "$ac_compile" | $SED \
18676    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18677    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18678    -e 's:$: $lt_compiler_flag:'`
18679    (eval echo "\"\$as_me:18679: $lt_compile\"" >&5)
18680    (eval "$lt_compile" 2>out/conftest.err)
18681    ac_status=$?
18682    cat out/conftest.err >&5
18683    echo "$as_me:18683: \$? = $ac_status" >&5
18684    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18685    then
18686      # The compiler can only warn and ignore the option if not recognized
18687      # So say no if there are warnings
18688      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18689      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18690      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18691        lt_cv_prog_compiler_c_o_CXX=yes
18692      fi
18693    fi
18694    chmod u+w . 2>&5
18695    $rm conftest*
18696    # SGI C++ compiler will create directory out/ii_files/ for
18697    # template instantiation
18698    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18699    $rm out/* && rmdir out
18700    cd ..
18701    rmdir conftest
18702    $rm conftest*
18703
18704 fi
18705 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18706 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
18707
18708
18709 hard_links="nottested"
18710 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18711   # do not overwrite the value of need_locks provided by the user
18712   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18713 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18714   hard_links=yes
18715   $rm conftest*
18716   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18717   touch conftest.a
18718   ln conftest.a conftest.b 2>&5 || hard_links=no
18719   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18720   { echo "$as_me:$LINENO: result: $hard_links" >&5
18721 echo "${ECHO_T}$hard_links" >&6; }
18722   if test "$hard_links" = no; then
18723     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18724 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18725     need_locks=warn
18726   fi
18727 else
18728   need_locks=no
18729 fi
18730
18731 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18732 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18733
18734   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18735   case $host_os in
18736   aix4* | aix5*)
18737     # If we're using GNU nm, then we don't want the "-C" option.
18738     # -C means demangle to AIX nm, but means don't demangle with GNU nm
18739     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18740       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'
18741     else
18742       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'
18743     fi
18744     ;;
18745   pw32*)
18746     export_symbols_cmds_CXX="$ltdll_cmds"
18747   ;;
18748   cygwin* | mingw*)
18749     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'
18750   ;;
18751   *)
18752     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18753   ;;
18754   esac
18755
18756 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18757 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18758 test "$ld_shlibs_CXX" = no && can_build_shared=no
18759
18760 #
18761 # Do we need to explicitly link libc?
18762 #
18763 case "x$archive_cmds_need_lc_CXX" in
18764 x|xyes)
18765   # Assume -lc should be added
18766   archive_cmds_need_lc_CXX=yes
18767
18768   if test "$enable_shared" = yes && test "$GCC" = yes; then
18769     case $archive_cmds_CXX in
18770     *'~'*)
18771       # FIXME: we may have to deal with multi-command sequences.
18772       ;;
18773     '$CC '*)
18774       # Test whether the compiler implicitly links with -lc since on some
18775       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18776       # to ld, don't add -lc before -lgcc.
18777       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18778 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18779       $rm conftest*
18780       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18781
18782       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18783   (eval $ac_compile) 2>&5
18784   ac_status=$?
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); } 2>conftest.err; then
18787         soname=conftest
18788         lib=conftest
18789         libobjs=conftest.$ac_objext
18790         deplibs=
18791         wl=$lt_prog_compiler_wl_CXX
18792         pic_flag=$lt_prog_compiler_pic_CXX
18793         compiler_flags=-v
18794         linker_flags=-v
18795         verstring=
18796         output_objdir=.
18797         libname=conftest
18798         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18799         allow_undefined_flag_CXX=
18800         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18801   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18802   ac_status=$?
18803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804   (exit $ac_status); }
18805         then
18806           archive_cmds_need_lc_CXX=no
18807         else
18808           archive_cmds_need_lc_CXX=yes
18809         fi
18810         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18811       else
18812         cat conftest.err 1>&5
18813       fi
18814       $rm conftest*
18815       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18816 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
18817       ;;
18818     esac
18819   fi
18820   ;;
18821 esac
18822
18823 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18824 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18825 library_names_spec=
18826 libname_spec='lib$name'
18827 soname_spec=
18828 shrext_cmds=".so"
18829 postinstall_cmds=
18830 postuninstall_cmds=
18831 finish_cmds=
18832 finish_eval=
18833 shlibpath_var=
18834 shlibpath_overrides_runpath=unknown
18835 version_type=none
18836 dynamic_linker="$host_os ld.so"
18837 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18838 if test "$GCC" = yes; then
18839   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18840   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18841     # if the path contains ";" then we assume it to be the separator
18842     # otherwise default to the standard path separator (i.e. ":") - it is
18843     # assumed that no part of a normal pathname contains ";" but that should
18844     # okay in the real world where ";" in dirpaths is itself problematic.
18845     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18846   else
18847     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18848   fi
18849 else
18850   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18851 fi
18852 need_lib_prefix=unknown
18853 hardcode_into_libs=no
18854
18855 # when you set need_version to no, make sure it does not cause -set_version
18856 # flags to be left without arguments
18857 need_version=unknown
18858
18859 case $host_os in
18860 aix3*)
18861   version_type=linux
18862   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18863   shlibpath_var=LIBPATH
18864
18865   # AIX 3 has no versioning support, so we append a major version to the name.
18866   soname_spec='${libname}${release}${shared_ext}$major'
18867   ;;
18868
18869 aix4* | aix5*)
18870   version_type=linux
18871   need_lib_prefix=no
18872   need_version=no
18873   hardcode_into_libs=yes
18874   if test "$host_cpu" = ia64; then
18875     # AIX 5 supports IA64
18876     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18877     shlibpath_var=LD_LIBRARY_PATH
18878   else
18879     # With GCC up to 2.95.x, collect2 would create an import file
18880     # for dependence libraries.  The import file would start with
18881     # the line `#! .'.  This would cause the generated library to
18882     # depend on `.', always an invalid library.  This was fixed in
18883     # development snapshots of GCC prior to 3.0.
18884     case $host_os in
18885       aix4 | aix4.[01] | aix4.[01].*)
18886       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18887            echo ' yes '
18888            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18889         :
18890       else
18891         can_build_shared=no
18892       fi
18893       ;;
18894     esac
18895     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18896     # soname into executable. Probably we can add versioning support to
18897     # collect2, so additional links can be useful in future.
18898     if test "$aix_use_runtimelinking" = yes; then
18899       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18900       # instead of lib<name>.a to let people know that these are not
18901       # typical AIX shared libraries.
18902       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18903     else
18904       # We preserve .a as extension for shared libraries through AIX4.2
18905       # and later when we are not doing run time linking.
18906       library_names_spec='${libname}${release}.a $libname.a'
18907       soname_spec='${libname}${release}${shared_ext}$major'
18908     fi
18909     shlibpath_var=LIBPATH
18910   fi
18911   ;;
18912
18913 amigaos*)
18914   library_names_spec='$libname.ixlibrary $libname.a'
18915   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18916   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'
18917   ;;
18918
18919 beos*)
18920   library_names_spec='${libname}${shared_ext}'
18921   dynamic_linker="$host_os ld.so"
18922   shlibpath_var=LIBRARY_PATH
18923   ;;
18924
18925 bsdi[45]*)
18926   version_type=linux
18927   need_version=no
18928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18929   soname_spec='${libname}${release}${shared_ext}$major'
18930   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18931   shlibpath_var=LD_LIBRARY_PATH
18932   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18933   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18934   # the default ld.so.conf also contains /usr/contrib/lib and
18935   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18936   # libtool to hard-code these into programs
18937   ;;
18938
18939 cygwin* | mingw* | pw32*)
18940   version_type=windows
18941   shrext_cmds=".dll"
18942   need_version=no
18943   need_lib_prefix=no
18944
18945   case $GCC,$host_os in
18946   yes,cygwin* | yes,mingw* | yes,pw32*)
18947     library_names_spec='$libname.dll.a'
18948     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18949     postinstall_cmds='base_file=`basename \${file}`~
18950       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18951       dldir=$destdir/`dirname \$dlpath`~
18952       test -d \$dldir || mkdir -p \$dldir~
18953       $install_prog $dir/$dlname \$dldir/$dlname~
18954       chmod a+x \$dldir/$dlname'
18955     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18956       dlpath=$dir/\$dldll~
18957        $rm \$dlpath'
18958     shlibpath_overrides_runpath=yes
18959
18960     case $host_os in
18961     cygwin*)
18962       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18963       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18964       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18965       ;;
18966     mingw*)
18967       # MinGW DLLs use traditional 'lib' prefix
18968       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18969       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18970       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18971         # It is most probably a Windows format PATH printed by
18972         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18973         # path with ; separators, and with drive letters. We can handle the
18974         # drive letters (cygwin fileutils understands them), so leave them,
18975         # especially as we might pass files found there to a mingw objdump,
18976         # which wouldn't understand a cygwinified path. Ahh.
18977         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18978       else
18979         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18980       fi
18981       ;;
18982     pw32*)
18983       # pw32 DLLs use 'pw' prefix rather than 'lib'
18984       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18985       ;;
18986     esac
18987     ;;
18988
18989   *)
18990     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18991     ;;
18992   esac
18993   dynamic_linker='Win32 ld.exe'
18994   # FIXME: first we should search . and the directory the executable is in
18995   shlibpath_var=PATH
18996   ;;
18997
18998 darwin* | rhapsody*)
18999   dynamic_linker="$host_os dyld"
19000   version_type=darwin
19001   need_lib_prefix=no
19002   need_version=no
19003   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19004   soname_spec='${libname}${release}${major}$shared_ext'
19005   shlibpath_overrides_runpath=yes
19006   shlibpath_var=DYLD_LIBRARY_PATH
19007   shrext_cmds='.dylib'
19008   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19009   if test "$GCC" = yes; then
19010     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"`
19011   else
19012     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19013   fi
19014   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19015   ;;
19016
19017 dgux*)
19018   version_type=linux
19019   need_lib_prefix=no
19020   need_version=no
19021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19022   soname_spec='${libname}${release}${shared_ext}$major'
19023   shlibpath_var=LD_LIBRARY_PATH
19024   ;;
19025
19026 freebsd1*)
19027   dynamic_linker=no
19028   ;;
19029
19030 kfreebsd*-gnu)
19031   version_type=linux
19032   need_lib_prefix=no
19033   need_version=no
19034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19035   soname_spec='${libname}${release}${shared_ext}$major'
19036   shlibpath_var=LD_LIBRARY_PATH
19037   shlibpath_overrides_runpath=no
19038   hardcode_into_libs=yes
19039   dynamic_linker='GNU ld.so'
19040   ;;
19041
19042 freebsd* | dragonfly*)
19043   # DragonFly does not have aout.  When/if they implement a new
19044   # versioning mechanism, adjust this.
19045   if test -x /usr/bin/objformat; then
19046     objformat=`/usr/bin/objformat`
19047   else
19048     case $host_os in
19049     freebsd[123]*) objformat=aout ;;
19050     *) objformat=elf ;;
19051     esac
19052   fi
19053   version_type=freebsd-$objformat
19054   case $version_type in
19055     freebsd-elf*)
19056       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19057       need_version=no
19058       need_lib_prefix=no
19059       ;;
19060     freebsd-*)
19061       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19062       need_version=yes
19063       ;;
19064   esac
19065   shlibpath_var=LD_LIBRARY_PATH
19066   case $host_os in
19067   freebsd2*)
19068     shlibpath_overrides_runpath=yes
19069     ;;
19070   freebsd3.[01]* | freebsdelf3.[01]*)
19071     shlibpath_overrides_runpath=yes
19072     hardcode_into_libs=yes
19073     ;;
19074   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19075   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19076     shlibpath_overrides_runpath=no
19077     hardcode_into_libs=yes
19078     ;;
19079   freebsd*) # from 4.6 on
19080     shlibpath_overrides_runpath=yes
19081     hardcode_into_libs=yes
19082     ;;
19083   esac
19084   ;;
19085
19086 gnu*)
19087   version_type=linux
19088   need_lib_prefix=no
19089   need_version=no
19090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19091   soname_spec='${libname}${release}${shared_ext}$major'
19092   shlibpath_var=LD_LIBRARY_PATH
19093   hardcode_into_libs=yes
19094   ;;
19095
19096 hpux9* | hpux10* | hpux11*)
19097   # Give a soname corresponding to the major version so that dld.sl refuses to
19098   # link against other versions.
19099   version_type=sunos
19100   need_lib_prefix=no
19101   need_version=no
19102   case $host_cpu in
19103   ia64*)
19104     shrext_cmds='.so'
19105     hardcode_into_libs=yes
19106     dynamic_linker="$host_os dld.so"
19107     shlibpath_var=LD_LIBRARY_PATH
19108     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19109     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19110     soname_spec='${libname}${release}${shared_ext}$major'
19111     if test "X$HPUX_IA64_MODE" = X32; then
19112       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19113     else
19114       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19115     fi
19116     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19117     ;;
19118    hppa*64*)
19119      shrext_cmds='.sl'
19120      hardcode_into_libs=yes
19121      dynamic_linker="$host_os dld.sl"
19122      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19123      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19124      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19125      soname_spec='${libname}${release}${shared_ext}$major'
19126      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19127      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19128      ;;
19129    *)
19130     shrext_cmds='.sl'
19131     dynamic_linker="$host_os dld.sl"
19132     shlibpath_var=SHLIB_PATH
19133     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19134     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19135     soname_spec='${libname}${release}${shared_ext}$major'
19136     ;;
19137   esac
19138   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19139   postinstall_cmds='chmod 555 $lib'
19140   ;;
19141
19142 interix3*)
19143   version_type=linux
19144   need_lib_prefix=no
19145   need_version=no
19146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19147   soname_spec='${libname}${release}${shared_ext}$major'
19148   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19149   shlibpath_var=LD_LIBRARY_PATH
19150   shlibpath_overrides_runpath=no
19151   hardcode_into_libs=yes
19152   ;;
19153
19154 irix5* | irix6* | nonstopux*)
19155   case $host_os in
19156     nonstopux*) version_type=nonstopux ;;
19157     *)
19158         if test "$lt_cv_prog_gnu_ld" = yes; then
19159                 version_type=linux
19160         else
19161                 version_type=irix
19162         fi ;;
19163   esac
19164   need_lib_prefix=no
19165   need_version=no
19166   soname_spec='${libname}${release}${shared_ext}$major'
19167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19168   case $host_os in
19169   irix5* | nonstopux*)
19170     libsuff= shlibsuff=
19171     ;;
19172   *)
19173     case $LD in # libtool.m4 will add one of these switches to LD
19174     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19175       libsuff= shlibsuff= libmagic=32-bit;;
19176     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19177       libsuff=32 shlibsuff=N32 libmagic=N32;;
19178     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19179       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19180     *) libsuff= shlibsuff= libmagic=never-match;;
19181     esac
19182     ;;
19183   esac
19184   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19185   shlibpath_overrides_runpath=no
19186   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19187   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19188   hardcode_into_libs=yes
19189   ;;
19190
19191 # No shared lib support for Linux oldld, aout, or coff.
19192 linux*oldld* | linux*aout* | linux*coff*)
19193   dynamic_linker=no
19194   ;;
19195
19196 # This must be Linux ELF.
19197 linux*)
19198   version_type=linux
19199   need_lib_prefix=no
19200   need_version=no
19201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19202   soname_spec='${libname}${release}${shared_ext}$major'
19203   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19204   shlibpath_var=LD_LIBRARY_PATH
19205   shlibpath_overrides_runpath=no
19206   # This implies no fast_install, which is unacceptable.
19207   # Some rework will be needed to allow for fast_install
19208   # before this can be enabled.
19209   hardcode_into_libs=yes
19210
19211   # Append ld.so.conf contents to the search path
19212   if test -f /etc/ld.so.conf; then
19213     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' ' '`
19214     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19215   fi
19216
19217   # We used to test for /lib/ld.so.1 and disable shared libraries on
19218   # powerpc, because MkLinux only supported shared libraries with the
19219   # GNU dynamic linker.  Since this was broken with cross compilers,
19220   # most powerpc-linux boxes support dynamic linking these days and
19221   # people can always --disable-shared, the test was removed, and we
19222   # assume the GNU/Linux dynamic linker is in use.
19223   dynamic_linker='GNU/Linux ld.so'
19224   ;;
19225
19226 knetbsd*-gnu)
19227   version_type=linux
19228   need_lib_prefix=no
19229   need_version=no
19230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19231   soname_spec='${libname}${release}${shared_ext}$major'
19232   shlibpath_var=LD_LIBRARY_PATH
19233   shlibpath_overrides_runpath=no
19234   hardcode_into_libs=yes
19235   dynamic_linker='GNU ld.so'
19236   ;;
19237
19238 netbsd*)
19239   version_type=sunos
19240   need_lib_prefix=no
19241   need_version=no
19242   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19244     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19245     dynamic_linker='NetBSD (a.out) ld.so'
19246   else
19247     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19248     soname_spec='${libname}${release}${shared_ext}$major'
19249     dynamic_linker='NetBSD ld.elf_so'
19250   fi
19251   shlibpath_var=LD_LIBRARY_PATH
19252   shlibpath_overrides_runpath=yes
19253   hardcode_into_libs=yes
19254   ;;
19255
19256 newsos6)
19257   version_type=linux
19258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19259   shlibpath_var=LD_LIBRARY_PATH
19260   shlibpath_overrides_runpath=yes
19261   ;;
19262
19263 nto-qnx*)
19264   version_type=linux
19265   need_lib_prefix=no
19266   need_version=no
19267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19268   soname_spec='${libname}${release}${shared_ext}$major'
19269   shlibpath_var=LD_LIBRARY_PATH
19270   shlibpath_overrides_runpath=yes
19271   ;;
19272
19273 openbsd*)
19274   version_type=sunos
19275   sys_lib_dlsearch_path_spec="/usr/lib"
19276   need_lib_prefix=no
19277   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19278   case $host_os in
19279     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19280     *)                         need_version=no  ;;
19281   esac
19282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19283   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19284   shlibpath_var=LD_LIBRARY_PATH
19285   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19286     case $host_os in
19287       openbsd2.[89] | openbsd2.[89].*)
19288         shlibpath_overrides_runpath=no
19289         ;;
19290       *)
19291         shlibpath_overrides_runpath=yes
19292         ;;
19293       esac
19294   else
19295     shlibpath_overrides_runpath=yes
19296   fi
19297   ;;
19298
19299 os2*)
19300   libname_spec='$name'
19301   shrext_cmds=".dll"
19302   need_lib_prefix=no
19303   library_names_spec='$libname${shared_ext} $libname.a'
19304   dynamic_linker='OS/2 ld.exe'
19305   shlibpath_var=LIBPATH
19306   ;;
19307
19308 osf3* | osf4* | osf5*)
19309   version_type=osf
19310   need_lib_prefix=no
19311   need_version=no
19312   soname_spec='${libname}${release}${shared_ext}$major'
19313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19314   shlibpath_var=LD_LIBRARY_PATH
19315   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19316   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19317   ;;
19318
19319 solaris*)
19320   version_type=linux
19321   need_lib_prefix=no
19322   need_version=no
19323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19324   soname_spec='${libname}${release}${shared_ext}$major'
19325   shlibpath_var=LD_LIBRARY_PATH
19326   shlibpath_overrides_runpath=yes
19327   hardcode_into_libs=yes
19328   # ldd complains unless libraries are executable
19329   postinstall_cmds='chmod +x $lib'
19330   ;;
19331
19332 sunos4*)
19333   version_type=sunos
19334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19335   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19336   shlibpath_var=LD_LIBRARY_PATH
19337   shlibpath_overrides_runpath=yes
19338   if test "$with_gnu_ld" = yes; then
19339     need_lib_prefix=no
19340   fi
19341   need_version=yes
19342   ;;
19343
19344 sysv4 | sysv4.3*)
19345   version_type=linux
19346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19347   soname_spec='${libname}${release}${shared_ext}$major'
19348   shlibpath_var=LD_LIBRARY_PATH
19349   case $host_vendor in
19350     sni)
19351       shlibpath_overrides_runpath=no
19352       need_lib_prefix=no
19353       export_dynamic_flag_spec='${wl}-Blargedynsym'
19354       runpath_var=LD_RUN_PATH
19355       ;;
19356     siemens)
19357       need_lib_prefix=no
19358       ;;
19359     motorola)
19360       need_lib_prefix=no
19361       need_version=no
19362       shlibpath_overrides_runpath=no
19363       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19364       ;;
19365   esac
19366   ;;
19367
19368 sysv4*MP*)
19369   if test -d /usr/nec ;then
19370     version_type=linux
19371     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19372     soname_spec='$libname${shared_ext}.$major'
19373     shlibpath_var=LD_LIBRARY_PATH
19374   fi
19375   ;;
19376
19377 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19378   version_type=freebsd-elf
19379   need_lib_prefix=no
19380   need_version=no
19381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19382   soname_spec='${libname}${release}${shared_ext}$major'
19383   shlibpath_var=LD_LIBRARY_PATH
19384   hardcode_into_libs=yes
19385   if test "$with_gnu_ld" = yes; then
19386     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19387     shlibpath_overrides_runpath=no
19388   else
19389     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19390     shlibpath_overrides_runpath=yes
19391     case $host_os in
19392       sco3.2v5*)
19393         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19394         ;;
19395     esac
19396   fi
19397   sys_lib_dlsearch_path_spec='/usr/lib'
19398   ;;
19399
19400 uts4*)
19401   version_type=linux
19402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19403   soname_spec='${libname}${release}${shared_ext}$major'
19404   shlibpath_var=LD_LIBRARY_PATH
19405   ;;
19406
19407 *)
19408   dynamic_linker=no
19409   ;;
19410 esac
19411 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19412 echo "${ECHO_T}$dynamic_linker" >&6; }
19413 test "$dynamic_linker" = no && can_build_shared=no
19414
19415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19416 if test "$GCC" = yes; then
19417   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19418 fi
19419
19420 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19421 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19422 hardcode_action_CXX=
19423 if test -n "$hardcode_libdir_flag_spec_CXX" || \
19424    test -n "$runpath_var_CXX" || \
19425    test "X$hardcode_automatic_CXX" = "Xyes" ; then
19426
19427   # We can hardcode non-existant directories.
19428   if test "$hardcode_direct_CXX" != no &&
19429      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19430      # have to relink, otherwise we might link with an installed library
19431      # when we should be linking with a yet-to-be-installed one
19432      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19433      test "$hardcode_minus_L_CXX" != no; then
19434     # Linking always hardcodes the temporary library directory.
19435     hardcode_action_CXX=relink
19436   else
19437     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19438     hardcode_action_CXX=immediate
19439   fi
19440 else
19441   # We cannot hardcode anything, or else we can only hardcode existing
19442   # directories.
19443   hardcode_action_CXX=unsupported
19444 fi
19445 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19446 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
19447
19448 if test "$hardcode_action_CXX" = relink; then
19449   # Fast installation is not supported
19450   enable_fast_install=no
19451 elif test "$shlibpath_overrides_runpath" = yes ||
19452      test "$enable_shared" = no; then
19453   # Fast installation is not necessary
19454   enable_fast_install=needless
19455 fi
19456
19457
19458 # The else clause should only fire when bootstrapping the
19459 # libtool distribution, otherwise you forgot to ship ltmain.sh
19460 # with your package, and you will get complaints that there are
19461 # no rules to generate ltmain.sh.
19462 if test -f "$ltmain"; then
19463   # See if we are running on zsh, and set the options which allow our commands through
19464   # without removal of \ escapes.
19465   if test -n "${ZSH_VERSION+set}" ; then
19466     setopt NO_GLOB_SUBST
19467   fi
19468   # Now quote all the things that may contain metacharacters while being
19469   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19470   # variables and quote the copies for generation of the libtool script.
19471   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19472     SED SHELL STRIP \
19473     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19474     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19475     deplibs_check_method reload_flag reload_cmds need_locks \
19476     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19477     lt_cv_sys_global_symbol_to_c_name_address \
19478     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19479     old_postinstall_cmds old_postuninstall_cmds \
19480     compiler_CXX \
19481     CC_CXX \
19482     LD_CXX \
19483     lt_prog_compiler_wl_CXX \
19484     lt_prog_compiler_pic_CXX \
19485     lt_prog_compiler_static_CXX \
19486     lt_prog_compiler_no_builtin_flag_CXX \
19487     export_dynamic_flag_spec_CXX \
19488     thread_safe_flag_spec_CXX \
19489     whole_archive_flag_spec_CXX \
19490     enable_shared_with_static_runtimes_CXX \
19491     old_archive_cmds_CXX \
19492     old_archive_from_new_cmds_CXX \
19493     predep_objects_CXX \
19494     postdep_objects_CXX \
19495     predeps_CXX \
19496     postdeps_CXX \
19497     compiler_lib_search_path_CXX \
19498     archive_cmds_CXX \
19499     archive_expsym_cmds_CXX \
19500     postinstall_cmds_CXX \
19501     postuninstall_cmds_CXX \
19502     old_archive_from_expsyms_cmds_CXX \
19503     allow_undefined_flag_CXX \
19504     no_undefined_flag_CXX \
19505     export_symbols_cmds_CXX \
19506     hardcode_libdir_flag_spec_CXX \
19507     hardcode_libdir_flag_spec_ld_CXX \
19508     hardcode_libdir_separator_CXX \
19509     hardcode_automatic_CXX \
19510     module_cmds_CXX \
19511     module_expsym_cmds_CXX \
19512     lt_cv_prog_compiler_c_o_CXX \
19513     exclude_expsyms_CXX \
19514     include_expsyms_CXX; do
19515
19516     case $var in
19517     old_archive_cmds_CXX | \
19518     old_archive_from_new_cmds_CXX | \
19519     archive_cmds_CXX | \
19520     archive_expsym_cmds_CXX | \
19521     module_cmds_CXX | \
19522     module_expsym_cmds_CXX | \
19523     old_archive_from_expsyms_cmds_CXX | \
19524     export_symbols_cmds_CXX | \
19525     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19526     postinstall_cmds | postuninstall_cmds | \
19527     old_postinstall_cmds | old_postuninstall_cmds | \
19528     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19529       # Double-quote double-evaled strings.
19530       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19531       ;;
19532     *)
19533       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19534       ;;
19535     esac
19536   done
19537
19538   case $lt_echo in
19539   *'\$0 --fallback-echo"')
19540     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19541     ;;
19542   esac
19543
19544 cfgfile="$ofile"
19545
19546   cat <<__EOF__ >> "$cfgfile"
19547 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19548
19549 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19550
19551 # Shell to use when invoking shell scripts.
19552 SHELL=$lt_SHELL
19553
19554 # Whether or not to build shared libraries.
19555 build_libtool_libs=$enable_shared
19556
19557 # Whether or not to build static libraries.
19558 build_old_libs=$enable_static
19559
19560 # Whether or not to add -lc for building shared libraries.
19561 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19562
19563 # Whether or not to disallow shared libs when runtime libs are static
19564 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19565
19566 # Whether or not to optimize for fast installation.
19567 fast_install=$enable_fast_install
19568
19569 # The host system.
19570 host_alias=$host_alias
19571 host=$host
19572 host_os=$host_os
19573
19574 # The build system.
19575 build_alias=$build_alias
19576 build=$build
19577 build_os=$build_os
19578
19579 # An echo program that does not interpret backslashes.
19580 echo=$lt_echo
19581
19582 # The archiver.
19583 AR=$lt_AR
19584 AR_FLAGS=$lt_AR_FLAGS
19585
19586 # A C compiler.
19587 LTCC=$lt_LTCC
19588
19589 # LTCC compiler flags.
19590 LTCFLAGS=$lt_LTCFLAGS
19591
19592 # A language-specific compiler.
19593 CC=$lt_compiler_CXX
19594
19595 # Is the compiler the GNU C compiler?
19596 with_gcc=$GCC_CXX
19597
19598 # An ERE matcher.
19599 EGREP=$lt_EGREP
19600
19601 # The linker used to build libraries.
19602 LD=$lt_LD_CXX
19603
19604 # Whether we need hard or soft links.
19605 LN_S=$lt_LN_S
19606
19607 # A BSD-compatible nm program.
19608 NM=$lt_NM
19609
19610 # A symbol stripping program
19611 STRIP=$lt_STRIP
19612
19613 # Used to examine libraries when file_magic_cmd begins "file"
19614 MAGIC_CMD=$MAGIC_CMD
19615
19616 # Used on cygwin: DLL creation program.
19617 DLLTOOL="$DLLTOOL"
19618
19619 # Used on cygwin: object dumper.
19620 OBJDUMP="$OBJDUMP"
19621
19622 # Used on cygwin: assembler.
19623 AS="$AS"
19624
19625 # The name of the directory that contains temporary libtool files.
19626 objdir=$objdir
19627
19628 # How to create reloadable object files.
19629 reload_flag=$lt_reload_flag
19630 reload_cmds=$lt_reload_cmds
19631
19632 # How to pass a linker flag through the compiler.
19633 wl=$lt_lt_prog_compiler_wl_CXX
19634
19635 # Object file suffix (normally "o").
19636 objext="$ac_objext"
19637
19638 # Old archive suffix (normally "a").
19639 libext="$libext"
19640
19641 # Shared library suffix (normally ".so").
19642 shrext_cmds='$shrext_cmds'
19643
19644 # Executable file suffix (normally "").
19645 exeext="$exeext"
19646
19647 # Additional compiler flags for building library objects.
19648 pic_flag=$lt_lt_prog_compiler_pic_CXX
19649 pic_mode=$pic_mode
19650
19651 # What is the maximum length of a command?
19652 max_cmd_len=$lt_cv_sys_max_cmd_len
19653
19654 # Does compiler simultaneously support -c and -o options?
19655 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19656
19657 # Must we lock files when doing compilation?
19658 need_locks=$lt_need_locks
19659
19660 # Do we need the lib prefix for modules?
19661 need_lib_prefix=$need_lib_prefix
19662
19663 # Do we need a version for libraries?
19664 need_version=$need_version
19665
19666 # Whether dlopen is supported.
19667 dlopen_support=$enable_dlopen
19668
19669 # Whether dlopen of programs is supported.
19670 dlopen_self=$enable_dlopen_self
19671
19672 # Whether dlopen of statically linked programs is supported.
19673 dlopen_self_static=$enable_dlopen_self_static
19674
19675 # Compiler flag to prevent dynamic linking.
19676 link_static_flag=$lt_lt_prog_compiler_static_CXX
19677
19678 # Compiler flag to turn off builtin functions.
19679 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19680
19681 # Compiler flag to allow reflexive dlopens.
19682 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19683
19684 # Compiler flag to generate shared objects directly from archives.
19685 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19686
19687 # Compiler flag to generate thread-safe objects.
19688 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19689
19690 # Library versioning type.
19691 version_type=$version_type
19692
19693 # Format of library name prefix.
19694 libname_spec=$lt_libname_spec
19695
19696 # List of archive names.  First name is the real one, the rest are links.
19697 # The last name is the one that the linker finds with -lNAME.
19698 library_names_spec=$lt_library_names_spec
19699
19700 # The coded name of the library, if different from the real name.
19701 soname_spec=$lt_soname_spec
19702
19703 # Commands used to build and install an old-style archive.
19704 RANLIB=$lt_RANLIB
19705 old_archive_cmds=$lt_old_archive_cmds_CXX
19706 old_postinstall_cmds=$lt_old_postinstall_cmds
19707 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19708
19709 # Create an old-style archive from a shared archive.
19710 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19711
19712 # Create a temporary old-style archive to link instead of a shared archive.
19713 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19714
19715 # Commands used to build and install a shared archive.
19716 archive_cmds=$lt_archive_cmds_CXX
19717 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19718 postinstall_cmds=$lt_postinstall_cmds
19719 postuninstall_cmds=$lt_postuninstall_cmds
19720
19721 # Commands used to build a loadable module (assumed same as above if empty)
19722 module_cmds=$lt_module_cmds_CXX
19723 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19724
19725 # Commands to strip libraries.
19726 old_striplib=$lt_old_striplib
19727 striplib=$lt_striplib
19728
19729 # Dependencies to place before the objects being linked to create a
19730 # shared library.
19731 predep_objects=$lt_predep_objects_CXX
19732
19733 # Dependencies to place after the objects being linked to create a
19734 # shared library.
19735 postdep_objects=$lt_postdep_objects_CXX
19736
19737 # Dependencies to place before the objects being linked to create a
19738 # shared library.
19739 predeps=$lt_predeps_CXX
19740
19741 # Dependencies to place after the objects being linked to create a
19742 # shared library.
19743 postdeps=$lt_postdeps_CXX
19744
19745 # The library search path used internally by the compiler when linking
19746 # a shared library.
19747 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19748
19749 # Method to check whether dependent libraries are shared objects.
19750 deplibs_check_method=$lt_deplibs_check_method
19751
19752 # Command to use when deplibs_check_method == file_magic.
19753 file_magic_cmd=$lt_file_magic_cmd
19754
19755 # Flag that allows shared libraries with undefined symbols to be built.
19756 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19757
19758 # Flag that forces no undefined symbols.
19759 no_undefined_flag=$lt_no_undefined_flag_CXX
19760
19761 # Commands used to finish a libtool library installation in a directory.
19762 finish_cmds=$lt_finish_cmds
19763
19764 # Same as above, but a single script fragment to be evaled but not shown.
19765 finish_eval=$lt_finish_eval
19766
19767 # Take the output of nm and produce a listing of raw symbols and C names.
19768 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19769
19770 # Transform the output of nm in a proper C declaration
19771 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19772
19773 # Transform the output of nm in a C name address pair
19774 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19775
19776 # This is the shared library runtime path variable.
19777 runpath_var=$runpath_var
19778
19779 # This is the shared library path variable.
19780 shlibpath_var=$shlibpath_var
19781
19782 # Is shlibpath searched before the hard-coded library search path?
19783 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19784
19785 # How to hardcode a shared library path into an executable.
19786 hardcode_action=$hardcode_action_CXX
19787
19788 # Whether we should hardcode library paths into libraries.
19789 hardcode_into_libs=$hardcode_into_libs
19790
19791 # Flag to hardcode \$libdir into a binary during linking.
19792 # This must work even if \$libdir does not exist.
19793 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19794
19795 # If ld is used when linking, flag to hardcode \$libdir into
19796 # a binary during linking. This must work even if \$libdir does
19797 # not exist.
19798 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19799
19800 # Whether we need a single -rpath flag with a separated argument.
19801 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19802
19803 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19804 # resulting binary.
19805 hardcode_direct=$hardcode_direct_CXX
19806
19807 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19808 # resulting binary.
19809 hardcode_minus_L=$hardcode_minus_L_CXX
19810
19811 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19812 # the resulting binary.
19813 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19814
19815 # Set to yes if building a shared library automatically hardcodes DIR into the library
19816 # and all subsequent libraries and executables linked against it.
19817 hardcode_automatic=$hardcode_automatic_CXX
19818
19819 # Variables whose values should be saved in libtool wrapper scripts and
19820 # restored at relink time.
19821 variables_saved_for_relink="$variables_saved_for_relink"
19822
19823 # Whether libtool must link a program against all its dependency libraries.
19824 link_all_deplibs=$link_all_deplibs_CXX
19825
19826 # Compile-time system search path for libraries
19827 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19828
19829 # Run-time system search path for libraries
19830 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19831
19832 # Fix the shell variable \$srcfile for the compiler.
19833 fix_srcfile_path="$fix_srcfile_path_CXX"
19834
19835 # Set to yes if exported symbols are required.
19836 always_export_symbols=$always_export_symbols_CXX
19837
19838 # The commands to list exported symbols.
19839 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19840
19841 # The commands to extract the exported symbol list from a shared archive.
19842 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19843
19844 # Symbols that should not be listed in the preloaded symbols.
19845 exclude_expsyms=$lt_exclude_expsyms_CXX
19846
19847 # Symbols that must always be exported.
19848 include_expsyms=$lt_include_expsyms_CXX
19849
19850 # ### END LIBTOOL TAG CONFIG: $tagname
19851
19852 __EOF__
19853
19854
19855 else
19856   # If there is no Makefile yet, we rely on a make rule to execute
19857   # `config.status --recheck' to rerun these tests and create the
19858   # libtool script then.
19859   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19860   if test -f "$ltmain_in"; then
19861     test -f Makefile && make "$ltmain"
19862   fi
19863 fi
19864
19865
19866 ac_ext=c
19867 ac_cpp='$CPP $CPPFLAGS'
19868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19871
19872 CC=$lt_save_CC
19873 LDCXX=$LD
19874 LD=$lt_save_LD
19875 GCC=$lt_save_GCC
19876 with_gnu_ldcxx=$with_gnu_ld
19877 with_gnu_ld=$lt_save_with_gnu_ld
19878 lt_cv_path_LDCXX=$lt_cv_path_LD
19879 lt_cv_path_LD=$lt_save_path_LD
19880 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19881 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19882
19883         else
19884           tagname=""
19885         fi
19886         ;;
19887
19888       F77)
19889         if test -n "$F77" && test "X$F77" != "Xno"; then
19890
19891 ac_ext=f
19892 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19893 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19894 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19895
19896
19897 archive_cmds_need_lc_F77=no
19898 allow_undefined_flag_F77=
19899 always_export_symbols_F77=no
19900 archive_expsym_cmds_F77=
19901 export_dynamic_flag_spec_F77=
19902 hardcode_direct_F77=no
19903 hardcode_libdir_flag_spec_F77=
19904 hardcode_libdir_flag_spec_ld_F77=
19905 hardcode_libdir_separator_F77=
19906 hardcode_minus_L_F77=no
19907 hardcode_automatic_F77=no
19908 module_cmds_F77=
19909 module_expsym_cmds_F77=
19910 link_all_deplibs_F77=unknown
19911 old_archive_cmds_F77=$old_archive_cmds
19912 no_undefined_flag_F77=
19913 whole_archive_flag_spec_F77=
19914 enable_shared_with_static_runtimes_F77=no
19915
19916 # Source file extension for f77 test sources.
19917 ac_ext=f
19918
19919 # Object file extension for compiled f77 test sources.
19920 objext=o
19921 objext_F77=$objext
19922
19923 # Code to be used in simple compile tests
19924 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
19925
19926 # Code to be used in simple link tests
19927 lt_simple_link_test_code="      program t\n      end\n"
19928
19929 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19930
19931 # If no C compiler was specified, use CC.
19932 LTCC=${LTCC-"$CC"}
19933
19934 # If no C compiler flags were specified, use CFLAGS.
19935 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19936
19937 # Allow CC to be a program name with arguments.
19938 compiler=$CC
19939
19940
19941 # save warnings/boilerplate of simple test code
19942 ac_outfile=conftest.$ac_objext
19943 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19944 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19945 _lt_compiler_boilerplate=`cat conftest.err`
19946 $rm conftest*
19947
19948 ac_outfile=conftest.$ac_objext
19949 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19950 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19951 _lt_linker_boilerplate=`cat conftest.err`
19952 $rm conftest*
19953
19954
19955 # Allow CC to be a program name with arguments.
19956 lt_save_CC="$CC"
19957 CC=${F77-"f77"}
19958 compiler=$CC
19959 compiler_F77=$CC
19960 for cc_temp in $compiler""; do
19961   case $cc_temp in
19962     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19963     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19964     \-*) ;;
19965     *) break;;
19966   esac
19967 done
19968 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19969
19970
19971 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19972 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
19973 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
19974 echo "${ECHO_T}$can_build_shared" >&6; }
19975
19976 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19977 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
19978 test "$can_build_shared" = "no" && enable_shared=no
19979
19980 # On AIX, shared libraries and static libraries use the same namespace, and
19981 # are all built from PIC.
19982 case $host_os in
19983 aix3*)
19984   test "$enable_shared" = yes && enable_static=no
19985   if test -n "$RANLIB"; then
19986     archive_cmds="$archive_cmds~\$RANLIB \$lib"
19987     postinstall_cmds='$RANLIB $lib'
19988   fi
19989   ;;
19990 aix4* | aix5*)
19991   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19992     test "$enable_shared" = yes && enable_static=no
19993   fi
19994   ;;
19995 esac
19996 { echo "$as_me:$LINENO: result: $enable_shared" >&5
19997 echo "${ECHO_T}$enable_shared" >&6; }
19998
19999 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20000 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20001 # Make sure either enable_shared or enable_static is yes.
20002 test "$enable_shared" = yes || enable_static=yes
20003 { echo "$as_me:$LINENO: result: $enable_static" >&5
20004 echo "${ECHO_T}$enable_static" >&6; }
20005
20006 GCC_F77="$G77"
20007 LD_F77="$LD"
20008
20009 lt_prog_compiler_wl_F77=
20010 lt_prog_compiler_pic_F77=
20011 lt_prog_compiler_static_F77=
20012
20013 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20014 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20015
20016   if test "$GCC" = yes; then
20017     lt_prog_compiler_wl_F77='-Wl,'
20018     lt_prog_compiler_static_F77='-static'
20019
20020     case $host_os in
20021       aix*)
20022       # All AIX code is PIC.
20023       if test "$host_cpu" = ia64; then
20024         # AIX 5 now supports IA64 processor
20025         lt_prog_compiler_static_F77='-Bstatic'
20026       fi
20027       ;;
20028
20029     amigaos*)
20030       # FIXME: we need at least 68020 code to build shared libraries, but
20031       # adding the `-m68020' flag to GCC prevents building anything better,
20032       # like `-m68040'.
20033       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20034       ;;
20035
20036     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20037       # PIC is the default for these OSes.
20038       ;;
20039
20040     mingw* | pw32* | os2*)
20041       # This hack is so that the source file can tell whether it is being
20042       # built for inclusion in a dll (and should export symbols for example).
20043       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20044       ;;
20045
20046     darwin* | rhapsody*)
20047       # PIC is the default on this platform
20048       # Common symbols not allowed in MH_DYLIB files
20049       lt_prog_compiler_pic_F77='-fno-common'
20050       ;;
20051
20052     interix3*)
20053       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20054       # Instead, we relocate shared libraries at runtime.
20055       ;;
20056
20057     msdosdjgpp*)
20058       # Just because we use GCC doesn't mean we suddenly get shared libraries
20059       # on systems that don't support them.
20060       lt_prog_compiler_can_build_shared_F77=no
20061       enable_shared=no
20062       ;;
20063
20064     sysv4*MP*)
20065       if test -d /usr/nec; then
20066         lt_prog_compiler_pic_F77=-Kconform_pic
20067       fi
20068       ;;
20069
20070     hpux*)
20071       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20072       # not for PA HP-UX.
20073       case $host_cpu in
20074       hppa*64*|ia64*)
20075         # +Z the default
20076         ;;
20077       *)
20078         lt_prog_compiler_pic_F77='-fPIC'
20079         ;;
20080       esac
20081       ;;
20082
20083     *)
20084       lt_prog_compiler_pic_F77='-fPIC'
20085       ;;
20086     esac
20087   else
20088     # PORTME Check for flag to pass linker flags through the system compiler.
20089     case $host_os in
20090     aix*)
20091       lt_prog_compiler_wl_F77='-Wl,'
20092       if test "$host_cpu" = ia64; then
20093         # AIX 5 now supports IA64 processor
20094         lt_prog_compiler_static_F77='-Bstatic'
20095       else
20096         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20097       fi
20098       ;;
20099       darwin*)
20100         # PIC is the default on this platform
20101         # Common symbols not allowed in MH_DYLIB files
20102        case $cc_basename in
20103          xlc*)
20104          lt_prog_compiler_pic_F77='-qnocommon'
20105          lt_prog_compiler_wl_F77='-Wl,'
20106          ;;
20107        esac
20108        ;;
20109
20110     mingw* | pw32* | os2*)
20111       # This hack is so that the source file can tell whether it is being
20112       # built for inclusion in a dll (and should export symbols for example).
20113       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20114       ;;
20115
20116     hpux9* | hpux10* | hpux11*)
20117       lt_prog_compiler_wl_F77='-Wl,'
20118       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20119       # not for PA HP-UX.
20120       case $host_cpu in
20121       hppa*64*|ia64*)
20122         # +Z the default
20123         ;;
20124       *)
20125         lt_prog_compiler_pic_F77='+Z'
20126         ;;
20127       esac
20128       # Is there a better lt_prog_compiler_static that works with the bundled CC?
20129       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20130       ;;
20131
20132     irix5* | irix6* | nonstopux*)
20133       lt_prog_compiler_wl_F77='-Wl,'
20134       # PIC (with -KPIC) is the default.
20135       lt_prog_compiler_static_F77='-non_shared'
20136       ;;
20137
20138     newsos6)
20139       lt_prog_compiler_pic_F77='-KPIC'
20140       lt_prog_compiler_static_F77='-Bstatic'
20141       ;;
20142
20143     linux*)
20144       case $cc_basename in
20145       icc* | ecc*)
20146         lt_prog_compiler_wl_F77='-Wl,'
20147         lt_prog_compiler_pic_F77='-KPIC'
20148         lt_prog_compiler_static_F77='-static'
20149         ;;
20150       pgcc* | pgf77* | pgf90* | pgf95*)
20151         # Portland Group compilers (*not* the Pentium gcc compiler,
20152         # which looks to be a dead project)
20153         lt_prog_compiler_wl_F77='-Wl,'
20154         lt_prog_compiler_pic_F77='-fpic'
20155         lt_prog_compiler_static_F77='-Bstatic'
20156         ;;
20157       ccc*)
20158         lt_prog_compiler_wl_F77='-Wl,'
20159         # All Alpha code is PIC.
20160         lt_prog_compiler_static_F77='-non_shared'
20161         ;;
20162       esac
20163       ;;
20164
20165     osf3* | osf4* | osf5*)
20166       lt_prog_compiler_wl_F77='-Wl,'
20167       # All OSF/1 code is PIC.
20168       lt_prog_compiler_static_F77='-non_shared'
20169       ;;
20170
20171     solaris*)
20172       lt_prog_compiler_pic_F77='-KPIC'
20173       lt_prog_compiler_static_F77='-Bstatic'
20174       case $cc_basename in
20175       f77* | f90* | f95*)
20176         lt_prog_compiler_wl_F77='-Qoption ld ';;
20177       *)
20178         lt_prog_compiler_wl_F77='-Wl,';;
20179       esac
20180       ;;
20181
20182     sunos4*)
20183       lt_prog_compiler_wl_F77='-Qoption ld '
20184       lt_prog_compiler_pic_F77='-PIC'
20185       lt_prog_compiler_static_F77='-Bstatic'
20186       ;;
20187
20188     sysv4 | sysv4.2uw2* | sysv4.3*)
20189       lt_prog_compiler_wl_F77='-Wl,'
20190       lt_prog_compiler_pic_F77='-KPIC'
20191       lt_prog_compiler_static_F77='-Bstatic'
20192       ;;
20193
20194     sysv4*MP*)
20195       if test -d /usr/nec ;then
20196         lt_prog_compiler_pic_F77='-Kconform_pic'
20197         lt_prog_compiler_static_F77='-Bstatic'
20198       fi
20199       ;;
20200
20201     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20202       lt_prog_compiler_wl_F77='-Wl,'
20203       lt_prog_compiler_pic_F77='-KPIC'
20204       lt_prog_compiler_static_F77='-Bstatic'
20205       ;;
20206
20207     unicos*)
20208       lt_prog_compiler_wl_F77='-Wl,'
20209       lt_prog_compiler_can_build_shared_F77=no
20210       ;;
20211
20212     uts4*)
20213       lt_prog_compiler_pic_F77='-pic'
20214       lt_prog_compiler_static_F77='-Bstatic'
20215       ;;
20216
20217     *)
20218       lt_prog_compiler_can_build_shared_F77=no
20219       ;;
20220     esac
20221   fi
20222
20223 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20224 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
20225
20226 #
20227 # Check to make sure the PIC flag actually works.
20228 #
20229 if test -n "$lt_prog_compiler_pic_F77"; then
20230
20231 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20232 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
20233 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20234   echo $ECHO_N "(cached) $ECHO_C" >&6
20235 else
20236   lt_prog_compiler_pic_works_F77=no
20237   ac_outfile=conftest.$ac_objext
20238    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20239    lt_compiler_flag="$lt_prog_compiler_pic_F77"
20240    # Insert the option either (1) after the last *FLAGS variable, or
20241    # (2) before a word containing "conftest.", or (3) at the end.
20242    # Note that $ac_compile itself does not contain backslashes and begins
20243    # with a dollar sign (not a hyphen), so the echo should work correctly.
20244    # The option is referenced via a variable to avoid confusing sed.
20245    lt_compile=`echo "$ac_compile" | $SED \
20246    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20247    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20248    -e 's:$: $lt_compiler_flag:'`
20249    (eval echo "\"\$as_me:20249: $lt_compile\"" >&5)
20250    (eval "$lt_compile" 2>conftest.err)
20251    ac_status=$?
20252    cat conftest.err >&5
20253    echo "$as_me:20253: \$? = $ac_status" >&5
20254    if (exit $ac_status) && test -s "$ac_outfile"; then
20255      # The compiler can only warn and ignore the option if not recognized
20256      # So say no if there are warnings other than the usual output.
20257      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20258      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20259      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20260        lt_prog_compiler_pic_works_F77=yes
20261      fi
20262    fi
20263    $rm conftest*
20264
20265 fi
20266 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20267 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
20268
20269 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20270     case $lt_prog_compiler_pic_F77 in
20271      "" | " "*) ;;
20272      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20273      esac
20274 else
20275     lt_prog_compiler_pic_F77=
20276      lt_prog_compiler_can_build_shared_F77=no
20277 fi
20278
20279 fi
20280 case $host_os in
20281   # For platforms which do not support PIC, -DPIC is meaningless:
20282   *djgpp*)
20283     lt_prog_compiler_pic_F77=
20284     ;;
20285   *)
20286     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20287     ;;
20288 esac
20289
20290 #
20291 # Check to make sure the static flag actually works.
20292 #
20293 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20294 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20295 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20296 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20297   echo $ECHO_N "(cached) $ECHO_C" >&6
20298 else
20299   lt_prog_compiler_static_works_F77=no
20300    save_LDFLAGS="$LDFLAGS"
20301    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20302    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20303    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20304      # The linker can only warn and ignore the option if not recognized
20305      # So say no if there are warnings
20306      if test -s conftest.err; then
20307        # Append any errors to the config.log.
20308        cat conftest.err 1>&5
20309        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20310        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20311        if diff conftest.exp conftest.er2 >/dev/null; then
20312          lt_prog_compiler_static_works_F77=yes
20313        fi
20314      else
20315        lt_prog_compiler_static_works_F77=yes
20316      fi
20317    fi
20318    $rm conftest*
20319    LDFLAGS="$save_LDFLAGS"
20320
20321 fi
20322 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20323 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20324
20325 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20326     :
20327 else
20328     lt_prog_compiler_static_F77=
20329 fi
20330
20331
20332 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20333 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20334 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20335   echo $ECHO_N "(cached) $ECHO_C" >&6
20336 else
20337   lt_cv_prog_compiler_c_o_F77=no
20338    $rm -r conftest 2>/dev/null
20339    mkdir conftest
20340    cd conftest
20341    mkdir out
20342    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20343
20344    lt_compiler_flag="-o out/conftest2.$ac_objext"
20345    # Insert the option either (1) after the last *FLAGS variable, or
20346    # (2) before a word containing "conftest.", or (3) at the end.
20347    # Note that $ac_compile itself does not contain backslashes and begins
20348    # with a dollar sign (not a hyphen), so the echo should work correctly.
20349    lt_compile=`echo "$ac_compile" | $SED \
20350    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20351    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20352    -e 's:$: $lt_compiler_flag:'`
20353    (eval echo "\"\$as_me:20353: $lt_compile\"" >&5)
20354    (eval "$lt_compile" 2>out/conftest.err)
20355    ac_status=$?
20356    cat out/conftest.err >&5
20357    echo "$as_me:20357: \$? = $ac_status" >&5
20358    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20359    then
20360      # The compiler can only warn and ignore the option if not recognized
20361      # So say no if there are warnings
20362      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20363      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20364      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20365        lt_cv_prog_compiler_c_o_F77=yes
20366      fi
20367    fi
20368    chmod u+w . 2>&5
20369    $rm conftest*
20370    # SGI C++ compiler will create directory out/ii_files/ for
20371    # template instantiation
20372    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20373    $rm out/* && rmdir out
20374    cd ..
20375    rmdir conftest
20376    $rm conftest*
20377
20378 fi
20379 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20380 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
20381
20382
20383 hard_links="nottested"
20384 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20385   # do not overwrite the value of need_locks provided by the user
20386   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20387 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20388   hard_links=yes
20389   $rm conftest*
20390   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20391   touch conftest.a
20392   ln conftest.a conftest.b 2>&5 || hard_links=no
20393   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20394   { echo "$as_me:$LINENO: result: $hard_links" >&5
20395 echo "${ECHO_T}$hard_links" >&6; }
20396   if test "$hard_links" = no; then
20397     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20398 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20399     need_locks=warn
20400   fi
20401 else
20402   need_locks=no
20403 fi
20404
20405 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20406 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20407
20408   runpath_var=
20409   allow_undefined_flag_F77=
20410   enable_shared_with_static_runtimes_F77=no
20411   archive_cmds_F77=
20412   archive_expsym_cmds_F77=
20413   old_archive_From_new_cmds_F77=
20414   old_archive_from_expsyms_cmds_F77=
20415   export_dynamic_flag_spec_F77=
20416   whole_archive_flag_spec_F77=
20417   thread_safe_flag_spec_F77=
20418   hardcode_libdir_flag_spec_F77=
20419   hardcode_libdir_flag_spec_ld_F77=
20420   hardcode_libdir_separator_F77=
20421   hardcode_direct_F77=no
20422   hardcode_minus_L_F77=no
20423   hardcode_shlibpath_var_F77=unsupported
20424   link_all_deplibs_F77=unknown
20425   hardcode_automatic_F77=no
20426   module_cmds_F77=
20427   module_expsym_cmds_F77=
20428   always_export_symbols_F77=no
20429   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20430   # include_expsyms should be a list of space-separated symbols to be *always*
20431   # included in the symbol list
20432   include_expsyms_F77=
20433   # exclude_expsyms can be an extended regexp of symbols to exclude
20434   # it will be wrapped by ` (' and `)$', so one must not match beginning or
20435   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20436   # as well as any symbol that contains `d'.
20437   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20438   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20439   # platforms (ab)use it in PIC code, but their linkers get confused if
20440   # the symbol is explicitly referenced.  Since portable code cannot
20441   # rely on this symbol name, it's probably fine to never include it in
20442   # preloaded symbol tables.
20443   extract_expsyms_cmds=
20444   # Just being paranoid about ensuring that cc_basename is set.
20445   for cc_temp in $compiler""; do
20446   case $cc_temp in
20447     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20448     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20449     \-*) ;;
20450     *) break;;
20451   esac
20452 done
20453 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20454
20455   case $host_os in
20456   cygwin* | mingw* | pw32*)
20457     # FIXME: the MSVC++ port hasn't been tested in a loooong time
20458     # When not using gcc, we currently assume that we are using
20459     # Microsoft Visual C++.
20460     if test "$GCC" != yes; then
20461       with_gnu_ld=no
20462     fi
20463     ;;
20464   interix*)
20465     # we just hope/assume this is gcc and not c89 (= MSVC++)
20466     with_gnu_ld=yes
20467     ;;
20468   openbsd*)
20469     with_gnu_ld=no
20470     ;;
20471   esac
20472
20473   ld_shlibs_F77=yes
20474   if test "$with_gnu_ld" = yes; then
20475     # If archive_cmds runs LD, not CC, wlarc should be empty
20476     wlarc='${wl}'
20477
20478     # Set some defaults for GNU ld with shared library support. These
20479     # are reset later if shared libraries are not supported. Putting them
20480     # here allows them to be overridden if necessary.
20481     runpath_var=LD_RUN_PATH
20482     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20483     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20484     # ancient GNU ld didn't support --whole-archive et. al.
20485     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20486         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20487       else
20488         whole_archive_flag_spec_F77=
20489     fi
20490     supports_anon_versioning=no
20491     case `$LD -v 2>/dev/null` in
20492       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20493       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20494       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20495       *\ 2.11.*) ;; # other 2.11 versions
20496       *) supports_anon_versioning=yes ;;
20497     esac
20498
20499     # See if GNU ld supports shared libraries.
20500     case $host_os in
20501     aix3* | aix4* | aix5*)
20502       # On AIX/PPC, the GNU linker is very broken
20503       if test "$host_cpu" != ia64; then
20504         ld_shlibs_F77=no
20505         cat <<EOF 1>&2
20506
20507 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20508 *** to be unable to reliably create shared libraries on AIX.
20509 *** Therefore, libtool is disabling shared libraries support.  If you
20510 *** really care for shared libraries, you may want to modify your PATH
20511 *** so that a non-GNU linker is found, and then restart.
20512
20513 EOF
20514       fi
20515       ;;
20516
20517     amigaos*)
20518       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)'
20519       hardcode_libdir_flag_spec_F77='-L$libdir'
20520       hardcode_minus_L_F77=yes
20521
20522       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20523       # that the semantics of dynamic libraries on AmigaOS, at least up
20524       # to version 4, is to share data among multiple programs linked
20525       # with the same dynamic library.  Since this doesn't match the
20526       # behavior of shared libraries on other platforms, we can't use
20527       # them.
20528       ld_shlibs_F77=no
20529       ;;
20530
20531     beos*)
20532       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20533         allow_undefined_flag_F77=unsupported
20534         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20535         # support --undefined.  This deserves some investigation.  FIXME
20536         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20537       else
20538         ld_shlibs_F77=no
20539       fi
20540       ;;
20541
20542     cygwin* | mingw* | pw32*)
20543       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20544       # as there is no search path for DLLs.
20545       hardcode_libdir_flag_spec_F77='-L$libdir'
20546       allow_undefined_flag_F77=unsupported
20547       always_export_symbols_F77=no
20548       enable_shared_with_static_runtimes_F77=yes
20549       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20550
20551       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20552         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20553         # If the export-symbols file already is a .def file (1st line
20554         # is EXPORTS), use it as is; otherwise, prepend...
20555         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20556           cp $export_symbols $output_objdir/$soname.def;
20557         else
20558           echo EXPORTS > $output_objdir/$soname.def;
20559           cat $export_symbols >> $output_objdir/$soname.def;
20560         fi~
20561         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20562       else
20563         ld_shlibs_F77=no
20564       fi
20565       ;;
20566
20567     interix3*)
20568       hardcode_direct_F77=no
20569       hardcode_shlibpath_var_F77=no
20570       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20571       export_dynamic_flag_spec_F77='${wl}-E'
20572       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20573       # Instead, shared libraries are loaded at an image base (0x10000000 by
20574       # default) and relocated if they conflict, which is a slow very memory
20575       # consuming and fragmenting process.  To avoid this, we pick a random,
20576       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20577       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20578       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'
20579       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'
20580       ;;
20581
20582     linux*)
20583       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20584         tmp_addflag=
20585         case $cc_basename,$host_cpu in
20586         pgcc*)                          # Portland Group C compiler
20587           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'
20588           tmp_addflag=' $pic_flag'
20589           ;;
20590         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
20591           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'
20592           tmp_addflag=' $pic_flag -Mnomain' ;;
20593         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
20594           tmp_addflag=' -i_dynamic' ;;
20595         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
20596           tmp_addflag=' -i_dynamic -nofor_main' ;;
20597         ifc* | ifort*)                  # Intel Fortran compiler
20598           tmp_addflag=' -nofor_main' ;;
20599         esac
20600         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20601
20602         if test $supports_anon_versioning = yes; then
20603           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20604   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20605   $echo "local: *; };" >> $output_objdir/$libname.ver~
20606           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20607         fi
20608       else
20609         ld_shlibs_F77=no
20610       fi
20611       ;;
20612
20613     netbsd*)
20614       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20615         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20616         wlarc=
20617       else
20618         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20619         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20620       fi
20621       ;;
20622
20623     solaris*)
20624       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20625         ld_shlibs_F77=no
20626         cat <<EOF 1>&2
20627
20628 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20629 *** create shared libraries on Solaris systems.  Therefore, libtool
20630 *** is disabling shared libraries support.  We urge you to upgrade GNU
20631 *** binutils to release 2.9.1 or newer.  Another option is to modify
20632 *** your PATH or compiler configuration so that the native linker is
20633 *** used, and then restart.
20634
20635 EOF
20636       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20637         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20638         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20639       else
20640         ld_shlibs_F77=no
20641       fi
20642       ;;
20643
20644     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20645       case `$LD -v 2>&1` in
20646         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20647         ld_shlibs_F77=no
20648         cat <<_LT_EOF 1>&2
20649
20650 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20651 *** reliably create shared libraries on SCO systems.  Therefore, libtool
20652 *** is disabling shared libraries support.  We urge you to upgrade GNU
20653 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
20654 *** your PATH or compiler configuration so that the native linker is
20655 *** used, and then restart.
20656
20657 _LT_EOF
20658         ;;
20659         *)
20660           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20661             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20662             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20663             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20664           else
20665             ld_shlibs_F77=no
20666           fi
20667         ;;
20668       esac
20669       ;;
20670
20671     sunos4*)
20672       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20673       wlarc=
20674       hardcode_direct_F77=yes
20675       hardcode_shlibpath_var_F77=no
20676       ;;
20677
20678     *)
20679       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20680         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20681         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20682       else
20683         ld_shlibs_F77=no
20684       fi
20685       ;;
20686     esac
20687
20688     if test "$ld_shlibs_F77" = no; then
20689       runpath_var=
20690       hardcode_libdir_flag_spec_F77=
20691       export_dynamic_flag_spec_F77=
20692       whole_archive_flag_spec_F77=
20693     fi
20694   else
20695     # PORTME fill in a description of your system's linker (not GNU ld)
20696     case $host_os in
20697     aix3*)
20698       allow_undefined_flag_F77=unsupported
20699       always_export_symbols_F77=yes
20700       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'
20701       # Note: this linker hardcodes the directories in LIBPATH if there
20702       # are no directories specified by -L.
20703       hardcode_minus_L_F77=yes
20704       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20705         # Neither direct hardcoding nor static linking is supported with a
20706         # broken collect2.
20707         hardcode_direct_F77=unsupported
20708       fi
20709       ;;
20710
20711     aix4* | aix5*)
20712       if test "$host_cpu" = ia64; then
20713         # On IA64, the linker does run time linking by default, so we don't
20714         # have to do anything special.
20715         aix_use_runtimelinking=no
20716         exp_sym_flag='-Bexport'
20717         no_entry_flag=""
20718       else
20719         # If we're using GNU nm, then we don't want the "-C" option.
20720         # -C means demangle to AIX nm, but means don't demangle with GNU nm
20721         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20722           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'
20723         else
20724           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'
20725         fi
20726         aix_use_runtimelinking=no
20727
20728         # Test if we are trying to use run time linking or normal
20729         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20730         # need to do runtime linking.
20731         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20732           for ld_flag in $LDFLAGS; do
20733           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20734             aix_use_runtimelinking=yes
20735             break
20736           fi
20737           done
20738           ;;
20739         esac
20740
20741         exp_sym_flag='-bexport'
20742         no_entry_flag='-bnoentry'
20743       fi
20744
20745       # When large executables or shared objects are built, AIX ld can
20746       # have problems creating the table of contents.  If linking a library
20747       # or program results in "error TOC overflow" add -mminimal-toc to
20748       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20749       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20750
20751       archive_cmds_F77=''
20752       hardcode_direct_F77=yes
20753       hardcode_libdir_separator_F77=':'
20754       link_all_deplibs_F77=yes
20755
20756       if test "$GCC" = yes; then
20757         case $host_os in aix4.[012]|aix4.[012].*)
20758         # We only want to do this on AIX 4.2 and lower, the check
20759         # below for broken collect2 doesn't work under 4.3+
20760           collect2name=`${CC} -print-prog-name=collect2`
20761           if test -f "$collect2name" && \
20762            strings "$collect2name" | grep resolve_lib_name >/dev/null
20763           then
20764           # We have reworked collect2
20765           hardcode_direct_F77=yes
20766           else
20767           # We have old collect2
20768           hardcode_direct_F77=unsupported
20769           # It fails to find uninstalled libraries when the uninstalled
20770           # path is not listed in the libpath.  Setting hardcode_minus_L
20771           # to unsupported forces relinking
20772           hardcode_minus_L_F77=yes
20773           hardcode_libdir_flag_spec_F77='-L$libdir'
20774           hardcode_libdir_separator_F77=
20775           fi
20776           ;;
20777         esac
20778         shared_flag='-shared'
20779         if test "$aix_use_runtimelinking" = yes; then
20780           shared_flag="$shared_flag "'${wl}-G'
20781         fi
20782       else
20783         # not using gcc
20784         if test "$host_cpu" = ia64; then
20785         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20786         # chokes on -Wl,-G. The following line is correct:
20787           shared_flag='-G'
20788         else
20789           if test "$aix_use_runtimelinking" = yes; then
20790             shared_flag='${wl}-G'
20791           else
20792             shared_flag='${wl}-bM:SRE'
20793           fi
20794         fi
20795       fi
20796
20797       # It seems that -bexpall does not export symbols beginning with
20798       # underscore (_), so it is better to generate a list of symbols to export.
20799       always_export_symbols_F77=yes
20800       if test "$aix_use_runtimelinking" = yes; then
20801         # Warning - without using the other runtime loading flags (-brtl),
20802         # -berok will link without error, but may produce a broken library.
20803         allow_undefined_flag_F77='-berok'
20804        # Determine the default libpath from the value encoded in an empty executable.
20805        cat >conftest.$ac_ext <<_ACEOF
20806       program main
20807
20808       end
20809 _ACEOF
20810 rm -f conftest.$ac_objext conftest$ac_exeext
20811 if { (ac_try="$ac_link"
20812 case "(($ac_try" in
20813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814   *) ac_try_echo=$ac_try;;
20815 esac
20816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20817   (eval "$ac_link") 2>conftest.er1
20818   ac_status=$?
20819   grep -v '^ *+' conftest.er1 >conftest.err
20820   rm -f conftest.er1
20821   cat conftest.err >&5
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); } && {
20824          test -z "$ac_f77_werror_flag" ||
20825          test ! -s conftest.err
20826        } && test -s conftest$ac_exeext &&
20827        $as_test_x conftest$ac_exeext; then
20828
20829 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20830 }'`
20831 # Check for a 64-bit object if we didn't find anything.
20832 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; }
20833 }'`; fi
20834 else
20835   echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20837
20838
20839 fi
20840
20841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20842       conftest$ac_exeext conftest.$ac_ext
20843 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20844
20845        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20846         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"
20847        else
20848         if test "$host_cpu" = ia64; then
20849           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20850           allow_undefined_flag_F77="-z nodefs"
20851           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"
20852         else
20853          # Determine the default libpath from the value encoded in an empty executable.
20854          cat >conftest.$ac_ext <<_ACEOF
20855       program main
20856
20857       end
20858 _ACEOF
20859 rm -f conftest.$ac_objext conftest$ac_exeext
20860 if { (ac_try="$ac_link"
20861 case "(($ac_try" in
20862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863   *) ac_try_echo=$ac_try;;
20864 esac
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866   (eval "$ac_link") 2>conftest.er1
20867   ac_status=$?
20868   grep -v '^ *+' conftest.er1 >conftest.err
20869   rm -f conftest.er1
20870   cat conftest.err >&5
20871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872   (exit $ac_status); } && {
20873          test -z "$ac_f77_werror_flag" ||
20874          test ! -s conftest.err
20875        } && test -s conftest$ac_exeext &&
20876        $as_test_x conftest$ac_exeext; then
20877
20878 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20879 }'`
20880 # Check for a 64-bit object if we didn't find anything.
20881 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; }
20882 }'`; fi
20883 else
20884   echo "$as_me: failed program was:" >&5
20885 sed 's/^/| /' conftest.$ac_ext >&5
20886
20887
20888 fi
20889
20890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20891       conftest$ac_exeext conftest.$ac_ext
20892 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20893
20894          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20895           # Warning - without using the other run time loading flags,
20896           # -berok will link without error, but may produce a broken library.
20897           no_undefined_flag_F77=' ${wl}-bernotok'
20898           allow_undefined_flag_F77=' ${wl}-berok'
20899           # Exported symbols can be pulled into shared objects from archives
20900           whole_archive_flag_spec_F77='$convenience'
20901           archive_cmds_need_lc_F77=yes
20902           # This is similar to how AIX traditionally builds its shared libraries.
20903           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'
20904         fi
20905       fi
20906       ;;
20907
20908     amigaos*)
20909       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)'
20910       hardcode_libdir_flag_spec_F77='-L$libdir'
20911       hardcode_minus_L_F77=yes
20912       # see comment about different semantics on the GNU ld section
20913       ld_shlibs_F77=no
20914       ;;
20915
20916     bsdi[45]*)
20917       export_dynamic_flag_spec_F77=-rdynamic
20918       ;;
20919
20920     cygwin* | mingw* | pw32*)
20921       # When not using gcc, we currently assume that we are using
20922       # Microsoft Visual C++.
20923       # hardcode_libdir_flag_spec is actually meaningless, as there is
20924       # no search path for DLLs.
20925       hardcode_libdir_flag_spec_F77=' '
20926       allow_undefined_flag_F77=unsupported
20927       # Tell ltmain to make .lib files, not .a files.
20928       libext=lib
20929       # Tell ltmain to make .dll files, not .so files.
20930       shrext_cmds=".dll"
20931       # FIXME: Setting linknames here is a bad hack.
20932       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20933       # The linker will automatically build a .lib file if we build a DLL.
20934       old_archive_From_new_cmds_F77='true'
20935       # FIXME: Should let the user specify the lib program.
20936       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20937       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
20938       enable_shared_with_static_runtimes_F77=yes
20939       ;;
20940
20941     darwin* | rhapsody*)
20942       case $host_os in
20943         rhapsody* | darwin1.[012])
20944          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
20945          ;;
20946        *) # Darwin 1.3 on
20947          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20948            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20949          else
20950            case ${MACOSX_DEPLOYMENT_TARGET} in
20951              10.[012])
20952                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20953                ;;
20954              10.*)
20955                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20956                ;;
20957            esac
20958          fi
20959          ;;
20960       esac
20961       archive_cmds_need_lc_F77=no
20962       hardcode_direct_F77=no
20963       hardcode_automatic_F77=yes
20964       hardcode_shlibpath_var_F77=unsupported
20965       whole_archive_flag_spec_F77=''
20966       link_all_deplibs_F77=yes
20967     if test "$GCC" = yes ; then
20968         output_verbose_link_cmd='echo'
20969         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20970       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20971       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20972       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}'
20973       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}'
20974     else
20975       case $cc_basename in
20976         xlc*)
20977          output_verbose_link_cmd='echo'
20978          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20979          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20980           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20981          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}'
20982           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}'
20983           ;;
20984        *)
20985          ld_shlibs_F77=no
20986           ;;
20987       esac
20988     fi
20989       ;;
20990
20991     dgux*)
20992       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20993       hardcode_libdir_flag_spec_F77='-L$libdir'
20994       hardcode_shlibpath_var_F77=no
20995       ;;
20996
20997     freebsd1*)
20998       ld_shlibs_F77=no
20999       ;;
21000
21001     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21002     # support.  Future versions do this automatically, but an explicit c++rt0.o
21003     # does not break anything, and helps significantly (at the cost of a little
21004     # extra space).
21005     freebsd2.2*)
21006       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21007       hardcode_libdir_flag_spec_F77='-R$libdir'
21008       hardcode_direct_F77=yes
21009       hardcode_shlibpath_var_F77=no
21010       ;;
21011
21012     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21013     freebsd2*)
21014       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21015       hardcode_direct_F77=yes
21016       hardcode_minus_L_F77=yes
21017       hardcode_shlibpath_var_F77=no
21018       ;;
21019
21020     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21021     freebsd* | kfreebsd*-gnu | dragonfly*)
21022       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21023       hardcode_libdir_flag_spec_F77='-R$libdir'
21024       hardcode_direct_F77=yes
21025       hardcode_shlibpath_var_F77=no
21026       ;;
21027
21028     hpux9*)
21029       if test "$GCC" = yes; then
21030         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'
21031       else
21032         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'
21033       fi
21034       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21035       hardcode_libdir_separator_F77=:
21036       hardcode_direct_F77=yes
21037
21038       # hardcode_minus_L: Not really in the search PATH,
21039       # but as the default location of the library.
21040       hardcode_minus_L_F77=yes
21041       export_dynamic_flag_spec_F77='${wl}-E'
21042       ;;
21043
21044     hpux10*)
21045       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21046         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21047       else
21048         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21049       fi
21050       if test "$with_gnu_ld" = no; then
21051         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21052         hardcode_libdir_separator_F77=:
21053
21054         hardcode_direct_F77=yes
21055         export_dynamic_flag_spec_F77='${wl}-E'
21056
21057         # hardcode_minus_L: Not really in the search PATH,
21058         # but as the default location of the library.
21059         hardcode_minus_L_F77=yes
21060       fi
21061       ;;
21062
21063     hpux11*)
21064       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21065         case $host_cpu in
21066         hppa*64*)
21067           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21068           ;;
21069         ia64*)
21070           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21071           ;;
21072         *)
21073           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21074           ;;
21075         esac
21076       else
21077         case $host_cpu in
21078         hppa*64*)
21079           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21080           ;;
21081         ia64*)
21082           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21083           ;;
21084         *)
21085           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21086           ;;
21087         esac
21088       fi
21089       if test "$with_gnu_ld" = no; then
21090         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21091         hardcode_libdir_separator_F77=:
21092
21093         case $host_cpu in
21094         hppa*64*|ia64*)
21095           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21096           hardcode_direct_F77=no
21097           hardcode_shlibpath_var_F77=no
21098           ;;
21099         *)
21100           hardcode_direct_F77=yes
21101           export_dynamic_flag_spec_F77='${wl}-E'
21102
21103           # hardcode_minus_L: Not really in the search PATH,
21104           # but as the default location of the library.
21105           hardcode_minus_L_F77=yes
21106           ;;
21107         esac
21108       fi
21109       ;;
21110
21111     irix5* | irix6* | nonstopux*)
21112       if test "$GCC" = yes; then
21113         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'
21114       else
21115         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'
21116         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21117       fi
21118       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21119       hardcode_libdir_separator_F77=:
21120       link_all_deplibs_F77=yes
21121       ;;
21122
21123     netbsd*)
21124       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21125         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21126       else
21127         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21128       fi
21129       hardcode_libdir_flag_spec_F77='-R$libdir'
21130       hardcode_direct_F77=yes
21131       hardcode_shlibpath_var_F77=no
21132       ;;
21133
21134     newsos6)
21135       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21136       hardcode_direct_F77=yes
21137       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21138       hardcode_libdir_separator_F77=:
21139       hardcode_shlibpath_var_F77=no
21140       ;;
21141
21142     openbsd*)
21143       hardcode_direct_F77=yes
21144       hardcode_shlibpath_var_F77=no
21145       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21146         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21147         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21148         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21149         export_dynamic_flag_spec_F77='${wl}-E'
21150       else
21151        case $host_os in
21152          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21153            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21154            hardcode_libdir_flag_spec_F77='-R$libdir'
21155            ;;
21156          *)
21157            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21158            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21159            ;;
21160        esac
21161       fi
21162       ;;
21163
21164     os2*)
21165       hardcode_libdir_flag_spec_F77='-L$libdir'
21166       hardcode_minus_L_F77=yes
21167       allow_undefined_flag_F77=unsupported
21168       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'
21169       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21170       ;;
21171
21172     osf3*)
21173       if test "$GCC" = yes; then
21174         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21175         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'
21176       else
21177         allow_undefined_flag_F77=' -expect_unresolved \*'
21178         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'
21179       fi
21180       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21181       hardcode_libdir_separator_F77=:
21182       ;;
21183
21184     osf4* | osf5*)      # as osf3* with the addition of -msym flag
21185       if test "$GCC" = yes; then
21186         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21187         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'
21188         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21189       else
21190         allow_undefined_flag_F77=' -expect_unresolved \*'
21191         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'
21192         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~
21193         $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'
21194
21195         # Both c and cxx compiler support -rpath directly
21196         hardcode_libdir_flag_spec_F77='-rpath $libdir'
21197       fi
21198       hardcode_libdir_separator_F77=:
21199       ;;
21200
21201     solaris*)
21202       no_undefined_flag_F77=' -z text'
21203       if test "$GCC" = yes; then
21204         wlarc='${wl}'
21205         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21206         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21207           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21208       else
21209         wlarc=''
21210         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21211         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21212         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21213       fi
21214       hardcode_libdir_flag_spec_F77='-R$libdir'
21215       hardcode_shlibpath_var_F77=no
21216       case $host_os in
21217       solaris2.[0-5] | solaris2.[0-5].*) ;;
21218       *)
21219         # The compiler driver will combine linker options so we
21220         # cannot just pass the convience library names through
21221         # without $wl, iff we do not link with $LD.
21222         # Luckily, gcc supports the same syntax we need for Sun Studio.
21223         # Supported since Solaris 2.6 (maybe 2.5.1?)
21224         case $wlarc in
21225         '')
21226           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21227         *)
21228           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' ;;
21229         esac ;;
21230       esac
21231       link_all_deplibs_F77=yes
21232       ;;
21233
21234     sunos4*)
21235       if test "x$host_vendor" = xsequent; then
21236         # Use $CC to link under sequent, because it throws in some extra .o
21237         # files that make .init and .fini sections work.
21238         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21239       else
21240         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21241       fi
21242       hardcode_libdir_flag_spec_F77='-L$libdir'
21243       hardcode_direct_F77=yes
21244       hardcode_minus_L_F77=yes
21245       hardcode_shlibpath_var_F77=no
21246       ;;
21247
21248     sysv4)
21249       case $host_vendor in
21250         sni)
21251           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21252           hardcode_direct_F77=yes # is this really true???
21253         ;;
21254         siemens)
21255           ## LD is ld it makes a PLAMLIB
21256           ## CC just makes a GrossModule.
21257           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21258           reload_cmds_F77='$CC -r -o $output$reload_objs'
21259           hardcode_direct_F77=no
21260         ;;
21261         motorola)
21262           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21263           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21264         ;;
21265       esac
21266       runpath_var='LD_RUN_PATH'
21267       hardcode_shlibpath_var_F77=no
21268       ;;
21269
21270     sysv4.3*)
21271       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21272       hardcode_shlibpath_var_F77=no
21273       export_dynamic_flag_spec_F77='-Bexport'
21274       ;;
21275
21276     sysv4*MP*)
21277       if test -d /usr/nec; then
21278         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21279         hardcode_shlibpath_var_F77=no
21280         runpath_var=LD_RUN_PATH
21281         hardcode_runpath_var=yes
21282         ld_shlibs_F77=yes
21283       fi
21284       ;;
21285
21286     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21287       no_undefined_flag_F77='${wl}-z,text'
21288       archive_cmds_need_lc_F77=no
21289       hardcode_shlibpath_var_F77=no
21290       runpath_var='LD_RUN_PATH'
21291
21292       if test "$GCC" = yes; then
21293         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21294         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21295       else
21296         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21297         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21298       fi
21299       ;;
21300
21301     sysv5* | sco3.2v5* | sco5v6*)
21302       # Note: We can NOT use -z defs as we might desire, because we do not
21303       # link with -lc, and that would cause any symbols used from libc to
21304       # always be unresolved, which means just about no library would
21305       # ever link correctly.  If we're not using GNU ld we use -z text
21306       # though, which does catch some bad symbols but isn't as heavy-handed
21307       # as -z defs.
21308       no_undefined_flag_F77='${wl}-z,text'
21309       allow_undefined_flag_F77='${wl}-z,nodefs'
21310       archive_cmds_need_lc_F77=no
21311       hardcode_shlibpath_var_F77=no
21312       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21313       hardcode_libdir_separator_F77=':'
21314       link_all_deplibs_F77=yes
21315       export_dynamic_flag_spec_F77='${wl}-Bexport'
21316       runpath_var='LD_RUN_PATH'
21317
21318       if test "$GCC" = yes; then
21319         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21320         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21321       else
21322         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21323         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21324       fi
21325       ;;
21326
21327     uts4*)
21328       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21329       hardcode_libdir_flag_spec_F77='-L$libdir'
21330       hardcode_shlibpath_var_F77=no
21331       ;;
21332
21333     *)
21334       ld_shlibs_F77=no
21335       ;;
21336     esac
21337   fi
21338
21339 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21340 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
21341 test "$ld_shlibs_F77" = no && can_build_shared=no
21342
21343 #
21344 # Do we need to explicitly link libc?
21345 #
21346 case "x$archive_cmds_need_lc_F77" in
21347 x|xyes)
21348   # Assume -lc should be added
21349   archive_cmds_need_lc_F77=yes
21350
21351   if test "$enable_shared" = yes && test "$GCC" = yes; then
21352     case $archive_cmds_F77 in
21353     *'~'*)
21354       # FIXME: we may have to deal with multi-command sequences.
21355       ;;
21356     '$CC '*)
21357       # Test whether the compiler implicitly links with -lc since on some
21358       # systems, -lgcc has to come before -lc. If gcc already passes -lc
21359       # to ld, don't add -lc before -lgcc.
21360       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21361 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21362       $rm conftest*
21363       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21364
21365       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21366   (eval $ac_compile) 2>&5
21367   ac_status=$?
21368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369   (exit $ac_status); } 2>conftest.err; then
21370         soname=conftest
21371         lib=conftest
21372         libobjs=conftest.$ac_objext
21373         deplibs=
21374         wl=$lt_prog_compiler_wl_F77
21375         pic_flag=$lt_prog_compiler_pic_F77
21376         compiler_flags=-v
21377         linker_flags=-v
21378         verstring=
21379         output_objdir=.
21380         libname=conftest
21381         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21382         allow_undefined_flag_F77=
21383         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21384   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21385   ac_status=$?
21386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387   (exit $ac_status); }
21388         then
21389           archive_cmds_need_lc_F77=no
21390         else
21391           archive_cmds_need_lc_F77=yes
21392         fi
21393         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21394       else
21395         cat conftest.err 1>&5
21396       fi
21397       $rm conftest*
21398       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21399 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
21400       ;;
21401     esac
21402   fi
21403   ;;
21404 esac
21405
21406 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21407 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21408 library_names_spec=
21409 libname_spec='lib$name'
21410 soname_spec=
21411 shrext_cmds=".so"
21412 postinstall_cmds=
21413 postuninstall_cmds=
21414 finish_cmds=
21415 finish_eval=
21416 shlibpath_var=
21417 shlibpath_overrides_runpath=unknown
21418 version_type=none
21419 dynamic_linker="$host_os ld.so"
21420 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21421 if test "$GCC" = yes; then
21422   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21423   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21424     # if the path contains ";" then we assume it to be the separator
21425     # otherwise default to the standard path separator (i.e. ":") - it is
21426     # assumed that no part of a normal pathname contains ";" but that should
21427     # okay in the real world where ";" in dirpaths is itself problematic.
21428     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21429   else
21430     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21431   fi
21432 else
21433   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21434 fi
21435 need_lib_prefix=unknown
21436 hardcode_into_libs=no
21437
21438 # when you set need_version to no, make sure it does not cause -set_version
21439 # flags to be left without arguments
21440 need_version=unknown
21441
21442 case $host_os in
21443 aix3*)
21444   version_type=linux
21445   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21446   shlibpath_var=LIBPATH
21447
21448   # AIX 3 has no versioning support, so we append a major version to the name.
21449   soname_spec='${libname}${release}${shared_ext}$major'
21450   ;;
21451
21452 aix4* | aix5*)
21453   version_type=linux
21454   need_lib_prefix=no
21455   need_version=no
21456   hardcode_into_libs=yes
21457   if test "$host_cpu" = ia64; then
21458     # AIX 5 supports IA64
21459     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21460     shlibpath_var=LD_LIBRARY_PATH
21461   else
21462     # With GCC up to 2.95.x, collect2 would create an import file
21463     # for dependence libraries.  The import file would start with
21464     # the line `#! .'.  This would cause the generated library to
21465     # depend on `.', always an invalid library.  This was fixed in
21466     # development snapshots of GCC prior to 3.0.
21467     case $host_os in
21468       aix4 | aix4.[01] | aix4.[01].*)
21469       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21470            echo ' yes '
21471            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21472         :
21473       else
21474         can_build_shared=no
21475       fi
21476       ;;
21477     esac
21478     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21479     # soname into executable. Probably we can add versioning support to
21480     # collect2, so additional links can be useful in future.
21481     if test "$aix_use_runtimelinking" = yes; then
21482       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21483       # instead of lib<name>.a to let people know that these are not
21484       # typical AIX shared libraries.
21485       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21486     else
21487       # We preserve .a as extension for shared libraries through AIX4.2
21488       # and later when we are not doing run time linking.
21489       library_names_spec='${libname}${release}.a $libname.a'
21490       soname_spec='${libname}${release}${shared_ext}$major'
21491     fi
21492     shlibpath_var=LIBPATH
21493   fi
21494   ;;
21495
21496 amigaos*)
21497   library_names_spec='$libname.ixlibrary $libname.a'
21498   # Create ${libname}_ixlibrary.a entries in /sys/libs.
21499   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'
21500   ;;
21501
21502 beos*)
21503   library_names_spec='${libname}${shared_ext}'
21504   dynamic_linker="$host_os ld.so"
21505   shlibpath_var=LIBRARY_PATH
21506   ;;
21507
21508 bsdi[45]*)
21509   version_type=linux
21510   need_version=no
21511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21512   soname_spec='${libname}${release}${shared_ext}$major'
21513   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21514   shlibpath_var=LD_LIBRARY_PATH
21515   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21516   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21517   # the default ld.so.conf also contains /usr/contrib/lib and
21518   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21519   # libtool to hard-code these into programs
21520   ;;
21521
21522 cygwin* | mingw* | pw32*)
21523   version_type=windows
21524   shrext_cmds=".dll"
21525   need_version=no
21526   need_lib_prefix=no
21527
21528   case $GCC,$host_os in
21529   yes,cygwin* | yes,mingw* | yes,pw32*)
21530     library_names_spec='$libname.dll.a'
21531     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21532     postinstall_cmds='base_file=`basename \${file}`~
21533       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21534       dldir=$destdir/`dirname \$dlpath`~
21535       test -d \$dldir || mkdir -p \$dldir~
21536       $install_prog $dir/$dlname \$dldir/$dlname~
21537       chmod a+x \$dldir/$dlname'
21538     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21539       dlpath=$dir/\$dldll~
21540        $rm \$dlpath'
21541     shlibpath_overrides_runpath=yes
21542
21543     case $host_os in
21544     cygwin*)
21545       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21546       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21547       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21548       ;;
21549     mingw*)
21550       # MinGW DLLs use traditional 'lib' prefix
21551       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21552       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21553       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21554         # It is most probably a Windows format PATH printed by
21555         # mingw gcc, but we are running on Cygwin. Gcc prints its search
21556         # path with ; separators, and with drive letters. We can handle the
21557         # drive letters (cygwin fileutils understands them), so leave them,
21558         # especially as we might pass files found there to a mingw objdump,
21559         # which wouldn't understand a cygwinified path. Ahh.
21560         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21561       else
21562         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21563       fi
21564       ;;
21565     pw32*)
21566       # pw32 DLLs use 'pw' prefix rather than 'lib'
21567       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21568       ;;
21569     esac
21570     ;;
21571
21572   *)
21573     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21574     ;;
21575   esac
21576   dynamic_linker='Win32 ld.exe'
21577   # FIXME: first we should search . and the directory the executable is in
21578   shlibpath_var=PATH
21579   ;;
21580
21581 darwin* | rhapsody*)
21582   dynamic_linker="$host_os dyld"
21583   version_type=darwin
21584   need_lib_prefix=no
21585   need_version=no
21586   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21587   soname_spec='${libname}${release}${major}$shared_ext'
21588   shlibpath_overrides_runpath=yes
21589   shlibpath_var=DYLD_LIBRARY_PATH
21590   shrext_cmds='.dylib'
21591   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21592   if test "$GCC" = yes; then
21593     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"`
21594   else
21595     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21596   fi
21597   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21598   ;;
21599
21600 dgux*)
21601   version_type=linux
21602   need_lib_prefix=no
21603   need_version=no
21604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21605   soname_spec='${libname}${release}${shared_ext}$major'
21606   shlibpath_var=LD_LIBRARY_PATH
21607   ;;
21608
21609 freebsd1*)
21610   dynamic_linker=no
21611   ;;
21612
21613 kfreebsd*-gnu)
21614   version_type=linux
21615   need_lib_prefix=no
21616   need_version=no
21617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21618   soname_spec='${libname}${release}${shared_ext}$major'
21619   shlibpath_var=LD_LIBRARY_PATH
21620   shlibpath_overrides_runpath=no
21621   hardcode_into_libs=yes
21622   dynamic_linker='GNU ld.so'
21623   ;;
21624
21625 freebsd* | dragonfly*)
21626   # DragonFly does not have aout.  When/if they implement a new
21627   # versioning mechanism, adjust this.
21628   if test -x /usr/bin/objformat; then
21629     objformat=`/usr/bin/objformat`
21630   else
21631     case $host_os in
21632     freebsd[123]*) objformat=aout ;;
21633     *) objformat=elf ;;
21634     esac
21635   fi
21636   version_type=freebsd-$objformat
21637   case $version_type in
21638     freebsd-elf*)
21639       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21640       need_version=no
21641       need_lib_prefix=no
21642       ;;
21643     freebsd-*)
21644       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21645       need_version=yes
21646       ;;
21647   esac
21648   shlibpath_var=LD_LIBRARY_PATH
21649   case $host_os in
21650   freebsd2*)
21651     shlibpath_overrides_runpath=yes
21652     ;;
21653   freebsd3.[01]* | freebsdelf3.[01]*)
21654     shlibpath_overrides_runpath=yes
21655     hardcode_into_libs=yes
21656     ;;
21657   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21658   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21659     shlibpath_overrides_runpath=no
21660     hardcode_into_libs=yes
21661     ;;
21662   freebsd*) # from 4.6 on
21663     shlibpath_overrides_runpath=yes
21664     hardcode_into_libs=yes
21665     ;;
21666   esac
21667   ;;
21668
21669 gnu*)
21670   version_type=linux
21671   need_lib_prefix=no
21672   need_version=no
21673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21674   soname_spec='${libname}${release}${shared_ext}$major'
21675   shlibpath_var=LD_LIBRARY_PATH
21676   hardcode_into_libs=yes
21677   ;;
21678
21679 hpux9* | hpux10* | hpux11*)
21680   # Give a soname corresponding to the major version so that dld.sl refuses to
21681   # link against other versions.
21682   version_type=sunos
21683   need_lib_prefix=no
21684   need_version=no
21685   case $host_cpu in
21686   ia64*)
21687     shrext_cmds='.so'
21688     hardcode_into_libs=yes
21689     dynamic_linker="$host_os dld.so"
21690     shlibpath_var=LD_LIBRARY_PATH
21691     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21692     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21693     soname_spec='${libname}${release}${shared_ext}$major'
21694     if test "X$HPUX_IA64_MODE" = X32; then
21695       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21696     else
21697       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21698     fi
21699     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21700     ;;
21701    hppa*64*)
21702      shrext_cmds='.sl'
21703      hardcode_into_libs=yes
21704      dynamic_linker="$host_os dld.sl"
21705      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21706      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21707      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21708      soname_spec='${libname}${release}${shared_ext}$major'
21709      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21710      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21711      ;;
21712    *)
21713     shrext_cmds='.sl'
21714     dynamic_linker="$host_os dld.sl"
21715     shlibpath_var=SHLIB_PATH
21716     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21717     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21718     soname_spec='${libname}${release}${shared_ext}$major'
21719     ;;
21720   esac
21721   # HP-UX runs *really* slowly unless shared libraries are mode 555.
21722   postinstall_cmds='chmod 555 $lib'
21723   ;;
21724
21725 interix3*)
21726   version_type=linux
21727   need_lib_prefix=no
21728   need_version=no
21729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21730   soname_spec='${libname}${release}${shared_ext}$major'
21731   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21732   shlibpath_var=LD_LIBRARY_PATH
21733   shlibpath_overrides_runpath=no
21734   hardcode_into_libs=yes
21735   ;;
21736
21737 irix5* | irix6* | nonstopux*)
21738   case $host_os in
21739     nonstopux*) version_type=nonstopux ;;
21740     *)
21741         if test "$lt_cv_prog_gnu_ld" = yes; then
21742                 version_type=linux
21743         else
21744                 version_type=irix
21745         fi ;;
21746   esac
21747   need_lib_prefix=no
21748   need_version=no
21749   soname_spec='${libname}${release}${shared_ext}$major'
21750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21751   case $host_os in
21752   irix5* | nonstopux*)
21753     libsuff= shlibsuff=
21754     ;;
21755   *)
21756     case $LD in # libtool.m4 will add one of these switches to LD
21757     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21758       libsuff= shlibsuff= libmagic=32-bit;;
21759     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21760       libsuff=32 shlibsuff=N32 libmagic=N32;;
21761     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21762       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21763     *) libsuff= shlibsuff= libmagic=never-match;;
21764     esac
21765     ;;
21766   esac
21767   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21768   shlibpath_overrides_runpath=no
21769   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21770   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21771   hardcode_into_libs=yes
21772   ;;
21773
21774 # No shared lib support for Linux oldld, aout, or coff.
21775 linux*oldld* | linux*aout* | linux*coff*)
21776   dynamic_linker=no
21777   ;;
21778
21779 # This must be Linux ELF.
21780 linux*)
21781   version_type=linux
21782   need_lib_prefix=no
21783   need_version=no
21784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21785   soname_spec='${libname}${release}${shared_ext}$major'
21786   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21787   shlibpath_var=LD_LIBRARY_PATH
21788   shlibpath_overrides_runpath=no
21789   # This implies no fast_install, which is unacceptable.
21790   # Some rework will be needed to allow for fast_install
21791   # before this can be enabled.
21792   hardcode_into_libs=yes
21793
21794   # Append ld.so.conf contents to the search path
21795   if test -f /etc/ld.so.conf; then
21796     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' ' '`
21797     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21798   fi
21799
21800   # We used to test for /lib/ld.so.1 and disable shared libraries on
21801   # powerpc, because MkLinux only supported shared libraries with the
21802   # GNU dynamic linker.  Since this was broken with cross compilers,
21803   # most powerpc-linux boxes support dynamic linking these days and
21804   # people can always --disable-shared, the test was removed, and we
21805   # assume the GNU/Linux dynamic linker is in use.
21806   dynamic_linker='GNU/Linux ld.so'
21807   ;;
21808
21809 knetbsd*-gnu)
21810   version_type=linux
21811   need_lib_prefix=no
21812   need_version=no
21813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21814   soname_spec='${libname}${release}${shared_ext}$major'
21815   shlibpath_var=LD_LIBRARY_PATH
21816   shlibpath_overrides_runpath=no
21817   hardcode_into_libs=yes
21818   dynamic_linker='GNU ld.so'
21819   ;;
21820
21821 netbsd*)
21822   version_type=sunos
21823   need_lib_prefix=no
21824   need_version=no
21825   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21826     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21827     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21828     dynamic_linker='NetBSD (a.out) ld.so'
21829   else
21830     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21831     soname_spec='${libname}${release}${shared_ext}$major'
21832     dynamic_linker='NetBSD ld.elf_so'
21833   fi
21834   shlibpath_var=LD_LIBRARY_PATH
21835   shlibpath_overrides_runpath=yes
21836   hardcode_into_libs=yes
21837   ;;
21838
21839 newsos6)
21840   version_type=linux
21841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21842   shlibpath_var=LD_LIBRARY_PATH
21843   shlibpath_overrides_runpath=yes
21844   ;;
21845
21846 nto-qnx*)
21847   version_type=linux
21848   need_lib_prefix=no
21849   need_version=no
21850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21851   soname_spec='${libname}${release}${shared_ext}$major'
21852   shlibpath_var=LD_LIBRARY_PATH
21853   shlibpath_overrides_runpath=yes
21854   ;;
21855
21856 openbsd*)
21857   version_type=sunos
21858   sys_lib_dlsearch_path_spec="/usr/lib"
21859   need_lib_prefix=no
21860   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21861   case $host_os in
21862     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21863     *)                         need_version=no  ;;
21864   esac
21865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21866   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21867   shlibpath_var=LD_LIBRARY_PATH
21868   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21869     case $host_os in
21870       openbsd2.[89] | openbsd2.[89].*)
21871         shlibpath_overrides_runpath=no
21872         ;;
21873       *)
21874         shlibpath_overrides_runpath=yes
21875         ;;
21876       esac
21877   else
21878     shlibpath_overrides_runpath=yes
21879   fi
21880   ;;
21881
21882 os2*)
21883   libname_spec='$name'
21884   shrext_cmds=".dll"
21885   need_lib_prefix=no
21886   library_names_spec='$libname${shared_ext} $libname.a'
21887   dynamic_linker='OS/2 ld.exe'
21888   shlibpath_var=LIBPATH
21889   ;;
21890
21891 osf3* | osf4* | osf5*)
21892   version_type=osf
21893   need_lib_prefix=no
21894   need_version=no
21895   soname_spec='${libname}${release}${shared_ext}$major'
21896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21897   shlibpath_var=LD_LIBRARY_PATH
21898   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21899   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21900   ;;
21901
21902 solaris*)
21903   version_type=linux
21904   need_lib_prefix=no
21905   need_version=no
21906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21907   soname_spec='${libname}${release}${shared_ext}$major'
21908   shlibpath_var=LD_LIBRARY_PATH
21909   shlibpath_overrides_runpath=yes
21910   hardcode_into_libs=yes
21911   # ldd complains unless libraries are executable
21912   postinstall_cmds='chmod +x $lib'
21913   ;;
21914
21915 sunos4*)
21916   version_type=sunos
21917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21918   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21919   shlibpath_var=LD_LIBRARY_PATH
21920   shlibpath_overrides_runpath=yes
21921   if test "$with_gnu_ld" = yes; then
21922     need_lib_prefix=no
21923   fi
21924   need_version=yes
21925   ;;
21926
21927 sysv4 | sysv4.3*)
21928   version_type=linux
21929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21930   soname_spec='${libname}${release}${shared_ext}$major'
21931   shlibpath_var=LD_LIBRARY_PATH
21932   case $host_vendor in
21933     sni)
21934       shlibpath_overrides_runpath=no
21935       need_lib_prefix=no
21936       export_dynamic_flag_spec='${wl}-Blargedynsym'
21937       runpath_var=LD_RUN_PATH
21938       ;;
21939     siemens)
21940       need_lib_prefix=no
21941       ;;
21942     motorola)
21943       need_lib_prefix=no
21944       need_version=no
21945       shlibpath_overrides_runpath=no
21946       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21947       ;;
21948   esac
21949   ;;
21950
21951 sysv4*MP*)
21952   if test -d /usr/nec ;then
21953     version_type=linux
21954     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21955     soname_spec='$libname${shared_ext}.$major'
21956     shlibpath_var=LD_LIBRARY_PATH
21957   fi
21958   ;;
21959
21960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21961   version_type=freebsd-elf
21962   need_lib_prefix=no
21963   need_version=no
21964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21965   soname_spec='${libname}${release}${shared_ext}$major'
21966   shlibpath_var=LD_LIBRARY_PATH
21967   hardcode_into_libs=yes
21968   if test "$with_gnu_ld" = yes; then
21969     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21970     shlibpath_overrides_runpath=no
21971   else
21972     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21973     shlibpath_overrides_runpath=yes
21974     case $host_os in
21975       sco3.2v5*)
21976         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21977         ;;
21978     esac
21979   fi
21980   sys_lib_dlsearch_path_spec='/usr/lib'
21981   ;;
21982
21983 uts4*)
21984   version_type=linux
21985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21986   soname_spec='${libname}${release}${shared_ext}$major'
21987   shlibpath_var=LD_LIBRARY_PATH
21988   ;;
21989
21990 *)
21991   dynamic_linker=no
21992   ;;
21993 esac
21994 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21995 echo "${ECHO_T}$dynamic_linker" >&6; }
21996 test "$dynamic_linker" = no && can_build_shared=no
21997
21998 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21999 if test "$GCC" = yes; then
22000   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22001 fi
22002
22003 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22004 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22005 hardcode_action_F77=
22006 if test -n "$hardcode_libdir_flag_spec_F77" || \
22007    test -n "$runpath_var_F77" || \
22008    test "X$hardcode_automatic_F77" = "Xyes" ; then
22009
22010   # We can hardcode non-existant directories.
22011   if test "$hardcode_direct_F77" != no &&
22012      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22013      # have to relink, otherwise we might link with an installed library
22014      # when we should be linking with a yet-to-be-installed one
22015      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22016      test "$hardcode_minus_L_F77" != no; then
22017     # Linking always hardcodes the temporary library directory.
22018     hardcode_action_F77=relink
22019   else
22020     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22021     hardcode_action_F77=immediate
22022   fi
22023 else
22024   # We cannot hardcode anything, or else we can only hardcode existing
22025   # directories.
22026   hardcode_action_F77=unsupported
22027 fi
22028 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22029 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22030
22031 if test "$hardcode_action_F77" = relink; then
22032   # Fast installation is not supported
22033   enable_fast_install=no
22034 elif test "$shlibpath_overrides_runpath" = yes ||
22035      test "$enable_shared" = no; then
22036   # Fast installation is not necessary
22037   enable_fast_install=needless
22038 fi
22039
22040
22041 # The else clause should only fire when bootstrapping the
22042 # libtool distribution, otherwise you forgot to ship ltmain.sh
22043 # with your package, and you will get complaints that there are
22044 # no rules to generate ltmain.sh.
22045 if test -f "$ltmain"; then
22046   # See if we are running on zsh, and set the options which allow our commands through
22047   # without removal of \ escapes.
22048   if test -n "${ZSH_VERSION+set}" ; then
22049     setopt NO_GLOB_SUBST
22050   fi
22051   # Now quote all the things that may contain metacharacters while being
22052   # careful not to overquote the AC_SUBSTed values.  We take copies of the
22053   # variables and quote the copies for generation of the libtool script.
22054   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22055     SED SHELL STRIP \
22056     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22057     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22058     deplibs_check_method reload_flag reload_cmds need_locks \
22059     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22060     lt_cv_sys_global_symbol_to_c_name_address \
22061     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22062     old_postinstall_cmds old_postuninstall_cmds \
22063     compiler_F77 \
22064     CC_F77 \
22065     LD_F77 \
22066     lt_prog_compiler_wl_F77 \
22067     lt_prog_compiler_pic_F77 \
22068     lt_prog_compiler_static_F77 \
22069     lt_prog_compiler_no_builtin_flag_F77 \
22070     export_dynamic_flag_spec_F77 \
22071     thread_safe_flag_spec_F77 \
22072     whole_archive_flag_spec_F77 \
22073     enable_shared_with_static_runtimes_F77 \
22074     old_archive_cmds_F77 \
22075     old_archive_from_new_cmds_F77 \
22076     predep_objects_F77 \
22077     postdep_objects_F77 \
22078     predeps_F77 \
22079     postdeps_F77 \
22080     compiler_lib_search_path_F77 \
22081     archive_cmds_F77 \
22082     archive_expsym_cmds_F77 \
22083     postinstall_cmds_F77 \
22084     postuninstall_cmds_F77 \
22085     old_archive_from_expsyms_cmds_F77 \
22086     allow_undefined_flag_F77 \
22087     no_undefined_flag_F77 \
22088     export_symbols_cmds_F77 \
22089     hardcode_libdir_flag_spec_F77 \
22090     hardcode_libdir_flag_spec_ld_F77 \
22091     hardcode_libdir_separator_F77 \
22092     hardcode_automatic_F77 \
22093     module_cmds_F77 \
22094     module_expsym_cmds_F77 \
22095     lt_cv_prog_compiler_c_o_F77 \
22096     exclude_expsyms_F77 \
22097     include_expsyms_F77; do
22098
22099     case $var in
22100     old_archive_cmds_F77 | \
22101     old_archive_from_new_cmds_F77 | \
22102     archive_cmds_F77 | \
22103     archive_expsym_cmds_F77 | \
22104     module_cmds_F77 | \
22105     module_expsym_cmds_F77 | \
22106     old_archive_from_expsyms_cmds_F77 | \
22107     export_symbols_cmds_F77 | \
22108     extract_expsyms_cmds | reload_cmds | finish_cmds | \
22109     postinstall_cmds | postuninstall_cmds | \
22110     old_postinstall_cmds | old_postuninstall_cmds | \
22111     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22112       # Double-quote double-evaled strings.
22113       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22114       ;;
22115     *)
22116       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22117       ;;
22118     esac
22119   done
22120
22121   case $lt_echo in
22122   *'\$0 --fallback-echo"')
22123     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22124     ;;
22125   esac
22126
22127 cfgfile="$ofile"
22128
22129   cat <<__EOF__ >> "$cfgfile"
22130 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22131
22132 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22133
22134 # Shell to use when invoking shell scripts.
22135 SHELL=$lt_SHELL
22136
22137 # Whether or not to build shared libraries.
22138 build_libtool_libs=$enable_shared
22139
22140 # Whether or not to build static libraries.
22141 build_old_libs=$enable_static
22142
22143 # Whether or not to add -lc for building shared libraries.
22144 build_libtool_need_lc=$archive_cmds_need_lc_F77
22145
22146 # Whether or not to disallow shared libs when runtime libs are static
22147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22148
22149 # Whether or not to optimize for fast installation.
22150 fast_install=$enable_fast_install
22151
22152 # The host system.
22153 host_alias=$host_alias
22154 host=$host
22155 host_os=$host_os
22156
22157 # The build system.
22158 build_alias=$build_alias
22159 build=$build
22160 build_os=$build_os
22161
22162 # An echo program that does not interpret backslashes.
22163 echo=$lt_echo
22164
22165 # The archiver.
22166 AR=$lt_AR
22167 AR_FLAGS=$lt_AR_FLAGS
22168
22169 # A C compiler.
22170 LTCC=$lt_LTCC
22171
22172 # LTCC compiler flags.
22173 LTCFLAGS=$lt_LTCFLAGS
22174
22175 # A language-specific compiler.
22176 CC=$lt_compiler_F77
22177
22178 # Is the compiler the GNU C compiler?
22179 with_gcc=$GCC_F77
22180
22181 # An ERE matcher.
22182 EGREP=$lt_EGREP
22183
22184 # The linker used to build libraries.
22185 LD=$lt_LD_F77
22186
22187 # Whether we need hard or soft links.
22188 LN_S=$lt_LN_S
22189
22190 # A BSD-compatible nm program.
22191 NM=$lt_NM
22192
22193 # A symbol stripping program
22194 STRIP=$lt_STRIP
22195
22196 # Used to examine libraries when file_magic_cmd begins "file"
22197 MAGIC_CMD=$MAGIC_CMD
22198
22199 # Used on cygwin: DLL creation program.
22200 DLLTOOL="$DLLTOOL"
22201
22202 # Used on cygwin: object dumper.
22203 OBJDUMP="$OBJDUMP"
22204
22205 # Used on cygwin: assembler.
22206 AS="$AS"
22207
22208 # The name of the directory that contains temporary libtool files.
22209 objdir=$objdir
22210
22211 # How to create reloadable object files.
22212 reload_flag=$lt_reload_flag
22213 reload_cmds=$lt_reload_cmds
22214
22215 # How to pass a linker flag through the compiler.
22216 wl=$lt_lt_prog_compiler_wl_F77
22217
22218 # Object file suffix (normally "o").
22219 objext="$ac_objext"
22220
22221 # Old archive suffix (normally "a").
22222 libext="$libext"
22223
22224 # Shared library suffix (normally ".so").
22225 shrext_cmds='$shrext_cmds'
22226
22227 # Executable file suffix (normally "").
22228 exeext="$exeext"
22229
22230 # Additional compiler flags for building library objects.
22231 pic_flag=$lt_lt_prog_compiler_pic_F77
22232 pic_mode=$pic_mode
22233
22234 # What is the maximum length of a command?
22235 max_cmd_len=$lt_cv_sys_max_cmd_len
22236
22237 # Does compiler simultaneously support -c and -o options?
22238 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22239
22240 # Must we lock files when doing compilation?
22241 need_locks=$lt_need_locks
22242
22243 # Do we need the lib prefix for modules?
22244 need_lib_prefix=$need_lib_prefix
22245
22246 # Do we need a version for libraries?
22247 need_version=$need_version
22248
22249 # Whether dlopen is supported.
22250 dlopen_support=$enable_dlopen
22251
22252 # Whether dlopen of programs is supported.
22253 dlopen_self=$enable_dlopen_self
22254
22255 # Whether dlopen of statically linked programs is supported.
22256 dlopen_self_static=$enable_dlopen_self_static
22257
22258 # Compiler flag to prevent dynamic linking.
22259 link_static_flag=$lt_lt_prog_compiler_static_F77
22260
22261 # Compiler flag to turn off builtin functions.
22262 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22263
22264 # Compiler flag to allow reflexive dlopens.
22265 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22266
22267 # Compiler flag to generate shared objects directly from archives.
22268 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22269
22270 # Compiler flag to generate thread-safe objects.
22271 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22272
22273 # Library versioning type.
22274 version_type=$version_type
22275
22276 # Format of library name prefix.
22277 libname_spec=$lt_libname_spec
22278
22279 # List of archive names.  First name is the real one, the rest are links.
22280 # The last name is the one that the linker finds with -lNAME.
22281 library_names_spec=$lt_library_names_spec
22282
22283 # The coded name of the library, if different from the real name.
22284 soname_spec=$lt_soname_spec
22285
22286 # Commands used to build and install an old-style archive.
22287 RANLIB=$lt_RANLIB
22288 old_archive_cmds=$lt_old_archive_cmds_F77
22289 old_postinstall_cmds=$lt_old_postinstall_cmds
22290 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22291
22292 # Create an old-style archive from a shared archive.
22293 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22294
22295 # Create a temporary old-style archive to link instead of a shared archive.
22296 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22297
22298 # Commands used to build and install a shared archive.
22299 archive_cmds=$lt_archive_cmds_F77
22300 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22301 postinstall_cmds=$lt_postinstall_cmds
22302 postuninstall_cmds=$lt_postuninstall_cmds
22303
22304 # Commands used to build a loadable module (assumed same as above if empty)
22305 module_cmds=$lt_module_cmds_F77
22306 module_expsym_cmds=$lt_module_expsym_cmds_F77
22307
22308 # Commands to strip libraries.
22309 old_striplib=$lt_old_striplib
22310 striplib=$lt_striplib
22311
22312 # Dependencies to place before the objects being linked to create a
22313 # shared library.
22314 predep_objects=$lt_predep_objects_F77
22315
22316 # Dependencies to place after the objects being linked to create a
22317 # shared library.
22318 postdep_objects=$lt_postdep_objects_F77
22319
22320 # Dependencies to place before the objects being linked to create a
22321 # shared library.
22322 predeps=$lt_predeps_F77
22323
22324 # Dependencies to place after the objects being linked to create a
22325 # shared library.
22326 postdeps=$lt_postdeps_F77
22327
22328 # The library search path used internally by the compiler when linking
22329 # a shared library.
22330 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22331
22332 # Method to check whether dependent libraries are shared objects.
22333 deplibs_check_method=$lt_deplibs_check_method
22334
22335 # Command to use when deplibs_check_method == file_magic.
22336 file_magic_cmd=$lt_file_magic_cmd
22337
22338 # Flag that allows shared libraries with undefined symbols to be built.
22339 allow_undefined_flag=$lt_allow_undefined_flag_F77
22340
22341 # Flag that forces no undefined symbols.
22342 no_undefined_flag=$lt_no_undefined_flag_F77
22343
22344 # Commands used to finish a libtool library installation in a directory.
22345 finish_cmds=$lt_finish_cmds
22346
22347 # Same as above, but a single script fragment to be evaled but not shown.
22348 finish_eval=$lt_finish_eval
22349
22350 # Take the output of nm and produce a listing of raw symbols and C names.
22351 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22352
22353 # Transform the output of nm in a proper C declaration
22354 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22355
22356 # Transform the output of nm in a C name address pair
22357 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22358
22359 # This is the shared library runtime path variable.
22360 runpath_var=$runpath_var
22361
22362 # This is the shared library path variable.
22363 shlibpath_var=$shlibpath_var
22364
22365 # Is shlibpath searched before the hard-coded library search path?
22366 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22367
22368 # How to hardcode a shared library path into an executable.
22369 hardcode_action=$hardcode_action_F77
22370
22371 # Whether we should hardcode library paths into libraries.
22372 hardcode_into_libs=$hardcode_into_libs
22373
22374 # Flag to hardcode \$libdir into a binary during linking.
22375 # This must work even if \$libdir does not exist.
22376 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22377
22378 # If ld is used when linking, flag to hardcode \$libdir into
22379 # a binary during linking. This must work even if \$libdir does
22380 # not exist.
22381 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22382
22383 # Whether we need a single -rpath flag with a separated argument.
22384 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22385
22386 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22387 # resulting binary.
22388 hardcode_direct=$hardcode_direct_F77
22389
22390 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22391 # resulting binary.
22392 hardcode_minus_L=$hardcode_minus_L_F77
22393
22394 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22395 # the resulting binary.
22396 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22397
22398 # Set to yes if building a shared library automatically hardcodes DIR into the library
22399 # and all subsequent libraries and executables linked against it.
22400 hardcode_automatic=$hardcode_automatic_F77
22401
22402 # Variables whose values should be saved in libtool wrapper scripts and
22403 # restored at relink time.
22404 variables_saved_for_relink="$variables_saved_for_relink"
22405
22406 # Whether libtool must link a program against all its dependency libraries.
22407 link_all_deplibs=$link_all_deplibs_F77
22408
22409 # Compile-time system search path for libraries
22410 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22411
22412 # Run-time system search path for libraries
22413 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22414
22415 # Fix the shell variable \$srcfile for the compiler.
22416 fix_srcfile_path="$fix_srcfile_path_F77"
22417
22418 # Set to yes if exported symbols are required.
22419 always_export_symbols=$always_export_symbols_F77
22420
22421 # The commands to list exported symbols.
22422 export_symbols_cmds=$lt_export_symbols_cmds_F77
22423
22424 # The commands to extract the exported symbol list from a shared archive.
22425 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22426
22427 # Symbols that should not be listed in the preloaded symbols.
22428 exclude_expsyms=$lt_exclude_expsyms_F77
22429
22430 # Symbols that must always be exported.
22431 include_expsyms=$lt_include_expsyms_F77
22432
22433 # ### END LIBTOOL TAG CONFIG: $tagname
22434
22435 __EOF__
22436
22437
22438 else
22439   # If there is no Makefile yet, we rely on a make rule to execute
22440   # `config.status --recheck' to rerun these tests and create the
22441   # libtool script then.
22442   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22443   if test -f "$ltmain_in"; then
22444     test -f Makefile && make "$ltmain"
22445   fi
22446 fi
22447
22448
22449 ac_ext=c
22450 ac_cpp='$CPP $CPPFLAGS'
22451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22454
22455 CC="$lt_save_CC"
22456
22457         else
22458           tagname=""
22459         fi
22460         ;;
22461
22462       GCJ)
22463         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22464           ac_ext=c
22465 ac_cpp='$CPP $CPPFLAGS'
22466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22469
22470
22471 # Source file extension for Java test sources.
22472 ac_ext=java
22473
22474 # Object file extension for compiled Java test sources.
22475 objext=o
22476 objext_GCJ=$objext
22477
22478 # Code to be used in simple compile tests
22479 lt_simple_compile_test_code="class foo {}\n"
22480
22481 # Code to be used in simple link tests
22482 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22483
22484 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22485
22486 # If no C compiler was specified, use CC.
22487 LTCC=${LTCC-"$CC"}
22488
22489 # If no C compiler flags were specified, use CFLAGS.
22490 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22491
22492 # Allow CC to be a program name with arguments.
22493 compiler=$CC
22494
22495
22496 # save warnings/boilerplate of simple test code
22497 ac_outfile=conftest.$ac_objext
22498 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22499 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22500 _lt_compiler_boilerplate=`cat conftest.err`
22501 $rm conftest*
22502
22503 ac_outfile=conftest.$ac_objext
22504 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22505 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22506 _lt_linker_boilerplate=`cat conftest.err`
22507 $rm conftest*
22508
22509
22510 # Allow CC to be a program name with arguments.
22511 lt_save_CC="$CC"
22512 CC=${GCJ-"gcj"}
22513 compiler=$CC
22514 compiler_GCJ=$CC
22515 for cc_temp in $compiler""; do
22516   case $cc_temp in
22517     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22518     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22519     \-*) ;;
22520     *) break;;
22521   esac
22522 done
22523 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22524
22525
22526 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22527 archive_cmds_need_lc_GCJ=no
22528
22529 old_archive_cmds_GCJ=$old_archive_cmds
22530
22531
22532 lt_prog_compiler_no_builtin_flag_GCJ=
22533
22534 if test "$GCC" = yes; then
22535   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22536
22537
22538 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22539 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
22540 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22541   echo $ECHO_N "(cached) $ECHO_C" >&6
22542 else
22543   lt_cv_prog_compiler_rtti_exceptions=no
22544   ac_outfile=conftest.$ac_objext
22545    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22546    lt_compiler_flag="-fno-rtti -fno-exceptions"
22547    # Insert the option either (1) after the last *FLAGS variable, or
22548    # (2) before a word containing "conftest.", or (3) at the end.
22549    # Note that $ac_compile itself does not contain backslashes and begins
22550    # with a dollar sign (not a hyphen), so the echo should work correctly.
22551    # The option is referenced via a variable to avoid confusing sed.
22552    lt_compile=`echo "$ac_compile" | $SED \
22553    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22554    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22555    -e 's:$: $lt_compiler_flag:'`
22556    (eval echo "\"\$as_me:22556: $lt_compile\"" >&5)
22557    (eval "$lt_compile" 2>conftest.err)
22558    ac_status=$?
22559    cat conftest.err >&5
22560    echo "$as_me:22560: \$? = $ac_status" >&5
22561    if (exit $ac_status) && test -s "$ac_outfile"; then
22562      # The compiler can only warn and ignore the option if not recognized
22563      # So say no if there are warnings other than the usual output.
22564      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22565      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22566      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22567        lt_cv_prog_compiler_rtti_exceptions=yes
22568      fi
22569    fi
22570    $rm conftest*
22571
22572 fi
22573 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22574 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
22575
22576 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22577     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22578 else
22579     :
22580 fi
22581
22582 fi
22583
22584 lt_prog_compiler_wl_GCJ=
22585 lt_prog_compiler_pic_GCJ=
22586 lt_prog_compiler_static_GCJ=
22587
22588 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22589 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
22590
22591   if test "$GCC" = yes; then
22592     lt_prog_compiler_wl_GCJ='-Wl,'
22593     lt_prog_compiler_static_GCJ='-static'
22594
22595     case $host_os in
22596       aix*)
22597       # All AIX code is PIC.
22598       if test "$host_cpu" = ia64; then
22599         # AIX 5 now supports IA64 processor
22600         lt_prog_compiler_static_GCJ='-Bstatic'
22601       fi
22602       ;;
22603
22604     amigaos*)
22605       # FIXME: we need at least 68020 code to build shared libraries, but
22606       # adding the `-m68020' flag to GCC prevents building anything better,
22607       # like `-m68040'.
22608       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22609       ;;
22610
22611     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22612       # PIC is the default for these OSes.
22613       ;;
22614
22615     mingw* | pw32* | os2*)
22616       # This hack is so that the source file can tell whether it is being
22617       # built for inclusion in a dll (and should export symbols for example).
22618       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22619       ;;
22620
22621     darwin* | rhapsody*)
22622       # PIC is the default on this platform
22623       # Common symbols not allowed in MH_DYLIB files
22624       lt_prog_compiler_pic_GCJ='-fno-common'
22625       ;;
22626
22627     interix3*)
22628       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22629       # Instead, we relocate shared libraries at runtime.
22630       ;;
22631
22632     msdosdjgpp*)
22633       # Just because we use GCC doesn't mean we suddenly get shared libraries
22634       # on systems that don't support them.
22635       lt_prog_compiler_can_build_shared_GCJ=no
22636       enable_shared=no
22637       ;;
22638
22639     sysv4*MP*)
22640       if test -d /usr/nec; then
22641         lt_prog_compiler_pic_GCJ=-Kconform_pic
22642       fi
22643       ;;
22644
22645     hpux*)
22646       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22647       # not for PA HP-UX.
22648       case $host_cpu in
22649       hppa*64*|ia64*)
22650         # +Z the default
22651         ;;
22652       *)
22653         lt_prog_compiler_pic_GCJ='-fPIC'
22654         ;;
22655       esac
22656       ;;
22657
22658     *)
22659       lt_prog_compiler_pic_GCJ='-fPIC'
22660       ;;
22661     esac
22662   else
22663     # PORTME Check for flag to pass linker flags through the system compiler.
22664     case $host_os in
22665     aix*)
22666       lt_prog_compiler_wl_GCJ='-Wl,'
22667       if test "$host_cpu" = ia64; then
22668         # AIX 5 now supports IA64 processor
22669         lt_prog_compiler_static_GCJ='-Bstatic'
22670       else
22671         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22672       fi
22673       ;;
22674       darwin*)
22675         # PIC is the default on this platform
22676         # Common symbols not allowed in MH_DYLIB files
22677        case $cc_basename in
22678          xlc*)
22679          lt_prog_compiler_pic_GCJ='-qnocommon'
22680          lt_prog_compiler_wl_GCJ='-Wl,'
22681          ;;
22682        esac
22683        ;;
22684
22685     mingw* | pw32* | os2*)
22686       # This hack is so that the source file can tell whether it is being
22687       # built for inclusion in a dll (and should export symbols for example).
22688       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22689       ;;
22690
22691     hpux9* | hpux10* | hpux11*)
22692       lt_prog_compiler_wl_GCJ='-Wl,'
22693       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22694       # not for PA HP-UX.
22695       case $host_cpu in
22696       hppa*64*|ia64*)
22697         # +Z the default
22698         ;;
22699       *)
22700         lt_prog_compiler_pic_GCJ='+Z'
22701         ;;
22702       esac
22703       # Is there a better lt_prog_compiler_static that works with the bundled CC?
22704       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22705       ;;
22706
22707     irix5* | irix6* | nonstopux*)
22708       lt_prog_compiler_wl_GCJ='-Wl,'
22709       # PIC (with -KPIC) is the default.
22710       lt_prog_compiler_static_GCJ='-non_shared'
22711       ;;
22712
22713     newsos6)
22714       lt_prog_compiler_pic_GCJ='-KPIC'
22715       lt_prog_compiler_static_GCJ='-Bstatic'
22716       ;;
22717
22718     linux*)
22719       case $cc_basename in
22720       icc* | ecc*)
22721         lt_prog_compiler_wl_GCJ='-Wl,'
22722         lt_prog_compiler_pic_GCJ='-KPIC'
22723         lt_prog_compiler_static_GCJ='-static'
22724         ;;
22725       pgcc* | pgf77* | pgf90* | pgf95*)
22726         # Portland Group compilers (*not* the Pentium gcc compiler,
22727         # which looks to be a dead project)
22728         lt_prog_compiler_wl_GCJ='-Wl,'
22729         lt_prog_compiler_pic_GCJ='-fpic'
22730         lt_prog_compiler_static_GCJ='-Bstatic'
22731         ;;
22732       ccc*)
22733         lt_prog_compiler_wl_GCJ='-Wl,'
22734         # All Alpha code is PIC.
22735         lt_prog_compiler_static_GCJ='-non_shared'
22736         ;;
22737       esac
22738       ;;
22739
22740     osf3* | osf4* | osf5*)
22741       lt_prog_compiler_wl_GCJ='-Wl,'
22742       # All OSF/1 code is PIC.
22743       lt_prog_compiler_static_GCJ='-non_shared'
22744       ;;
22745
22746     solaris*)
22747       lt_prog_compiler_pic_GCJ='-KPIC'
22748       lt_prog_compiler_static_GCJ='-Bstatic'
22749       case $cc_basename in
22750       f77* | f90* | f95*)
22751         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22752       *)
22753         lt_prog_compiler_wl_GCJ='-Wl,';;
22754       esac
22755       ;;
22756
22757     sunos4*)
22758       lt_prog_compiler_wl_GCJ='-Qoption ld '
22759       lt_prog_compiler_pic_GCJ='-PIC'
22760       lt_prog_compiler_static_GCJ='-Bstatic'
22761       ;;
22762
22763     sysv4 | sysv4.2uw2* | sysv4.3*)
22764       lt_prog_compiler_wl_GCJ='-Wl,'
22765       lt_prog_compiler_pic_GCJ='-KPIC'
22766       lt_prog_compiler_static_GCJ='-Bstatic'
22767       ;;
22768
22769     sysv4*MP*)
22770       if test -d /usr/nec ;then
22771         lt_prog_compiler_pic_GCJ='-Kconform_pic'
22772         lt_prog_compiler_static_GCJ='-Bstatic'
22773       fi
22774       ;;
22775
22776     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22777       lt_prog_compiler_wl_GCJ='-Wl,'
22778       lt_prog_compiler_pic_GCJ='-KPIC'
22779       lt_prog_compiler_static_GCJ='-Bstatic'
22780       ;;
22781
22782     unicos*)
22783       lt_prog_compiler_wl_GCJ='-Wl,'
22784       lt_prog_compiler_can_build_shared_GCJ=no
22785       ;;
22786
22787     uts4*)
22788       lt_prog_compiler_pic_GCJ='-pic'
22789       lt_prog_compiler_static_GCJ='-Bstatic'
22790       ;;
22791
22792     *)
22793       lt_prog_compiler_can_build_shared_GCJ=no
22794       ;;
22795     esac
22796   fi
22797
22798 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22799 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
22800
22801 #
22802 # Check to make sure the PIC flag actually works.
22803 #
22804 if test -n "$lt_prog_compiler_pic_GCJ"; then
22805
22806 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22807 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
22808 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22809   echo $ECHO_N "(cached) $ECHO_C" >&6
22810 else
22811   lt_prog_compiler_pic_works_GCJ=no
22812   ac_outfile=conftest.$ac_objext
22813    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22814    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22815    # Insert the option either (1) after the last *FLAGS variable, or
22816    # (2) before a word containing "conftest.", or (3) at the end.
22817    # Note that $ac_compile itself does not contain backslashes and begins
22818    # with a dollar sign (not a hyphen), so the echo should work correctly.
22819    # The option is referenced via a variable to avoid confusing sed.
22820    lt_compile=`echo "$ac_compile" | $SED \
22821    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22822    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22823    -e 's:$: $lt_compiler_flag:'`
22824    (eval echo "\"\$as_me:22824: $lt_compile\"" >&5)
22825    (eval "$lt_compile" 2>conftest.err)
22826    ac_status=$?
22827    cat conftest.err >&5
22828    echo "$as_me:22828: \$? = $ac_status" >&5
22829    if (exit $ac_status) && test -s "$ac_outfile"; then
22830      # The compiler can only warn and ignore the option if not recognized
22831      # So say no if there are warnings other than the usual output.
22832      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22833      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22834      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22835        lt_prog_compiler_pic_works_GCJ=yes
22836      fi
22837    fi
22838    $rm conftest*
22839
22840 fi
22841 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22842 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
22843
22844 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22845     case $lt_prog_compiler_pic_GCJ in
22846      "" | " "*) ;;
22847      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22848      esac
22849 else
22850     lt_prog_compiler_pic_GCJ=
22851      lt_prog_compiler_can_build_shared_GCJ=no
22852 fi
22853
22854 fi
22855 case $host_os in
22856   # For platforms which do not support PIC, -DPIC is meaningless:
22857   *djgpp*)
22858     lt_prog_compiler_pic_GCJ=
22859     ;;
22860   *)
22861     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22862     ;;
22863 esac
22864
22865 #
22866 # Check to make sure the static flag actually works.
22867 #
22868 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
22869 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22870 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
22871 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
22872   echo $ECHO_N "(cached) $ECHO_C" >&6
22873 else
22874   lt_prog_compiler_static_works_GCJ=no
22875    save_LDFLAGS="$LDFLAGS"
22876    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22877    printf "$lt_simple_link_test_code" > conftest.$ac_ext
22878    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22879      # The linker can only warn and ignore the option if not recognized
22880      # So say no if there are warnings
22881      if test -s conftest.err; then
22882        # Append any errors to the config.log.
22883        cat conftest.err 1>&5
22884        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22885        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22886        if diff conftest.exp conftest.er2 >/dev/null; then
22887          lt_prog_compiler_static_works_GCJ=yes
22888        fi
22889      else
22890        lt_prog_compiler_static_works_GCJ=yes
22891      fi
22892    fi
22893    $rm conftest*
22894    LDFLAGS="$save_LDFLAGS"
22895
22896 fi
22897 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
22898 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
22899
22900 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
22901     :
22902 else
22903     lt_prog_compiler_static_GCJ=
22904 fi
22905
22906
22907 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22908 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
22909 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22910   echo $ECHO_N "(cached) $ECHO_C" >&6
22911 else
22912   lt_cv_prog_compiler_c_o_GCJ=no
22913    $rm -r conftest 2>/dev/null
22914    mkdir conftest
22915    cd conftest
22916    mkdir out
22917    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22918
22919    lt_compiler_flag="-o out/conftest2.$ac_objext"
22920    # Insert the option either (1) after the last *FLAGS variable, or
22921    # (2) before a word containing "conftest.", or (3) at the end.
22922    # Note that $ac_compile itself does not contain backslashes and begins
22923    # with a dollar sign (not a hyphen), so the echo should work correctly.
22924    lt_compile=`echo "$ac_compile" | $SED \
22925    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22926    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22927    -e 's:$: $lt_compiler_flag:'`
22928    (eval echo "\"\$as_me:22928: $lt_compile\"" >&5)
22929    (eval "$lt_compile" 2>out/conftest.err)
22930    ac_status=$?
22931    cat out/conftest.err >&5
22932    echo "$as_me:22932: \$? = $ac_status" >&5
22933    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22934    then
22935      # The compiler can only warn and ignore the option if not recognized
22936      # So say no if there are warnings
22937      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22938      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22939      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22940        lt_cv_prog_compiler_c_o_GCJ=yes
22941      fi
22942    fi
22943    chmod u+w . 2>&5
22944    $rm conftest*
22945    # SGI C++ compiler will create directory out/ii_files/ for
22946    # template instantiation
22947    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22948    $rm out/* && rmdir out
22949    cd ..
22950    rmdir conftest
22951    $rm conftest*
22952
22953 fi
22954 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22955 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
22956
22957
22958 hard_links="nottested"
22959 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22960   # do not overwrite the value of need_locks provided by the user
22961   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22962 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22963   hard_links=yes
22964   $rm conftest*
22965   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22966   touch conftest.a
22967   ln conftest.a conftest.b 2>&5 || hard_links=no
22968   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22969   { echo "$as_me:$LINENO: result: $hard_links" >&5
22970 echo "${ECHO_T}$hard_links" >&6; }
22971   if test "$hard_links" = no; then
22972     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22973 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22974     need_locks=warn
22975   fi
22976 else
22977   need_locks=no
22978 fi
22979
22980 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22981 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22982
22983   runpath_var=
22984   allow_undefined_flag_GCJ=
22985   enable_shared_with_static_runtimes_GCJ=no
22986   archive_cmds_GCJ=
22987   archive_expsym_cmds_GCJ=
22988   old_archive_From_new_cmds_GCJ=
22989   old_archive_from_expsyms_cmds_GCJ=
22990   export_dynamic_flag_spec_GCJ=
22991   whole_archive_flag_spec_GCJ=
22992   thread_safe_flag_spec_GCJ=
22993   hardcode_libdir_flag_spec_GCJ=
22994   hardcode_libdir_flag_spec_ld_GCJ=
22995   hardcode_libdir_separator_GCJ=
22996   hardcode_direct_GCJ=no
22997   hardcode_minus_L_GCJ=no
22998   hardcode_shlibpath_var_GCJ=unsupported
22999   link_all_deplibs_GCJ=unknown
23000   hardcode_automatic_GCJ=no
23001   module_cmds_GCJ=
23002   module_expsym_cmds_GCJ=
23003   always_export_symbols_GCJ=no
23004   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23005   # include_expsyms should be a list of space-separated symbols to be *always*
23006   # included in the symbol list
23007   include_expsyms_GCJ=
23008   # exclude_expsyms can be an extended regexp of symbols to exclude
23009   # it will be wrapped by ` (' and `)$', so one must not match beginning or
23010   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23011   # as well as any symbol that contains `d'.
23012   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23013   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23014   # platforms (ab)use it in PIC code, but their linkers get confused if
23015   # the symbol is explicitly referenced.  Since portable code cannot
23016   # rely on this symbol name, it's probably fine to never include it in
23017   # preloaded symbol tables.
23018   extract_expsyms_cmds=
23019   # Just being paranoid about ensuring that cc_basename is set.
23020   for cc_temp in $compiler""; do
23021   case $cc_temp in
23022     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23023     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23024     \-*) ;;
23025     *) break;;
23026   esac
23027 done
23028 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23029
23030   case $host_os in
23031   cygwin* | mingw* | pw32*)
23032     # FIXME: the MSVC++ port hasn't been tested in a loooong time
23033     # When not using gcc, we currently assume that we are using
23034     # Microsoft Visual C++.
23035     if test "$GCC" != yes; then
23036       with_gnu_ld=no
23037     fi
23038     ;;
23039   interix*)
23040     # we just hope/assume this is gcc and not c89 (= MSVC++)
23041     with_gnu_ld=yes
23042     ;;
23043   openbsd*)
23044     with_gnu_ld=no
23045     ;;
23046   esac
23047
23048   ld_shlibs_GCJ=yes
23049   if test "$with_gnu_ld" = yes; then
23050     # If archive_cmds runs LD, not CC, wlarc should be empty
23051     wlarc='${wl}'
23052
23053     # Set some defaults for GNU ld with shared library support. These
23054     # are reset later if shared libraries are not supported. Putting them
23055     # here allows them to be overridden if necessary.
23056     runpath_var=LD_RUN_PATH
23057     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23058     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23059     # ancient GNU ld didn't support --whole-archive et. al.
23060     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23061         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23062       else
23063         whole_archive_flag_spec_GCJ=
23064     fi
23065     supports_anon_versioning=no
23066     case `$LD -v 2>/dev/null` in
23067       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23068       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23069       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23070       *\ 2.11.*) ;; # other 2.11 versions
23071       *) supports_anon_versioning=yes ;;
23072     esac
23073
23074     # See if GNU ld supports shared libraries.
23075     case $host_os in
23076     aix3* | aix4* | aix5*)
23077       # On AIX/PPC, the GNU linker is very broken
23078       if test "$host_cpu" != ia64; then
23079         ld_shlibs_GCJ=no
23080         cat <<EOF 1>&2
23081
23082 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23083 *** to be unable to reliably create shared libraries on AIX.
23084 *** Therefore, libtool is disabling shared libraries support.  If you
23085 *** really care for shared libraries, you may want to modify your PATH
23086 *** so that a non-GNU linker is found, and then restart.
23087
23088 EOF
23089       fi
23090       ;;
23091
23092     amigaos*)
23093       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)'
23094       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23095       hardcode_minus_L_GCJ=yes
23096
23097       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23098       # that the semantics of dynamic libraries on AmigaOS, at least up
23099       # to version 4, is to share data among multiple programs linked
23100       # with the same dynamic library.  Since this doesn't match the
23101       # behavior of shared libraries on other platforms, we can't use
23102       # them.
23103       ld_shlibs_GCJ=no
23104       ;;
23105
23106     beos*)
23107       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23108         allow_undefined_flag_GCJ=unsupported
23109         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23110         # support --undefined.  This deserves some investigation.  FIXME
23111         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23112       else
23113         ld_shlibs_GCJ=no
23114       fi
23115       ;;
23116
23117     cygwin* | mingw* | pw32*)
23118       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23119       # as there is no search path for DLLs.
23120       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23121       allow_undefined_flag_GCJ=unsupported
23122       always_export_symbols_GCJ=no
23123       enable_shared_with_static_runtimes_GCJ=yes
23124       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23125
23126       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23127         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23128         # If the export-symbols file already is a .def file (1st line
23129         # is EXPORTS), use it as is; otherwise, prepend...
23130         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23131           cp $export_symbols $output_objdir/$soname.def;
23132         else
23133           echo EXPORTS > $output_objdir/$soname.def;
23134           cat $export_symbols >> $output_objdir/$soname.def;
23135         fi~
23136         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23137       else
23138         ld_shlibs_GCJ=no
23139       fi
23140       ;;
23141
23142     interix3*)
23143       hardcode_direct_GCJ=no
23144       hardcode_shlibpath_var_GCJ=no
23145       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23146       export_dynamic_flag_spec_GCJ='${wl}-E'
23147       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23148       # Instead, shared libraries are loaded at an image base (0x10000000 by
23149       # default) and relocated if they conflict, which is a slow very memory
23150       # consuming and fragmenting process.  To avoid this, we pick a random,
23151       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23152       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
23153       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'
23154       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'
23155       ;;
23156
23157     linux*)
23158       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23159         tmp_addflag=
23160         case $cc_basename,$host_cpu in
23161         pgcc*)                          # Portland Group C compiler
23162           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'
23163           tmp_addflag=' $pic_flag'
23164           ;;
23165         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
23166           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'
23167           tmp_addflag=' $pic_flag -Mnomain' ;;
23168         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
23169           tmp_addflag=' -i_dynamic' ;;
23170         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
23171           tmp_addflag=' -i_dynamic -nofor_main' ;;
23172         ifc* | ifort*)                  # Intel Fortran compiler
23173           tmp_addflag=' -nofor_main' ;;
23174         esac
23175         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23176
23177         if test $supports_anon_versioning = yes; then
23178           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23179   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23180   $echo "local: *; };" >> $output_objdir/$libname.ver~
23181           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23182         fi
23183       else
23184         ld_shlibs_GCJ=no
23185       fi
23186       ;;
23187
23188     netbsd*)
23189       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23190         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23191         wlarc=
23192       else
23193         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23194         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23195       fi
23196       ;;
23197
23198     solaris*)
23199       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23200         ld_shlibs_GCJ=no
23201         cat <<EOF 1>&2
23202
23203 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23204 *** create shared libraries on Solaris systems.  Therefore, libtool
23205 *** is disabling shared libraries support.  We urge you to upgrade GNU
23206 *** binutils to release 2.9.1 or newer.  Another option is to modify
23207 *** your PATH or compiler configuration so that the native linker is
23208 *** used, and then restart.
23209
23210 EOF
23211       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23212         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23213         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23214       else
23215         ld_shlibs_GCJ=no
23216       fi
23217       ;;
23218
23219     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23220       case `$LD -v 2>&1` in
23221         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23222         ld_shlibs_GCJ=no
23223         cat <<_LT_EOF 1>&2
23224
23225 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23226 *** reliably create shared libraries on SCO systems.  Therefore, libtool
23227 *** is disabling shared libraries support.  We urge you to upgrade GNU
23228 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
23229 *** your PATH or compiler configuration so that the native linker is
23230 *** used, and then restart.
23231
23232 _LT_EOF
23233         ;;
23234         *)
23235           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23236             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23237             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23238             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23239           else
23240             ld_shlibs_GCJ=no
23241           fi
23242         ;;
23243       esac
23244       ;;
23245
23246     sunos4*)
23247       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23248       wlarc=
23249       hardcode_direct_GCJ=yes
23250       hardcode_shlibpath_var_GCJ=no
23251       ;;
23252
23253     *)
23254       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23255         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23256         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23257       else
23258         ld_shlibs_GCJ=no
23259       fi
23260       ;;
23261     esac
23262
23263     if test "$ld_shlibs_GCJ" = no; then
23264       runpath_var=
23265       hardcode_libdir_flag_spec_GCJ=
23266       export_dynamic_flag_spec_GCJ=
23267       whole_archive_flag_spec_GCJ=
23268     fi
23269   else
23270     # PORTME fill in a description of your system's linker (not GNU ld)
23271     case $host_os in
23272     aix3*)
23273       allow_undefined_flag_GCJ=unsupported
23274       always_export_symbols_GCJ=yes
23275       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'
23276       # Note: this linker hardcodes the directories in LIBPATH if there
23277       # are no directories specified by -L.
23278       hardcode_minus_L_GCJ=yes
23279       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23280         # Neither direct hardcoding nor static linking is supported with a
23281         # broken collect2.
23282         hardcode_direct_GCJ=unsupported
23283       fi
23284       ;;
23285
23286     aix4* | aix5*)
23287       if test "$host_cpu" = ia64; then
23288         # On IA64, the linker does run time linking by default, so we don't
23289         # have to do anything special.
23290         aix_use_runtimelinking=no
23291         exp_sym_flag='-Bexport'
23292         no_entry_flag=""
23293       else
23294         # If we're using GNU nm, then we don't want the "-C" option.
23295         # -C means demangle to AIX nm, but means don't demangle with GNU nm
23296         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23297           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'
23298         else
23299           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'
23300         fi
23301         aix_use_runtimelinking=no
23302
23303         # Test if we are trying to use run time linking or normal
23304         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23305         # need to do runtime linking.
23306         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23307           for ld_flag in $LDFLAGS; do
23308           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23309             aix_use_runtimelinking=yes
23310             break
23311           fi
23312           done
23313           ;;
23314         esac
23315
23316         exp_sym_flag='-bexport'
23317         no_entry_flag='-bnoentry'
23318       fi
23319
23320       # When large executables or shared objects are built, AIX ld can
23321       # have problems creating the table of contents.  If linking a library
23322       # or program results in "error TOC overflow" add -mminimal-toc to
23323       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
23324       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23325
23326       archive_cmds_GCJ=''
23327       hardcode_direct_GCJ=yes
23328       hardcode_libdir_separator_GCJ=':'
23329       link_all_deplibs_GCJ=yes
23330
23331       if test "$GCC" = yes; then
23332         case $host_os in aix4.[012]|aix4.[012].*)
23333         # We only want to do this on AIX 4.2 and lower, the check
23334         # below for broken collect2 doesn't work under 4.3+
23335           collect2name=`${CC} -print-prog-name=collect2`
23336           if test -f "$collect2name" && \
23337            strings "$collect2name" | grep resolve_lib_name >/dev/null
23338           then
23339           # We have reworked collect2
23340           hardcode_direct_GCJ=yes
23341           else
23342           # We have old collect2
23343           hardcode_direct_GCJ=unsupported
23344           # It fails to find uninstalled libraries when the uninstalled
23345           # path is not listed in the libpath.  Setting hardcode_minus_L
23346           # to unsupported forces relinking
23347           hardcode_minus_L_GCJ=yes
23348           hardcode_libdir_flag_spec_GCJ='-L$libdir'
23349           hardcode_libdir_separator_GCJ=
23350           fi
23351           ;;
23352         esac
23353         shared_flag='-shared'
23354         if test "$aix_use_runtimelinking" = yes; then
23355           shared_flag="$shared_flag "'${wl}-G'
23356         fi
23357       else
23358         # not using gcc
23359         if test "$host_cpu" = ia64; then
23360         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23361         # chokes on -Wl,-G. The following line is correct:
23362           shared_flag='-G'
23363         else
23364           if test "$aix_use_runtimelinking" = yes; then
23365             shared_flag='${wl}-G'
23366           else
23367             shared_flag='${wl}-bM:SRE'
23368           fi
23369         fi
23370       fi
23371
23372       # It seems that -bexpall does not export symbols beginning with
23373       # underscore (_), so it is better to generate a list of symbols to export.
23374       always_export_symbols_GCJ=yes
23375       if test "$aix_use_runtimelinking" = yes; then
23376         # Warning - without using the other runtime loading flags (-brtl),
23377         # -berok will link without error, but may produce a broken library.
23378         allow_undefined_flag_GCJ='-berok'
23379        # Determine the default libpath from the value encoded in an empty executable.
23380        cat >conftest.$ac_ext <<_ACEOF
23381 /* confdefs.h.  */
23382 _ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h.  */
23386
23387 int
23388 main ()
23389 {
23390
23391   ;
23392   return 0;
23393 }
23394 _ACEOF
23395 rm -f conftest.$ac_objext conftest$ac_exeext
23396 if { (ac_try="$ac_link"
23397 case "(($ac_try" in
23398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23399   *) ac_try_echo=$ac_try;;
23400 esac
23401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23402   (eval "$ac_link") 2>conftest.er1
23403   ac_status=$?
23404   grep -v '^ *+' conftest.er1 >conftest.err
23405   rm -f conftest.er1
23406   cat conftest.err >&5
23407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408   (exit $ac_status); } && {
23409          test -z "$ac_c_werror_flag" ||
23410          test ! -s conftest.err
23411        } && test -s conftest$ac_exeext &&
23412        $as_test_x conftest$ac_exeext; then
23413
23414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23415 }'`
23416 # Check for a 64-bit object if we didn't find anything.
23417 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; }
23418 }'`; fi
23419 else
23420   echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23422
23423
23424 fi
23425
23426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23427       conftest$ac_exeext conftest.$ac_ext
23428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23429
23430        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23431         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"
23432        else
23433         if test "$host_cpu" = ia64; then
23434           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23435           allow_undefined_flag_GCJ="-z nodefs"
23436           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"
23437         else
23438          # Determine the default libpath from the value encoded in an empty executable.
23439          cat >conftest.$ac_ext <<_ACEOF
23440 /* confdefs.h.  */
23441 _ACEOF
23442 cat confdefs.h >>conftest.$ac_ext
23443 cat >>conftest.$ac_ext <<_ACEOF
23444 /* end confdefs.h.  */
23445
23446 int
23447 main ()
23448 {
23449
23450   ;
23451   return 0;
23452 }
23453 _ACEOF
23454 rm -f conftest.$ac_objext conftest$ac_exeext
23455 if { (ac_try="$ac_link"
23456 case "(($ac_try" in
23457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458   *) ac_try_echo=$ac_try;;
23459 esac
23460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23461   (eval "$ac_link") 2>conftest.er1
23462   ac_status=$?
23463   grep -v '^ *+' conftest.er1 >conftest.err
23464   rm -f conftest.er1
23465   cat conftest.err >&5
23466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467   (exit $ac_status); } && {
23468          test -z "$ac_c_werror_flag" ||
23469          test ! -s conftest.err
23470        } && test -s conftest$ac_exeext &&
23471        $as_test_x conftest$ac_exeext; then
23472
23473 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23474 }'`
23475 # Check for a 64-bit object if we didn't find anything.
23476 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; }
23477 }'`; fi
23478 else
23479   echo "$as_me: failed program was:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23481
23482
23483 fi
23484
23485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23486       conftest$ac_exeext conftest.$ac_ext
23487 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23488
23489          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23490           # Warning - without using the other run time loading flags,
23491           # -berok will link without error, but may produce a broken library.
23492           no_undefined_flag_GCJ=' ${wl}-bernotok'
23493           allow_undefined_flag_GCJ=' ${wl}-berok'
23494           # Exported symbols can be pulled into shared objects from archives
23495           whole_archive_flag_spec_GCJ='$convenience'
23496           archive_cmds_need_lc_GCJ=yes
23497           # This is similar to how AIX traditionally builds its shared libraries.
23498           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'
23499         fi
23500       fi
23501       ;;
23502
23503     amigaos*)
23504       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)'
23505       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23506       hardcode_minus_L_GCJ=yes
23507       # see comment about different semantics on the GNU ld section
23508       ld_shlibs_GCJ=no
23509       ;;
23510
23511     bsdi[45]*)
23512       export_dynamic_flag_spec_GCJ=-rdynamic
23513       ;;
23514
23515     cygwin* | mingw* | pw32*)
23516       # When not using gcc, we currently assume that we are using
23517       # Microsoft Visual C++.
23518       # hardcode_libdir_flag_spec is actually meaningless, as there is
23519       # no search path for DLLs.
23520       hardcode_libdir_flag_spec_GCJ=' '
23521       allow_undefined_flag_GCJ=unsupported
23522       # Tell ltmain to make .lib files, not .a files.
23523       libext=lib
23524       # Tell ltmain to make .dll files, not .so files.
23525       shrext_cmds=".dll"
23526       # FIXME: Setting linknames here is a bad hack.
23527       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23528       # The linker will automatically build a .lib file if we build a DLL.
23529       old_archive_From_new_cmds_GCJ='true'
23530       # FIXME: Should let the user specify the lib program.
23531       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23532       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23533       enable_shared_with_static_runtimes_GCJ=yes
23534       ;;
23535
23536     darwin* | rhapsody*)
23537       case $host_os in
23538         rhapsody* | darwin1.[012])
23539          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23540          ;;
23541        *) # Darwin 1.3 on
23542          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23543            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23544          else
23545            case ${MACOSX_DEPLOYMENT_TARGET} in
23546              10.[012])
23547                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23548                ;;
23549              10.*)
23550                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23551                ;;
23552            esac
23553          fi
23554          ;;
23555       esac
23556       archive_cmds_need_lc_GCJ=no
23557       hardcode_direct_GCJ=no
23558       hardcode_automatic_GCJ=yes
23559       hardcode_shlibpath_var_GCJ=unsupported
23560       whole_archive_flag_spec_GCJ=''
23561       link_all_deplibs_GCJ=yes
23562     if test "$GCC" = yes ; then
23563         output_verbose_link_cmd='echo'
23564         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23565       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23566       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23567       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}'
23568       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}'
23569     else
23570       case $cc_basename in
23571         xlc*)
23572          output_verbose_link_cmd='echo'
23573          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23574          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23575           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23576          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}'
23577           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}'
23578           ;;
23579        *)
23580          ld_shlibs_GCJ=no
23581           ;;
23582       esac
23583     fi
23584       ;;
23585
23586     dgux*)
23587       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23588       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23589       hardcode_shlibpath_var_GCJ=no
23590       ;;
23591
23592     freebsd1*)
23593       ld_shlibs_GCJ=no
23594       ;;
23595
23596     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23597     # support.  Future versions do this automatically, but an explicit c++rt0.o
23598     # does not break anything, and helps significantly (at the cost of a little
23599     # extra space).
23600     freebsd2.2*)
23601       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23602       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23603       hardcode_direct_GCJ=yes
23604       hardcode_shlibpath_var_GCJ=no
23605       ;;
23606
23607     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23608     freebsd2*)
23609       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23610       hardcode_direct_GCJ=yes
23611       hardcode_minus_L_GCJ=yes
23612       hardcode_shlibpath_var_GCJ=no
23613       ;;
23614
23615     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23616     freebsd* | kfreebsd*-gnu | dragonfly*)
23617       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23618       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23619       hardcode_direct_GCJ=yes
23620       hardcode_shlibpath_var_GCJ=no
23621       ;;
23622
23623     hpux9*)
23624       if test "$GCC" = yes; then
23625         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'
23626       else
23627         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'
23628       fi
23629       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23630       hardcode_libdir_separator_GCJ=:
23631       hardcode_direct_GCJ=yes
23632
23633       # hardcode_minus_L: Not really in the search PATH,
23634       # but as the default location of the library.
23635       hardcode_minus_L_GCJ=yes
23636       export_dynamic_flag_spec_GCJ='${wl}-E'
23637       ;;
23638
23639     hpux10*)
23640       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23641         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23642       else
23643         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23644       fi
23645       if test "$with_gnu_ld" = no; then
23646         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23647         hardcode_libdir_separator_GCJ=:
23648
23649         hardcode_direct_GCJ=yes
23650         export_dynamic_flag_spec_GCJ='${wl}-E'
23651
23652         # hardcode_minus_L: Not really in the search PATH,
23653         # but as the default location of the library.
23654         hardcode_minus_L_GCJ=yes
23655       fi
23656       ;;
23657
23658     hpux11*)
23659       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23660         case $host_cpu in
23661         hppa*64*)
23662           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23663           ;;
23664         ia64*)
23665           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23666           ;;
23667         *)
23668           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23669           ;;
23670         esac
23671       else
23672         case $host_cpu in
23673         hppa*64*)
23674           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23675           ;;
23676         ia64*)
23677           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23678           ;;
23679         *)
23680           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23681           ;;
23682         esac
23683       fi
23684       if test "$with_gnu_ld" = no; then
23685         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23686         hardcode_libdir_separator_GCJ=:
23687
23688         case $host_cpu in
23689         hppa*64*|ia64*)
23690           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23691           hardcode_direct_GCJ=no
23692           hardcode_shlibpath_var_GCJ=no
23693           ;;
23694         *)
23695           hardcode_direct_GCJ=yes
23696           export_dynamic_flag_spec_GCJ='${wl}-E'
23697
23698           # hardcode_minus_L: Not really in the search PATH,
23699           # but as the default location of the library.
23700           hardcode_minus_L_GCJ=yes
23701           ;;
23702         esac
23703       fi
23704       ;;
23705
23706     irix5* | irix6* | nonstopux*)
23707       if test "$GCC" = yes; then
23708         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'
23709       else
23710         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'
23711         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23712       fi
23713       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23714       hardcode_libdir_separator_GCJ=:
23715       link_all_deplibs_GCJ=yes
23716       ;;
23717
23718     netbsd*)
23719       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23720         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
23721       else
23722         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
23723       fi
23724       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23725       hardcode_direct_GCJ=yes
23726       hardcode_shlibpath_var_GCJ=no
23727       ;;
23728
23729     newsos6)
23730       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23731       hardcode_direct_GCJ=yes
23732       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23733       hardcode_libdir_separator_GCJ=:
23734       hardcode_shlibpath_var_GCJ=no
23735       ;;
23736
23737     openbsd*)
23738       hardcode_direct_GCJ=yes
23739       hardcode_shlibpath_var_GCJ=no
23740       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23741         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23742         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23743         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23744         export_dynamic_flag_spec_GCJ='${wl}-E'
23745       else
23746        case $host_os in
23747          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23748            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23749            hardcode_libdir_flag_spec_GCJ='-R$libdir'
23750            ;;
23751          *)
23752            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23753            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23754            ;;
23755        esac
23756       fi
23757       ;;
23758
23759     os2*)
23760       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23761       hardcode_minus_L_GCJ=yes
23762       allow_undefined_flag_GCJ=unsupported
23763       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'
23764       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23765       ;;
23766
23767     osf3*)
23768       if test "$GCC" = yes; then
23769         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23770         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'
23771       else
23772         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23773         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'
23774       fi
23775       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23776       hardcode_libdir_separator_GCJ=:
23777       ;;
23778
23779     osf4* | osf5*)      # as osf3* with the addition of -msym flag
23780       if test "$GCC" = yes; then
23781         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23782         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'
23783         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23784       else
23785         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23786         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'
23787         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~
23788         $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'
23789
23790         # Both c and cxx compiler support -rpath directly
23791         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23792       fi
23793       hardcode_libdir_separator_GCJ=:
23794       ;;
23795
23796     solaris*)
23797       no_undefined_flag_GCJ=' -z text'
23798       if test "$GCC" = yes; then
23799         wlarc='${wl}'
23800         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23801         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23802           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23803       else
23804         wlarc=''
23805         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23806         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23807         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23808       fi
23809       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23810       hardcode_shlibpath_var_GCJ=no
23811       case $host_os in
23812       solaris2.[0-5] | solaris2.[0-5].*) ;;
23813       *)
23814         # The compiler driver will combine linker options so we
23815         # cannot just pass the convience library names through
23816         # without $wl, iff we do not link with $LD.
23817         # Luckily, gcc supports the same syntax we need for Sun Studio.
23818         # Supported since Solaris 2.6 (maybe 2.5.1?)
23819         case $wlarc in
23820         '')
23821           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23822         *)
23823           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' ;;
23824         esac ;;
23825       esac
23826       link_all_deplibs_GCJ=yes
23827       ;;
23828
23829     sunos4*)
23830       if test "x$host_vendor" = xsequent; then
23831         # Use $CC to link under sequent, because it throws in some extra .o
23832         # files that make .init and .fini sections work.
23833         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23834       else
23835         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23836       fi
23837       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23838       hardcode_direct_GCJ=yes
23839       hardcode_minus_L_GCJ=yes
23840       hardcode_shlibpath_var_GCJ=no
23841       ;;
23842
23843     sysv4)
23844       case $host_vendor in
23845         sni)
23846           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23847           hardcode_direct_GCJ=yes # is this really true???
23848         ;;
23849         siemens)
23850           ## LD is ld it makes a PLAMLIB
23851           ## CC just makes a GrossModule.
23852           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23853           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23854           hardcode_direct_GCJ=no
23855         ;;
23856         motorola)
23857           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23858           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23859         ;;
23860       esac
23861       runpath_var='LD_RUN_PATH'
23862       hardcode_shlibpath_var_GCJ=no
23863       ;;
23864
23865     sysv4.3*)
23866       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23867       hardcode_shlibpath_var_GCJ=no
23868       export_dynamic_flag_spec_GCJ='-Bexport'
23869       ;;
23870
23871     sysv4*MP*)
23872       if test -d /usr/nec; then
23873         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23874         hardcode_shlibpath_var_GCJ=no
23875         runpath_var=LD_RUN_PATH
23876         hardcode_runpath_var=yes
23877         ld_shlibs_GCJ=yes
23878       fi
23879       ;;
23880
23881     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23882       no_undefined_flag_GCJ='${wl}-z,text'
23883       archive_cmds_need_lc_GCJ=no
23884       hardcode_shlibpath_var_GCJ=no
23885       runpath_var='LD_RUN_PATH'
23886
23887       if test "$GCC" = yes; then
23888         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23889         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23890       else
23891         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23892         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23893       fi
23894       ;;
23895
23896     sysv5* | sco3.2v5* | sco5v6*)
23897       # Note: We can NOT use -z defs as we might desire, because we do not
23898       # link with -lc, and that would cause any symbols used from libc to
23899       # always be unresolved, which means just about no library would
23900       # ever link correctly.  If we're not using GNU ld we use -z text
23901       # though, which does catch some bad symbols but isn't as heavy-handed
23902       # as -z defs.
23903       no_undefined_flag_GCJ='${wl}-z,text'
23904       allow_undefined_flag_GCJ='${wl}-z,nodefs'
23905       archive_cmds_need_lc_GCJ=no
23906       hardcode_shlibpath_var_GCJ=no
23907       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23908       hardcode_libdir_separator_GCJ=':'
23909       link_all_deplibs_GCJ=yes
23910       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23911       runpath_var='LD_RUN_PATH'
23912
23913       if test "$GCC" = yes; then
23914         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23915         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23916       else
23917         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23918         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23919       fi
23920       ;;
23921
23922     uts4*)
23923       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23924       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23925       hardcode_shlibpath_var_GCJ=no
23926       ;;
23927
23928     *)
23929       ld_shlibs_GCJ=no
23930       ;;
23931     esac
23932   fi
23933
23934 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23935 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
23936 test "$ld_shlibs_GCJ" = no && can_build_shared=no
23937
23938 #
23939 # Do we need to explicitly link libc?
23940 #
23941 case "x$archive_cmds_need_lc_GCJ" in
23942 x|xyes)
23943   # Assume -lc should be added
23944   archive_cmds_need_lc_GCJ=yes
23945
23946   if test "$enable_shared" = yes && test "$GCC" = yes; then
23947     case $archive_cmds_GCJ in
23948     *'~'*)
23949       # FIXME: we may have to deal with multi-command sequences.
23950       ;;
23951     '$CC '*)
23952       # Test whether the compiler implicitly links with -lc since on some
23953       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23954       # to ld, don't add -lc before -lgcc.
23955       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23956 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23957       $rm conftest*
23958       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23959
23960       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23961   (eval $ac_compile) 2>&5
23962   ac_status=$?
23963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964   (exit $ac_status); } 2>conftest.err; then
23965         soname=conftest
23966         lib=conftest
23967         libobjs=conftest.$ac_objext
23968         deplibs=
23969         wl=$lt_prog_compiler_wl_GCJ
23970         pic_flag=$lt_prog_compiler_pic_GCJ
23971         compiler_flags=-v
23972         linker_flags=-v
23973         verstring=
23974         output_objdir=.
23975         libname=conftest
23976         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23977         allow_undefined_flag_GCJ=
23978         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23979   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23980   ac_status=$?
23981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982   (exit $ac_status); }
23983         then
23984           archive_cmds_need_lc_GCJ=no
23985         else
23986           archive_cmds_need_lc_GCJ=yes
23987         fi
23988         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23989       else
23990         cat conftest.err 1>&5
23991       fi
23992       $rm conftest*
23993       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23994 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
23995       ;;
23996     esac
23997   fi
23998   ;;
23999 esac
24000
24001 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24002 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24003 library_names_spec=
24004 libname_spec='lib$name'
24005 soname_spec=
24006 shrext_cmds=".so"
24007 postinstall_cmds=
24008 postuninstall_cmds=
24009 finish_cmds=
24010 finish_eval=
24011 shlibpath_var=
24012 shlibpath_overrides_runpath=unknown
24013 version_type=none
24014 dynamic_linker="$host_os ld.so"
24015 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24016 if test "$GCC" = yes; then
24017   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24018   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24019     # if the path contains ";" then we assume it to be the separator
24020     # otherwise default to the standard path separator (i.e. ":") - it is
24021     # assumed that no part of a normal pathname contains ";" but that should
24022     # okay in the real world where ";" in dirpaths is itself problematic.
24023     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24024   else
24025     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24026   fi
24027 else
24028   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24029 fi
24030 need_lib_prefix=unknown
24031 hardcode_into_libs=no
24032
24033 # when you set need_version to no, make sure it does not cause -set_version
24034 # flags to be left without arguments
24035 need_version=unknown
24036
24037 case $host_os in
24038 aix3*)
24039   version_type=linux
24040   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24041   shlibpath_var=LIBPATH
24042
24043   # AIX 3 has no versioning support, so we append a major version to the name.
24044   soname_spec='${libname}${release}${shared_ext}$major'
24045   ;;
24046
24047 aix4* | aix5*)
24048   version_type=linux
24049   need_lib_prefix=no
24050   need_version=no
24051   hardcode_into_libs=yes
24052   if test "$host_cpu" = ia64; then
24053     # AIX 5 supports IA64
24054     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24055     shlibpath_var=LD_LIBRARY_PATH
24056   else
24057     # With GCC up to 2.95.x, collect2 would create an import file
24058     # for dependence libraries.  The import file would start with
24059     # the line `#! .'.  This would cause the generated library to
24060     # depend on `.', always an invalid library.  This was fixed in
24061     # development snapshots of GCC prior to 3.0.
24062     case $host_os in
24063       aix4 | aix4.[01] | aix4.[01].*)
24064       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24065            echo ' yes '
24066            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24067         :
24068       else
24069         can_build_shared=no
24070       fi
24071       ;;
24072     esac
24073     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24074     # soname into executable. Probably we can add versioning support to
24075     # collect2, so additional links can be useful in future.
24076     if test "$aix_use_runtimelinking" = yes; then
24077       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24078       # instead of lib<name>.a to let people know that these are not
24079       # typical AIX shared libraries.
24080       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24081     else
24082       # We preserve .a as extension for shared libraries through AIX4.2
24083       # and later when we are not doing run time linking.
24084       library_names_spec='${libname}${release}.a $libname.a'
24085       soname_spec='${libname}${release}${shared_ext}$major'
24086     fi
24087     shlibpath_var=LIBPATH
24088   fi
24089   ;;
24090
24091 amigaos*)
24092   library_names_spec='$libname.ixlibrary $libname.a'
24093   # Create ${libname}_ixlibrary.a entries in /sys/libs.
24094   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'
24095   ;;
24096
24097 beos*)
24098   library_names_spec='${libname}${shared_ext}'
24099   dynamic_linker="$host_os ld.so"
24100   shlibpath_var=LIBRARY_PATH
24101   ;;
24102
24103 bsdi[45]*)
24104   version_type=linux
24105   need_version=no
24106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24107   soname_spec='${libname}${release}${shared_ext}$major'
24108   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24109   shlibpath_var=LD_LIBRARY_PATH
24110   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24111   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24112   # the default ld.so.conf also contains /usr/contrib/lib and
24113   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24114   # libtool to hard-code these into programs
24115   ;;
24116
24117 cygwin* | mingw* | pw32*)
24118   version_type=windows
24119   shrext_cmds=".dll"
24120   need_version=no
24121   need_lib_prefix=no
24122
24123   case $GCC,$host_os in
24124   yes,cygwin* | yes,mingw* | yes,pw32*)
24125     library_names_spec='$libname.dll.a'
24126     # DLL is installed to $(libdir)/../bin by postinstall_cmds
24127     postinstall_cmds='base_file=`basename \${file}`~
24128       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24129       dldir=$destdir/`dirname \$dlpath`~
24130       test -d \$dldir || mkdir -p \$dldir~
24131       $install_prog $dir/$dlname \$dldir/$dlname~
24132       chmod a+x \$dldir/$dlname'
24133     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24134       dlpath=$dir/\$dldll~
24135        $rm \$dlpath'
24136     shlibpath_overrides_runpath=yes
24137
24138     case $host_os in
24139     cygwin*)
24140       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24141       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24142       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24143       ;;
24144     mingw*)
24145       # MinGW DLLs use traditional 'lib' prefix
24146       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24147       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24148       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24149         # It is most probably a Windows format PATH printed by
24150         # mingw gcc, but we are running on Cygwin. Gcc prints its search
24151         # path with ; separators, and with drive letters. We can handle the
24152         # drive letters (cygwin fileutils understands them), so leave them,
24153         # especially as we might pass files found there to a mingw objdump,
24154         # which wouldn't understand a cygwinified path. Ahh.
24155         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24156       else
24157         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24158       fi
24159       ;;
24160     pw32*)
24161       # pw32 DLLs use 'pw' prefix rather than 'lib'
24162       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24163       ;;
24164     esac
24165     ;;
24166
24167   *)
24168     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24169     ;;
24170   esac
24171   dynamic_linker='Win32 ld.exe'
24172   # FIXME: first we should search . and the directory the executable is in
24173   shlibpath_var=PATH
24174   ;;
24175
24176 darwin* | rhapsody*)
24177   dynamic_linker="$host_os dyld"
24178   version_type=darwin
24179   need_lib_prefix=no
24180   need_version=no
24181   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24182   soname_spec='${libname}${release}${major}$shared_ext'
24183   shlibpath_overrides_runpath=yes
24184   shlibpath_var=DYLD_LIBRARY_PATH
24185   shrext_cmds='.dylib'
24186   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24187   if test "$GCC" = yes; then
24188     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"`
24189   else
24190     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24191   fi
24192   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24193   ;;
24194
24195 dgux*)
24196   version_type=linux
24197   need_lib_prefix=no
24198   need_version=no
24199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24200   soname_spec='${libname}${release}${shared_ext}$major'
24201   shlibpath_var=LD_LIBRARY_PATH
24202   ;;
24203
24204 freebsd1*)
24205   dynamic_linker=no
24206   ;;
24207
24208 kfreebsd*-gnu)
24209   version_type=linux
24210   need_lib_prefix=no
24211   need_version=no
24212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24213   soname_spec='${libname}${release}${shared_ext}$major'
24214   shlibpath_var=LD_LIBRARY_PATH
24215   shlibpath_overrides_runpath=no
24216   hardcode_into_libs=yes
24217   dynamic_linker='GNU ld.so'
24218   ;;
24219
24220 freebsd* | dragonfly*)
24221   # DragonFly does not have aout.  When/if they implement a new
24222   # versioning mechanism, adjust this.
24223   if test -x /usr/bin/objformat; then
24224     objformat=`/usr/bin/objformat`
24225   else
24226     case $host_os in
24227     freebsd[123]*) objformat=aout ;;
24228     *) objformat=elf ;;
24229     esac
24230   fi
24231   version_type=freebsd-$objformat
24232   case $version_type in
24233     freebsd-elf*)
24234       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24235       need_version=no
24236       need_lib_prefix=no
24237       ;;
24238     freebsd-*)
24239       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24240       need_version=yes
24241       ;;
24242   esac
24243   shlibpath_var=LD_LIBRARY_PATH
24244   case $host_os in
24245   freebsd2*)
24246     shlibpath_overrides_runpath=yes
24247     ;;
24248   freebsd3.[01]* | freebsdelf3.[01]*)
24249     shlibpath_overrides_runpath=yes
24250     hardcode_into_libs=yes
24251     ;;
24252   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24253   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24254     shlibpath_overrides_runpath=no
24255     hardcode_into_libs=yes
24256     ;;
24257   freebsd*) # from 4.6 on
24258     shlibpath_overrides_runpath=yes
24259     hardcode_into_libs=yes
24260     ;;
24261   esac
24262   ;;
24263
24264 gnu*)
24265   version_type=linux
24266   need_lib_prefix=no
24267   need_version=no
24268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24269   soname_spec='${libname}${release}${shared_ext}$major'
24270   shlibpath_var=LD_LIBRARY_PATH
24271   hardcode_into_libs=yes
24272   ;;
24273
24274 hpux9* | hpux10* | hpux11*)
24275   # Give a soname corresponding to the major version so that dld.sl refuses to
24276   # link against other versions.
24277   version_type=sunos
24278   need_lib_prefix=no
24279   need_version=no
24280   case $host_cpu in
24281   ia64*)
24282     shrext_cmds='.so'
24283     hardcode_into_libs=yes
24284     dynamic_linker="$host_os dld.so"
24285     shlibpath_var=LD_LIBRARY_PATH
24286     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24287     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24288     soname_spec='${libname}${release}${shared_ext}$major'
24289     if test "X$HPUX_IA64_MODE" = X32; then
24290       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24291     else
24292       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24293     fi
24294     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24295     ;;
24296    hppa*64*)
24297      shrext_cmds='.sl'
24298      hardcode_into_libs=yes
24299      dynamic_linker="$host_os dld.sl"
24300      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24301      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24302      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24303      soname_spec='${libname}${release}${shared_ext}$major'
24304      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24305      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24306      ;;
24307    *)
24308     shrext_cmds='.sl'
24309     dynamic_linker="$host_os dld.sl"
24310     shlibpath_var=SHLIB_PATH
24311     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24312     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24313     soname_spec='${libname}${release}${shared_ext}$major'
24314     ;;
24315   esac
24316   # HP-UX runs *really* slowly unless shared libraries are mode 555.
24317   postinstall_cmds='chmod 555 $lib'
24318   ;;
24319
24320 interix3*)
24321   version_type=linux
24322   need_lib_prefix=no
24323   need_version=no
24324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24325   soname_spec='${libname}${release}${shared_ext}$major'
24326   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24327   shlibpath_var=LD_LIBRARY_PATH
24328   shlibpath_overrides_runpath=no
24329   hardcode_into_libs=yes
24330   ;;
24331
24332 irix5* | irix6* | nonstopux*)
24333   case $host_os in
24334     nonstopux*) version_type=nonstopux ;;
24335     *)
24336         if test "$lt_cv_prog_gnu_ld" = yes; then
24337                 version_type=linux
24338         else
24339                 version_type=irix
24340         fi ;;
24341   esac
24342   need_lib_prefix=no
24343   need_version=no
24344   soname_spec='${libname}${release}${shared_ext}$major'
24345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24346   case $host_os in
24347   irix5* | nonstopux*)
24348     libsuff= shlibsuff=
24349     ;;
24350   *)
24351     case $LD in # libtool.m4 will add one of these switches to LD
24352     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24353       libsuff= shlibsuff= libmagic=32-bit;;
24354     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24355       libsuff=32 shlibsuff=N32 libmagic=N32;;
24356     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24357       libsuff=64 shlibsuff=64 libmagic=64-bit;;
24358     *) libsuff= shlibsuff= libmagic=never-match;;
24359     esac
24360     ;;
24361   esac
24362   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24363   shlibpath_overrides_runpath=no
24364   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24365   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24366   hardcode_into_libs=yes
24367   ;;
24368
24369 # No shared lib support for Linux oldld, aout, or coff.
24370 linux*oldld* | linux*aout* | linux*coff*)
24371   dynamic_linker=no
24372   ;;
24373
24374 # This must be Linux ELF.
24375 linux*)
24376   version_type=linux
24377   need_lib_prefix=no
24378   need_version=no
24379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24380   soname_spec='${libname}${release}${shared_ext}$major'
24381   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24382   shlibpath_var=LD_LIBRARY_PATH
24383   shlibpath_overrides_runpath=no
24384   # This implies no fast_install, which is unacceptable.
24385   # Some rework will be needed to allow for fast_install
24386   # before this can be enabled.
24387   hardcode_into_libs=yes
24388
24389   # Append ld.so.conf contents to the search path
24390   if test -f /etc/ld.so.conf; then
24391     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' ' '`
24392     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24393   fi
24394
24395   # We used to test for /lib/ld.so.1 and disable shared libraries on
24396   # powerpc, because MkLinux only supported shared libraries with the
24397   # GNU dynamic linker.  Since this was broken with cross compilers,
24398   # most powerpc-linux boxes support dynamic linking these days and
24399   # people can always --disable-shared, the test was removed, and we
24400   # assume the GNU/Linux dynamic linker is in use.
24401   dynamic_linker='GNU/Linux ld.so'
24402   ;;
24403
24404 knetbsd*-gnu)
24405   version_type=linux
24406   need_lib_prefix=no
24407   need_version=no
24408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24409   soname_spec='${libname}${release}${shared_ext}$major'
24410   shlibpath_var=LD_LIBRARY_PATH
24411   shlibpath_overrides_runpath=no
24412   hardcode_into_libs=yes
24413   dynamic_linker='GNU ld.so'
24414   ;;
24415
24416 netbsd*)
24417   version_type=sunos
24418   need_lib_prefix=no
24419   need_version=no
24420   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24421     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24422     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24423     dynamic_linker='NetBSD (a.out) ld.so'
24424   else
24425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24426     soname_spec='${libname}${release}${shared_ext}$major'
24427     dynamic_linker='NetBSD ld.elf_so'
24428   fi
24429   shlibpath_var=LD_LIBRARY_PATH
24430   shlibpath_overrides_runpath=yes
24431   hardcode_into_libs=yes
24432   ;;
24433
24434 newsos6)
24435   version_type=linux
24436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24437   shlibpath_var=LD_LIBRARY_PATH
24438   shlibpath_overrides_runpath=yes
24439   ;;
24440
24441 nto-qnx*)
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   shlibpath_overrides_runpath=yes
24449   ;;
24450
24451 openbsd*)
24452   version_type=sunos
24453   sys_lib_dlsearch_path_spec="/usr/lib"
24454   need_lib_prefix=no
24455   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24456   case $host_os in
24457     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24458     *)                         need_version=no  ;;
24459   esac
24460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24461   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24462   shlibpath_var=LD_LIBRARY_PATH
24463   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24464     case $host_os in
24465       openbsd2.[89] | openbsd2.[89].*)
24466         shlibpath_overrides_runpath=no
24467         ;;
24468       *)
24469         shlibpath_overrides_runpath=yes
24470         ;;
24471       esac
24472   else
24473     shlibpath_overrides_runpath=yes
24474   fi
24475   ;;
24476
24477 os2*)
24478   libname_spec='$name'
24479   shrext_cmds=".dll"
24480   need_lib_prefix=no
24481   library_names_spec='$libname${shared_ext} $libname.a'
24482   dynamic_linker='OS/2 ld.exe'
24483   shlibpath_var=LIBPATH
24484   ;;
24485
24486 osf3* | osf4* | osf5*)
24487   version_type=osf
24488   need_lib_prefix=no
24489   need_version=no
24490   soname_spec='${libname}${release}${shared_ext}$major'
24491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24492   shlibpath_var=LD_LIBRARY_PATH
24493   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24494   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24495   ;;
24496
24497 solaris*)
24498   version_type=linux
24499   need_lib_prefix=no
24500   need_version=no
24501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24502   soname_spec='${libname}${release}${shared_ext}$major'
24503   shlibpath_var=LD_LIBRARY_PATH
24504   shlibpath_overrides_runpath=yes
24505   hardcode_into_libs=yes
24506   # ldd complains unless libraries are executable
24507   postinstall_cmds='chmod +x $lib'
24508   ;;
24509
24510 sunos4*)
24511   version_type=sunos
24512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24513   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24514   shlibpath_var=LD_LIBRARY_PATH
24515   shlibpath_overrides_runpath=yes
24516   if test "$with_gnu_ld" = yes; then
24517     need_lib_prefix=no
24518   fi
24519   need_version=yes
24520   ;;
24521
24522 sysv4 | sysv4.3*)
24523   version_type=linux
24524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24525   soname_spec='${libname}${release}${shared_ext}$major'
24526   shlibpath_var=LD_LIBRARY_PATH
24527   case $host_vendor in
24528     sni)
24529       shlibpath_overrides_runpath=no
24530       need_lib_prefix=no
24531       export_dynamic_flag_spec='${wl}-Blargedynsym'
24532       runpath_var=LD_RUN_PATH
24533       ;;
24534     siemens)
24535       need_lib_prefix=no
24536       ;;
24537     motorola)
24538       need_lib_prefix=no
24539       need_version=no
24540       shlibpath_overrides_runpath=no
24541       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24542       ;;
24543   esac
24544   ;;
24545
24546 sysv4*MP*)
24547   if test -d /usr/nec ;then
24548     version_type=linux
24549     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24550     soname_spec='$libname${shared_ext}.$major'
24551     shlibpath_var=LD_LIBRARY_PATH
24552   fi
24553   ;;
24554
24555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24556   version_type=freebsd-elf
24557   need_lib_prefix=no
24558   need_version=no
24559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24560   soname_spec='${libname}${release}${shared_ext}$major'
24561   shlibpath_var=LD_LIBRARY_PATH
24562   hardcode_into_libs=yes
24563   if test "$with_gnu_ld" = yes; then
24564     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24565     shlibpath_overrides_runpath=no
24566   else
24567     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24568     shlibpath_overrides_runpath=yes
24569     case $host_os in
24570       sco3.2v5*)
24571         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24572         ;;
24573     esac
24574   fi
24575   sys_lib_dlsearch_path_spec='/usr/lib'
24576   ;;
24577
24578 uts4*)
24579   version_type=linux
24580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24581   soname_spec='${libname}${release}${shared_ext}$major'
24582   shlibpath_var=LD_LIBRARY_PATH
24583   ;;
24584
24585 *)
24586   dynamic_linker=no
24587   ;;
24588 esac
24589 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24590 echo "${ECHO_T}$dynamic_linker" >&6; }
24591 test "$dynamic_linker" = no && can_build_shared=no
24592
24593 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24594 if test "$GCC" = yes; then
24595   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24596 fi
24597
24598 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24599 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
24600 hardcode_action_GCJ=
24601 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24602    test -n "$runpath_var_GCJ" || \
24603    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24604
24605   # We can hardcode non-existant directories.
24606   if test "$hardcode_direct_GCJ" != no &&
24607      # If the only mechanism to avoid hardcoding is shlibpath_var, we
24608      # have to relink, otherwise we might link with an installed library
24609      # when we should be linking with a yet-to-be-installed one
24610      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24611      test "$hardcode_minus_L_GCJ" != no; then
24612     # Linking always hardcodes the temporary library directory.
24613     hardcode_action_GCJ=relink
24614   else
24615     # We can link without hardcoding, and we can hardcode nonexisting dirs.
24616     hardcode_action_GCJ=immediate
24617   fi
24618 else
24619   # We cannot hardcode anything, or else we can only hardcode existing
24620   # directories.
24621   hardcode_action_GCJ=unsupported
24622 fi
24623 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24624 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
24625
24626 if test "$hardcode_action_GCJ" = relink; then
24627   # Fast installation is not supported
24628   enable_fast_install=no
24629 elif test "$shlibpath_overrides_runpath" = yes ||
24630      test "$enable_shared" = no; then
24631   # Fast installation is not necessary
24632   enable_fast_install=needless
24633 fi
24634
24635
24636 # The else clause should only fire when bootstrapping the
24637 # libtool distribution, otherwise you forgot to ship ltmain.sh
24638 # with your package, and you will get complaints that there are
24639 # no rules to generate ltmain.sh.
24640 if test -f "$ltmain"; then
24641   # See if we are running on zsh, and set the options which allow our commands through
24642   # without removal of \ escapes.
24643   if test -n "${ZSH_VERSION+set}" ; then
24644     setopt NO_GLOB_SUBST
24645   fi
24646   # Now quote all the things that may contain metacharacters while being
24647   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24648   # variables and quote the copies for generation of the libtool script.
24649   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24650     SED SHELL STRIP \
24651     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24652     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24653     deplibs_check_method reload_flag reload_cmds need_locks \
24654     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24655     lt_cv_sys_global_symbol_to_c_name_address \
24656     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24657     old_postinstall_cmds old_postuninstall_cmds \
24658     compiler_GCJ \
24659     CC_GCJ \
24660     LD_GCJ \
24661     lt_prog_compiler_wl_GCJ \
24662     lt_prog_compiler_pic_GCJ \
24663     lt_prog_compiler_static_GCJ \
24664     lt_prog_compiler_no_builtin_flag_GCJ \
24665     export_dynamic_flag_spec_GCJ \
24666     thread_safe_flag_spec_GCJ \
24667     whole_archive_flag_spec_GCJ \
24668     enable_shared_with_static_runtimes_GCJ \
24669     old_archive_cmds_GCJ \
24670     old_archive_from_new_cmds_GCJ \
24671     predep_objects_GCJ \
24672     postdep_objects_GCJ \
24673     predeps_GCJ \
24674     postdeps_GCJ \
24675     compiler_lib_search_path_GCJ \
24676     archive_cmds_GCJ \
24677     archive_expsym_cmds_GCJ \
24678     postinstall_cmds_GCJ \
24679     postuninstall_cmds_GCJ \
24680     old_archive_from_expsyms_cmds_GCJ \
24681     allow_undefined_flag_GCJ \
24682     no_undefined_flag_GCJ \
24683     export_symbols_cmds_GCJ \
24684     hardcode_libdir_flag_spec_GCJ \
24685     hardcode_libdir_flag_spec_ld_GCJ \
24686     hardcode_libdir_separator_GCJ \
24687     hardcode_automatic_GCJ \
24688     module_cmds_GCJ \
24689     module_expsym_cmds_GCJ \
24690     lt_cv_prog_compiler_c_o_GCJ \
24691     exclude_expsyms_GCJ \
24692     include_expsyms_GCJ; do
24693
24694     case $var in
24695     old_archive_cmds_GCJ | \
24696     old_archive_from_new_cmds_GCJ | \
24697     archive_cmds_GCJ | \
24698     archive_expsym_cmds_GCJ | \
24699     module_cmds_GCJ | \
24700     module_expsym_cmds_GCJ | \
24701     old_archive_from_expsyms_cmds_GCJ | \
24702     export_symbols_cmds_GCJ | \
24703     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24704     postinstall_cmds | postuninstall_cmds | \
24705     old_postinstall_cmds | old_postuninstall_cmds | \
24706     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24707       # Double-quote double-evaled strings.
24708       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24709       ;;
24710     *)
24711       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24712       ;;
24713     esac
24714   done
24715
24716   case $lt_echo in
24717   *'\$0 --fallback-echo"')
24718     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24719     ;;
24720   esac
24721
24722 cfgfile="$ofile"
24723
24724   cat <<__EOF__ >> "$cfgfile"
24725 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24726
24727 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24728
24729 # Shell to use when invoking shell scripts.
24730 SHELL=$lt_SHELL
24731
24732 # Whether or not to build shared libraries.
24733 build_libtool_libs=$enable_shared
24734
24735 # Whether or not to build static libraries.
24736 build_old_libs=$enable_static
24737
24738 # Whether or not to add -lc for building shared libraries.
24739 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24740
24741 # Whether or not to disallow shared libs when runtime libs are static
24742 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24743
24744 # Whether or not to optimize for fast installation.
24745 fast_install=$enable_fast_install
24746
24747 # The host system.
24748 host_alias=$host_alias
24749 host=$host
24750 host_os=$host_os
24751
24752 # The build system.
24753 build_alias=$build_alias
24754 build=$build
24755 build_os=$build_os
24756
24757 # An echo program that does not interpret backslashes.
24758 echo=$lt_echo
24759
24760 # The archiver.
24761 AR=$lt_AR
24762 AR_FLAGS=$lt_AR_FLAGS
24763
24764 # A C compiler.
24765 LTCC=$lt_LTCC
24766
24767 # LTCC compiler flags.
24768 LTCFLAGS=$lt_LTCFLAGS
24769
24770 # A language-specific compiler.
24771 CC=$lt_compiler_GCJ
24772
24773 # Is the compiler the GNU C compiler?
24774 with_gcc=$GCC_GCJ
24775
24776 # An ERE matcher.
24777 EGREP=$lt_EGREP
24778
24779 # The linker used to build libraries.
24780 LD=$lt_LD_GCJ
24781
24782 # Whether we need hard or soft links.
24783 LN_S=$lt_LN_S
24784
24785 # A BSD-compatible nm program.
24786 NM=$lt_NM
24787
24788 # A symbol stripping program
24789 STRIP=$lt_STRIP
24790
24791 # Used to examine libraries when file_magic_cmd begins "file"
24792 MAGIC_CMD=$MAGIC_CMD
24793
24794 # Used on cygwin: DLL creation program.
24795 DLLTOOL="$DLLTOOL"
24796
24797 # Used on cygwin: object dumper.
24798 OBJDUMP="$OBJDUMP"
24799
24800 # Used on cygwin: assembler.
24801 AS="$AS"
24802
24803 # The name of the directory that contains temporary libtool files.
24804 objdir=$objdir
24805
24806 # How to create reloadable object files.
24807 reload_flag=$lt_reload_flag
24808 reload_cmds=$lt_reload_cmds
24809
24810 # How to pass a linker flag through the compiler.
24811 wl=$lt_lt_prog_compiler_wl_GCJ
24812
24813 # Object file suffix (normally "o").
24814 objext="$ac_objext"
24815
24816 # Old archive suffix (normally "a").
24817 libext="$libext"
24818
24819 # Shared library suffix (normally ".so").
24820 shrext_cmds='$shrext_cmds'
24821
24822 # Executable file suffix (normally "").
24823 exeext="$exeext"
24824
24825 # Additional compiler flags for building library objects.
24826 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24827 pic_mode=$pic_mode
24828
24829 # What is the maximum length of a command?
24830 max_cmd_len=$lt_cv_sys_max_cmd_len
24831
24832 # Does compiler simultaneously support -c and -o options?
24833 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24834
24835 # Must we lock files when doing compilation?
24836 need_locks=$lt_need_locks
24837
24838 # Do we need the lib prefix for modules?
24839 need_lib_prefix=$need_lib_prefix
24840
24841 # Do we need a version for libraries?
24842 need_version=$need_version
24843
24844 # Whether dlopen is supported.
24845 dlopen_support=$enable_dlopen
24846
24847 # Whether dlopen of programs is supported.
24848 dlopen_self=$enable_dlopen_self
24849
24850 # Whether dlopen of statically linked programs is supported.
24851 dlopen_self_static=$enable_dlopen_self_static
24852
24853 # Compiler flag to prevent dynamic linking.
24854 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24855
24856 # Compiler flag to turn off builtin functions.
24857 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24858
24859 # Compiler flag to allow reflexive dlopens.
24860 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24861
24862 # Compiler flag to generate shared objects directly from archives.
24863 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24864
24865 # Compiler flag to generate thread-safe objects.
24866 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24867
24868 # Library versioning type.
24869 version_type=$version_type
24870
24871 # Format of library name prefix.
24872 libname_spec=$lt_libname_spec
24873
24874 # List of archive names.  First name is the real one, the rest are links.
24875 # The last name is the one that the linker finds with -lNAME.
24876 library_names_spec=$lt_library_names_spec
24877
24878 # The coded name of the library, if different from the real name.
24879 soname_spec=$lt_soname_spec
24880
24881 # Commands used to build and install an old-style archive.
24882 RANLIB=$lt_RANLIB
24883 old_archive_cmds=$lt_old_archive_cmds_GCJ
24884 old_postinstall_cmds=$lt_old_postinstall_cmds
24885 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24886
24887 # Create an old-style archive from a shared archive.
24888 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24889
24890 # Create a temporary old-style archive to link instead of a shared archive.
24891 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24892
24893 # Commands used to build and install a shared archive.
24894 archive_cmds=$lt_archive_cmds_GCJ
24895 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24896 postinstall_cmds=$lt_postinstall_cmds
24897 postuninstall_cmds=$lt_postuninstall_cmds
24898
24899 # Commands used to build a loadable module (assumed same as above if empty)
24900 module_cmds=$lt_module_cmds_GCJ
24901 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24902
24903 # Commands to strip libraries.
24904 old_striplib=$lt_old_striplib
24905 striplib=$lt_striplib
24906
24907 # Dependencies to place before the objects being linked to create a
24908 # shared library.
24909 predep_objects=$lt_predep_objects_GCJ
24910
24911 # Dependencies to place after the objects being linked to create a
24912 # shared library.
24913 postdep_objects=$lt_postdep_objects_GCJ
24914
24915 # Dependencies to place before the objects being linked to create a
24916 # shared library.
24917 predeps=$lt_predeps_GCJ
24918
24919 # Dependencies to place after the objects being linked to create a
24920 # shared library.
24921 postdeps=$lt_postdeps_GCJ
24922
24923 # The library search path used internally by the compiler when linking
24924 # a shared library.
24925 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24926
24927 # Method to check whether dependent libraries are shared objects.
24928 deplibs_check_method=$lt_deplibs_check_method
24929
24930 # Command to use when deplibs_check_method == file_magic.
24931 file_magic_cmd=$lt_file_magic_cmd
24932
24933 # Flag that allows shared libraries with undefined symbols to be built.
24934 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24935
24936 # Flag that forces no undefined symbols.
24937 no_undefined_flag=$lt_no_undefined_flag_GCJ
24938
24939 # Commands used to finish a libtool library installation in a directory.
24940 finish_cmds=$lt_finish_cmds
24941
24942 # Same as above, but a single script fragment to be evaled but not shown.
24943 finish_eval=$lt_finish_eval
24944
24945 # Take the output of nm and produce a listing of raw symbols and C names.
24946 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24947
24948 # Transform the output of nm in a proper C declaration
24949 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24950
24951 # Transform the output of nm in a C name address pair
24952 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24953
24954 # This is the shared library runtime path variable.
24955 runpath_var=$runpath_var
24956
24957 # This is the shared library path variable.
24958 shlibpath_var=$shlibpath_var
24959
24960 # Is shlibpath searched before the hard-coded library search path?
24961 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24962
24963 # How to hardcode a shared library path into an executable.
24964 hardcode_action=$hardcode_action_GCJ
24965
24966 # Whether we should hardcode library paths into libraries.
24967 hardcode_into_libs=$hardcode_into_libs
24968
24969 # Flag to hardcode \$libdir into a binary during linking.
24970 # This must work even if \$libdir does not exist.
24971 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24972
24973 # If ld is used when linking, flag to hardcode \$libdir into
24974 # a binary during linking. This must work even if \$libdir does
24975 # not exist.
24976 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24977
24978 # Whether we need a single -rpath flag with a separated argument.
24979 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24980
24981 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24982 # resulting binary.
24983 hardcode_direct=$hardcode_direct_GCJ
24984
24985 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24986 # resulting binary.
24987 hardcode_minus_L=$hardcode_minus_L_GCJ
24988
24989 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24990 # the resulting binary.
24991 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24992
24993 # Set to yes if building a shared library automatically hardcodes DIR into the library
24994 # and all subsequent libraries and executables linked against it.
24995 hardcode_automatic=$hardcode_automatic_GCJ
24996
24997 # Variables whose values should be saved in libtool wrapper scripts and
24998 # restored at relink time.
24999 variables_saved_for_relink="$variables_saved_for_relink"
25000
25001 # Whether libtool must link a program against all its dependency libraries.
25002 link_all_deplibs=$link_all_deplibs_GCJ
25003
25004 # Compile-time system search path for libraries
25005 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25006
25007 # Run-time system search path for libraries
25008 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25009
25010 # Fix the shell variable \$srcfile for the compiler.
25011 fix_srcfile_path="$fix_srcfile_path_GCJ"
25012
25013 # Set to yes if exported symbols are required.
25014 always_export_symbols=$always_export_symbols_GCJ
25015
25016 # The commands to list exported symbols.
25017 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25018
25019 # The commands to extract the exported symbol list from a shared archive.
25020 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25021
25022 # Symbols that should not be listed in the preloaded symbols.
25023 exclude_expsyms=$lt_exclude_expsyms_GCJ
25024
25025 # Symbols that must always be exported.
25026 include_expsyms=$lt_include_expsyms_GCJ
25027
25028 # ### END LIBTOOL TAG CONFIG: $tagname
25029
25030 __EOF__
25031
25032
25033 else
25034   # If there is no Makefile yet, we rely on a make rule to execute
25035   # `config.status --recheck' to rerun these tests and create the
25036   # libtool script then.
25037   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25038   if test -f "$ltmain_in"; then
25039     test -f Makefile && make "$ltmain"
25040   fi
25041 fi
25042
25043
25044 ac_ext=c
25045 ac_cpp='$CPP $CPPFLAGS'
25046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25049
25050 CC="$lt_save_CC"
25051
25052         else
25053           tagname=""
25054         fi
25055         ;;
25056
25057       RC)
25058         ac_ext=c
25059 ac_cpp='$CPP $CPPFLAGS'
25060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25063
25064
25065 # Source file extension for RC test sources.
25066 ac_ext=rc
25067
25068 # Object file extension for compiled RC test sources.
25069 objext=o
25070 objext_RC=$objext
25071
25072 # Code to be used in simple compile tests
25073 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25074
25075 # Code to be used in simple link tests
25076 lt_simple_link_test_code="$lt_simple_compile_test_code"
25077
25078 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25079
25080 # If no C compiler was specified, use CC.
25081 LTCC=${LTCC-"$CC"}
25082
25083 # If no C compiler flags were specified, use CFLAGS.
25084 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25085
25086 # Allow CC to be a program name with arguments.
25087 compiler=$CC
25088
25089
25090 # save warnings/boilerplate of simple test code
25091 ac_outfile=conftest.$ac_objext
25092 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25093 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25094 _lt_compiler_boilerplate=`cat conftest.err`
25095 $rm conftest*
25096
25097 ac_outfile=conftest.$ac_objext
25098 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25099 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25100 _lt_linker_boilerplate=`cat conftest.err`
25101 $rm conftest*
25102
25103
25104 # Allow CC to be a program name with arguments.
25105 lt_save_CC="$CC"
25106 CC=${RC-"windres"}
25107 compiler=$CC
25108 compiler_RC=$CC
25109 for cc_temp in $compiler""; do
25110   case $cc_temp in
25111     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25112     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25113     \-*) ;;
25114     *) break;;
25115   esac
25116 done
25117 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25118
25119 lt_cv_prog_compiler_c_o_RC=yes
25120
25121 # The else clause should only fire when bootstrapping the
25122 # libtool distribution, otherwise you forgot to ship ltmain.sh
25123 # with your package, and you will get complaints that there are
25124 # no rules to generate ltmain.sh.
25125 if test -f "$ltmain"; then
25126   # See if we are running on zsh, and set the options which allow our commands through
25127   # without removal of \ escapes.
25128   if test -n "${ZSH_VERSION+set}" ; then
25129     setopt NO_GLOB_SUBST
25130   fi
25131   # Now quote all the things that may contain metacharacters while being
25132   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25133   # variables and quote the copies for generation of the libtool script.
25134   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25135     SED SHELL STRIP \
25136     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25137     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25138     deplibs_check_method reload_flag reload_cmds need_locks \
25139     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25140     lt_cv_sys_global_symbol_to_c_name_address \
25141     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25142     old_postinstall_cmds old_postuninstall_cmds \
25143     compiler_RC \
25144     CC_RC \
25145     LD_RC \
25146     lt_prog_compiler_wl_RC \
25147     lt_prog_compiler_pic_RC \
25148     lt_prog_compiler_static_RC \
25149     lt_prog_compiler_no_builtin_flag_RC \
25150     export_dynamic_flag_spec_RC \
25151     thread_safe_flag_spec_RC \
25152     whole_archive_flag_spec_RC \
25153     enable_shared_with_static_runtimes_RC \
25154     old_archive_cmds_RC \
25155     old_archive_from_new_cmds_RC \
25156     predep_objects_RC \
25157     postdep_objects_RC \
25158     predeps_RC \
25159     postdeps_RC \
25160     compiler_lib_search_path_RC \
25161     archive_cmds_RC \
25162     archive_expsym_cmds_RC \
25163     postinstall_cmds_RC \
25164     postuninstall_cmds_RC \
25165     old_archive_from_expsyms_cmds_RC \
25166     allow_undefined_flag_RC \
25167     no_undefined_flag_RC \
25168     export_symbols_cmds_RC \
25169     hardcode_libdir_flag_spec_RC \
25170     hardcode_libdir_flag_spec_ld_RC \
25171     hardcode_libdir_separator_RC \
25172     hardcode_automatic_RC \
25173     module_cmds_RC \
25174     module_expsym_cmds_RC \
25175     lt_cv_prog_compiler_c_o_RC \
25176     exclude_expsyms_RC \
25177     include_expsyms_RC; do
25178
25179     case $var in
25180     old_archive_cmds_RC | \
25181     old_archive_from_new_cmds_RC | \
25182     archive_cmds_RC | \
25183     archive_expsym_cmds_RC | \
25184     module_cmds_RC | \
25185     module_expsym_cmds_RC | \
25186     old_archive_from_expsyms_cmds_RC | \
25187     export_symbols_cmds_RC | \
25188     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25189     postinstall_cmds | postuninstall_cmds | \
25190     old_postinstall_cmds | old_postuninstall_cmds | \
25191     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25192       # Double-quote double-evaled strings.
25193       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25194       ;;
25195     *)
25196       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25197       ;;
25198     esac
25199   done
25200
25201   case $lt_echo in
25202   *'\$0 --fallback-echo"')
25203     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25204     ;;
25205   esac
25206
25207 cfgfile="$ofile"
25208
25209   cat <<__EOF__ >> "$cfgfile"
25210 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25211
25212 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25213
25214 # Shell to use when invoking shell scripts.
25215 SHELL=$lt_SHELL
25216
25217 # Whether or not to build shared libraries.
25218 build_libtool_libs=$enable_shared
25219
25220 # Whether or not to build static libraries.
25221 build_old_libs=$enable_static
25222
25223 # Whether or not to add -lc for building shared libraries.
25224 build_libtool_need_lc=$archive_cmds_need_lc_RC
25225
25226 # Whether or not to disallow shared libs when runtime libs are static
25227 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25228
25229 # Whether or not to optimize for fast installation.
25230 fast_install=$enable_fast_install
25231
25232 # The host system.
25233 host_alias=$host_alias
25234 host=$host
25235 host_os=$host_os
25236
25237 # The build system.
25238 build_alias=$build_alias
25239 build=$build
25240 build_os=$build_os
25241
25242 # An echo program that does not interpret backslashes.
25243 echo=$lt_echo
25244
25245 # The archiver.
25246 AR=$lt_AR
25247 AR_FLAGS=$lt_AR_FLAGS
25248
25249 # A C compiler.
25250 LTCC=$lt_LTCC
25251
25252 # LTCC compiler flags.
25253 LTCFLAGS=$lt_LTCFLAGS
25254
25255 # A language-specific compiler.
25256 CC=$lt_compiler_RC
25257
25258 # Is the compiler the GNU C compiler?
25259 with_gcc=$GCC_RC
25260
25261 # An ERE matcher.
25262 EGREP=$lt_EGREP
25263
25264 # The linker used to build libraries.
25265 LD=$lt_LD_RC
25266
25267 # Whether we need hard or soft links.
25268 LN_S=$lt_LN_S
25269
25270 # A BSD-compatible nm program.
25271 NM=$lt_NM
25272
25273 # A symbol stripping program
25274 STRIP=$lt_STRIP
25275
25276 # Used to examine libraries when file_magic_cmd begins "file"
25277 MAGIC_CMD=$MAGIC_CMD
25278
25279 # Used on cygwin: DLL creation program.
25280 DLLTOOL="$DLLTOOL"
25281
25282 # Used on cygwin: object dumper.
25283 OBJDUMP="$OBJDUMP"
25284
25285 # Used on cygwin: assembler.
25286 AS="$AS"
25287
25288 # The name of the directory that contains temporary libtool files.
25289 objdir=$objdir
25290
25291 # How to create reloadable object files.
25292 reload_flag=$lt_reload_flag
25293 reload_cmds=$lt_reload_cmds
25294
25295 # How to pass a linker flag through the compiler.
25296 wl=$lt_lt_prog_compiler_wl_RC
25297
25298 # Object file suffix (normally "o").
25299 objext="$ac_objext"
25300
25301 # Old archive suffix (normally "a").
25302 libext="$libext"
25303
25304 # Shared library suffix (normally ".so").
25305 shrext_cmds='$shrext_cmds'
25306
25307 # Executable file suffix (normally "").
25308 exeext="$exeext"
25309
25310 # Additional compiler flags for building library objects.
25311 pic_flag=$lt_lt_prog_compiler_pic_RC
25312 pic_mode=$pic_mode
25313
25314 # What is the maximum length of a command?
25315 max_cmd_len=$lt_cv_sys_max_cmd_len
25316
25317 # Does compiler simultaneously support -c and -o options?
25318 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25319
25320 # Must we lock files when doing compilation?
25321 need_locks=$lt_need_locks
25322
25323 # Do we need the lib prefix for modules?
25324 need_lib_prefix=$need_lib_prefix
25325
25326 # Do we need a version for libraries?
25327 need_version=$need_version
25328
25329 # Whether dlopen is supported.
25330 dlopen_support=$enable_dlopen
25331
25332 # Whether dlopen of programs is supported.
25333 dlopen_self=$enable_dlopen_self
25334
25335 # Whether dlopen of statically linked programs is supported.
25336 dlopen_self_static=$enable_dlopen_self_static
25337
25338 # Compiler flag to prevent dynamic linking.
25339 link_static_flag=$lt_lt_prog_compiler_static_RC
25340
25341 # Compiler flag to turn off builtin functions.
25342 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25343
25344 # Compiler flag to allow reflexive dlopens.
25345 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25346
25347 # Compiler flag to generate shared objects directly from archives.
25348 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25349
25350 # Compiler flag to generate thread-safe objects.
25351 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25352
25353 # Library versioning type.
25354 version_type=$version_type
25355
25356 # Format of library name prefix.
25357 libname_spec=$lt_libname_spec
25358
25359 # List of archive names.  First name is the real one, the rest are links.
25360 # The last name is the one that the linker finds with -lNAME.
25361 library_names_spec=$lt_library_names_spec
25362
25363 # The coded name of the library, if different from the real name.
25364 soname_spec=$lt_soname_spec
25365
25366 # Commands used to build and install an old-style archive.
25367 RANLIB=$lt_RANLIB
25368 old_archive_cmds=$lt_old_archive_cmds_RC
25369 old_postinstall_cmds=$lt_old_postinstall_cmds
25370 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25371
25372 # Create an old-style archive from a shared archive.
25373 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25374
25375 # Create a temporary old-style archive to link instead of a shared archive.
25376 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25377
25378 # Commands used to build and install a shared archive.
25379 archive_cmds=$lt_archive_cmds_RC
25380 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25381 postinstall_cmds=$lt_postinstall_cmds
25382 postuninstall_cmds=$lt_postuninstall_cmds
25383
25384 # Commands used to build a loadable module (assumed same as above if empty)
25385 module_cmds=$lt_module_cmds_RC
25386 module_expsym_cmds=$lt_module_expsym_cmds_RC
25387
25388 # Commands to strip libraries.
25389 old_striplib=$lt_old_striplib
25390 striplib=$lt_striplib
25391
25392 # Dependencies to place before the objects being linked to create a
25393 # shared library.
25394 predep_objects=$lt_predep_objects_RC
25395
25396 # Dependencies to place after the objects being linked to create a
25397 # shared library.
25398 postdep_objects=$lt_postdep_objects_RC
25399
25400 # Dependencies to place before the objects being linked to create a
25401 # shared library.
25402 predeps=$lt_predeps_RC
25403
25404 # Dependencies to place after the objects being linked to create a
25405 # shared library.
25406 postdeps=$lt_postdeps_RC
25407
25408 # The library search path used internally by the compiler when linking
25409 # a shared library.
25410 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25411
25412 # Method to check whether dependent libraries are shared objects.
25413 deplibs_check_method=$lt_deplibs_check_method
25414
25415 # Command to use when deplibs_check_method == file_magic.
25416 file_magic_cmd=$lt_file_magic_cmd
25417
25418 # Flag that allows shared libraries with undefined symbols to be built.
25419 allow_undefined_flag=$lt_allow_undefined_flag_RC
25420
25421 # Flag that forces no undefined symbols.
25422 no_undefined_flag=$lt_no_undefined_flag_RC
25423
25424 # Commands used to finish a libtool library installation in a directory.
25425 finish_cmds=$lt_finish_cmds
25426
25427 # Same as above, but a single script fragment to be evaled but not shown.
25428 finish_eval=$lt_finish_eval
25429
25430 # Take the output of nm and produce a listing of raw symbols and C names.
25431 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25432
25433 # Transform the output of nm in a proper C declaration
25434 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25435
25436 # Transform the output of nm in a C name address pair
25437 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25438
25439 # This is the shared library runtime path variable.
25440 runpath_var=$runpath_var
25441
25442 # This is the shared library path variable.
25443 shlibpath_var=$shlibpath_var
25444
25445 # Is shlibpath searched before the hard-coded library search path?
25446 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25447
25448 # How to hardcode a shared library path into an executable.
25449 hardcode_action=$hardcode_action_RC
25450
25451 # Whether we should hardcode library paths into libraries.
25452 hardcode_into_libs=$hardcode_into_libs
25453
25454 # Flag to hardcode \$libdir into a binary during linking.
25455 # This must work even if \$libdir does not exist.
25456 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25457
25458 # If ld is used when linking, flag to hardcode \$libdir into
25459 # a binary during linking. This must work even if \$libdir does
25460 # not exist.
25461 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25462
25463 # Whether we need a single -rpath flag with a separated argument.
25464 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25465
25466 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25467 # resulting binary.
25468 hardcode_direct=$hardcode_direct_RC
25469
25470 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25471 # resulting binary.
25472 hardcode_minus_L=$hardcode_minus_L_RC
25473
25474 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25475 # the resulting binary.
25476 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25477
25478 # Set to yes if building a shared library automatically hardcodes DIR into the library
25479 # and all subsequent libraries and executables linked against it.
25480 hardcode_automatic=$hardcode_automatic_RC
25481
25482 # Variables whose values should be saved in libtool wrapper scripts and
25483 # restored at relink time.
25484 variables_saved_for_relink="$variables_saved_for_relink"
25485
25486 # Whether libtool must link a program against all its dependency libraries.
25487 link_all_deplibs=$link_all_deplibs_RC
25488
25489 # Compile-time system search path for libraries
25490 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25491
25492 # Run-time system search path for libraries
25493 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25494
25495 # Fix the shell variable \$srcfile for the compiler.
25496 fix_srcfile_path="$fix_srcfile_path_RC"
25497
25498 # Set to yes if exported symbols are required.
25499 always_export_symbols=$always_export_symbols_RC
25500
25501 # The commands to list exported symbols.
25502 export_symbols_cmds=$lt_export_symbols_cmds_RC
25503
25504 # The commands to extract the exported symbol list from a shared archive.
25505 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25506
25507 # Symbols that should not be listed in the preloaded symbols.
25508 exclude_expsyms=$lt_exclude_expsyms_RC
25509
25510 # Symbols that must always be exported.
25511 include_expsyms=$lt_include_expsyms_RC
25512
25513 # ### END LIBTOOL TAG CONFIG: $tagname
25514
25515 __EOF__
25516
25517
25518 else
25519   # If there is no Makefile yet, we rely on a make rule to execute
25520   # `config.status --recheck' to rerun these tests and create the
25521   # libtool script then.
25522   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25523   if test -f "$ltmain_in"; then
25524     test -f Makefile && make "$ltmain"
25525   fi
25526 fi
25527
25528
25529 ac_ext=c
25530 ac_cpp='$CPP $CPPFLAGS'
25531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25534
25535 CC="$lt_save_CC"
25536
25537         ;;
25538
25539       *)
25540         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25541 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25542    { (exit 1); exit 1; }; }
25543         ;;
25544       esac
25545
25546       # Append the new tag name to the list of available tags.
25547       if test -n "$tagname" ; then
25548       available_tags="$available_tags $tagname"
25549     fi
25550     fi
25551   done
25552   IFS="$lt_save_ifs"
25553
25554   # Now substitute the updated list of available tags.
25555   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25556     mv "${ofile}T" "$ofile"
25557     chmod +x "$ofile"
25558   else
25559     rm -f "${ofile}T"
25560     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25561 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25562    { (exit 1); exit 1; }; }
25563   fi
25564 fi
25565
25566
25567
25568 # This can be used to rebuild libtool when needed
25569 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25570
25571 # Always use our own libtool.
25572 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25573
25574 # Prevent multiple expansion
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591
25592
25593
25594
25595
25596 if test "$lt_cv_dlopen_self" = "yes" ; then
25597
25598 cat >>confdefs.h <<\_ACEOF
25599 #define CAN_DLOPEN_SELF 1
25600 _ACEOF
25601
25602 fi
25603
25604 if test "$WITH_LLVMGCCDIR" = "default" ; then
25605   LLVMGCC="llvm-gcc${EXEEXT}"
25606   LLVMGXX="llvm-g++${EXEEXT}"
25607   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25608 set dummy $LLVMGCC; ac_word=$2
25609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25611 if test "${ac_cv_path_LLVMGCC+set}" = set; then
25612   echo $ECHO_N "(cached) $ECHO_C" >&6
25613 else
25614   case $LLVMGCC in
25615   [\\/]* | ?:[\\/]*)
25616   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25617   ;;
25618   *)
25619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25620 for as_dir in $PATH
25621 do
25622   IFS=$as_save_IFS
25623   test -z "$as_dir" && as_dir=.
25624   for ac_exec_ext in '' $ac_executable_extensions; do
25625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25626     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25628     break 2
25629   fi
25630 done
25631 done
25632 IFS=$as_save_IFS
25633
25634   ;;
25635 esac
25636 fi
25637 LLVMGCC=$ac_cv_path_LLVMGCC
25638 if test -n "$LLVMGCC"; then
25639   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25640 echo "${ECHO_T}$LLVMGCC" >&6; }
25641 else
25642   { echo "$as_me:$LINENO: result: no" >&5
25643 echo "${ECHO_T}no" >&6; }
25644 fi
25645
25646
25647   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25648 set dummy $LLVMGXX; ac_word=$2
25649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25651 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25652   echo $ECHO_N "(cached) $ECHO_C" >&6
25653 else
25654   case $LLVMGXX in
25655   [\\/]* | ?:[\\/]*)
25656   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25657   ;;
25658   *)
25659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25660 for as_dir in $PATH
25661 do
25662   IFS=$as_save_IFS
25663   test -z "$as_dir" && as_dir=.
25664   for ac_exec_ext in '' $ac_executable_extensions; do
25665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25666     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25668     break 2
25669   fi
25670 done
25671 done
25672 IFS=$as_save_IFS
25673
25674   ;;
25675 esac
25676 fi
25677 LLVMGXX=$ac_cv_path_LLVMGXX
25678 if test -n "$LLVMGXX"; then
25679   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25680 echo "${ECHO_T}$LLVMGXX" >&6; }
25681 else
25682   { echo "$as_me:$LINENO: result: no" >&5
25683 echo "${ECHO_T}no" >&6; }
25684 fi
25685
25686
25687 else
25688   if test -z "$LLVMGCC"; then
25689     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25690   fi
25691   if test -z "$LLVMGXX"; then
25692     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25693   fi
25694   LLVMGCC=$LLVMGCC
25695
25696   LLVMGXX=$LLVMGXX
25697
25698 fi
25699
25700 { echo "$as_me:$LINENO: checking tool compatibility" >&5
25701 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
25702
25703 ICC=no
25704 IXX=no
25705 case $CC in
25706   icc*|icpc*)
25707     ICC=yes
25708     IXX=yes
25709     ;;
25710    *)
25711     ;;
25712 esac
25713
25714 if test "$GCC" != "yes" && test "$ICC" != "yes"
25715 then
25716   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25717 echo "$as_me: error: gcc|icc required but not found" >&2;}
25718    { (exit 1); exit 1; }; }
25719 fi
25720
25721 if test "$GXX" != "yes" && test "$IXX" != "yes"
25722 then
25723   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25724 echo "$as_me: error: g++|icc required but not found" >&2;}
25725    { (exit 1); exit 1; }; }
25726 fi
25727
25728 if test "$GCC" = "yes"
25729 then
25730   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25731   if test "$gccmajor" -lt "3"
25732   then
25733     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25734 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25735    { (exit 1); exit 1; }; }
25736   fi
25737 fi
25738
25739 if test -z "$llvm_cv_gnu_make_command"
25740 then
25741   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25742 echo "$as_me: error: GNU Make required but not found" >&2;}
25743    { (exit 1); exit 1; }; }
25744 fi
25745
25746 { echo "$as_me:$LINENO: result: ok" >&5
25747 echo "${ECHO_T}ok" >&6; }
25748
25749
25750
25751 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25752 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
25753 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25754   echo $ECHO_N "(cached) $ECHO_C" >&6
25755 else
25756   ac_check_lib_save_LIBS=$LIBS
25757 LIBS="-lelf  $LIBS"
25758 cat >conftest.$ac_ext <<_ACEOF
25759 /* confdefs.h.  */
25760 _ACEOF
25761 cat confdefs.h >>conftest.$ac_ext
25762 cat >>conftest.$ac_ext <<_ACEOF
25763 /* end confdefs.h.  */
25764
25765 /* Override any GCC internal prototype to avoid an error.
25766    Use char because int might match the return type of a GCC
25767    builtin and then its argument prototype would still apply.  */
25768 #ifdef __cplusplus
25769 extern "C"
25770 #endif
25771 char elf_begin ();
25772 int
25773 main ()
25774 {
25775 return elf_begin ();
25776   ;
25777   return 0;
25778 }
25779 _ACEOF
25780 rm -f conftest.$ac_objext conftest$ac_exeext
25781 if { (ac_try="$ac_link"
25782 case "(($ac_try" in
25783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25784   *) ac_try_echo=$ac_try;;
25785 esac
25786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25787   (eval "$ac_link") 2>conftest.er1
25788   ac_status=$?
25789   grep -v '^ *+' conftest.er1 >conftest.err
25790   rm -f conftest.er1
25791   cat conftest.err >&5
25792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793   (exit $ac_status); } && {
25794          test -z "$ac_c_werror_flag" ||
25795          test ! -s conftest.err
25796        } && test -s conftest$ac_exeext &&
25797        $as_test_x conftest$ac_exeext; then
25798   ac_cv_lib_elf_elf_begin=yes
25799 else
25800   echo "$as_me: failed program was:" >&5
25801 sed 's/^/| /' conftest.$ac_ext >&5
25802
25803         ac_cv_lib_elf_elf_begin=no
25804 fi
25805
25806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25807       conftest$ac_exeext conftest.$ac_ext
25808 LIBS=$ac_check_lib_save_LIBS
25809 fi
25810 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25811 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
25812 if test $ac_cv_lib_elf_elf_begin = yes; then
25813   cat >>confdefs.h <<_ACEOF
25814 #define HAVE_LIBELF 1
25815 _ACEOF
25816
25817   LIBS="-lelf $LIBS"
25818
25819 fi
25820
25821
25822 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
25823 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
25824 if test "${ac_cv_lib_m_sin+set}" = set; then
25825   echo $ECHO_N "(cached) $ECHO_C" >&6
25826 else
25827   ac_check_lib_save_LIBS=$LIBS
25828 LIBS="-lm  $LIBS"
25829 cat >conftest.$ac_ext <<_ACEOF
25830 /* confdefs.h.  */
25831 _ACEOF
25832 cat confdefs.h >>conftest.$ac_ext
25833 cat >>conftest.$ac_ext <<_ACEOF
25834 /* end confdefs.h.  */
25835
25836 /* Override any GCC internal prototype to avoid an error.
25837    Use char because int might match the return type of a GCC
25838    builtin and then its argument prototype would still apply.  */
25839 #ifdef __cplusplus
25840 extern "C"
25841 #endif
25842 char sin ();
25843 int
25844 main ()
25845 {
25846 return sin ();
25847   ;
25848   return 0;
25849 }
25850 _ACEOF
25851 rm -f conftest.$ac_objext conftest$ac_exeext
25852 if { (ac_try="$ac_link"
25853 case "(($ac_try" in
25854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25855   *) ac_try_echo=$ac_try;;
25856 esac
25857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25858   (eval "$ac_link") 2>conftest.er1
25859   ac_status=$?
25860   grep -v '^ *+' conftest.er1 >conftest.err
25861   rm -f conftest.er1
25862   cat conftest.err >&5
25863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864   (exit $ac_status); } && {
25865          test -z "$ac_c_werror_flag" ||
25866          test ! -s conftest.err
25867        } && test -s conftest$ac_exeext &&
25868        $as_test_x conftest$ac_exeext; then
25869   ac_cv_lib_m_sin=yes
25870 else
25871   echo "$as_me: failed program was:" >&5
25872 sed 's/^/| /' conftest.$ac_ext >&5
25873
25874         ac_cv_lib_m_sin=no
25875 fi
25876
25877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25878       conftest$ac_exeext conftest.$ac_ext
25879 LIBS=$ac_check_lib_save_LIBS
25880 fi
25881 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25882 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
25883 if test $ac_cv_lib_m_sin = yes; then
25884   cat >>confdefs.h <<_ACEOF
25885 #define HAVE_LIBM 1
25886 _ACEOF
25887
25888   LIBS="-lm $LIBS"
25889
25890 fi
25891
25892 if test "$llvm_cv_os_type" = "MingW" ; then
25893
25894 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25895 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
25896 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25897   echo $ECHO_N "(cached) $ECHO_C" >&6
25898 else
25899   ac_check_lib_save_LIBS=$LIBS
25900 LIBS="-limagehlp  $LIBS"
25901 cat >conftest.$ac_ext <<_ACEOF
25902 /* confdefs.h.  */
25903 _ACEOF
25904 cat confdefs.h >>conftest.$ac_ext
25905 cat >>conftest.$ac_ext <<_ACEOF
25906 /* end confdefs.h.  */
25907
25908
25909 int
25910 main ()
25911 {
25912 return main ();
25913   ;
25914   return 0;
25915 }
25916 _ACEOF
25917 rm -f conftest.$ac_objext conftest$ac_exeext
25918 if { (ac_try="$ac_link"
25919 case "(($ac_try" in
25920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25921   *) ac_try_echo=$ac_try;;
25922 esac
25923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25924   (eval "$ac_link") 2>conftest.er1
25925   ac_status=$?
25926   grep -v '^ *+' conftest.er1 >conftest.err
25927   rm -f conftest.er1
25928   cat conftest.err >&5
25929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930   (exit $ac_status); } && {
25931          test -z "$ac_c_werror_flag" ||
25932          test ! -s conftest.err
25933        } && test -s conftest$ac_exeext &&
25934        $as_test_x conftest$ac_exeext; then
25935   ac_cv_lib_imagehlp_main=yes
25936 else
25937   echo "$as_me: failed program was:" >&5
25938 sed 's/^/| /' conftest.$ac_ext >&5
25939
25940         ac_cv_lib_imagehlp_main=no
25941 fi
25942
25943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25944       conftest$ac_exeext conftest.$ac_ext
25945 LIBS=$ac_check_lib_save_LIBS
25946 fi
25947 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25948 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
25949 if test $ac_cv_lib_imagehlp_main = yes; then
25950   cat >>confdefs.h <<_ACEOF
25951 #define HAVE_LIBIMAGEHLP 1
25952 _ACEOF
25953
25954   LIBS="-limagehlp $LIBS"
25955
25956 fi
25957
25958
25959 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25960 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
25961 if test "${ac_cv_lib_psapi_main+set}" = set; then
25962   echo $ECHO_N "(cached) $ECHO_C" >&6
25963 else
25964   ac_check_lib_save_LIBS=$LIBS
25965 LIBS="-lpsapi  $LIBS"
25966 cat >conftest.$ac_ext <<_ACEOF
25967 /* confdefs.h.  */
25968 _ACEOF
25969 cat confdefs.h >>conftest.$ac_ext
25970 cat >>conftest.$ac_ext <<_ACEOF
25971 /* end confdefs.h.  */
25972
25973
25974 int
25975 main ()
25976 {
25977 return main ();
25978   ;
25979   return 0;
25980 }
25981 _ACEOF
25982 rm -f conftest.$ac_objext conftest$ac_exeext
25983 if { (ac_try="$ac_link"
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_link") 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_exeext &&
25999        $as_test_x conftest$ac_exeext; then
26000   ac_cv_lib_psapi_main=yes
26001 else
26002   echo "$as_me: failed program was:" >&5
26003 sed 's/^/| /' conftest.$ac_ext >&5
26004
26005         ac_cv_lib_psapi_main=no
26006 fi
26007
26008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26009       conftest$ac_exeext conftest.$ac_ext
26010 LIBS=$ac_check_lib_save_LIBS
26011 fi
26012 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26013 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
26014 if test $ac_cv_lib_psapi_main = yes; then
26015   cat >>confdefs.h <<_ACEOF
26016 #define HAVE_LIBPSAPI 1
26017 _ACEOF
26018
26019   LIBS="-lpsapi $LIBS"
26020
26021 fi
26022
26023 fi
26024
26025 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
26026 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
26027 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26028   echo $ECHO_N "(cached) $ECHO_C" >&6
26029 else
26030   ac_func_search_save_LIBS=$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 lt_dlopen ();
26045 int
26046 main ()
26047 {
26048 return lt_dlopen ();
26049   ;
26050   return 0;
26051 }
26052 _ACEOF
26053 for ac_lib in '' ltdl; do
26054   if test -z "$ac_lib"; then
26055     ac_res="none required"
26056   else
26057     ac_res=-l$ac_lib
26058     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26059   fi
26060   rm -f conftest.$ac_objext conftest$ac_exeext
26061 if { (ac_try="$ac_link"
26062 case "(($ac_try" in
26063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26064   *) ac_try_echo=$ac_try;;
26065 esac
26066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26067   (eval "$ac_link") 2>conftest.er1
26068   ac_status=$?
26069   grep -v '^ *+' conftest.er1 >conftest.err
26070   rm -f conftest.er1
26071   cat conftest.err >&5
26072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073   (exit $ac_status); } && {
26074          test -z "$ac_c_werror_flag" ||
26075          test ! -s conftest.err
26076        } && test -s conftest$ac_exeext &&
26077        $as_test_x conftest$ac_exeext; then
26078   ac_cv_search_lt_dlopen=$ac_res
26079 else
26080   echo "$as_me: failed program was:" >&5
26081 sed 's/^/| /' conftest.$ac_ext >&5
26082
26083
26084 fi
26085
26086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26087       conftest$ac_exeext
26088   if test "${ac_cv_search_lt_dlopen+set}" = set; then
26089   break
26090 fi
26091 done
26092 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26093   :
26094 else
26095   ac_cv_search_lt_dlopen=no
26096 fi
26097 rm conftest.$ac_ext
26098 LIBS=$ac_func_search_save_LIBS
26099 fi
26100 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
26101 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
26102 ac_res=$ac_cv_search_lt_dlopen
26103 if test "$ac_res" != no; then
26104   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26105
26106 cat >>confdefs.h <<\_ACEOF
26107 #define HAVE_LT_DLOPEN 1
26108 _ACEOF
26109
26110 else
26111   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
26112                            not be available" >&5
26113 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
26114                            not be available" >&2;}
26115 fi
26116
26117
26118 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26119 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
26120 if test "${ac_cv_search_dlopen+set}" = set; then
26121   echo $ECHO_N "(cached) $ECHO_C" >&6
26122 else
26123   ac_func_search_save_LIBS=$LIBS
26124 cat >conftest.$ac_ext <<_ACEOF
26125 /* confdefs.h.  */
26126 _ACEOF
26127 cat confdefs.h >>conftest.$ac_ext
26128 cat >>conftest.$ac_ext <<_ACEOF
26129 /* end confdefs.h.  */
26130
26131 /* Override any GCC internal prototype to avoid an error.
26132    Use char because int might match the return type of a GCC
26133    builtin and then its argument prototype would still apply.  */
26134 #ifdef __cplusplus
26135 extern "C"
26136 #endif
26137 char dlopen ();
26138 int
26139 main ()
26140 {
26141 return dlopen ();
26142   ;
26143   return 0;
26144 }
26145 _ACEOF
26146 for ac_lib in '' dl; do
26147   if test -z "$ac_lib"; then
26148     ac_res="none required"
26149   else
26150     ac_res=-l$ac_lib
26151     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26152   fi
26153   rm -f conftest.$ac_objext conftest$ac_exeext
26154 if { (ac_try="$ac_link"
26155 case "(($ac_try" in
26156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26157   *) ac_try_echo=$ac_try;;
26158 esac
26159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26160   (eval "$ac_link") 2>conftest.er1
26161   ac_status=$?
26162   grep -v '^ *+' conftest.er1 >conftest.err
26163   rm -f conftest.er1
26164   cat conftest.err >&5
26165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166   (exit $ac_status); } && {
26167          test -z "$ac_c_werror_flag" ||
26168          test ! -s conftest.err
26169        } && test -s conftest$ac_exeext &&
26170        $as_test_x conftest$ac_exeext; then
26171   ac_cv_search_dlopen=$ac_res
26172 else
26173   echo "$as_me: failed program was:" >&5
26174 sed 's/^/| /' conftest.$ac_ext >&5
26175
26176
26177 fi
26178
26179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26180       conftest$ac_exeext
26181   if test "${ac_cv_search_dlopen+set}" = set; then
26182   break
26183 fi
26184 done
26185 if test "${ac_cv_search_dlopen+set}" = set; then
26186   :
26187 else
26188   ac_cv_search_dlopen=no
26189 fi
26190 rm conftest.$ac_ext
26191 LIBS=$ac_func_search_save_LIBS
26192 fi
26193 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26194 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26195 ac_res=$ac_cv_search_dlopen
26196 if test "$ac_res" != no; then
26197   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26198
26199 cat >>confdefs.h <<\_ACEOF
26200 #define HAVE_DLOPEN 1
26201 _ACEOF
26202
26203 else
26204   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26205 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
26206 fi
26207
26208
26209 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26210 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
26211 if test "${ac_cv_search_mallinfo+set}" = set; then
26212   echo $ECHO_N "(cached) $ECHO_C" >&6
26213 else
26214   ac_func_search_save_LIBS=$LIBS
26215 cat >conftest.$ac_ext <<_ACEOF
26216 /* confdefs.h.  */
26217 _ACEOF
26218 cat confdefs.h >>conftest.$ac_ext
26219 cat >>conftest.$ac_ext <<_ACEOF
26220 /* end confdefs.h.  */
26221
26222 /* Override any GCC internal prototype to avoid an error.
26223    Use char because int might match the return type of a GCC
26224    builtin and then its argument prototype would still apply.  */
26225 #ifdef __cplusplus
26226 extern "C"
26227 #endif
26228 char mallinfo ();
26229 int
26230 main ()
26231 {
26232 return mallinfo ();
26233   ;
26234   return 0;
26235 }
26236 _ACEOF
26237 for ac_lib in '' malloc; do
26238   if test -z "$ac_lib"; then
26239     ac_res="none required"
26240   else
26241     ac_res=-l$ac_lib
26242     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26243   fi
26244   rm -f conftest.$ac_objext conftest$ac_exeext
26245 if { (ac_try="$ac_link"
26246 case "(($ac_try" in
26247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26248   *) ac_try_echo=$ac_try;;
26249 esac
26250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26251   (eval "$ac_link") 2>conftest.er1
26252   ac_status=$?
26253   grep -v '^ *+' conftest.er1 >conftest.err
26254   rm -f conftest.er1
26255   cat conftest.err >&5
26256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257   (exit $ac_status); } && {
26258          test -z "$ac_c_werror_flag" ||
26259          test ! -s conftest.err
26260        } && test -s conftest$ac_exeext &&
26261        $as_test_x conftest$ac_exeext; then
26262   ac_cv_search_mallinfo=$ac_res
26263 else
26264   echo "$as_me: failed program was:" >&5
26265 sed 's/^/| /' conftest.$ac_ext >&5
26266
26267
26268 fi
26269
26270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26271       conftest$ac_exeext
26272   if test "${ac_cv_search_mallinfo+set}" = set; then
26273   break
26274 fi
26275 done
26276 if test "${ac_cv_search_mallinfo+set}" = set; then
26277   :
26278 else
26279   ac_cv_search_mallinfo=no
26280 fi
26281 rm conftest.$ac_ext
26282 LIBS=$ac_func_search_save_LIBS
26283 fi
26284 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26285 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26286 ac_res=$ac_cv_search_mallinfo
26287 if test "$ac_res" != no; then
26288   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26289
26290 cat >>confdefs.h <<\_ACEOF
26291 #define HAVE_MALLINFO 1
26292 _ACEOF
26293
26294 fi
26295
26296
26297 if test "$ENABLE_THREADS" -eq 1 ; then
26298
26299 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26300 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
26301 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26302   echo $ECHO_N "(cached) $ECHO_C" >&6
26303 else
26304   ac_check_lib_save_LIBS=$LIBS
26305 LIBS="-lpthread  $LIBS"
26306 cat >conftest.$ac_ext <<_ACEOF
26307 /* confdefs.h.  */
26308 _ACEOF
26309 cat confdefs.h >>conftest.$ac_ext
26310 cat >>conftest.$ac_ext <<_ACEOF
26311 /* end confdefs.h.  */
26312
26313 /* Override any GCC internal prototype to avoid an error.
26314    Use char because int might match the return type of a GCC
26315    builtin and then its argument prototype would still apply.  */
26316 #ifdef __cplusplus
26317 extern "C"
26318 #endif
26319 char pthread_mutex_init ();
26320 int
26321 main ()
26322 {
26323 return pthread_mutex_init ();
26324   ;
26325   return 0;
26326 }
26327 _ACEOF
26328 rm -f conftest.$ac_objext conftest$ac_exeext
26329 if { (ac_try="$ac_link"
26330 case "(($ac_try" in
26331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26332   *) ac_try_echo=$ac_try;;
26333 esac
26334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26335   (eval "$ac_link") 2>conftest.er1
26336   ac_status=$?
26337   grep -v '^ *+' conftest.er1 >conftest.err
26338   rm -f conftest.er1
26339   cat conftest.err >&5
26340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341   (exit $ac_status); } && {
26342          test -z "$ac_c_werror_flag" ||
26343          test ! -s conftest.err
26344        } && test -s conftest$ac_exeext &&
26345        $as_test_x conftest$ac_exeext; then
26346   ac_cv_lib_pthread_pthread_mutex_init=yes
26347 else
26348   echo "$as_me: failed program was:" >&5
26349 sed 's/^/| /' conftest.$ac_ext >&5
26350
26351         ac_cv_lib_pthread_pthread_mutex_init=no
26352 fi
26353
26354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26355       conftest$ac_exeext conftest.$ac_ext
26356 LIBS=$ac_check_lib_save_LIBS
26357 fi
26358 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26359 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
26360 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26361   cat >>confdefs.h <<_ACEOF
26362 #define HAVE_LIBPTHREAD 1
26363 _ACEOF
26364
26365   LIBS="-lpthread $LIBS"
26366
26367 fi
26368
26369   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26370 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
26371 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26372   echo $ECHO_N "(cached) $ECHO_C" >&6
26373 else
26374   ac_func_search_save_LIBS=$LIBS
26375 cat >conftest.$ac_ext <<_ACEOF
26376 /* confdefs.h.  */
26377 _ACEOF
26378 cat confdefs.h >>conftest.$ac_ext
26379 cat >>conftest.$ac_ext <<_ACEOF
26380 /* end confdefs.h.  */
26381
26382 /* Override any GCC internal prototype to avoid an error.
26383    Use char because int might match the return type of a GCC
26384    builtin and then its argument prototype would still apply.  */
26385 #ifdef __cplusplus
26386 extern "C"
26387 #endif
26388 char pthread_mutex_lock ();
26389 int
26390 main ()
26391 {
26392 return pthread_mutex_lock ();
26393   ;
26394   return 0;
26395 }
26396 _ACEOF
26397 for ac_lib in '' pthread; do
26398   if test -z "$ac_lib"; then
26399     ac_res="none required"
26400   else
26401     ac_res=-l$ac_lib
26402     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26403   fi
26404   rm -f conftest.$ac_objext conftest$ac_exeext
26405 if { (ac_try="$ac_link"
26406 case "(($ac_try" in
26407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26408   *) ac_try_echo=$ac_try;;
26409 esac
26410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26411   (eval "$ac_link") 2>conftest.er1
26412   ac_status=$?
26413   grep -v '^ *+' conftest.er1 >conftest.err
26414   rm -f conftest.er1
26415   cat conftest.err >&5
26416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417   (exit $ac_status); } && {
26418          test -z "$ac_c_werror_flag" ||
26419          test ! -s conftest.err
26420        } && test -s conftest$ac_exeext &&
26421        $as_test_x conftest$ac_exeext; then
26422   ac_cv_search_pthread_mutex_lock=$ac_res
26423 else
26424   echo "$as_me: failed program was:" >&5
26425 sed 's/^/| /' conftest.$ac_ext >&5
26426
26427
26428 fi
26429
26430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26431       conftest$ac_exeext
26432   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26433   break
26434 fi
26435 done
26436 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26437   :
26438 else
26439   ac_cv_search_pthread_mutex_lock=no
26440 fi
26441 rm conftest.$ac_ext
26442 LIBS=$ac_func_search_save_LIBS
26443 fi
26444 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26445 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26446 ac_res=$ac_cv_search_pthread_mutex_lock
26447 if test "$ac_res" != no; then
26448   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26449
26450 cat >>confdefs.h <<\_ACEOF
26451 #define HAVE_PTHREAD_MUTEX_LOCK 1
26452 _ACEOF
26453
26454 fi
26455
26456 fi
26457
26458
26459 # Check whether --with-udis86 was given.
26460 if test "${with_udis86+set}" = set; then
26461   withval=$with_udis86;
26462       USE_UDIS86=1
26463
26464       case "$withval" in
26465         /usr/lib|yes) ;;
26466         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26467       esac
26468
26469 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26470 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26471 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26472   echo $ECHO_N "(cached) $ECHO_C" >&6
26473 else
26474   ac_check_lib_save_LIBS=$LIBS
26475 LIBS="-ludis86  $LIBS"
26476 cat >conftest.$ac_ext <<_ACEOF
26477 /* confdefs.h.  */
26478 _ACEOF
26479 cat confdefs.h >>conftest.$ac_ext
26480 cat >>conftest.$ac_ext <<_ACEOF
26481 /* end confdefs.h.  */
26482
26483 /* Override any GCC internal prototype to avoid an error.
26484    Use char because int might match the return type of a GCC
26485    builtin and then its argument prototype would still apply.  */
26486 #ifdef __cplusplus
26487 extern "C"
26488 #endif
26489 char ud_init ();
26490 int
26491 main ()
26492 {
26493 return ud_init ();
26494   ;
26495   return 0;
26496 }
26497 _ACEOF
26498 rm -f conftest.$ac_objext conftest$ac_exeext
26499 if { (ac_try="$ac_link"
26500 case "(($ac_try" in
26501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26502   *) ac_try_echo=$ac_try;;
26503 esac
26504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26505   (eval "$ac_link") 2>conftest.er1
26506   ac_status=$?
26507   grep -v '^ *+' conftest.er1 >conftest.err
26508   rm -f conftest.er1
26509   cat conftest.err >&5
26510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511   (exit $ac_status); } && {
26512          test -z "$ac_c_werror_flag" ||
26513          test ! -s conftest.err
26514        } && test -s conftest$ac_exeext &&
26515        $as_test_x conftest$ac_exeext; then
26516   ac_cv_lib_udis86_ud_init=yes
26517 else
26518   echo "$as_me: failed program was:" >&5
26519 sed 's/^/| /' conftest.$ac_ext >&5
26520
26521         ac_cv_lib_udis86_ud_init=no
26522 fi
26523
26524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26525       conftest$ac_exeext conftest.$ac_ext
26526 LIBS=$ac_check_lib_save_LIBS
26527 fi
26528 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26529 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26530 if test $ac_cv_lib_udis86_ud_init = yes; then
26531   cat >>confdefs.h <<_ACEOF
26532 #define HAVE_LIBUDIS86 1
26533 _ACEOF
26534
26535   LIBS="-ludis86 $LIBS"
26536
26537 else
26538
26539         echo "Error! You need to have libudis86 around."
26540         exit -1
26541
26542 fi
26543
26544
26545 else
26546   USE_UDIS86=0
26547
26548 fi
26549
26550
26551 cat >>confdefs.h <<_ACEOF
26552 #define USE_UDIS86 $USE_UDIS86
26553 _ACEOF
26554
26555
26556
26557
26558
26559
26560
26561
26562 ac_header_dirent=no
26563 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26564   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26565 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26566 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26568   echo $ECHO_N "(cached) $ECHO_C" >&6
26569 else
26570   cat >conftest.$ac_ext <<_ACEOF
26571 /* confdefs.h.  */
26572 _ACEOF
26573 cat confdefs.h >>conftest.$ac_ext
26574 cat >>conftest.$ac_ext <<_ACEOF
26575 /* end confdefs.h.  */
26576 #include <sys/types.h>
26577 #include <$ac_hdr>
26578
26579 int
26580 main ()
26581 {
26582 if ((DIR *) 0)
26583 return 0;
26584   ;
26585   return 0;
26586 }
26587 _ACEOF
26588 rm -f conftest.$ac_objext
26589 if { (ac_try="$ac_compile"
26590 case "(($ac_try" in
26591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26592   *) ac_try_echo=$ac_try;;
26593 esac
26594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26595   (eval "$ac_compile") 2>conftest.er1
26596   ac_status=$?
26597   grep -v '^ *+' conftest.er1 >conftest.err
26598   rm -f conftest.er1
26599   cat conftest.err >&5
26600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601   (exit $ac_status); } && {
26602          test -z "$ac_c_werror_flag" ||
26603          test ! -s conftest.err
26604        } && test -s conftest.$ac_objext; then
26605   eval "$as_ac_Header=yes"
26606 else
26607   echo "$as_me: failed program was:" >&5
26608 sed 's/^/| /' conftest.$ac_ext >&5
26609
26610         eval "$as_ac_Header=no"
26611 fi
26612
26613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26614 fi
26615 ac_res=`eval echo '${'$as_ac_Header'}'`
26616                { echo "$as_me:$LINENO: result: $ac_res" >&5
26617 echo "${ECHO_T}$ac_res" >&6; }
26618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26619   cat >>confdefs.h <<_ACEOF
26620 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26621 _ACEOF
26622
26623 ac_header_dirent=$ac_hdr; break
26624 fi
26625
26626 done
26627 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26628 if test $ac_header_dirent = dirent.h; then
26629   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26630 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26631 if test "${ac_cv_search_opendir+set}" = set; then
26632   echo $ECHO_N "(cached) $ECHO_C" >&6
26633 else
26634   ac_func_search_save_LIBS=$LIBS
26635 cat >conftest.$ac_ext <<_ACEOF
26636 /* confdefs.h.  */
26637 _ACEOF
26638 cat confdefs.h >>conftest.$ac_ext
26639 cat >>conftest.$ac_ext <<_ACEOF
26640 /* end confdefs.h.  */
26641
26642 /* Override any GCC internal prototype to avoid an error.
26643    Use char because int might match the return type of a GCC
26644    builtin and then its argument prototype would still apply.  */
26645 #ifdef __cplusplus
26646 extern "C"
26647 #endif
26648 char opendir ();
26649 int
26650 main ()
26651 {
26652 return opendir ();
26653   ;
26654   return 0;
26655 }
26656 _ACEOF
26657 for ac_lib in '' dir; do
26658   if test -z "$ac_lib"; then
26659     ac_res="none required"
26660   else
26661     ac_res=-l$ac_lib
26662     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26663   fi
26664   rm -f conftest.$ac_objext conftest$ac_exeext
26665 if { (ac_try="$ac_link"
26666 case "(($ac_try" in
26667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26668   *) ac_try_echo=$ac_try;;
26669 esac
26670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26671   (eval "$ac_link") 2>conftest.er1
26672   ac_status=$?
26673   grep -v '^ *+' conftest.er1 >conftest.err
26674   rm -f conftest.er1
26675   cat conftest.err >&5
26676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677   (exit $ac_status); } && {
26678          test -z "$ac_c_werror_flag" ||
26679          test ! -s conftest.err
26680        } && test -s conftest$ac_exeext &&
26681        $as_test_x conftest$ac_exeext; then
26682   ac_cv_search_opendir=$ac_res
26683 else
26684   echo "$as_me: failed program was:" >&5
26685 sed 's/^/| /' conftest.$ac_ext >&5
26686
26687
26688 fi
26689
26690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26691       conftest$ac_exeext
26692   if test "${ac_cv_search_opendir+set}" = set; then
26693   break
26694 fi
26695 done
26696 if test "${ac_cv_search_opendir+set}" = set; then
26697   :
26698 else
26699   ac_cv_search_opendir=no
26700 fi
26701 rm conftest.$ac_ext
26702 LIBS=$ac_func_search_save_LIBS
26703 fi
26704 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26705 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26706 ac_res=$ac_cv_search_opendir
26707 if test "$ac_res" != no; then
26708   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26709
26710 fi
26711
26712 else
26713   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26714 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26715 if test "${ac_cv_search_opendir+set}" = set; then
26716   echo $ECHO_N "(cached) $ECHO_C" >&6
26717 else
26718   ac_func_search_save_LIBS=$LIBS
26719 cat >conftest.$ac_ext <<_ACEOF
26720 /* confdefs.h.  */
26721 _ACEOF
26722 cat confdefs.h >>conftest.$ac_ext
26723 cat >>conftest.$ac_ext <<_ACEOF
26724 /* end confdefs.h.  */
26725
26726 /* Override any GCC internal prototype to avoid an error.
26727    Use char because int might match the return type of a GCC
26728    builtin and then its argument prototype would still apply.  */
26729 #ifdef __cplusplus
26730 extern "C"
26731 #endif
26732 char opendir ();
26733 int
26734 main ()
26735 {
26736 return opendir ();
26737   ;
26738   return 0;
26739 }
26740 _ACEOF
26741 for ac_lib in '' x; do
26742   if test -z "$ac_lib"; then
26743     ac_res="none required"
26744   else
26745     ac_res=-l$ac_lib
26746     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26747   fi
26748   rm -f conftest.$ac_objext conftest$ac_exeext
26749 if { (ac_try="$ac_link"
26750 case "(($ac_try" in
26751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26752   *) ac_try_echo=$ac_try;;
26753 esac
26754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26755   (eval "$ac_link") 2>conftest.er1
26756   ac_status=$?
26757   grep -v '^ *+' conftest.er1 >conftest.err
26758   rm -f conftest.er1
26759   cat conftest.err >&5
26760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761   (exit $ac_status); } && {
26762          test -z "$ac_c_werror_flag" ||
26763          test ! -s conftest.err
26764        } && test -s conftest$ac_exeext &&
26765        $as_test_x conftest$ac_exeext; then
26766   ac_cv_search_opendir=$ac_res
26767 else
26768   echo "$as_me: failed program was:" >&5
26769 sed 's/^/| /' conftest.$ac_ext >&5
26770
26771
26772 fi
26773
26774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26775       conftest$ac_exeext
26776   if test "${ac_cv_search_opendir+set}" = set; then
26777   break
26778 fi
26779 done
26780 if test "${ac_cv_search_opendir+set}" = set; then
26781   :
26782 else
26783   ac_cv_search_opendir=no
26784 fi
26785 rm conftest.$ac_ext
26786 LIBS=$ac_func_search_save_LIBS
26787 fi
26788 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26789 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26790 ac_res=$ac_cv_search_opendir
26791 if test "$ac_res" != no; then
26792   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26793
26794 fi
26795
26796 fi
26797
26798 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26799 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
26800 if test "${ac_cv_header_mmap_anon+set}" = set; then
26801   echo $ECHO_N "(cached) $ECHO_C" >&6
26802 else
26803    ac_ext=c
26804 ac_cpp='$CPP $CPPFLAGS'
26805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26808
26809   cat >conftest.$ac_ext <<_ACEOF
26810 /* confdefs.h.  */
26811 _ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h.  */
26815 #include <sys/mman.h>
26816 #include <unistd.h>
26817 #include <fcntl.h>
26818 int
26819 main ()
26820 {
26821 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26822   ;
26823   return 0;
26824 }
26825 _ACEOF
26826 rm -f conftest.$ac_objext
26827 if { (ac_try="$ac_compile"
26828 case "(($ac_try" in
26829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26830   *) ac_try_echo=$ac_try;;
26831 esac
26832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26833   (eval "$ac_compile") 2>conftest.er1
26834   ac_status=$?
26835   grep -v '^ *+' conftest.er1 >conftest.err
26836   rm -f conftest.er1
26837   cat conftest.err >&5
26838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839   (exit $ac_status); } && {
26840          test -z "$ac_c_werror_flag" ||
26841          test ! -s conftest.err
26842        } && test -s conftest.$ac_objext; then
26843   ac_cv_header_mmap_anon=yes
26844 else
26845   echo "$as_me: failed program was:" >&5
26846 sed 's/^/| /' conftest.$ac_ext >&5
26847
26848         ac_cv_header_mmap_anon=no
26849 fi
26850
26851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26852   ac_ext=c
26853 ac_cpp='$CPP $CPPFLAGS'
26854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26857
26858
26859 fi
26860 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26861 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
26862 if test "$ac_cv_header_mmap_anon" = yes; then
26863
26864 cat >>confdefs.h <<\_ACEOF
26865 #define HAVE_MMAP_ANONYMOUS 1
26866 _ACEOF
26867
26868 fi
26869
26870 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26871 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
26872 if test "${ac_cv_header_stat_broken+set}" = set; then
26873   echo $ECHO_N "(cached) $ECHO_C" >&6
26874 else
26875   cat >conftest.$ac_ext <<_ACEOF
26876 /* confdefs.h.  */
26877 _ACEOF
26878 cat confdefs.h >>conftest.$ac_ext
26879 cat >>conftest.$ac_ext <<_ACEOF
26880 /* end confdefs.h.  */
26881 #include <sys/types.h>
26882 #include <sys/stat.h>
26883
26884 #if defined S_ISBLK && defined S_IFDIR
26885 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26886 #endif
26887
26888 #if defined S_ISBLK && defined S_IFCHR
26889 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26890 #endif
26891
26892 #if defined S_ISLNK && defined S_IFREG
26893 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26894 #endif
26895
26896 #if defined S_ISSOCK && defined S_IFREG
26897 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26898 #endif
26899
26900 _ACEOF
26901 rm -f conftest.$ac_objext
26902 if { (ac_try="$ac_compile"
26903 case "(($ac_try" in
26904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26905   *) ac_try_echo=$ac_try;;
26906 esac
26907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26908   (eval "$ac_compile") 2>conftest.er1
26909   ac_status=$?
26910   grep -v '^ *+' conftest.er1 >conftest.err
26911   rm -f conftest.er1
26912   cat conftest.err >&5
26913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914   (exit $ac_status); } && {
26915          test -z "$ac_c_werror_flag" ||
26916          test ! -s conftest.err
26917        } && test -s conftest.$ac_objext; then
26918   ac_cv_header_stat_broken=no
26919 else
26920   echo "$as_me: failed program was:" >&5
26921 sed 's/^/| /' conftest.$ac_ext >&5
26922
26923         ac_cv_header_stat_broken=yes
26924 fi
26925
26926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26927 fi
26928 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26929 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
26930 if test $ac_cv_header_stat_broken = yes; then
26931
26932 cat >>confdefs.h <<\_ACEOF
26933 #define STAT_MACROS_BROKEN 1
26934 _ACEOF
26935
26936 fi
26937
26938 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26939 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
26940 if test "${ac_cv_header_stdc+set}" = set; then
26941   echo $ECHO_N "(cached) $ECHO_C" >&6
26942 else
26943   cat >conftest.$ac_ext <<_ACEOF
26944 /* confdefs.h.  */
26945 _ACEOF
26946 cat confdefs.h >>conftest.$ac_ext
26947 cat >>conftest.$ac_ext <<_ACEOF
26948 /* end confdefs.h.  */
26949 #include <stdlib.h>
26950 #include <stdarg.h>
26951 #include <string.h>
26952 #include <float.h>
26953
26954 int
26955 main ()
26956 {
26957
26958   ;
26959   return 0;
26960 }
26961 _ACEOF
26962 rm -f conftest.$ac_objext
26963 if { (ac_try="$ac_compile"
26964 case "(($ac_try" in
26965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26966   *) ac_try_echo=$ac_try;;
26967 esac
26968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26969   (eval "$ac_compile") 2>conftest.er1
26970   ac_status=$?
26971   grep -v '^ *+' conftest.er1 >conftest.err
26972   rm -f conftest.er1
26973   cat conftest.err >&5
26974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975   (exit $ac_status); } && {
26976          test -z "$ac_c_werror_flag" ||
26977          test ! -s conftest.err
26978        } && test -s conftest.$ac_objext; then
26979   ac_cv_header_stdc=yes
26980 else
26981   echo "$as_me: failed program was:" >&5
26982 sed 's/^/| /' conftest.$ac_ext >&5
26983
26984         ac_cv_header_stdc=no
26985 fi
26986
26987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26988
26989 if test $ac_cv_header_stdc = yes; then
26990   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26991   cat >conftest.$ac_ext <<_ACEOF
26992 /* confdefs.h.  */
26993 _ACEOF
26994 cat confdefs.h >>conftest.$ac_ext
26995 cat >>conftest.$ac_ext <<_ACEOF
26996 /* end confdefs.h.  */
26997 #include <string.h>
26998
26999 _ACEOF
27000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27001   $EGREP "memchr" >/dev/null 2>&1; then
27002   :
27003 else
27004   ac_cv_header_stdc=no
27005 fi
27006 rm -f conftest*
27007
27008 fi
27009
27010 if test $ac_cv_header_stdc = yes; then
27011   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27012   cat >conftest.$ac_ext <<_ACEOF
27013 /* confdefs.h.  */
27014 _ACEOF
27015 cat confdefs.h >>conftest.$ac_ext
27016 cat >>conftest.$ac_ext <<_ACEOF
27017 /* end confdefs.h.  */
27018 #include <stdlib.h>
27019
27020 _ACEOF
27021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27022   $EGREP "free" >/dev/null 2>&1; then
27023   :
27024 else
27025   ac_cv_header_stdc=no
27026 fi
27027 rm -f conftest*
27028
27029 fi
27030
27031 if test $ac_cv_header_stdc = yes; then
27032   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27033   if test "$cross_compiling" = yes; then
27034   :
27035 else
27036   cat >conftest.$ac_ext <<_ACEOF
27037 /* confdefs.h.  */
27038 _ACEOF
27039 cat confdefs.h >>conftest.$ac_ext
27040 cat >>conftest.$ac_ext <<_ACEOF
27041 /* end confdefs.h.  */
27042 #include <ctype.h>
27043 #include <stdlib.h>
27044 #if ((' ' & 0x0FF) == 0x020)
27045 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27046 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27047 #else
27048 # define ISLOWER(c) \
27049                    (('a' <= (c) && (c) <= 'i') \
27050                      || ('j' <= (c) && (c) <= 'r') \
27051                      || ('s' <= (c) && (c) <= 'z'))
27052 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27053 #endif
27054
27055 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27056 int
27057 main ()
27058 {
27059   int i;
27060   for (i = 0; i < 256; i++)
27061     if (XOR (islower (i), ISLOWER (i))
27062         || toupper (i) != TOUPPER (i))
27063       return 2;
27064   return 0;
27065 }
27066 _ACEOF
27067 rm -f conftest$ac_exeext
27068 if { (ac_try="$ac_link"
27069 case "(($ac_try" in
27070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27071   *) ac_try_echo=$ac_try;;
27072 esac
27073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27074   (eval "$ac_link") 2>&5
27075   ac_status=$?
27076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27078   { (case "(($ac_try" in
27079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27080   *) ac_try_echo=$ac_try;;
27081 esac
27082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27083   (eval "$ac_try") 2>&5
27084   ac_status=$?
27085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086   (exit $ac_status); }; }; then
27087   :
27088 else
27089   echo "$as_me: program exited with status $ac_status" >&5
27090 echo "$as_me: failed program was:" >&5
27091 sed 's/^/| /' conftest.$ac_ext >&5
27092
27093 ( exit $ac_status )
27094 ac_cv_header_stdc=no
27095 fi
27096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27097 fi
27098
27099
27100 fi
27101 fi
27102 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27103 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
27104 if test $ac_cv_header_stdc = yes; then
27105
27106 cat >>confdefs.h <<\_ACEOF
27107 #define STDC_HEADERS 1
27108 _ACEOF
27109
27110 fi
27111
27112 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27113 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
27114 if test "${ac_cv_header_sys_wait_h+set}" = set; then
27115   echo $ECHO_N "(cached) $ECHO_C" >&6
27116 else
27117   cat >conftest.$ac_ext <<_ACEOF
27118 /* confdefs.h.  */
27119 _ACEOF
27120 cat confdefs.h >>conftest.$ac_ext
27121 cat >>conftest.$ac_ext <<_ACEOF
27122 /* end confdefs.h.  */
27123 #include <sys/types.h>
27124 #include <sys/wait.h>
27125 #ifndef WEXITSTATUS
27126 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
27127 #endif
27128 #ifndef WIFEXITED
27129 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27130 #endif
27131
27132 int
27133 main ()
27134 {
27135   int s;
27136   wait (&s);
27137   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
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_sys_wait_h=yes
27160 else
27161   echo "$as_me: failed program was:" >&5
27162 sed 's/^/| /' conftest.$ac_ext >&5
27163
27164         ac_cv_header_sys_wait_h=no
27165 fi
27166
27167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27168 fi
27169 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27170 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
27171 if test $ac_cv_header_sys_wait_h = yes; then
27172
27173 cat >>confdefs.h <<\_ACEOF
27174 #define HAVE_SYS_WAIT_H 1
27175 _ACEOF
27176
27177 fi
27178
27179 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27180 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
27181 if test "${ac_cv_header_time+set}" = set; then
27182   echo $ECHO_N "(cached) $ECHO_C" >&6
27183 else
27184   cat >conftest.$ac_ext <<_ACEOF
27185 /* confdefs.h.  */
27186 _ACEOF
27187 cat confdefs.h >>conftest.$ac_ext
27188 cat >>conftest.$ac_ext <<_ACEOF
27189 /* end confdefs.h.  */
27190 #include <sys/types.h>
27191 #include <sys/time.h>
27192 #include <time.h>
27193
27194 int
27195 main ()
27196 {
27197 if ((struct tm *) 0)
27198 return 0;
27199   ;
27200   return 0;
27201 }
27202 _ACEOF
27203 rm -f conftest.$ac_objext
27204 if { (ac_try="$ac_compile"
27205 case "(($ac_try" in
27206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27207   *) ac_try_echo=$ac_try;;
27208 esac
27209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27210   (eval "$ac_compile") 2>conftest.er1
27211   ac_status=$?
27212   grep -v '^ *+' conftest.er1 >conftest.err
27213   rm -f conftest.er1
27214   cat conftest.err >&5
27215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216   (exit $ac_status); } && {
27217          test -z "$ac_c_werror_flag" ||
27218          test ! -s conftest.err
27219        } && test -s conftest.$ac_objext; then
27220   ac_cv_header_time=yes
27221 else
27222   echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27224
27225         ac_cv_header_time=no
27226 fi
27227
27228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27229 fi
27230 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27231 echo "${ECHO_T}$ac_cv_header_time" >&6; }
27232 if test $ac_cv_header_time = yes; then
27233
27234 cat >>confdefs.h <<\_ACEOF
27235 #define TIME_WITH_SYS_TIME 1
27236 _ACEOF
27237
27238 fi
27239
27240
27241
27242
27243
27244
27245
27246
27247 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27248 do
27249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27251   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27254   echo $ECHO_N "(cached) $ECHO_C" >&6
27255 fi
27256 ac_res=`eval echo '${'$as_ac_Header'}'`
27257                { echo "$as_me:$LINENO: result: $ac_res" >&5
27258 echo "${ECHO_T}$ac_res" >&6; }
27259 else
27260   # Is the header compilable?
27261 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27263 cat >conftest.$ac_ext <<_ACEOF
27264 /* confdefs.h.  */
27265 _ACEOF
27266 cat confdefs.h >>conftest.$ac_ext
27267 cat >>conftest.$ac_ext <<_ACEOF
27268 /* end confdefs.h.  */
27269 $ac_includes_default
27270 #include <$ac_header>
27271 _ACEOF
27272 rm -f conftest.$ac_objext
27273 if { (ac_try="$ac_compile"
27274 case "(($ac_try" in
27275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27276   *) ac_try_echo=$ac_try;;
27277 esac
27278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27279   (eval "$ac_compile") 2>conftest.er1
27280   ac_status=$?
27281   grep -v '^ *+' conftest.er1 >conftest.err
27282   rm -f conftest.er1
27283   cat conftest.err >&5
27284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285   (exit $ac_status); } && {
27286          test -z "$ac_c_werror_flag" ||
27287          test ! -s conftest.err
27288        } && test -s conftest.$ac_objext; then
27289   ac_header_compiler=yes
27290 else
27291   echo "$as_me: failed program was:" >&5
27292 sed 's/^/| /' conftest.$ac_ext >&5
27293
27294         ac_header_compiler=no
27295 fi
27296
27297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27299 echo "${ECHO_T}$ac_header_compiler" >&6; }
27300
27301 # Is the header present?
27302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27304 cat >conftest.$ac_ext <<_ACEOF
27305 /* confdefs.h.  */
27306 _ACEOF
27307 cat confdefs.h >>conftest.$ac_ext
27308 cat >>conftest.$ac_ext <<_ACEOF
27309 /* end confdefs.h.  */
27310 #include <$ac_header>
27311 _ACEOF
27312 if { (ac_try="$ac_cpp conftest.$ac_ext"
27313 case "(($ac_try" in
27314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27315   *) ac_try_echo=$ac_try;;
27316 esac
27317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27318   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27319   ac_status=$?
27320   grep -v '^ *+' conftest.er1 >conftest.err
27321   rm -f conftest.er1
27322   cat conftest.err >&5
27323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324   (exit $ac_status); } >/dev/null && {
27325          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27326          test ! -s conftest.err
27327        }; then
27328   ac_header_preproc=yes
27329 else
27330   echo "$as_me: failed program was:" >&5
27331 sed 's/^/| /' conftest.$ac_ext >&5
27332
27333   ac_header_preproc=no
27334 fi
27335
27336 rm -f conftest.err conftest.$ac_ext
27337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27338 echo "${ECHO_T}$ac_header_preproc" >&6; }
27339
27340 # So?  What about this header?
27341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27342   yes:no: )
27343     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27347     ac_header_preproc=yes
27348     ;;
27349   no:yes:* )
27350     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27352     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27353 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27354     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27356     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27357 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27360     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27362     ( cat <<\_ASBOX
27363 ## ----------------------------------- ##
27364 ## Report this to llvmbugs@cs.uiuc.edu ##
27365 ## ----------------------------------- ##
27366 _ASBOX
27367      ) | sed "s/^/$as_me: WARNING:     /" >&2
27368     ;;
27369 esac
27370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27373   echo $ECHO_N "(cached) $ECHO_C" >&6
27374 else
27375   eval "$as_ac_Header=\$ac_header_preproc"
27376 fi
27377 ac_res=`eval echo '${'$as_ac_Header'}'`
27378                { echo "$as_me:$LINENO: result: $ac_res" >&5
27379 echo "${ECHO_T}$ac_res" >&6; }
27380
27381 fi
27382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27383   cat >>confdefs.h <<_ACEOF
27384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27385 _ACEOF
27386
27387 fi
27388
27389 done
27390
27391
27392
27393
27394
27395
27396
27397 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27398 do
27399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27401   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27404   echo $ECHO_N "(cached) $ECHO_C" >&6
27405 fi
27406 ac_res=`eval echo '${'$as_ac_Header'}'`
27407                { echo "$as_me:$LINENO: result: $ac_res" >&5
27408 echo "${ECHO_T}$ac_res" >&6; }
27409 else
27410   # Is the header compilable?
27411 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27413 cat >conftest.$ac_ext <<_ACEOF
27414 /* confdefs.h.  */
27415 _ACEOF
27416 cat confdefs.h >>conftest.$ac_ext
27417 cat >>conftest.$ac_ext <<_ACEOF
27418 /* end confdefs.h.  */
27419 $ac_includes_default
27420 #include <$ac_header>
27421 _ACEOF
27422 rm -f conftest.$ac_objext
27423 if { (ac_try="$ac_compile"
27424 case "(($ac_try" in
27425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27426   *) ac_try_echo=$ac_try;;
27427 esac
27428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27429   (eval "$ac_compile") 2>conftest.er1
27430   ac_status=$?
27431   grep -v '^ *+' conftest.er1 >conftest.err
27432   rm -f conftest.er1
27433   cat conftest.err >&5
27434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27435   (exit $ac_status); } && {
27436          test -z "$ac_c_werror_flag" ||
27437          test ! -s conftest.err
27438        } && test -s conftest.$ac_objext; then
27439   ac_header_compiler=yes
27440 else
27441   echo "$as_me: failed program was:" >&5
27442 sed 's/^/| /' conftest.$ac_ext >&5
27443
27444         ac_header_compiler=no
27445 fi
27446
27447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27448 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27449 echo "${ECHO_T}$ac_header_compiler" >&6; }
27450
27451 # Is the header present?
27452 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27454 cat >conftest.$ac_ext <<_ACEOF
27455 /* confdefs.h.  */
27456 _ACEOF
27457 cat confdefs.h >>conftest.$ac_ext
27458 cat >>conftest.$ac_ext <<_ACEOF
27459 /* end confdefs.h.  */
27460 #include <$ac_header>
27461 _ACEOF
27462 if { (ac_try="$ac_cpp conftest.$ac_ext"
27463 case "(($ac_try" in
27464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27465   *) ac_try_echo=$ac_try;;
27466 esac
27467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27468   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27469   ac_status=$?
27470   grep -v '^ *+' conftest.er1 >conftest.err
27471   rm -f conftest.er1
27472   cat conftest.err >&5
27473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474   (exit $ac_status); } >/dev/null && {
27475          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27476          test ! -s conftest.err
27477        }; then
27478   ac_header_preproc=yes
27479 else
27480   echo "$as_me: failed program was:" >&5
27481 sed 's/^/| /' conftest.$ac_ext >&5
27482
27483   ac_header_preproc=no
27484 fi
27485
27486 rm -f conftest.err conftest.$ac_ext
27487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27488 echo "${ECHO_T}$ac_header_preproc" >&6; }
27489
27490 # So?  What about this header?
27491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27492   yes:no: )
27493     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27497     ac_header_preproc=yes
27498     ;;
27499   no:yes:* )
27500     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27502     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27503 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27504     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27506     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27507 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27510     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27512     ( cat <<\_ASBOX
27513 ## ----------------------------------- ##
27514 ## Report this to llvmbugs@cs.uiuc.edu ##
27515 ## ----------------------------------- ##
27516 _ASBOX
27517      ) | sed "s/^/$as_me: WARNING:     /" >&2
27518     ;;
27519 esac
27520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27523   echo $ECHO_N "(cached) $ECHO_C" >&6
27524 else
27525   eval "$as_ac_Header=\$ac_header_preproc"
27526 fi
27527 ac_res=`eval echo '${'$as_ac_Header'}'`
27528                { echo "$as_me:$LINENO: result: $ac_res" >&5
27529 echo "${ECHO_T}$ac_res" >&6; }
27530
27531 fi
27532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27533   cat >>confdefs.h <<_ACEOF
27534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27535 _ACEOF
27536
27537 fi
27538
27539 done
27540
27541
27542 for ac_header in windows.h
27543 do
27544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27546   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27549   echo $ECHO_N "(cached) $ECHO_C" >&6
27550 fi
27551 ac_res=`eval echo '${'$as_ac_Header'}'`
27552                { echo "$as_me:$LINENO: result: $ac_res" >&5
27553 echo "${ECHO_T}$ac_res" >&6; }
27554 else
27555   # Is the header compilable?
27556 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27558 cat >conftest.$ac_ext <<_ACEOF
27559 /* confdefs.h.  */
27560 _ACEOF
27561 cat confdefs.h >>conftest.$ac_ext
27562 cat >>conftest.$ac_ext <<_ACEOF
27563 /* end confdefs.h.  */
27564 $ac_includes_default
27565 #include <$ac_header>
27566 _ACEOF
27567 rm -f conftest.$ac_objext
27568 if { (ac_try="$ac_compile"
27569 case "(($ac_try" in
27570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27571   *) ac_try_echo=$ac_try;;
27572 esac
27573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27574   (eval "$ac_compile") 2>conftest.er1
27575   ac_status=$?
27576   grep -v '^ *+' conftest.er1 >conftest.err
27577   rm -f conftest.er1
27578   cat conftest.err >&5
27579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580   (exit $ac_status); } && {
27581          test -z "$ac_c_werror_flag" ||
27582          test ! -s conftest.err
27583        } && test -s conftest.$ac_objext; then
27584   ac_header_compiler=yes
27585 else
27586   echo "$as_me: failed program was:" >&5
27587 sed 's/^/| /' conftest.$ac_ext >&5
27588
27589         ac_header_compiler=no
27590 fi
27591
27592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27594 echo "${ECHO_T}$ac_header_compiler" >&6; }
27595
27596 # Is the header present?
27597 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27599 cat >conftest.$ac_ext <<_ACEOF
27600 /* confdefs.h.  */
27601 _ACEOF
27602 cat confdefs.h >>conftest.$ac_ext
27603 cat >>conftest.$ac_ext <<_ACEOF
27604 /* end confdefs.h.  */
27605 #include <$ac_header>
27606 _ACEOF
27607 if { (ac_try="$ac_cpp conftest.$ac_ext"
27608 case "(($ac_try" in
27609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27610   *) ac_try_echo=$ac_try;;
27611 esac
27612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27613   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27614   ac_status=$?
27615   grep -v '^ *+' conftest.er1 >conftest.err
27616   rm -f conftest.er1
27617   cat conftest.err >&5
27618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619   (exit $ac_status); } >/dev/null && {
27620          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27621          test ! -s conftest.err
27622        }; then
27623   ac_header_preproc=yes
27624 else
27625   echo "$as_me: failed program was:" >&5
27626 sed 's/^/| /' conftest.$ac_ext >&5
27627
27628   ac_header_preproc=no
27629 fi
27630
27631 rm -f conftest.err conftest.$ac_ext
27632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27633 echo "${ECHO_T}$ac_header_preproc" >&6; }
27634
27635 # So?  What about this header?
27636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27637   yes:no: )
27638     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27642     ac_header_preproc=yes
27643     ;;
27644   no:yes:* )
27645     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27647     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27648 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27649     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27651     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27652 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27655     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27657     ( cat <<\_ASBOX
27658 ## ----------------------------------- ##
27659 ## Report this to llvmbugs@cs.uiuc.edu ##
27660 ## ----------------------------------- ##
27661 _ASBOX
27662      ) | sed "s/^/$as_me: WARNING:     /" >&2
27663     ;;
27664 esac
27665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27668   echo $ECHO_N "(cached) $ECHO_C" >&6
27669 else
27670   eval "$as_ac_Header=\$ac_header_preproc"
27671 fi
27672 ac_res=`eval echo '${'$as_ac_Header'}'`
27673                { echo "$as_me:$LINENO: result: $ac_res" >&5
27674 echo "${ECHO_T}$ac_res" >&6; }
27675
27676 fi
27677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27678   cat >>confdefs.h <<_ACEOF
27679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27680 _ACEOF
27681
27682 fi
27683
27684 done
27685
27686
27687
27688
27689
27690 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
27691 do
27692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27694   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27697   echo $ECHO_N "(cached) $ECHO_C" >&6
27698 fi
27699 ac_res=`eval echo '${'$as_ac_Header'}'`
27700                { echo "$as_me:$LINENO: result: $ac_res" >&5
27701 echo "${ECHO_T}$ac_res" >&6; }
27702 else
27703   # Is the header compilable?
27704 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27706 cat >conftest.$ac_ext <<_ACEOF
27707 /* confdefs.h.  */
27708 _ACEOF
27709 cat confdefs.h >>conftest.$ac_ext
27710 cat >>conftest.$ac_ext <<_ACEOF
27711 /* end confdefs.h.  */
27712 $ac_includes_default
27713 #include <$ac_header>
27714 _ACEOF
27715 rm -f conftest.$ac_objext
27716 if { (ac_try="$ac_compile"
27717 case "(($ac_try" in
27718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27719   *) ac_try_echo=$ac_try;;
27720 esac
27721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27722   (eval "$ac_compile") 2>conftest.er1
27723   ac_status=$?
27724   grep -v '^ *+' conftest.er1 >conftest.err
27725   rm -f conftest.er1
27726   cat conftest.err >&5
27727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728   (exit $ac_status); } && {
27729          test -z "$ac_c_werror_flag" ||
27730          test ! -s conftest.err
27731        } && test -s conftest.$ac_objext; then
27732   ac_header_compiler=yes
27733 else
27734   echo "$as_me: failed program was:" >&5
27735 sed 's/^/| /' conftest.$ac_ext >&5
27736
27737         ac_header_compiler=no
27738 fi
27739
27740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27742 echo "${ECHO_T}$ac_header_compiler" >&6; }
27743
27744 # Is the header present?
27745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27747 cat >conftest.$ac_ext <<_ACEOF
27748 /* confdefs.h.  */
27749 _ACEOF
27750 cat confdefs.h >>conftest.$ac_ext
27751 cat >>conftest.$ac_ext <<_ACEOF
27752 /* end confdefs.h.  */
27753 #include <$ac_header>
27754 _ACEOF
27755 if { (ac_try="$ac_cpp conftest.$ac_ext"
27756 case "(($ac_try" in
27757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758   *) ac_try_echo=$ac_try;;
27759 esac
27760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27762   ac_status=$?
27763   grep -v '^ *+' conftest.er1 >conftest.err
27764   rm -f conftest.er1
27765   cat conftest.err >&5
27766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767   (exit $ac_status); } >/dev/null && {
27768          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27769          test ! -s conftest.err
27770        }; then
27771   ac_header_preproc=yes
27772 else
27773   echo "$as_me: failed program was:" >&5
27774 sed 's/^/| /' conftest.$ac_ext >&5
27775
27776   ac_header_preproc=no
27777 fi
27778
27779 rm -f conftest.err conftest.$ac_ext
27780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27781 echo "${ECHO_T}$ac_header_preproc" >&6; }
27782
27783 # So?  What about this header?
27784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27785   yes:no: )
27786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27790     ac_header_preproc=yes
27791     ;;
27792   no:yes:* )
27793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27795     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27796 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27797     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27799     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27800 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27803     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27805     ( cat <<\_ASBOX
27806 ## ----------------------------------- ##
27807 ## Report this to llvmbugs@cs.uiuc.edu ##
27808 ## ----------------------------------- ##
27809 _ASBOX
27810      ) | sed "s/^/$as_me: WARNING:     /" >&2
27811     ;;
27812 esac
27813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27816   echo $ECHO_N "(cached) $ECHO_C" >&6
27817 else
27818   eval "$as_ac_Header=\$ac_header_preproc"
27819 fi
27820 ac_res=`eval echo '${'$as_ac_Header'}'`
27821                { echo "$as_me:$LINENO: result: $ac_res" >&5
27822 echo "${ECHO_T}$ac_res" >&6; }
27823
27824 fi
27825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27826   cat >>confdefs.h <<_ACEOF
27827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27828 _ACEOF
27829
27830 fi
27831
27832 done
27833
27834
27835
27836
27837 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
27838 do
27839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27841   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27844   echo $ECHO_N "(cached) $ECHO_C" >&6
27845 fi
27846 ac_res=`eval echo '${'$as_ac_Header'}'`
27847                { echo "$as_me:$LINENO: result: $ac_res" >&5
27848 echo "${ECHO_T}$ac_res" >&6; }
27849 else
27850   # Is the header compilable?
27851 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27853 cat >conftest.$ac_ext <<_ACEOF
27854 /* confdefs.h.  */
27855 _ACEOF
27856 cat confdefs.h >>conftest.$ac_ext
27857 cat >>conftest.$ac_ext <<_ACEOF
27858 /* end confdefs.h.  */
27859 $ac_includes_default
27860 #include <$ac_header>
27861 _ACEOF
27862 rm -f conftest.$ac_objext
27863 if { (ac_try="$ac_compile"
27864 case "(($ac_try" in
27865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27866   *) ac_try_echo=$ac_try;;
27867 esac
27868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27869   (eval "$ac_compile") 2>conftest.er1
27870   ac_status=$?
27871   grep -v '^ *+' conftest.er1 >conftest.err
27872   rm -f conftest.er1
27873   cat conftest.err >&5
27874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875   (exit $ac_status); } && {
27876          test -z "$ac_c_werror_flag" ||
27877          test ! -s conftest.err
27878        } && test -s conftest.$ac_objext; then
27879   ac_header_compiler=yes
27880 else
27881   echo "$as_me: failed program was:" >&5
27882 sed 's/^/| /' conftest.$ac_ext >&5
27883
27884         ac_header_compiler=no
27885 fi
27886
27887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27889 echo "${ECHO_T}$ac_header_compiler" >&6; }
27890
27891 # Is the header present?
27892 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27894 cat >conftest.$ac_ext <<_ACEOF
27895 /* confdefs.h.  */
27896 _ACEOF
27897 cat confdefs.h >>conftest.$ac_ext
27898 cat >>conftest.$ac_ext <<_ACEOF
27899 /* end confdefs.h.  */
27900 #include <$ac_header>
27901 _ACEOF
27902 if { (ac_try="$ac_cpp conftest.$ac_ext"
27903 case "(($ac_try" in
27904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27905   *) ac_try_echo=$ac_try;;
27906 esac
27907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27908   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27909   ac_status=$?
27910   grep -v '^ *+' conftest.er1 >conftest.err
27911   rm -f conftest.er1
27912   cat conftest.err >&5
27913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27914   (exit $ac_status); } >/dev/null && {
27915          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27916          test ! -s conftest.err
27917        }; then
27918   ac_header_preproc=yes
27919 else
27920   echo "$as_me: failed program was:" >&5
27921 sed 's/^/| /' conftest.$ac_ext >&5
27922
27923   ac_header_preproc=no
27924 fi
27925
27926 rm -f conftest.err conftest.$ac_ext
27927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27928 echo "${ECHO_T}$ac_header_preproc" >&6; }
27929
27930 # So?  What about this header?
27931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27932   yes:no: )
27933     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27937     ac_header_preproc=yes
27938     ;;
27939   no:yes:* )
27940     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27942     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27943 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27944     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27946     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27947 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27950     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27952     ( cat <<\_ASBOX
27953 ## ----------------------------------- ##
27954 ## Report this to llvmbugs@cs.uiuc.edu ##
27955 ## ----------------------------------- ##
27956 _ASBOX
27957      ) | sed "s/^/$as_me: WARNING:     /" >&2
27958     ;;
27959 esac
27960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27963   echo $ECHO_N "(cached) $ECHO_C" >&6
27964 else
27965   eval "$as_ac_Header=\$ac_header_preproc"
27966 fi
27967 ac_res=`eval echo '${'$as_ac_Header'}'`
27968                { echo "$as_me:$LINENO: result: $ac_res" >&5
27969 echo "${ECHO_T}$ac_res" >&6; }
27970
27971 fi
27972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27973   cat >>confdefs.h <<_ACEOF
27974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27975 _ACEOF
27976
27977 fi
27978
27979 done
27980
27981 if test "$ENABLE_THREADS" -eq 1 ; then
27982
27983 for ac_header in pthread.h
27984 do
27985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27987   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27990   echo $ECHO_N "(cached) $ECHO_C" >&6
27991 fi
27992 ac_res=`eval echo '${'$as_ac_Header'}'`
27993                { echo "$as_me:$LINENO: result: $ac_res" >&5
27994 echo "${ECHO_T}$ac_res" >&6; }
27995 else
27996   # Is the header compilable?
27997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27999 cat >conftest.$ac_ext <<_ACEOF
28000 /* confdefs.h.  */
28001 _ACEOF
28002 cat confdefs.h >>conftest.$ac_ext
28003 cat >>conftest.$ac_ext <<_ACEOF
28004 /* end confdefs.h.  */
28005 $ac_includes_default
28006 #include <$ac_header>
28007 _ACEOF
28008 rm -f conftest.$ac_objext
28009 if { (ac_try="$ac_compile"
28010 case "(($ac_try" in
28011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28012   *) ac_try_echo=$ac_try;;
28013 esac
28014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28015   (eval "$ac_compile") 2>conftest.er1
28016   ac_status=$?
28017   grep -v '^ *+' conftest.er1 >conftest.err
28018   rm -f conftest.er1
28019   cat conftest.err >&5
28020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021   (exit $ac_status); } && {
28022          test -z "$ac_c_werror_flag" ||
28023          test ! -s conftest.err
28024        } && test -s conftest.$ac_objext; then
28025   ac_header_compiler=yes
28026 else
28027   echo "$as_me: failed program was:" >&5
28028 sed 's/^/| /' conftest.$ac_ext >&5
28029
28030         ac_header_compiler=no
28031 fi
28032
28033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28035 echo "${ECHO_T}$ac_header_compiler" >&6; }
28036
28037 # Is the header present?
28038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28040 cat >conftest.$ac_ext <<_ACEOF
28041 /* confdefs.h.  */
28042 _ACEOF
28043 cat confdefs.h >>conftest.$ac_ext
28044 cat >>conftest.$ac_ext <<_ACEOF
28045 /* end confdefs.h.  */
28046 #include <$ac_header>
28047 _ACEOF
28048 if { (ac_try="$ac_cpp conftest.$ac_ext"
28049 case "(($ac_try" in
28050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28051   *) ac_try_echo=$ac_try;;
28052 esac
28053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28055   ac_status=$?
28056   grep -v '^ *+' conftest.er1 >conftest.err
28057   rm -f conftest.er1
28058   cat conftest.err >&5
28059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060   (exit $ac_status); } >/dev/null && {
28061          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28062          test ! -s conftest.err
28063        }; then
28064   ac_header_preproc=yes
28065 else
28066   echo "$as_me: failed program was:" >&5
28067 sed 's/^/| /' conftest.$ac_ext >&5
28068
28069   ac_header_preproc=no
28070 fi
28071
28072 rm -f conftest.err conftest.$ac_ext
28073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28074 echo "${ECHO_T}$ac_header_preproc" >&6; }
28075
28076 # So?  What about this header?
28077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28078   yes:no: )
28079     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28083     ac_header_preproc=yes
28084     ;;
28085   no:yes:* )
28086     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28088     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28089 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28090     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28092     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28093 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28096     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28098     ( cat <<\_ASBOX
28099 ## ----------------------------------- ##
28100 ## Report this to llvmbugs@cs.uiuc.edu ##
28101 ## ----------------------------------- ##
28102 _ASBOX
28103      ) | sed "s/^/$as_me: WARNING:     /" >&2
28104     ;;
28105 esac
28106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28109   echo $ECHO_N "(cached) $ECHO_C" >&6
28110 else
28111   eval "$as_ac_Header=\$ac_header_preproc"
28112 fi
28113 ac_res=`eval echo '${'$as_ac_Header'}'`
28114                { echo "$as_me:$LINENO: result: $ac_res" >&5
28115 echo "${ECHO_T}$ac_res" >&6; }
28116
28117 fi
28118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28119   cat >>confdefs.h <<_ACEOF
28120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28121 _ACEOF
28122  HAVE_PTHREAD=1
28123
28124 else
28125   HAVE_PTHREAD=0
28126
28127 fi
28128
28129 done
28130
28131 else
28132   HAVE_PTHREAD=0
28133
28134 fi
28135
28136
28137
28138   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28139 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28140 if test "${ac_cv_huge_val_sanity+set}" = set; then
28141   echo $ECHO_N "(cached) $ECHO_C" >&6
28142 else
28143
28144     ac_ext=cpp
28145 ac_cpp='$CXXCPP $CPPFLAGS'
28146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28149
28150     CXXFLAGS=-pedantic
28151     if test "$cross_compiling" = yes; then
28152   ac_cv_huge_val_sanity=yes
28153 else
28154   cat >conftest.$ac_ext <<_ACEOF
28155 /* confdefs.h.  */
28156 _ACEOF
28157 cat confdefs.h >>conftest.$ac_ext
28158 cat >>conftest.$ac_ext <<_ACEOF
28159 /* end confdefs.h.  */
28160 #include <math.h>
28161 int
28162 main ()
28163 {
28164 double x = HUGE_VAL; return x != x;
28165   ;
28166   return 0;
28167 }
28168 _ACEOF
28169 rm -f conftest$ac_exeext
28170 if { (ac_try="$ac_link"
28171 case "(($ac_try" in
28172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173   *) ac_try_echo=$ac_try;;
28174 esac
28175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176   (eval "$ac_link") 2>&5
28177   ac_status=$?
28178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28180   { (case "(($ac_try" in
28181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28182   *) ac_try_echo=$ac_try;;
28183 esac
28184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28185   (eval "$ac_try") 2>&5
28186   ac_status=$?
28187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188   (exit $ac_status); }; }; then
28189   ac_cv_huge_val_sanity=yes
28190 else
28191   echo "$as_me: program exited with status $ac_status" >&5
28192 echo "$as_me: failed program was:" >&5
28193 sed 's/^/| /' conftest.$ac_ext >&5
28194
28195 ( exit $ac_status )
28196 ac_cv_huge_val_sanity=no
28197 fi
28198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28199 fi
28200
28201
28202     ac_ext=c
28203 ac_cpp='$CPP $CPPFLAGS'
28204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28207
28208
28209 fi
28210 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28211 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28212   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28213
28214
28215 { echo "$as_me:$LINENO: checking for pid_t" >&5
28216 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
28217 if test "${ac_cv_type_pid_t+set}" = set; then
28218   echo $ECHO_N "(cached) $ECHO_C" >&6
28219 else
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 $ac_includes_default
28227 typedef pid_t ac__type_new_;
28228 int
28229 main ()
28230 {
28231 if ((ac__type_new_ *) 0)
28232   return 0;
28233 if (sizeof (ac__type_new_))
28234   return 0;
28235   ;
28236   return 0;
28237 }
28238 _ACEOF
28239 rm -f conftest.$ac_objext
28240 if { (ac_try="$ac_compile"
28241 case "(($ac_try" in
28242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28243   *) ac_try_echo=$ac_try;;
28244 esac
28245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28246   (eval "$ac_compile") 2>conftest.er1
28247   ac_status=$?
28248   grep -v '^ *+' conftest.er1 >conftest.err
28249   rm -f conftest.er1
28250   cat conftest.err >&5
28251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252   (exit $ac_status); } && {
28253          test -z "$ac_c_werror_flag" ||
28254          test ! -s conftest.err
28255        } && test -s conftest.$ac_objext; then
28256   ac_cv_type_pid_t=yes
28257 else
28258   echo "$as_me: failed program was:" >&5
28259 sed 's/^/| /' conftest.$ac_ext >&5
28260
28261         ac_cv_type_pid_t=no
28262 fi
28263
28264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28265 fi
28266 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28267 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
28268 if test $ac_cv_type_pid_t = yes; then
28269   :
28270 else
28271
28272 cat >>confdefs.h <<_ACEOF
28273 #define pid_t int
28274 _ACEOF
28275
28276 fi
28277
28278 { echo "$as_me:$LINENO: checking for size_t" >&5
28279 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28280 if test "${ac_cv_type_size_t+set}" = set; then
28281   echo $ECHO_N "(cached) $ECHO_C" >&6
28282 else
28283   cat >conftest.$ac_ext <<_ACEOF
28284 /* confdefs.h.  */
28285 _ACEOF
28286 cat confdefs.h >>conftest.$ac_ext
28287 cat >>conftest.$ac_ext <<_ACEOF
28288 /* end confdefs.h.  */
28289 $ac_includes_default
28290 typedef size_t ac__type_new_;
28291 int
28292 main ()
28293 {
28294 if ((ac__type_new_ *) 0)
28295   return 0;
28296 if (sizeof (ac__type_new_))
28297   return 0;
28298   ;
28299   return 0;
28300 }
28301 _ACEOF
28302 rm -f conftest.$ac_objext
28303 if { (ac_try="$ac_compile"
28304 case "(($ac_try" in
28305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28306   *) ac_try_echo=$ac_try;;
28307 esac
28308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28309   (eval "$ac_compile") 2>conftest.er1
28310   ac_status=$?
28311   grep -v '^ *+' conftest.er1 >conftest.err
28312   rm -f conftest.er1
28313   cat conftest.err >&5
28314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315   (exit $ac_status); } && {
28316          test -z "$ac_c_werror_flag" ||
28317          test ! -s conftest.err
28318        } && test -s conftest.$ac_objext; then
28319   ac_cv_type_size_t=yes
28320 else
28321   echo "$as_me: failed program was:" >&5
28322 sed 's/^/| /' conftest.$ac_ext >&5
28323
28324         ac_cv_type_size_t=no
28325 fi
28326
28327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28328 fi
28329 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28330 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28331 if test $ac_cv_type_size_t = yes; then
28332   :
28333 else
28334
28335 cat >>confdefs.h <<_ACEOF
28336 #define size_t unsigned int
28337 _ACEOF
28338
28339 fi
28340
28341 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28342 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
28343 if test "${ac_cv_type_signal+set}" = set; then
28344   echo $ECHO_N "(cached) $ECHO_C" >&6
28345 else
28346   cat >conftest.$ac_ext <<_ACEOF
28347 /* confdefs.h.  */
28348 _ACEOF
28349 cat confdefs.h >>conftest.$ac_ext
28350 cat >>conftest.$ac_ext <<_ACEOF
28351 /* end confdefs.h.  */
28352 #include <sys/types.h>
28353 #include <signal.h>
28354
28355 int
28356 main ()
28357 {
28358 return *(signal (0, 0)) (0) == 1;
28359   ;
28360   return 0;
28361 }
28362 _ACEOF
28363 rm -f conftest.$ac_objext
28364 if { (ac_try="$ac_compile"
28365 case "(($ac_try" in
28366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28367   *) ac_try_echo=$ac_try;;
28368 esac
28369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28370   (eval "$ac_compile") 2>conftest.er1
28371   ac_status=$?
28372   grep -v '^ *+' conftest.er1 >conftest.err
28373   rm -f conftest.er1
28374   cat conftest.err >&5
28375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376   (exit $ac_status); } && {
28377          test -z "$ac_c_werror_flag" ||
28378          test ! -s conftest.err
28379        } && test -s conftest.$ac_objext; then
28380   ac_cv_type_signal=int
28381 else
28382   echo "$as_me: failed program was:" >&5
28383 sed 's/^/| /' conftest.$ac_ext >&5
28384
28385         ac_cv_type_signal=void
28386 fi
28387
28388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28389 fi
28390 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28391 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
28392
28393 cat >>confdefs.h <<_ACEOF
28394 #define RETSIGTYPE $ac_cv_type_signal
28395 _ACEOF
28396
28397
28398 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28399 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
28400 if test "${ac_cv_struct_tm+set}" = set; then
28401   echo $ECHO_N "(cached) $ECHO_C" >&6
28402 else
28403   cat >conftest.$ac_ext <<_ACEOF
28404 /* confdefs.h.  */
28405 _ACEOF
28406 cat confdefs.h >>conftest.$ac_ext
28407 cat >>conftest.$ac_ext <<_ACEOF
28408 /* end confdefs.h.  */
28409 #include <sys/types.h>
28410 #include <time.h>
28411
28412 int
28413 main ()
28414 {
28415 struct tm tm;
28416                                      int *p = &tm.tm_sec;
28417                                      return !p;
28418   ;
28419   return 0;
28420 }
28421 _ACEOF
28422 rm -f conftest.$ac_objext
28423 if { (ac_try="$ac_compile"
28424 case "(($ac_try" in
28425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28426   *) ac_try_echo=$ac_try;;
28427 esac
28428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28429   (eval "$ac_compile") 2>conftest.er1
28430   ac_status=$?
28431   grep -v '^ *+' conftest.er1 >conftest.err
28432   rm -f conftest.er1
28433   cat conftest.err >&5
28434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435   (exit $ac_status); } && {
28436          test -z "$ac_c_werror_flag" ||
28437          test ! -s conftest.err
28438        } && test -s conftest.$ac_objext; then
28439   ac_cv_struct_tm=time.h
28440 else
28441   echo "$as_me: failed program was:" >&5
28442 sed 's/^/| /' conftest.$ac_ext >&5
28443
28444         ac_cv_struct_tm=sys/time.h
28445 fi
28446
28447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28448 fi
28449 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28450 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
28451 if test $ac_cv_struct_tm = sys/time.h; then
28452
28453 cat >>confdefs.h <<\_ACEOF
28454 #define TM_IN_SYS_TIME 1
28455 _ACEOF
28456
28457 fi
28458
28459 { echo "$as_me:$LINENO: checking for int64_t" >&5
28460 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
28461 if test "${ac_cv_type_int64_t+set}" = set; then
28462   echo $ECHO_N "(cached) $ECHO_C" >&6
28463 else
28464   cat >conftest.$ac_ext <<_ACEOF
28465 /* confdefs.h.  */
28466 _ACEOF
28467 cat confdefs.h >>conftest.$ac_ext
28468 cat >>conftest.$ac_ext <<_ACEOF
28469 /* end confdefs.h.  */
28470 $ac_includes_default
28471 typedef int64_t ac__type_new_;
28472 int
28473 main ()
28474 {
28475 if ((ac__type_new_ *) 0)
28476   return 0;
28477 if (sizeof (ac__type_new_))
28478   return 0;
28479   ;
28480   return 0;
28481 }
28482 _ACEOF
28483 rm -f conftest.$ac_objext
28484 if { (ac_try="$ac_compile"
28485 case "(($ac_try" in
28486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487   *) ac_try_echo=$ac_try;;
28488 esac
28489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490   (eval "$ac_compile") 2>conftest.er1
28491   ac_status=$?
28492   grep -v '^ *+' conftest.er1 >conftest.err
28493   rm -f conftest.er1
28494   cat conftest.err >&5
28495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496   (exit $ac_status); } && {
28497          test -z "$ac_c_werror_flag" ||
28498          test ! -s conftest.err
28499        } && test -s conftest.$ac_objext; then
28500   ac_cv_type_int64_t=yes
28501 else
28502   echo "$as_me: failed program was:" >&5
28503 sed 's/^/| /' conftest.$ac_ext >&5
28504
28505         ac_cv_type_int64_t=no
28506 fi
28507
28508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28509 fi
28510 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28511 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
28512 if test $ac_cv_type_int64_t = yes; then
28513
28514 cat >>confdefs.h <<_ACEOF
28515 #define HAVE_INT64_T 1
28516 _ACEOF
28517
28518
28519 else
28520   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28521 echo "$as_me: error: Type int64_t required but not found" >&2;}
28522    { (exit 1); exit 1; }; }
28523 fi
28524
28525 { echo "$as_me:$LINENO: checking for uint64_t" >&5
28526 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
28527 if test "${ac_cv_type_uint64_t+set}" = set; then
28528   echo $ECHO_N "(cached) $ECHO_C" >&6
28529 else
28530   cat >conftest.$ac_ext <<_ACEOF
28531 /* confdefs.h.  */
28532 _ACEOF
28533 cat confdefs.h >>conftest.$ac_ext
28534 cat >>conftest.$ac_ext <<_ACEOF
28535 /* end confdefs.h.  */
28536 $ac_includes_default
28537 typedef uint64_t ac__type_new_;
28538 int
28539 main ()
28540 {
28541 if ((ac__type_new_ *) 0)
28542   return 0;
28543 if (sizeof (ac__type_new_))
28544   return 0;
28545   ;
28546   return 0;
28547 }
28548 _ACEOF
28549 rm -f conftest.$ac_objext
28550 if { (ac_try="$ac_compile"
28551 case "(($ac_try" in
28552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28553   *) ac_try_echo=$ac_try;;
28554 esac
28555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28556   (eval "$ac_compile") 2>conftest.er1
28557   ac_status=$?
28558   grep -v '^ *+' conftest.er1 >conftest.err
28559   rm -f conftest.er1
28560   cat conftest.err >&5
28561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562   (exit $ac_status); } && {
28563          test -z "$ac_c_werror_flag" ||
28564          test ! -s conftest.err
28565        } && test -s conftest.$ac_objext; then
28566   ac_cv_type_uint64_t=yes
28567 else
28568   echo "$as_me: failed program was:" >&5
28569 sed 's/^/| /' conftest.$ac_ext >&5
28570
28571         ac_cv_type_uint64_t=no
28572 fi
28573
28574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28575 fi
28576 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28577 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
28578 if test $ac_cv_type_uint64_t = yes; then
28579
28580 cat >>confdefs.h <<_ACEOF
28581 #define HAVE_UINT64_T 1
28582 _ACEOF
28583
28584
28585 else
28586   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
28587 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
28588 if test "${ac_cv_type_u_int64_t+set}" = set; then
28589   echo $ECHO_N "(cached) $ECHO_C" >&6
28590 else
28591   cat >conftest.$ac_ext <<_ACEOF
28592 /* confdefs.h.  */
28593 _ACEOF
28594 cat confdefs.h >>conftest.$ac_ext
28595 cat >>conftest.$ac_ext <<_ACEOF
28596 /* end confdefs.h.  */
28597 $ac_includes_default
28598 typedef u_int64_t ac__type_new_;
28599 int
28600 main ()
28601 {
28602 if ((ac__type_new_ *) 0)
28603   return 0;
28604 if (sizeof (ac__type_new_))
28605   return 0;
28606   ;
28607   return 0;
28608 }
28609 _ACEOF
28610 rm -f conftest.$ac_objext
28611 if { (ac_try="$ac_compile"
28612 case "(($ac_try" in
28613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28614   *) ac_try_echo=$ac_try;;
28615 esac
28616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28617   (eval "$ac_compile") 2>conftest.er1
28618   ac_status=$?
28619   grep -v '^ *+' conftest.er1 >conftest.err
28620   rm -f conftest.er1
28621   cat conftest.err >&5
28622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623   (exit $ac_status); } && {
28624          test -z "$ac_c_werror_flag" ||
28625          test ! -s conftest.err
28626        } && test -s conftest.$ac_objext; then
28627   ac_cv_type_u_int64_t=yes
28628 else
28629   echo "$as_me: failed program was:" >&5
28630 sed 's/^/| /' conftest.$ac_ext >&5
28631
28632         ac_cv_type_u_int64_t=no
28633 fi
28634
28635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28636 fi
28637 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28638 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
28639 if test $ac_cv_type_u_int64_t = yes; then
28640
28641 cat >>confdefs.h <<_ACEOF
28642 #define HAVE_U_INT64_T 1
28643 _ACEOF
28644
28645
28646 else
28647   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28648 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28649    { (exit 1); exit 1; }; }
28650 fi
28651
28652 fi
28653
28654
28655
28656
28657
28658
28659
28660
28661
28662
28663 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28664 do
28665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28669   echo $ECHO_N "(cached) $ECHO_C" >&6
28670 else
28671   cat >conftest.$ac_ext <<_ACEOF
28672 /* confdefs.h.  */
28673 _ACEOF
28674 cat confdefs.h >>conftest.$ac_ext
28675 cat >>conftest.$ac_ext <<_ACEOF
28676 /* end confdefs.h.  */
28677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28679 #define $ac_func innocuous_$ac_func
28680
28681 /* System header to define __stub macros and hopefully few prototypes,
28682     which can conflict with char $ac_func (); below.
28683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28684     <limits.h> exists even on freestanding compilers.  */
28685
28686 #ifdef __STDC__
28687 # include <limits.h>
28688 #else
28689 # include <assert.h>
28690 #endif
28691
28692 #undef $ac_func
28693
28694 /* Override any GCC internal prototype to avoid an error.
28695    Use char because int might match the return type of a GCC
28696    builtin and then its argument prototype would still apply.  */
28697 #ifdef __cplusplus
28698 extern "C"
28699 #endif
28700 char $ac_func ();
28701 /* The GNU C library defines this for functions which it implements
28702     to always fail with ENOSYS.  Some functions are actually named
28703     something starting with __ and the normal name is an alias.  */
28704 #if defined __stub_$ac_func || defined __stub___$ac_func
28705 choke me
28706 #endif
28707
28708 int
28709 main ()
28710 {
28711 return $ac_func ();
28712   ;
28713   return 0;
28714 }
28715 _ACEOF
28716 rm -f conftest.$ac_objext conftest$ac_exeext
28717 if { (ac_try="$ac_link"
28718 case "(($ac_try" in
28719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28720   *) ac_try_echo=$ac_try;;
28721 esac
28722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28723   (eval "$ac_link") 2>conftest.er1
28724   ac_status=$?
28725   grep -v '^ *+' conftest.er1 >conftest.err
28726   rm -f conftest.er1
28727   cat conftest.err >&5
28728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729   (exit $ac_status); } && {
28730          test -z "$ac_c_werror_flag" ||
28731          test ! -s conftest.err
28732        } && test -s conftest$ac_exeext &&
28733        $as_test_x conftest$ac_exeext; then
28734   eval "$as_ac_var=yes"
28735 else
28736   echo "$as_me: failed program was:" >&5
28737 sed 's/^/| /' conftest.$ac_ext >&5
28738
28739         eval "$as_ac_var=no"
28740 fi
28741
28742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28743       conftest$ac_exeext conftest.$ac_ext
28744 fi
28745 ac_res=`eval echo '${'$as_ac_var'}'`
28746                { echo "$as_me:$LINENO: result: $ac_res" >&5
28747 echo "${ECHO_T}$ac_res" >&6; }
28748 if test `eval echo '${'$as_ac_var'}'` = yes; then
28749   cat >>confdefs.h <<_ACEOF
28750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28751 _ACEOF
28752
28753 fi
28754 done
28755
28756
28757
28758
28759
28760 for ac_func in powf fmodf strtof round
28761 do
28762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28763 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28765 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28766   echo $ECHO_N "(cached) $ECHO_C" >&6
28767 else
28768   cat >conftest.$ac_ext <<_ACEOF
28769 /* confdefs.h.  */
28770 _ACEOF
28771 cat confdefs.h >>conftest.$ac_ext
28772 cat >>conftest.$ac_ext <<_ACEOF
28773 /* end confdefs.h.  */
28774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28776 #define $ac_func innocuous_$ac_func
28777
28778 /* System header to define __stub macros and hopefully few prototypes,
28779     which can conflict with char $ac_func (); below.
28780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28781     <limits.h> exists even on freestanding compilers.  */
28782
28783 #ifdef __STDC__
28784 # include <limits.h>
28785 #else
28786 # include <assert.h>
28787 #endif
28788
28789 #undef $ac_func
28790
28791 /* Override any GCC internal prototype to avoid an error.
28792    Use char because int might match the return type of a GCC
28793    builtin and then its argument prototype would still apply.  */
28794 #ifdef __cplusplus
28795 extern "C"
28796 #endif
28797 char $ac_func ();
28798 /* The GNU C library defines this for functions which it implements
28799     to always fail with ENOSYS.  Some functions are actually named
28800     something starting with __ and the normal name is an alias.  */
28801 #if defined __stub_$ac_func || defined __stub___$ac_func
28802 choke me
28803 #endif
28804
28805 int
28806 main ()
28807 {
28808 return $ac_func ();
28809   ;
28810   return 0;
28811 }
28812 _ACEOF
28813 rm -f conftest.$ac_objext conftest$ac_exeext
28814 if { (ac_try="$ac_link"
28815 case "(($ac_try" in
28816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28817   *) ac_try_echo=$ac_try;;
28818 esac
28819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28820   (eval "$ac_link") 2>conftest.er1
28821   ac_status=$?
28822   grep -v '^ *+' conftest.er1 >conftest.err
28823   rm -f conftest.er1
28824   cat conftest.err >&5
28825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826   (exit $ac_status); } && {
28827          test -z "$ac_c_werror_flag" ||
28828          test ! -s conftest.err
28829        } && test -s conftest$ac_exeext &&
28830        $as_test_x conftest$ac_exeext; then
28831   eval "$as_ac_var=yes"
28832 else
28833   echo "$as_me: failed program was:" >&5
28834 sed 's/^/| /' conftest.$ac_ext >&5
28835
28836         eval "$as_ac_var=no"
28837 fi
28838
28839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28840       conftest$ac_exeext conftest.$ac_ext
28841 fi
28842 ac_res=`eval echo '${'$as_ac_var'}'`
28843                { echo "$as_me:$LINENO: result: $ac_res" >&5
28844 echo "${ECHO_T}$ac_res" >&6; }
28845 if test `eval echo '${'$as_ac_var'}'` = yes; then
28846   cat >>confdefs.h <<_ACEOF
28847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28848 _ACEOF
28849
28850 fi
28851 done
28852
28853
28854
28855
28856
28857
28858 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
28859 do
28860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28864   echo $ECHO_N "(cached) $ECHO_C" >&6
28865 else
28866   cat >conftest.$ac_ext <<_ACEOF
28867 /* confdefs.h.  */
28868 _ACEOF
28869 cat confdefs.h >>conftest.$ac_ext
28870 cat >>conftest.$ac_ext <<_ACEOF
28871 /* end confdefs.h.  */
28872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28874 #define $ac_func innocuous_$ac_func
28875
28876 /* System header to define __stub macros and hopefully few prototypes,
28877     which can conflict with char $ac_func (); below.
28878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28879     <limits.h> exists even on freestanding compilers.  */
28880
28881 #ifdef __STDC__
28882 # include <limits.h>
28883 #else
28884 # include <assert.h>
28885 #endif
28886
28887 #undef $ac_func
28888
28889 /* Override any GCC internal prototype to avoid an error.
28890    Use char because int might match the return type of a GCC
28891    builtin and then its argument prototype would still apply.  */
28892 #ifdef __cplusplus
28893 extern "C"
28894 #endif
28895 char $ac_func ();
28896 /* The GNU C library defines this for functions which it implements
28897     to always fail with ENOSYS.  Some functions are actually named
28898     something starting with __ and the normal name is an alias.  */
28899 #if defined __stub_$ac_func || defined __stub___$ac_func
28900 choke me
28901 #endif
28902
28903 int
28904 main ()
28905 {
28906 return $ac_func ();
28907   ;
28908   return 0;
28909 }
28910 _ACEOF
28911 rm -f conftest.$ac_objext conftest$ac_exeext
28912 if { (ac_try="$ac_link"
28913 case "(($ac_try" in
28914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28915   *) ac_try_echo=$ac_try;;
28916 esac
28917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28918   (eval "$ac_link") 2>conftest.er1
28919   ac_status=$?
28920   grep -v '^ *+' conftest.er1 >conftest.err
28921   rm -f conftest.er1
28922   cat conftest.err >&5
28923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924   (exit $ac_status); } && {
28925          test -z "$ac_c_werror_flag" ||
28926          test ! -s conftest.err
28927        } && test -s conftest$ac_exeext &&
28928        $as_test_x conftest$ac_exeext; then
28929   eval "$as_ac_var=yes"
28930 else
28931   echo "$as_me: failed program was:" >&5
28932 sed 's/^/| /' conftest.$ac_ext >&5
28933
28934         eval "$as_ac_var=no"
28935 fi
28936
28937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28938       conftest$ac_exeext conftest.$ac_ext
28939 fi
28940 ac_res=`eval echo '${'$as_ac_var'}'`
28941                { echo "$as_me:$LINENO: result: $ac_res" >&5
28942 echo "${ECHO_T}$ac_res" >&6; }
28943 if test `eval echo '${'$as_ac_var'}'` = yes; then
28944   cat >>confdefs.h <<_ACEOF
28945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28946 _ACEOF
28947
28948 fi
28949 done
28950
28951
28952
28953
28954 for ac_func in isatty mkdtemp mkstemp
28955 do
28956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28960   echo $ECHO_N "(cached) $ECHO_C" >&6
28961 else
28962   cat >conftest.$ac_ext <<_ACEOF
28963 /* confdefs.h.  */
28964 _ACEOF
28965 cat confdefs.h >>conftest.$ac_ext
28966 cat >>conftest.$ac_ext <<_ACEOF
28967 /* end confdefs.h.  */
28968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28970 #define $ac_func innocuous_$ac_func
28971
28972 /* System header to define __stub macros and hopefully few prototypes,
28973     which can conflict with char $ac_func (); below.
28974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28975     <limits.h> exists even on freestanding compilers.  */
28976
28977 #ifdef __STDC__
28978 # include <limits.h>
28979 #else
28980 # include <assert.h>
28981 #endif
28982
28983 #undef $ac_func
28984
28985 /* Override any GCC internal prototype to avoid an error.
28986    Use char because int might match the return type of a GCC
28987    builtin and then its argument prototype would still apply.  */
28988 #ifdef __cplusplus
28989 extern "C"
28990 #endif
28991 char $ac_func ();
28992 /* The GNU C library defines this for functions which it implements
28993     to always fail with ENOSYS.  Some functions are actually named
28994     something starting with __ and the normal name is an alias.  */
28995 #if defined __stub_$ac_func || defined __stub___$ac_func
28996 choke me
28997 #endif
28998
28999 int
29000 main ()
29001 {
29002 return $ac_func ();
29003   ;
29004   return 0;
29005 }
29006 _ACEOF
29007 rm -f conftest.$ac_objext conftest$ac_exeext
29008 if { (ac_try="$ac_link"
29009 case "(($ac_try" in
29010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29011   *) ac_try_echo=$ac_try;;
29012 esac
29013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29014   (eval "$ac_link") 2>conftest.er1
29015   ac_status=$?
29016   grep -v '^ *+' conftest.er1 >conftest.err
29017   rm -f conftest.er1
29018   cat conftest.err >&5
29019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020   (exit $ac_status); } && {
29021          test -z "$ac_c_werror_flag" ||
29022          test ! -s conftest.err
29023        } && test -s conftest$ac_exeext &&
29024        $as_test_x conftest$ac_exeext; then
29025   eval "$as_ac_var=yes"
29026 else
29027   echo "$as_me: failed program was:" >&5
29028 sed 's/^/| /' conftest.$ac_ext >&5
29029
29030         eval "$as_ac_var=no"
29031 fi
29032
29033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29034       conftest$ac_exeext conftest.$ac_ext
29035 fi
29036 ac_res=`eval echo '${'$as_ac_var'}'`
29037                { echo "$as_me:$LINENO: result: $ac_res" >&5
29038 echo "${ECHO_T}$ac_res" >&6; }
29039 if test `eval echo '${'$as_ac_var'}'` = yes; then
29040   cat >>confdefs.h <<_ACEOF
29041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29042 _ACEOF
29043
29044 fi
29045 done
29046
29047
29048
29049
29050
29051
29052
29053
29054 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
29055 do
29056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29057 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29060   echo $ECHO_N "(cached) $ECHO_C" >&6
29061 else
29062   cat >conftest.$ac_ext <<_ACEOF
29063 /* confdefs.h.  */
29064 _ACEOF
29065 cat confdefs.h >>conftest.$ac_ext
29066 cat >>conftest.$ac_ext <<_ACEOF
29067 /* end confdefs.h.  */
29068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29070 #define $ac_func innocuous_$ac_func
29071
29072 /* System header to define __stub macros and hopefully few prototypes,
29073     which can conflict with char $ac_func (); below.
29074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29075     <limits.h> exists even on freestanding compilers.  */
29076
29077 #ifdef __STDC__
29078 # include <limits.h>
29079 #else
29080 # include <assert.h>
29081 #endif
29082
29083 #undef $ac_func
29084
29085 /* Override any GCC internal prototype to avoid an error.
29086    Use char because int might match the return type of a GCC
29087    builtin and then its argument prototype would still apply.  */
29088 #ifdef __cplusplus
29089 extern "C"
29090 #endif
29091 char $ac_func ();
29092 /* The GNU C library defines this for functions which it implements
29093     to always fail with ENOSYS.  Some functions are actually named
29094     something starting with __ and the normal name is an alias.  */
29095 #if defined __stub_$ac_func || defined __stub___$ac_func
29096 choke me
29097 #endif
29098
29099 int
29100 main ()
29101 {
29102 return $ac_func ();
29103   ;
29104   return 0;
29105 }
29106 _ACEOF
29107 rm -f conftest.$ac_objext conftest$ac_exeext
29108 if { (ac_try="$ac_link"
29109 case "(($ac_try" in
29110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29111   *) ac_try_echo=$ac_try;;
29112 esac
29113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29114   (eval "$ac_link") 2>conftest.er1
29115   ac_status=$?
29116   grep -v '^ *+' conftest.er1 >conftest.err
29117   rm -f conftest.er1
29118   cat conftest.err >&5
29119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120   (exit $ac_status); } && {
29121          test -z "$ac_c_werror_flag" ||
29122          test ! -s conftest.err
29123        } && test -s conftest$ac_exeext &&
29124        $as_test_x conftest$ac_exeext; then
29125   eval "$as_ac_var=yes"
29126 else
29127   echo "$as_me: failed program was:" >&5
29128 sed 's/^/| /' conftest.$ac_ext >&5
29129
29130         eval "$as_ac_var=no"
29131 fi
29132
29133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29134       conftest$ac_exeext conftest.$ac_ext
29135 fi
29136 ac_res=`eval echo '${'$as_ac_var'}'`
29137                { echo "$as_me:$LINENO: result: $ac_res" >&5
29138 echo "${ECHO_T}$ac_res" >&6; }
29139 if test `eval echo '${'$as_ac_var'}'` = yes; then
29140   cat >>confdefs.h <<_ACEOF
29141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29142 _ACEOF
29143
29144 fi
29145 done
29146
29147
29148
29149
29150
29151 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
29152 do
29153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29154 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29157   echo $ECHO_N "(cached) $ECHO_C" >&6
29158 else
29159   cat >conftest.$ac_ext <<_ACEOF
29160 /* confdefs.h.  */
29161 _ACEOF
29162 cat confdefs.h >>conftest.$ac_ext
29163 cat >>conftest.$ac_ext <<_ACEOF
29164 /* end confdefs.h.  */
29165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29167 #define $ac_func innocuous_$ac_func
29168
29169 /* System header to define __stub macros and hopefully few prototypes,
29170     which can conflict with char $ac_func (); below.
29171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29172     <limits.h> exists even on freestanding compilers.  */
29173
29174 #ifdef __STDC__
29175 # include <limits.h>
29176 #else
29177 # include <assert.h>
29178 #endif
29179
29180 #undef $ac_func
29181
29182 /* Override any GCC internal prototype to avoid an error.
29183    Use char because int might match the return type of a GCC
29184    builtin and then its argument prototype would still apply.  */
29185 #ifdef __cplusplus
29186 extern "C"
29187 #endif
29188 char $ac_func ();
29189 /* The GNU C library defines this for functions which it implements
29190     to always fail with ENOSYS.  Some functions are actually named
29191     something starting with __ and the normal name is an alias.  */
29192 #if defined __stub_$ac_func || defined __stub___$ac_func
29193 choke me
29194 #endif
29195
29196 int
29197 main ()
29198 {
29199 return $ac_func ();
29200   ;
29201   return 0;
29202 }
29203 _ACEOF
29204 rm -f conftest.$ac_objext conftest$ac_exeext
29205 if { (ac_try="$ac_link"
29206 case "(($ac_try" in
29207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29208   *) ac_try_echo=$ac_try;;
29209 esac
29210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29211   (eval "$ac_link") 2>conftest.er1
29212   ac_status=$?
29213   grep -v '^ *+' conftest.er1 >conftest.err
29214   rm -f conftest.er1
29215   cat conftest.err >&5
29216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217   (exit $ac_status); } && {
29218          test -z "$ac_c_werror_flag" ||
29219          test ! -s conftest.err
29220        } && test -s conftest$ac_exeext &&
29221        $as_test_x conftest$ac_exeext; then
29222   eval "$as_ac_var=yes"
29223 else
29224   echo "$as_me: failed program was:" >&5
29225 sed 's/^/| /' conftest.$ac_ext >&5
29226
29227         eval "$as_ac_var=no"
29228 fi
29229
29230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29231       conftest$ac_exeext conftest.$ac_ext
29232 fi
29233 ac_res=`eval echo '${'$as_ac_var'}'`
29234                { echo "$as_me:$LINENO: result: $ac_res" >&5
29235 echo "${ECHO_T}$ac_res" >&6; }
29236 if test `eval echo '${'$as_ac_var'}'` = yes; then
29237   cat >>confdefs.h <<_ACEOF
29238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29239 _ACEOF
29240
29241 fi
29242 done
29243
29244
29245
29246
29247
29248 for ac_func in setjmp longjmp sigsetjmp siglongjmp
29249 do
29250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29254   echo $ECHO_N "(cached) $ECHO_C" >&6
29255 else
29256   cat >conftest.$ac_ext <<_ACEOF
29257 /* confdefs.h.  */
29258 _ACEOF
29259 cat confdefs.h >>conftest.$ac_ext
29260 cat >>conftest.$ac_ext <<_ACEOF
29261 /* end confdefs.h.  */
29262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29263    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29264 #define $ac_func innocuous_$ac_func
29265
29266 /* System header to define __stub macros and hopefully few prototypes,
29267     which can conflict with char $ac_func (); below.
29268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29269     <limits.h> exists even on freestanding compilers.  */
29270
29271 #ifdef __STDC__
29272 # include <limits.h>
29273 #else
29274 # include <assert.h>
29275 #endif
29276
29277 #undef $ac_func
29278
29279 /* Override any GCC internal prototype to avoid an error.
29280    Use char because int might match the return type of a GCC
29281    builtin and then its argument prototype would still apply.  */
29282 #ifdef __cplusplus
29283 extern "C"
29284 #endif
29285 char $ac_func ();
29286 /* The GNU C library defines this for functions which it implements
29287     to always fail with ENOSYS.  Some functions are actually named
29288     something starting with __ and the normal name is an alias.  */
29289 #if defined __stub_$ac_func || defined __stub___$ac_func
29290 choke me
29291 #endif
29292
29293 int
29294 main ()
29295 {
29296 return $ac_func ();
29297   ;
29298   return 0;
29299 }
29300 _ACEOF
29301 rm -f conftest.$ac_objext conftest$ac_exeext
29302 if { (ac_try="$ac_link"
29303 case "(($ac_try" in
29304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29305   *) ac_try_echo=$ac_try;;
29306 esac
29307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29308   (eval "$ac_link") 2>conftest.er1
29309   ac_status=$?
29310   grep -v '^ *+' conftest.er1 >conftest.err
29311   rm -f conftest.er1
29312   cat conftest.err >&5
29313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314   (exit $ac_status); } && {
29315          test -z "$ac_c_werror_flag" ||
29316          test ! -s conftest.err
29317        } && test -s conftest$ac_exeext &&
29318        $as_test_x conftest$ac_exeext; then
29319   eval "$as_ac_var=yes"
29320 else
29321   echo "$as_me: failed program was:" >&5
29322 sed 's/^/| /' conftest.$ac_ext >&5
29323
29324         eval "$as_ac_var=no"
29325 fi
29326
29327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29328       conftest$ac_exeext conftest.$ac_ext
29329 fi
29330 ac_res=`eval echo '${'$as_ac_var'}'`
29331                { echo "$as_me:$LINENO: result: $ac_res" >&5
29332 echo "${ECHO_T}$ac_res" >&6; }
29333 if test `eval echo '${'$as_ac_var'}'` = yes; then
29334   cat >>confdefs.h <<_ACEOF
29335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29336 _ACEOF
29337
29338 fi
29339 done
29340
29341 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29342 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
29343 if test "${llvm_cv_c_printf_a+set}" = set; then
29344   echo $ECHO_N "(cached) $ECHO_C" >&6
29345 else
29346   ac_ext=c
29347 ac_cpp='$CPP $CPPFLAGS'
29348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29351
29352  if test "$cross_compiling" = yes; then
29353   llvmac_cv_c_printf_a=no
29354 else
29355   cat >conftest.$ac_ext <<_ACEOF
29356
29357   /* confdefs.h.  */
29358 _ACEOF
29359 cat confdefs.h >>conftest.$ac_ext
29360 cat >>conftest.$ac_ext <<_ACEOF
29361 /* end confdefs.h.  */
29362
29363 #include <stdio.h>
29364 #include <stdlib.h>
29365
29366 int
29367 main ()
29368 {
29369
29370 volatile double A, B;
29371 char Buffer[100];
29372 A = 1;
29373 A /= 10.0;
29374 sprintf(Buffer, "%a", A);
29375 B = atof(Buffer);
29376 if (A != B)
29377   return (1);
29378 if (A != 0x1.999999999999ap-4)
29379   return (1);
29380 return (0);
29381   ;
29382   return 0;
29383 }
29384 _ACEOF
29385 rm -f conftest$ac_exeext
29386 if { (ac_try="$ac_link"
29387 case "(($ac_try" in
29388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29389   *) ac_try_echo=$ac_try;;
29390 esac
29391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29392   (eval "$ac_link") 2>&5
29393   ac_status=$?
29394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29396   { (case "(($ac_try" in
29397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29398   *) ac_try_echo=$ac_try;;
29399 esac
29400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29401   (eval "$ac_try") 2>&5
29402   ac_status=$?
29403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404   (exit $ac_status); }; }; then
29405   llvm_cv_c_printf_a=yes
29406 else
29407   echo "$as_me: program exited with status $ac_status" >&5
29408 echo "$as_me: failed program was:" >&5
29409 sed 's/^/| /' conftest.$ac_ext >&5
29410
29411 ( exit $ac_status )
29412 llvmac_cv_c_printf_a=no
29413 fi
29414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29415 fi
29416
29417
29418  ac_ext=c
29419 ac_cpp='$CPP $CPPFLAGS'
29420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29423
29424 fi
29425 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29426 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
29427  if test "$llvm_cv_c_printf_a" = "yes"; then
29428
29429 cat >>confdefs.h <<\_ACEOF
29430 #define HAVE_PRINTF_A 1
29431 _ACEOF
29432
29433  fi
29434
29435 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29436 # for constant arguments.  Useless!
29437 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
29438 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
29439 if test "${ac_cv_working_alloca_h+set}" = set; then
29440   echo $ECHO_N "(cached) $ECHO_C" >&6
29441 else
29442   cat >conftest.$ac_ext <<_ACEOF
29443 /* confdefs.h.  */
29444 _ACEOF
29445 cat confdefs.h >>conftest.$ac_ext
29446 cat >>conftest.$ac_ext <<_ACEOF
29447 /* end confdefs.h.  */
29448 #include <alloca.h>
29449 int
29450 main ()
29451 {
29452 char *p = (char *) alloca (2 * sizeof (int));
29453                           if (p) return 0;
29454   ;
29455   return 0;
29456 }
29457 _ACEOF
29458 rm -f conftest.$ac_objext conftest$ac_exeext
29459 if { (ac_try="$ac_link"
29460 case "(($ac_try" in
29461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29462   *) ac_try_echo=$ac_try;;
29463 esac
29464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29465   (eval "$ac_link") 2>conftest.er1
29466   ac_status=$?
29467   grep -v '^ *+' conftest.er1 >conftest.err
29468   rm -f conftest.er1
29469   cat conftest.err >&5
29470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471   (exit $ac_status); } && {
29472          test -z "$ac_c_werror_flag" ||
29473          test ! -s conftest.err
29474        } && test -s conftest$ac_exeext &&
29475        $as_test_x conftest$ac_exeext; then
29476   ac_cv_working_alloca_h=yes
29477 else
29478   echo "$as_me: failed program was:" >&5
29479 sed 's/^/| /' conftest.$ac_ext >&5
29480
29481         ac_cv_working_alloca_h=no
29482 fi
29483
29484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29485       conftest$ac_exeext conftest.$ac_ext
29486 fi
29487 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
29488 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
29489 if test $ac_cv_working_alloca_h = yes; then
29490
29491 cat >>confdefs.h <<\_ACEOF
29492 #define HAVE_ALLOCA_H 1
29493 _ACEOF
29494
29495 fi
29496
29497 { echo "$as_me:$LINENO: checking for alloca" >&5
29498 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
29499 if test "${ac_cv_func_alloca_works+set}" = set; then
29500   echo $ECHO_N "(cached) $ECHO_C" >&6
29501 else
29502   cat >conftest.$ac_ext <<_ACEOF
29503 /* confdefs.h.  */
29504 _ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h.  */
29508 #ifdef __GNUC__
29509 # define alloca __builtin_alloca
29510 #else
29511 # ifdef _MSC_VER
29512 #  include <malloc.h>
29513 #  define alloca _alloca
29514 # else
29515 #  ifdef HAVE_ALLOCA_H
29516 #   include <alloca.h>
29517 #  else
29518 #   ifdef _AIX
29519  #pragma alloca
29520 #   else
29521 #    ifndef alloca /* predefined by HP cc +Olibcalls */
29522 char *alloca ();
29523 #    endif
29524 #   endif
29525 #  endif
29526 # endif
29527 #endif
29528
29529 int
29530 main ()
29531 {
29532 char *p = (char *) alloca (1);
29533                                     if (p) return 0;
29534   ;
29535   return 0;
29536 }
29537 _ACEOF
29538 rm -f conftest.$ac_objext conftest$ac_exeext
29539 if { (ac_try="$ac_link"
29540 case "(($ac_try" in
29541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29542   *) ac_try_echo=$ac_try;;
29543 esac
29544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29545   (eval "$ac_link") 2>conftest.er1
29546   ac_status=$?
29547   grep -v '^ *+' conftest.er1 >conftest.err
29548   rm -f conftest.er1
29549   cat conftest.err >&5
29550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551   (exit $ac_status); } && {
29552          test -z "$ac_c_werror_flag" ||
29553          test ! -s conftest.err
29554        } && test -s conftest$ac_exeext &&
29555        $as_test_x conftest$ac_exeext; then
29556   ac_cv_func_alloca_works=yes
29557 else
29558   echo "$as_me: failed program was:" >&5
29559 sed 's/^/| /' conftest.$ac_ext >&5
29560
29561         ac_cv_func_alloca_works=no
29562 fi
29563
29564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29565       conftest$ac_exeext conftest.$ac_ext
29566 fi
29567 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
29568 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
29569
29570 if test $ac_cv_func_alloca_works = yes; then
29571
29572 cat >>confdefs.h <<\_ACEOF
29573 #define HAVE_ALLOCA 1
29574 _ACEOF
29575
29576 else
29577   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29578 # that cause trouble.  Some versions do not even contain alloca or
29579 # contain a buggy version.  If you still want to use their alloca,
29580 # use ar to extract alloca.o from them instead of compiling alloca.c.
29581
29582 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29583
29584 cat >>confdefs.h <<\_ACEOF
29585 #define C_ALLOCA 1
29586 _ACEOF
29587
29588
29589 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29590 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
29591 if test "${ac_cv_os_cray+set}" = set; then
29592   echo $ECHO_N "(cached) $ECHO_C" >&6
29593 else
29594   cat >conftest.$ac_ext <<_ACEOF
29595 /* confdefs.h.  */
29596 _ACEOF
29597 cat confdefs.h >>conftest.$ac_ext
29598 cat >>conftest.$ac_ext <<_ACEOF
29599 /* end confdefs.h.  */
29600 #if defined CRAY && ! defined CRAY2
29601 webecray
29602 #else
29603 wenotbecray
29604 #endif
29605
29606 _ACEOF
29607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29608   $EGREP "webecray" >/dev/null 2>&1; then
29609   ac_cv_os_cray=yes
29610 else
29611   ac_cv_os_cray=no
29612 fi
29613 rm -f conftest*
29614
29615 fi
29616 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29617 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
29618 if test $ac_cv_os_cray = yes; then
29619   for ac_func in _getb67 GETB67 getb67; do
29620     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29624   echo $ECHO_N "(cached) $ECHO_C" >&6
29625 else
29626   cat >conftest.$ac_ext <<_ACEOF
29627 /* confdefs.h.  */
29628 _ACEOF
29629 cat confdefs.h >>conftest.$ac_ext
29630 cat >>conftest.$ac_ext <<_ACEOF
29631 /* end confdefs.h.  */
29632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29634 #define $ac_func innocuous_$ac_func
29635
29636 /* System header to define __stub macros and hopefully few prototypes,
29637     which can conflict with char $ac_func (); below.
29638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29639     <limits.h> exists even on freestanding compilers.  */
29640
29641 #ifdef __STDC__
29642 # include <limits.h>
29643 #else
29644 # include <assert.h>
29645 #endif
29646
29647 #undef $ac_func
29648
29649 /* Override any GCC internal prototype to avoid an error.
29650    Use char because int might match the return type of a GCC
29651    builtin and then its argument prototype would still apply.  */
29652 #ifdef __cplusplus
29653 extern "C"
29654 #endif
29655 char $ac_func ();
29656 /* The GNU C library defines this for functions which it implements
29657     to always fail with ENOSYS.  Some functions are actually named
29658     something starting with __ and the normal name is an alias.  */
29659 #if defined __stub_$ac_func || defined __stub___$ac_func
29660 choke me
29661 #endif
29662
29663 int
29664 main ()
29665 {
29666 return $ac_func ();
29667   ;
29668   return 0;
29669 }
29670 _ACEOF
29671 rm -f conftest.$ac_objext conftest$ac_exeext
29672 if { (ac_try="$ac_link"
29673 case "(($ac_try" in
29674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29675   *) ac_try_echo=$ac_try;;
29676 esac
29677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29678   (eval "$ac_link") 2>conftest.er1
29679   ac_status=$?
29680   grep -v '^ *+' conftest.er1 >conftest.err
29681   rm -f conftest.er1
29682   cat conftest.err >&5
29683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29684   (exit $ac_status); } && {
29685          test -z "$ac_c_werror_flag" ||
29686          test ! -s conftest.err
29687        } && test -s conftest$ac_exeext &&
29688        $as_test_x conftest$ac_exeext; then
29689   eval "$as_ac_var=yes"
29690 else
29691   echo "$as_me: failed program was:" >&5
29692 sed 's/^/| /' conftest.$ac_ext >&5
29693
29694         eval "$as_ac_var=no"
29695 fi
29696
29697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29698       conftest$ac_exeext conftest.$ac_ext
29699 fi
29700 ac_res=`eval echo '${'$as_ac_var'}'`
29701                { echo "$as_me:$LINENO: result: $ac_res" >&5
29702 echo "${ECHO_T}$ac_res" >&6; }
29703 if test `eval echo '${'$as_ac_var'}'` = yes; then
29704
29705 cat >>confdefs.h <<_ACEOF
29706 #define CRAY_STACKSEG_END $ac_func
29707 _ACEOF
29708
29709     break
29710 fi
29711
29712   done
29713 fi
29714
29715 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29716 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
29717 if test "${ac_cv_c_stack_direction+set}" = set; then
29718   echo $ECHO_N "(cached) $ECHO_C" >&6
29719 else
29720   if test "$cross_compiling" = yes; then
29721   ac_cv_c_stack_direction=0
29722 else
29723   cat >conftest.$ac_ext <<_ACEOF
29724 /* confdefs.h.  */
29725 _ACEOF
29726 cat confdefs.h >>conftest.$ac_ext
29727 cat >>conftest.$ac_ext <<_ACEOF
29728 /* end confdefs.h.  */
29729 $ac_includes_default
29730 int
29731 find_stack_direction ()
29732 {
29733   static char *addr = 0;
29734   auto char dummy;
29735   if (addr == 0)
29736     {
29737       addr = &dummy;
29738       return find_stack_direction ();
29739     }
29740   else
29741     return (&dummy > addr) ? 1 : -1;
29742 }
29743
29744 int
29745 main ()
29746 {
29747   return find_stack_direction () < 0;
29748 }
29749 _ACEOF
29750 rm -f conftest$ac_exeext
29751 if { (ac_try="$ac_link"
29752 case "(($ac_try" in
29753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754   *) ac_try_echo=$ac_try;;
29755 esac
29756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757   (eval "$ac_link") 2>&5
29758   ac_status=$?
29759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29761   { (case "(($ac_try" in
29762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29763   *) ac_try_echo=$ac_try;;
29764 esac
29765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29766   (eval "$ac_try") 2>&5
29767   ac_status=$?
29768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769   (exit $ac_status); }; }; then
29770   ac_cv_c_stack_direction=1
29771 else
29772   echo "$as_me: program exited with status $ac_status" >&5
29773 echo "$as_me: failed program was:" >&5
29774 sed 's/^/| /' conftest.$ac_ext >&5
29775
29776 ( exit $ac_status )
29777 ac_cv_c_stack_direction=-1
29778 fi
29779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29780 fi
29781
29782
29783 fi
29784 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29785 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
29786
29787 cat >>confdefs.h <<_ACEOF
29788 #define STACK_DIRECTION $ac_cv_c_stack_direction
29789 _ACEOF
29790
29791
29792 fi
29793
29794
29795 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29796 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
29797 if test "${ac_cv_func_rand48+set}" = set; then
29798   echo $ECHO_N "(cached) $ECHO_C" >&6
29799 else
29800   ac_ext=cpp
29801 ac_cpp='$CXXCPP $CPPFLAGS'
29802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29805
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 #include <stdlib.h>
29813 int
29814 main ()
29815 {
29816 srand48(0);lrand48();drand48();
29817   ;
29818   return 0;
29819 }
29820 _ACEOF
29821 rm -f conftest.$ac_objext
29822 if { (ac_try="$ac_compile"
29823 case "(($ac_try" in
29824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29825   *) ac_try_echo=$ac_try;;
29826 esac
29827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29828   (eval "$ac_compile") 2>conftest.er1
29829   ac_status=$?
29830   grep -v '^ *+' conftest.er1 >conftest.err
29831   rm -f conftest.er1
29832   cat conftest.err >&5
29833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834   (exit $ac_status); } && {
29835          test -z "$ac_cxx_werror_flag" ||
29836          test ! -s conftest.err
29837        } && test -s conftest.$ac_objext; then
29838   ac_cv_func_rand48=yes
29839 else
29840   echo "$as_me: failed program was:" >&5
29841 sed 's/^/| /' conftest.$ac_ext >&5
29842
29843         ac_cv_func_rand48=no
29844 fi
29845
29846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29847   ac_ext=c
29848 ac_cpp='$CPP $CPPFLAGS'
29849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29852
29853 fi
29854 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29855 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
29856
29857 if test "$ac_cv_func_rand48" = "yes" ; then
29858
29859 cat >>confdefs.h <<\_ACEOF
29860 #define HAVE_RAND48 1
29861 _ACEOF
29862
29863 fi
29864
29865
29866 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29867 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
29868 if test "${ac_cv_cxx_namespaces+set}" = set; then
29869   echo $ECHO_N "(cached) $ECHO_C" >&6
29870 else
29871   ac_ext=cpp
29872 ac_cpp='$CXXCPP $CPPFLAGS'
29873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29876
29877  cat >conftest.$ac_ext <<_ACEOF
29878 /* confdefs.h.  */
29879 _ACEOF
29880 cat confdefs.h >>conftest.$ac_ext
29881 cat >>conftest.$ac_ext <<_ACEOF
29882 /* end confdefs.h.  */
29883 namespace Outer { namespace Inner { int i = 0; }}
29884 int
29885 main ()
29886 {
29887 using namespace Outer::Inner; return i;
29888   ;
29889   return 0;
29890 }
29891 _ACEOF
29892 rm -f conftest.$ac_objext
29893 if { (ac_try="$ac_compile"
29894 case "(($ac_try" in
29895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29896   *) ac_try_echo=$ac_try;;
29897 esac
29898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29899   (eval "$ac_compile") 2>conftest.er1
29900   ac_status=$?
29901   grep -v '^ *+' conftest.er1 >conftest.err
29902   rm -f conftest.er1
29903   cat conftest.err >&5
29904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29905   (exit $ac_status); } && {
29906          test -z "$ac_cxx_werror_flag" ||
29907          test ! -s conftest.err
29908        } && test -s conftest.$ac_objext; then
29909   ac_cv_cxx_namespaces=yes
29910 else
29911   echo "$as_me: failed program was:" >&5
29912 sed 's/^/| /' conftest.$ac_ext >&5
29913
29914         ac_cv_cxx_namespaces=no
29915 fi
29916
29917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29918  ac_ext=c
29919 ac_cpp='$CPP $CPPFLAGS'
29920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29923
29924
29925 fi
29926 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29927 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
29928 if test "$ac_cv_cxx_namespaces" = yes; then
29929
29930 cat >>confdefs.h <<\_ACEOF
29931 #define HAVE_NAMESPACES
29932 _ACEOF
29933
29934 fi
29935
29936 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29937 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
29938 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29939   echo $ECHO_N "(cached) $ECHO_C" >&6
29940 else
29941
29942   ac_ext=cpp
29943 ac_cpp='$CXXCPP $CPPFLAGS'
29944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29947
29948   cat >conftest.$ac_ext <<_ACEOF
29949 /* confdefs.h.  */
29950 _ACEOF
29951 cat confdefs.h >>conftest.$ac_ext
29952 cat >>conftest.$ac_ext <<_ACEOF
29953 /* end confdefs.h.  */
29954 #include <ext/hash_map>
29955 #ifdef HAVE_NAMESPACES
29956 using namespace std;
29957 #endif
29958 int
29959 main ()
29960 {
29961 hash_map<int, int> t;
29962   ;
29963   return 0;
29964 }
29965 _ACEOF
29966 rm -f conftest.$ac_objext
29967 if { (ac_try="$ac_compile"
29968 case "(($ac_try" in
29969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29970   *) ac_try_echo=$ac_try;;
29971 esac
29972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29973   (eval "$ac_compile") 2>conftest.er1
29974   ac_status=$?
29975   grep -v '^ *+' conftest.er1 >conftest.err
29976   rm -f conftest.er1
29977   cat conftest.err >&5
29978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979   (exit $ac_status); } && {
29980          test -z "$ac_cxx_werror_flag" ||
29981          test ! -s conftest.err
29982        } && test -s conftest.$ac_objext; then
29983   ac_cv_cxx_have_std_ext_hash_map=yes
29984 else
29985   echo "$as_me: failed program was:" >&5
29986 sed 's/^/| /' conftest.$ac_ext >&5
29987
29988         ac_cv_cxx_have_std_ext_hash_map=no
29989 fi
29990
29991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29992   ac_ext=c
29993 ac_cpp='$CPP $CPPFLAGS'
29994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29997
29998 fi
29999 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
30000 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
30001  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
30002  then
30003
30004 cat >>confdefs.h <<\_ACEOF
30005 #define HAVE_STD_EXT_HASH_MAP 1
30006 _ACEOF
30007
30008  else
30009
30010 cat >>confdefs.h <<\_ACEOF
30011 #define HAVE_STD_EXT_HASH_MAP 0
30012 _ACEOF
30013
30014  fi
30015
30016  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
30017 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
30018 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
30019   echo $ECHO_N "(cached) $ECHO_C" >&6
30020 else
30021
30022   ac_ext=cpp
30023 ac_cpp='$CXXCPP $CPPFLAGS'
30024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30027
30028   cat >conftest.$ac_ext <<_ACEOF
30029 /* confdefs.h.  */
30030 _ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h.  */
30034 #include <ext/hash_map>
30035 #ifdef HAVE_NAMESPACES
30036 using namespace __gnu_cxx;
30037 #endif
30038 int
30039 main ()
30040 {
30041 hash_map<int,int> t;
30042   ;
30043   return 0;
30044 }
30045 _ACEOF
30046 rm -f conftest.$ac_objext
30047 if { (ac_try="$ac_compile"
30048 case "(($ac_try" in
30049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30050   *) ac_try_echo=$ac_try;;
30051 esac
30052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30053   (eval "$ac_compile") 2>conftest.er1
30054   ac_status=$?
30055   grep -v '^ *+' conftest.er1 >conftest.err
30056   rm -f conftest.er1
30057   cat conftest.err >&5
30058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059   (exit $ac_status); } && {
30060          test -z "$ac_cxx_werror_flag" ||
30061          test ! -s conftest.err
30062        } && test -s conftest.$ac_objext; then
30063   ac_cv_cxx_have_gnu_ext_hash_map=yes
30064 else
30065   echo "$as_me: failed program was:" >&5
30066 sed 's/^/| /' conftest.$ac_ext >&5
30067
30068         ac_cv_cxx_have_gnu_ext_hash_map=no
30069 fi
30070
30071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30072   ac_ext=c
30073 ac_cpp='$CPP $CPPFLAGS'
30074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30077
30078 fi
30079 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
30080 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
30081  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
30082  then
30083
30084 cat >>confdefs.h <<\_ACEOF
30085 #define HAVE_GNU_EXT_HASH_MAP 1
30086 _ACEOF
30087
30088  else
30089
30090 cat >>confdefs.h <<\_ACEOF
30091 #define HAVE_GNU_EXT_HASH_MAP 0
30092 _ACEOF
30093
30094  fi
30095
30096  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
30097 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
30098 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
30099   echo $ECHO_N "(cached) $ECHO_C" >&6
30100 else
30101
30102   ac_ext=cpp
30103 ac_cpp='$CXXCPP $CPPFLAGS'
30104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30107
30108   cat >conftest.$ac_ext <<_ACEOF
30109 /* confdefs.h.  */
30110 _ACEOF
30111 cat confdefs.h >>conftest.$ac_ext
30112 cat >>conftest.$ac_ext <<_ACEOF
30113 /* end confdefs.h.  */
30114 #include <hash_map>
30115 int
30116 main ()
30117 {
30118 hash_map<int,int> t;
30119   ;
30120   return 0;
30121 }
30122 _ACEOF
30123 rm -f conftest.$ac_objext
30124 if { (ac_try="$ac_compile"
30125 case "(($ac_try" in
30126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30127   *) ac_try_echo=$ac_try;;
30128 esac
30129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30130   (eval "$ac_compile") 2>conftest.er1
30131   ac_status=$?
30132   grep -v '^ *+' conftest.er1 >conftest.err
30133   rm -f conftest.er1
30134   cat conftest.err >&5
30135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136   (exit $ac_status); } && {
30137          test -z "$ac_cxx_werror_flag" ||
30138          test ! -s conftest.err
30139        } && test -s conftest.$ac_objext; then
30140   ac_cv_cxx_have_global_hash_map=yes
30141 else
30142   echo "$as_me: failed program was:" >&5
30143 sed 's/^/| /' conftest.$ac_ext >&5
30144
30145         ac_cv_cxx_have_global_hash_map=no
30146 fi
30147
30148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30149   ac_ext=c
30150 ac_cpp='$CPP $CPPFLAGS'
30151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30154
30155 fi
30156 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
30157 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
30158  if test "$ac_cv_cxx_have_global_hash_map" = yes
30159  then
30160
30161 cat >>confdefs.h <<\_ACEOF
30162 #define HAVE_GLOBAL_HASH_MAP 1
30163 _ACEOF
30164
30165  else
30166
30167 cat >>confdefs.h <<\_ACEOF
30168 #define HAVE_GLOBAL_HASH_MAP 0
30169 _ACEOF
30170
30171  fi
30172
30173 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
30174 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
30175 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
30176   echo $ECHO_N "(cached) $ECHO_C" >&6
30177 else
30178
30179   ac_ext=cpp
30180 ac_cpp='$CXXCPP $CPPFLAGS'
30181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30184
30185   cat >conftest.$ac_ext <<_ACEOF
30186 /* confdefs.h.  */
30187 _ACEOF
30188 cat confdefs.h >>conftest.$ac_ext
30189 cat >>conftest.$ac_ext <<_ACEOF
30190 /* end confdefs.h.  */
30191 #include <ext/hash_set>
30192 #ifdef HAVE_NAMESPACES
30193 using namespace std;
30194 #endif
30195 int
30196 main ()
30197 {
30198 hash_set<int> t;
30199   ;
30200   return 0;
30201 }
30202 _ACEOF
30203 rm -f conftest.$ac_objext
30204 if { (ac_try="$ac_compile"
30205 case "(($ac_try" in
30206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30207   *) ac_try_echo=$ac_try;;
30208 esac
30209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30210   (eval "$ac_compile") 2>conftest.er1
30211   ac_status=$?
30212   grep -v '^ *+' conftest.er1 >conftest.err
30213   rm -f conftest.er1
30214   cat conftest.err >&5
30215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216   (exit $ac_status); } && {
30217          test -z "$ac_cxx_werror_flag" ||
30218          test ! -s conftest.err
30219        } && test -s conftest.$ac_objext; then
30220   ac_cv_cxx_have_std_ext_hash_set=yes
30221 else
30222   echo "$as_me: failed program was:" >&5
30223 sed 's/^/| /' conftest.$ac_ext >&5
30224
30225         ac_cv_cxx_have_std_ext_hash_set=no
30226 fi
30227
30228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30229   ac_ext=c
30230 ac_cpp='$CPP $CPPFLAGS'
30231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30234
30235 fi
30236 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
30237 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
30238  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
30239  then
30240
30241 cat >>confdefs.h <<\_ACEOF
30242 #define HAVE_STD_EXT_HASH_SET 1
30243 _ACEOF
30244
30245  else
30246
30247 cat >>confdefs.h <<\_ACEOF
30248 #define HAVE_STD_EXT_HASH_SET 0
30249 _ACEOF
30250
30251  fi
30252
30253  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
30254 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
30255 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
30256   echo $ECHO_N "(cached) $ECHO_C" >&6
30257 else
30258
30259   ac_ext=cpp
30260 ac_cpp='$CXXCPP $CPPFLAGS'
30261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30264
30265   cat >conftest.$ac_ext <<_ACEOF
30266 /* confdefs.h.  */
30267 _ACEOF
30268 cat confdefs.h >>conftest.$ac_ext
30269 cat >>conftest.$ac_ext <<_ACEOF
30270 /* end confdefs.h.  */
30271 #include <ext/hash_set>
30272 #ifdef HAVE_NAMESPACES
30273 using namespace __gnu_cxx;
30274 #endif
30275 int
30276 main ()
30277 {
30278 hash_set<int> t;
30279   ;
30280   return 0;
30281 }
30282 _ACEOF
30283 rm -f conftest.$ac_objext
30284 if { (ac_try="$ac_compile"
30285 case "(($ac_try" in
30286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30287   *) ac_try_echo=$ac_try;;
30288 esac
30289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30290   (eval "$ac_compile") 2>conftest.er1
30291   ac_status=$?
30292   grep -v '^ *+' conftest.er1 >conftest.err
30293   rm -f conftest.er1
30294   cat conftest.err >&5
30295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296   (exit $ac_status); } && {
30297          test -z "$ac_cxx_werror_flag" ||
30298          test ! -s conftest.err
30299        } && test -s conftest.$ac_objext; then
30300   ac_cv_cxx_have_gnu_ext_hash_set=yes
30301 else
30302   echo "$as_me: failed program was:" >&5
30303 sed 's/^/| /' conftest.$ac_ext >&5
30304
30305         ac_cv_cxx_have_gnu_ext_hash_set=no
30306 fi
30307
30308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30309   ac_ext=c
30310 ac_cpp='$CPP $CPPFLAGS'
30311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30314
30315 fi
30316 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
30317 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
30318  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
30319  then
30320
30321 cat >>confdefs.h <<\_ACEOF
30322 #define HAVE_GNU_EXT_HASH_SET 1
30323 _ACEOF
30324
30325  else
30326
30327 cat >>confdefs.h <<\_ACEOF
30328 #define HAVE_GNU_EXT_HASH_SET 0
30329 _ACEOF
30330
30331  fi
30332
30333  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
30334 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
30335 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
30336   echo $ECHO_N "(cached) $ECHO_C" >&6
30337 else
30338
30339   ac_ext=cpp
30340 ac_cpp='$CXXCPP $CPPFLAGS'
30341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30344
30345   cat >conftest.$ac_ext <<_ACEOF
30346 /* confdefs.h.  */
30347 _ACEOF
30348 cat confdefs.h >>conftest.$ac_ext
30349 cat >>conftest.$ac_ext <<_ACEOF
30350 /* end confdefs.h.  */
30351 #include <hash_set>
30352 int
30353 main ()
30354 {
30355 hash_set<int> t; return 0;
30356   ;
30357   return 0;
30358 }
30359 _ACEOF
30360 rm -f conftest.$ac_objext
30361 if { (ac_try="$ac_compile"
30362 case "(($ac_try" in
30363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30364   *) ac_try_echo=$ac_try;;
30365 esac
30366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30367   (eval "$ac_compile") 2>conftest.er1
30368   ac_status=$?
30369   grep -v '^ *+' conftest.er1 >conftest.err
30370   rm -f conftest.er1
30371   cat conftest.err >&5
30372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373   (exit $ac_status); } && {
30374          test -z "$ac_cxx_werror_flag" ||
30375          test ! -s conftest.err
30376        } && test -s conftest.$ac_objext; then
30377   ac_cv_cxx_have_global_hash_set=yes
30378 else
30379   echo "$as_me: failed program was:" >&5
30380 sed 's/^/| /' conftest.$ac_ext >&5
30381
30382         ac_cv_cxx_have_global_hash_set=no
30383 fi
30384
30385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30386   ac_ext=c
30387 ac_cpp='$CPP $CPPFLAGS'
30388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30391
30392 fi
30393 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
30394 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
30395  if test "$ac_cv_cxx_have_global_hash_set" = yes
30396  then
30397
30398 cat >>confdefs.h <<\_ACEOF
30399 #define HAVE_GLOBAL_HASH_SET 1
30400 _ACEOF
30401
30402  else
30403
30404 cat >>confdefs.h <<\_ACEOF
30405 #define HAVE_GLOBAL_HASH_SET 0
30406 _ACEOF
30407
30408  fi
30409
30410 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30411 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
30412 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30413   echo $ECHO_N "(cached) $ECHO_C" >&6
30414 else
30415
30416   ac_ext=cpp
30417 ac_cpp='$CXXCPP $CPPFLAGS'
30418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30421
30422   cat >conftest.$ac_ext <<_ACEOF
30423 /* confdefs.h.  */
30424 _ACEOF
30425 cat confdefs.h >>conftest.$ac_ext
30426 cat >>conftest.$ac_ext <<_ACEOF
30427 /* end confdefs.h.  */
30428 #include <iterator>
30429 #ifdef HAVE_NAMESPACES
30430 using namespace std;
30431 #endif
30432 int
30433 main ()
30434 {
30435 iterator<int,int,int> t; return 0;
30436   ;
30437   return 0;
30438 }
30439 _ACEOF
30440 rm -f conftest.$ac_objext
30441 if { (ac_try="$ac_compile"
30442 case "(($ac_try" in
30443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30444   *) ac_try_echo=$ac_try;;
30445 esac
30446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30447   (eval "$ac_compile") 2>conftest.er1
30448   ac_status=$?
30449   grep -v '^ *+' conftest.er1 >conftest.err
30450   rm -f conftest.er1
30451   cat conftest.err >&5
30452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453   (exit $ac_status); } && {
30454          test -z "$ac_cxx_werror_flag" ||
30455          test ! -s conftest.err
30456        } && test -s conftest.$ac_objext; then
30457   ac_cv_cxx_have_std_iterator=yes
30458 else
30459   echo "$as_me: failed program was:" >&5
30460 sed 's/^/| /' conftest.$ac_ext >&5
30461
30462         ac_cv_cxx_have_std_iterator=no
30463 fi
30464
30465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30466   ac_ext=c
30467 ac_cpp='$CPP $CPPFLAGS'
30468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30471
30472
30473 fi
30474 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
30475 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
30476 if test "$ac_cv_cxx_have_std_iterator" = yes
30477 then
30478
30479 cat >>confdefs.h <<\_ACEOF
30480 #define HAVE_STD_ITERATOR 1
30481 _ACEOF
30482
30483 else
30484
30485 cat >>confdefs.h <<\_ACEOF
30486 #define HAVE_STD_ITERATOR 0
30487 _ACEOF
30488
30489 fi
30490
30491 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
30492 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
30493 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
30494   echo $ECHO_N "(cached) $ECHO_C" >&6
30495 else
30496
30497   ac_ext=cpp
30498 ac_cpp='$CXXCPP $CPPFLAGS'
30499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30502
30503   cat >conftest.$ac_ext <<_ACEOF
30504 /* confdefs.h.  */
30505 _ACEOF
30506 cat confdefs.h >>conftest.$ac_ext
30507 cat >>conftest.$ac_ext <<_ACEOF
30508 /* end confdefs.h.  */
30509 #include <iterator>
30510 #ifdef HAVE_NAMESPACES
30511 using namespace std;
30512 #endif
30513 int
30514 main ()
30515 {
30516 bidirectional_iterator<int,int> t; return 0;
30517   ;
30518   return 0;
30519 }
30520 _ACEOF
30521 rm -f conftest.$ac_objext
30522 if { (ac_try="$ac_compile"
30523 case "(($ac_try" in
30524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30525   *) ac_try_echo=$ac_try;;
30526 esac
30527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30528   (eval "$ac_compile") 2>conftest.er1
30529   ac_status=$?
30530   grep -v '^ *+' conftest.er1 >conftest.err
30531   rm -f conftest.er1
30532   cat conftest.err >&5
30533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30534   (exit $ac_status); } && {
30535          test -z "$ac_cxx_werror_flag" ||
30536          test ! -s conftest.err
30537        } && test -s conftest.$ac_objext; then
30538   ac_cv_cxx_have_bi_iterator=yes
30539 else
30540   echo "$as_me: failed program was:" >&5
30541 sed 's/^/| /' conftest.$ac_ext >&5
30542
30543         ac_cv_cxx_have_bi_iterator=no
30544 fi
30545
30546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30547   ac_ext=c
30548 ac_cpp='$CPP $CPPFLAGS'
30549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30552
30553
30554 fi
30555 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30556 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
30557 if test "$ac_cv_cxx_have_bi_iterator" = yes
30558 then
30559
30560 cat >>confdefs.h <<\_ACEOF
30561 #define HAVE_BI_ITERATOR 1
30562 _ACEOF
30563
30564 else
30565
30566 cat >>confdefs.h <<\_ACEOF
30567 #define HAVE_BI_ITERATOR 0
30568 _ACEOF
30569
30570 fi
30571
30572 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30573 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
30574 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30575   echo $ECHO_N "(cached) $ECHO_C" >&6
30576 else
30577
30578   ac_ext=cpp
30579 ac_cpp='$CXXCPP $CPPFLAGS'
30580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30583
30584   cat >conftest.$ac_ext <<_ACEOF
30585 /* confdefs.h.  */
30586 _ACEOF
30587 cat confdefs.h >>conftest.$ac_ext
30588 cat >>conftest.$ac_ext <<_ACEOF
30589 /* end confdefs.h.  */
30590 #include <iterator>
30591 #ifdef HAVE_NAMESPACES
30592 using namespace std;
30593 #endif
30594 int
30595 main ()
30596 {
30597 forward_iterator<int,int> t; return 0;
30598   ;
30599   return 0;
30600 }
30601 _ACEOF
30602 rm -f conftest.$ac_objext
30603 if { (ac_try="$ac_compile"
30604 case "(($ac_try" in
30605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30606   *) ac_try_echo=$ac_try;;
30607 esac
30608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30609   (eval "$ac_compile") 2>conftest.er1
30610   ac_status=$?
30611   grep -v '^ *+' conftest.er1 >conftest.err
30612   rm -f conftest.er1
30613   cat conftest.err >&5
30614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30615   (exit $ac_status); } && {
30616          test -z "$ac_cxx_werror_flag" ||
30617          test ! -s conftest.err
30618        } && test -s conftest.$ac_objext; then
30619   ac_cv_cxx_have_fwd_iterator=yes
30620 else
30621   echo "$as_me: failed program was:" >&5
30622 sed 's/^/| /' conftest.$ac_ext >&5
30623
30624         ac_cv_cxx_have_fwd_iterator=no
30625 fi
30626
30627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30628   ac_ext=c
30629 ac_cpp='$CPP $CPPFLAGS'
30630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30633
30634
30635 fi
30636 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30637 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
30638 if test "$ac_cv_cxx_have_fwd_iterator" = yes
30639 then
30640
30641 cat >>confdefs.h <<\_ACEOF
30642 #define HAVE_FWD_ITERATOR 1
30643 _ACEOF
30644
30645 else
30646
30647 cat >>confdefs.h <<\_ACEOF
30648 #define HAVE_FWD_ITERATOR 0
30649 _ACEOF
30650
30651 fi
30652
30653
30654 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30655 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
30656 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30657   echo $ECHO_N "(cached) $ECHO_C" >&6
30658 else
30659   ac_ext=cpp
30660 ac_cpp='$CXXCPP $CPPFLAGS'
30661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30664
30665    cat >conftest.$ac_ext <<_ACEOF
30666 /* confdefs.h.  */
30667 _ACEOF
30668 cat confdefs.h >>conftest.$ac_ext
30669 cat >>conftest.$ac_ext <<_ACEOF
30670 /* end confdefs.h.  */
30671 #include <math.h>
30672 int
30673 main ()
30674 {
30675 float f; isnan(f);
30676   ;
30677   return 0;
30678 }
30679 _ACEOF
30680 rm -f conftest.$ac_objext
30681 if { (ac_try="$ac_compile"
30682 case "(($ac_try" in
30683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30684   *) ac_try_echo=$ac_try;;
30685 esac
30686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30687   (eval "$ac_compile") 2>conftest.er1
30688   ac_status=$?
30689   grep -v '^ *+' conftest.er1 >conftest.err
30690   rm -f conftest.er1
30691   cat conftest.err >&5
30692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693   (exit $ac_status); } && {
30694          test -z "$ac_cxx_werror_flag" ||
30695          test ! -s conftest.err
30696        } && test -s conftest.$ac_objext; then
30697   ac_cv_func_isnan_in_math_h=yes
30698 else
30699   echo "$as_me: failed program was:" >&5
30700 sed 's/^/| /' conftest.$ac_ext >&5
30701
30702         ac_cv_func_isnan_in_math_h=no
30703 fi
30704
30705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30706   ac_ext=c
30707 ac_cpp='$CPP $CPPFLAGS'
30708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30711
30712 fi
30713 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30714 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
30715
30716
30717 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
30718
30719 cat >>confdefs.h <<\_ACEOF
30720 #define HAVE_ISNAN_IN_MATH_H 1
30721 _ACEOF
30722
30723 fi
30724
30725 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30726 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
30727 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30728   echo $ECHO_N "(cached) $ECHO_C" >&6
30729 else
30730   ac_ext=cpp
30731 ac_cpp='$CXXCPP $CPPFLAGS'
30732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30735
30736    cat >conftest.$ac_ext <<_ACEOF
30737 /* confdefs.h.  */
30738 _ACEOF
30739 cat confdefs.h >>conftest.$ac_ext
30740 cat >>conftest.$ac_ext <<_ACEOF
30741 /* end confdefs.h.  */
30742 #include <cmath>
30743 int
30744 main ()
30745 {
30746 float f; isnan(f);
30747   ;
30748   return 0;
30749 }
30750 _ACEOF
30751 rm -f conftest.$ac_objext
30752 if { (ac_try="$ac_compile"
30753 case "(($ac_try" in
30754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30755   *) ac_try_echo=$ac_try;;
30756 esac
30757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30758   (eval "$ac_compile") 2>conftest.er1
30759   ac_status=$?
30760   grep -v '^ *+' conftest.er1 >conftest.err
30761   rm -f conftest.er1
30762   cat conftest.err >&5
30763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764   (exit $ac_status); } && {
30765          test -z "$ac_cxx_werror_flag" ||
30766          test ! -s conftest.err
30767        } && test -s conftest.$ac_objext; then
30768   ac_cv_func_isnan_in_cmath=yes
30769 else
30770   echo "$as_me: failed program was:" >&5
30771 sed 's/^/| /' conftest.$ac_ext >&5
30772
30773         ac_cv_func_isnan_in_cmath=no
30774 fi
30775
30776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30777   ac_ext=c
30778 ac_cpp='$CPP $CPPFLAGS'
30779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30782
30783 fi
30784 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30785 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
30786
30787 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30788
30789 cat >>confdefs.h <<\_ACEOF
30790 #define HAVE_ISNAN_IN_CMATH 1
30791 _ACEOF
30792
30793 fi
30794
30795 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30796 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
30797 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30798   echo $ECHO_N "(cached) $ECHO_C" >&6
30799 else
30800   ac_ext=cpp
30801 ac_cpp='$CXXCPP $CPPFLAGS'
30802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30805
30806    cat >conftest.$ac_ext <<_ACEOF
30807 /* confdefs.h.  */
30808 _ACEOF
30809 cat confdefs.h >>conftest.$ac_ext
30810 cat >>conftest.$ac_ext <<_ACEOF
30811 /* end confdefs.h.  */
30812 #include <cmath>
30813 int
30814 main ()
30815 {
30816 float f; std::isnan(f);
30817   ;
30818   return 0;
30819 }
30820 _ACEOF
30821 rm -f conftest.$ac_objext
30822 if { (ac_try="$ac_compile"
30823 case "(($ac_try" in
30824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30825   *) ac_try_echo=$ac_try;;
30826 esac
30827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30828   (eval "$ac_compile") 2>conftest.er1
30829   ac_status=$?
30830   grep -v '^ *+' conftest.er1 >conftest.err
30831   rm -f conftest.er1
30832   cat conftest.err >&5
30833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834   (exit $ac_status); } && {
30835          test -z "$ac_cxx_werror_flag" ||
30836          test ! -s conftest.err
30837        } && test -s conftest.$ac_objext; then
30838   ac_cv_func_std_isnan_in_cmath=yes
30839 else
30840   echo "$as_me: failed program was:" >&5
30841 sed 's/^/| /' conftest.$ac_ext >&5
30842
30843         ac_cv_func_std_isnan_in_cmath=no
30844 fi
30845
30846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30847   ac_ext=c
30848 ac_cpp='$CPP $CPPFLAGS'
30849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30852
30853 fi
30854 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30855 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
30856
30857 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30858
30859 cat >>confdefs.h <<\_ACEOF
30860 #define HAVE_STD_ISNAN_IN_CMATH 1
30861 _ACEOF
30862
30863 fi
30864
30865
30866 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30867 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
30868 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30869   echo $ECHO_N "(cached) $ECHO_C" >&6
30870 else
30871   ac_ext=cpp
30872 ac_cpp='$CXXCPP $CPPFLAGS'
30873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30876
30877    cat >conftest.$ac_ext <<_ACEOF
30878 /* confdefs.h.  */
30879 _ACEOF
30880 cat confdefs.h >>conftest.$ac_ext
30881 cat >>conftest.$ac_ext <<_ACEOF
30882 /* end confdefs.h.  */
30883 #include <math.h>
30884 int
30885 main ()
30886 {
30887 float f; isinf(f);
30888   ;
30889   return 0;
30890 }
30891 _ACEOF
30892 rm -f conftest.$ac_objext
30893 if { (ac_try="$ac_compile"
30894 case "(($ac_try" in
30895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896   *) ac_try_echo=$ac_try;;
30897 esac
30898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899   (eval "$ac_compile") 2>conftest.er1
30900   ac_status=$?
30901   grep -v '^ *+' conftest.er1 >conftest.err
30902   rm -f conftest.er1
30903   cat conftest.err >&5
30904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905   (exit $ac_status); } && {
30906          test -z "$ac_cxx_werror_flag" ||
30907          test ! -s conftest.err
30908        } && test -s conftest.$ac_objext; then
30909   ac_cv_func_isinf_in_math_h=yes
30910 else
30911   echo "$as_me: failed program was:" >&5
30912 sed 's/^/| /' conftest.$ac_ext >&5
30913
30914         ac_cv_func_isinf_in_math_h=no
30915 fi
30916
30917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30918   ac_ext=c
30919 ac_cpp='$CPP $CPPFLAGS'
30920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30923
30924 fi
30925 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30926 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
30927
30928 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30929
30930 cat >>confdefs.h <<\_ACEOF
30931 #define HAVE_ISINF_IN_MATH_H 1
30932 _ACEOF
30933
30934 fi
30935
30936 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30937 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
30938 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30939   echo $ECHO_N "(cached) $ECHO_C" >&6
30940 else
30941   ac_ext=cpp
30942 ac_cpp='$CXXCPP $CPPFLAGS'
30943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30946
30947    cat >conftest.$ac_ext <<_ACEOF
30948 /* confdefs.h.  */
30949 _ACEOF
30950 cat confdefs.h >>conftest.$ac_ext
30951 cat >>conftest.$ac_ext <<_ACEOF
30952 /* end confdefs.h.  */
30953 #include <cmath>
30954 int
30955 main ()
30956 {
30957 float f; isinf(f);
30958   ;
30959   return 0;
30960 }
30961 _ACEOF
30962 rm -f conftest.$ac_objext
30963 if { (ac_try="$ac_compile"
30964 case "(($ac_try" in
30965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30966   *) ac_try_echo=$ac_try;;
30967 esac
30968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30969   (eval "$ac_compile") 2>conftest.er1
30970   ac_status=$?
30971   grep -v '^ *+' conftest.er1 >conftest.err
30972   rm -f conftest.er1
30973   cat conftest.err >&5
30974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975   (exit $ac_status); } && {
30976          test -z "$ac_cxx_werror_flag" ||
30977          test ! -s conftest.err
30978        } && test -s conftest.$ac_objext; then
30979   ac_cv_func_isinf_in_cmath=yes
30980 else
30981   echo "$as_me: failed program was:" >&5
30982 sed 's/^/| /' conftest.$ac_ext >&5
30983
30984         ac_cv_func_isinf_in_cmath=no
30985 fi
30986
30987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30988   ac_ext=c
30989 ac_cpp='$CPP $CPPFLAGS'
30990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30993
30994 fi
30995 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30996 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
30997
30998 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30999
31000 cat >>confdefs.h <<\_ACEOF
31001 #define HAVE_ISINF_IN_CMATH 1
31002 _ACEOF
31003
31004 fi
31005
31006 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
31007 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
31008 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
31009   echo $ECHO_N "(cached) $ECHO_C" >&6
31010 else
31011   ac_ext=cpp
31012 ac_cpp='$CXXCPP $CPPFLAGS'
31013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31016
31017    cat >conftest.$ac_ext <<_ACEOF
31018 /* confdefs.h.  */
31019 _ACEOF
31020 cat confdefs.h >>conftest.$ac_ext
31021 cat >>conftest.$ac_ext <<_ACEOF
31022 /* end confdefs.h.  */
31023 #include <cmath>
31024 int
31025 main ()
31026 {
31027 float f; std::isinf(f)}
31028   ;
31029   return 0;
31030 }
31031 _ACEOF
31032 rm -f conftest.$ac_objext
31033 if { (ac_try="$ac_compile"
31034 case "(($ac_try" in
31035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31036   *) ac_try_echo=$ac_try;;
31037 esac
31038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31039   (eval "$ac_compile") 2>conftest.er1
31040   ac_status=$?
31041   grep -v '^ *+' conftest.er1 >conftest.err
31042   rm -f conftest.er1
31043   cat conftest.err >&5
31044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045   (exit $ac_status); } && {
31046          test -z "$ac_cxx_werror_flag" ||
31047          test ! -s conftest.err
31048        } && test -s conftest.$ac_objext; then
31049   ac_cv_func_std_isinf_in_cmath=yes
31050 else
31051   echo "$as_me: failed program was:" >&5
31052 sed 's/^/| /' conftest.$ac_ext >&5
31053
31054         ac_cv_func_std_isinf_in_cmath=no
31055 fi
31056
31057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31058   ac_ext=c
31059 ac_cpp='$CPP $CPPFLAGS'
31060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31063
31064 fi
31065 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
31066 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
31067
31068 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
31069
31070 cat >>confdefs.h <<\_ACEOF
31071 #define HAVE_STD_ISINF_IN_CMATH 1
31072 _ACEOF
31073
31074 fi
31075
31076 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
31077 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
31078 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
31079   echo $ECHO_N "(cached) $ECHO_C" >&6
31080 else
31081   ac_ext=cpp
31082 ac_cpp='$CXXCPP $CPPFLAGS'
31083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31086
31087    cat >conftest.$ac_ext <<_ACEOF
31088 /* confdefs.h.  */
31089 _ACEOF
31090 cat confdefs.h >>conftest.$ac_ext
31091 cat >>conftest.$ac_ext <<_ACEOF
31092 /* end confdefs.h.  */
31093 #include <ieeefp.h>
31094 int
31095 main ()
31096 {
31097 float f; finite(f);
31098   ;
31099   return 0;
31100 }
31101 _ACEOF
31102 rm -f conftest.$ac_objext
31103 if { (ac_try="$ac_compile"
31104 case "(($ac_try" in
31105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31106   *) ac_try_echo=$ac_try;;
31107 esac
31108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31109   (eval "$ac_compile") 2>conftest.er1
31110   ac_status=$?
31111   grep -v '^ *+' conftest.er1 >conftest.err
31112   rm -f conftest.er1
31113   cat conftest.err >&5
31114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115   (exit $ac_status); } && {
31116          test -z "$ac_cxx_werror_flag" ||
31117          test ! -s conftest.err
31118        } && test -s conftest.$ac_objext; then
31119   ac_cv_func_finite_in_ieeefp_h=yes
31120 else
31121   echo "$as_me: failed program was:" >&5
31122 sed 's/^/| /' conftest.$ac_ext >&5
31123
31124         ac_cv_func_finite_in_ieeefp_h=no
31125 fi
31126
31127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31128   ac_ext=c
31129 ac_cpp='$CPP $CPPFLAGS'
31130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31133
31134 fi
31135 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
31136 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
31137
31138 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
31139
31140 cat >>confdefs.h <<\_ACEOF
31141 #define HAVE_FINITE_IN_IEEEFP_H 1
31142 _ACEOF
31143
31144 fi
31145
31146
31147
31148 if test "$llvm_cv_platform_type" = "Unix" ; then
31149
31150
31151 for ac_header in stdlib.h unistd.h
31152 do
31153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31155   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31158   echo $ECHO_N "(cached) $ECHO_C" >&6
31159 fi
31160 ac_res=`eval echo '${'$as_ac_Header'}'`
31161                { echo "$as_me:$LINENO: result: $ac_res" >&5
31162 echo "${ECHO_T}$ac_res" >&6; }
31163 else
31164   # Is the header compilable?
31165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31167 cat >conftest.$ac_ext <<_ACEOF
31168 /* confdefs.h.  */
31169 _ACEOF
31170 cat confdefs.h >>conftest.$ac_ext
31171 cat >>conftest.$ac_ext <<_ACEOF
31172 /* end confdefs.h.  */
31173 $ac_includes_default
31174 #include <$ac_header>
31175 _ACEOF
31176 rm -f conftest.$ac_objext
31177 if { (ac_try="$ac_compile"
31178 case "(($ac_try" in
31179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31180   *) ac_try_echo=$ac_try;;
31181 esac
31182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31183   (eval "$ac_compile") 2>conftest.er1
31184   ac_status=$?
31185   grep -v '^ *+' conftest.er1 >conftest.err
31186   rm -f conftest.er1
31187   cat conftest.err >&5
31188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31189   (exit $ac_status); } && {
31190          test -z "$ac_c_werror_flag" ||
31191          test ! -s conftest.err
31192        } && test -s conftest.$ac_objext; then
31193   ac_header_compiler=yes
31194 else
31195   echo "$as_me: failed program was:" >&5
31196 sed 's/^/| /' conftest.$ac_ext >&5
31197
31198         ac_header_compiler=no
31199 fi
31200
31201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31202 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31203 echo "${ECHO_T}$ac_header_compiler" >&6; }
31204
31205 # Is the header present?
31206 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31208 cat >conftest.$ac_ext <<_ACEOF
31209 /* confdefs.h.  */
31210 _ACEOF
31211 cat confdefs.h >>conftest.$ac_ext
31212 cat >>conftest.$ac_ext <<_ACEOF
31213 /* end confdefs.h.  */
31214 #include <$ac_header>
31215 _ACEOF
31216 if { (ac_try="$ac_cpp conftest.$ac_ext"
31217 case "(($ac_try" in
31218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31219   *) ac_try_echo=$ac_try;;
31220 esac
31221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31222   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31223   ac_status=$?
31224   grep -v '^ *+' conftest.er1 >conftest.err
31225   rm -f conftest.er1
31226   cat conftest.err >&5
31227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31228   (exit $ac_status); } >/dev/null && {
31229          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31230          test ! -s conftest.err
31231        }; then
31232   ac_header_preproc=yes
31233 else
31234   echo "$as_me: failed program was:" >&5
31235 sed 's/^/| /' conftest.$ac_ext >&5
31236
31237   ac_header_preproc=no
31238 fi
31239
31240 rm -f conftest.err conftest.$ac_ext
31241 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31242 echo "${ECHO_T}$ac_header_preproc" >&6; }
31243
31244 # So?  What about this header?
31245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31246   yes:no: )
31247     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31249     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31251     ac_header_preproc=yes
31252     ;;
31253   no:yes:* )
31254     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31256     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31257 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31258     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31260     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31261 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31262     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31264     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31266     ( cat <<\_ASBOX
31267 ## ----------------------------------- ##
31268 ## Report this to llvmbugs@cs.uiuc.edu ##
31269 ## ----------------------------------- ##
31270 _ASBOX
31271      ) | sed "s/^/$as_me: WARNING:     /" >&2
31272     ;;
31273 esac
31274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31277   echo $ECHO_N "(cached) $ECHO_C" >&6
31278 else
31279   eval "$as_ac_Header=\$ac_header_preproc"
31280 fi
31281 ac_res=`eval echo '${'$as_ac_Header'}'`
31282                { echo "$as_me:$LINENO: result: $ac_res" >&5
31283 echo "${ECHO_T}$ac_res" >&6; }
31284
31285 fi
31286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31287   cat >>confdefs.h <<_ACEOF
31288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31289 _ACEOF
31290
31291 fi
31292
31293 done
31294
31295
31296 for ac_func in getpagesize
31297 do
31298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31299 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31302   echo $ECHO_N "(cached) $ECHO_C" >&6
31303 else
31304   cat >conftest.$ac_ext <<_ACEOF
31305 /* confdefs.h.  */
31306 _ACEOF
31307 cat confdefs.h >>conftest.$ac_ext
31308 cat >>conftest.$ac_ext <<_ACEOF
31309 /* end confdefs.h.  */
31310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31312 #define $ac_func innocuous_$ac_func
31313
31314 /* System header to define __stub macros and hopefully few prototypes,
31315     which can conflict with char $ac_func (); below.
31316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31317     <limits.h> exists even on freestanding compilers.  */
31318
31319 #ifdef __STDC__
31320 # include <limits.h>
31321 #else
31322 # include <assert.h>
31323 #endif
31324
31325 #undef $ac_func
31326
31327 /* Override any GCC internal prototype to avoid an error.
31328    Use char because int might match the return type of a GCC
31329    builtin and then its argument prototype would still apply.  */
31330 #ifdef __cplusplus
31331 extern "C"
31332 #endif
31333 char $ac_func ();
31334 /* The GNU C library defines this for functions which it implements
31335     to always fail with ENOSYS.  Some functions are actually named
31336     something starting with __ and the normal name is an alias.  */
31337 #if defined __stub_$ac_func || defined __stub___$ac_func
31338 choke me
31339 #endif
31340
31341 int
31342 main ()
31343 {
31344 return $ac_func ();
31345   ;
31346   return 0;
31347 }
31348 _ACEOF
31349 rm -f conftest.$ac_objext conftest$ac_exeext
31350 if { (ac_try="$ac_link"
31351 case "(($ac_try" in
31352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31353   *) ac_try_echo=$ac_try;;
31354 esac
31355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31356   (eval "$ac_link") 2>conftest.er1
31357   ac_status=$?
31358   grep -v '^ *+' conftest.er1 >conftest.err
31359   rm -f conftest.er1
31360   cat conftest.err >&5
31361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362   (exit $ac_status); } && {
31363          test -z "$ac_c_werror_flag" ||
31364          test ! -s conftest.err
31365        } && test -s conftest$ac_exeext &&
31366        $as_test_x conftest$ac_exeext; then
31367   eval "$as_ac_var=yes"
31368 else
31369   echo "$as_me: failed program was:" >&5
31370 sed 's/^/| /' conftest.$ac_ext >&5
31371
31372         eval "$as_ac_var=no"
31373 fi
31374
31375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31376       conftest$ac_exeext conftest.$ac_ext
31377 fi
31378 ac_res=`eval echo '${'$as_ac_var'}'`
31379                { echo "$as_me:$LINENO: result: $ac_res" >&5
31380 echo "${ECHO_T}$ac_res" >&6; }
31381 if test `eval echo '${'$as_ac_var'}'` = yes; then
31382   cat >>confdefs.h <<_ACEOF
31383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31384 _ACEOF
31385
31386 fi
31387 done
31388
31389 { echo "$as_me:$LINENO: checking for working mmap" >&5
31390 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
31391 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31392   echo $ECHO_N "(cached) $ECHO_C" >&6
31393 else
31394   if test "$cross_compiling" = yes; then
31395   ac_cv_func_mmap_fixed_mapped=no
31396 else
31397   cat >conftest.$ac_ext <<_ACEOF
31398 /* confdefs.h.  */
31399 _ACEOF
31400 cat confdefs.h >>conftest.$ac_ext
31401 cat >>conftest.$ac_ext <<_ACEOF
31402 /* end confdefs.h.  */
31403 $ac_includes_default
31404 /* malloc might have been renamed as rpl_malloc. */
31405 #undef malloc
31406
31407 /* Thanks to Mike Haertel and Jim Avera for this test.
31408    Here is a matrix of mmap possibilities:
31409         mmap private not fixed
31410         mmap private fixed at somewhere currently unmapped
31411         mmap private fixed at somewhere already mapped
31412         mmap shared not fixed
31413         mmap shared fixed at somewhere currently unmapped
31414         mmap shared fixed at somewhere already mapped
31415    For private mappings, we should verify that changes cannot be read()
31416    back from the file, nor mmap's back from the file at a different
31417    address.  (There have been systems where private was not correctly
31418    implemented like the infamous i386 svr4.0, and systems where the
31419    VM page cache was not coherent with the file system buffer cache
31420    like early versions of FreeBSD and possibly contemporary NetBSD.)
31421    For shared mappings, we should conversely verify that changes get
31422    propagated back to all the places they're supposed to be.
31423
31424    Grep wants private fixed already mapped.
31425    The main things grep needs to know about mmap are:
31426    * does it exist and is it safe to write into the mmap'd area
31427    * how to use it (BSD variants)  */
31428
31429 #include <fcntl.h>
31430 #include <sys/mman.h>
31431
31432 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
31433 char *malloc ();
31434 #endif
31435
31436 /* This mess was copied from the GNU getpagesize.h.  */
31437 #ifndef HAVE_GETPAGESIZE
31438 /* Assume that all systems that can run configure have sys/param.h.  */
31439 # ifndef HAVE_SYS_PARAM_H
31440 #  define HAVE_SYS_PARAM_H 1
31441 # endif
31442
31443 # ifdef _SC_PAGESIZE
31444 #  define getpagesize() sysconf(_SC_PAGESIZE)
31445 # else /* no _SC_PAGESIZE */
31446 #  ifdef HAVE_SYS_PARAM_H
31447 #   include <sys/param.h>
31448 #   ifdef EXEC_PAGESIZE
31449 #    define getpagesize() EXEC_PAGESIZE
31450 #   else /* no EXEC_PAGESIZE */
31451 #    ifdef NBPG
31452 #     define getpagesize() NBPG * CLSIZE
31453 #     ifndef CLSIZE
31454 #      define CLSIZE 1
31455 #     endif /* no CLSIZE */
31456 #    else /* no NBPG */
31457 #     ifdef NBPC
31458 #      define getpagesize() NBPC
31459 #     else /* no NBPC */
31460 #      ifdef PAGESIZE
31461 #       define getpagesize() PAGESIZE
31462 #      endif /* PAGESIZE */
31463 #     endif /* no NBPC */
31464 #    endif /* no NBPG */
31465 #   endif /* no EXEC_PAGESIZE */
31466 #  else /* no HAVE_SYS_PARAM_H */
31467 #   define getpagesize() 8192   /* punt totally */
31468 #  endif /* no HAVE_SYS_PARAM_H */
31469 # endif /* no _SC_PAGESIZE */
31470
31471 #endif /* no HAVE_GETPAGESIZE */
31472
31473 int
31474 main ()
31475 {
31476   char *data, *data2, *data3;
31477   int i, pagesize;
31478   int fd;
31479
31480   pagesize = getpagesize ();
31481
31482   /* First, make a file with some known garbage in it. */
31483   data = (char *) malloc (pagesize);
31484   if (!data)
31485     return 1;
31486   for (i = 0; i < pagesize; ++i)
31487     *(data + i) = rand ();
31488   umask (0);
31489   fd = creat ("conftest.mmap", 0600);
31490   if (fd < 0)
31491     return 1;
31492   if (write (fd, data, pagesize) != pagesize)
31493     return 1;
31494   close (fd);
31495
31496   /* Next, try to mmap the file at a fixed address which already has
31497      something else allocated at it.  If we can, also make sure that
31498      we see the same garbage.  */
31499   fd = open ("conftest.mmap", O_RDWR);
31500   if (fd < 0)
31501     return 1;
31502   data2 = (char *) malloc (2 * pagesize);
31503   if (!data2)
31504     return 1;
31505   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
31506   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
31507                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
31508     return 1;
31509   for (i = 0; i < pagesize; ++i)
31510     if (*(data + i) != *(data2 + i))
31511       return 1;
31512
31513   /* Finally, make sure that changes to the mapped area do not
31514      percolate back to the file as seen by read().  (This is a bug on
31515      some variants of i386 svr4.0.)  */
31516   for (i = 0; i < pagesize; ++i)
31517     *(data2 + i) = *(data2 + i) + 1;
31518   data3 = (char *) malloc (pagesize);
31519   if (!data3)
31520     return 1;
31521   if (read (fd, data3, pagesize) != pagesize)
31522     return 1;
31523   for (i = 0; i < pagesize; ++i)
31524     if (*(data + i) != *(data3 + i))
31525       return 1;
31526   close (fd);
31527   return 0;
31528 }
31529 _ACEOF
31530 rm -f conftest$ac_exeext
31531 if { (ac_try="$ac_link"
31532 case "(($ac_try" in
31533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534   *) ac_try_echo=$ac_try;;
31535 esac
31536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31537   (eval "$ac_link") 2>&5
31538   ac_status=$?
31539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31541   { (case "(($ac_try" in
31542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31543   *) ac_try_echo=$ac_try;;
31544 esac
31545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31546   (eval "$ac_try") 2>&5
31547   ac_status=$?
31548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549   (exit $ac_status); }; }; then
31550   ac_cv_func_mmap_fixed_mapped=yes
31551 else
31552   echo "$as_me: program exited with status $ac_status" >&5
31553 echo "$as_me: failed program was:" >&5
31554 sed 's/^/| /' conftest.$ac_ext >&5
31555
31556 ( exit $ac_status )
31557 ac_cv_func_mmap_fixed_mapped=no
31558 fi
31559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31560 fi
31561
31562
31563 fi
31564 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31565 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
31566 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31567
31568 cat >>confdefs.h <<\_ACEOF
31569 #define HAVE_MMAP 1
31570 _ACEOF
31571
31572 fi
31573 rm -f conftest.mmap
31574
31575   { echo "$as_me:$LINENO: checking for mmap of files" >&5
31576 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
31577 if test "${ac_cv_func_mmap_file+set}" = set; then
31578   echo $ECHO_N "(cached) $ECHO_C" >&6
31579 else
31580    ac_ext=c
31581 ac_cpp='$CPP $CPPFLAGS'
31582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31585
31586   if test "$cross_compiling" = yes; then
31587   ac_cv_func_mmap_file=no
31588 else
31589   cat >conftest.$ac_ext <<_ACEOF
31590
31591     /* confdefs.h.  */
31592 _ACEOF
31593 cat confdefs.h >>conftest.$ac_ext
31594 cat >>conftest.$ac_ext <<_ACEOF
31595 /* end confdefs.h.  */
31596
31597 #include <sys/types.h>
31598 #include <sys/mman.h>
31599 #include <fcntl.h>
31600
31601 int
31602 main ()
31603 {
31604
31605   int fd;
31606   fd = creat ("foo",0777);
31607   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31608   unlink ("foo");
31609   return (fd != (int) MAP_FAILED);
31610   ;
31611   return 0;
31612 }
31613 _ACEOF
31614 rm -f conftest$ac_exeext
31615 if { (ac_try="$ac_link"
31616 case "(($ac_try" in
31617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31618   *) ac_try_echo=$ac_try;;
31619 esac
31620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31621   (eval "$ac_link") 2>&5
31622   ac_status=$?
31623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31625   { (case "(($ac_try" in
31626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31627   *) ac_try_echo=$ac_try;;
31628 esac
31629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31630   (eval "$ac_try") 2>&5
31631   ac_status=$?
31632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31633   (exit $ac_status); }; }; then
31634   ac_cv_func_mmap_file=yes
31635 else
31636   echo "$as_me: program exited with status $ac_status" >&5
31637 echo "$as_me: failed program was:" >&5
31638 sed 's/^/| /' conftest.$ac_ext >&5
31639
31640 ( exit $ac_status )
31641 ac_cv_func_mmap_file=no
31642 fi
31643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31644 fi
31645
31646
31647   ac_ext=c
31648 ac_cpp='$CPP $CPPFLAGS'
31649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31652
31653
31654 fi
31655 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31656 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
31657 if test "$ac_cv_func_mmap_file" = yes; then
31658
31659 cat >>confdefs.h <<\_ACEOF
31660 #define HAVE_MMAP_FILE
31661 _ACEOF
31662
31663    MMAP_FILE=yes
31664
31665 fi
31666
31667   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31668 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
31669 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31670   echo $ECHO_N "(cached) $ECHO_C" >&6
31671 else
31672   if test "$llvm_cv_os_type" = "Interix" ; then
31673    ac_cv_need_dev_zero_for_mmap=yes
31674  else
31675    ac_cv_need_dev_zero_for_mmap=no
31676  fi
31677
31678 fi
31679 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31680 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
31681 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31682
31683 cat >>confdefs.h <<\_ACEOF
31684 #define NEED_DEV_ZERO_FOR_MMAP 1
31685 _ACEOF
31686
31687 fi
31688
31689   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31690   then
31691     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31692 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31693   fi
31694   if test "$ac_cv_func_mmap_file" = "no"
31695   then
31696     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31697 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31698   fi
31699 fi
31700
31701
31702
31703 for ac_func in __dso_handle
31704 do
31705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31709   echo $ECHO_N "(cached) $ECHO_C" >&6
31710 else
31711   cat >conftest.$ac_ext <<_ACEOF
31712 /* confdefs.h.  */
31713 _ACEOF
31714 cat confdefs.h >>conftest.$ac_ext
31715 cat >>conftest.$ac_ext <<_ACEOF
31716 /* end confdefs.h.  */
31717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31719 #define $ac_func innocuous_$ac_func
31720
31721 /* System header to define __stub macros and hopefully few prototypes,
31722     which can conflict with char $ac_func (); below.
31723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31724     <limits.h> exists even on freestanding compilers.  */
31725
31726 #ifdef __STDC__
31727 # include <limits.h>
31728 #else
31729 # include <assert.h>
31730 #endif
31731
31732 #undef $ac_func
31733
31734 /* Override any GCC internal prototype to avoid an error.
31735    Use char because int might match the return type of a GCC
31736    builtin and then its argument prototype would still apply.  */
31737 #ifdef __cplusplus
31738 extern "C"
31739 #endif
31740 char $ac_func ();
31741 /* The GNU C library defines this for functions which it implements
31742     to always fail with ENOSYS.  Some functions are actually named
31743     something starting with __ and the normal name is an alias.  */
31744 #if defined __stub_$ac_func || defined __stub___$ac_func
31745 choke me
31746 #endif
31747
31748 int
31749 main ()
31750 {
31751 return $ac_func ();
31752   ;
31753   return 0;
31754 }
31755 _ACEOF
31756 rm -f conftest.$ac_objext conftest$ac_exeext
31757 if { (ac_try="$ac_link"
31758 case "(($ac_try" in
31759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31760   *) ac_try_echo=$ac_try;;
31761 esac
31762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31763   (eval "$ac_link") 2>conftest.er1
31764   ac_status=$?
31765   grep -v '^ *+' conftest.er1 >conftest.err
31766   rm -f conftest.er1
31767   cat conftest.err >&5
31768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769   (exit $ac_status); } && {
31770          test -z "$ac_c_werror_flag" ||
31771          test ! -s conftest.err
31772        } && test -s conftest$ac_exeext &&
31773        $as_test_x conftest$ac_exeext; then
31774   eval "$as_ac_var=yes"
31775 else
31776   echo "$as_me: failed program was:" >&5
31777 sed 's/^/| /' conftest.$ac_ext >&5
31778
31779         eval "$as_ac_var=no"
31780 fi
31781
31782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31783       conftest$ac_exeext conftest.$ac_ext
31784 fi
31785 ac_res=`eval echo '${'$as_ac_var'}'`
31786                { echo "$as_me:$LINENO: result: $ac_res" >&5
31787 echo "${ECHO_T}$ac_res" >&6; }
31788 if test `eval echo '${'$as_ac_var'}'` = yes; then
31789   cat >>confdefs.h <<_ACEOF
31790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31791 _ACEOF
31792
31793 fi
31794 done
31795
31796
31797 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31798 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
31799 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31800   echo $ECHO_N "(cached) $ECHO_C" >&6
31801 else
31802   llvm_cv_llvmgcc_sanity="no"
31803 if test -x "$LLVMGCC" ; then
31804   cp /dev/null conftest.c
31805   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
31806       grep 'target datalayout =' > /dev/null 2>&1
31807   if test $? -eq 0 ; then
31808     llvm_cv_llvmgcc_sanity="yes"
31809   fi
31810   rm conftest.c
31811 fi
31812 fi
31813 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31814 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
31815
31816 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31817   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
31818 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
31819   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31820   LLVMCC1=$llvmcc1path
31821
31822   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31823   LLVMCC1PLUS=$llvmcc1pluspath
31824
31825   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31826   LLVMGCCDIR=$llvmgccdir
31827
31828   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
31829   LLVMGCCLIBEXEC=$llvmgcclibexec
31830
31831   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31832   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31833   LLVMGCC_VERSION=$llvmgccversion
31834
31835   LLVMGCC_MAJVERS=$llvmgccmajvers
31836
31837   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
31838   LLVMGCC_LANGS=$llvmgcclangs
31839
31840   { echo "$as_me:$LINENO: result: ok" >&5
31841 echo "${ECHO_T}ok" >&6; }
31842 fi
31843
31844 SHLIBEXT=$libltdl_cv_shlibext
31845
31846
31847 # Translate the various configuration directories and other basic
31848 # information into substitutions that will end up in Makefile.config.in
31849 # that these configured values can be used by the makefiles
31850 if test "${prefix}" = "NONE" ; then
31851   prefix="/usr/local"
31852 fi
31853 eval LLVM_PREFIX="${prefix}";
31854 eval LLVM_BINDIR="${prefix}/bin";
31855 eval LLVM_LIBDIR="${prefix}/lib";
31856 eval LLVM_DATADIR="${prefix}/share/llvm";
31857 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31858 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31859 eval LLVM_INCLUDEDIR="${prefix}/include";
31860 eval LLVM_INFODIR="${prefix}/info";
31861 eval LLVM_MANDIR="${prefix}/man";
31862 LLVM_CONFIGTIME=`date`
31863
31864
31865
31866
31867
31868
31869
31870
31871
31872
31873
31874 # Place the various directores into the config.h file as #defines so that we
31875 # can know about the installation paths within LLVM.
31876
31877 cat >>confdefs.h <<_ACEOF
31878 #define LLVM_PREFIX "$LLVM_PREFIX"
31879 _ACEOF
31880
31881
31882 cat >>confdefs.h <<_ACEOF
31883 #define LLVM_BINDIR "$LLVM_BINDIR"
31884 _ACEOF
31885
31886
31887 cat >>confdefs.h <<_ACEOF
31888 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31889 _ACEOF
31890
31891
31892 cat >>confdefs.h <<_ACEOF
31893 #define LLVM_DATADIR "$LLVM_DATADIR"
31894 _ACEOF
31895
31896
31897 cat >>confdefs.h <<_ACEOF
31898 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
31899 _ACEOF
31900
31901
31902 cat >>confdefs.h <<_ACEOF
31903 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31904 _ACEOF
31905
31906
31907 cat >>confdefs.h <<_ACEOF
31908 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31909 _ACEOF
31910
31911
31912 cat >>confdefs.h <<_ACEOF
31913 #define LLVM_INFODIR "$LLVM_INFODIR"
31914 _ACEOF
31915
31916
31917 cat >>confdefs.h <<_ACEOF
31918 #define LLVM_MANDIR "$LLVM_MANDIR"
31919 _ACEOF
31920
31921
31922 cat >>confdefs.h <<_ACEOF
31923 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31924 _ACEOF
31925
31926
31927 cat >>confdefs.h <<_ACEOF
31928 #define LLVM_HOSTTRIPLE "$host"
31929 _ACEOF
31930
31931
31932 # Determine which bindings to build.
31933 if test "$BINDINGS_TO_BUILD" = auto ; then
31934   BINDINGS_TO_BUILD=""
31935   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
31936     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
31937   fi
31938 fi
31939 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
31940
31941
31942 # This isn't really configurey, but it avoids having to repeat the list in
31943 # other files.
31944 ALL_BINDINGS=ocaml
31945
31946
31947 # Do any work necessary to ensure that bindings have what they need.
31948 binding_prereqs_failed=0
31949 for a_binding in $BINDINGS_TO_BUILD ; do
31950   case "$a_binding" in
31951   ocaml)
31952     if test "x$OCAMLC" = x ; then
31953       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
31954 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
31955       binding_prereqs_failed=1
31956     fi
31957     if test "x$OCAMLDEP" = x ; then
31958       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
31959 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
31960       binding_prereqs_failed=1
31961     fi
31962     if test "x$OCAMLOPT" = x ; then
31963       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
31964 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
31965           fi
31966     if test "x$with_ocaml_libdir" != xauto ; then
31967       OCAML_LIBDIR=$with_ocaml_libdir
31968
31969     else
31970       ocaml_stdlib="`"$OCAMLC" -where`"
31971       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
31972       then
31973         # ocaml stdlib is beneath our prefix; use stdlib
31974         OCAML_LIBDIR=$ocaml_stdlib
31975
31976       else
31977         # ocaml stdlib is outside our prefix; use libdir/ocaml
31978         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
31979
31980       fi
31981     fi
31982     ;;
31983   esac
31984 done
31985 if test "$binding_prereqs_failed" = 1 ; then
31986   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
31987 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
31988    { (exit 1); exit 1; }; }
31989 fi
31990
31991
31992
31993 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31994
31995 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31996
31997 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31998
31999 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
32000
32001 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
32002
32003
32004 ac_config_files="$ac_config_files Makefile.config"
32005
32006
32007 ac_config_files="$ac_config_files llvm.spec"
32008
32009
32010 ac_config_files="$ac_config_files docs/doxygen.cfg"
32011
32012
32013 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
32014
32015
32016 ac_config_commands="$ac_config_commands setup"
32017
32018 ac_config_commands="$ac_config_commands Makefile"
32019
32020
32021 ac_config_commands="$ac_config_commands Makefile.common"
32022
32023
32024 ac_config_commands="$ac_config_commands examples/Makefile"
32025
32026
32027 ac_config_commands="$ac_config_commands lib/Makefile"
32028
32029
32030 ac_config_commands="$ac_config_commands runtime/Makefile"
32031
32032
32033 ac_config_commands="$ac_config_commands test/Makefile"
32034
32035
32036 ac_config_commands="$ac_config_commands test/Makefile.tests"
32037
32038
32039 ac_config_commands="$ac_config_commands tools/Makefile"
32040
32041
32042 ac_config_commands="$ac_config_commands utils/Makefile"
32043
32044
32045 ac_config_commands="$ac_config_commands projects/Makefile"
32046
32047
32048 ac_config_commands="$ac_config_commands bindings/Makefile"
32049
32050
32051 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
32052
32053
32054
32055 cat >confcache <<\_ACEOF
32056 # This file is a shell script that caches the results of configure
32057 # tests run on this system so they can be shared between configure
32058 # scripts and configure runs, see configure's option --config-cache.
32059 # It is not useful on other systems.  If it contains results you don't
32060 # want to keep, you may remove or edit it.
32061 #
32062 # config.status only pays attention to the cache file if you give it
32063 # the --recheck option to rerun configure.
32064 #
32065 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32066 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32067 # following values.
32068
32069 _ACEOF
32070
32071 # The following way of writing the cache mishandles newlines in values,
32072 # but we know of no workaround that is simple, portable, and efficient.
32073 # So, we kill variables containing newlines.
32074 # Ultrix sh set writes to stderr and can't be redirected directly,
32075 # and sets the high bit in the cache file unless we assign to the vars.
32076 (
32077   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32078     eval ac_val=\$$ac_var
32079     case $ac_val in #(
32080     *${as_nl}*)
32081       case $ac_var in #(
32082       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32083 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32084       esac
32085       case $ac_var in #(
32086       _ | IFS | as_nl) ;; #(
32087       *) $as_unset $ac_var ;;
32088       esac ;;
32089     esac
32090   done
32091
32092   (set) 2>&1 |
32093     case $as_nl`(ac_space=' '; set) 2>&1` in #(
32094     *${as_nl}ac_space=\ *)
32095       # `set' does not quote correctly, so add quotes (double-quote
32096       # substitution turns \\\\ into \\, and sed turns \\ into \).
32097       sed -n \
32098         "s/'/'\\\\''/g;
32099           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32100       ;; #(
32101     *)
32102       # `set' quotes correctly as required by POSIX, so do not add quotes.
32103       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32104       ;;
32105     esac |
32106     sort
32107 ) |
32108   sed '
32109      /^ac_cv_env_/b end
32110      t clear
32111      :clear
32112      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32113      t end
32114      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32115      :end' >>confcache
32116 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32117   if test -w "$cache_file"; then
32118     test "x$cache_file" != "x/dev/null" &&
32119       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32120 echo "$as_me: updating cache $cache_file" >&6;}
32121     cat confcache >$cache_file
32122   else
32123     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32124 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32125   fi
32126 fi
32127 rm -f confcache
32128
32129 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32130 # Let make expand exec_prefix.
32131 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32132
32133 DEFS=-DHAVE_CONFIG_H
32134
32135 ac_libobjs=
32136 ac_ltlibobjs=
32137 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32138   # 1. Remove the extension, and $U if already installed.
32139   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32140   ac_i=`echo "$ac_i" | sed "$ac_script"`
32141   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32142   #    will be set to the directory where LIBOBJS objects are built.
32143   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32144   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32145 done
32146 LIBOBJS=$ac_libobjs
32147
32148 LTLIBOBJS=$ac_ltlibobjs
32149
32150
32151 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32152   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32153 Usually this means the macro was only invoked conditionally." >&5
32154 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32155 Usually this means the macro was only invoked conditionally." >&2;}
32156    { (exit 1); exit 1; }; }
32157 fi
32158 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32159   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32160 Usually this means the macro was only invoked conditionally." >&5
32161 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32162 Usually this means the macro was only invoked conditionally." >&2;}
32163    { (exit 1); exit 1; }; }
32164 fi
32165
32166 : ${CONFIG_STATUS=./config.status}
32167 ac_clean_files_save=$ac_clean_files
32168 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32169 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32170 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32171 cat >$CONFIG_STATUS <<_ACEOF
32172 #! $SHELL
32173 # Generated by $as_me.
32174 # Run this file to recreate the current configuration.
32175 # Compiler output produced by configure, useful for debugging
32176 # configure, is in config.log if it exists.
32177
32178 debug=false
32179 ac_cs_recheck=false
32180 ac_cs_silent=false
32181 SHELL=\${CONFIG_SHELL-$SHELL}
32182 _ACEOF
32183
32184 cat >>$CONFIG_STATUS <<\_ACEOF
32185 ## --------------------- ##
32186 ## M4sh Initialization.  ##
32187 ## --------------------- ##
32188
32189 # Be more Bourne compatible
32190 DUALCASE=1; export DUALCASE # for MKS sh
32191 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32192   emulate sh
32193   NULLCMD=:
32194   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32195   # is contrary to our usage.  Disable this feature.
32196   alias -g '${1+"$@"}'='"$@"'
32197   setopt NO_GLOB_SUBST
32198 else
32199   case `(set -o) 2>/dev/null` in
32200   *posix*) set -o posix ;;
32201 esac
32202
32203 fi
32204
32205
32206
32207
32208 # PATH needs CR
32209 # Avoid depending upon Character Ranges.
32210 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32211 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32212 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32213 as_cr_digits='0123456789'
32214 as_cr_alnum=$as_cr_Letters$as_cr_digits
32215
32216 # The user is always right.
32217 if test "${PATH_SEPARATOR+set}" != set; then
32218   echo "#! /bin/sh" >conf$$.sh
32219   echo  "exit 0"   >>conf$$.sh
32220   chmod +x conf$$.sh
32221   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32222     PATH_SEPARATOR=';'
32223   else
32224     PATH_SEPARATOR=:
32225   fi
32226   rm -f conf$$.sh
32227 fi
32228
32229 # Support unset when possible.
32230 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32231   as_unset=unset
32232 else
32233   as_unset=false
32234 fi
32235
32236
32237 # IFS
32238 # We need space, tab and new line, in precisely that order.  Quoting is
32239 # there to prevent editors from complaining about space-tab.
32240 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32241 # splitting by setting IFS to empty value.)
32242 as_nl='
32243 '
32244 IFS=" ""        $as_nl"
32245
32246 # Find who we are.  Look in the path if we contain no directory separator.
32247 case $0 in
32248   *[\\/]* ) as_myself=$0 ;;
32249   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32250 for as_dir in $PATH
32251 do
32252   IFS=$as_save_IFS
32253   test -z "$as_dir" && as_dir=.
32254   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32255 done
32256 IFS=$as_save_IFS
32257
32258      ;;
32259 esac
32260 # We did not find ourselves, most probably we were run as `sh COMMAND'
32261 # in which case we are not to be found in the path.
32262 if test "x$as_myself" = x; then
32263   as_myself=$0
32264 fi
32265 if test ! -f "$as_myself"; then
32266   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32267   { (exit 1); exit 1; }
32268 fi
32269
32270 # Work around bugs in pre-3.0 UWIN ksh.
32271 for as_var in ENV MAIL MAILPATH
32272 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32273 done
32274 PS1='$ '
32275 PS2='> '
32276 PS4='+ '
32277
32278 # NLS nuisances.
32279 for as_var in \
32280   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32281   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32282   LC_TELEPHONE LC_TIME
32283 do
32284   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32285     eval $as_var=C; export $as_var
32286   else
32287     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32288   fi
32289 done
32290
32291 # Required to use basename.
32292 if expr a : '\(a\)' >/dev/null 2>&1 &&
32293    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32294   as_expr=expr
32295 else
32296   as_expr=false
32297 fi
32298
32299 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32300   as_basename=basename
32301 else
32302   as_basename=false
32303 fi
32304
32305
32306 # Name of the executable.
32307 as_me=`$as_basename -- "$0" ||
32308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32309          X"$0" : 'X\(//\)$' \| \
32310          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32311 echo X/"$0" |
32312     sed '/^.*\/\([^/][^/]*\)\/*$/{
32313             s//\1/
32314             q
32315           }
32316           /^X\/\(\/\/\)$/{
32317             s//\1/
32318             q
32319           }
32320           /^X\/\(\/\).*/{
32321             s//\1/
32322             q
32323           }
32324           s/.*/./; q'`
32325
32326 # CDPATH.
32327 $as_unset CDPATH
32328
32329
32330
32331   as_lineno_1=$LINENO
32332   as_lineno_2=$LINENO
32333   test "x$as_lineno_1" != "x$as_lineno_2" &&
32334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32335
32336   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32337   # uniformly replaced by the line number.  The first 'sed' inserts a
32338   # line-number line after each line using $LINENO; the second 'sed'
32339   # does the real work.  The second script uses 'N' to pair each
32340   # line-number line with the line containing $LINENO, and appends
32341   # trailing '-' during substitution so that $LINENO is not a special
32342   # case at line end.
32343   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32344   # scripts with optimization help from Paolo Bonzini.  Blame Lee
32345   # E. McMahon (1931-1989) for sed's syntax.  :-)
32346   sed -n '
32347     p
32348     /[$]LINENO/=
32349   ' <$as_myself |
32350     sed '
32351       s/[$]LINENO.*/&-/
32352       t lineno
32353       b
32354       :lineno
32355       N
32356       :loop
32357       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32358       t loop
32359       s/-\n.*//
32360     ' >$as_me.lineno &&
32361   chmod +x "$as_me.lineno" ||
32362     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32363    { (exit 1); exit 1; }; }
32364
32365   # Don't try to exec as it changes $[0], causing all sort of problems
32366   # (the dirname of $[0] is not the place where we might find the
32367   # original and so on.  Autoconf is especially sensitive to this).
32368   . "./$as_me.lineno"
32369   # Exit status is that of the last command.
32370   exit
32371 }
32372
32373
32374 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32375   as_dirname=dirname
32376 else
32377   as_dirname=false
32378 fi
32379
32380 ECHO_C= ECHO_N= ECHO_T=
32381 case `echo -n x` in
32382 -n*)
32383   case `echo 'x\c'` in
32384   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
32385   *)   ECHO_C='\c';;
32386   esac;;
32387 *)
32388   ECHO_N='-n';;
32389 esac
32390
32391 if expr a : '\(a\)' >/dev/null 2>&1 &&
32392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32393   as_expr=expr
32394 else
32395   as_expr=false
32396 fi
32397
32398 rm -f conf$$ conf$$.exe conf$$.file
32399 if test -d conf$$.dir; then
32400   rm -f conf$$.dir/conf$$.file
32401 else
32402   rm -f conf$$.dir
32403   mkdir conf$$.dir
32404 fi
32405 echo >conf$$.file
32406 if ln -s conf$$.file conf$$ 2>/dev/null; then
32407   as_ln_s='ln -s'
32408   # ... but there are two gotchas:
32409   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32410   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32411   # In both cases, we have to default to `cp -p'.
32412   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32413     as_ln_s='cp -p'
32414 elif ln conf$$.file conf$$ 2>/dev/null; then
32415   as_ln_s=ln
32416 else
32417   as_ln_s='cp -p'
32418 fi
32419 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32420 rmdir conf$$.dir 2>/dev/null
32421
32422 if mkdir -p . 2>/dev/null; then
32423   as_mkdir_p=:
32424 else
32425   test -d ./-p && rmdir ./-p
32426   as_mkdir_p=false
32427 fi
32428
32429 if test -x / >/dev/null 2>&1; then
32430   as_test_x='test -x'
32431 else
32432   if ls -dL / >/dev/null 2>&1; then
32433     as_ls_L_option=L
32434   else
32435     as_ls_L_option=
32436   fi
32437   as_test_x='
32438     eval sh -c '\''
32439       if test -d "$1"; then
32440         test -d "$1/.";
32441       else
32442         case $1 in
32443         -*)set "./$1";;
32444         esac;
32445         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32446         ???[sx]*):;;*)false;;esac;fi
32447     '\'' sh
32448   '
32449 fi
32450 as_executable_p=$as_test_x
32451
32452 # Sed expression to map a string onto a valid CPP name.
32453 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32454
32455 # Sed expression to map a string onto a valid variable name.
32456 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32457
32458
32459 exec 6>&1
32460
32461 # Save the log message, to keep $[0] and so on meaningful, and to
32462 # report actual input values of CONFIG_FILES etc. instead of their
32463 # values after options handling.
32464 ac_log="
32465 This file was extended by llvm $as_me 2.2svn, which was
32466 generated by GNU Autoconf 2.61.  Invocation command line was
32467
32468   CONFIG_FILES    = $CONFIG_FILES
32469   CONFIG_HEADERS  = $CONFIG_HEADERS
32470   CONFIG_LINKS    = $CONFIG_LINKS
32471   CONFIG_COMMANDS = $CONFIG_COMMANDS
32472   $ $0 $@
32473
32474 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32475 "
32476
32477 _ACEOF
32478
32479 cat >>$CONFIG_STATUS <<_ACEOF
32480 # Files that config.status was made for.
32481 config_files="$ac_config_files"
32482 config_headers="$ac_config_headers"
32483 config_commands="$ac_config_commands"
32484
32485 _ACEOF
32486
32487 cat >>$CONFIG_STATUS <<\_ACEOF
32488 ac_cs_usage="\
32489 \`$as_me' instantiates files from templates according to the
32490 current configuration.
32491
32492 Usage: $0 [OPTIONS] [FILE]...
32493
32494   -h, --help       print this help, then exit
32495   -V, --version    print version number and configuration settings, then exit
32496   -q, --quiet      do not print progress messages
32497   -d, --debug      don't remove temporary files
32498       --recheck    update $as_me by reconfiguring in the same conditions
32499   --file=FILE[:TEMPLATE]
32500                    instantiate the configuration file FILE
32501   --header=FILE[:TEMPLATE]
32502                    instantiate the configuration header FILE
32503
32504 Configuration files:
32505 $config_files
32506
32507 Configuration headers:
32508 $config_headers
32509
32510 Configuration commands:
32511 $config_commands
32512
32513 Report bugs to <bug-autoconf@gnu.org>."
32514
32515 _ACEOF
32516 cat >>$CONFIG_STATUS <<_ACEOF
32517 ac_cs_version="\\
32518 llvm config.status 2.2svn
32519 configured by $0, generated by GNU Autoconf 2.61,
32520   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32521
32522 Copyright (C) 2006 Free Software Foundation, Inc.
32523 This config.status script is free software; the Free Software Foundation
32524 gives unlimited permission to copy, distribute and modify it."
32525
32526 ac_pwd='$ac_pwd'
32527 srcdir='$srcdir'
32528 INSTALL='$INSTALL'
32529 _ACEOF
32530
32531 cat >>$CONFIG_STATUS <<\_ACEOF
32532 # If no file are specified by the user, then we need to provide default
32533 # value.  By we need to know if files were specified by the user.
32534 ac_need_defaults=:
32535 while test $# != 0
32536 do
32537   case $1 in
32538   --*=*)
32539     ac_option=`expr "X$1" : 'X\([^=]*\)='`
32540     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32541     ac_shift=:
32542     ;;
32543   *)
32544     ac_option=$1
32545     ac_optarg=$2
32546     ac_shift=shift
32547     ;;
32548   esac
32549
32550   case $ac_option in
32551   # Handling of the options.
32552   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32553     ac_cs_recheck=: ;;
32554   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32555     echo "$ac_cs_version"; exit ;;
32556   --debug | --debu | --deb | --de | --d | -d )
32557     debug=: ;;
32558   --file | --fil | --fi | --f )
32559     $ac_shift
32560     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32561     ac_need_defaults=false;;
32562   --header | --heade | --head | --hea )
32563     $ac_shift
32564     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32565     ac_need_defaults=false;;
32566   --he | --h)
32567     # Conflict between --help and --header
32568     { echo "$as_me: error: ambiguous option: $1
32569 Try \`$0 --help' for more information." >&2
32570    { (exit 1); exit 1; }; };;
32571   --help | --hel | -h )
32572     echo "$ac_cs_usage"; exit ;;
32573   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32574   | -silent | --silent | --silen | --sile | --sil | --si | --s)
32575     ac_cs_silent=: ;;
32576
32577   # This is an error.
32578   -*) { echo "$as_me: error: unrecognized option: $1
32579 Try \`$0 --help' for more information." >&2
32580    { (exit 1); exit 1; }; } ;;
32581
32582   *) ac_config_targets="$ac_config_targets $1"
32583      ac_need_defaults=false ;;
32584
32585   esac
32586   shift
32587 done
32588
32589 ac_configure_extra_args=
32590
32591 if $ac_cs_silent; then
32592   exec 6>/dev/null
32593   ac_configure_extra_args="$ac_configure_extra_args --silent"
32594 fi
32595
32596 _ACEOF
32597 cat >>$CONFIG_STATUS <<_ACEOF
32598 if \$ac_cs_recheck; then
32599   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32600   CONFIG_SHELL=$SHELL
32601   export CONFIG_SHELL
32602   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32603 fi
32604
32605 _ACEOF
32606 cat >>$CONFIG_STATUS <<\_ACEOF
32607 exec 5>>config.log
32608 {
32609   echo
32610   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32611 ## Running $as_me. ##
32612 _ASBOX
32613   echo "$ac_log"
32614 } >&5
32615
32616 _ACEOF
32617 cat >>$CONFIG_STATUS <<_ACEOF
32618 #
32619 # INIT-COMMANDS
32620 #
32621 llvm_src="${srcdir}"
32622
32623 _ACEOF
32624
32625 cat >>$CONFIG_STATUS <<\_ACEOF
32626
32627 # Handling of arguments.
32628 for ac_config_target in $ac_config_targets
32629 do
32630   case $ac_config_target in
32631     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
32632     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
32633     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
32634     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
32635     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
32636     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
32637     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
32638     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
32639     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
32640     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
32641     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
32642     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
32643     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
32644     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
32645     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
32646     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32647     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
32648     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
32649     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
32650     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
32651     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
32652     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
32653
32654   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32655 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32656    { (exit 1); exit 1; }; };;
32657   esac
32658 done
32659
32660
32661 # If the user did not use the arguments to specify the items to instantiate,
32662 # then the envvar interface is used.  Set only those that are not.
32663 # We use the long form for the default assignment because of an extremely
32664 # bizarre bug on SunOS 4.1.3.
32665 if $ac_need_defaults; then
32666   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32667   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32668   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32669 fi
32670
32671 # Have a temporary directory for convenience.  Make it in the build tree
32672 # simply because there is no reason against having it here, and in addition,
32673 # creating and moving files from /tmp can sometimes cause problems.
32674 # Hook for its removal unless debugging.
32675 # Note that there is a small window in which the directory will not be cleaned:
32676 # after its creation but before its name has been assigned to `$tmp'.
32677 $debug ||
32678 {
32679   tmp=
32680   trap 'exit_status=$?
32681   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32682 ' 0
32683   trap '{ (exit 1); exit 1; }' 1 2 13 15
32684 }
32685 # Create a (secure) tmp directory for tmp files.
32686
32687 {
32688   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32689   test -n "$tmp" && test -d "$tmp"
32690 }  ||
32691 {
32692   tmp=./conf$$-$RANDOM
32693   (umask 077 && mkdir "$tmp")
32694 } ||
32695 {
32696    echo "$me: cannot create a temporary directory in ." >&2
32697    { (exit 1); exit 1; }
32698 }
32699
32700 #
32701 # Set up the sed scripts for CONFIG_FILES section.
32702 #
32703
32704 # No need to generate the scripts if there are no CONFIG_FILES.
32705 # This happens for instance when ./config.status config.h
32706 if test -n "$CONFIG_FILES"; then
32707
32708 _ACEOF
32709
32710
32711
32712 ac_delim='%!_!# '
32713 for ac_last_try in false false false false false :; do
32714   cat >conf$$subs.sed <<_ACEOF
32715 SHELL!$SHELL$ac_delim
32716 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32717 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32718 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32719 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32720 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32721 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32722 exec_prefix!$exec_prefix$ac_delim
32723 prefix!$prefix$ac_delim
32724 program_transform_name!$program_transform_name$ac_delim
32725 bindir!$bindir$ac_delim
32726 sbindir!$sbindir$ac_delim
32727 libexecdir!$libexecdir$ac_delim
32728 datarootdir!$datarootdir$ac_delim
32729 datadir!$datadir$ac_delim
32730 sysconfdir!$sysconfdir$ac_delim
32731 sharedstatedir!$sharedstatedir$ac_delim
32732 localstatedir!$localstatedir$ac_delim
32733 includedir!$includedir$ac_delim
32734 oldincludedir!$oldincludedir$ac_delim
32735 docdir!$docdir$ac_delim
32736 infodir!$infodir$ac_delim
32737 htmldir!$htmldir$ac_delim
32738 dvidir!$dvidir$ac_delim
32739 pdfdir!$pdfdir$ac_delim
32740 psdir!$psdir$ac_delim
32741 libdir!$libdir$ac_delim
32742 localedir!$localedir$ac_delim
32743 mandir!$mandir$ac_delim
32744 DEFS!$DEFS$ac_delim
32745 ECHO_C!$ECHO_C$ac_delim
32746 ECHO_N!$ECHO_N$ac_delim
32747 ECHO_T!$ECHO_T$ac_delim
32748 LIBS!$LIBS$ac_delim
32749 build_alias!$build_alias$ac_delim
32750 host_alias!$host_alias$ac_delim
32751 target_alias!$target_alias$ac_delim
32752 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
32753 subdirs!$subdirs$ac_delim
32754 build!$build$ac_delim
32755 build_cpu!$build_cpu$ac_delim
32756 build_vendor!$build_vendor$ac_delim
32757 build_os!$build_os$ac_delim
32758 host!$host$ac_delim
32759 host_cpu!$host_cpu$ac_delim
32760 host_vendor!$host_vendor$ac_delim
32761 host_os!$host_os$ac_delim
32762 target!$target$ac_delim
32763 target_cpu!$target_cpu$ac_delim
32764 target_vendor!$target_vendor$ac_delim
32765 target_os!$target_os$ac_delim
32766 OS!$OS$ac_delim
32767 LINKALL!$LINKALL$ac_delim
32768 NOLINKALL!$NOLINKALL$ac_delim
32769 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
32770 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
32771 ARCH!$ARCH$ac_delim
32772 CC!$CC$ac_delim
32773 CFLAGS!$CFLAGS$ac_delim
32774 LDFLAGS!$LDFLAGS$ac_delim
32775 CPPFLAGS!$CPPFLAGS$ac_delim
32776 ac_ct_CC!$ac_ct_CC$ac_delim
32777 EXEEXT!$EXEEXT$ac_delim
32778 OBJEXT!$OBJEXT$ac_delim
32779 CPP!$CPP$ac_delim
32780 GREP!$GREP$ac_delim
32781 EGREP!$EGREP$ac_delim
32782 ENDIAN!$ENDIAN$ac_delim
32783 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
32784 BUILD_CC!$BUILD_CC$ac_delim
32785 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
32786 CVSBUILD!$CVSBUILD$ac_delim
32787 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
32788 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
32789 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
32790 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
32791 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
32792 JIT!$JIT$ac_delim
32793 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
32794 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
32795 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
32796 ENABLE_PIC!$ENABLE_PIC$ac_delim
32797 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
32798 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
32799 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
32800 CXX!$CXX$ac_delim
32801 CXXFLAGS!$CXXFLAGS$ac_delim
32802 ac_ct_CXX!$ac_ct_CXX$ac_delim
32803 LEX!$LEX$ac_delim
32804 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
32805 LEXLIB!$LEXLIB$ac_delim
32806 FLEX!$FLEX$ac_delim
32807 YACC!$YACC$ac_delim
32808 YFLAGS!$YFLAGS$ac_delim
32809 BISON!$BISON$ac_delim
32810 NM!$NM$ac_delim
32811 ifGNUmake!$ifGNUmake$ac_delim
32812 _ACEOF
32813
32814   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32815     break
32816   elif $ac_last_try; then
32817     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32818 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32819    { (exit 1); exit 1; }; }
32820   else
32821     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32822   fi
32823 done
32824
32825 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32826 if test -n "$ac_eof"; then
32827   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32828   ac_eof=`expr $ac_eof + 1`
32829 fi
32830
32831 cat >>$CONFIG_STATUS <<_ACEOF
32832 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32833 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32834 _ACEOF
32835 sed '
32836 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32837 s/^/s,@/; s/!/@,|#_!!_#|/
32838 :n
32839 t n
32840 s/'"$ac_delim"'$/,g/; t
32841 s/$/\\/; p
32842 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32843 ' >>$CONFIG_STATUS <conf$$subs.sed
32844 rm -f conf$$subs.sed
32845 cat >>$CONFIG_STATUS <<_ACEOF
32846 CEOF$ac_eof
32847 _ACEOF
32848
32849
32850 ac_delim='%!_!# '
32851 for ac_last_try in false false false false false :; do
32852   cat >conf$$subs.sed <<_ACEOF
32853 LN_S!$LN_S$ac_delim
32854 CMP!$CMP$ac_delim
32855 CP!$CP$ac_delim
32856 DATE!$DATE$ac_delim
32857 FIND!$FIND$ac_delim
32858 MKDIR!$MKDIR$ac_delim
32859 MV!$MV$ac_delim
32860 RANLIB!$RANLIB$ac_delim
32861 RM!$RM$ac_delim
32862 SED!$SED$ac_delim
32863 TAR!$TAR$ac_delim
32864 BINPWD!$BINPWD$ac_delim
32865 GRAPHVIZ!$GRAPHVIZ$ac_delim
32866 DOT!$DOT$ac_delim
32867 GV!$GV$ac_delim
32868 DOTTY!$DOTTY$ac_delim
32869 PERL!$PERL$ac_delim
32870 HAVE_PERL!$HAVE_PERL$ac_delim
32871 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32872 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32873 INSTALL_DATA!$INSTALL_DATA$ac_delim
32874 BZIP2!$BZIP2$ac_delim
32875 DOXYGEN!$DOXYGEN$ac_delim
32876 GROFF!$GROFF$ac_delim
32877 GZIP!$GZIP$ac_delim
32878 POD2HTML!$POD2HTML$ac_delim
32879 POD2MAN!$POD2MAN$ac_delim
32880 RUNTEST!$RUNTEST$ac_delim
32881 TCLSH!$TCLSH$ac_delim
32882 ZIP!$ZIP$ac_delim
32883 OCAMLC!$OCAMLC$ac_delim
32884 OCAMLOPT!$OCAMLOPT$ac_delim
32885 OCAMLDEP!$OCAMLDEP$ac_delim
32886 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
32887 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
32888 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
32889 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
32890 LIBADD_DL!$LIBADD_DL$ac_delim
32891 ECHO!$ECHO$ac_delim
32892 AR!$AR$ac_delim
32893 STRIP!$STRIP$ac_delim
32894 CXXCPP!$CXXCPP$ac_delim
32895 F77!$F77$ac_delim
32896 FFLAGS!$FFLAGS$ac_delim
32897 ac_ct_F77!$ac_ct_F77$ac_delim
32898 LIBTOOL!$LIBTOOL$ac_delim
32899 LLVMGCC!$LLVMGCC$ac_delim
32900 LLVMGXX!$LLVMGXX$ac_delim
32901 USE_UDIS86!$USE_UDIS86$ac_delim
32902 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
32903 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
32904 ALLOCA!$ALLOCA$ac_delim
32905 MMAP_FILE!$MMAP_FILE$ac_delim
32906 LLVMCC1!$LLVMCC1$ac_delim
32907 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
32908 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
32909 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
32910 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
32911 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
32912 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
32913 SHLIBEXT!$SHLIBEXT$ac_delim
32914 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
32915 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
32916 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
32917 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
32918 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
32919 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
32920 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
32921 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
32922 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
32923 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
32924 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
32925 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
32926 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
32927 LIBOBJS!$LIBOBJS$ac_delim
32928 LTLIBOBJS!$LTLIBOBJS$ac_delim
32929 _ACEOF
32930
32931   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
32932     break
32933   elif $ac_last_try; then
32934     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32935 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32936    { (exit 1); exit 1; }; }
32937   else
32938     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32939   fi
32940 done
32941
32942 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32943 if test -n "$ac_eof"; then
32944   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32945   ac_eof=`expr $ac_eof + 1`
32946 fi
32947
32948 cat >>$CONFIG_STATUS <<_ACEOF
32949 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32951 _ACEOF
32952 sed '
32953 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32954 s/^/s,@/; s/!/@,|#_!!_#|/
32955 :n
32956 t n
32957 s/'"$ac_delim"'$/,g/; t
32958 s/$/\\/; p
32959 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32960 ' >>$CONFIG_STATUS <conf$$subs.sed
32961 rm -f conf$$subs.sed
32962 cat >>$CONFIG_STATUS <<_ACEOF
32963 :end
32964 s/|#_!!_#|//g
32965 CEOF$ac_eof
32966 _ACEOF
32967
32968
32969 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32970 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32971 # trailing colons and then remove the whole line if VPATH becomes empty
32972 # (actually we leave an empty line to preserve line numbers).
32973 if test "x$srcdir" = x.; then
32974   ac_vpsub='/^[  ]*VPATH[        ]*=/{
32975 s/:*\$(srcdir):*/:/
32976 s/:*\${srcdir}:*/:/
32977 s/:*@srcdir@:*/:/
32978 s/^\([^=]*=[     ]*\):*/\1/
32979 s/:*$//
32980 s/^[^=]*=[       ]*$//
32981 }'
32982 fi
32983
32984 cat >>$CONFIG_STATUS <<\_ACEOF
32985 fi # test -n "$CONFIG_FILES"
32986
32987
32988 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
32989 do
32990   case $ac_tag in
32991   :[FHLC]) ac_mode=$ac_tag; continue;;
32992   esac
32993   case $ac_mode$ac_tag in
32994   :[FHL]*:*);;
32995   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32996 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32997    { (exit 1); exit 1; }; };;
32998   :[FH]-) ac_tag=-:-;;
32999   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33000   esac
33001   ac_save_IFS=$IFS
33002   IFS=:
33003   set x $ac_tag
33004   IFS=$ac_save_IFS
33005   shift
33006   ac_file=$1
33007   shift
33008
33009   case $ac_mode in
33010   :L) ac_source=$1;;
33011   :[FH])
33012     ac_file_inputs=
33013     for ac_f
33014     do
33015       case $ac_f in
33016       -) ac_f="$tmp/stdin";;
33017       *) # Look for the file first in the build tree, then in the source tree
33018          # (if the path is not absolute).  The absolute path cannot be DOS-style,
33019          # because $ac_f cannot contain `:'.
33020          test -f "$ac_f" ||
33021            case $ac_f in
33022            [\\/$]*) false;;
33023            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33024            esac ||
33025            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33026 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33027    { (exit 1); exit 1; }; };;
33028       esac
33029       ac_file_inputs="$ac_file_inputs $ac_f"
33030     done
33031
33032     # Let's still pretend it is `configure' which instantiates (i.e., don't
33033     # use $as_me), people would be surprised to read:
33034     #    /* config.h.  Generated by config.status.  */
33035     configure_input="Generated from "`IFS=:
33036           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33037     if test x"$ac_file" != x-; then
33038       configure_input="$ac_file.  $configure_input"
33039       { echo "$as_me:$LINENO: creating $ac_file" >&5
33040 echo "$as_me: creating $ac_file" >&6;}
33041     fi
33042
33043     case $ac_tag in
33044     *:-:* | *:-) cat >"$tmp/stdin";;
33045     esac
33046     ;;
33047   esac
33048
33049   ac_dir=`$as_dirname -- "$ac_file" ||
33050 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33051          X"$ac_file" : 'X\(//\)[^/]' \| \
33052          X"$ac_file" : 'X\(//\)$' \| \
33053          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33054 echo X"$ac_file" |
33055     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33056             s//\1/
33057             q
33058           }
33059           /^X\(\/\/\)[^/].*/{
33060             s//\1/
33061             q
33062           }
33063           /^X\(\/\/\)$/{
33064             s//\1/
33065             q
33066           }
33067           /^X\(\/\).*/{
33068             s//\1/
33069             q
33070           }
33071           s/.*/./; q'`
33072   { as_dir="$ac_dir"
33073   case $as_dir in #(
33074   -*) as_dir=./$as_dir;;
33075   esac
33076   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33077     as_dirs=
33078     while :; do
33079       case $as_dir in #(
33080       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33081       *) as_qdir=$as_dir;;
33082       esac
33083       as_dirs="'$as_qdir' $as_dirs"
33084       as_dir=`$as_dirname -- "$as_dir" ||
33085 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33086          X"$as_dir" : 'X\(//\)[^/]' \| \
33087          X"$as_dir" : 'X\(//\)$' \| \
33088          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33089 echo X"$as_dir" |
33090     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33091             s//\1/
33092             q
33093           }
33094           /^X\(\/\/\)[^/].*/{
33095             s//\1/
33096             q
33097           }
33098           /^X\(\/\/\)$/{
33099             s//\1/
33100             q
33101           }
33102           /^X\(\/\).*/{
33103             s//\1/
33104             q
33105           }
33106           s/.*/./; q'`
33107       test -d "$as_dir" && break
33108     done
33109     test -z "$as_dirs" || eval "mkdir $as_dirs"
33110   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33111 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33112    { (exit 1); exit 1; }; }; }
33113   ac_builddir=.
33114
33115 case "$ac_dir" in
33116 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33117 *)
33118   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33119   # A ".." for each directory in $ac_dir_suffix.
33120   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33121   case $ac_top_builddir_sub in
33122   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33123   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33124   esac ;;
33125 esac
33126 ac_abs_top_builddir=$ac_pwd
33127 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33128 # for backward compatibility:
33129 ac_top_builddir=$ac_top_build_prefix
33130
33131 case $srcdir in
33132   .)  # We are building in place.
33133     ac_srcdir=.
33134     ac_top_srcdir=$ac_top_builddir_sub
33135     ac_abs_top_srcdir=$ac_pwd ;;
33136   [\\/]* | ?:[\\/]* )  # Absolute name.
33137     ac_srcdir=$srcdir$ac_dir_suffix;
33138     ac_top_srcdir=$srcdir
33139     ac_abs_top_srcdir=$srcdir ;;
33140   *) # Relative name.
33141     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33142     ac_top_srcdir=$ac_top_build_prefix$srcdir
33143     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33144 esac
33145 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33146
33147
33148   case $ac_mode in
33149   :F)
33150   #
33151   # CONFIG_FILE
33152   #
33153
33154   case $INSTALL in
33155   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33156   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33157   esac
33158 _ACEOF
33159
33160 cat >>$CONFIG_STATUS <<\_ACEOF
33161 # If the template does not know about datarootdir, expand it.
33162 # FIXME: This hack should be removed a few years after 2.60.
33163 ac_datarootdir_hack=; ac_datarootdir_seen=
33164
33165 case `sed -n '/datarootdir/ {
33166   p
33167   q
33168 }
33169 /@datadir@/p
33170 /@docdir@/p
33171 /@infodir@/p
33172 /@localedir@/p
33173 /@mandir@/p
33174 ' $ac_file_inputs` in
33175 *datarootdir*) ac_datarootdir_seen=yes;;
33176 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33177   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33178 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33179 _ACEOF
33180 cat >>$CONFIG_STATUS <<_ACEOF
33181   ac_datarootdir_hack='
33182   s&@datadir@&$datadir&g
33183   s&@docdir@&$docdir&g
33184   s&@infodir@&$infodir&g
33185   s&@localedir@&$localedir&g
33186   s&@mandir@&$mandir&g
33187     s&\\\${datarootdir}&$datarootdir&g' ;;
33188 esac
33189 _ACEOF
33190
33191 # Neutralize VPATH when `$srcdir' = `.'.
33192 # Shell code in configure.ac might set extrasub.
33193 # FIXME: do we really want to maintain this feature?
33194 cat >>$CONFIG_STATUS <<_ACEOF
33195   sed "$ac_vpsub
33196 $extrasub
33197 _ACEOF
33198 cat >>$CONFIG_STATUS <<\_ACEOF
33199 :t
33200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33201 s&@configure_input@&$configure_input&;t t
33202 s&@top_builddir@&$ac_top_builddir_sub&;t t
33203 s&@srcdir@&$ac_srcdir&;t t
33204 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33205 s&@top_srcdir@&$ac_top_srcdir&;t t
33206 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33207 s&@builddir@&$ac_builddir&;t t
33208 s&@abs_builddir@&$ac_abs_builddir&;t t
33209 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33210 s&@INSTALL@&$ac_INSTALL&;t t
33211 $ac_datarootdir_hack
33212 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33213
33214 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33215   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33216   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33217   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33218 which seems to be undefined.  Please make sure it is defined." >&5
33219 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33220 which seems to be undefined.  Please make sure it is defined." >&2;}
33221
33222   rm -f "$tmp/stdin"
33223   case $ac_file in
33224   -) cat "$tmp/out"; rm -f "$tmp/out";;
33225   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33226   esac
33227  ;;
33228   :H)
33229   #
33230   # CONFIG_HEADER
33231   #
33232 _ACEOF
33233
33234 # Transform confdefs.h into a sed script `conftest.defines', that
33235 # substitutes the proper values into config.h.in to produce config.h.
33236 rm -f conftest.defines conftest.tail
33237 # First, append a space to every undef/define line, to ease matching.
33238 echo 's/$/ /' >conftest.defines
33239 # Then, protect against being on the right side of a sed subst, or in
33240 # an unquoted here document, in config.status.  If some macros were
33241 # called several times there might be several #defines for the same
33242 # symbol, which is useless.  But do not sort them, since the last
33243 # AC_DEFINE must be honored.
33244 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33245 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33246 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33247 # PARAMS is the parameter list in the macro definition--in most cases, it's
33248 # just an empty string.
33249 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
33250 ac_dB='\\)[      (].*,\\1define\\2'
33251 ac_dC=' '
33252 ac_dD=' ,'
33253
33254 uniq confdefs.h |
33255   sed -n '
33256         t rset
33257         :rset
33258         s/^[     ]*#[    ]*define[       ][      ]*//
33259         t ok
33260         d
33261         :ok
33262         s/[\\&,]/\\&/g
33263         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33264         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33265   ' >>conftest.defines
33266
33267 # Remove the space that was appended to ease matching.
33268 # Then replace #undef with comments.  This is necessary, for
33269 # example, in the case of _POSIX_SOURCE, which is predefined and required
33270 # on some systems where configure will not decide to define it.
33271 # (The regexp can be short, since the line contains either #define or #undef.)
33272 echo 's/ $//
33273 s,^[     #]*u.*,/* & */,' >>conftest.defines
33274
33275 # Break up conftest.defines:
33276 ac_max_sed_lines=50
33277
33278 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33279 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33280 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33281 # et cetera.
33282 ac_in='$ac_file_inputs'
33283 ac_out='"$tmp/out1"'
33284 ac_nxt='"$tmp/out2"'
33285
33286 while :
33287 do
33288   # Write a here document:
33289     cat >>$CONFIG_STATUS <<_ACEOF
33290     # First, check the format of the line:
33291     cat >"\$tmp/defines.sed" <<\\CEOF
33292 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
33293 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
33294 b
33295 :def
33296 _ACEOF
33297   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33298   echo 'CEOF
33299     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33300   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33301   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33302   grep . conftest.tail >/dev/null || break
33303   rm -f conftest.defines
33304   mv conftest.tail conftest.defines
33305 done
33306 rm -f conftest.defines conftest.tail
33307
33308 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33309 cat >>$CONFIG_STATUS <<\_ACEOF
33310   if test x"$ac_file" != x-; then
33311     echo "/* $configure_input  */" >"$tmp/config.h"
33312     cat "$ac_result" >>"$tmp/config.h"
33313     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33314       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33315 echo "$as_me: $ac_file is unchanged" >&6;}
33316     else
33317       rm -f $ac_file
33318       mv "$tmp/config.h" $ac_file
33319     fi
33320   else
33321     echo "/* $configure_input  */"
33322     cat "$ac_result"
33323   fi
33324   rm -f "$tmp/out12"
33325  ;;
33326
33327   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33328 echo "$as_me: executing $ac_file commands" >&6;}
33329  ;;
33330   esac
33331
33332
33333   case $ac_file$ac_mode in
33334     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33335    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33336     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33337    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33338     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33339    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33340     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33341    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
33342     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33343    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
33344     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33345    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33346     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33347    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
33348     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33349    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33350     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33351    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33352     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33353    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
33354     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33355    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33356     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33357    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
33358
33359   esac
33360 done # for ac_tag
33361
33362
33363 { (exit 0); exit 0; }
33364 _ACEOF
33365 chmod +x $CONFIG_STATUS
33366 ac_clean_files=$ac_clean_files_save
33367
33368
33369 # configure is writing to config.log, and then calls config.status.
33370 # config.status does its own redirection, appending to config.log.
33371 # Unfortunately, on DOS this fails, as config.log is still kept open
33372 # by configure, so config.status won't be able to write to it; its
33373 # output is simply discarded.  So we exec the FD to /dev/null,
33374 # effectively closing config.log, so it can be properly (re)opened and
33375 # appended to by config.status.  When coming back to configure, we
33376 # need to make the FD available again.
33377 if test "$no_create" != yes; then
33378   ac_cs_success=:
33379   ac_config_status_args=
33380   test "$silent" = yes &&
33381     ac_config_status_args="$ac_config_status_args --quiet"
33382   exec 5>/dev/null
33383   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33384   exec 5>>config.log
33385   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33386   # would make configure fail if this is the last instruction.
33387   $ac_cs_success || { (exit 1); exit 1; }
33388 fi
33389
33390 #
33391 # CONFIG_SUBDIRS section.
33392 #
33393 if test "$no_recursion" != yes; then
33394
33395   # Remove --cache-file and --srcdir arguments so they do not pile up.
33396   ac_sub_configure_args=
33397   ac_prev=
33398   eval "set x $ac_configure_args"
33399   shift
33400   for ac_arg
33401   do
33402     if test -n "$ac_prev"; then
33403       ac_prev=
33404       continue
33405     fi
33406     case $ac_arg in
33407     -cache-file | --cache-file | --cache-fil | --cache-fi \
33408     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33409       ac_prev=cache_file ;;
33410     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33411     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33412     | --c=*)
33413       ;;
33414     --config-cache | -C)
33415       ;;
33416     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33417       ac_prev=srcdir ;;
33418     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33419       ;;
33420     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33421       ac_prev=prefix ;;
33422     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33423       ;;
33424     *)
33425       case $ac_arg in
33426       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33427       esac
33428       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
33429     esac
33430   done
33431
33432   # Always prepend --prefix to ensure using the same prefix
33433   # in subdir configurations.
33434   ac_arg="--prefix=$prefix"
33435   case $ac_arg in
33436   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33437   esac
33438   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33439
33440   # Pass --silent
33441   if test "$silent" = yes; then
33442     ac_sub_configure_args="--silent $ac_sub_configure_args"
33443   fi
33444
33445   ac_popdir=`pwd`
33446   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33447
33448     # Do not complain, so a configure script can configure whichever
33449     # parts of a large source tree are present.
33450     test -d "$srcdir/$ac_dir" || continue
33451
33452     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33453     echo "$as_me:$LINENO: $ac_msg" >&5
33454     echo "$ac_msg" >&6
33455     { as_dir="$ac_dir"
33456   case $as_dir in #(
33457   -*) as_dir=./$as_dir;;
33458   esac
33459   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33460     as_dirs=
33461     while :; do
33462       case $as_dir in #(
33463       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33464       *) as_qdir=$as_dir;;
33465       esac
33466       as_dirs="'$as_qdir' $as_dirs"
33467       as_dir=`$as_dirname -- "$as_dir" ||
33468 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33469          X"$as_dir" : 'X\(//\)[^/]' \| \
33470          X"$as_dir" : 'X\(//\)$' \| \
33471          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33472 echo X"$as_dir" |
33473     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33474             s//\1/
33475             q
33476           }
33477           /^X\(\/\/\)[^/].*/{
33478             s//\1/
33479             q
33480           }
33481           /^X\(\/\/\)$/{
33482             s//\1/
33483             q
33484           }
33485           /^X\(\/\).*/{
33486             s//\1/
33487             q
33488           }
33489           s/.*/./; q'`
33490       test -d "$as_dir" && break
33491     done
33492     test -z "$as_dirs" || eval "mkdir $as_dirs"
33493   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33494 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33495    { (exit 1); exit 1; }; }; }
33496     ac_builddir=.
33497
33498 case "$ac_dir" in
33499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33500 *)
33501   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33502   # A ".." for each directory in $ac_dir_suffix.
33503   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33504   case $ac_top_builddir_sub in
33505   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33506   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33507   esac ;;
33508 esac
33509 ac_abs_top_builddir=$ac_pwd
33510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33511 # for backward compatibility:
33512 ac_top_builddir=$ac_top_build_prefix
33513
33514 case $srcdir in
33515   .)  # We are building in place.
33516     ac_srcdir=.
33517     ac_top_srcdir=$ac_top_builddir_sub
33518     ac_abs_top_srcdir=$ac_pwd ;;
33519   [\\/]* | ?:[\\/]* )  # Absolute name.
33520     ac_srcdir=$srcdir$ac_dir_suffix;
33521     ac_top_srcdir=$srcdir
33522     ac_abs_top_srcdir=$srcdir ;;
33523   *) # Relative name.
33524     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33525     ac_top_srcdir=$ac_top_build_prefix$srcdir
33526     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33527 esac
33528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33529
33530
33531     cd "$ac_dir"
33532
33533     # Check for guested configure; otherwise get Cygnus style configure.
33534     if test -f "$ac_srcdir/configure.gnu"; then
33535       ac_sub_configure=$ac_srcdir/configure.gnu
33536     elif test -f "$ac_srcdir/configure"; then
33537       ac_sub_configure=$ac_srcdir/configure
33538     elif test -f "$ac_srcdir/configure.in"; then
33539       # This should be Cygnus configure.
33540       ac_sub_configure=$ac_aux_dir/configure
33541     else
33542       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
33543 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33544       ac_sub_configure=
33545     fi
33546
33547     # The recursion is here.
33548     if test -n "$ac_sub_configure"; then
33549       # Make the cache file name correct relative to the subdirectory.
33550       case $cache_file in
33551       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33552       *) # Relative name.
33553         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33554       esac
33555
33556       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33557 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33558       # The eval makes quoting arguments work.
33559       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33560            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33561         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
33562 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33563    { (exit 1); exit 1; }; }
33564     fi
33565
33566     cd "$ac_popdir"
33567   done
33568 fi
33569