First step of implementing PR1538: move llvm2cpp logic to new 'target'
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.3svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545 case X$ECHO in
546 X*--fallback-echo)
547   # Remove one level of quotation (which was required for Make).
548   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549   ;;
550 esac
551
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554   # Discard the --no-reexec flag, and continue.
555   shift
556 elif test "X$1" = X--fallback-echo; then
557   # Avoid inline document here, it may be left over
558   :
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560   # Yippee, $echo works!
561   :
562 else
563   # Restart under the correct shell.
564   exec $SHELL "$0" --no-reexec ${1+"$@"}
565 fi
566
567 if test "X$1" = X--fallback-echo; then
568   # used as fallback echo
569   shift
570   cat <<EOF
571 $*
572 EOF
573   exit 0
574 fi
575
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586        echo_test_string=`eval $cmd` &&
587        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588     then
589       break
590     fi
591   done
592 fi
593
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596    test "X$echo_testing_string" = "X$echo_test_string"; then
597   :
598 else
599   # The Solaris, AIX, and Digital Unix default echo programs unquote
600   # backslashes.  This makes it impossible to quote backslashes using
601   #   echo "$something" | sed 's/\\/\\\\/g'
602   #
603   # So, first we look for a working echo in the user's PATH.
604
605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606   for dir in $PATH /usr/ucb; do
607     IFS="$lt_save_ifs"
608     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611        test "X$echo_testing_string" = "X$echo_test_string"; then
612       echo="$dir/echo"
613       break
614     fi
615   done
616   IFS="$lt_save_ifs"
617
618   if test "X$echo" = Xecho; then
619     # We didn't find a better echo, so look for alternatives.
620     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       # This shell has a builtin print -r that does the trick.
624       echo='print -r'
625     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626          test "X$CONFIG_SHELL" != X/bin/ksh; then
627       # If we have ksh, try running configure again with it.
628       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629       export ORIGINAL_CONFIG_SHELL
630       CONFIG_SHELL=/bin/ksh
631       export CONFIG_SHELL
632       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633     else
634       # Try using printf.
635       echo='printf %s\n'
636       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638          test "X$echo_testing_string" = "X$echo_test_string"; then
639         # Cool, printf works
640         :
641       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642            test "X$echo_testing_string" = 'X\t' &&
643            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644            test "X$echo_testing_string" = "X$echo_test_string"; then
645         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646         export CONFIG_SHELL
647         SHELL="$CONFIG_SHELL"
648         export SHELL
649         echo="$CONFIG_SHELL $0 --fallback-echo"
650       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651            test "X$echo_testing_string" = 'X\t' &&
652            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653            test "X$echo_testing_string" = "X$echo_test_string"; then
654         echo="$CONFIG_SHELL $0 --fallback-echo"
655       else
656         # maybe with a smaller string...
657         prev=:
658
659         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661           then
662             break
663           fi
664           prev="$cmd"
665         done
666
667         if test "$prev" != 'sed 50q "$0"'; then
668           echo_test_string=`eval $prev`
669           export echo_test_string
670           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671         else
672           # Oops.  We lost completely, so just stick with echo.
673           echo=echo
674         fi
675       fi
676     fi
677   fi
678 fi
679 fi
680
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 fi
687
688
689
690
691 tagnames=${tagnames+${tagnames},}CXX
692
693 tagnames=${tagnames+${tagnames},}F77
694
695 exec 7<&0 </dev/null 6>&1
696
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702 #
703 # Initializations.
704 #
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
714
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.3svn'
719 PACKAGE_STRING='llvm 2.3svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
810 OS
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 CVSBUILD
831 ENABLE_OPTIMIZED
832 DISABLE_ASSERTIONS
833 ENABLE_EXPENSIVE_CHECKS
834 EXPENSIVE_CHECKS
835 DEBUG_RUNTIME
836 JIT
837 TARGET_HAS_JIT
838 ENABLE_DOXYGEN
839 ENABLE_THREADS
840 ENABLE_PIC
841 TARGETS_TO_BUILD
842 ENABLE_CBE_PRINTF_A
843 EXTRA_OPTIONS
844 CXX
845 CXXFLAGS
846 ac_ct_CXX
847 LEX
848 LEXLIB
849 LEX_OUTPUT_ROOT
850 FLEX
851 YACC
852 YFLAGS
853 BISON
854 NM
855 ifGNUmake
856 LN_S
857 CMP
858 CP
859 DATE
860 FIND
861 MKDIR
862 MV
863 RANLIB
864 RM
865 SED
866 TAR
867 BINPWD
868 GRAPHVIZ
869 DOT
870 GV
871 DOTTY
872 PERL
873 HAVE_PERL
874 INSTALL_PROGRAM
875 INSTALL_SCRIPT
876 INSTALL_DATA
877 BZIP2
878 DOXYGEN
879 GROFF
880 GZIP
881 POD2HTML
882 POD2MAN
883 RUNTEST
884 TCLSH
885 ZIP
886 OCAMLC
887 OCAMLOPT
888 OCAMLDEP
889 OCAMLDOC
890 INSTALL_LTDL_TRUE
891 INSTALL_LTDL_FALSE
892 CONVENIENCE_LTDL_TRUE
893 CONVENIENCE_LTDL_FALSE
894 LIBADD_DL
895 ECHO
896 AR
897 STRIP
898 CXXCPP
899 F77
900 FFLAGS
901 ac_ct_F77
902 LIBTOOL
903 LLVMGCC
904 LLVMGXX
905 USE_UDIS86
906 HAVE_PTHREAD
907 HUGE_VAL_SANITY
908 ALLOCA
909 MMAP_FILE
910 LLVMCC1
911 LLVMCC1PLUS
912 LLVMGCCDIR
913 LLVMGCCLIBEXEC
914 LLVMGCC_VERSION
915 LLVMGCC_MAJVERS
916 LLVMGCC_LANGS
917 SHLIBEXT
918 LLVM_PREFIX
919 LLVM_BINDIR
920 LLVM_LIBDIR
921 LLVM_DATADIR
922 LLVM_DOCSDIR
923 LLVM_ETCDIR
924 LLVM_INCLUDEDIR
925 LLVM_INFODIR
926 LLVM_MANDIR
927 LLVM_CONFIGTIME
928 BINDINGS_TO_BUILD
929 ALL_BINDINGS
930 OCAML_LIBDIR
931 LIBOBJS
932 LTLIBOBJS'
933 ac_subst_files=''
934       ac_precious_vars='build_alias
935 host_alias
936 target_alias
937 CC
938 CFLAGS
939 LDFLAGS
940 CPPFLAGS
941 CPP
942 CXX
943 CXXFLAGS
944 CCC
945 YACC
946 YFLAGS
947 CXXCPP
948 F77
949 FFLAGS'
950 ac_subdirs_all='projects/sample
951 projects/privbracket
952 projects/llvm-stacker
953 projects/llvm-test
954 projects/llvm-reopt
955 projects/llvm-gcc
956 projects/llvm-java
957 projects/llvm-tv
958 projects/llvm-poolalloc
959 projects/poolalloc
960 projects/llvm-kernel'
961
962 # Initialize some variables set by options.
963 ac_init_help=
964 ac_init_version=false
965 # The variables have the same names as the options, with
966 # dashes changed to underlines.
967 cache_file=/dev/null
968 exec_prefix=NONE
969 no_create=
970 no_recursion=
971 prefix=NONE
972 program_prefix=NONE
973 program_suffix=NONE
974 program_transform_name=s,x,x,
975 silent=
976 site=
977 srcdir=
978 verbose=
979 x_includes=NONE
980 x_libraries=NONE
981
982 # Installation directory options.
983 # These are left unexpanded so users can "make install exec_prefix=/foo"
984 # and all the variables that are supposed to be based on exec_prefix
985 # by default will actually change.
986 # Use braces instead of parens because sh, perl, etc. also accept them.
987 # (The list follows the same order as the GNU Coding Standards.)
988 bindir='${exec_prefix}/bin'
989 sbindir='${exec_prefix}/sbin'
990 libexecdir='${exec_prefix}/libexec'
991 datarootdir='${prefix}/share'
992 datadir='${datarootdir}'
993 sysconfdir='${prefix}/etc'
994 sharedstatedir='${prefix}/com'
995 localstatedir='${prefix}/var'
996 includedir='${prefix}/include'
997 oldincludedir='/usr/include'
998 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
999 infodir='${datarootdir}/info'
1000 htmldir='${docdir}'
1001 dvidir='${docdir}'
1002 pdfdir='${docdir}'
1003 psdir='${docdir}'
1004 libdir='${exec_prefix}/lib'
1005 localedir='${datarootdir}/locale'
1006 mandir='${datarootdir}/man'
1007
1008 ac_prev=
1009 ac_dashdash=
1010 for ac_option
1011 do
1012   # If the previous option needs an argument, assign it.
1013   if test -n "$ac_prev"; then
1014     eval $ac_prev=\$ac_option
1015     ac_prev=
1016     continue
1017   fi
1018
1019   case $ac_option in
1020   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021   *)    ac_optarg=yes ;;
1022   esac
1023
1024   # Accept the important Cygnus configure options, so we can diagnose typos.
1025
1026   case $ac_dashdash$ac_option in
1027   --)
1028     ac_dashdash=yes ;;
1029
1030   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031     ac_prev=bindir ;;
1032   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033     bindir=$ac_optarg ;;
1034
1035   -build | --build | --buil | --bui | --bu)
1036     ac_prev=build_alias ;;
1037   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038     build_alias=$ac_optarg ;;
1039
1040   -cache-file | --cache-file | --cache-fil | --cache-fi \
1041   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042     ac_prev=cache_file ;;
1043   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045     cache_file=$ac_optarg ;;
1046
1047   --config-cache | -C)
1048     cache_file=config.cache ;;
1049
1050   -datadir | --datadir | --datadi | --datad)
1051     ac_prev=datadir ;;
1052   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053     datadir=$ac_optarg ;;
1054
1055   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056   | --dataroo | --dataro | --datar)
1057     ac_prev=datarootdir ;;
1058   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060     datarootdir=$ac_optarg ;;
1061
1062   -disable-* | --disable-*)
1063     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064     # Reject names that are not valid shell variable names.
1065     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1066       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1067    { (exit 1); exit 1; }; }
1068     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1069     eval enable_$ac_feature=no ;;
1070
1071   -docdir | --docdir | --docdi | --doc | --do)
1072     ac_prev=docdir ;;
1073   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074     docdir=$ac_optarg ;;
1075
1076   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077     ac_prev=dvidir ;;
1078   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079     dvidir=$ac_optarg ;;
1080
1081   -enable-* | --enable-*)
1082     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083     # Reject names that are not valid shell variable names.
1084     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1085       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1086    { (exit 1); exit 1; }; }
1087     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1088     eval enable_$ac_feature=\$ac_optarg ;;
1089
1090   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092   | --exec | --exe | --ex)
1093     ac_prev=exec_prefix ;;
1094   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096   | --exec=* | --exe=* | --ex=*)
1097     exec_prefix=$ac_optarg ;;
1098
1099   -gas | --gas | --ga | --g)
1100     # Obsolete; use --with-gas.
1101     with_gas=yes ;;
1102
1103   -help | --help | --hel | --he | -h)
1104     ac_init_help=long ;;
1105   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106     ac_init_help=recursive ;;
1107   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108     ac_init_help=short ;;
1109
1110   -host | --host | --hos | --ho)
1111     ac_prev=host_alias ;;
1112   -host=* | --host=* | --hos=* | --ho=*)
1113     host_alias=$ac_optarg ;;
1114
1115   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116     ac_prev=htmldir ;;
1117   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118   | --ht=*)
1119     htmldir=$ac_optarg ;;
1120
1121   -includedir | --includedir | --includedi | --included | --include \
1122   | --includ | --inclu | --incl | --inc)
1123     ac_prev=includedir ;;
1124   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125   | --includ=* | --inclu=* | --incl=* | --inc=*)
1126     includedir=$ac_optarg ;;
1127
1128   -infodir | --infodir | --infodi | --infod | --info | --inf)
1129     ac_prev=infodir ;;
1130   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131     infodir=$ac_optarg ;;
1132
1133   -libdir | --libdir | --libdi | --libd)
1134     ac_prev=libdir ;;
1135   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136     libdir=$ac_optarg ;;
1137
1138   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139   | --libexe | --libex | --libe)
1140     ac_prev=libexecdir ;;
1141   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142   | --libexe=* | --libex=* | --libe=*)
1143     libexecdir=$ac_optarg ;;
1144
1145   -localedir | --localedir | --localedi | --localed | --locale)
1146     ac_prev=localedir ;;
1147   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148     localedir=$ac_optarg ;;
1149
1150   -localstatedir | --localstatedir | --localstatedi | --localstated \
1151   | --localstate | --localstat | --localsta | --localst | --locals)
1152     ac_prev=localstatedir ;;
1153   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155     localstatedir=$ac_optarg ;;
1156
1157   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158     ac_prev=mandir ;;
1159   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160     mandir=$ac_optarg ;;
1161
1162   -nfp | --nfp | --nf)
1163     # Obsolete; use --without-fp.
1164     with_fp=no ;;
1165
1166   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167   | --no-cr | --no-c | -n)
1168     no_create=yes ;;
1169
1170   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172     no_recursion=yes ;;
1173
1174   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176   | --oldin | --oldi | --old | --ol | --o)
1177     ac_prev=oldincludedir ;;
1178   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181     oldincludedir=$ac_optarg ;;
1182
1183   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184     ac_prev=prefix ;;
1185   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186     prefix=$ac_optarg ;;
1187
1188   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189   | --program-pre | --program-pr | --program-p)
1190     ac_prev=program_prefix ;;
1191   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193     program_prefix=$ac_optarg ;;
1194
1195   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196   | --program-suf | --program-su | --program-s)
1197     ac_prev=program_suffix ;;
1198   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200     program_suffix=$ac_optarg ;;
1201
1202   -program-transform-name | --program-transform-name \
1203   | --program-transform-nam | --program-transform-na \
1204   | --program-transform-n | --program-transform- \
1205   | --program-transform | --program-transfor \
1206   | --program-transfo | --program-transf \
1207   | --program-trans | --program-tran \
1208   | --progr-tra | --program-tr | --program-t)
1209     ac_prev=program_transform_name ;;
1210   -program-transform-name=* | --program-transform-name=* \
1211   | --program-transform-nam=* | --program-transform-na=* \
1212   | --program-transform-n=* | --program-transform-=* \
1213   | --program-transform=* | --program-transfor=* \
1214   | --program-transfo=* | --program-transf=* \
1215   | --program-trans=* | --program-tran=* \
1216   | --progr-tra=* | --program-tr=* | --program-t=*)
1217     program_transform_name=$ac_optarg ;;
1218
1219   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220     ac_prev=pdfdir ;;
1221   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222     pdfdir=$ac_optarg ;;
1223
1224   -psdir | --psdir | --psdi | --psd | --ps)
1225     ac_prev=psdir ;;
1226   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227     psdir=$ac_optarg ;;
1228
1229   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230   | -silent | --silent | --silen | --sile | --sil)
1231     silent=yes ;;
1232
1233   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234     ac_prev=sbindir ;;
1235   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236   | --sbi=* | --sb=*)
1237     sbindir=$ac_optarg ;;
1238
1239   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241   | --sharedst | --shareds | --shared | --share | --shar \
1242   | --sha | --sh)
1243     ac_prev=sharedstatedir ;;
1244   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247   | --sha=* | --sh=*)
1248     sharedstatedir=$ac_optarg ;;
1249
1250   -site | --site | --sit)
1251     ac_prev=site ;;
1252   -site=* | --site=* | --sit=*)
1253     site=$ac_optarg ;;
1254
1255   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256     ac_prev=srcdir ;;
1257   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258     srcdir=$ac_optarg ;;
1259
1260   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261   | --syscon | --sysco | --sysc | --sys | --sy)
1262     ac_prev=sysconfdir ;;
1263   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265     sysconfdir=$ac_optarg ;;
1266
1267   -target | --target | --targe | --targ | --tar | --ta | --t)
1268     ac_prev=target_alias ;;
1269   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270     target_alias=$ac_optarg ;;
1271
1272   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273     verbose=yes ;;
1274
1275   -version | --version | --versio | --versi | --vers | -V)
1276     ac_init_version=: ;;
1277
1278   -with-* | --with-*)
1279     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280     # Reject names that are not valid shell variable names.
1281     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1282       { echo "$as_me: error: invalid package name: $ac_package" >&2
1283    { (exit 1); exit 1; }; }
1284     ac_package=`echo $ac_package| sed 's/-/_/g'`
1285     eval with_$ac_package=\$ac_optarg ;;
1286
1287   -without-* | --without-*)
1288     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289     # Reject names that are not valid shell variable names.
1290     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1291       { echo "$as_me: error: invalid package name: $ac_package" >&2
1292    { (exit 1); exit 1; }; }
1293     ac_package=`echo $ac_package | sed 's/-/_/g'`
1294     eval with_$ac_package=no ;;
1295
1296   --x)
1297     # Obsolete; use --with-x.
1298     with_x=yes ;;
1299
1300   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301   | --x-incl | --x-inc | --x-in | --x-i)
1302     ac_prev=x_includes ;;
1303   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1305     x_includes=$ac_optarg ;;
1306
1307   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309     ac_prev=x_libraries ;;
1310   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1312     x_libraries=$ac_optarg ;;
1313
1314   -*) { echo "$as_me: error: unrecognized option: $ac_option
1315 Try \`$0 --help' for more information." >&2
1316    { (exit 1); exit 1; }; }
1317     ;;
1318
1319   *=*)
1320     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321     # Reject names that are not valid shell variable names.
1322     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1323       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1324    { (exit 1); exit 1; }; }
1325     eval $ac_envvar=\$ac_optarg
1326     export $ac_envvar ;;
1327
1328   *)
1329     # FIXME: should be removed in autoconf 3.0.
1330     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1331     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1333     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1334     ;;
1335
1336   esac
1337 done
1338
1339 if test -n "$ac_prev"; then
1340   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1341   { echo "$as_me: error: missing argument to $ac_option" >&2
1342    { (exit 1); exit 1; }; }
1343 fi
1344
1345 # Be sure to have absolute directory names.
1346 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347                 datadir sysconfdir sharedstatedir localstatedir includedir \
1348                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349                 libdir localedir mandir
1350 do
1351   eval ac_val=\$$ac_var
1352   case $ac_val in
1353     [\\/$]* | ?:[\\/]* )  continue;;
1354     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355   esac
1356   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1357    { (exit 1); exit 1; }; }
1358 done
1359
1360 # There might be people who depend on the old broken behavior: `$host'
1361 # used to hold the argument of --host etc.
1362 # FIXME: To remove some day.
1363 build=$build_alias
1364 host=$host_alias
1365 target=$target_alias
1366
1367 # FIXME: To remove some day.
1368 if test "x$host_alias" != x; then
1369   if test "x$build_alias" = x; then
1370     cross_compiling=maybe
1371     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1372     If a cross compiler is detected then cross compile mode will be used." >&2
1373   elif test "x$build_alias" != "x$host_alias"; then
1374     cross_compiling=yes
1375   fi
1376 fi
1377
1378 ac_tool_prefix=
1379 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381 test "$silent" = yes && exec 6>/dev/null
1382
1383
1384 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di=`ls -di .` &&
1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387   { echo "$as_me: error: Working directory cannot be determined" >&2
1388    { (exit 1); exit 1; }; }
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390   { echo "$as_me: error: pwd does not report name of working directory" >&2
1391    { (exit 1); exit 1; }; }
1392
1393
1394 # Find the source files, if location was not specified.
1395 if test -z "$srcdir"; then
1396   ac_srcdir_defaulted=yes
1397   # Try the directory containing this script, then the parent directory.
1398   ac_confdir=`$as_dirname -- "$0" ||
1399 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400          X"$0" : 'X\(//\)[^/]' \| \
1401          X"$0" : 'X\(//\)$' \| \
1402          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1403 echo X"$0" |
1404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405             s//\1/
1406             q
1407           }
1408           /^X\(\/\/\)[^/].*/{
1409             s//\1/
1410             q
1411           }
1412           /^X\(\/\/\)$/{
1413             s//\1/
1414             q
1415           }
1416           /^X\(\/\).*/{
1417             s//\1/
1418             q
1419           }
1420           s/.*/./; q'`
1421   srcdir=$ac_confdir
1422   if test ! -r "$srcdir/$ac_unique_file"; then
1423     srcdir=..
1424   fi
1425 else
1426   ac_srcdir_defaulted=no
1427 fi
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1431    { (exit 1); exit 1; }; }
1432 fi
1433 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434 ac_abs_confdir=`(
1435         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1436    { (exit 1); exit 1; }; }
1437         pwd)`
1438 # When building in place, set srcdir=.
1439 if test "$ac_abs_confdir" = "$ac_pwd"; then
1440   srcdir=.
1441 fi
1442 # Remove unnecessary trailing slashes from srcdir.
1443 # Double slashes in file names in object file debugging info
1444 # mess up M-x gdb in Emacs.
1445 case $srcdir in
1446 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447 esac
1448 for ac_var in $ac_precious_vars; do
1449   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450   eval ac_env_${ac_var}_value=\$${ac_var}
1451   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453 done
1454
1455 #
1456 # Report the --help message.
1457 #
1458 if test "$ac_init_help" = "long"; then
1459   # Omit some internal or obsolete options to make the list less imposing.
1460   # This message is too long to be a string in the A/UX 3.1 sh.
1461   cat <<_ACEOF
1462 \`configure' configures llvm 2.3svn to adapt to many kinds of systems.
1463
1464 Usage: $0 [OPTION]... [VAR=VALUE]...
1465
1466 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467 VAR=VALUE.  See below for descriptions of some of the useful variables.
1468
1469 Defaults for the options are specified in brackets.
1470
1471 Configuration:
1472   -h, --help              display this help and exit
1473       --help=short        display options specific to this package
1474       --help=recursive    display the short help of all the included packages
1475   -V, --version           display version information and exit
1476   -q, --quiet, --silent   do not print \`checking...' messages
1477       --cache-file=FILE   cache test results in FILE [disabled]
1478   -C, --config-cache      alias for \`--cache-file=config.cache'
1479   -n, --no-create         do not create output files
1480       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1481
1482 Installation directories:
1483   --prefix=PREFIX         install architecture-independent files in PREFIX
1484                           [$ac_default_prefix]
1485   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1486                           [PREFIX]
1487
1488 By default, \`make install' will install all the files in
1489 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1490 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491 for instance \`--prefix=\$HOME'.
1492
1493 For better control, use the options below.
1494
1495 Fine tuning of the installation directories:
1496   --bindir=DIR           user executables [EPREFIX/bin]
1497   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1498   --libexecdir=DIR       program executables [EPREFIX/libexec]
1499   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1500   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1501   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1502   --libdir=DIR           object code libraries [EPREFIX/lib]
1503   --includedir=DIR       C header files [PREFIX/include]
1504   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1505   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1506   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1507   --infodir=DIR          info documentation [DATAROOTDIR/info]
1508   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1509   --mandir=DIR           man documentation [DATAROOTDIR/man]
1510   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1511   --htmldir=DIR          html documentation [DOCDIR]
1512   --dvidir=DIR           dvi documentation [DOCDIR]
1513   --pdfdir=DIR           pdf documentation [DOCDIR]
1514   --psdir=DIR            ps documentation [DOCDIR]
1515 _ACEOF
1516
1517   cat <<\_ACEOF
1518
1519 System types:
1520   --build=BUILD     configure for building on BUILD [guessed]
1521   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1522   --target=TARGET   configure for building compilers for TARGET [HOST]
1523 _ACEOF
1524 fi
1525
1526 if test -n "$ac_init_help"; then
1527   case $ac_init_help in
1528      short | recursive ) echo "Configuration of llvm 2.3svn:";;
1529    esac
1530   cat <<\_ACEOF
1531
1532 Optional Features:
1533   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1534   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1535   --enable-optimized
1536   --enable-assertions
1537   --enable-expensive-checks
1538
1539   --enable-debug-runtime
1540   --enable-jit            Enable Just In Time Compiling (default is YES)
1541   --enable-doxygen        Build doxygen documentation (default is NO)
1542   --enable-threads        Use threads if available (default is YES)
1543   --enable-pic            Build LLVM with Position Independent Code (default
1544                           is NO)
1545   --enable-targets        Build specific host targets:
1546                           all,host-only,{target-name} (default=all)
1547   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1548                           %a (default is YES)
1549   --enable-bindings       Build specific language bindings:
1550                           all,auto,none,{binding-name} (default=auto)
1551   --enable-ltdl-install   install libltdl
1552   --enable-shared[=PKGS]  build shared libraries
1553                           [default=yes]
1554   --enable-static[=PKGS]  build static libraries
1555                           [default=yes]
1556   --enable-fast-install[=PKGS]
1557                           optimize for fast installation
1558                           [default=yes]
1559   --disable-libtool-lock  avoid locking (might break parallel builds)
1560
1561 Optional Packages:
1562   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1563   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1564   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1565                           searches PATH)
1566   --with-llvmgcc          Specify location of llvm-gcc driver (default
1567                           searches PATH)
1568   --with-llvmgxx          Specify location of llvm-g++ driver (default
1569                           searches PATH)
1570   --with-extra-options    Specify addtional options to compile LLVM with
1571   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1572                           is stdlib)
1573   --with-tclinclude       directory where tcl headers are
1574   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1575   --with-pic              try to use only PIC/non-PIC objects [default=use
1576                           both]
1577   --with-tags[=TAGS]      include additional configurations [automatic]
1578   --with-udis86=<path>    Use udis86 external x86 disassembler library
1579
1580 Some influential environment variables:
1581   CC          C compiler command
1582   CFLAGS      C compiler flags
1583   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1584               nonstandard directory <lib dir>
1585   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586               you have headers in a nonstandard directory <include dir>
1587   CPP         C preprocessor
1588   CXX         C++ compiler command
1589   CXXFLAGS    C++ compiler flags
1590   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1591               the first program found out of: `bison -y', `byacc', `yacc'.
1592   YFLAGS      The list of arguments that will be passed by default to $YACC.
1593               This script will default YFLAGS to the empty string to avoid a
1594               default value of `-d' given by some make applications.
1595   CXXCPP      C++ preprocessor
1596   F77         Fortran 77 compiler command
1597   FFLAGS      Fortran 77 compiler flags
1598
1599 Use these variables to override the choices made by `configure' or to help
1600 it to find libraries and programs with nonstandard names/locations.
1601
1602 Report bugs to <llvmbugs@cs.uiuc.edu>.
1603 _ACEOF
1604 ac_status=$?
1605 fi
1606
1607 if test "$ac_init_help" = "recursive"; then
1608   # If there are subdirs, report their specific --help.
1609   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610     test -d "$ac_dir" || continue
1611     ac_builddir=.
1612
1613 case "$ac_dir" in
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *)
1616   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1617   # A ".." for each directory in $ac_dir_suffix.
1618   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1619   case $ac_top_builddir_sub in
1620   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622   esac ;;
1623 esac
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1628
1629 case $srcdir in
1630   .)  # We are building in place.
1631     ac_srcdir=.
1632     ac_top_srcdir=$ac_top_builddir_sub
1633     ac_abs_top_srcdir=$ac_pwd ;;
1634   [\\/]* | ?:[\\/]* )  # Absolute name.
1635     ac_srcdir=$srcdir$ac_dir_suffix;
1636     ac_top_srcdir=$srcdir
1637     ac_abs_top_srcdir=$srcdir ;;
1638   *) # Relative name.
1639     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640     ac_top_srcdir=$ac_top_build_prefix$srcdir
1641     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 esac
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644
1645     cd "$ac_dir" || { ac_status=$?; continue; }
1646     # Check for guested configure.
1647     if test -f "$ac_srcdir/configure.gnu"; then
1648       echo &&
1649       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650     elif test -f "$ac_srcdir/configure"; then
1651       echo &&
1652       $SHELL "$ac_srcdir/configure" --help=recursive
1653     else
1654       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655     fi || ac_status=$?
1656     cd "$ac_pwd" || { ac_status=$?; break; }
1657   done
1658 fi
1659
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1662   cat <<\_ACEOF
1663 llvm configure 2.3svn
1664 generated by GNU Autoconf 2.60
1665
1666 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1667 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1670
1671 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1672 _ACEOF
1673   exit
1674 fi
1675 cat >config.log <<_ACEOF
1676 This file contains any messages produced by compilers while
1677 running configure, to aid debugging if configure makes a mistake.
1678
1679 It was created by llvm $as_me 2.3svn, which was
1680 generated by GNU Autoconf 2.60.  Invocation command line was
1681
1682   $ $0 $@
1683
1684 _ACEOF
1685 exec 5>>config.log
1686 {
1687 cat <<_ASUNAME
1688 ## --------- ##
1689 ## Platform. ##
1690 ## --------- ##
1691
1692 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1693 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1694 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1695 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1696 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1697
1698 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1699 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1700
1701 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1702 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1703 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1704 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1705 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1706 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1707 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1708
1709 _ASUNAME
1710
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714   IFS=$as_save_IFS
1715   test -z "$as_dir" && as_dir=.
1716   echo "PATH: $as_dir"
1717 done
1718 IFS=$as_save_IFS
1719
1720 } >&5
1721
1722 cat >&5 <<_ACEOF
1723
1724
1725 ## ----------- ##
1726 ## Core tests. ##
1727 ## ----------- ##
1728
1729 _ACEOF
1730
1731
1732 # Keep a trace of the command line.
1733 # Strip out --no-create and --no-recursion so they do not pile up.
1734 # Strip out --silent because we don't want to record it for future runs.
1735 # Also quote any args containing shell meta-characters.
1736 # Make two passes to allow for proper duplicate-argument suppression.
1737 ac_configure_args=
1738 ac_configure_args0=
1739 ac_configure_args1=
1740 ac_must_keep_next=false
1741 for ac_pass in 1 2
1742 do
1743   for ac_arg
1744   do
1745     case $ac_arg in
1746     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1747     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1748     | -silent | --silent | --silen | --sile | --sil)
1749       continue ;;
1750     *\'*)
1751       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1752     esac
1753     case $ac_pass in
1754     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755     2)
1756       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1757       if test $ac_must_keep_next = true; then
1758         ac_must_keep_next=false # Got value, back to normal.
1759       else
1760         case $ac_arg in
1761           *=* | --config-cache | -C | -disable-* | --disable-* \
1762           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1763           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1764           | -with-* | --with-* | -without-* | --without-* | --x)
1765             case "$ac_configure_args0 " in
1766               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1767             esac
1768             ;;
1769           -* ) ac_must_keep_next=true ;;
1770         esac
1771       fi
1772       ac_configure_args="$ac_configure_args '$ac_arg'"
1773       ;;
1774     esac
1775   done
1776 done
1777 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1778 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1779
1780 # When interrupted or exit'd, cleanup temporary files, and complete
1781 # config.log.  We remove comments because anyway the quotes in there
1782 # would cause problems or look ugly.
1783 # WARNING: Use '\'' to represent an apostrophe within the trap.
1784 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1785 trap 'exit_status=$?
1786   # Save into config.log some information that might help in debugging.
1787   {
1788     echo
1789
1790     cat <<\_ASBOX
1791 ## ---------------- ##
1792 ## Cache variables. ##
1793 ## ---------------- ##
1794 _ASBOX
1795     echo
1796     # The following way of writing the cache mishandles newlines in values,
1797 (
1798   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1799     eval ac_val=\$$ac_var
1800     case $ac_val in #(
1801     *${as_nl}*)
1802       case $ac_var in #(
1803       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1804 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1805       esac
1806       case $ac_var in #(
1807       _ | IFS | as_nl) ;; #(
1808       *) $as_unset $ac_var ;;
1809       esac ;;
1810     esac
1811   done
1812   (set) 2>&1 |
1813     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1814     *${as_nl}ac_space=\ *)
1815       sed -n \
1816         "s/'\''/'\''\\\\'\'''\''/g;
1817           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1818       ;; #(
1819     *)
1820       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1821       ;;
1822     esac |
1823     sort
1824 )
1825     echo
1826
1827     cat <<\_ASBOX
1828 ## ----------------- ##
1829 ## Output variables. ##
1830 ## ----------------- ##
1831 _ASBOX
1832     echo
1833     for ac_var in $ac_subst_vars
1834     do
1835       eval ac_val=\$$ac_var
1836       case $ac_val in
1837       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838       esac
1839       echo "$ac_var='\''$ac_val'\''"
1840     done | sort
1841     echo
1842
1843     if test -n "$ac_subst_files"; then
1844       cat <<\_ASBOX
1845 ## ------------------- ##
1846 ## File substitutions. ##
1847 ## ------------------- ##
1848 _ASBOX
1849       echo
1850       for ac_var in $ac_subst_files
1851       do
1852         eval ac_val=\$$ac_var
1853         case $ac_val in
1854         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855         esac
1856         echo "$ac_var='\''$ac_val'\''"
1857       done | sort
1858       echo
1859     fi
1860
1861     if test -s confdefs.h; then
1862       cat <<\_ASBOX
1863 ## ----------- ##
1864 ## confdefs.h. ##
1865 ## ----------- ##
1866 _ASBOX
1867       echo
1868       cat confdefs.h
1869       echo
1870     fi
1871     test "$ac_signal" != 0 &&
1872       echo "$as_me: caught signal $ac_signal"
1873     echo "$as_me: exit $exit_status"
1874   } >&5
1875   rm -f core *.core core.conftest.* &&
1876     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1877     exit $exit_status
1878 ' 0
1879 for ac_signal in 1 2 13 15; do
1880   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1881 done
1882 ac_signal=0
1883
1884 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1885 rm -f -r conftest* confdefs.h
1886
1887 # Predefined preprocessor variables.
1888
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_NAME "$PACKAGE_NAME"
1891 _ACEOF
1892
1893
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1896 _ACEOF
1897
1898
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1901 _ACEOF
1902
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_STRING "$PACKAGE_STRING"
1906 _ACEOF
1907
1908
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1911 _ACEOF
1912
1913
1914 # Let the site file select an alternate cache file if it wants to.
1915 # Prefer explicitly selected file to automatically selected ones.
1916 if test -n "$CONFIG_SITE"; then
1917   set x "$CONFIG_SITE"
1918 elif test "x$prefix" != xNONE; then
1919   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1920 else
1921   set x "$ac_default_prefix/share/config.site" \
1922         "$ac_default_prefix/etc/config.site"
1923 fi
1924 shift
1925 for ac_site_file
1926 do
1927   if test -r "$ac_site_file"; then
1928     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1929 echo "$as_me: loading site script $ac_site_file" >&6;}
1930     sed 's/^/| /' "$ac_site_file" >&5
1931     . "$ac_site_file"
1932   fi
1933 done
1934
1935 if test -r "$cache_file"; then
1936   # Some versions of bash will fail to source /dev/null (special
1937   # files actually), so we avoid doing that.
1938   if test -f "$cache_file"; then
1939     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1940 echo "$as_me: loading cache $cache_file" >&6;}
1941     case $cache_file in
1942       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1943       *)                      . "./$cache_file";;
1944     esac
1945   fi
1946 else
1947   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1948 echo "$as_me: creating cache $cache_file" >&6;}
1949   >$cache_file
1950 fi
1951
1952 # Check that the precious variables saved in the cache have kept the same
1953 # value.
1954 ac_cache_corrupted=false
1955 for ac_var in $ac_precious_vars; do
1956   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1957   eval ac_new_set=\$ac_env_${ac_var}_set
1958   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1959   eval ac_new_val=\$ac_env_${ac_var}_value
1960   case $ac_old_set,$ac_new_set in
1961     set,)
1962       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1963 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1964       ac_cache_corrupted=: ;;
1965     ,set)
1966       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1967 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1968       ac_cache_corrupted=: ;;
1969     ,);;
1970     *)
1971       if test "x$ac_old_val" != "x$ac_new_val"; then
1972         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1973 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1974         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1975 echo "$as_me:   former value:  $ac_old_val" >&2;}
1976         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1977 echo "$as_me:   current value: $ac_new_val" >&2;}
1978         ac_cache_corrupted=:
1979       fi;;
1980   esac
1981   # Pass precious variables to config.status.
1982   if test "$ac_new_set" = set; then
1983     case $ac_new_val in
1984     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1985     *) ac_arg=$ac_var=$ac_new_val ;;
1986     esac
1987     case " $ac_configure_args " in
1988       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1989       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1990     esac
1991   fi
1992 done
1993 if $ac_cache_corrupted; then
1994   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1995 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1996   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1997 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1998    { (exit 1); exit 1; }; }
1999 fi
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025 ac_ext=c
2026 ac_cpp='$CPP $CPPFLAGS'
2027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2030
2031
2032
2033 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2034
2035
2036
2037
2038
2039
2040
2041 ac_aux_dir=
2042 for ac_dir in autoconf "$srcdir"/autoconf; do
2043   if test -f "$ac_dir/install-sh"; then
2044     ac_aux_dir=$ac_dir
2045     ac_install_sh="$ac_aux_dir/install-sh -c"
2046     break
2047   elif test -f "$ac_dir/install.sh"; then
2048     ac_aux_dir=$ac_dir
2049     ac_install_sh="$ac_aux_dir/install.sh -c"
2050     break
2051   elif test -f "$ac_dir/shtool"; then
2052     ac_aux_dir=$ac_dir
2053     ac_install_sh="$ac_aux_dir/shtool install -c"
2054     break
2055   fi
2056 done
2057 if test -z "$ac_aux_dir"; then
2058   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2059 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2060    { (exit 1); exit 1; }; }
2061 fi
2062
2063 # These three variables are undocumented and unsupported,
2064 # and are intended to be withdrawn in a future Autoconf release.
2065 # They can cause serious problems if a builder's source tree is in a directory
2066 # whose full name contains unusual characters.
2067 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2068 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2069 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2070
2071
2072
2073 if test ${srcdir} != "." ; then
2074   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2075     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2076 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2077    { (exit 1); exit 1; }; }
2078   fi
2079 fi
2080
2081 for i in `ls ${srcdir}/projects`
2082 do
2083   if test -d ${srcdir}/projects/${i} ; then
2084     case ${i} in
2085       CVS) ;;
2086       sample)       subdirs="$subdirs projects/sample"
2087     ;;
2088       privbracket)  subdirs="$subdirs projects/privbracket"
2089  ;;
2090       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2091  ;;
2092       llvm-test)    subdirs="$subdirs projects/llvm-test"
2093  ;;
2094       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2095 ;;
2096       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2097   ;;
2098       llvm-java)    subdirs="$subdirs projects/llvm-java"
2099  ;;
2100       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2101    ;;
2102       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2103  ;;
2104       poolalloc)    subdirs="$subdirs projects/poolalloc"
2105  ;;
2106       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2107  ;;
2108       *)
2109         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2110 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2111         ;;
2112     esac
2113   fi
2114 done
2115
2116
2117 # Make sure we can run config.sub.
2118 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2119   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2120 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2121    { (exit 1); exit 1; }; }
2122
2123 { echo "$as_me:$LINENO: checking build system type" >&5
2124 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2125 if test "${ac_cv_build+set}" = set; then
2126   echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128   ac_build_alias=$build_alias
2129 test "x$ac_build_alias" = x &&
2130   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2131 test "x$ac_build_alias" = x &&
2132   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2133 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2134    { (exit 1); exit 1; }; }
2135 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2136   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2137 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2138    { (exit 1); exit 1; }; }
2139
2140 fi
2141 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2142 echo "${ECHO_T}$ac_cv_build" >&6; }
2143 case $ac_cv_build in
2144 *-*-*) ;;
2145 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2146 echo "$as_me: error: invalid value of canonical build" >&2;}
2147    { (exit 1); exit 1; }; };;
2148 esac
2149 build=$ac_cv_build
2150 ac_save_IFS=$IFS; IFS='-'
2151 set x $ac_cv_build
2152 shift
2153 build_cpu=$1
2154 build_vendor=$2
2155 shift; shift
2156 # Remember, the first character of IFS is used to create $*,
2157 # except with old shells:
2158 build_os=$*
2159 IFS=$ac_save_IFS
2160 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2161
2162
2163 { echo "$as_me:$LINENO: checking host system type" >&5
2164 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2165 if test "${ac_cv_host+set}" = set; then
2166   echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168   if test "x$host_alias" = x; then
2169   ac_cv_host=$ac_cv_build
2170 else
2171   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2172     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2173 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2174    { (exit 1); exit 1; }; }
2175 fi
2176
2177 fi
2178 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2179 echo "${ECHO_T}$ac_cv_host" >&6; }
2180 case $ac_cv_host in
2181 *-*-*) ;;
2182 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2183 echo "$as_me: error: invalid value of canonical host" >&2;}
2184    { (exit 1); exit 1; }; };;
2185 esac
2186 host=$ac_cv_host
2187 ac_save_IFS=$IFS; IFS='-'
2188 set x $ac_cv_host
2189 shift
2190 host_cpu=$1
2191 host_vendor=$2
2192 shift; shift
2193 # Remember, the first character of IFS is used to create $*,
2194 # except with old shells:
2195 host_os=$*
2196 IFS=$ac_save_IFS
2197 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2198
2199
2200 { echo "$as_me:$LINENO: checking target system type" >&5
2201 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2202 if test "${ac_cv_target+set}" = set; then
2203   echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205   if test "x$target_alias" = x; then
2206   ac_cv_target=$ac_cv_host
2207 else
2208   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2209     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2210 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2211    { (exit 1); exit 1; }; }
2212 fi
2213
2214 fi
2215 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2216 echo "${ECHO_T}$ac_cv_target" >&6; }
2217 case $ac_cv_target in
2218 *-*-*) ;;
2219 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2220 echo "$as_me: error: invalid value of canonical target" >&2;}
2221    { (exit 1); exit 1; }; };;
2222 esac
2223 target=$ac_cv_target
2224 ac_save_IFS=$IFS; IFS='-'
2225 set x $ac_cv_target
2226 shift
2227 target_cpu=$1
2228 target_vendor=$2
2229 shift; shift
2230 # Remember, the first character of IFS is used to create $*,
2231 # except with old shells:
2232 target_os=$*
2233 IFS=$ac_save_IFS
2234 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2235
2236
2237 # The aliases save the names the user supplied, while $host etc.
2238 # will get canonicalized.
2239 test -n "$target_alias" &&
2240   test "$program_prefix$program_suffix$program_transform_name" = \
2241     NONENONEs,x,x, &&
2242   program_prefix=${target_alias}-
2243
2244 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2245 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2246 if test "${llvm_cv_os_type+set}" = set; then
2247   echo $ECHO_N "(cached) $ECHO_C" >&6
2248 else
2249   case $host in
2250   *-*-aix*)
2251     llvm_cv_link_all_option="-Wl,--whole-archive"
2252     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253     llvm_cv_os_type="AIX"
2254     llvm_cv_platform_type="Unix" ;;
2255   *-*-irix*)
2256     llvm_cv_link_all_option="-Wl,--whole-archive"
2257     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258     llvm_cv_os_type="IRIX"
2259     llvm_cv_platform_type="Unix" ;;
2260   *-*-cygwin*)
2261     llvm_cv_link_all_option="-Wl,--whole-archive"
2262     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2263     llvm_cv_os_type="Cygwin"
2264     llvm_cv_platform_type="Unix" ;;
2265   *-*-darwin*)
2266     llvm_cv_link_all_option="-Wl,-all_load"
2267     llvm_cv_no_link_all_option="-Wl,-noall_load"
2268     llvm_cv_os_type="Darwin"
2269     llvm_cv_platform_type="Unix" ;;
2270   *-*-freebsd*)
2271     llvm_cv_link_all_option="-Wl,--whole-archive"
2272     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273     llvm_cv_os_type="FreeBSD"
2274     llvm_cv_platform_type="Unix" ;;
2275   *-*-openbsd*)
2276     llvm_cv_link_all_option="-Wl,--whole-archive"
2277     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278     llvm_cv_os_type="OpenBSD"
2279     llvm_cv_platform_type="Unix" ;;
2280   *-*-netbsd*)
2281     llvm_cv_link_all_option="-Wl,--whole-archive"
2282     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283     llvm_cv_os_type="NetBSD"
2284     llvm_cv_platform_type="Unix" ;;
2285   *-*-hpux*)
2286     llvm_cv_link_all_option="-Wl,--whole-archive"
2287     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288     llvm_cv_os_type="HP-UX"
2289     llvm_cv_platform_type="Unix" ;;
2290   *-*-interix*)
2291     llvm_cv_link_all_option="-Wl,--whole-archive"
2292     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2293     llvm_cv_os_type="Interix"
2294     llvm_cv_platform_type="Unix" ;;
2295   *-*-linux*)
2296     llvm_cv_link_all_option="-Wl,--whole-archive"
2297     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298     llvm_cv_os_type="Linux"
2299     llvm_cv_platform_type="Unix" ;;
2300   *-*-solaris*)
2301     llvm_cv_link_all_option="-Wl,-z,allextract"
2302     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2303     llvm_cv_os_type="SunOS"
2304     llvm_cv_platform_type="Unix" ;;
2305   *-*-win32*)
2306     llvm_cv_link_all_option="-Wl,--whole-archive"
2307     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308     llvm_cv_os_type="Win32"
2309     llvm_cv_platform_type="Win32" ;;
2310   *-*-mingw*)
2311     llvm_cv_link_all_option="-Wl,--whole-archive"
2312     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313     llvm_cv_os_type="MingW"
2314     llvm_cv_platform_type="Win32" ;;
2315   *)
2316     llvm_cv_link_all_option=""
2317     llvm_cv_no_link_all_option=""
2318     llvm_cv_os_type="Unknown"
2319     llvm_cv_platform_type="Unknown" ;;
2320 esac
2321 fi
2322 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2323 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2324
2325 if test "$llvm_cv_os_type" = "Unknown" ; then
2326   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2327 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2328    { (exit 1); exit 1; }; }
2329 fi
2330
2331 OS=$llvm_cv_os_type
2332
2333
2334 LINKALL=$llvm_cv_link_all_option
2335
2336 NOLINKALL=$llvm_cv_no_link_all_option
2337
2338
2339 case $llvm_cv_platform_type in
2340   Unix)
2341
2342 cat >>confdefs.h <<\_ACEOF
2343 #define LLVM_ON_UNIX 1
2344 _ACEOF
2345
2346     LLVM_ON_UNIX=1
2347
2348     LLVM_ON_WIN32=0
2349
2350     ;;
2351   Win32)
2352
2353 cat >>confdefs.h <<\_ACEOF
2354 #define LLVM_ON_WIN32 1
2355 _ACEOF
2356
2357     LLVM_ON_UNIX=0
2358
2359     LLVM_ON_WIN32=1
2360
2361     ;;
2362 esac
2363
2364 { echo "$as_me:$LINENO: checking target architecture" >&5
2365 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2366 if test "${llvm_cv_target_arch+set}" = set; then
2367   echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369   case $target in
2370   i?86-*)                 llvm_cv_target_arch="x86" ;;
2371   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2372   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2373   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2374   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2375   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2376   arm-*)                  llvm_cv_target_arch="ARM" ;;
2377   mips-*)                 llvm_cv_target_arch="Mips" ;;
2378   *)                      llvm_cv_target_arch="Unknown" ;;
2379 esac
2380 fi
2381 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2382 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2383
2384 if test "$llvm_cv_target_arch" = "Unknown" ; then
2385   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2386 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2387 fi
2388
2389 ARCH=$llvm_cv_target_arch
2390
2391
2392 ac_ext=c
2393 ac_cpp='$CPP $CPPFLAGS'
2394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397 if test -n "$ac_tool_prefix"; then
2398   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402 if test "${ac_cv_prog_CC+set}" = set; then
2403   echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405   if test -n "$CC"; then
2406   ac_cv_prog_CC="$CC" # Let the user override the test.
2407 else
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 for as_dir in $PATH
2410 do
2411   IFS=$as_save_IFS
2412   test -z "$as_dir" && as_dir=.
2413   for ac_exec_ext in '' $ac_executable_extensions; do
2414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2415     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417     break 2
2418   fi
2419 done
2420 done
2421 IFS=$as_save_IFS
2422
2423 fi
2424 fi
2425 CC=$ac_cv_prog_CC
2426 if test -n "$CC"; then
2427   { echo "$as_me:$LINENO: result: $CC" >&5
2428 echo "${ECHO_T}$CC" >&6; }
2429 else
2430   { echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6; }
2432 fi
2433
2434
2435 fi
2436 if test -z "$ac_cv_prog_CC"; then
2437   ac_ct_CC=$CC
2438   # Extract the first word of "gcc", so it can be a program name with args.
2439 set dummy gcc; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   if test -n "$ac_ct_CC"; then
2446   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453   for ac_exec_ext in '' $ac_executable_extensions; do
2454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2455     ac_cv_prog_ac_ct_CC="gcc"
2456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457     break 2
2458   fi
2459 done
2460 done
2461 IFS=$as_save_IFS
2462
2463 fi
2464 fi
2465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2466 if test -n "$ac_ct_CC"; then
2467   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2468 echo "${ECHO_T}$ac_ct_CC" >&6; }
2469 else
2470   { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2472 fi
2473
2474   if test "x$ac_ct_CC" = x; then
2475     CC=""
2476   else
2477     case $cross_compiling:$ac_tool_warned in
2478 yes:)
2479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2480 whose name does not start with the host triplet.  If you think this
2481 configuration is useful to you, please write to autoconf@gnu.org." >&5
2482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2483 whose name does not start with the host triplet.  If you think this
2484 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2485 ac_tool_warned=yes ;;
2486 esac
2487     CC=$ac_ct_CC
2488   fi
2489 else
2490   CC="$ac_cv_prog_CC"
2491 fi
2492
2493 if test -z "$CC"; then
2494           if test -n "$ac_tool_prefix"; then
2495     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2496 set dummy ${ac_tool_prefix}cc; ac_word=$2
2497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2499 if test "${ac_cv_prog_CC+set}" = set; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502   if test -n "$CC"; then
2503   ac_cv_prog_CC="$CC" # Let the user override the test.
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2507 do
2508   IFS=$as_save_IFS
2509   test -z "$as_dir" && as_dir=.
2510   for ac_exec_ext in '' $ac_executable_extensions; do
2511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2512     ac_cv_prog_CC="${ac_tool_prefix}cc"
2513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514     break 2
2515   fi
2516 done
2517 done
2518 IFS=$as_save_IFS
2519
2520 fi
2521 fi
2522 CC=$ac_cv_prog_CC
2523 if test -n "$CC"; then
2524   { echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6; }
2526 else
2527   { echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6; }
2529 fi
2530
2531
2532   fi
2533 fi
2534 if test -z "$CC"; then
2535   # Extract the first word of "cc", so it can be a program name with args.
2536 set dummy cc; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540   echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542   if test -n "$CC"; then
2543   ac_cv_prog_CC="$CC" # Let the user override the test.
2544 else
2545   ac_prog_rejected=no
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549   IFS=$as_save_IFS
2550   test -z "$as_dir" && as_dir=.
2551   for ac_exec_ext in '' $ac_executable_extensions; do
2552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2553     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2554        ac_prog_rejected=yes
2555        continue
2556      fi
2557     ac_cv_prog_CC="cc"
2558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559     break 2
2560   fi
2561 done
2562 done
2563 IFS=$as_save_IFS
2564
2565 if test $ac_prog_rejected = yes; then
2566   # We found a bogon in the path, so make sure we never use it.
2567   set dummy $ac_cv_prog_CC
2568   shift
2569   if test $# != 0; then
2570     # We chose a different compiler from the bogus one.
2571     # However, it has the same basename, so the bogon will be chosen
2572     # first if we set CC to just the basename; use the full file name.
2573     shift
2574     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2575   fi
2576 fi
2577 fi
2578 fi
2579 CC=$ac_cv_prog_CC
2580 if test -n "$CC"; then
2581   { echo "$as_me:$LINENO: result: $CC" >&5
2582 echo "${ECHO_T}$CC" >&6; }
2583 else
2584   { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2586 fi
2587
2588
2589 fi
2590 if test -z "$CC"; then
2591   if test -n "$ac_tool_prefix"; then
2592   for ac_prog in cl.exe
2593   do
2594     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_CC+set}" = set; then
2599   echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601   if test -n "$CC"; then
2602   ac_cv_prog_CC="$CC" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607   IFS=$as_save_IFS
2608   test -z "$as_dir" && as_dir=.
2609   for ac_exec_ext in '' $ac_executable_extensions; do
2610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2611     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613     break 2
2614   fi
2615 done
2616 done
2617 IFS=$as_save_IFS
2618
2619 fi
2620 fi
2621 CC=$ac_cv_prog_CC
2622 if test -n "$CC"; then
2623   { echo "$as_me:$LINENO: result: $CC" >&5
2624 echo "${ECHO_T}$CC" >&6; }
2625 else
2626   { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2628 fi
2629
2630
2631     test -n "$CC" && break
2632   done
2633 fi
2634 if test -z "$CC"; then
2635   ac_ct_CC=$CC
2636   for ac_prog in cl.exe
2637 do
2638   # Extract the first word of "$ac_prog", so it can be a program name with args.
2639 set dummy $ac_prog; ac_word=$2
2640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2643   echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645   if test -n "$ac_ct_CC"; then
2646   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651   IFS=$as_save_IFS
2652   test -z "$as_dir" && as_dir=.
2653   for ac_exec_ext in '' $ac_executable_extensions; do
2654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2655     ac_cv_prog_ac_ct_CC="$ac_prog"
2656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657     break 2
2658   fi
2659 done
2660 done
2661 IFS=$as_save_IFS
2662
2663 fi
2664 fi
2665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666 if test -n "$ac_ct_CC"; then
2667   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2668 echo "${ECHO_T}$ac_ct_CC" >&6; }
2669 else
2670   { echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6; }
2672 fi
2673
2674
2675   test -n "$ac_ct_CC" && break
2676 done
2677
2678   if test "x$ac_ct_CC" = x; then
2679     CC=""
2680   else
2681     case $cross_compiling:$ac_tool_warned in
2682 yes:)
2683 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2684 whose name does not start with the host triplet.  If you think this
2685 configuration is useful to you, please write to autoconf@gnu.org." >&5
2686 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2687 whose name does not start with the host triplet.  If you think this
2688 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2689 ac_tool_warned=yes ;;
2690 esac
2691     CC=$ac_ct_CC
2692   fi
2693 fi
2694
2695 fi
2696
2697
2698 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2699 See \`config.log' for more details." >&5
2700 echo "$as_me: error: no acceptable C compiler found in \$PATH
2701 See \`config.log' for more details." >&2;}
2702    { (exit 1); exit 1; }; }
2703
2704 # Provide some information about the compiler.
2705 echo "$as_me:$LINENO: checking for C compiler version" >&5
2706 ac_compiler=`set X $ac_compile; echo $2`
2707 { (ac_try="$ac_compiler --version >&5"
2708 case "(($ac_try" in
2709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710   *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713   (eval "$ac_compiler --version >&5") 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }
2717 { (ac_try="$ac_compiler -v >&5"
2718 case "(($ac_try" in
2719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720   *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723   (eval "$ac_compiler -v >&5") 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }
2727 { (ac_try="$ac_compiler -V >&5"
2728 case "(($ac_try" in
2729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730   *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733   (eval "$ac_compiler -V >&5") 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); }
2737
2738 cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h.  */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h.  */
2744
2745 int
2746 main ()
2747 {
2748
2749   ;
2750   return 0;
2751 }
2752 _ACEOF
2753 ac_clean_files_save=$ac_clean_files
2754 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2755 # Try to create an executable without -o first, disregard a.out.
2756 # It will help us diagnose broken compilers, and finding out an intuition
2757 # of exeext.
2758 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2759 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2760 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2761 #
2762 # List of possible output files, starting from the most likely.
2763 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2764 # only as a last resort.  b.out is created by i960 compilers.
2765 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2766 #
2767 # The IRIX 6 linker writes into existing files which may not be
2768 # executable, retaining their permissions.  Remove them first so a
2769 # subsequent execution test works.
2770 ac_rmfiles=
2771 for ac_file in $ac_files
2772 do
2773   case $ac_file in
2774     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2775     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2776   esac
2777 done
2778 rm -f $ac_rmfiles
2779
2780 if { (ac_try="$ac_link_default"
2781 case "(($ac_try" in
2782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783   *) ac_try_echo=$ac_try;;
2784 esac
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786   (eval "$ac_link_default") 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }; then
2790   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2791 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2792 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2793 # so that the user can short-circuit this test for compilers unknown to
2794 # Autoconf.
2795 for ac_file in $ac_files
2796 do
2797   test -f "$ac_file" || continue
2798   case $ac_file in
2799     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2800         ;;
2801     [ab].out )
2802         # We found the default executable, but exeext='' is most
2803         # certainly right.
2804         break;;
2805     *.* )
2806         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2807         then :; else
2808            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2809         fi
2810         # We set ac_cv_exeext here because the later test for it is not
2811         # safe: cross compilers may not add the suffix if given an `-o'
2812         # argument, so we may need to know it at that point already.
2813         # Even if this section looks crufty: it has the advantage of
2814         # actually working.
2815         break;;
2816     * )
2817         break;;
2818   esac
2819 done
2820 test "$ac_cv_exeext" = no && ac_cv_exeext=
2821
2822 else
2823   echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2825
2826 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2827 See \`config.log' for more details." >&5
2828 echo "$as_me: error: C compiler cannot create executables
2829 See \`config.log' for more details." >&2;}
2830    { (exit 77); exit 77; }; }
2831 fi
2832
2833 ac_exeext=$ac_cv_exeext
2834 { echo "$as_me:$LINENO: result: $ac_file" >&5
2835 echo "${ECHO_T}$ac_file" >&6; }
2836
2837 # Check that the compiler produces executables we can run.  If not, either
2838 # the compiler is broken, or we cross compile.
2839 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2840 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2841 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2842 # If not cross compiling, check that we can run a simple program.
2843 if test "$cross_compiling" != yes; then
2844   if { ac_try='./$ac_file'
2845   { (case "(($ac_try" in
2846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847   *) ac_try_echo=$ac_try;;
2848 esac
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850   (eval "$ac_try") 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); }; }; then
2854     cross_compiling=no
2855   else
2856     if test "$cross_compiling" = maybe; then
2857         cross_compiling=yes
2858     else
2859         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2860 If you meant to cross compile, use \`--host'.
2861 See \`config.log' for more details." >&5
2862 echo "$as_me: error: cannot run C compiled programs.
2863 If you meant to cross compile, use \`--host'.
2864 See \`config.log' for more details." >&2;}
2865    { (exit 1); exit 1; }; }
2866     fi
2867   fi
2868 fi
2869 { echo "$as_me:$LINENO: result: yes" >&5
2870 echo "${ECHO_T}yes" >&6; }
2871
2872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2873 ac_clean_files=$ac_clean_files_save
2874 # Check that the compiler produces executables we can run.  If not, either
2875 # the compiler is broken, or we cross compile.
2876 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2878 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2879 echo "${ECHO_T}$cross_compiling" >&6; }
2880
2881 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2883 if { (ac_try="$ac_link"
2884 case "(($ac_try" in
2885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886   *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889   (eval "$ac_link") 2>&5
2890   ac_status=$?
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); }; then
2893   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2894 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2895 # work properly (i.e., refer to `conftest.exe'), while it won't with
2896 # `rm'.
2897 for ac_file in conftest.exe conftest conftest.*; do
2898   test -f "$ac_file" || continue
2899   case $ac_file in
2900     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2901     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2902           break;;
2903     * ) break;;
2904   esac
2905 done
2906 else
2907   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2910 See \`config.log' for more details." >&2;}
2911    { (exit 1); exit 1; }; }
2912 fi
2913
2914 rm -f conftest$ac_cv_exeext
2915 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2916 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2917
2918 rm -f conftest.$ac_ext
2919 EXEEXT=$ac_cv_exeext
2920 ac_exeext=$EXEEXT
2921 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2922 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2923 if test "${ac_cv_objext+set}" = set; then
2924   echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926   cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h.  */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h.  */
2932
2933 int
2934 main ()
2935 {
2936
2937   ;
2938   return 0;
2939 }
2940 _ACEOF
2941 rm -f conftest.o conftest.obj
2942 if { (ac_try="$ac_compile"
2943 case "(($ac_try" in
2944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945   *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948   (eval "$ac_compile") 2>&5
2949   ac_status=$?
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); }; then
2952   for ac_file in conftest.o conftest.obj conftest.*; do
2953   test -f "$ac_file" || continue;
2954   case $ac_file in
2955     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2956     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2957        break;;
2958   esac
2959 done
2960 else
2961   echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2963
2964 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2967 See \`config.log' for more details." >&2;}
2968    { (exit 1); exit 1; }; }
2969 fi
2970
2971 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2972 fi
2973 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2974 echo "${ECHO_T}$ac_cv_objext" >&6; }
2975 OBJEXT=$ac_cv_objext
2976 ac_objext=$OBJEXT
2977 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2978 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2979 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2980   echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982   cat >conftest.$ac_ext <<_ACEOF
2983 /* confdefs.h.  */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h.  */
2988
2989 int
2990 main ()
2991 {
2992 #ifndef __GNUC__
2993        choke me
2994 #endif
2995
2996   ;
2997   return 0;
2998 }
2999 _ACEOF
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3002 case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007   (eval "$ac_compile") 2>conftest.er1
3008   ac_status=$?
3009   grep -v '^ *+' conftest.er1 >conftest.err
3010   rm -f conftest.er1
3011   cat conftest.err >&5
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); } &&
3014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3015   { (case "(($ac_try" in
3016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017   *) ac_try_echo=$ac_try;;
3018 esac
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020   (eval "$ac_try") 2>&5
3021   ac_status=$?
3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023   (exit $ac_status); }; } &&
3024          { ac_try='test -s conftest.$ac_objext'
3025   { (case "(($ac_try" in
3026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027   *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030   (eval "$ac_try") 2>&5
3031   ac_status=$?
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); }; }; then
3034   ac_compiler_gnu=yes
3035 else
3036   echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3038
3039         ac_compiler_gnu=no
3040 fi
3041
3042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3044
3045 fi
3046 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3047 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3048 GCC=`test $ac_compiler_gnu = yes && echo yes`
3049 ac_test_CFLAGS=${CFLAGS+set}
3050 ac_save_CFLAGS=$CFLAGS
3051 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3052 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_cc_g+set}" = set; then
3054   echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056   ac_save_c_werror_flag=$ac_c_werror_flag
3057    ac_c_werror_flag=yes
3058    ac_cv_prog_cc_g=no
3059    CFLAGS="-g"
3060    cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h.  */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h.  */
3066
3067 int
3068 main ()
3069 {
3070
3071   ;
3072   return 0;
3073 }
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
3077 case "(($ac_try" in
3078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079   *) ac_try_echo=$ac_try;;
3080 esac
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082   (eval "$ac_compile") 2>conftest.er1
3083   ac_status=$?
3084   grep -v '^ *+' conftest.er1 >conftest.err
3085   rm -f conftest.er1
3086   cat conftest.err >&5
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); } &&
3089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3090   { (case "(($ac_try" in
3091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092   *) ac_try_echo=$ac_try;;
3093 esac
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095   (eval "$ac_try") 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }; } &&
3099          { ac_try='test -s conftest.$ac_objext'
3100   { (case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105   (eval "$ac_try") 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); }; }; then
3109   ac_cv_prog_cc_g=yes
3110 else
3111   echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114         CFLAGS=""
3115       cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h.  */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h.  */
3121
3122 int
3123 main ()
3124 {
3125
3126   ;
3127   return 0;
3128 }
3129 _ACEOF
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3132 case "(($ac_try" in
3133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134   *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137   (eval "$ac_compile") 2>conftest.er1
3138   ac_status=$?
3139   grep -v '^ *+' conftest.er1 >conftest.err
3140   rm -f conftest.er1
3141   cat conftest.err >&5
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); } &&
3144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3145   { (case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150   (eval "$ac_try") 2>&5
3151   ac_status=$?
3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); }; } &&
3154          { ac_try='test -s conftest.$ac_objext'
3155   { (case "(($ac_try" in
3156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157   *) ac_try_echo=$ac_try;;
3158 esac
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160   (eval "$ac_try") 2>&5
3161   ac_status=$?
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); }; }; then
3164   :
3165 else
3166   echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3168
3169         ac_c_werror_flag=$ac_save_c_werror_flag
3170          CFLAGS="-g"
3171          cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h.  */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h.  */
3177
3178 int
3179 main ()
3180 {
3181
3182   ;
3183   return 0;
3184 }
3185 _ACEOF
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3188 case "(($ac_try" in
3189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190   *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193   (eval "$ac_compile") 2>conftest.er1
3194   ac_status=$?
3195   grep -v '^ *+' conftest.er1 >conftest.err
3196   rm -f conftest.er1
3197   cat conftest.err >&5
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); } &&
3200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3201   { (case "(($ac_try" in
3202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203   *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206   (eval "$ac_try") 2>&5
3207   ac_status=$?
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); }; } &&
3210          { ac_try='test -s conftest.$ac_objext'
3211   { (case "(($ac_try" in
3212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213   *) ac_try_echo=$ac_try;;
3214 esac
3215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216   (eval "$ac_try") 2>&5
3217   ac_status=$?
3218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); }; }; then
3220   ac_cv_prog_cc_g=yes
3221 else
3222   echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3224
3225
3226 fi
3227
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 fi
3230
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 fi
3233
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235    ac_c_werror_flag=$ac_save_c_werror_flag
3236 fi
3237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3238 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3239 if test "$ac_test_CFLAGS" = set; then
3240   CFLAGS=$ac_save_CFLAGS
3241 elif test $ac_cv_prog_cc_g = yes; then
3242   if test "$GCC" = yes; then
3243     CFLAGS="-g -O2"
3244   else
3245     CFLAGS="-g"
3246   fi
3247 else
3248   if test "$GCC" = yes; then
3249     CFLAGS="-O2"
3250   else
3251     CFLAGS=
3252   fi
3253 fi
3254 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3255 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3256 if test "${ac_cv_prog_cc_c89+set}" = set; then
3257   echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259   ac_cv_prog_cc_c89=no
3260 ac_save_CC=$CC
3261 cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h.  */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h.  */
3267 #include <stdarg.h>
3268 #include <stdio.h>
3269 #include <sys/types.h>
3270 #include <sys/stat.h>
3271 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3272 struct buf { int x; };
3273 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3274 static char *e (p, i)
3275      char **p;
3276      int i;
3277 {
3278   return p[i];
3279 }
3280 static char *f (char * (*g) (char **, int), char **p, ...)
3281 {
3282   char *s;
3283   va_list v;
3284   va_start (v,p);
3285   s = g (p, va_arg (v,int));
3286   va_end (v);
3287   return s;
3288 }
3289
3290 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3291    function prototypes and stuff, but not '\xHH' hex character constants.
3292    These don't provoke an error unfortunately, instead are silently treated
3293    as 'x'.  The following induces an error, until -std is added to get
3294    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3295    array size at least.  It's necessary to write '\x00'==0 to get something
3296    that's true only with -std.  */
3297 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3298
3299 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3300    inside strings and character constants.  */
3301 #define FOO(x) 'x'
3302 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3303
3304 int test (int i, double x);
3305 struct s1 {int (*f) (int a);};
3306 struct s2 {int (*f) (double a);};
3307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3308 int argc;
3309 char **argv;
3310 int
3311 main ()
3312 {
3313 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3314   ;
3315   return 0;
3316 }
3317 _ACEOF
3318 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3319         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3320 do
3321   CC="$ac_save_CC $ac_arg"
3322   rm -f conftest.$ac_objext
3323 if { (ac_try="$ac_compile"
3324 case "(($ac_try" in
3325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326   *) ac_try_echo=$ac_try;;
3327 esac
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329   (eval "$ac_compile") 2>conftest.er1
3330   ac_status=$?
3331   grep -v '^ *+' conftest.er1 >conftest.err
3332   rm -f conftest.er1
3333   cat conftest.err >&5
3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); } &&
3336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3337   { (case "(($ac_try" in
3338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339   *) ac_try_echo=$ac_try;;
3340 esac
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342   (eval "$ac_try") 2>&5
3343   ac_status=$?
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); }; } &&
3346          { ac_try='test -s conftest.$ac_objext'
3347   { (case "(($ac_try" in
3348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349   *) ac_try_echo=$ac_try;;
3350 esac
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352   (eval "$ac_try") 2>&5
3353   ac_status=$?
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); }; }; then
3356   ac_cv_prog_cc_c89=$ac_arg
3357 else
3358   echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3360
3361
3362 fi
3363
3364 rm -f core conftest.err conftest.$ac_objext
3365   test "x$ac_cv_prog_cc_c89" != "xno" && break
3366 done
3367 rm -f conftest.$ac_ext
3368 CC=$ac_save_CC
3369
3370 fi
3371 # AC_CACHE_VAL
3372 case "x$ac_cv_prog_cc_c89" in
3373   x)
3374     { echo "$as_me:$LINENO: result: none needed" >&5
3375 echo "${ECHO_T}none needed" >&6; } ;;
3376   xno)
3377     { echo "$as_me:$LINENO: result: unsupported" >&5
3378 echo "${ECHO_T}unsupported" >&6; } ;;
3379   *)
3380     CC="$CC $ac_cv_prog_cc_c89"
3381     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3382 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3383 esac
3384
3385
3386 ac_ext=c
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391
3392
3393 ac_ext=c
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3399 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3400 # On Suns, sometimes $CPP names a directory.
3401 if test -n "$CPP" && test -d "$CPP"; then
3402   CPP=
3403 fi
3404 if test -z "$CPP"; then
3405   if test "${ac_cv_prog_CPP+set}" = set; then
3406   echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408       # Double quotes because CPP needs to be expanded
3409     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3410     do
3411       ac_preproc_ok=false
3412 for ac_c_preproc_warn_flag in '' yes
3413 do
3414   # Use a header file that comes with gcc, so configuring glibc
3415   # with a fresh cross-compiler works.
3416   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3417   # <limits.h> exists even on freestanding compilers.
3418   # On the NeXT, cc -E runs the code through the compiler's parser,
3419   # not just through cpp. "Syntax error" is here to catch this case.
3420   cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h.  */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h.  */
3426 #ifdef __STDC__
3427 # include <limits.h>
3428 #else
3429 # include <assert.h>
3430 #endif
3431                      Syntax error
3432 _ACEOF
3433 if { (ac_try="$ac_cpp conftest.$ac_ext"
3434 case "(($ac_try" in
3435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436   *) ac_try_echo=$ac_try;;
3437 esac
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440   ac_status=$?
3441   grep -v '^ *+' conftest.er1 >conftest.err
3442   rm -f conftest.er1
3443   cat conftest.err >&5
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); } >/dev/null; then
3446   if test -s conftest.err; then
3447     ac_cpp_err=$ac_c_preproc_warn_flag
3448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449   else
3450     ac_cpp_err=
3451   fi
3452 else
3453   ac_cpp_err=yes
3454 fi
3455 if test -z "$ac_cpp_err"; then
3456   :
3457 else
3458   echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461   # Broken: fails on valid input.
3462 continue
3463 fi
3464
3465 rm -f conftest.err conftest.$ac_ext
3466
3467   # OK, works on sane cases.  Now check whether nonexistent headers
3468   # can be detected and how.
3469   cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h.  */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h.  */
3475 #include <ac_nonexistent.h>
3476 _ACEOF
3477 if { (ac_try="$ac_cpp conftest.$ac_ext"
3478 case "(($ac_try" in
3479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480   *) ac_try_echo=$ac_try;;
3481 esac
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3484   ac_status=$?
3485   grep -v '^ *+' conftest.er1 >conftest.err
3486   rm -f conftest.er1
3487   cat conftest.err >&5
3488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489   (exit $ac_status); } >/dev/null; then
3490   if test -s conftest.err; then
3491     ac_cpp_err=$ac_c_preproc_warn_flag
3492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493   else
3494     ac_cpp_err=
3495   fi
3496 else
3497   ac_cpp_err=yes
3498 fi
3499 if test -z "$ac_cpp_err"; then
3500   # Broken: success on invalid input.
3501 continue
3502 else
3503   echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506   # Passes both tests.
3507 ac_preproc_ok=:
3508 break
3509 fi
3510
3511 rm -f conftest.err conftest.$ac_ext
3512
3513 done
3514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515 rm -f conftest.err conftest.$ac_ext
3516 if $ac_preproc_ok; then
3517   break
3518 fi
3519
3520     done
3521     ac_cv_prog_CPP=$CPP
3522
3523 fi
3524   CPP=$ac_cv_prog_CPP
3525 else
3526   ac_cv_prog_CPP=$CPP
3527 fi
3528 { echo "$as_me:$LINENO: result: $CPP" >&5
3529 echo "${ECHO_T}$CPP" >&6; }
3530 ac_preproc_ok=false
3531 for ac_c_preproc_warn_flag in '' yes
3532 do
3533   # Use a header file that comes with gcc, so configuring glibc
3534   # with a fresh cross-compiler works.
3535   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536   # <limits.h> exists even on freestanding compilers.
3537   # On the NeXT, cc -E runs the code through the compiler's parser,
3538   # not just through cpp. "Syntax error" is here to catch this case.
3539   cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h.  */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h.  */
3545 #ifdef __STDC__
3546 # include <limits.h>
3547 #else
3548 # include <assert.h>
3549 #endif
3550                      Syntax error
3551 _ACEOF
3552 if { (ac_try="$ac_cpp conftest.$ac_ext"
3553 case "(($ac_try" in
3554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555   *) ac_try_echo=$ac_try;;
3556 esac
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3559   ac_status=$?
3560   grep -v '^ *+' conftest.er1 >conftest.err
3561   rm -f conftest.er1
3562   cat conftest.err >&5
3563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564   (exit $ac_status); } >/dev/null; then
3565   if test -s conftest.err; then
3566     ac_cpp_err=$ac_c_preproc_warn_flag
3567     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3568   else
3569     ac_cpp_err=
3570   fi
3571 else
3572   ac_cpp_err=yes
3573 fi
3574 if test -z "$ac_cpp_err"; then
3575   :
3576 else
3577   echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3579
3580   # Broken: fails on valid input.
3581 continue
3582 fi
3583
3584 rm -f conftest.err conftest.$ac_ext
3585
3586   # OK, works on sane cases.  Now check whether nonexistent headers
3587   # can be detected and how.
3588   cat >conftest.$ac_ext <<_ACEOF
3589 /* confdefs.h.  */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h.  */
3594 #include <ac_nonexistent.h>
3595 _ACEOF
3596 if { (ac_try="$ac_cpp conftest.$ac_ext"
3597 case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603   ac_status=$?
3604   grep -v '^ *+' conftest.er1 >conftest.err
3605   rm -f conftest.er1
3606   cat conftest.err >&5
3607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608   (exit $ac_status); } >/dev/null; then
3609   if test -s conftest.err; then
3610     ac_cpp_err=$ac_c_preproc_warn_flag
3611     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612   else
3613     ac_cpp_err=
3614   fi
3615 else
3616   ac_cpp_err=yes
3617 fi
3618 if test -z "$ac_cpp_err"; then
3619   # Broken: success on invalid input.
3620 continue
3621 else
3622   echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3624
3625   # Passes both tests.
3626 ac_preproc_ok=:
3627 break
3628 fi
3629
3630 rm -f conftest.err conftest.$ac_ext
3631
3632 done
3633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3634 rm -f conftest.err conftest.$ac_ext
3635 if $ac_preproc_ok; then
3636   :
3637 else
3638   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3639 See \`config.log' for more details." >&5
3640 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3641 See \`config.log' for more details." >&2;}
3642    { (exit 1); exit 1; }; }
3643 fi
3644
3645 ac_ext=c
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650
3651
3652 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3653 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655   echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657   # Extract the first word of "grep ggrep" to use in msg output
3658 if test -z "$GREP"; then
3659 set dummy grep ggrep; ac_prog_name=$2
3660 if test "${ac_cv_path_GREP+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   ac_path_GREP_found=false
3664 # Loop through the user's path and test for each of PROGNAME-LIST
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3667 do
3668   IFS=$as_save_IFS
3669   test -z "$as_dir" && as_dir=.
3670   for ac_prog in grep ggrep; do
3671   for ac_exec_ext in '' $ac_executable_extensions; do
3672     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3673     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3674     # Check for GNU ac_path_GREP and select it if it is found.
3675   # Check for GNU $ac_path_GREP
3676 case `"$ac_path_GREP" --version 2>&1` in
3677 *GNU*)
3678   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3679 *)
3680   ac_count=0
3681   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3682   while :
3683   do
3684     cat "conftest.in" "conftest.in" >"conftest.tmp"
3685     mv "conftest.tmp" "conftest.in"
3686     cp "conftest.in" "conftest.nl"
3687     echo 'GREP' >> "conftest.nl"
3688     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3689     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3690     ac_count=`expr $ac_count + 1`
3691     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3692       # Best one so far, save it but keep looking for a better one
3693       ac_cv_path_GREP="$ac_path_GREP"
3694       ac_path_GREP_max=$ac_count
3695     fi
3696     # 10*(2^10) chars as input seems more than enough
3697     test $ac_count -gt 10 && break
3698   done
3699   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3700 esac
3701
3702
3703     $ac_path_GREP_found && break 3
3704   done
3705 done
3706
3707 done
3708 IFS=$as_save_IFS
3709
3710
3711 fi
3712
3713 GREP="$ac_cv_path_GREP"
3714 if test -z "$GREP"; then
3715   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3716 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3717    { (exit 1); exit 1; }; }
3718 fi
3719
3720 else
3721   ac_cv_path_GREP=$GREP
3722 fi
3723
3724
3725 fi
3726 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3727 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3728  GREP="$ac_cv_path_GREP"
3729
3730
3731 { echo "$as_me:$LINENO: checking for egrep" >&5
3732 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3733 if test "${ac_cv_path_EGREP+set}" = set; then
3734   echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3737    then ac_cv_path_EGREP="$GREP -E"
3738    else
3739      # Extract the first word of "egrep" to use in msg output
3740 if test -z "$EGREP"; then
3741 set dummy egrep; ac_prog_name=$2
3742 if test "${ac_cv_path_EGREP+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   ac_path_EGREP_found=false
3746 # Loop through the user's path and test for each of PROGNAME-LIST
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3749 do
3750   IFS=$as_save_IFS
3751   test -z "$as_dir" && as_dir=.
3752   for ac_prog in egrep; do
3753   for ac_exec_ext in '' $ac_executable_extensions; do
3754     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3755     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3756     # Check for GNU ac_path_EGREP and select it if it is found.
3757   # Check for GNU $ac_path_EGREP
3758 case `"$ac_path_EGREP" --version 2>&1` in
3759 *GNU*)
3760   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3761 *)
3762   ac_count=0
3763   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3764   while :
3765   do
3766     cat "conftest.in" "conftest.in" >"conftest.tmp"
3767     mv "conftest.tmp" "conftest.in"
3768     cp "conftest.in" "conftest.nl"
3769     echo 'EGREP' >> "conftest.nl"
3770     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3771     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3772     ac_count=`expr $ac_count + 1`
3773     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3774       # Best one so far, save it but keep looking for a better one
3775       ac_cv_path_EGREP="$ac_path_EGREP"
3776       ac_path_EGREP_max=$ac_count
3777     fi
3778     # 10*(2^10) chars as input seems more than enough
3779     test $ac_count -gt 10 && break
3780   done
3781   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3782 esac
3783
3784
3785     $ac_path_EGREP_found && break 3
3786   done
3787 done
3788
3789 done
3790 IFS=$as_save_IFS
3791
3792
3793 fi
3794
3795 EGREP="$ac_cv_path_EGREP"
3796 if test -z "$EGREP"; then
3797   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3798 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3799    { (exit 1); exit 1; }; }
3800 fi
3801
3802 else
3803   ac_cv_path_EGREP=$EGREP
3804 fi
3805
3806
3807    fi
3808 fi
3809 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3810 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3811  EGREP="$ac_cv_path_EGREP"
3812
3813
3814 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3815 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3816 if test "${ac_cv_header_stdc+set}" = set; then
3817   echo $ECHO_N "(cached) $ECHO_C" >&6
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 <stdlib.h>
3826 #include <stdarg.h>
3827 #include <string.h>
3828 #include <float.h>
3829
3830 int
3831 main ()
3832 {
3833
3834   ;
3835   return 0;
3836 }
3837 _ACEOF
3838 rm -f conftest.$ac_objext
3839 if { (ac_try="$ac_compile"
3840 case "(($ac_try" in
3841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842   *) ac_try_echo=$ac_try;;
3843 esac
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845   (eval "$ac_compile") 2>conftest.er1
3846   ac_status=$?
3847   grep -v '^ *+' conftest.er1 >conftest.err
3848   rm -f conftest.er1
3849   cat conftest.err >&5
3850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851   (exit $ac_status); } &&
3852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3853   { (case "(($ac_try" in
3854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855   *) ac_try_echo=$ac_try;;
3856 esac
3857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858   (eval "$ac_try") 2>&5
3859   ac_status=$?
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); }; } &&
3862          { ac_try='test -s conftest.$ac_objext'
3863   { (case "(($ac_try" in
3864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865   *) ac_try_echo=$ac_try;;
3866 esac
3867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3868   (eval "$ac_try") 2>&5
3869   ac_status=$?
3870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871   (exit $ac_status); }; }; then
3872   ac_cv_header_stdc=yes
3873 else
3874   echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877         ac_cv_header_stdc=no
3878 fi
3879
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881
3882 if test $ac_cv_header_stdc = yes; then
3883   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3884   cat >conftest.$ac_ext <<_ACEOF
3885 /* confdefs.h.  */
3886 _ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h.  */
3890 #include <string.h>
3891
3892 _ACEOF
3893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3894   $EGREP "memchr" >/dev/null 2>&1; then
3895   :
3896 else
3897   ac_cv_header_stdc=no
3898 fi
3899 rm -f conftest*
3900
3901 fi
3902
3903 if test $ac_cv_header_stdc = yes; then
3904   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3905   cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h.  */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h.  */
3911 #include <stdlib.h>
3912
3913 _ACEOF
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915   $EGREP "free" >/dev/null 2>&1; then
3916   :
3917 else
3918   ac_cv_header_stdc=no
3919 fi
3920 rm -f conftest*
3921
3922 fi
3923
3924 if test $ac_cv_header_stdc = yes; then
3925   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3926   if test "$cross_compiling" = yes; then
3927   :
3928 else
3929   cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h.  */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h.  */
3935 #include <ctype.h>
3936 #include <stdlib.h>
3937 #if ((' ' & 0x0FF) == 0x020)
3938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3940 #else
3941 # define ISLOWER(c) \
3942                    (('a' <= (c) && (c) <= 'i') \
3943                      || ('j' <= (c) && (c) <= 'r') \
3944                      || ('s' <= (c) && (c) <= 'z'))
3945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3946 #endif
3947
3948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3949 int
3950 main ()
3951 {
3952   int i;
3953   for (i = 0; i < 256; i++)
3954     if (XOR (islower (i), ISLOWER (i))
3955         || toupper (i) != TOUPPER (i))
3956       return 2;
3957   return 0;
3958 }
3959 _ACEOF
3960 rm -f conftest$ac_exeext
3961 if { (ac_try="$ac_link"
3962 case "(($ac_try" in
3963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964   *) ac_try_echo=$ac_try;;
3965 esac
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967   (eval "$ac_link") 2>&5
3968   ac_status=$?
3969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3971   { (case "(($ac_try" in
3972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973   *) ac_try_echo=$ac_try;;
3974 esac
3975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976   (eval "$ac_try") 2>&5
3977   ac_status=$?
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); }; }; then
3980   :
3981 else
3982   echo "$as_me: program exited with status $ac_status" >&5
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3985
3986 ( exit $ac_status )
3987 ac_cv_header_stdc=no
3988 fi
3989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3990 fi
3991
3992
3993 fi
3994 fi
3995 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3996 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3997 if test $ac_cv_header_stdc = yes; then
3998
3999 cat >>confdefs.h <<\_ACEOF
4000 #define STDC_HEADERS 1
4001 _ACEOF
4002
4003 fi
4004
4005 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4016                   inttypes.h stdint.h unistd.h
4017 do
4018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   cat >conftest.$ac_ext <<_ACEOF
4025 /* confdefs.h.  */
4026 _ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h.  */
4030 $ac_includes_default
4031
4032 #include <$ac_header>
4033 _ACEOF
4034 rm -f conftest.$ac_objext
4035 if { (ac_try="$ac_compile"
4036 case "(($ac_try" in
4037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038   *) ac_try_echo=$ac_try;;
4039 esac
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041   (eval "$ac_compile") 2>conftest.er1
4042   ac_status=$?
4043   grep -v '^ *+' conftest.er1 >conftest.err
4044   rm -f conftest.er1
4045   cat conftest.err >&5
4046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047   (exit $ac_status); } &&
4048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4049   { (case "(($ac_try" in
4050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051   *) ac_try_echo=$ac_try;;
4052 esac
4053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054   (eval "$ac_try") 2>&5
4055   ac_status=$?
4056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057   (exit $ac_status); }; } &&
4058          { ac_try='test -s conftest.$ac_objext'
4059   { (case "(($ac_try" in
4060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061   *) ac_try_echo=$ac_try;;
4062 esac
4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064   (eval "$ac_try") 2>&5
4065   ac_status=$?
4066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); }; }; then
4068   eval "$as_ac_Header=yes"
4069 else
4070   echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4072
4073         eval "$as_ac_Header=no"
4074 fi
4075
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077 fi
4078 ac_res=`eval echo '${'$as_ac_Header'}'`
4079                { echo "$as_me:$LINENO: result: $ac_res" >&5
4080 echo "${ECHO_T}$ac_res" >&6; }
4081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4082   cat >>confdefs.h <<_ACEOF
4083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4084 _ACEOF
4085
4086 fi
4087
4088 done
4089
4090
4091 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4092 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4093 if test "${ac_cv_c_bigendian+set}" = set; then
4094   echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096   # See if sys/param.h defines the BYTE_ORDER macro.
4097 cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h.  */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h.  */
4103 #include <sys/types.h>
4104 #include <sys/param.h>
4105
4106 int
4107 main ()
4108 {
4109 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4110  bogus endian macros
4111 #endif
4112
4113   ;
4114   return 0;
4115 }
4116 _ACEOF
4117 rm -f conftest.$ac_objext
4118 if { (ac_try="$ac_compile"
4119 case "(($ac_try" in
4120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121   *) ac_try_echo=$ac_try;;
4122 esac
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124   (eval "$ac_compile") 2>conftest.er1
4125   ac_status=$?
4126   grep -v '^ *+' conftest.er1 >conftest.err
4127   rm -f conftest.er1
4128   cat conftest.err >&5
4129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130   (exit $ac_status); } &&
4131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4132   { (case "(($ac_try" in
4133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134   *) ac_try_echo=$ac_try;;
4135 esac
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137   (eval "$ac_try") 2>&5
4138   ac_status=$?
4139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); }; } &&
4141          { ac_try='test -s conftest.$ac_objext'
4142   { (case "(($ac_try" in
4143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144   *) ac_try_echo=$ac_try;;
4145 esac
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147   (eval "$ac_try") 2>&5
4148   ac_status=$?
4149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); }; }; then
4151   # It does; now see whether it defined to BIG_ENDIAN or not.
4152 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h.  */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h.  */
4158 #include <sys/types.h>
4159 #include <sys/param.h>
4160
4161 int
4162 main ()
4163 {
4164 #if BYTE_ORDER != BIG_ENDIAN
4165  not big endian
4166 #endif
4167
4168   ;
4169   return 0;
4170 }
4171 _ACEOF
4172 rm -f conftest.$ac_objext
4173 if { (ac_try="$ac_compile"
4174 case "(($ac_try" in
4175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176   *) ac_try_echo=$ac_try;;
4177 esac
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179   (eval "$ac_compile") 2>conftest.er1
4180   ac_status=$?
4181   grep -v '^ *+' conftest.er1 >conftest.err
4182   rm -f conftest.er1
4183   cat conftest.err >&5
4184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); } &&
4186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4187   { (case "(($ac_try" in
4188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189   *) ac_try_echo=$ac_try;;
4190 esac
4191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192   (eval "$ac_try") 2>&5
4193   ac_status=$?
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); }; } &&
4196          { ac_try='test -s conftest.$ac_objext'
4197   { (case "(($ac_try" in
4198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199   *) ac_try_echo=$ac_try;;
4200 esac
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202   (eval "$ac_try") 2>&5
4203   ac_status=$?
4204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205   (exit $ac_status); }; }; then
4206   ac_cv_c_bigendian=yes
4207 else
4208   echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4210
4211         ac_cv_c_bigendian=no
4212 fi
4213
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 else
4216   echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4218
4219         # It does not; compile a test program.
4220 if test "$cross_compiling" = yes; then
4221   # try to guess the endianness by grepping values into an object file
4222   ac_cv_c_bigendian=unknown
4223   cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h.  */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h.  */
4229 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4230 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4231 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4232 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4233 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4234 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4235 int
4236 main ()
4237 {
4238  _ascii (); _ebcdic ();
4239   ;
4240   return 0;
4241 }
4242 _ACEOF
4243 rm -f conftest.$ac_objext
4244 if { (ac_try="$ac_compile"
4245 case "(($ac_try" in
4246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247   *) ac_try_echo=$ac_try;;
4248 esac
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250   (eval "$ac_compile") 2>conftest.er1
4251   ac_status=$?
4252   grep -v '^ *+' conftest.er1 >conftest.err
4253   rm -f conftest.er1
4254   cat conftest.err >&5
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); } &&
4257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4258   { (case "(($ac_try" in
4259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260   *) ac_try_echo=$ac_try;;
4261 esac
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263   (eval "$ac_try") 2>&5
4264   ac_status=$?
4265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266   (exit $ac_status); }; } &&
4267          { ac_try='test -s conftest.$ac_objext'
4268   { (case "(($ac_try" in
4269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270   *) ac_try_echo=$ac_try;;
4271 esac
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273   (eval "$ac_try") 2>&5
4274   ac_status=$?
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); }; }; then
4277   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4278   ac_cv_c_bigendian=yes
4279 fi
4280 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4281   if test "$ac_cv_c_bigendian" = unknown; then
4282     ac_cv_c_bigendian=no
4283   else
4284     # finding both strings is unlikely to happen, but who knows?
4285     ac_cv_c_bigendian=unknown
4286   fi
4287 fi
4288 else
4289   echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4291
4292
4293 fi
4294
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 else
4297   cat >conftest.$ac_ext <<_ACEOF
4298 /* confdefs.h.  */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h.  */
4303 $ac_includes_default
4304 int
4305 main ()
4306 {
4307
4308   /* Are we little or big endian?  From Harbison&Steele.  */
4309   union
4310   {
4311     long int l;
4312     char c[sizeof (long int)];
4313   } u;
4314   u.l = 1;
4315   return u.c[sizeof (long int) - 1] == 1;
4316
4317   ;
4318   return 0;
4319 }
4320 _ACEOF
4321 rm -f conftest$ac_exeext
4322 if { (ac_try="$ac_link"
4323 case "(($ac_try" in
4324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325   *) ac_try_echo=$ac_try;;
4326 esac
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328   (eval "$ac_link") 2>&5
4329   ac_status=$?
4330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4332   { (case "(($ac_try" in
4333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334   *) ac_try_echo=$ac_try;;
4335 esac
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337   (eval "$ac_try") 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }; }; then
4341   ac_cv_c_bigendian=no
4342 else
4343   echo "$as_me: program exited with status $ac_status" >&5
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4346
4347 ( exit $ac_status )
4348 ac_cv_c_bigendian=yes
4349 fi
4350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4351 fi
4352
4353
4354 fi
4355
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357 fi
4358 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4359 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4360 case $ac_cv_c_bigendian in
4361   yes)
4362     ENDIAN=big
4363  ;;
4364   no)
4365     ENDIAN=little
4366  ;;
4367   *)
4368     { { echo "$as_me:$LINENO: error: unknown endianness
4369 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4370 echo "$as_me: error: unknown endianness
4371 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4372    { (exit 1); exit 1; }; } ;;
4373 esac
4374
4375
4376 if test "$cross_compiling" = yes; then
4377   LLVM_CROSS_COMPILING=1
4378
4379
4380 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4381 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4382 if test "${ac_cv_build_exeext+set}" = set; then
4383   echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4386   ac_cv_build_exeext=.exe
4387 else
4388   ac_build_prefix=${build_alias}-
4389
4390   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4391 set dummy ${ac_build_prefix}gcc; ac_word=$2
4392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4395   echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397   if test -n "$BUILD_CC"; then
4398   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4399 else
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4402 do
4403   IFS=$as_save_IFS
4404   test -z "$as_dir" && as_dir=.
4405   for ac_exec_ext in '' $ac_executable_extensions; do
4406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4407     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409     break 2
4410   fi
4411 done
4412 done
4413 IFS=$as_save_IFS
4414
4415 fi
4416 fi
4417 BUILD_CC=$ac_cv_prog_BUILD_CC
4418 if test -n "$BUILD_CC"; then
4419   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4420 echo "${ECHO_T}$BUILD_CC" >&6; }
4421 else
4422   { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4424 fi
4425
4426
4427   if test -z "$BUILD_CC"; then
4428      # Extract the first word of "gcc", so it can be a program name with args.
4429 set dummy gcc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   if test -n "$BUILD_CC"; then
4436   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4440 do
4441   IFS=$as_save_IFS
4442   test -z "$as_dir" && as_dir=.
4443   for ac_exec_ext in '' $ac_executable_extensions; do
4444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445     ac_cv_prog_BUILD_CC="gcc"
4446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447     break 2
4448   fi
4449 done
4450 done
4451 IFS=$as_save_IFS
4452
4453 fi
4454 fi
4455 BUILD_CC=$ac_cv_prog_BUILD_CC
4456 if test -n "$BUILD_CC"; then
4457   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458 echo "${ECHO_T}$BUILD_CC" >&6; }
4459 else
4460   { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4462 fi
4463
4464
4465      if test -z "$BUILD_CC"; then
4466        # Extract the first word of "cc", so it can be a program name with args.
4467 set dummy cc; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471   echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473   if test -n "$BUILD_CC"; then
4474   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4475 else
4476   ac_prog_rejected=no
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480   IFS=$as_save_IFS
4481   test -z "$as_dir" && as_dir=.
4482   for ac_exec_ext in '' $ac_executable_extensions; do
4483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4484     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4485        ac_prog_rejected=yes
4486        continue
4487      fi
4488     ac_cv_prog_BUILD_CC="cc"
4489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493 done
4494 IFS=$as_save_IFS
4495
4496 if test $ac_prog_rejected = yes; then
4497   # We found a bogon in the path, so make sure we never use it.
4498   set dummy $ac_cv_prog_BUILD_CC
4499   shift
4500   if test $# != 0; then
4501     # We chose a different compiler from the bogus one.
4502     # However, it has the same basename, so the bogon will be chosen
4503     # first if we set BUILD_CC to just the basename; use the full file name.
4504     shift
4505     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4506   fi
4507 fi
4508 fi
4509 fi
4510 BUILD_CC=$ac_cv_prog_BUILD_CC
4511 if test -n "$BUILD_CC"; then
4512   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4513 echo "${ECHO_T}$BUILD_CC" >&6; }
4514 else
4515   { echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6; }
4517 fi
4518
4519
4520      fi
4521   fi
4522   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4523 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4524    { (exit 1); exit 1; }; }
4525   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4526   rm -f conftest*
4527   echo 'int main () { return 0; }' > conftest.$ac_ext
4528   ac_cv_build_exeext=
4529   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4530   (eval $ac_build_link) 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); }; then
4534     for file in conftest.*; do
4535       case $file in
4536       *.c | *.o | *.obj) ;;
4537       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4538       esac
4539     done
4540   else
4541     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4542 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4543    { (exit 1); exit 1; }; }
4544   fi
4545   rm -f conftest*
4546   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4547 fi
4548 fi
4549
4550 BUILD_EXEEXT=""
4551 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4552 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4553 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4554 ac_build_exeext=$BUILD_EXEEXT
4555
4556 else
4557   LLVM_CROSS_COMPILING=0
4558
4559 fi
4560
4561 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4562   cvsbuild="yes"
4563   optimize="no"
4564   CVSBUILD=CVSBUILD=1
4565
4566 else
4567   cvsbuild="no"
4568   optimize="yes"
4569 fi
4570
4571
4572 # Check whether --enable-optimized was given.
4573 if test "${enable_optimized+set}" = set; then
4574   enableval=$enable_optimized;
4575 else
4576   enableval=$optimize
4577 fi
4578
4579 if test ${enableval} = "no" ; then
4580   ENABLE_OPTIMIZED=
4581
4582 else
4583   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4584
4585 fi
4586
4587 # Check whether --enable-assertions was given.
4588 if test "${enable_assertions+set}" = set; then
4589   enableval=$enable_assertions;
4590 else
4591   enableval="yes"
4592 fi
4593
4594 if test ${enableval} = "yes" ; then
4595   DISABLE_ASSERTIONS=
4596
4597 else
4598   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4599
4600 fi
4601
4602 # Check whether --enable-expensive-checks was given.
4603 if test "${enable_expensive_checks+set}" = set; then
4604   enableval=$enable_expensive_checks;
4605 else
4606   enableval="no"
4607 fi
4608
4609 if test ${enableval} = "yes" ; then
4610   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4611
4612   EXPENSIVE_CHECKS=yes
4613
4614 else
4615   ENABLE_EXPENSIVE_CHECKS=
4616
4617   EXPENSIVE_CHECKS=no
4618
4619 fi
4620
4621 # Check whether --enable-debug-runtime was given.
4622 if test "${enable_debug_runtime+set}" = set; then
4623   enableval=$enable_debug_runtime;
4624 else
4625   enableval=no
4626 fi
4627
4628 if test ${enableval} = "no" ; then
4629   DEBUG_RUNTIME=
4630
4631 else
4632   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4633
4634 fi
4635
4636 # Check whether --enable-jit was given.
4637 if test "${enable_jit+set}" = set; then
4638   enableval=$enable_jit;
4639 else
4640   enableval=default
4641 fi
4642
4643 if test ${enableval} = "no"
4644 then
4645   JIT=
4646
4647 else
4648   case "$llvm_cv_target_arch" in
4649     x86)     TARGET_HAS_JIT=1
4650  ;;
4651     Sparc)   TARGET_HAS_JIT=0
4652  ;;
4653     PowerPC) TARGET_HAS_JIT=1
4654  ;;
4655     x86_64)  TARGET_HAS_JIT=1
4656  ;;
4657     Alpha)   TARGET_HAS_JIT=1
4658  ;;
4659     IA64)    TARGET_HAS_JIT=0
4660  ;;
4661     ARM)     TARGET_HAS_JIT=0
4662  ;;
4663     Mips)    TARGET_HAS_JIT=0
4664  ;;
4665     *)       TARGET_HAS_JIT=0
4666  ;;
4667   esac
4668 fi
4669
4670 # Check whether --enable-doxygen was given.
4671 if test "${enable_doxygen+set}" = set; then
4672   enableval=$enable_doxygen;
4673 else
4674   enableval=default
4675 fi
4676
4677 case "$enableval" in
4678   yes) ENABLE_DOXYGEN=1
4679  ;;
4680   no)  ENABLE_DOXYGEN=0
4681  ;;
4682   default) ENABLE_DOXYGEN=0
4683  ;;
4684   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4685 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4686    { (exit 1); exit 1; }; } ;;
4687 esac
4688
4689 # Check whether --enable-threads was given.
4690 if test "${enable_threads+set}" = set; then
4691   enableval=$enable_threads;
4692 else
4693   enableval=default
4694 fi
4695
4696 case "$enableval" in
4697   yes) ENABLE_THREADS=1
4698  ;;
4699   no)  ENABLE_THREADS=0
4700  ;;
4701   default) ENABLE_THREADS=1
4702  ;;
4703   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4704 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4705    { (exit 1); exit 1; }; } ;;
4706 esac
4707
4708 cat >>confdefs.h <<_ACEOF
4709 #define ENABLE_THREADS $ENABLE_THREADS
4710 _ACEOF
4711
4712
4713 # Check whether --enable-pic was given.
4714 if test "${enable_pic+set}" = set; then
4715   enableval=$enable_pic;
4716 else
4717   enableval=default
4718 fi
4719
4720 case "$enableval" in
4721   yes) ENABLE_PIC=1
4722  ;;
4723   no)  ENABLE_PIC=0
4724  ;;
4725   default) ENABLE_PIC=0
4726  ;;
4727   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4728 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4729    { (exit 1); exit 1; }; } ;;
4730 esac
4731
4732 cat >>confdefs.h <<_ACEOF
4733 #define ENABLE_PIC $ENABLE_PIC
4734 _ACEOF
4735
4736
4737 TARGETS_TO_BUILD=""
4738 # Check whether --enable-targets was given.
4739 if test "${enable_targets+set}" = set; then
4740   enableval=$enable_targets;
4741 else
4742   enableval=all
4743 fi
4744
4745 case "$enableval" in
4746   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU CBackend MSIL CppBackend" ;;
4747   host-only)
4748     case "$llvm_cv_target_arch" in
4749       x86)     TARGETS_TO_BUILD="X86" ;;
4750       x86_64)  TARGETS_TO_BUILD="X86" ;;
4751       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4752       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4753       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4754       IA64)    TARGETS_TO_BUILD="IA64" ;;
4755       ARM)     TARGETS_TO_BUILD="ARM" ;;
4756       Mips)    TARGETS_TO_BUILD="Mips" ;;
4757       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4758       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4759 echo "$as_me: error: Can not set target to build" >&2;}
4760    { (exit 1); exit 1; }; } ;;
4761     esac
4762     ;;
4763   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4764       case "$a_target" in
4765         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4766         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4767         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4768         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4769         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4770         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4771         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4772         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4773         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4774         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4775         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4776         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4777         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4778 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4779    { (exit 1); exit 1; }; } ;;
4780       esac
4781   done
4782   ;;
4783 esac
4784 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4785
4786
4787 # Check whether --enable-cbe-printf-a was given.
4788 if test "${enable_cbe_printf_a+set}" = set; then
4789   enableval=$enable_cbe_printf_a;
4790 else
4791   enableval=default
4792 fi
4793
4794 case "$enableval" in
4795   yes) ENABLE_CBE_PRINTF_A=1
4796  ;;
4797   no)  ENABLE_CBE_PRINTF_A=0
4798  ;;
4799   default)  ENABLE_CBE_PRINTF_A=1
4800  ;;
4801   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4802 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4803    { (exit 1); exit 1; }; } ;;
4804 esac
4805
4806 cat >>confdefs.h <<_ACEOF
4807 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4808 _ACEOF
4809
4810
4811
4812 # Check whether --with-llvmgccdir was given.
4813 if test "${with_llvmgccdir+set}" = set; then
4814   withval=$with_llvmgccdir;
4815 else
4816   withval=default
4817 fi
4818
4819 case "$withval" in
4820   default) WITH_LLVMGCCDIR=default ;;
4821   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4822   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4823 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4824    { (exit 1); exit 1; }; } ;;
4825 esac
4826
4827
4828 # Check whether --with-llvmgcc was given.
4829 if test "${with_llvmgcc+set}" = set; then
4830   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4831       WITH_LLVMGCCDIR=""
4832 fi
4833
4834
4835
4836 # Check whether --with-llvmgxx was given.
4837 if test "${with_llvmgxx+set}" = set; then
4838   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4839     WITH_LLVMGCCDIR=""
4840 fi
4841
4842
4843 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4844    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4845 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4846    { (exit 1); exit 1; }; };
4847 fi
4848
4849 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4850    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4851 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4852    { (exit 1); exit 1; }; };
4853 fi
4854
4855
4856 # Check whether --with-extra-options was given.
4857 if test "${with_extra_options+set}" = set; then
4858   withval=$with_extra_options;
4859 else
4860   withval=default
4861 fi
4862
4863 case "$withval" in
4864   default) EXTRA_OPTIONS= ;;
4865   *) EXTRA_OPTIONS=$withval ;;
4866 esac
4867 EXTRA_OPTIONS=$EXTRA_OPTIONS
4868
4869
4870 # Check whether --enable-bindings was given.
4871 if test "${enable_bindings+set}" = set; then
4872   enableval=$enable_bindings;
4873 else
4874   enableval=default
4875 fi
4876
4877 BINDINGS_TO_BUILD=""
4878 case "$enableval" in
4879   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4880   all ) BINDINGS_TO_BUILD="ocaml" ;;
4881   none | no) BINDINGS_TO_BUILD="" ;;
4882   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4883       case "$a_binding" in
4884         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4885         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4886 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4887    { (exit 1); exit 1; }; } ;;
4888       esac
4889   done
4890   ;;
4891 esac
4892
4893
4894 # Check whether --with-ocaml-libdir was given.
4895 if test "${with_ocaml_libdir+set}" = set; then
4896   withval=$with_ocaml_libdir;
4897 else
4898   withval=auto
4899 fi
4900
4901 case "$withval" in
4902   auto) with_ocaml_libdir="$withval" ;;
4903   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4904   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4905 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4906    { (exit 1); exit 1; }; } ;;
4907 esac
4908
4909
4910 ac_ext=c
4911 ac_cpp='$CPP $CPPFLAGS'
4912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4915 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4916 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4917 # On Suns, sometimes $CPP names a directory.
4918 if test -n "$CPP" && test -d "$CPP"; then
4919   CPP=
4920 fi
4921 if test -z "$CPP"; then
4922   if test "${ac_cv_prog_CPP+set}" = set; then
4923   echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925       # Double quotes because CPP needs to be expanded
4926     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4927     do
4928       ac_preproc_ok=false
4929 for ac_c_preproc_warn_flag in '' yes
4930 do
4931   # Use a header file that comes with gcc, so configuring glibc
4932   # with a fresh cross-compiler works.
4933   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4934   # <limits.h> exists even on freestanding compilers.
4935   # On the NeXT, cc -E runs the code through the compiler's parser,
4936   # not just through cpp. "Syntax error" is here to catch this case.
4937   cat >conftest.$ac_ext <<_ACEOF
4938 /* confdefs.h.  */
4939 _ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h.  */
4943 #ifdef __STDC__
4944 # include <limits.h>
4945 #else
4946 # include <assert.h>
4947 #endif
4948                      Syntax error
4949 _ACEOF
4950 if { (ac_try="$ac_cpp conftest.$ac_ext"
4951 case "(($ac_try" in
4952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953   *) ac_try_echo=$ac_try;;
4954 esac
4955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4956   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4957   ac_status=$?
4958   grep -v '^ *+' conftest.er1 >conftest.err
4959   rm -f conftest.er1
4960   cat conftest.err >&5
4961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962   (exit $ac_status); } >/dev/null; then
4963   if test -s conftest.err; then
4964     ac_cpp_err=$ac_c_preproc_warn_flag
4965     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4966   else
4967     ac_cpp_err=
4968   fi
4969 else
4970   ac_cpp_err=yes
4971 fi
4972 if test -z "$ac_cpp_err"; then
4973   :
4974 else
4975   echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4977
4978   # Broken: fails on valid input.
4979 continue
4980 fi
4981
4982 rm -f conftest.err conftest.$ac_ext
4983
4984   # OK, works on sane cases.  Now check whether nonexistent headers
4985   # can be detected and how.
4986   cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h.  */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h.  */
4992 #include <ac_nonexistent.h>
4993 _ACEOF
4994 if { (ac_try="$ac_cpp conftest.$ac_ext"
4995 case "(($ac_try" in
4996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997   *) ac_try_echo=$ac_try;;
4998 esac
4999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5001   ac_status=$?
5002   grep -v '^ *+' conftest.er1 >conftest.err
5003   rm -f conftest.er1
5004   cat conftest.err >&5
5005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006   (exit $ac_status); } >/dev/null; then
5007   if test -s conftest.err; then
5008     ac_cpp_err=$ac_c_preproc_warn_flag
5009     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5010   else
5011     ac_cpp_err=
5012   fi
5013 else
5014   ac_cpp_err=yes
5015 fi
5016 if test -z "$ac_cpp_err"; then
5017   # Broken: success on invalid input.
5018 continue
5019 else
5020   echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5022
5023   # Passes both tests.
5024 ac_preproc_ok=:
5025 break
5026 fi
5027
5028 rm -f conftest.err conftest.$ac_ext
5029
5030 done
5031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5032 rm -f conftest.err conftest.$ac_ext
5033 if $ac_preproc_ok; then
5034   break
5035 fi
5036
5037     done
5038     ac_cv_prog_CPP=$CPP
5039
5040 fi
5041   CPP=$ac_cv_prog_CPP
5042 else
5043   ac_cv_prog_CPP=$CPP
5044 fi
5045 { echo "$as_me:$LINENO: result: $CPP" >&5
5046 echo "${ECHO_T}$CPP" >&6; }
5047 ac_preproc_ok=false
5048 for ac_c_preproc_warn_flag in '' yes
5049 do
5050   # Use a header file that comes with gcc, so configuring glibc
5051   # with a fresh cross-compiler works.
5052   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5053   # <limits.h> exists even on freestanding compilers.
5054   # On the NeXT, cc -E runs the code through the compiler's parser,
5055   # not just through cpp. "Syntax error" is here to catch this case.
5056   cat >conftest.$ac_ext <<_ACEOF
5057 /* confdefs.h.  */
5058 _ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h.  */
5062 #ifdef __STDC__
5063 # include <limits.h>
5064 #else
5065 # include <assert.h>
5066 #endif
5067                      Syntax error
5068 _ACEOF
5069 if { (ac_try="$ac_cpp conftest.$ac_ext"
5070 case "(($ac_try" in
5071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072   *) ac_try_echo=$ac_try;;
5073 esac
5074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5075   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5076   ac_status=$?
5077   grep -v '^ *+' conftest.er1 >conftest.err
5078   rm -f conftest.er1
5079   cat conftest.err >&5
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); } >/dev/null; then
5082   if test -s conftest.err; then
5083     ac_cpp_err=$ac_c_preproc_warn_flag
5084     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5085   else
5086     ac_cpp_err=
5087   fi
5088 else
5089   ac_cpp_err=yes
5090 fi
5091 if test -z "$ac_cpp_err"; then
5092   :
5093 else
5094   echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5096
5097   # Broken: fails on valid input.
5098 continue
5099 fi
5100
5101 rm -f conftest.err conftest.$ac_ext
5102
5103   # OK, works on sane cases.  Now check whether nonexistent headers
5104   # can be detected and how.
5105   cat >conftest.$ac_ext <<_ACEOF
5106 /* confdefs.h.  */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h.  */
5111 #include <ac_nonexistent.h>
5112 _ACEOF
5113 if { (ac_try="$ac_cpp conftest.$ac_ext"
5114 case "(($ac_try" in
5115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116   *) ac_try_echo=$ac_try;;
5117 esac
5118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5119   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5120   ac_status=$?
5121   grep -v '^ *+' conftest.er1 >conftest.err
5122   rm -f conftest.er1
5123   cat conftest.err >&5
5124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125   (exit $ac_status); } >/dev/null; then
5126   if test -s conftest.err; then
5127     ac_cpp_err=$ac_c_preproc_warn_flag
5128     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5129   else
5130     ac_cpp_err=
5131   fi
5132 else
5133   ac_cpp_err=yes
5134 fi
5135 if test -z "$ac_cpp_err"; then
5136   # Broken: success on invalid input.
5137 continue
5138 else
5139   echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5141
5142   # Passes both tests.
5143 ac_preproc_ok=:
5144 break
5145 fi
5146
5147 rm -f conftest.err conftest.$ac_ext
5148
5149 done
5150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5151 rm -f conftest.err conftest.$ac_ext
5152 if $ac_preproc_ok; then
5153   :
5154 else
5155   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5156 See \`config.log' for more details." >&5
5157 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5158 See \`config.log' for more details." >&2;}
5159    { (exit 1); exit 1; }; }
5160 fi
5161
5162 ac_ext=c
5163 ac_cpp='$CPP $CPPFLAGS'
5164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5167
5168 ac_ext=c
5169 ac_cpp='$CPP $CPPFLAGS'
5170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5173 if test -n "$ac_tool_prefix"; then
5174   for ac_prog in gcc
5175   do
5176     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5180 if test "${ac_cv_prog_CC+set}" = set; then
5181   echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183   if test -n "$CC"; then
5184   ac_cv_prog_CC="$CC" # Let the user override the test.
5185 else
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5188 do
5189   IFS=$as_save_IFS
5190   test -z "$as_dir" && as_dir=.
5191   for ac_exec_ext in '' $ac_executable_extensions; do
5192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5193     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195     break 2
5196   fi
5197 done
5198 done
5199 IFS=$as_save_IFS
5200
5201 fi
5202 fi
5203 CC=$ac_cv_prog_CC
5204 if test -n "$CC"; then
5205   { echo "$as_me:$LINENO: result: $CC" >&5
5206 echo "${ECHO_T}$CC" >&6; }
5207 else
5208   { echo "$as_me:$LINENO: result: no" >&5
5209 echo "${ECHO_T}no" >&6; }
5210 fi
5211
5212
5213     test -n "$CC" && break
5214   done
5215 fi
5216 if test -z "$CC"; then
5217   ac_ct_CC=$CC
5218   for ac_prog in gcc
5219 do
5220   # Extract the first word of "$ac_prog", so it can be a program name with args.
5221 set dummy $ac_prog; ac_word=$2
5222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5224 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5225   echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227   if test -n "$ac_ct_CC"; then
5228   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5229 else
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5232 do
5233   IFS=$as_save_IFS
5234   test -z "$as_dir" && as_dir=.
5235   for ac_exec_ext in '' $ac_executable_extensions; do
5236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5237     ac_cv_prog_ac_ct_CC="$ac_prog"
5238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239     break 2
5240   fi
5241 done
5242 done
5243 IFS=$as_save_IFS
5244
5245 fi
5246 fi
5247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5248 if test -n "$ac_ct_CC"; then
5249   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5250 echo "${ECHO_T}$ac_ct_CC" >&6; }
5251 else
5252   { echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6; }
5254 fi
5255
5256
5257   test -n "$ac_ct_CC" && break
5258 done
5259
5260   if test "x$ac_ct_CC" = x; then
5261     CC=""
5262   else
5263     case $cross_compiling:$ac_tool_warned in
5264 yes:)
5265 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5266 whose name does not start with the host triplet.  If you think this
5267 configuration is useful to you, please write to autoconf@gnu.org." >&5
5268 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5269 whose name does not start with the host triplet.  If you think this
5270 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5271 ac_tool_warned=yes ;;
5272 esac
5273     CC=$ac_ct_CC
5274   fi
5275 fi
5276
5277
5278 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5279 See \`config.log' for more details." >&5
5280 echo "$as_me: error: no acceptable C compiler found in \$PATH
5281 See \`config.log' for more details." >&2;}
5282    { (exit 1); exit 1; }; }
5283
5284 # Provide some information about the compiler.
5285 echo "$as_me:$LINENO: checking for C compiler version" >&5
5286 ac_compiler=`set X $ac_compile; echo $2`
5287 { (ac_try="$ac_compiler --version >&5"
5288 case "(($ac_try" in
5289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290   *) ac_try_echo=$ac_try;;
5291 esac
5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293   (eval "$ac_compiler --version >&5") 2>&5
5294   ac_status=$?
5295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); }
5297 { (ac_try="$ac_compiler -v >&5"
5298 case "(($ac_try" in
5299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300   *) ac_try_echo=$ac_try;;
5301 esac
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303   (eval "$ac_compiler -v >&5") 2>&5
5304   ac_status=$?
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); }
5307 { (ac_try="$ac_compiler -V >&5"
5308 case "(($ac_try" in
5309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310   *) ac_try_echo=$ac_try;;
5311 esac
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313   (eval "$ac_compiler -V >&5") 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); }
5317
5318 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5319 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5320 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5321   echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323   cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h.  */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h.  */
5329
5330 int
5331 main ()
5332 {
5333 #ifndef __GNUC__
5334        choke me
5335 #endif
5336
5337   ;
5338   return 0;
5339 }
5340 _ACEOF
5341 rm -f conftest.$ac_objext
5342 if { (ac_try="$ac_compile"
5343 case "(($ac_try" in
5344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345   *) ac_try_echo=$ac_try;;
5346 esac
5347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348   (eval "$ac_compile") 2>conftest.er1
5349   ac_status=$?
5350   grep -v '^ *+' conftest.er1 >conftest.err
5351   rm -f conftest.er1
5352   cat conftest.err >&5
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); } &&
5355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5356   { (case "(($ac_try" in
5357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358   *) ac_try_echo=$ac_try;;
5359 esac
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361   (eval "$ac_try") 2>&5
5362   ac_status=$?
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); }; } &&
5365          { ac_try='test -s conftest.$ac_objext'
5366   { (case "(($ac_try" in
5367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368   *) ac_try_echo=$ac_try;;
5369 esac
5370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371   (eval "$ac_try") 2>&5
5372   ac_status=$?
5373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374   (exit $ac_status); }; }; then
5375   ac_compiler_gnu=yes
5376 else
5377   echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5379
5380         ac_compiler_gnu=no
5381 fi
5382
5383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5385
5386 fi
5387 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5388 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5389 GCC=`test $ac_compiler_gnu = yes && echo yes`
5390 ac_test_CFLAGS=${CFLAGS+set}
5391 ac_save_CFLAGS=$CFLAGS
5392 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5393 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5394 if test "${ac_cv_prog_cc_g+set}" = set; then
5395   echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397   ac_save_c_werror_flag=$ac_c_werror_flag
5398    ac_c_werror_flag=yes
5399    ac_cv_prog_cc_g=no
5400    CFLAGS="-g"
5401    cat >conftest.$ac_ext <<_ACEOF
5402 /* confdefs.h.  */
5403 _ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h.  */
5407
5408 int
5409 main ()
5410 {
5411
5412   ;
5413   return 0;
5414 }
5415 _ACEOF
5416 rm -f conftest.$ac_objext
5417 if { (ac_try="$ac_compile"
5418 case "(($ac_try" in
5419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5420   *) ac_try_echo=$ac_try;;
5421 esac
5422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5423   (eval "$ac_compile") 2>conftest.er1
5424   ac_status=$?
5425   grep -v '^ *+' conftest.er1 >conftest.err
5426   rm -f conftest.er1
5427   cat conftest.err >&5
5428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429   (exit $ac_status); } &&
5430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5431   { (case "(($ac_try" in
5432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433   *) ac_try_echo=$ac_try;;
5434 esac
5435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5436   (eval "$ac_try") 2>&5
5437   ac_status=$?
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); }; } &&
5440          { ac_try='test -s conftest.$ac_objext'
5441   { (case "(($ac_try" in
5442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443   *) ac_try_echo=$ac_try;;
5444 esac
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446   (eval "$ac_try") 2>&5
5447   ac_status=$?
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); }; }; then
5450   ac_cv_prog_cc_g=yes
5451 else
5452   echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5454
5455         CFLAGS=""
5456       cat >conftest.$ac_ext <<_ACEOF
5457 /* confdefs.h.  */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h.  */
5462
5463 int
5464 main ()
5465 {
5466
5467   ;
5468   return 0;
5469 }
5470 _ACEOF
5471 rm -f conftest.$ac_objext
5472 if { (ac_try="$ac_compile"
5473 case "(($ac_try" in
5474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475   *) ac_try_echo=$ac_try;;
5476 esac
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478   (eval "$ac_compile") 2>conftest.er1
5479   ac_status=$?
5480   grep -v '^ *+' conftest.er1 >conftest.err
5481   rm -f conftest.er1
5482   cat conftest.err >&5
5483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484   (exit $ac_status); } &&
5485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5486   { (case "(($ac_try" in
5487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488   *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491   (eval "$ac_try") 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); }; } &&
5495          { ac_try='test -s conftest.$ac_objext'
5496   { (case "(($ac_try" in
5497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498   *) ac_try_echo=$ac_try;;
5499 esac
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501   (eval "$ac_try") 2>&5
5502   ac_status=$?
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); }; }; then
5505   :
5506 else
5507   echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5509
5510         ac_c_werror_flag=$ac_save_c_werror_flag
5511          CFLAGS="-g"
5512          cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h.  */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h.  */
5518
5519 int
5520 main ()
5521 {
5522
5523   ;
5524   return 0;
5525 }
5526 _ACEOF
5527 rm -f conftest.$ac_objext
5528 if { (ac_try="$ac_compile"
5529 case "(($ac_try" in
5530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531   *) ac_try_echo=$ac_try;;
5532 esac
5533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534   (eval "$ac_compile") 2>conftest.er1
5535   ac_status=$?
5536   grep -v '^ *+' conftest.er1 >conftest.err
5537   rm -f conftest.er1
5538   cat conftest.err >&5
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); } &&
5541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5542   { (case "(($ac_try" in
5543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544   *) ac_try_echo=$ac_try;;
5545 esac
5546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5547   (eval "$ac_try") 2>&5
5548   ac_status=$?
5549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550   (exit $ac_status); }; } &&
5551          { ac_try='test -s conftest.$ac_objext'
5552   { (case "(($ac_try" in
5553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554   *) ac_try_echo=$ac_try;;
5555 esac
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557   (eval "$ac_try") 2>&5
5558   ac_status=$?
5559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560   (exit $ac_status); }; }; then
5561   ac_cv_prog_cc_g=yes
5562 else
5563   echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5565
5566
5567 fi
5568
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 fi
5571
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 fi
5574
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576    ac_c_werror_flag=$ac_save_c_werror_flag
5577 fi
5578 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5579 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5580 if test "$ac_test_CFLAGS" = set; then
5581   CFLAGS=$ac_save_CFLAGS
5582 elif test $ac_cv_prog_cc_g = yes; then
5583   if test "$GCC" = yes; then
5584     CFLAGS="-g -O2"
5585   else
5586     CFLAGS="-g"
5587   fi
5588 else
5589   if test "$GCC" = yes; then
5590     CFLAGS="-O2"
5591   else
5592     CFLAGS=
5593   fi
5594 fi
5595 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5596 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5597 if test "${ac_cv_prog_cc_c89+set}" = set; then
5598   echo $ECHO_N "(cached) $ECHO_C" >&6
5599 else
5600   ac_cv_prog_cc_c89=no
5601 ac_save_CC=$CC
5602 cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h.  */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h.  */
5608 #include <stdarg.h>
5609 #include <stdio.h>
5610 #include <sys/types.h>
5611 #include <sys/stat.h>
5612 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5613 struct buf { int x; };
5614 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5615 static char *e (p, i)
5616      char **p;
5617      int i;
5618 {
5619   return p[i];
5620 }
5621 static char *f (char * (*g) (char **, int), char **p, ...)
5622 {
5623   char *s;
5624   va_list v;
5625   va_start (v,p);
5626   s = g (p, va_arg (v,int));
5627   va_end (v);
5628   return s;
5629 }
5630
5631 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5632    function prototypes and stuff, but not '\xHH' hex character constants.
5633    These don't provoke an error unfortunately, instead are silently treated
5634    as 'x'.  The following induces an error, until -std is added to get
5635    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5636    array size at least.  It's necessary to write '\x00'==0 to get something
5637    that's true only with -std.  */
5638 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5639
5640 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5641    inside strings and character constants.  */
5642 #define FOO(x) 'x'
5643 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5644
5645 int test (int i, double x);
5646 struct s1 {int (*f) (int a);};
5647 struct s2 {int (*f) (double a);};
5648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5649 int argc;
5650 char **argv;
5651 int
5652 main ()
5653 {
5654 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5655   ;
5656   return 0;
5657 }
5658 _ACEOF
5659 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5660         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5661 do
5662   CC="$ac_save_CC $ac_arg"
5663   rm -f conftest.$ac_objext
5664 if { (ac_try="$ac_compile"
5665 case "(($ac_try" in
5666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667   *) ac_try_echo=$ac_try;;
5668 esac
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670   (eval "$ac_compile") 2>conftest.er1
5671   ac_status=$?
5672   grep -v '^ *+' conftest.er1 >conftest.err
5673   rm -f conftest.er1
5674   cat conftest.err >&5
5675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676   (exit $ac_status); } &&
5677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5678   { (case "(($ac_try" in
5679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680   *) ac_try_echo=$ac_try;;
5681 esac
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683   (eval "$ac_try") 2>&5
5684   ac_status=$?
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); }; } &&
5687          { ac_try='test -s conftest.$ac_objext'
5688   { (case "(($ac_try" in
5689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690   *) ac_try_echo=$ac_try;;
5691 esac
5692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693   (eval "$ac_try") 2>&5
5694   ac_status=$?
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); }; }; then
5697   ac_cv_prog_cc_c89=$ac_arg
5698 else
5699   echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5701
5702
5703 fi
5704
5705 rm -f core conftest.err conftest.$ac_objext
5706   test "x$ac_cv_prog_cc_c89" != "xno" && break
5707 done
5708 rm -f conftest.$ac_ext
5709 CC=$ac_save_CC
5710
5711 fi
5712 # AC_CACHE_VAL
5713 case "x$ac_cv_prog_cc_c89" in
5714   x)
5715     { echo "$as_me:$LINENO: result: none needed" >&5
5716 echo "${ECHO_T}none needed" >&6; } ;;
5717   xno)
5718     { echo "$as_me:$LINENO: result: unsupported" >&5
5719 echo "${ECHO_T}unsupported" >&6; } ;;
5720   *)
5721     CC="$CC $ac_cv_prog_cc_c89"
5722     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5723 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5724 esac
5725
5726
5727 ac_ext=c
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5732
5733 ac_ext=cpp
5734 ac_cpp='$CXXCPP $CPPFLAGS'
5735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5738 if test -z "$CXX"; then
5739   if test -n "$CCC"; then
5740     CXX=$CCC
5741   else
5742     if test -n "$ac_tool_prefix"; then
5743   for ac_prog in g++
5744   do
5745     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5746 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5749 if test "${ac_cv_prog_CXX+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752   if test -n "$CXX"; then
5753   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758   IFS=$as_save_IFS
5759   test -z "$as_dir" && as_dir=.
5760   for ac_exec_ext in '' $ac_executable_extensions; do
5761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5762     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764     break 2
5765   fi
5766 done
5767 done
5768 IFS=$as_save_IFS
5769
5770 fi
5771 fi
5772 CXX=$ac_cv_prog_CXX
5773 if test -n "$CXX"; then
5774   { echo "$as_me:$LINENO: result: $CXX" >&5
5775 echo "${ECHO_T}$CXX" >&6; }
5776 else
5777   { echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6; }
5779 fi
5780
5781
5782     test -n "$CXX" && break
5783   done
5784 fi
5785 if test -z "$CXX"; then
5786   ac_ct_CXX=$CXX
5787   for ac_prog in g++
5788 do
5789   # Extract the first word of "$ac_prog", so it can be a program name with args.
5790 set dummy $ac_prog; ac_word=$2
5791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5793 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5794   echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796   if test -n "$ac_ct_CXX"; then
5797   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804   for ac_exec_ext in '' $ac_executable_extensions; do
5805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5806     ac_cv_prog_ac_ct_CXX="$ac_prog"
5807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808     break 2
5809   fi
5810 done
5811 done
5812 IFS=$as_save_IFS
5813
5814 fi
5815 fi
5816 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5817 if test -n "$ac_ct_CXX"; then
5818   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5819 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5820 else
5821   { echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6; }
5823 fi
5824
5825
5826   test -n "$ac_ct_CXX" && break
5827 done
5828
5829   if test "x$ac_ct_CXX" = x; then
5830     CXX="g++"
5831   else
5832     case $cross_compiling:$ac_tool_warned in
5833 yes:)
5834 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5835 whose name does not start with the host triplet.  If you think this
5836 configuration is useful to you, please write to autoconf@gnu.org." >&5
5837 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5838 whose name does not start with the host triplet.  If you think this
5839 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5840 ac_tool_warned=yes ;;
5841 esac
5842     CXX=$ac_ct_CXX
5843   fi
5844 fi
5845
5846   fi
5847 fi
5848 # Provide some information about the compiler.
5849 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5850 ac_compiler=`set X $ac_compile; echo $2`
5851 { (ac_try="$ac_compiler --version >&5"
5852 case "(($ac_try" in
5853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854   *) ac_try_echo=$ac_try;;
5855 esac
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857   (eval "$ac_compiler --version >&5") 2>&5
5858   ac_status=$?
5859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860   (exit $ac_status); }
5861 { (ac_try="$ac_compiler -v >&5"
5862 case "(($ac_try" in
5863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864   *) ac_try_echo=$ac_try;;
5865 esac
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867   (eval "$ac_compiler -v >&5") 2>&5
5868   ac_status=$?
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); }
5871 { (ac_try="$ac_compiler -V >&5"
5872 case "(($ac_try" in
5873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874   *) ac_try_echo=$ac_try;;
5875 esac
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877   (eval "$ac_compiler -V >&5") 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }
5881
5882 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5883 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5884 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5885   echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887   cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h.  */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h.  */
5893
5894 int
5895 main ()
5896 {
5897 #ifndef __GNUC__
5898        choke me
5899 #endif
5900
5901   ;
5902   return 0;
5903 }
5904 _ACEOF
5905 rm -f conftest.$ac_objext
5906 if { (ac_try="$ac_compile"
5907 case "(($ac_try" in
5908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909   *) ac_try_echo=$ac_try;;
5910 esac
5911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912   (eval "$ac_compile") 2>conftest.er1
5913   ac_status=$?
5914   grep -v '^ *+' conftest.er1 >conftest.err
5915   rm -f conftest.er1
5916   cat conftest.err >&5
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); } &&
5919          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5920   { (case "(($ac_try" in
5921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922   *) ac_try_echo=$ac_try;;
5923 esac
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925   (eval "$ac_try") 2>&5
5926   ac_status=$?
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); }; } &&
5929          { ac_try='test -s conftest.$ac_objext'
5930   { (case "(($ac_try" in
5931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932   *) ac_try_echo=$ac_try;;
5933 esac
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935   (eval "$ac_try") 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); }; }; then
5939   ac_compiler_gnu=yes
5940 else
5941   echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5943
5944         ac_compiler_gnu=no
5945 fi
5946
5947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5948 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5949
5950 fi
5951 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5952 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5953 GXX=`test $ac_compiler_gnu = yes && echo yes`
5954 ac_test_CXXFLAGS=${CXXFLAGS+set}
5955 ac_save_CXXFLAGS=$CXXFLAGS
5956 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5957 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5958 if test "${ac_cv_prog_cxx_g+set}" = set; then
5959   echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5962    ac_cxx_werror_flag=yes
5963    ac_cv_prog_cxx_g=no
5964    CXXFLAGS="-g"
5965    cat >conftest.$ac_ext <<_ACEOF
5966 /* confdefs.h.  */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h.  */
5971
5972 int
5973 main ()
5974 {
5975
5976   ;
5977   return 0;
5978 }
5979 _ACEOF
5980 rm -f conftest.$ac_objext
5981 if { (ac_try="$ac_compile"
5982 case "(($ac_try" in
5983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984   *) ac_try_echo=$ac_try;;
5985 esac
5986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987   (eval "$ac_compile") 2>conftest.er1
5988   ac_status=$?
5989   grep -v '^ *+' conftest.er1 >conftest.err
5990   rm -f conftest.er1
5991   cat conftest.err >&5
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); } &&
5994          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5995   { (case "(($ac_try" in
5996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997   *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000   (eval "$ac_try") 2>&5
6001   ac_status=$?
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); }; } &&
6004          { ac_try='test -s conftest.$ac_objext'
6005   { (case "(($ac_try" in
6006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007   *) ac_try_echo=$ac_try;;
6008 esac
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010   (eval "$ac_try") 2>&5
6011   ac_status=$?
6012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); }; }; then
6014   ac_cv_prog_cxx_g=yes
6015 else
6016   echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6018
6019         CXXFLAGS=""
6020       cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h.  */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h.  */
6026
6027 int
6028 main ()
6029 {
6030
6031   ;
6032   return 0;
6033 }
6034 _ACEOF
6035 rm -f conftest.$ac_objext
6036 if { (ac_try="$ac_compile"
6037 case "(($ac_try" in
6038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039   *) ac_try_echo=$ac_try;;
6040 esac
6041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042   (eval "$ac_compile") 2>conftest.er1
6043   ac_status=$?
6044   grep -v '^ *+' conftest.er1 >conftest.err
6045   rm -f conftest.er1
6046   cat conftest.err >&5
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); } &&
6049          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6050   { (case "(($ac_try" in
6051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052   *) ac_try_echo=$ac_try;;
6053 esac
6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055   (eval "$ac_try") 2>&5
6056   ac_status=$?
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); }; } &&
6059          { ac_try='test -s conftest.$ac_objext'
6060   { (case "(($ac_try" in
6061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062   *) ac_try_echo=$ac_try;;
6063 esac
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065   (eval "$ac_try") 2>&5
6066   ac_status=$?
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); }; }; then
6069   :
6070 else
6071   echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6073
6074         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6075          CXXFLAGS="-g"
6076          cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h.  */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h.  */
6082
6083 int
6084 main ()
6085 {
6086
6087   ;
6088   return 0;
6089 }
6090 _ACEOF
6091 rm -f conftest.$ac_objext
6092 if { (ac_try="$ac_compile"
6093 case "(($ac_try" in
6094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095   *) ac_try_echo=$ac_try;;
6096 esac
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098   (eval "$ac_compile") 2>conftest.er1
6099   ac_status=$?
6100   grep -v '^ *+' conftest.er1 >conftest.err
6101   rm -f conftest.er1
6102   cat conftest.err >&5
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); } &&
6105          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6106   { (case "(($ac_try" in
6107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108   *) ac_try_echo=$ac_try;;
6109 esac
6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111   (eval "$ac_try") 2>&5
6112   ac_status=$?
6113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114   (exit $ac_status); }; } &&
6115          { ac_try='test -s conftest.$ac_objext'
6116   { (case "(($ac_try" in
6117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118   *) ac_try_echo=$ac_try;;
6119 esac
6120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121   (eval "$ac_try") 2>&5
6122   ac_status=$?
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); }; }; then
6125   ac_cv_prog_cxx_g=yes
6126 else
6127   echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6129
6130
6131 fi
6132
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 fi
6135
6136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137 fi
6138
6139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6140    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6141 fi
6142 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6143 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6144 if test "$ac_test_CXXFLAGS" = set; then
6145   CXXFLAGS=$ac_save_CXXFLAGS
6146 elif test $ac_cv_prog_cxx_g = yes; then
6147   if test "$GXX" = yes; then
6148     CXXFLAGS="-g -O2"
6149   else
6150     CXXFLAGS="-g"
6151   fi
6152 else
6153   if test "$GXX" = yes; then
6154     CXXFLAGS="-O2"
6155   else
6156     CXXFLAGS=
6157   fi
6158 fi
6159 ac_ext=c
6160 ac_cpp='$CPP $CPPFLAGS'
6161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6164
6165 { echo "$as_me:$LINENO: checking " >&5
6166 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6167 if test "${ac_cv_has_flex+set}" = set; then
6168   echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170   for ac_prog in flex lex
6171 do
6172   # Extract the first word of "$ac_prog", so it can be a program name with args.
6173 set dummy $ac_prog; ac_word=$2
6174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6176 if test "${ac_cv_prog_LEX+set}" = set; then
6177   echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179   if test -n "$LEX"; then
6180   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6181 else
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH
6184 do
6185   IFS=$as_save_IFS
6186   test -z "$as_dir" && as_dir=.
6187   for ac_exec_ext in '' $ac_executable_extensions; do
6188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6189     ac_cv_prog_LEX="$ac_prog"
6190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6191     break 2
6192   fi
6193 done
6194 done
6195 IFS=$as_save_IFS
6196
6197 fi
6198 fi
6199 LEX=$ac_cv_prog_LEX
6200 if test -n "$LEX"; then
6201   { echo "$as_me:$LINENO: result: $LEX" >&5
6202 echo "${ECHO_T}$LEX" >&6; }
6203 else
6204   { echo "$as_me:$LINENO: result: no" >&5
6205 echo "${ECHO_T}no" >&6; }
6206 fi
6207
6208
6209   test -n "$LEX" && break
6210 done
6211 test -n "$LEX" || LEX=":"
6212
6213 if test -z "$LEXLIB"
6214 then
6215   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6216 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6217 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6218   echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220   ac_check_lib_save_LIBS=$LIBS
6221 LIBS="-lfl  $LIBS"
6222 cat >conftest.$ac_ext <<_ACEOF
6223 /* confdefs.h.  */
6224 _ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h.  */
6228
6229 /* Override any GCC internal prototype to avoid an error.
6230    Use char because int might match the return type of a GCC
6231    builtin and then its argument prototype would still apply.  */
6232 #ifdef __cplusplus
6233 extern "C"
6234 #endif
6235 char yywrap ();
6236 int
6237 main ()
6238 {
6239 return yywrap ();
6240   ;
6241   return 0;
6242 }
6243 _ACEOF
6244 rm -f conftest.$ac_objext conftest$ac_exeext
6245 if { (ac_try="$ac_link"
6246 case "(($ac_try" in
6247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248   *) ac_try_echo=$ac_try;;
6249 esac
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251   (eval "$ac_link") 2>conftest.er1
6252   ac_status=$?
6253   grep -v '^ *+' conftest.er1 >conftest.err
6254   rm -f conftest.er1
6255   cat conftest.err >&5
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); } &&
6258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6259   { (case "(($ac_try" in
6260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261   *) ac_try_echo=$ac_try;;
6262 esac
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264   (eval "$ac_try") 2>&5
6265   ac_status=$?
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); }; } &&
6268          { ac_try='test -s conftest$ac_exeext'
6269   { (case "(($ac_try" in
6270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271   *) ac_try_echo=$ac_try;;
6272 esac
6273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274   (eval "$ac_try") 2>&5
6275   ac_status=$?
6276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277   (exit $ac_status); }; }; then
6278   ac_cv_lib_fl_yywrap=yes
6279 else
6280   echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6282
6283         ac_cv_lib_fl_yywrap=no
6284 fi
6285
6286 rm -f core conftest.err conftest.$ac_objext \
6287       conftest$ac_exeext conftest.$ac_ext
6288 LIBS=$ac_check_lib_save_LIBS
6289 fi
6290 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6291 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6292 if test $ac_cv_lib_fl_yywrap = yes; then
6293   LEXLIB="-lfl"
6294 else
6295   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6296 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6297 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6298   echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300   ac_check_lib_save_LIBS=$LIBS
6301 LIBS="-ll  $LIBS"
6302 cat >conftest.$ac_ext <<_ACEOF
6303 /* confdefs.h.  */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h.  */
6308
6309 /* Override any GCC internal prototype to avoid an error.
6310    Use char because int might match the return type of a GCC
6311    builtin and then its argument prototype would still apply.  */
6312 #ifdef __cplusplus
6313 extern "C"
6314 #endif
6315 char yywrap ();
6316 int
6317 main ()
6318 {
6319 return yywrap ();
6320   ;
6321   return 0;
6322 }
6323 _ACEOF
6324 rm -f conftest.$ac_objext conftest$ac_exeext
6325 if { (ac_try="$ac_link"
6326 case "(($ac_try" in
6327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328   *) ac_try_echo=$ac_try;;
6329 esac
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331   (eval "$ac_link") 2>conftest.er1
6332   ac_status=$?
6333   grep -v '^ *+' conftest.er1 >conftest.err
6334   rm -f conftest.er1
6335   cat conftest.err >&5
6336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337   (exit $ac_status); } &&
6338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6339   { (case "(($ac_try" in
6340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341   *) ac_try_echo=$ac_try;;
6342 esac
6343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344   (eval "$ac_try") 2>&5
6345   ac_status=$?
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); }; } &&
6348          { ac_try='test -s conftest$ac_exeext'
6349   { (case "(($ac_try" in
6350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351   *) ac_try_echo=$ac_try;;
6352 esac
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354   (eval "$ac_try") 2>&5
6355   ac_status=$?
6356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357   (exit $ac_status); }; }; then
6358   ac_cv_lib_l_yywrap=yes
6359 else
6360   echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6362
6363         ac_cv_lib_l_yywrap=no
6364 fi
6365
6366 rm -f core conftest.err conftest.$ac_objext \
6367       conftest$ac_exeext conftest.$ac_ext
6368 LIBS=$ac_check_lib_save_LIBS
6369 fi
6370 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6371 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6372 if test $ac_cv_lib_l_yywrap = yes; then
6373   LEXLIB="-ll"
6374 fi
6375
6376 fi
6377
6378 fi
6379
6380 if test "x$LEX" != "x:"; then
6381   { echo "$as_me:$LINENO: checking lex output file root" >&5
6382 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6383 if test "${ac_cv_prog_lex_root+set}" = set; then
6384   echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386   # The minimal lex program is just a single line: %%.  But some broken lexes
6387 # (Solaris, I think it was) want two %% lines, so accommodate them.
6388 cat >conftest.l <<_ACEOF
6389 %%
6390 %%
6391 _ACEOF
6392 { (ac_try="$LEX conftest.l"
6393 case "(($ac_try" in
6394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395   *) ac_try_echo=$ac_try;;
6396 esac
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398   (eval "$LEX conftest.l") 2>&5
6399   ac_status=$?
6400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401   (exit $ac_status); }
6402 if test -f lex.yy.c; then
6403   ac_cv_prog_lex_root=lex.yy
6404 elif test -f lexyy.c; then
6405   ac_cv_prog_lex_root=lexyy
6406 else
6407   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6408 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6409    { (exit 1); exit 1; }; }
6410 fi
6411 fi
6412 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6413 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6414 rm -f conftest.l
6415 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6416
6417 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6418 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6419 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6420   echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422   # POSIX says lex can declare yytext either as a pointer or an array; the
6423 # default is implementation-dependent. Figure out which it is, since
6424 # not all implementations provide the %pointer and %array declarations.
6425 ac_cv_prog_lex_yytext_pointer=no
6426 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6427 ac_save_LIBS=$LIBS
6428 LIBS="$LIBS $LEXLIB"
6429 cat >conftest.$ac_ext <<_ACEOF
6430 `cat $LEX_OUTPUT_ROOT.c`
6431 _ACEOF
6432 rm -f conftest.$ac_objext conftest$ac_exeext
6433 if { (ac_try="$ac_link"
6434 case "(($ac_try" in
6435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436   *) ac_try_echo=$ac_try;;
6437 esac
6438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439   (eval "$ac_link") 2>conftest.er1
6440   ac_status=$?
6441   grep -v '^ *+' conftest.er1 >conftest.err
6442   rm -f conftest.er1
6443   cat conftest.err >&5
6444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445   (exit $ac_status); } &&
6446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6447   { (case "(($ac_try" in
6448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449   *) ac_try_echo=$ac_try;;
6450 esac
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452   (eval "$ac_try") 2>&5
6453   ac_status=$?
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); }; } &&
6456          { ac_try='test -s conftest$ac_exeext'
6457   { (case "(($ac_try" in
6458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459   *) ac_try_echo=$ac_try;;
6460 esac
6461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462   (eval "$ac_try") 2>&5
6463   ac_status=$?
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); }; }; then
6466   ac_cv_prog_lex_yytext_pointer=yes
6467 else
6468   echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6470
6471
6472 fi
6473
6474 rm -f core conftest.err conftest.$ac_objext \
6475       conftest$ac_exeext conftest.$ac_ext
6476 LIBS=$ac_save_LIBS
6477 rm -f "${LEX_OUTPUT_ROOT}.c"
6478
6479 fi
6480 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6481 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6482 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6483
6484 cat >>confdefs.h <<\_ACEOF
6485 #define YYTEXT_POINTER 1
6486 _ACEOF
6487
6488 fi
6489
6490 fi
6491
6492 fi
6493 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6494 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6495 if test "$LEX" != "flex"; then
6496   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6497 echo "$as_me: error: flex not found but required" >&2;}
6498    { (exit 1); exit 1; }; }
6499 else
6500   FLEX=flex
6501
6502 fi
6503
6504 { echo "$as_me:$LINENO: checking " >&5
6505 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6506 if test "${llvm_cv_has_bison+set}" = set; then
6507   echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509   for ac_prog in 'bison -y' byacc
6510 do
6511   # Extract the first word of "$ac_prog", so it can be a program name with args.
6512 set dummy $ac_prog; ac_word=$2
6513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6515 if test "${ac_cv_prog_YACC+set}" = set; then
6516   echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518   if test -n "$YACC"; then
6519   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524   IFS=$as_save_IFS
6525   test -z "$as_dir" && as_dir=.
6526   for ac_exec_ext in '' $ac_executable_extensions; do
6527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6528     ac_cv_prog_YACC="$ac_prog"
6529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530     break 2
6531   fi
6532 done
6533 done
6534 IFS=$as_save_IFS
6535
6536 fi
6537 fi
6538 YACC=$ac_cv_prog_YACC
6539 if test -n "$YACC"; then
6540   { echo "$as_me:$LINENO: result: $YACC" >&5
6541 echo "${ECHO_T}$YACC" >&6; }
6542 else
6543   { echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6; }
6545 fi
6546
6547
6548   test -n "$YACC" && break
6549 done
6550 test -n "$YACC" || YACC="yacc"
6551
6552 fi
6553 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6554 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6555 if test "$YACC" != "bison -y"; then
6556
6557   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6558 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6559 else
6560   BISON=bison
6561
6562 fi
6563
6564 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6565 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6566 if test "${lt_cv_path_NM+set}" = set; then
6567   echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569   if test -n "$NM"; then
6570   # Let the user override the test.
6571   lt_cv_path_NM="$NM"
6572 else
6573   lt_nm_to_check="${ac_tool_prefix}nm"
6574   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6575     lt_nm_to_check="$lt_nm_to_check nm"
6576   fi
6577   for lt_tmp_nm in $lt_nm_to_check; do
6578     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6579     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6580       IFS="$lt_save_ifs"
6581       test -z "$ac_dir" && ac_dir=.
6582       tmp_nm="$ac_dir/$lt_tmp_nm"
6583       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6584         # Check to see if the nm accepts a BSD-compat flag.
6585         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6586         #   nm: unknown option "B" ignored
6587         # Tru64's nm complains that /dev/null is an invalid object file
6588         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6589         */dev/null* | *'Invalid file or object type'*)
6590           lt_cv_path_NM="$tmp_nm -B"
6591           break
6592           ;;
6593         *)
6594           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6595           */dev/null*)
6596             lt_cv_path_NM="$tmp_nm -p"
6597             break
6598             ;;
6599           *)
6600             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6601             continue # so that we can try to find one that supports BSD flags
6602             ;;
6603           esac
6604           ;;
6605         esac
6606       fi
6607     done
6608     IFS="$lt_save_ifs"
6609   done
6610   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6611 fi
6612 fi
6613 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6614 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6615 NM="$lt_cv_path_NM"
6616
6617
6618
6619 { echo "$as_me:$LINENO: checking for GNU make" >&5
6620 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6621 if test "${llvm_cv_gnu_make_command+set}" = set; then
6622   echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624   llvm_cv_gnu_make_command=''
6625  for a in "$MAKE" make gmake gnumake ; do
6626   if test -z "$a" ; then continue ; fi ;
6627   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6628   then
6629    llvm_cv_gnu_make_command=$a ;
6630    break;
6631   fi
6632  done
6633 fi
6634 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6635 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6636  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6637    ifGNUmake='' ;
6638  else
6639    ifGNUmake='#' ;
6640    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6641 echo "${ECHO_T}\"Not found\"" >&6; };
6642  fi
6643
6644
6645 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6646 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6647 LN_S=$as_ln_s
6648 if test "$LN_S" = "ln -s"; then
6649   { echo "$as_me:$LINENO: result: yes" >&5
6650 echo "${ECHO_T}yes" >&6; }
6651 else
6652   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6653 echo "${ECHO_T}no, using $LN_S" >&6; }
6654 fi
6655
6656 # Extract the first word of "cmp", so it can be a program name with args.
6657 set dummy cmp; ac_word=$2
6658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660 if test "${ac_cv_path_CMP+set}" = set; then
6661   echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663   case $CMP in
6664   [\\/]* | ?:[\\/]*)
6665   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6666   ;;
6667   *)
6668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 for as_dir in $PATH
6670 do
6671   IFS=$as_save_IFS
6672   test -z "$as_dir" && as_dir=.
6673   for ac_exec_ext in '' $ac_executable_extensions; do
6674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6675     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6677     break 2
6678   fi
6679 done
6680 done
6681 IFS=$as_save_IFS
6682
6683   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6684   ;;
6685 esac
6686 fi
6687 CMP=$ac_cv_path_CMP
6688 if test -n "$CMP"; then
6689   { echo "$as_me:$LINENO: result: $CMP" >&5
6690 echo "${ECHO_T}$CMP" >&6; }
6691 else
6692   { echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6; }
6694 fi
6695
6696
6697 # Extract the first word of "cp", so it can be a program name with args.
6698 set dummy cp; ac_word=$2
6699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701 if test "${ac_cv_path_CP+set}" = set; then
6702   echo $ECHO_N "(cached) $ECHO_C" >&6
6703 else
6704   case $CP in
6705   [\\/]* | ?:[\\/]*)
6706   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6707   ;;
6708   *)
6709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712   IFS=$as_save_IFS
6713   test -z "$as_dir" && as_dir=.
6714   for ac_exec_ext in '' $ac_executable_extensions; do
6715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6716     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718     break 2
6719   fi
6720 done
6721 done
6722 IFS=$as_save_IFS
6723
6724   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6725   ;;
6726 esac
6727 fi
6728 CP=$ac_cv_path_CP
6729 if test -n "$CP"; then
6730   { echo "$as_me:$LINENO: result: $CP" >&5
6731 echo "${ECHO_T}$CP" >&6; }
6732 else
6733   { echo "$as_me:$LINENO: result: no" >&5
6734 echo "${ECHO_T}no" >&6; }
6735 fi
6736
6737
6738 # Extract the first word of "date", so it can be a program name with args.
6739 set dummy date; ac_word=$2
6740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6742 if test "${ac_cv_path_DATE+set}" = set; then
6743   echo $ECHO_N "(cached) $ECHO_C" >&6
6744 else
6745   case $DATE in
6746   [\\/]* | ?:[\\/]*)
6747   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6748   ;;
6749   *)
6750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6752 do
6753   IFS=$as_save_IFS
6754   test -z "$as_dir" && as_dir=.
6755   for ac_exec_ext in '' $ac_executable_extensions; do
6756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6757     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759     break 2
6760   fi
6761 done
6762 done
6763 IFS=$as_save_IFS
6764
6765   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6766   ;;
6767 esac
6768 fi
6769 DATE=$ac_cv_path_DATE
6770 if test -n "$DATE"; then
6771   { echo "$as_me:$LINENO: result: $DATE" >&5
6772 echo "${ECHO_T}$DATE" >&6; }
6773 else
6774   { echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6; }
6776 fi
6777
6778
6779 # Extract the first word of "find", so it can be a program name with args.
6780 set dummy find; ac_word=$2
6781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783 if test "${ac_cv_path_FIND+set}" = set; then
6784   echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786   case $FIND in
6787   [\\/]* | ?:[\\/]*)
6788   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6789   ;;
6790   *)
6791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794   IFS=$as_save_IFS
6795   test -z "$as_dir" && as_dir=.
6796   for ac_exec_ext in '' $ac_executable_extensions; do
6797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6798     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800     break 2
6801   fi
6802 done
6803 done
6804 IFS=$as_save_IFS
6805
6806   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6807   ;;
6808 esac
6809 fi
6810 FIND=$ac_cv_path_FIND
6811 if test -n "$FIND"; then
6812   { echo "$as_me:$LINENO: result: $FIND" >&5
6813 echo "${ECHO_T}$FIND" >&6; }
6814 else
6815   { echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6; }
6817 fi
6818
6819
6820 # Extract the first word of "grep", so it can be a program name with args.
6821 set dummy grep; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_path_GREP+set}" = set; then
6825   echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827   case $GREP in
6828   [\\/]* | ?:[\\/]*)
6829   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6830   ;;
6831   *)
6832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835   IFS=$as_save_IFS
6836   test -z "$as_dir" && as_dir=.
6837   for ac_exec_ext in '' $ac_executable_extensions; do
6838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6839     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841     break 2
6842   fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6848   ;;
6849 esac
6850 fi
6851 GREP=$ac_cv_path_GREP
6852 if test -n "$GREP"; then
6853   { echo "$as_me:$LINENO: result: $GREP" >&5
6854 echo "${ECHO_T}$GREP" >&6; }
6855 else
6856   { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6858 fi
6859
6860
6861 # Extract the first word of "mkdir", so it can be a program name with args.
6862 set dummy mkdir; ac_word=$2
6863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865 if test "${ac_cv_path_MKDIR+set}" = set; then
6866   echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868   case $MKDIR in
6869   [\\/]* | ?:[\\/]*)
6870   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6871   ;;
6872   *)
6873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876   IFS=$as_save_IFS
6877   test -z "$as_dir" && as_dir=.
6878   for ac_exec_ext in '' $ac_executable_extensions; do
6879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6880     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882     break 2
6883   fi
6884 done
6885 done
6886 IFS=$as_save_IFS
6887
6888   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6889   ;;
6890 esac
6891 fi
6892 MKDIR=$ac_cv_path_MKDIR
6893 if test -n "$MKDIR"; then
6894   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6895 echo "${ECHO_T}$MKDIR" >&6; }
6896 else
6897   { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6899 fi
6900
6901
6902 # Extract the first word of "mv", so it can be a program name with args.
6903 set dummy mv; ac_word=$2
6904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906 if test "${ac_cv_path_MV+set}" = set; then
6907   echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909   case $MV in
6910   [\\/]* | ?:[\\/]*)
6911   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6912   ;;
6913   *)
6914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917   IFS=$as_save_IFS
6918   test -z "$as_dir" && as_dir=.
6919   for ac_exec_ext in '' $ac_executable_extensions; do
6920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6921     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923     break 2
6924   fi
6925 done
6926 done
6927 IFS=$as_save_IFS
6928
6929   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6930   ;;
6931 esac
6932 fi
6933 MV=$ac_cv_path_MV
6934 if test -n "$MV"; then
6935   { echo "$as_me:$LINENO: result: $MV" >&5
6936 echo "${ECHO_T}$MV" >&6; }
6937 else
6938   { echo "$as_me:$LINENO: result: no" >&5
6939 echo "${ECHO_T}no" >&6; }
6940 fi
6941
6942
6943 if test -n "$ac_tool_prefix"; then
6944   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6945 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6948 if test "${ac_cv_prog_RANLIB+set}" = set; then
6949   echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951   if test -n "$RANLIB"; then
6952   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6953 else
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6956 do
6957   IFS=$as_save_IFS
6958   test -z "$as_dir" && as_dir=.
6959   for ac_exec_ext in '' $ac_executable_extensions; do
6960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6961     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963     break 2
6964   fi
6965 done
6966 done
6967 IFS=$as_save_IFS
6968
6969 fi
6970 fi
6971 RANLIB=$ac_cv_prog_RANLIB
6972 if test -n "$RANLIB"; then
6973   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6974 echo "${ECHO_T}$RANLIB" >&6; }
6975 else
6976   { echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6; }
6978 fi
6979
6980
6981 fi
6982 if test -z "$ac_cv_prog_RANLIB"; then
6983   ac_ct_RANLIB=$RANLIB
6984   # Extract the first word of "ranlib", so it can be a program name with args.
6985 set dummy ranlib; ac_word=$2
6986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6989   echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991   if test -n "$ac_ct_RANLIB"; then
6992   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997   IFS=$as_save_IFS
6998   test -z "$as_dir" && as_dir=.
6999   for ac_exec_ext in '' $ac_executable_extensions; do
7000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7001     ac_cv_prog_ac_ct_RANLIB="ranlib"
7002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003     break 2
7004   fi
7005 done
7006 done
7007 IFS=$as_save_IFS
7008
7009 fi
7010 fi
7011 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7012 if test -n "$ac_ct_RANLIB"; then
7013   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7014 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7015 else
7016   { echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6; }
7018 fi
7019
7020   if test "x$ac_ct_RANLIB" = x; then
7021     RANLIB=":"
7022   else
7023     case $cross_compiling:$ac_tool_warned in
7024 yes:)
7025 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7026 whose name does not start with the host triplet.  If you think this
7027 configuration is useful to you, please write to autoconf@gnu.org." >&5
7028 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7029 whose name does not start with the host triplet.  If you think this
7030 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7031 ac_tool_warned=yes ;;
7032 esac
7033     RANLIB=$ac_ct_RANLIB
7034   fi
7035 else
7036   RANLIB="$ac_cv_prog_RANLIB"
7037 fi
7038
7039 # Extract the first word of "rm", so it can be a program name with args.
7040 set dummy rm; ac_word=$2
7041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7043 if test "${ac_cv_path_RM+set}" = set; then
7044   echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046   case $RM in
7047   [\\/]* | ?:[\\/]*)
7048   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7049   ;;
7050   *)
7051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH
7053 do
7054   IFS=$as_save_IFS
7055   test -z "$as_dir" && as_dir=.
7056   for ac_exec_ext in '' $ac_executable_extensions; do
7057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7058     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7060     break 2
7061   fi
7062 done
7063 done
7064 IFS=$as_save_IFS
7065
7066   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7067   ;;
7068 esac
7069 fi
7070 RM=$ac_cv_path_RM
7071 if test -n "$RM"; then
7072   { echo "$as_me:$LINENO: result: $RM" >&5
7073 echo "${ECHO_T}$RM" >&6; }
7074 else
7075   { echo "$as_me:$LINENO: result: no" >&5
7076 echo "${ECHO_T}no" >&6; }
7077 fi
7078
7079
7080 # Extract the first word of "sed", so it can be a program name with args.
7081 set dummy sed; ac_word=$2
7082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7084 if test "${ac_cv_path_SED+set}" = set; then
7085   echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087   case $SED in
7088   [\\/]* | ?:[\\/]*)
7089   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7090   ;;
7091   *)
7092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095   IFS=$as_save_IFS
7096   test -z "$as_dir" && as_dir=.
7097   for ac_exec_ext in '' $ac_executable_extensions; do
7098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7099     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7101     break 2
7102   fi
7103 done
7104 done
7105 IFS=$as_save_IFS
7106
7107   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7108   ;;
7109 esac
7110 fi
7111 SED=$ac_cv_path_SED
7112 if test -n "$SED"; then
7113   { echo "$as_me:$LINENO: result: $SED" >&5
7114 echo "${ECHO_T}$SED" >&6; }
7115 else
7116   { echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6; }
7118 fi
7119
7120
7121 # Extract the first word of "tar", so it can be a program name with args.
7122 set dummy tar; ac_word=$2
7123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125 if test "${ac_cv_path_TAR+set}" = set; then
7126   echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128   case $TAR in
7129   [\\/]* | ?:[\\/]*)
7130   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7131   ;;
7132   *)
7133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136   IFS=$as_save_IFS
7137   test -z "$as_dir" && as_dir=.
7138   for ac_exec_ext in '' $ac_executable_extensions; do
7139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142     break 2
7143   fi
7144 done
7145 done
7146 IFS=$as_save_IFS
7147
7148   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7149   ;;
7150 esac
7151 fi
7152 TAR=$ac_cv_path_TAR
7153 if test -n "$TAR"; then
7154   { echo "$as_me:$LINENO: result: $TAR" >&5
7155 echo "${ECHO_T}$TAR" >&6; }
7156 else
7157   { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7159 fi
7160
7161
7162 # Extract the first word of "pwd", so it can be a program name with args.
7163 set dummy pwd; ac_word=$2
7164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166 if test "${ac_cv_path_BINPWD+set}" = set; then
7167   echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169   case $BINPWD in
7170   [\\/]* | ?:[\\/]*)
7171   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7172   ;;
7173   *)
7174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177   IFS=$as_save_IFS
7178   test -z "$as_dir" && as_dir=.
7179   for ac_exec_ext in '' $ac_executable_extensions; do
7180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183     break 2
7184   fi
7185 done
7186 done
7187 IFS=$as_save_IFS
7188
7189   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7190   ;;
7191 esac
7192 fi
7193 BINPWD=$ac_cv_path_BINPWD
7194 if test -n "$BINPWD"; then
7195   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7196 echo "${ECHO_T}$BINPWD" >&6; }
7197 else
7198   { echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6; }
7200 fi
7201
7202
7203
7204 # Extract the first word of "Graphviz", so it can be a program name with args.
7205 set dummy Graphviz; ac_word=$2
7206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7208 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7209   echo $ECHO_N "(cached) $ECHO_C" >&6
7210 else
7211   case $GRAPHVIZ in
7212   [\\/]* | ?:[\\/]*)
7213   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7214   ;;
7215   *)
7216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219   IFS=$as_save_IFS
7220   test -z "$as_dir" && as_dir=.
7221   for ac_exec_ext in '' $ac_executable_extensions; do
7222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7223     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7225     break 2
7226   fi
7227 done
7228 done
7229 IFS=$as_save_IFS
7230
7231   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7232   ;;
7233 esac
7234 fi
7235 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7236 if test -n "$GRAPHVIZ"; then
7237   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7238 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7239 else
7240   { echo "$as_me:$LINENO: result: no" >&5
7241 echo "${ECHO_T}no" >&6; }
7242 fi
7243
7244
7245 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7246
7247 cat >>confdefs.h <<\_ACEOF
7248 #define HAVE_GRAPHVIZ 1
7249 _ACEOF
7250
7251     if test "$llvm_cv_os_type" = "MingW" ; then
7252     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7253   fi
7254
7255 cat >>confdefs.h <<_ACEOF
7256 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7257 _ACEOF
7258
7259 fi
7260 # Extract the first word of "dot", so it can be a program name with args.
7261 set dummy dot; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_DOT+set}" = set; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   case $DOT in
7268   [\\/]* | ?:[\\/]*)
7269   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7270   ;;
7271   *)
7272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275   IFS=$as_save_IFS
7276   test -z "$as_dir" && as_dir=.
7277   for ac_exec_ext in '' $ac_executable_extensions; do
7278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281     break 2
7282   fi
7283 done
7284 done
7285 IFS=$as_save_IFS
7286
7287   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7288   ;;
7289 esac
7290 fi
7291 DOT=$ac_cv_path_DOT
7292 if test -n "$DOT"; then
7293   { echo "$as_me:$LINENO: result: $DOT" >&5
7294 echo "${ECHO_T}$DOT" >&6; }
7295 else
7296   { echo "$as_me:$LINENO: result: no" >&5
7297 echo "${ECHO_T}no" >&6; }
7298 fi
7299
7300
7301 if test "$DOT" != "echo dot" ; then
7302
7303 cat >>confdefs.h <<\_ACEOF
7304 #define HAVE_DOT 1
7305 _ACEOF
7306
7307     if test "$llvm_cv_os_type" = "MingW" ; then
7308     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7309   fi
7310
7311 cat >>confdefs.h <<_ACEOF
7312 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7313 _ACEOF
7314
7315 fi
7316 for ac_prog in gv gsview32
7317 do
7318   # Extract the first word of "$ac_prog", so it can be a program name with args.
7319 set dummy $ac_prog; ac_word=$2
7320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322 if test "${ac_cv_path_GV+set}" = set; then
7323   echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325   case $GV in
7326   [\\/]* | ?:[\\/]*)
7327   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7328   ;;
7329   *)
7330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333   IFS=$as_save_IFS
7334   test -z "$as_dir" && as_dir=.
7335   for ac_exec_ext in '' $ac_executable_extensions; do
7336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339     break 2
7340   fi
7341 done
7342 done
7343 IFS=$as_save_IFS
7344
7345   ;;
7346 esac
7347 fi
7348 GV=$ac_cv_path_GV
7349 if test -n "$GV"; then
7350   { echo "$as_me:$LINENO: result: $GV" >&5
7351 echo "${ECHO_T}$GV" >&6; }
7352 else
7353   { echo "$as_me:$LINENO: result: no" >&5
7354 echo "${ECHO_T}no" >&6; }
7355 fi
7356
7357
7358   test -n "$GV" && break
7359 done
7360 test -n "$GV" || GV="echo gv"
7361
7362 if test "$GV" != "echo gv" ; then
7363
7364 cat >>confdefs.h <<\_ACEOF
7365 #define HAVE_GV 1
7366 _ACEOF
7367
7368     if test "$llvm_cv_os_type" = "MingW" ; then
7369     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7370   fi
7371
7372 cat >>confdefs.h <<_ACEOF
7373 #define LLVM_PATH_GV "$GV${EXEEXT}"
7374 _ACEOF
7375
7376 fi
7377 # Extract the first word of "dotty", so it can be a program name with args.
7378 set dummy dotty; ac_word=$2
7379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381 if test "${ac_cv_path_DOTTY+set}" = set; then
7382   echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384   case $DOTTY in
7385   [\\/]* | ?:[\\/]*)
7386   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7387   ;;
7388   *)
7389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7391 do
7392   IFS=$as_save_IFS
7393   test -z "$as_dir" && as_dir=.
7394   for ac_exec_ext in '' $ac_executable_extensions; do
7395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7396     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398     break 2
7399   fi
7400 done
7401 done
7402 IFS=$as_save_IFS
7403
7404   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7405   ;;
7406 esac
7407 fi
7408 DOTTY=$ac_cv_path_DOTTY
7409 if test -n "$DOTTY"; then
7410   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7411 echo "${ECHO_T}$DOTTY" >&6; }
7412 else
7413   { echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6; }
7415 fi
7416
7417
7418 if test "$DOTTY" != "echo dotty" ; then
7419
7420 cat >>confdefs.h <<\_ACEOF
7421 #define HAVE_DOTTY 1
7422 _ACEOF
7423
7424     if test "$llvm_cv_os_type" = "MingW" ; then
7425     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7426   fi
7427
7428 cat >>confdefs.h <<_ACEOF
7429 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7430 _ACEOF
7431
7432 fi
7433
7434
7435 # Extract the first word of "perl", so it can be a program name with args.
7436 set dummy perl; 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_PERL+set}" = set; then
7440   echo $ECHO_N "(cached) $ECHO_C" >&6
7441 else
7442   case $PERL in
7443   [\\/]* | ?:[\\/]*)
7444   ac_cv_path_PERL="$PERL" # 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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7454     ac_cv_path_PERL="$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   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7463   ;;
7464 esac
7465 fi
7466 PERL=$ac_cv_path_PERL
7467 if test -n "$PERL"; then
7468   { echo "$as_me:$LINENO: result: $PERL" >&5
7469 echo "${ECHO_T}$PERL" >&6; }
7470 else
7471   { echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6; }
7473 fi
7474
7475
7476 if test "$PERL" != "none"; then
7477   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7478 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7479   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7480     { echo "$as_me:$LINENO: result: yes" >&5
7481 echo "${ECHO_T}yes" >&6; }
7482   else
7483     PERL=none
7484     { echo "$as_me:$LINENO: result: not found" >&5
7485 echo "${ECHO_T}not found" >&6; }
7486   fi
7487 fi
7488
7489
7490 if test x"$PERL" = xnone; then
7491    HAVE_PERL=0
7492
7493    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7494 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7495    { (exit 1); exit 1; }; }
7496 else
7497    HAVE_PERL=1
7498
7499 fi
7500
7501 # Find a good install program.  We prefer a C program (faster),
7502 # so one script is as good as another.  But avoid the broken or
7503 # incompatible versions:
7504 # SysV /etc/install, /usr/sbin/install
7505 # SunOS /usr/etc/install
7506 # IRIX /sbin/install
7507 # AIX /bin/install
7508 # AmigaOS /C/install, which installs bootblocks on floppy discs
7509 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7510 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7511 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7512 # OS/2's system install, which has a completely different semantic
7513 # ./install, which can be erroneously created by make from ./install.sh.
7514 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7515 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7516 if test -z "$INSTALL"; then
7517 if test "${ac_cv_path_install+set}" = set; then
7518   echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH
7522 do
7523   IFS=$as_save_IFS
7524   test -z "$as_dir" && as_dir=.
7525   # Account for people who put trailing slashes in PATH elements.
7526 case $as_dir/ in
7527   ./ | .// | /cC/* | \
7528   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7529   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7530   /usr/ucb/* ) ;;
7531   *)
7532     # OSF1 and SCO ODT 3.0 have their own names for install.
7533     # Don't use installbsd from OSF since it installs stuff as root
7534     # by default.
7535     for ac_prog in ginstall scoinst install; do
7536       for ac_exec_ext in '' $ac_executable_extensions; do
7537         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7538           if test $ac_prog = install &&
7539             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7540             # AIX install.  It has an incompatible calling convention.
7541             :
7542           elif test $ac_prog = install &&
7543             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7544             # program-specific install script used by HP pwplus--don't use.
7545             :
7546           else
7547             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7548             break 3
7549           fi
7550         fi
7551       done
7552     done
7553     ;;
7554 esac
7555 done
7556 IFS=$as_save_IFS
7557
7558
7559 fi
7560   if test "${ac_cv_path_install+set}" = set; then
7561     INSTALL=$ac_cv_path_install
7562   else
7563     # As a last resort, use the slow shell script.  Don't cache a
7564     # value for INSTALL within a source directory, because that will
7565     # break other packages using the cache if that directory is
7566     # removed, or if the value is a relative name.
7567     INSTALL=$ac_install_sh
7568   fi
7569 fi
7570 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7571 echo "${ECHO_T}$INSTALL" >&6; }
7572
7573 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7574 # It thinks the first close brace ends the variable substitution.
7575 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7576
7577 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7578
7579 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7580
7581
7582 # Extract the first word of "bzip2", so it can be a program name with args.
7583 set dummy bzip2; ac_word=$2
7584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7586 if test "${ac_cv_path_BZIP2+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589   case $BZIP2 in
7590   [\\/]* | ?:[\\/]*)
7591   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7592   ;;
7593   *)
7594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7596 do
7597   IFS=$as_save_IFS
7598   test -z "$as_dir" && as_dir=.
7599   for ac_exec_ext in '' $ac_executable_extensions; do
7600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7601     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603     break 2
7604   fi
7605 done
7606 done
7607 IFS=$as_save_IFS
7608
7609   ;;
7610 esac
7611 fi
7612 BZIP2=$ac_cv_path_BZIP2
7613 if test -n "$BZIP2"; then
7614   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7615 echo "${ECHO_T}$BZIP2" >&6; }
7616 else
7617   { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7619 fi
7620
7621
7622 # Extract the first word of "doxygen", so it can be a program name with args.
7623 set dummy doxygen; ac_word=$2
7624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7626 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7627   echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629   case $DOXYGEN in
7630   [\\/]* | ?:[\\/]*)
7631   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7632   ;;
7633   *)
7634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7636 do
7637   IFS=$as_save_IFS
7638   test -z "$as_dir" && as_dir=.
7639   for ac_exec_ext in '' $ac_executable_extensions; do
7640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7641     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7643     break 2
7644   fi
7645 done
7646 done
7647 IFS=$as_save_IFS
7648
7649   ;;
7650 esac
7651 fi
7652 DOXYGEN=$ac_cv_path_DOXYGEN
7653 if test -n "$DOXYGEN"; then
7654   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7655 echo "${ECHO_T}$DOXYGEN" >&6; }
7656 else
7657   { echo "$as_me:$LINENO: result: no" >&5
7658 echo "${ECHO_T}no" >&6; }
7659 fi
7660
7661
7662 # Extract the first word of "groff", so it can be a program name with args.
7663 set dummy groff; ac_word=$2
7664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7666 if test "${ac_cv_path_GROFF+set}" = set; then
7667   echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669   case $GROFF in
7670   [\\/]* | ?:[\\/]*)
7671   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7672   ;;
7673   *)
7674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 for as_dir in $PATH
7676 do
7677   IFS=$as_save_IFS
7678   test -z "$as_dir" && as_dir=.
7679   for ac_exec_ext in '' $ac_executable_extensions; do
7680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7681     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7683     break 2
7684   fi
7685 done
7686 done
7687 IFS=$as_save_IFS
7688
7689   ;;
7690 esac
7691 fi
7692 GROFF=$ac_cv_path_GROFF
7693 if test -n "$GROFF"; then
7694   { echo "$as_me:$LINENO: result: $GROFF" >&5
7695 echo "${ECHO_T}$GROFF" >&6; }
7696 else
7697   { echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6; }
7699 fi
7700
7701
7702 # Extract the first word of "gzip", so it can be a program name with args.
7703 set dummy gzip; ac_word=$2
7704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7706 if test "${ac_cv_path_GZIP+set}" = set; then
7707   echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709   case $GZIP in
7710   [\\/]* | ?:[\\/]*)
7711   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7712   ;;
7713   *)
7714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717   IFS=$as_save_IFS
7718   test -z "$as_dir" && as_dir=.
7719   for ac_exec_ext in '' $ac_executable_extensions; do
7720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7721     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7723     break 2
7724   fi
7725 done
7726 done
7727 IFS=$as_save_IFS
7728
7729   ;;
7730 esac
7731 fi
7732 GZIP=$ac_cv_path_GZIP
7733 if test -n "$GZIP"; then
7734   { echo "$as_me:$LINENO: result: $GZIP" >&5
7735 echo "${ECHO_T}$GZIP" >&6; }
7736 else
7737   { echo "$as_me:$LINENO: result: no" >&5
7738 echo "${ECHO_T}no" >&6; }
7739 fi
7740
7741
7742 # Extract the first word of "pod2html", so it can be a program name with args.
7743 set dummy pod2html; ac_word=$2
7744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7746 if test "${ac_cv_path_POD2HTML+set}" = set; then
7747   echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749   case $POD2HTML in
7750   [\\/]* | ?:[\\/]*)
7751   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7752   ;;
7753   *)
7754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757   IFS=$as_save_IFS
7758   test -z "$as_dir" && as_dir=.
7759   for ac_exec_ext in '' $ac_executable_extensions; do
7760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7761     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763     break 2
7764   fi
7765 done
7766 done
7767 IFS=$as_save_IFS
7768
7769   ;;
7770 esac
7771 fi
7772 POD2HTML=$ac_cv_path_POD2HTML
7773 if test -n "$POD2HTML"; then
7774   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7775 echo "${ECHO_T}$POD2HTML" >&6; }
7776 else
7777   { echo "$as_me:$LINENO: result: no" >&5
7778 echo "${ECHO_T}no" >&6; }
7779 fi
7780
7781
7782 # Extract the first word of "pod2man", so it can be a program name with args.
7783 set dummy pod2man; ac_word=$2
7784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7786 if test "${ac_cv_path_POD2MAN+set}" = set; then
7787   echo $ECHO_N "(cached) $ECHO_C" >&6
7788 else
7789   case $POD2MAN in
7790   [\\/]* | ?:[\\/]*)
7791   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7792   ;;
7793   *)
7794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $PATH
7796 do
7797   IFS=$as_save_IFS
7798   test -z "$as_dir" && as_dir=.
7799   for ac_exec_ext in '' $ac_executable_extensions; do
7800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7801     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803     break 2
7804   fi
7805 done
7806 done
7807 IFS=$as_save_IFS
7808
7809   ;;
7810 esac
7811 fi
7812 POD2MAN=$ac_cv_path_POD2MAN
7813 if test -n "$POD2MAN"; then
7814   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7815 echo "${ECHO_T}$POD2MAN" >&6; }
7816 else
7817   { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7819 fi
7820
7821
7822 # Extract the first word of "runtest", so it can be a program name with args.
7823 set dummy runtest; ac_word=$2
7824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7826 if test "${ac_cv_path_RUNTEST+set}" = set; then
7827   echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829   case $RUNTEST in
7830   [\\/]* | ?:[\\/]*)
7831   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7832   ;;
7833   *)
7834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 for as_dir in $PATH
7836 do
7837   IFS=$as_save_IFS
7838   test -z "$as_dir" && as_dir=.
7839   for ac_exec_ext in '' $ac_executable_extensions; do
7840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7841     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7843     break 2
7844   fi
7845 done
7846 done
7847 IFS=$as_save_IFS
7848
7849   ;;
7850 esac
7851 fi
7852 RUNTEST=$ac_cv_path_RUNTEST
7853 if test -n "$RUNTEST"; then
7854   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7855 echo "${ECHO_T}$RUNTEST" >&6; }
7856 else
7857   { echo "$as_me:$LINENO: result: no" >&5
7858 echo "${ECHO_T}no" >&6; }
7859 fi
7860
7861
7862
7863 no_itcl=true
7864 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7865 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7866
7867 # Check whether --with-tclinclude was given.
7868 if test "${with_tclinclude+set}" = set; then
7869   withval=$with_tclinclude; with_tclinclude=${withval}
7870 else
7871   with_tclinclude=''
7872 fi
7873
7874 if test "${ac_cv_path_tclsh+set}" = set; then
7875   echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877
7878 if test x"${with_tclinclude}" != x ; then
7879   if test -f ${with_tclinclude}/tclsh ; then
7880     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7881   elif test -f ${with_tclinclude}/src/tclsh ; then
7882     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7883   else
7884     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7885 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7886    { (exit 1); exit 1; }; }
7887   fi
7888 fi
7889
7890 if test x"${ac_cv_path_tclsh}" = x ; then
7891   { echo "$as_me:$LINENO: result: none" >&5
7892 echo "${ECHO_T}none" >&6; }
7893   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
7894 do
7895   # Extract the first word of "$ac_prog", so it can be a program name with args.
7896 set dummy $ac_prog; ac_word=$2
7897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7899 if test "${ac_cv_path_TCLSH+set}" = set; then
7900   echo $ECHO_N "(cached) $ECHO_C" >&6
7901 else
7902   case $TCLSH in
7903   [\\/]* | ?:[\\/]*)
7904   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7905   ;;
7906   *)
7907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910   IFS=$as_save_IFS
7911   test -z "$as_dir" && as_dir=.
7912   for ac_exec_ext in '' $ac_executable_extensions; do
7913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7914     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7916     break 2
7917   fi
7918 done
7919 done
7920 IFS=$as_save_IFS
7921
7922   ;;
7923 esac
7924 fi
7925 TCLSH=$ac_cv_path_TCLSH
7926 if test -n "$TCLSH"; then
7927   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7928 echo "${ECHO_T}$TCLSH" >&6; }
7929 else
7930   { echo "$as_me:$LINENO: result: no" >&5
7931 echo "${ECHO_T}no" >&6; }
7932 fi
7933
7934
7935   test -n "$TCLSH" && break
7936 done
7937
7938   if test x"${TCLSH}" = x ; then
7939     ac_cv_path_tclsh='';
7940   else
7941     ac_cv_path_tclsh="${TCLSH}";
7942   fi
7943 else
7944   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7945 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7946   TCLSH="${ac_cv_path_tclsh}"
7947
7948 fi
7949
7950 fi
7951
7952 # Extract the first word of "zip", so it can be a program name with args.
7953 set dummy zip; ac_word=$2
7954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7956 if test "${ac_cv_path_ZIP+set}" = set; then
7957   echo $ECHO_N "(cached) $ECHO_C" >&6
7958 else
7959   case $ZIP in
7960   [\\/]* | ?:[\\/]*)
7961   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7962   ;;
7963   *)
7964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7966 do
7967   IFS=$as_save_IFS
7968   test -z "$as_dir" && as_dir=.
7969   for ac_exec_ext in '' $ac_executable_extensions; do
7970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7971     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7973     break 2
7974   fi
7975 done
7976 done
7977 IFS=$as_save_IFS
7978
7979   ;;
7980 esac
7981 fi
7982 ZIP=$ac_cv_path_ZIP
7983 if test -n "$ZIP"; then
7984   { echo "$as_me:$LINENO: result: $ZIP" >&5
7985 echo "${ECHO_T}$ZIP" >&6; }
7986 else
7987   { echo "$as_me:$LINENO: result: no" >&5
7988 echo "${ECHO_T}no" >&6; }
7989 fi
7990
7991
7992 for ac_prog in ocamlc.opt ocamlc
7993 do
7994   # Extract the first word of "$ac_prog", so it can be a program name with args.
7995 set dummy $ac_prog; ac_word=$2
7996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7998 if test "${ac_cv_path_OCAMLC+set}" = set; then
7999   echo $ECHO_N "(cached) $ECHO_C" >&6
8000 else
8001   case $OCAMLC in
8002   [\\/]* | ?:[\\/]*)
8003   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8004   ;;
8005   *)
8006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 for as_dir in $PATH
8008 do
8009   IFS=$as_save_IFS
8010   test -z "$as_dir" && as_dir=.
8011   for ac_exec_ext in '' $ac_executable_extensions; do
8012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8013     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8015     break 2
8016   fi
8017 done
8018 done
8019 IFS=$as_save_IFS
8020
8021   ;;
8022 esac
8023 fi
8024 OCAMLC=$ac_cv_path_OCAMLC
8025 if test -n "$OCAMLC"; then
8026   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8027 echo "${ECHO_T}$OCAMLC" >&6; }
8028 else
8029   { echo "$as_me:$LINENO: result: no" >&5
8030 echo "${ECHO_T}no" >&6; }
8031 fi
8032
8033
8034   test -n "$OCAMLC" && break
8035 done
8036
8037 for ac_prog in ocamlopt.opt ocamlopt
8038 do
8039   # Extract the first word of "$ac_prog", so it can be a program name with args.
8040 set dummy $ac_prog; ac_word=$2
8041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8043 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8044   echo $ECHO_N "(cached) $ECHO_C" >&6
8045 else
8046   case $OCAMLOPT in
8047   [\\/]* | ?:[\\/]*)
8048   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8049   ;;
8050   *)
8051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 for as_dir in $PATH
8053 do
8054   IFS=$as_save_IFS
8055   test -z "$as_dir" && as_dir=.
8056   for ac_exec_ext in '' $ac_executable_extensions; do
8057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8058     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8060     break 2
8061   fi
8062 done
8063 done
8064 IFS=$as_save_IFS
8065
8066   ;;
8067 esac
8068 fi
8069 OCAMLOPT=$ac_cv_path_OCAMLOPT
8070 if test -n "$OCAMLOPT"; then
8071   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8072 echo "${ECHO_T}$OCAMLOPT" >&6; }
8073 else
8074   { echo "$as_me:$LINENO: result: no" >&5
8075 echo "${ECHO_T}no" >&6; }
8076 fi
8077
8078
8079   test -n "$OCAMLOPT" && break
8080 done
8081
8082 for ac_prog in ocamldep.opt ocamldep
8083 do
8084   # Extract the first word of "$ac_prog", so it can be a program name with args.
8085 set dummy $ac_prog; ac_word=$2
8086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8088 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8089   echo $ECHO_N "(cached) $ECHO_C" >&6
8090 else
8091   case $OCAMLDEP in
8092   [\\/]* | ?:[\\/]*)
8093   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8094   ;;
8095   *)
8096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH
8098 do
8099   IFS=$as_save_IFS
8100   test -z "$as_dir" && as_dir=.
8101   for ac_exec_ext in '' $ac_executable_extensions; do
8102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8103     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8105     break 2
8106   fi
8107 done
8108 done
8109 IFS=$as_save_IFS
8110
8111   ;;
8112 esac
8113 fi
8114 OCAMLDEP=$ac_cv_path_OCAMLDEP
8115 if test -n "$OCAMLDEP"; then
8116   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8117 echo "${ECHO_T}$OCAMLDEP" >&6; }
8118 else
8119   { echo "$as_me:$LINENO: result: no" >&5
8120 echo "${ECHO_T}no" >&6; }
8121 fi
8122
8123
8124   test -n "$OCAMLDEP" && break
8125 done
8126
8127 for ac_prog in ocamldoc.opt ocamldoc
8128 do
8129   # Extract the first word of "$ac_prog", so it can be a program name with args.
8130 set dummy $ac_prog; ac_word=$2
8131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8133 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8134   echo $ECHO_N "(cached) $ECHO_C" >&6
8135 else
8136   case $OCAMLDOC in
8137   [\\/]* | ?:[\\/]*)
8138   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8139   ;;
8140   *)
8141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8143 do
8144   IFS=$as_save_IFS
8145   test -z "$as_dir" && as_dir=.
8146   for ac_exec_ext in '' $ac_executable_extensions; do
8147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8148     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8150     break 2
8151   fi
8152 done
8153 done
8154 IFS=$as_save_IFS
8155
8156   ;;
8157 esac
8158 fi
8159 OCAMLDOC=$ac_cv_path_OCAMLDOC
8160 if test -n "$OCAMLDOC"; then
8161   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8162 echo "${ECHO_T}$OCAMLDOC" >&6; }
8163 else
8164   { echo "$as_me:$LINENO: result: no" >&5
8165 echo "${ECHO_T}no" >&6; }
8166 fi
8167
8168
8169   test -n "$OCAMLDOC" && break
8170 done
8171
8172
8173 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8174 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8175 if test "${llvm_cv_link_use_r+set}" = set; then
8176   echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178    ac_ext=c
8179 ac_cpp='$CPP $CPPFLAGS'
8180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8183
8184   oldcflags="$CFLAGS"
8185   CFLAGS="$CFLAGS -Wl,-R."
8186   cat >conftest.$ac_ext <<_ACEOF
8187 /* confdefs.h.  */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h.  */
8192
8193 int
8194 main ()
8195 {
8196 int main() { return 0; }
8197   ;
8198   return 0;
8199 }
8200 _ACEOF
8201 rm -f conftest.$ac_objext conftest$ac_exeext
8202 if { (ac_try="$ac_link"
8203 case "(($ac_try" in
8204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205   *) ac_try_echo=$ac_try;;
8206 esac
8207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8208   (eval "$ac_link") 2>conftest.er1
8209   ac_status=$?
8210   grep -v '^ *+' conftest.er1 >conftest.err
8211   rm -f conftest.er1
8212   cat conftest.err >&5
8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); } &&
8215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8216   { (case "(($ac_try" in
8217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218   *) ac_try_echo=$ac_try;;
8219 esac
8220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221   (eval "$ac_try") 2>&5
8222   ac_status=$?
8223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224   (exit $ac_status); }; } &&
8225          { ac_try='test -s conftest$ac_exeext'
8226   { (case "(($ac_try" in
8227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8228   *) ac_try_echo=$ac_try;;
8229 esac
8230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8231   (eval "$ac_try") 2>&5
8232   ac_status=$?
8233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234   (exit $ac_status); }; }; then
8235   llvm_cv_link_use_r=yes
8236 else
8237   echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8239
8240         llvm_cv_link_use_r=no
8241 fi
8242
8243 rm -f core conftest.err conftest.$ac_objext \
8244       conftest$ac_exeext conftest.$ac_ext
8245   CFLAGS="$oldcflags"
8246   ac_ext=c
8247 ac_cpp='$CPP $CPPFLAGS'
8248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8251
8252
8253 fi
8254 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8255 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8256 if test "$llvm_cv_link_use_r" = yes ; then
8257
8258 cat >>confdefs.h <<\_ACEOF
8259 #define HAVE_LINK_R 1
8260 _ACEOF
8261
8262   fi
8263
8264
8265
8266
8267 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8268 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8269 if test "${ac_cv_c_const+set}" = set; then
8270   echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8272   cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h.  */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h.  */
8278
8279 int
8280 main ()
8281 {
8282 /* FIXME: Include the comments suggested by Paul. */
8283 #ifndef __cplusplus
8284   /* Ultrix mips cc rejects this.  */
8285   typedef int charset[2];
8286   const charset x;
8287   /* SunOS 4.1.1 cc rejects this.  */
8288   char const *const *ccp;
8289   char **p;
8290   /* NEC SVR4.0.2 mips cc rejects this.  */
8291   struct point {int x, y;};
8292   static struct point const zero = {0,0};
8293   /* AIX XL C 1.02.0.0 rejects this.
8294      It does not let you subtract one const X* pointer from another in
8295      an arm of an if-expression whose if-part is not a constant
8296      expression */
8297   const char *g = "string";
8298   ccp = &g + (g ? g-g : 0);
8299   /* HPUX 7.0 cc rejects these. */
8300   ++ccp;
8301   p = (char**) ccp;
8302   ccp = (char const *const *) p;
8303   { /* SCO 3.2v4 cc rejects this.  */
8304     char *t;
8305     char const *s = 0 ? (char *) 0 : (char const *) 0;
8306
8307     *t++ = 0;
8308     if (s) return 0;
8309   }
8310   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8311     int x[] = {25, 17};
8312     const int *foo = &x[0];
8313     ++foo;
8314   }
8315   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8316     typedef const int *iptr;
8317     iptr p = 0;
8318     ++p;
8319   }
8320   { /* AIX XL C 1.02.0.0 rejects this saying
8321        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8322     struct s { int j; const int *ap[3]; };
8323     struct s *b; b->j = 5;
8324   }
8325   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8326     const int foo = 10;
8327     if (!foo) return 0;
8328   }
8329   return !x[0] && !zero.x;
8330 #endif
8331
8332   ;
8333   return 0;
8334 }
8335 _ACEOF
8336 rm -f conftest.$ac_objext
8337 if { (ac_try="$ac_compile"
8338 case "(($ac_try" in
8339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340   *) ac_try_echo=$ac_try;;
8341 esac
8342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8343   (eval "$ac_compile") 2>conftest.er1
8344   ac_status=$?
8345   grep -v '^ *+' conftest.er1 >conftest.err
8346   rm -f conftest.er1
8347   cat conftest.err >&5
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); } &&
8350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8351   { (case "(($ac_try" in
8352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353   *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356   (eval "$ac_try") 2>&5
8357   ac_status=$?
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); }; } &&
8360          { ac_try='test -s conftest.$ac_objext'
8361   { (case "(($ac_try" in
8362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363   *) ac_try_echo=$ac_try;;
8364 esac
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366   (eval "$ac_try") 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; }; then
8370   ac_cv_c_const=yes
8371 else
8372   echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8374
8375         ac_cv_c_const=no
8376 fi
8377
8378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379 fi
8380 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8381 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8382 if test $ac_cv_c_const = no; then
8383
8384 cat >>confdefs.h <<\_ACEOF
8385 #define const
8386 _ACEOF
8387
8388 fi
8389
8390
8391
8392
8393
8394
8395 ac_header_dirent=no
8396 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8397   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8398 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8399 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8401   echo $ECHO_N "(cached) $ECHO_C" >&6
8402 else
8403   cat >conftest.$ac_ext <<_ACEOF
8404 /* confdefs.h.  */
8405 _ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h.  */
8409 #include <sys/types.h>
8410 #include <$ac_hdr>
8411
8412 int
8413 main ()
8414 {
8415 if ((DIR *) 0)
8416 return 0;
8417   ;
8418   return 0;
8419 }
8420 _ACEOF
8421 rm -f conftest.$ac_objext
8422 if { (ac_try="$ac_compile"
8423 case "(($ac_try" in
8424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425   *) ac_try_echo=$ac_try;;
8426 esac
8427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428   (eval "$ac_compile") 2>conftest.er1
8429   ac_status=$?
8430   grep -v '^ *+' conftest.er1 >conftest.err
8431   rm -f conftest.er1
8432   cat conftest.err >&5
8433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); } &&
8435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8436   { (case "(($ac_try" in
8437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438   *) ac_try_echo=$ac_try;;
8439 esac
8440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441   (eval "$ac_try") 2>&5
8442   ac_status=$?
8443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); }; } &&
8445          { ac_try='test -s conftest.$ac_objext'
8446   { (case "(($ac_try" in
8447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448   *) ac_try_echo=$ac_try;;
8449 esac
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451   (eval "$ac_try") 2>&5
8452   ac_status=$?
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); }; }; then
8455   eval "$as_ac_Header=yes"
8456 else
8457   echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8459
8460         eval "$as_ac_Header=no"
8461 fi
8462
8463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464 fi
8465 ac_res=`eval echo '${'$as_ac_Header'}'`
8466                { echo "$as_me:$LINENO: result: $ac_res" >&5
8467 echo "${ECHO_T}$ac_res" >&6; }
8468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8469   cat >>confdefs.h <<_ACEOF
8470 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8471 _ACEOF
8472
8473 ac_header_dirent=$ac_hdr; break
8474 fi
8475
8476 done
8477 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8478 if test $ac_header_dirent = dirent.h; then
8479   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8480 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8481 if test "${ac_cv_search_opendir+set}" = set; then
8482   echo $ECHO_N "(cached) $ECHO_C" >&6
8483 else
8484   ac_func_search_save_LIBS=$LIBS
8485 cat >conftest.$ac_ext <<_ACEOF
8486 /* confdefs.h.  */
8487 _ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h.  */
8491
8492 /* Override any GCC internal prototype to avoid an error.
8493    Use char because int might match the return type of a GCC
8494    builtin and then its argument prototype would still apply.  */
8495 #ifdef __cplusplus
8496 extern "C"
8497 #endif
8498 char opendir ();
8499 int
8500 main ()
8501 {
8502 return opendir ();
8503   ;
8504   return 0;
8505 }
8506 _ACEOF
8507 for ac_lib in '' dir; do
8508   if test -z "$ac_lib"; then
8509     ac_res="none required"
8510   else
8511     ac_res=-l$ac_lib
8512     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8513   fi
8514   rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (ac_try="$ac_link"
8516 case "(($ac_try" in
8517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518   *) ac_try_echo=$ac_try;;
8519 esac
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521   (eval "$ac_link") 2>conftest.er1
8522   ac_status=$?
8523   grep -v '^ *+' conftest.er1 >conftest.err
8524   rm -f conftest.er1
8525   cat conftest.err >&5
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); } &&
8528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8529   { (case "(($ac_try" in
8530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531   *) ac_try_echo=$ac_try;;
8532 esac
8533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534   (eval "$ac_try") 2>&5
8535   ac_status=$?
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); }; } &&
8538          { ac_try='test -s conftest$ac_exeext'
8539   { (case "(($ac_try" in
8540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541   *) ac_try_echo=$ac_try;;
8542 esac
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544   (eval "$ac_try") 2>&5
8545   ac_status=$?
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); }; }; then
8548   ac_cv_search_opendir=$ac_res
8549 else
8550   echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8552
8553
8554 fi
8555
8556 rm -f core conftest.err conftest.$ac_objext \
8557       conftest$ac_exeext
8558   if test "${ac_cv_search_opendir+set}" = set; then
8559   break
8560 fi
8561 done
8562 if test "${ac_cv_search_opendir+set}" = set; then
8563   :
8564 else
8565   ac_cv_search_opendir=no
8566 fi
8567 rm conftest.$ac_ext
8568 LIBS=$ac_func_search_save_LIBS
8569 fi
8570 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8571 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8572 ac_res=$ac_cv_search_opendir
8573 if test "$ac_res" != no; then
8574   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8575
8576 fi
8577
8578 else
8579   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8580 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8581 if test "${ac_cv_search_opendir+set}" = set; then
8582   echo $ECHO_N "(cached) $ECHO_C" >&6
8583 else
8584   ac_func_search_save_LIBS=$LIBS
8585 cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h.  */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h.  */
8591
8592 /* Override any GCC internal prototype to avoid an error.
8593    Use char because int might match the return type of a GCC
8594    builtin and then its argument prototype would still apply.  */
8595 #ifdef __cplusplus
8596 extern "C"
8597 #endif
8598 char opendir ();
8599 int
8600 main ()
8601 {
8602 return opendir ();
8603   ;
8604   return 0;
8605 }
8606 _ACEOF
8607 for ac_lib in '' x; do
8608   if test -z "$ac_lib"; then
8609     ac_res="none required"
8610   else
8611     ac_res=-l$ac_lib
8612     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8613   fi
8614   rm -f conftest.$ac_objext conftest$ac_exeext
8615 if { (ac_try="$ac_link"
8616 case "(($ac_try" in
8617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618   *) ac_try_echo=$ac_try;;
8619 esac
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621   (eval "$ac_link") 2>conftest.er1
8622   ac_status=$?
8623   grep -v '^ *+' conftest.er1 >conftest.err
8624   rm -f conftest.er1
8625   cat conftest.err >&5
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); } &&
8628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8629   { (case "(($ac_try" in
8630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631   *) ac_try_echo=$ac_try;;
8632 esac
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634   (eval "$ac_try") 2>&5
8635   ac_status=$?
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); }; } &&
8638          { ac_try='test -s conftest$ac_exeext'
8639   { (case "(($ac_try" in
8640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641   *) ac_try_echo=$ac_try;;
8642 esac
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644   (eval "$ac_try") 2>&5
8645   ac_status=$?
8646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647   (exit $ac_status); }; }; then
8648   ac_cv_search_opendir=$ac_res
8649 else
8650   echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8652
8653
8654 fi
8655
8656 rm -f core conftest.err conftest.$ac_objext \
8657       conftest$ac_exeext
8658   if test "${ac_cv_search_opendir+set}" = set; then
8659   break
8660 fi
8661 done
8662 if test "${ac_cv_search_opendir+set}" = set; then
8663   :
8664 else
8665   ac_cv_search_opendir=no
8666 fi
8667 rm conftest.$ac_ext
8668 LIBS=$ac_func_search_save_LIBS
8669 fi
8670 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8671 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8672 ac_res=$ac_cv_search_opendir
8673 if test "$ac_res" != no; then
8674   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8675
8676 fi
8677
8678 fi
8679
8680
8681 for ac_header in dlfcn.h
8682 do
8683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8685   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8688   echo $ECHO_N "(cached) $ECHO_C" >&6
8689 fi
8690 ac_res=`eval echo '${'$as_ac_Header'}'`
8691                { echo "$as_me:$LINENO: result: $ac_res" >&5
8692 echo "${ECHO_T}$ac_res" >&6; }
8693 else
8694   # Is the header compilable?
8695 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8697 cat >conftest.$ac_ext <<_ACEOF
8698 /* confdefs.h.  */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h.  */
8703 $ac_includes_default
8704 #include <$ac_header>
8705 _ACEOF
8706 rm -f conftest.$ac_objext
8707 if { (ac_try="$ac_compile"
8708 case "(($ac_try" in
8709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710   *) ac_try_echo=$ac_try;;
8711 esac
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713   (eval "$ac_compile") 2>conftest.er1
8714   ac_status=$?
8715   grep -v '^ *+' conftest.er1 >conftest.err
8716   rm -f conftest.er1
8717   cat conftest.err >&5
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); } &&
8720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8721   { (case "(($ac_try" in
8722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723   *) ac_try_echo=$ac_try;;
8724 esac
8725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726   (eval "$ac_try") 2>&5
8727   ac_status=$?
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); }; } &&
8730          { ac_try='test -s conftest.$ac_objext'
8731   { (case "(($ac_try" in
8732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733   *) ac_try_echo=$ac_try;;
8734 esac
8735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736   (eval "$ac_try") 2>&5
8737   ac_status=$?
8738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739   (exit $ac_status); }; }; then
8740   ac_header_compiler=yes
8741 else
8742   echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8744
8745         ac_header_compiler=no
8746 fi
8747
8748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8750 echo "${ECHO_T}$ac_header_compiler" >&6; }
8751
8752 # Is the header present?
8753 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8755 cat >conftest.$ac_ext <<_ACEOF
8756 /* confdefs.h.  */
8757 _ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h.  */
8761 #include <$ac_header>
8762 _ACEOF
8763 if { (ac_try="$ac_cpp conftest.$ac_ext"
8764 case "(($ac_try" in
8765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766   *) ac_try_echo=$ac_try;;
8767 esac
8768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8770   ac_status=$?
8771   grep -v '^ *+' conftest.er1 >conftest.err
8772   rm -f conftest.er1
8773   cat conftest.err >&5
8774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775   (exit $ac_status); } >/dev/null; then
8776   if test -s conftest.err; then
8777     ac_cpp_err=$ac_c_preproc_warn_flag
8778     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8779   else
8780     ac_cpp_err=
8781   fi
8782 else
8783   ac_cpp_err=yes
8784 fi
8785 if test -z "$ac_cpp_err"; then
8786   ac_header_preproc=yes
8787 else
8788   echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8790
8791   ac_header_preproc=no
8792 fi
8793
8794 rm -f conftest.err conftest.$ac_ext
8795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8796 echo "${ECHO_T}$ac_header_preproc" >&6; }
8797
8798 # So?  What about this header?
8799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8800   yes:no: )
8801     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8805     ac_header_preproc=yes
8806     ;;
8807   no:yes:* )
8808     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8810     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8811 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8812     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8814     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8815 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8818     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8820     ( cat <<\_ASBOX
8821 ## ----------------------------------- ##
8822 ## Report this to llvmbugs@cs.uiuc.edu ##
8823 ## ----------------------------------- ##
8824 _ASBOX
8825      ) | sed "s/^/$as_me: WARNING:     /" >&2
8826     ;;
8827 esac
8828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8831   echo $ECHO_N "(cached) $ECHO_C" >&6
8832 else
8833   eval "$as_ac_Header=\$ac_header_preproc"
8834 fi
8835 ac_res=`eval echo '${'$as_ac_Header'}'`
8836                { echo "$as_me:$LINENO: result: $ac_res" >&5
8837 echo "${ECHO_T}$ac_res" >&6; }
8838
8839 fi
8840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8841   cat >>confdefs.h <<_ACEOF
8842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8843 _ACEOF
8844
8845 fi
8846
8847 done
8848
8849 # Check whether --enable-ltdl-install was given.
8850 if test "${enable_ltdl_install+set}" = set; then
8851   enableval=$enable_ltdl_install;
8852 fi
8853
8854
8855
8856
8857 if test x"${enable_ltdl_install-no}" != xno; then
8858   INSTALL_LTDL_TRUE=
8859   INSTALL_LTDL_FALSE='#'
8860 else
8861   INSTALL_LTDL_TRUE='#'
8862   INSTALL_LTDL_FALSE=
8863 fi
8864
8865
8866
8867 if test x"${enable_ltdl_convenience-no}" != xno; then
8868   CONVENIENCE_LTDL_TRUE=
8869   CONVENIENCE_LTDL_FALSE='#'
8870 else
8871   CONVENIENCE_LTDL_TRUE='#'
8872   CONVENIENCE_LTDL_FALSE=
8873 fi
8874
8875
8876 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8877 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8878 library_names_spec=
8879 libname_spec='lib$name'
8880 soname_spec=
8881 shrext_cmds=".so"
8882 postinstall_cmds=
8883 postuninstall_cmds=
8884 finish_cmds=
8885 finish_eval=
8886 shlibpath_var=
8887 shlibpath_overrides_runpath=unknown
8888 version_type=none
8889 dynamic_linker="$host_os ld.so"
8890 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8891 if test "$GCC" = yes; then
8892   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8893   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8894     # if the path contains ";" then we assume it to be the separator
8895     # otherwise default to the standard path separator (i.e. ":") - it is
8896     # assumed that no part of a normal pathname contains ";" but that should
8897     # okay in the real world where ";" in dirpaths is itself problematic.
8898     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8899   else
8900     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8901   fi
8902 else
8903   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8904 fi
8905 need_lib_prefix=unknown
8906 hardcode_into_libs=no
8907
8908 # when you set need_version to no, make sure it does not cause -set_version
8909 # flags to be left without arguments
8910 need_version=unknown
8911
8912 case $host_os in
8913 aix3*)
8914   version_type=linux
8915   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8916   shlibpath_var=LIBPATH
8917
8918   # AIX 3 has no versioning support, so we append a major version to the name.
8919   soname_spec='${libname}${release}${shared_ext}$major'
8920   ;;
8921
8922 aix4* | aix5*)
8923   version_type=linux
8924   need_lib_prefix=no
8925   need_version=no
8926   hardcode_into_libs=yes
8927   if test "$host_cpu" = ia64; then
8928     # AIX 5 supports IA64
8929     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8930     shlibpath_var=LD_LIBRARY_PATH
8931   else
8932     # With GCC up to 2.95.x, collect2 would create an import file
8933     # for dependence libraries.  The import file would start with
8934     # the line `#! .'.  This would cause the generated library to
8935     # depend on `.', always an invalid library.  This was fixed in
8936     # development snapshots of GCC prior to 3.0.
8937     case $host_os in
8938       aix4 | aix4.[01] | aix4.[01].*)
8939       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8940            echo ' yes '
8941            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8942         :
8943       else
8944         can_build_shared=no
8945       fi
8946       ;;
8947     esac
8948     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8949     # soname into executable. Probably we can add versioning support to
8950     # collect2, so additional links can be useful in future.
8951     if test "$aix_use_runtimelinking" = yes; then
8952       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8953       # instead of lib<name>.a to let people know that these are not
8954       # typical AIX shared libraries.
8955       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8956     else
8957       # We preserve .a as extension for shared libraries through AIX4.2
8958       # and later when we are not doing run time linking.
8959       library_names_spec='${libname}${release}.a $libname.a'
8960       soname_spec='${libname}${release}${shared_ext}$major'
8961     fi
8962     shlibpath_var=LIBPATH
8963   fi
8964   ;;
8965
8966 amigaos*)
8967   library_names_spec='$libname.ixlibrary $libname.a'
8968   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8969   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'
8970   ;;
8971
8972 beos*)
8973   library_names_spec='${libname}${shared_ext}'
8974   dynamic_linker="$host_os ld.so"
8975   shlibpath_var=LIBRARY_PATH
8976   ;;
8977
8978 bsdi[45]*)
8979   version_type=linux
8980   need_version=no
8981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982   soname_spec='${libname}${release}${shared_ext}$major'
8983   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8984   shlibpath_var=LD_LIBRARY_PATH
8985   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8986   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8987   # the default ld.so.conf also contains /usr/contrib/lib and
8988   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8989   # libtool to hard-code these into programs
8990   ;;
8991
8992 cygwin* | mingw* | pw32*)
8993   version_type=windows
8994   shrext_cmds=".dll"
8995   need_version=no
8996   need_lib_prefix=no
8997
8998   case $GCC,$host_os in
8999   yes,cygwin* | yes,mingw* | yes,pw32*)
9000     library_names_spec='$libname.dll.a'
9001     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9002     postinstall_cmds='base_file=`basename \${file}`~
9003       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9004       dldir=$destdir/`dirname \$dlpath`~
9005       test -d \$dldir || mkdir -p \$dldir~
9006       $install_prog $dir/$dlname \$dldir/$dlname~
9007       chmod a+x \$dldir/$dlname'
9008     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9009       dlpath=$dir/\$dldll~
9010        $rm \$dlpath'
9011     shlibpath_overrides_runpath=yes
9012
9013     case $host_os in
9014     cygwin*)
9015       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9016       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9017       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9018       ;;
9019     mingw*)
9020       # MinGW DLLs use traditional 'lib' prefix
9021       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9022       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9023       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9024         # It is most probably a Windows format PATH printed by
9025         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9026         # path with ; separators, and with drive letters. We can handle the
9027         # drive letters (cygwin fileutils understands them), so leave them,
9028         # especially as we might pass files found there to a mingw objdump,
9029         # which wouldn't understand a cygwinified path. Ahh.
9030         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9031       else
9032         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9033       fi
9034       ;;
9035     pw32*)
9036       # pw32 DLLs use 'pw' prefix rather than 'lib'
9037       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9038       ;;
9039     esac
9040     ;;
9041
9042   *)
9043     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9044     ;;
9045   esac
9046   dynamic_linker='Win32 ld.exe'
9047   # FIXME: first we should search . and the directory the executable is in
9048   shlibpath_var=PATH
9049   ;;
9050
9051 darwin* | rhapsody*)
9052   dynamic_linker="$host_os dyld"
9053   version_type=darwin
9054   need_lib_prefix=no
9055   need_version=no
9056   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9057   soname_spec='${libname}${release}${major}$shared_ext'
9058   shlibpath_overrides_runpath=yes
9059   shlibpath_var=DYLD_LIBRARY_PATH
9060   shrext_cmds='.dylib'
9061   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9062   if test "$GCC" = yes; then
9063     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"`
9064   else
9065     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9066   fi
9067   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9068   ;;
9069
9070 dgux*)
9071   version_type=linux
9072   need_lib_prefix=no
9073   need_version=no
9074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9075   soname_spec='${libname}${release}${shared_ext}$major'
9076   shlibpath_var=LD_LIBRARY_PATH
9077   ;;
9078
9079 freebsd1*)
9080   dynamic_linker=no
9081   ;;
9082
9083 kfreebsd*-gnu)
9084   version_type=linux
9085   need_lib_prefix=no
9086   need_version=no
9087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9088   soname_spec='${libname}${release}${shared_ext}$major'
9089   shlibpath_var=LD_LIBRARY_PATH
9090   shlibpath_overrides_runpath=no
9091   hardcode_into_libs=yes
9092   dynamic_linker='GNU ld.so'
9093   ;;
9094
9095 freebsd* | dragonfly*)
9096   # DragonFly does not have aout.  When/if they implement a new
9097   # versioning mechanism, adjust this.
9098   if test -x /usr/bin/objformat; then
9099     objformat=`/usr/bin/objformat`
9100   else
9101     case $host_os in
9102     freebsd[123]*) objformat=aout ;;
9103     *) objformat=elf ;;
9104     esac
9105   fi
9106   version_type=freebsd-$objformat
9107   case $version_type in
9108     freebsd-elf*)
9109       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9110       need_version=no
9111       need_lib_prefix=no
9112       ;;
9113     freebsd-*)
9114       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9115       need_version=yes
9116       ;;
9117   esac
9118   shlibpath_var=LD_LIBRARY_PATH
9119   case $host_os in
9120   freebsd2*)
9121     shlibpath_overrides_runpath=yes
9122     ;;
9123   freebsd3.[01]* | freebsdelf3.[01]*)
9124     shlibpath_overrides_runpath=yes
9125     hardcode_into_libs=yes
9126     ;;
9127   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9128   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9129     shlibpath_overrides_runpath=no
9130     hardcode_into_libs=yes
9131     ;;
9132   freebsd*) # from 4.6 on
9133     shlibpath_overrides_runpath=yes
9134     hardcode_into_libs=yes
9135     ;;
9136   esac
9137   ;;
9138
9139 gnu*)
9140   version_type=linux
9141   need_lib_prefix=no
9142   need_version=no
9143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9144   soname_spec='${libname}${release}${shared_ext}$major'
9145   shlibpath_var=LD_LIBRARY_PATH
9146   hardcode_into_libs=yes
9147   ;;
9148
9149 hpux9* | hpux10* | hpux11*)
9150   # Give a soname corresponding to the major version so that dld.sl refuses to
9151   # link against other versions.
9152   version_type=sunos
9153   need_lib_prefix=no
9154   need_version=no
9155   case $host_cpu in
9156   ia64*)
9157     shrext_cmds='.so'
9158     hardcode_into_libs=yes
9159     dynamic_linker="$host_os dld.so"
9160     shlibpath_var=LD_LIBRARY_PATH
9161     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9162     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9163     soname_spec='${libname}${release}${shared_ext}$major'
9164     if test "X$HPUX_IA64_MODE" = X32; then
9165       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9166     else
9167       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9168     fi
9169     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9170     ;;
9171    hppa*64*)
9172      shrext_cmds='.sl'
9173      hardcode_into_libs=yes
9174      dynamic_linker="$host_os dld.sl"
9175      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9176      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9177      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178      soname_spec='${libname}${release}${shared_ext}$major'
9179      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9180      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9181      ;;
9182    *)
9183     shrext_cmds='.sl'
9184     dynamic_linker="$host_os dld.sl"
9185     shlibpath_var=SHLIB_PATH
9186     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9187     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188     soname_spec='${libname}${release}${shared_ext}$major'
9189     ;;
9190   esac
9191   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9192   postinstall_cmds='chmod 555 $lib'
9193   ;;
9194
9195 interix3*)
9196   version_type=linux
9197   need_lib_prefix=no
9198   need_version=no
9199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9200   soname_spec='${libname}${release}${shared_ext}$major'
9201   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9202   shlibpath_var=LD_LIBRARY_PATH
9203   shlibpath_overrides_runpath=no
9204   hardcode_into_libs=yes
9205   ;;
9206
9207 irix5* | irix6* | nonstopux*)
9208   case $host_os in
9209     nonstopux*) version_type=nonstopux ;;
9210     *)
9211         if test "$lt_cv_prog_gnu_ld" = yes; then
9212                 version_type=linux
9213         else
9214                 version_type=irix
9215         fi ;;
9216   esac
9217   need_lib_prefix=no
9218   need_version=no
9219   soname_spec='${libname}${release}${shared_ext}$major'
9220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9221   case $host_os in
9222   irix5* | nonstopux*)
9223     libsuff= shlibsuff=
9224     ;;
9225   *)
9226     case $LD in # libtool.m4 will add one of these switches to LD
9227     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9228       libsuff= shlibsuff= libmagic=32-bit;;
9229     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9230       libsuff=32 shlibsuff=N32 libmagic=N32;;
9231     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9232       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9233     *) libsuff= shlibsuff= libmagic=never-match;;
9234     esac
9235     ;;
9236   esac
9237   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9238   shlibpath_overrides_runpath=no
9239   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9240   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9241   hardcode_into_libs=yes
9242   ;;
9243
9244 # No shared lib support for Linux oldld, aout, or coff.
9245 linux*oldld* | linux*aout* | linux*coff*)
9246   dynamic_linker=no
9247   ;;
9248
9249 # This must be Linux ELF.
9250 linux*)
9251   version_type=linux
9252   need_lib_prefix=no
9253   need_version=no
9254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9255   soname_spec='${libname}${release}${shared_ext}$major'
9256   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9257   shlibpath_var=LD_LIBRARY_PATH
9258   shlibpath_overrides_runpath=no
9259   # This implies no fast_install, which is unacceptable.
9260   # Some rework will be needed to allow for fast_install
9261   # before this can be enabled.
9262   hardcode_into_libs=yes
9263
9264   # Append ld.so.conf contents to the search path
9265   if test -f /etc/ld.so.conf; then
9266     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' ' '`
9267     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9268   fi
9269
9270   # We used to test for /lib/ld.so.1 and disable shared libraries on
9271   # powerpc, because MkLinux only supported shared libraries with the
9272   # GNU dynamic linker.  Since this was broken with cross compilers,
9273   # most powerpc-linux boxes support dynamic linking these days and
9274   # people can always --disable-shared, the test was removed, and we
9275   # assume the GNU/Linux dynamic linker is in use.
9276   dynamic_linker='GNU/Linux ld.so'
9277   ;;
9278
9279 knetbsd*-gnu)
9280   version_type=linux
9281   need_lib_prefix=no
9282   need_version=no
9283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9284   soname_spec='${libname}${release}${shared_ext}$major'
9285   shlibpath_var=LD_LIBRARY_PATH
9286   shlibpath_overrides_runpath=no
9287   hardcode_into_libs=yes
9288   dynamic_linker='GNU ld.so'
9289   ;;
9290
9291 netbsd*)
9292   version_type=sunos
9293   need_lib_prefix=no
9294   need_version=no
9295   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9297     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9298     dynamic_linker='NetBSD (a.out) ld.so'
9299   else
9300     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9301     soname_spec='${libname}${release}${shared_ext}$major'
9302     dynamic_linker='NetBSD ld.elf_so'
9303   fi
9304   shlibpath_var=LD_LIBRARY_PATH
9305   shlibpath_overrides_runpath=yes
9306   hardcode_into_libs=yes
9307   ;;
9308
9309 newsos6)
9310   version_type=linux
9311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312   shlibpath_var=LD_LIBRARY_PATH
9313   shlibpath_overrides_runpath=yes
9314   ;;
9315
9316 nto-qnx*)
9317   version_type=linux
9318   need_lib_prefix=no
9319   need_version=no
9320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321   soname_spec='${libname}${release}${shared_ext}$major'
9322   shlibpath_var=LD_LIBRARY_PATH
9323   shlibpath_overrides_runpath=yes
9324   ;;
9325
9326 openbsd*)
9327   version_type=sunos
9328   sys_lib_dlsearch_path_spec="/usr/lib"
9329   need_lib_prefix=no
9330   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9331   case $host_os in
9332     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9333     *)                         need_version=no  ;;
9334   esac
9335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9336   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9337   shlibpath_var=LD_LIBRARY_PATH
9338   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9339     case $host_os in
9340       openbsd2.[89] | openbsd2.[89].*)
9341         shlibpath_overrides_runpath=no
9342         ;;
9343       *)
9344         shlibpath_overrides_runpath=yes
9345         ;;
9346       esac
9347   else
9348     shlibpath_overrides_runpath=yes
9349   fi
9350   ;;
9351
9352 os2*)
9353   libname_spec='$name'
9354   shrext_cmds=".dll"
9355   need_lib_prefix=no
9356   library_names_spec='$libname${shared_ext} $libname.a'
9357   dynamic_linker='OS/2 ld.exe'
9358   shlibpath_var=LIBPATH
9359   ;;
9360
9361 osf3* | osf4* | osf5*)
9362   version_type=osf
9363   need_lib_prefix=no
9364   need_version=no
9365   soname_spec='${libname}${release}${shared_ext}$major'
9366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367   shlibpath_var=LD_LIBRARY_PATH
9368   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9369   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9370   ;;
9371
9372 solaris*)
9373   version_type=linux
9374   need_lib_prefix=no
9375   need_version=no
9376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377   soname_spec='${libname}${release}${shared_ext}$major'
9378   shlibpath_var=LD_LIBRARY_PATH
9379   shlibpath_overrides_runpath=yes
9380   hardcode_into_libs=yes
9381   # ldd complains unless libraries are executable
9382   postinstall_cmds='chmod +x $lib'
9383   ;;
9384
9385 sunos4*)
9386   version_type=sunos
9387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9388   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9389   shlibpath_var=LD_LIBRARY_PATH
9390   shlibpath_overrides_runpath=yes
9391   if test "$with_gnu_ld" = yes; then
9392     need_lib_prefix=no
9393   fi
9394   need_version=yes
9395   ;;
9396
9397 sysv4 | sysv4.3*)
9398   version_type=linux
9399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400   soname_spec='${libname}${release}${shared_ext}$major'
9401   shlibpath_var=LD_LIBRARY_PATH
9402   case $host_vendor in
9403     sni)
9404       shlibpath_overrides_runpath=no
9405       need_lib_prefix=no
9406       export_dynamic_flag_spec='${wl}-Blargedynsym'
9407       runpath_var=LD_RUN_PATH
9408       ;;
9409     siemens)
9410       need_lib_prefix=no
9411       ;;
9412     motorola)
9413       need_lib_prefix=no
9414       need_version=no
9415       shlibpath_overrides_runpath=no
9416       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9417       ;;
9418   esac
9419   ;;
9420
9421 sysv4*MP*)
9422   if test -d /usr/nec ;then
9423     version_type=linux
9424     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9425     soname_spec='$libname${shared_ext}.$major'
9426     shlibpath_var=LD_LIBRARY_PATH
9427   fi
9428   ;;
9429
9430 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9431   version_type=freebsd-elf
9432   need_lib_prefix=no
9433   need_version=no
9434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9435   soname_spec='${libname}${release}${shared_ext}$major'
9436   shlibpath_var=LD_LIBRARY_PATH
9437   hardcode_into_libs=yes
9438   if test "$with_gnu_ld" = yes; then
9439     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9440     shlibpath_overrides_runpath=no
9441   else
9442     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9443     shlibpath_overrides_runpath=yes
9444     case $host_os in
9445       sco3.2v5*)
9446         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9447         ;;
9448     esac
9449   fi
9450   sys_lib_dlsearch_path_spec='/usr/lib'
9451   ;;
9452
9453 uts4*)
9454   version_type=linux
9455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9456   soname_spec='${libname}${release}${shared_ext}$major'
9457   shlibpath_var=LD_LIBRARY_PATH
9458   ;;
9459
9460 *)
9461   dynamic_linker=no
9462   ;;
9463 esac
9464 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9465 echo "${ECHO_T}$dynamic_linker" >&6; }
9466 test "$dynamic_linker" = no && can_build_shared=no
9467
9468 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9469 if test "$GCC" = yes; then
9470   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9471 fi
9472
9473
9474 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9475 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9476 if test "${libltdl_cv_shlibext+set}" = set; then
9477   echo $ECHO_N "(cached) $ECHO_C" >&6
9478 else
9479
9480 module=yes
9481 eval libltdl_cv_shlibext=$shrext_cmds
9482
9483 fi
9484 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9485 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9486 if test -n "$libltdl_cv_shlibext"; then
9487
9488 cat >>confdefs.h <<_ACEOF
9489 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9490 _ACEOF
9491
9492 fi
9493
9494
9495 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9496 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9497 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9498   echo $ECHO_N "(cached) $ECHO_C" >&6
9499 else
9500   libltdl_cv_shlibpath_var="$shlibpath_var"
9501 fi
9502 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9503 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9504 if test -n "$libltdl_cv_shlibpath_var"; then
9505
9506 cat >>confdefs.h <<_ACEOF
9507 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9508 _ACEOF
9509
9510 fi
9511
9512
9513 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9514 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9515 if test "${libltdl_cv_sys_search_path+set}" = set; then
9516   echo $ECHO_N "(cached) $ECHO_C" >&6
9517 else
9518   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9519 fi
9520 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9521 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9522 if test -n "$libltdl_cv_sys_search_path"; then
9523   sys_search_path=
9524   for dir in $libltdl_cv_sys_search_path; do
9525     if test -z "$sys_search_path"; then
9526       sys_search_path="$dir"
9527     else
9528       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9529     fi
9530   done
9531
9532 cat >>confdefs.h <<_ACEOF
9533 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9534 _ACEOF
9535
9536 fi
9537
9538 { echo "$as_me:$LINENO: checking for objdir" >&5
9539 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9540 if test "${libltdl_cv_objdir+set}" = set; then
9541   echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543   libltdl_cv_objdir="$objdir"
9544   if test -n "$objdir"; then
9545     :
9546   else
9547     rm -f .libs 2>/dev/null
9548     mkdir .libs 2>/dev/null
9549     if test -d .libs; then
9550       libltdl_cv_objdir=.libs
9551     else
9552       # MS-DOS does not allow filenames that begin with a dot.
9553       libltdl_cv_objdir=_libs
9554     fi
9555   rmdir .libs 2>/dev/null
9556   fi
9557
9558 fi
9559 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9560 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9561
9562 cat >>confdefs.h <<_ACEOF
9563 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9564 _ACEOF
9565
9566
9567
9568
9569
9570
9571 # Check for command to grab the raw symbol name followed by C symbol from nm.
9572 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9573 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9574 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9575   echo $ECHO_N "(cached) $ECHO_C" >&6
9576 else
9577
9578 # These are sane defaults that work on at least a few old systems.
9579 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9580
9581 # Character class describing NM global symbol codes.
9582 symcode='[BCDEGRST]'
9583
9584 # Regexp to match symbols that can be accessed directly from C.
9585 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9586
9587 # Transform an extracted symbol line into a proper C declaration
9588 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9589
9590 # Transform an extracted symbol line into symbol name and symbol address
9591 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'"
9592
9593 # Define system-specific variables.
9594 case $host_os in
9595 aix*)
9596   symcode='[BCDT]'
9597   ;;
9598 cygwin* | mingw* | pw32*)
9599   symcode='[ABCDGISTW]'
9600   ;;
9601 hpux*) # Its linker distinguishes data from code symbols
9602   if test "$host_cpu" = ia64; then
9603     symcode='[ABCDEGRST]'
9604   fi
9605   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9606   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'"
9607   ;;
9608 linux*)
9609   if test "$host_cpu" = ia64; then
9610     symcode='[ABCDGIRSTW]'
9611     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9612     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'"
9613   fi
9614   ;;
9615 irix* | nonstopux*)
9616   symcode='[BCDEGRST]'
9617   ;;
9618 osf*)
9619   symcode='[BCDEGQRST]'
9620   ;;
9621 solaris*)
9622   symcode='[BDRT]'
9623   ;;
9624 sco3.2v5*)
9625   symcode='[DT]'
9626   ;;
9627 sysv4.2uw2*)
9628   symcode='[DT]'
9629   ;;
9630 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9631   symcode='[ABDT]'
9632   ;;
9633 sysv4)
9634   symcode='[DFNSTU]'
9635   ;;
9636 esac
9637
9638 # Handle CRLF in mingw tool chain
9639 opt_cr=
9640 case $build_os in
9641 mingw*)
9642   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9643   ;;
9644 esac
9645
9646 # If we're using GNU nm, then use its standard symbol codes.
9647 case `$NM -V 2>&1` in
9648 *GNU* | *'with BFD'*)
9649   symcode='[ABCDGIRSTW]' ;;
9650 esac
9651
9652 # Try without a prefix undercore, then with it.
9653 for ac_symprfx in "" "_"; do
9654
9655   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9656   symxfrm="\\1 $ac_symprfx\\2 \\2"
9657
9658   # Write the raw and C identifiers.
9659   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9660
9661   # Check to see that the pipe works correctly.
9662   pipe_works=no
9663
9664   rm -f conftest*
9665   cat > conftest.$ac_ext <<EOF
9666 #ifdef __cplusplus
9667 extern "C" {
9668 #endif
9669 char nm_test_var;
9670 void nm_test_func(){}
9671 #ifdef __cplusplus
9672 }
9673 #endif
9674 int main(){nm_test_var='a';nm_test_func();return(0);}
9675 EOF
9676
9677   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9678   (eval $ac_compile) 2>&5
9679   ac_status=$?
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); }; then
9682     # Now try to grab the symbols.
9683     nlist=conftest.nm
9684     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9685   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9686   ac_status=$?
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); } && test -s "$nlist"; then
9689       # Try sorting and uniquifying the output.
9690       if sort "$nlist" | uniq > "$nlist"T; then
9691         mv -f "$nlist"T "$nlist"
9692       else
9693         rm -f "$nlist"T
9694       fi
9695
9696       # Make sure that we snagged all the symbols we need.
9697       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9698         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9699           cat <<EOF > conftest.$ac_ext
9700 #ifdef __cplusplus
9701 extern "C" {
9702 #endif
9703
9704 EOF
9705           # Now generate the symbol file.
9706           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9707
9708           cat <<EOF >> conftest.$ac_ext
9709 #if defined (__STDC__) && __STDC__
9710 # define lt_ptr_t void *
9711 #else
9712 # define lt_ptr_t char *
9713 # define const
9714 #endif
9715
9716 /* The mapping between symbol names and symbols. */
9717 const struct {
9718   const char *name;
9719   lt_ptr_t address;
9720 }
9721 lt_preloaded_symbols[] =
9722 {
9723 EOF
9724           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9725           cat <<\EOF >> conftest.$ac_ext
9726   {0, (lt_ptr_t) 0}
9727 };
9728
9729 #ifdef __cplusplus
9730 }
9731 #endif
9732 EOF
9733           # Now try linking the two files.
9734           mv conftest.$ac_objext conftstm.$ac_objext
9735           lt_save_LIBS="$LIBS"
9736           lt_save_CFLAGS="$CFLAGS"
9737           LIBS="conftstm.$ac_objext"
9738           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9739           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9740   (eval $ac_link) 2>&5
9741   ac_status=$?
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9744             pipe_works=yes
9745           fi
9746           LIBS="$lt_save_LIBS"
9747           CFLAGS="$lt_save_CFLAGS"
9748         else
9749           echo "cannot find nm_test_func in $nlist" >&5
9750         fi
9751       else
9752         echo "cannot find nm_test_var in $nlist" >&5
9753       fi
9754     else
9755       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9756     fi
9757   else
9758     echo "$progname: failed program was:" >&5
9759     cat conftest.$ac_ext >&5
9760   fi
9761   rm -f conftest* conftst*
9762
9763   # Do not use the global_symbol_pipe unless it works.
9764   if test "$pipe_works" = yes; then
9765     break
9766   else
9767     lt_cv_sys_global_symbol_pipe=
9768   fi
9769 done
9770
9771 fi
9772
9773 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9774   lt_cv_sys_global_symbol_to_cdecl=
9775 fi
9776 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9777   { echo "$as_me:$LINENO: result: failed" >&5
9778 echo "${ECHO_T}failed" >&6; }
9779 else
9780   { echo "$as_me:$LINENO: result: ok" >&5
9781 echo "${ECHO_T}ok" >&6; }
9782 fi
9783
9784
9785 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9786 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9787 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9788   echo $ECHO_N "(cached) $ECHO_C" >&6
9789 else
9790   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9791     libltdl_cv_preloaded_symbols=yes
9792   else
9793     libltdl_cv_preloaded_symbols=no
9794   fi
9795
9796 fi
9797 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9798 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9799 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9800
9801 cat >>confdefs.h <<\_ACEOF
9802 #define HAVE_PRELOADED_SYMBOLS 1
9803 _ACEOF
9804
9805 fi
9806
9807 LIBADD_DL=
9808
9809 ac_ext=c
9810 ac_cpp='$CPP $CPPFLAGS'
9811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9814
9815
9816 { echo "$as_me:$LINENO: checking for shl_load" >&5
9817 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9818 if test "${ac_cv_func_shl_load+set}" = set; then
9819   echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821   cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h.  */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h.  */
9827 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9829 #define shl_load innocuous_shl_load
9830
9831 /* System header to define __stub macros and hopefully few prototypes,
9832     which can conflict with char shl_load (); below.
9833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9834     <limits.h> exists even on freestanding compilers.  */
9835
9836 #ifdef __STDC__
9837 # include <limits.h>
9838 #else
9839 # include <assert.h>
9840 #endif
9841
9842 #undef shl_load
9843
9844 /* Override any GCC internal prototype to avoid an error.
9845    Use char because int might match the return type of a GCC
9846    builtin and then its argument prototype would still apply.  */
9847 #ifdef __cplusplus
9848 extern "C"
9849 #endif
9850 char shl_load ();
9851 /* The GNU C library defines this for functions which it implements
9852     to always fail with ENOSYS.  Some functions are actually named
9853     something starting with __ and the normal name is an alias.  */
9854 #if defined __stub_shl_load || defined __stub___shl_load
9855 choke me
9856 #endif
9857
9858 int
9859 main ()
9860 {
9861 return shl_load ();
9862   ;
9863   return 0;
9864 }
9865 _ACEOF
9866 rm -f conftest.$ac_objext conftest$ac_exeext
9867 if { (ac_try="$ac_link"
9868 case "(($ac_try" in
9869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870   *) ac_try_echo=$ac_try;;
9871 esac
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873   (eval "$ac_link") 2>conftest.er1
9874   ac_status=$?
9875   grep -v '^ *+' conftest.er1 >conftest.err
9876   rm -f conftest.er1
9877   cat conftest.err >&5
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); } &&
9880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9881   { (case "(($ac_try" in
9882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883   *) ac_try_echo=$ac_try;;
9884 esac
9885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886   (eval "$ac_try") 2>&5
9887   ac_status=$?
9888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889   (exit $ac_status); }; } &&
9890          { ac_try='test -s conftest$ac_exeext'
9891   { (case "(($ac_try" in
9892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893   *) ac_try_echo=$ac_try;;
9894 esac
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896   (eval "$ac_try") 2>&5
9897   ac_status=$?
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); }; }; then
9900   ac_cv_func_shl_load=yes
9901 else
9902   echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9904
9905         ac_cv_func_shl_load=no
9906 fi
9907
9908 rm -f core conftest.err conftest.$ac_objext \
9909       conftest$ac_exeext conftest.$ac_ext
9910 fi
9911 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9912 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9913 if test $ac_cv_func_shl_load = yes; then
9914
9915 cat >>confdefs.h <<\_ACEOF
9916 #define HAVE_SHL_LOAD 1
9917 _ACEOF
9918
9919 else
9920   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9921 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9922 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9923   echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925   ac_check_lib_save_LIBS=$LIBS
9926 LIBS="-ldld  $LIBS"
9927 cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h.  */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h.  */
9933
9934 /* Override any GCC internal prototype to avoid an error.
9935    Use char because int might match the return type of a GCC
9936    builtin and then its argument prototype would still apply.  */
9937 #ifdef __cplusplus
9938 extern "C"
9939 #endif
9940 char shl_load ();
9941 int
9942 main ()
9943 {
9944 return shl_load ();
9945   ;
9946   return 0;
9947 }
9948 _ACEOF
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (ac_try="$ac_link"
9951 case "(($ac_try" in
9952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953   *) ac_try_echo=$ac_try;;
9954 esac
9955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956   (eval "$ac_link") 2>conftest.er1
9957   ac_status=$?
9958   grep -v '^ *+' conftest.er1 >conftest.err
9959   rm -f conftest.er1
9960   cat conftest.err >&5
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); } &&
9963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9964   { (case "(($ac_try" in
9965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966   *) ac_try_echo=$ac_try;;
9967 esac
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969   (eval "$ac_try") 2>&5
9970   ac_status=$?
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); }; } &&
9973          { ac_try='test -s conftest$ac_exeext'
9974   { (case "(($ac_try" in
9975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976   *) ac_try_echo=$ac_try;;
9977 esac
9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979   (eval "$ac_try") 2>&5
9980   ac_status=$?
9981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982   (exit $ac_status); }; }; then
9983   ac_cv_lib_dld_shl_load=yes
9984 else
9985   echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9987
9988         ac_cv_lib_dld_shl_load=no
9989 fi
9990
9991 rm -f core conftest.err conftest.$ac_objext \
9992       conftest$ac_exeext conftest.$ac_ext
9993 LIBS=$ac_check_lib_save_LIBS
9994 fi
9995 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9996 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9997 if test $ac_cv_lib_dld_shl_load = yes; then
9998
9999 cat >>confdefs.h <<\_ACEOF
10000 #define HAVE_SHL_LOAD 1
10001 _ACEOF
10002
10003         LIBADD_DL="$LIBADD_DL -ldld"
10004 else
10005   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10006 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10007 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10008   echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010   ac_check_lib_save_LIBS=$LIBS
10011 LIBS="-ldl  $LIBS"
10012 cat >conftest.$ac_ext <<_ACEOF
10013 /* confdefs.h.  */
10014 _ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h.  */
10018
10019 /* Override any GCC internal prototype to avoid an error.
10020    Use char because int might match the return type of a GCC
10021    builtin and then its argument prototype would still apply.  */
10022 #ifdef __cplusplus
10023 extern "C"
10024 #endif
10025 char dlopen ();
10026 int
10027 main ()
10028 {
10029 return dlopen ();
10030   ;
10031   return 0;
10032 }
10033 _ACEOF
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (ac_try="$ac_link"
10036 case "(($ac_try" in
10037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038   *) ac_try_echo=$ac_try;;
10039 esac
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041   (eval "$ac_link") 2>conftest.er1
10042   ac_status=$?
10043   grep -v '^ *+' conftest.er1 >conftest.err
10044   rm -f conftest.er1
10045   cat conftest.err >&5
10046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047   (exit $ac_status); } &&
10048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10049   { (case "(($ac_try" in
10050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051   *) ac_try_echo=$ac_try;;
10052 esac
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054   (eval "$ac_try") 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); }; } &&
10058          { ac_try='test -s conftest$ac_exeext'
10059   { (case "(($ac_try" in
10060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061   *) ac_try_echo=$ac_try;;
10062 esac
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064   (eval "$ac_try") 2>&5
10065   ac_status=$?
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); }; }; then
10068   ac_cv_lib_dl_dlopen=yes
10069 else
10070   echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10072
10073         ac_cv_lib_dl_dlopen=no
10074 fi
10075
10076 rm -f core conftest.err conftest.$ac_objext \
10077       conftest$ac_exeext conftest.$ac_ext
10078 LIBS=$ac_check_lib_save_LIBS
10079 fi
10080 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10081 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10082 if test $ac_cv_lib_dl_dlopen = yes; then
10083
10084 cat >>confdefs.h <<\_ACEOF
10085 #define HAVE_LIBDL 1
10086 _ACEOF
10087
10088                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10089 else
10090   cat >conftest.$ac_ext <<_ACEOF
10091 /* confdefs.h.  */
10092 _ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h.  */
10096 #if HAVE_DLFCN_H
10097 #  include <dlfcn.h>
10098 #endif
10099
10100 int
10101 main ()
10102 {
10103 dlopen(0, 0);
10104   ;
10105   return 0;
10106 }
10107 _ACEOF
10108 rm -f conftest.$ac_objext conftest$ac_exeext
10109 if { (ac_try="$ac_link"
10110 case "(($ac_try" in
10111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112   *) ac_try_echo=$ac_try;;
10113 esac
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115   (eval "$ac_link") 2>conftest.er1
10116   ac_status=$?
10117   grep -v '^ *+' conftest.er1 >conftest.err
10118   rm -f conftest.er1
10119   cat conftest.err >&5
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); } &&
10122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10123   { (case "(($ac_try" in
10124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125   *) ac_try_echo=$ac_try;;
10126 esac
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128   (eval "$ac_try") 2>&5
10129   ac_status=$?
10130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131   (exit $ac_status); }; } &&
10132          { ac_try='test -s conftest$ac_exeext'
10133   { (case "(($ac_try" in
10134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135   *) ac_try_echo=$ac_try;;
10136 esac
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138   (eval "$ac_try") 2>&5
10139   ac_status=$?
10140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141   (exit $ac_status); }; }; then
10142
10143 cat >>confdefs.h <<\_ACEOF
10144 #define HAVE_LIBDL 1
10145 _ACEOF
10146  libltdl_cv_func_dlopen="yes"
10147 else
10148   echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10150
10151         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10152 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10153 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10154   echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156   ac_check_lib_save_LIBS=$LIBS
10157 LIBS="-lsvld  $LIBS"
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h.  */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h.  */
10164
10165 /* Override any GCC internal prototype to avoid an error.
10166    Use char because int might match the return type of a GCC
10167    builtin and then its argument prototype would still apply.  */
10168 #ifdef __cplusplus
10169 extern "C"
10170 #endif
10171 char dlopen ();
10172 int
10173 main ()
10174 {
10175 return dlopen ();
10176   ;
10177   return 0;
10178 }
10179 _ACEOF
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (ac_try="$ac_link"
10182 case "(($ac_try" in
10183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184   *) ac_try_echo=$ac_try;;
10185 esac
10186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187   (eval "$ac_link") 2>conftest.er1
10188   ac_status=$?
10189   grep -v '^ *+' conftest.er1 >conftest.err
10190   rm -f conftest.er1
10191   cat conftest.err >&5
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); } &&
10194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10195   { (case "(($ac_try" in
10196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197   *) ac_try_echo=$ac_try;;
10198 esac
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200   (eval "$ac_try") 2>&5
10201   ac_status=$?
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); }; } &&
10204          { ac_try='test -s conftest$ac_exeext'
10205   { (case "(($ac_try" in
10206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207   *) ac_try_echo=$ac_try;;
10208 esac
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210   (eval "$ac_try") 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); }; }; then
10214   ac_cv_lib_svld_dlopen=yes
10215 else
10216   echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10218
10219         ac_cv_lib_svld_dlopen=no
10220 fi
10221
10222 rm -f core conftest.err conftest.$ac_objext \
10223       conftest$ac_exeext conftest.$ac_ext
10224 LIBS=$ac_check_lib_save_LIBS
10225 fi
10226 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10227 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10228 if test $ac_cv_lib_svld_dlopen = yes; then
10229
10230 cat >>confdefs.h <<\_ACEOF
10231 #define HAVE_LIBDL 1
10232 _ACEOF
10233
10234                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10235 else
10236   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10237 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10238 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10239   echo $ECHO_N "(cached) $ECHO_C" >&6
10240 else
10241   ac_check_lib_save_LIBS=$LIBS
10242 LIBS="-ldld  $LIBS"
10243 cat >conftest.$ac_ext <<_ACEOF
10244 /* confdefs.h.  */
10245 _ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h.  */
10249
10250 /* Override any GCC internal prototype to avoid an error.
10251    Use char because int might match the return type of a GCC
10252    builtin and then its argument prototype would still apply.  */
10253 #ifdef __cplusplus
10254 extern "C"
10255 #endif
10256 char dld_link ();
10257 int
10258 main ()
10259 {
10260 return dld_link ();
10261   ;
10262   return 0;
10263 }
10264 _ACEOF
10265 rm -f conftest.$ac_objext conftest$ac_exeext
10266 if { (ac_try="$ac_link"
10267 case "(($ac_try" in
10268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269   *) ac_try_echo=$ac_try;;
10270 esac
10271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272   (eval "$ac_link") 2>conftest.er1
10273   ac_status=$?
10274   grep -v '^ *+' conftest.er1 >conftest.err
10275   rm -f conftest.er1
10276   cat conftest.err >&5
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); } &&
10279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10280   { (case "(($ac_try" in
10281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282   *) ac_try_echo=$ac_try;;
10283 esac
10284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10285   (eval "$ac_try") 2>&5
10286   ac_status=$?
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); }; } &&
10289          { ac_try='test -s conftest$ac_exeext'
10290   { (case "(($ac_try" in
10291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292   *) ac_try_echo=$ac_try;;
10293 esac
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295   (eval "$ac_try") 2>&5
10296   ac_status=$?
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); }; }; then
10299   ac_cv_lib_dld_dld_link=yes
10300 else
10301   echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10303
10304         ac_cv_lib_dld_dld_link=no
10305 fi
10306
10307 rm -f core conftest.err conftest.$ac_objext \
10308       conftest$ac_exeext conftest.$ac_ext
10309 LIBS=$ac_check_lib_save_LIBS
10310 fi
10311 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10312 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10313 if test $ac_cv_lib_dld_dld_link = yes; then
10314
10315 cat >>confdefs.h <<\_ACEOF
10316 #define HAVE_DLD 1
10317 _ACEOF
10318
10319                 LIBADD_DL="$LIBADD_DL -ldld"
10320 else
10321   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10322 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10323 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10324   echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326   cat >conftest.$ac_ext <<_ACEOF
10327 /* confdefs.h.  */
10328 _ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h.  */
10332 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10334 #define _dyld_func_lookup innocuous__dyld_func_lookup
10335
10336 /* System header to define __stub macros and hopefully few prototypes,
10337     which can conflict with char _dyld_func_lookup (); below.
10338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10339     <limits.h> exists even on freestanding compilers.  */
10340
10341 #ifdef __STDC__
10342 # include <limits.h>
10343 #else
10344 # include <assert.h>
10345 #endif
10346
10347 #undef _dyld_func_lookup
10348
10349 /* Override any GCC internal prototype to avoid an error.
10350    Use char because int might match the return type of a GCC
10351    builtin and then its argument prototype would still apply.  */
10352 #ifdef __cplusplus
10353 extern "C"
10354 #endif
10355 char _dyld_func_lookup ();
10356 /* The GNU C library defines this for functions which it implements
10357     to always fail with ENOSYS.  Some functions are actually named
10358     something starting with __ and the normal name is an alias.  */
10359 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10360 choke me
10361 #endif
10362
10363 int
10364 main ()
10365 {
10366 return _dyld_func_lookup ();
10367   ;
10368   return 0;
10369 }
10370 _ACEOF
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (ac_try="$ac_link"
10373 case "(($ac_try" in
10374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375   *) ac_try_echo=$ac_try;;
10376 esac
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378   (eval "$ac_link") 2>conftest.er1
10379   ac_status=$?
10380   grep -v '^ *+' conftest.er1 >conftest.err
10381   rm -f conftest.er1
10382   cat conftest.err >&5
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); } &&
10385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10386   { (case "(($ac_try" in
10387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388   *) ac_try_echo=$ac_try;;
10389 esac
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391   (eval "$ac_try") 2>&5
10392   ac_status=$?
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); }; } &&
10395          { ac_try='test -s conftest$ac_exeext'
10396   { (case "(($ac_try" in
10397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398   *) ac_try_echo=$ac_try;;
10399 esac
10400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401   (eval "$ac_try") 2>&5
10402   ac_status=$?
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); }; }; then
10405   ac_cv_func__dyld_func_lookup=yes
10406 else
10407   echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10409
10410         ac_cv_func__dyld_func_lookup=no
10411 fi
10412
10413 rm -f core conftest.err conftest.$ac_objext \
10414       conftest$ac_exeext conftest.$ac_ext
10415 fi
10416 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10417 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10418 if test $ac_cv_func__dyld_func_lookup = yes; then
10419
10420 cat >>confdefs.h <<\_ACEOF
10421 #define HAVE_DYLD 1
10422 _ACEOF
10423
10424 fi
10425
10426
10427 fi
10428
10429
10430 fi
10431
10432
10433 fi
10434
10435 rm -f core conftest.err conftest.$ac_objext \
10436       conftest$ac_exeext conftest.$ac_ext
10437
10438 fi
10439
10440
10441 fi
10442
10443
10444 fi
10445
10446
10447 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10448 then
10449   lt_save_LIBS="$LIBS"
10450   LIBS="$LIBS $LIBADD_DL"
10451
10452 for ac_func in dlerror
10453 do
10454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10458   echo $ECHO_N "(cached) $ECHO_C" >&6
10459 else
10460   cat >conftest.$ac_ext <<_ACEOF
10461 /* confdefs.h.  */
10462 _ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h.  */
10466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10468 #define $ac_func innocuous_$ac_func
10469
10470 /* System header to define __stub macros and hopefully few prototypes,
10471     which can conflict with char $ac_func (); below.
10472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10473     <limits.h> exists even on freestanding compilers.  */
10474
10475 #ifdef __STDC__
10476 # include <limits.h>
10477 #else
10478 # include <assert.h>
10479 #endif
10480
10481 #undef $ac_func
10482
10483 /* Override any GCC internal prototype to avoid an error.
10484    Use char because int might match the return type of a GCC
10485    builtin and then its argument prototype would still apply.  */
10486 #ifdef __cplusplus
10487 extern "C"
10488 #endif
10489 char $ac_func ();
10490 /* The GNU C library defines this for functions which it implements
10491     to always fail with ENOSYS.  Some functions are actually named
10492     something starting with __ and the normal name is an alias.  */
10493 #if defined __stub_$ac_func || defined __stub___$ac_func
10494 choke me
10495 #endif
10496
10497 int
10498 main ()
10499 {
10500 return $ac_func ();
10501   ;
10502   return 0;
10503 }
10504 _ACEOF
10505 rm -f conftest.$ac_objext conftest$ac_exeext
10506 if { (ac_try="$ac_link"
10507 case "(($ac_try" in
10508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10509   *) ac_try_echo=$ac_try;;
10510 esac
10511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10512   (eval "$ac_link") 2>conftest.er1
10513   ac_status=$?
10514   grep -v '^ *+' conftest.er1 >conftest.err
10515   rm -f conftest.er1
10516   cat conftest.err >&5
10517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518   (exit $ac_status); } &&
10519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10520   { (case "(($ac_try" in
10521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522   *) ac_try_echo=$ac_try;;
10523 esac
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525   (eval "$ac_try") 2>&5
10526   ac_status=$?
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); }; } &&
10529          { ac_try='test -s conftest$ac_exeext'
10530   { (case "(($ac_try" in
10531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10532   *) ac_try_echo=$ac_try;;
10533 esac
10534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10535   (eval "$ac_try") 2>&5
10536   ac_status=$?
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); }; }; then
10539   eval "$as_ac_var=yes"
10540 else
10541   echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10543
10544         eval "$as_ac_var=no"
10545 fi
10546
10547 rm -f core conftest.err conftest.$ac_objext \
10548       conftest$ac_exeext conftest.$ac_ext
10549 fi
10550 ac_res=`eval echo '${'$as_ac_var'}'`
10551                { echo "$as_me:$LINENO: result: $ac_res" >&5
10552 echo "${ECHO_T}$ac_res" >&6; }
10553 if test `eval echo '${'$as_ac_var'}'` = yes; then
10554   cat >>confdefs.h <<_ACEOF
10555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10556 _ACEOF
10557
10558 fi
10559 done
10560
10561   LIBS="$lt_save_LIBS"
10562 fi
10563 ac_ext=c
10564 ac_cpp='$CPP $CPPFLAGS'
10565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10568
10569
10570
10571 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10572 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10573 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10574   echo $ECHO_N "(cached) $ECHO_C" >&6
10575 else
10576   ac_cv_sys_symbol_underscore=no
10577   cat > conftest.$ac_ext <<EOF
10578 void nm_test_func(){}
10579 int main(){nm_test_func;return 0;}
10580 EOF
10581   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10582   (eval $ac_compile) 2>&5
10583   ac_status=$?
10584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585   (exit $ac_status); }; then
10586     # Now try to grab the symbols.
10587     ac_nlist=conftest.nm
10588     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10589   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10590   ac_status=$?
10591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592   (exit $ac_status); } && test -s "$ac_nlist"; then
10593       # See whether the symbols have a leading underscore.
10594       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10595         ac_cv_sys_symbol_underscore=yes
10596       else
10597         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10598           :
10599         else
10600           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10601         fi
10602       fi
10603     else
10604       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10605     fi
10606   else
10607     echo "configure: failed program was:" >&5
10608     cat conftest.c >&5
10609   fi
10610   rm -rf conftest*
10611
10612 fi
10613 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10614 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10615
10616
10617 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10618   if test x"$libltdl_cv_func_dlopen" = xyes ||
10619      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10620         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10621 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10622 if test "${libltdl_cv_need_uscore+set}" = set; then
10623   echo $ECHO_N "(cached) $ECHO_C" >&6
10624 else
10625   libltdl_cv_need_uscore=unknown
10626           save_LIBS="$LIBS"
10627           LIBS="$LIBS $LIBADD_DL"
10628           if test "$cross_compiling" = yes; then :
10629   libltdl_cv_need_uscore=cross
10630 else
10631   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10632   lt_status=$lt_dlunknown
10633   cat > conftest.$ac_ext <<EOF
10634 #line 10633 "configure"
10635 #include "confdefs.h"
10636
10637 #if HAVE_DLFCN_H
10638 #include <dlfcn.h>
10639 #endif
10640
10641 #include <stdio.h>
10642
10643 #ifdef RTLD_GLOBAL
10644 #  define LT_DLGLOBAL           RTLD_GLOBAL
10645 #else
10646 #  ifdef DL_GLOBAL
10647 #    define LT_DLGLOBAL         DL_GLOBAL
10648 #  else
10649 #    define LT_DLGLOBAL         0
10650 #  endif
10651 #endif
10652
10653 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10654    find out it does not work in some platform. */
10655 #ifndef LT_DLLAZY_OR_NOW
10656 #  ifdef RTLD_LAZY
10657 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10658 #  else
10659 #    ifdef DL_LAZY
10660 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10661 #    else
10662 #      ifdef RTLD_NOW
10663 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10664 #      else
10665 #        ifdef DL_NOW
10666 #          define LT_DLLAZY_OR_NOW      DL_NOW
10667 #        else
10668 #          define LT_DLLAZY_OR_NOW      0
10669 #        endif
10670 #      endif
10671 #    endif
10672 #  endif
10673 #endif
10674
10675 #ifdef __cplusplus
10676 extern "C" void exit (int);
10677 #endif
10678
10679 void fnord() { int i=42;}
10680 int main ()
10681 {
10682   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10683   int status = $lt_dlunknown;
10684
10685   if (self)
10686     {
10687       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10688       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10689       /* dlclose (self); */
10690     }
10691   else
10692     puts (dlerror ());
10693
10694     exit (status);
10695 }
10696 EOF
10697   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10698   (eval $ac_link) 2>&5
10699   ac_status=$?
10700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10702     (./conftest; exit; ) >&5 2>/dev/null
10703     lt_status=$?
10704     case x$lt_status in
10705       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10706       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10707       x$lt_dlunknown|x*)  ;;
10708     esac
10709   else :
10710     # compilation failed
10711
10712   fi
10713 fi
10714 rm -fr conftest*
10715
10716           LIBS="$save_LIBS"
10717
10718 fi
10719 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10720 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10721   fi
10722 fi
10723
10724 if test x"$libltdl_cv_need_uscore" = xyes; then
10725
10726 cat >>confdefs.h <<\_ACEOF
10727 #define NEED_USCORE 1
10728 _ACEOF
10729
10730 fi
10731
10732
10733 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10734 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10735 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10736   echo $ECHO_N "(cached) $ECHO_C" >&6
10737 else
10738   # PORTME does your system automatically load deplibs for dlopen?
10739   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10740   # For now, we just catch OSes we know something about -- in the
10741   # future, we'll try test this programmatically.
10742   libltdl_cv_sys_dlopen_deplibs=unknown
10743   case "$host_os" in
10744   aix3*|aix4.1.*|aix4.2.*)
10745     # Unknown whether this is true for these versions of AIX, but
10746     # we want this `case' here to explicitly catch those versions.
10747     libltdl_cv_sys_dlopen_deplibs=unknown
10748     ;;
10749   aix[45]*)
10750     libltdl_cv_sys_dlopen_deplibs=yes
10751     ;;
10752   darwin*)
10753     # Assuming the user has installed a libdl from somewhere, this is true
10754     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10755     libltdl_cv_sys_dlopen_deplibs=yes
10756     ;;
10757   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10758     # GNU and its variants, using gnu ld.so (Glibc)
10759     libltdl_cv_sys_dlopen_deplibs=yes
10760     ;;
10761   hpux10*|hpux11*)
10762     libltdl_cv_sys_dlopen_deplibs=yes
10763     ;;
10764   interix*)
10765     libltdl_cv_sys_dlopen_deplibs=yes
10766     ;;
10767   irix[12345]*|irix6.[01]*)
10768     # Catch all versions of IRIX before 6.2, and indicate that we don't
10769     # know how it worked for any of those versions.
10770     libltdl_cv_sys_dlopen_deplibs=unknown
10771     ;;
10772   irix*)
10773     # The case above catches anything before 6.2, and it's known that
10774     # at 6.2 and later dlopen does load deplibs.
10775     libltdl_cv_sys_dlopen_deplibs=yes
10776     ;;
10777   netbsd*)
10778     libltdl_cv_sys_dlopen_deplibs=yes
10779     ;;
10780   openbsd*)
10781     libltdl_cv_sys_dlopen_deplibs=yes
10782     ;;
10783   osf[1234]*)
10784     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10785     # it did *not* use an RPATH in a shared library to find objects the
10786     # library depends on, so we explictly say `no'.
10787     libltdl_cv_sys_dlopen_deplibs=no
10788     ;;
10789   osf5.0|osf5.0a|osf5.1)
10790     # dlopen *does* load deplibs and with the right loader patch applied
10791     # it even uses RPATH in a shared library to search for shared objects
10792     # that the library depends on, but there's no easy way to know if that
10793     # patch is installed.  Since this is the case, all we can really
10794     # say is unknown -- it depends on the patch being installed.  If
10795     # it is, this changes to `yes'.  Without it, it would be `no'.
10796     libltdl_cv_sys_dlopen_deplibs=unknown
10797     ;;
10798   osf*)
10799     # the two cases above should catch all versions of osf <= 5.1.  Read
10800     # the comments above for what we know about them.
10801     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10802     # is used to find them so we can finally say `yes'.
10803     libltdl_cv_sys_dlopen_deplibs=yes
10804     ;;
10805   solaris*)
10806     libltdl_cv_sys_dlopen_deplibs=yes
10807     ;;
10808   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10809     libltdl_cv_sys_dlopen_deplibs=yes
10810     ;;
10811   esac
10812
10813 fi
10814 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10815 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10816 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10817
10818 cat >>confdefs.h <<\_ACEOF
10819 #define LTDL_DLOPEN_DEPLIBS 1
10820 _ACEOF
10821
10822 fi
10823
10824
10825 for ac_header in argz.h
10826 do
10827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10829   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10832   echo $ECHO_N "(cached) $ECHO_C" >&6
10833 fi
10834 ac_res=`eval echo '${'$as_ac_Header'}'`
10835                { echo "$as_me:$LINENO: result: $ac_res" >&5
10836 echo "${ECHO_T}$ac_res" >&6; }
10837 else
10838   # Is the header compilable?
10839 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10841 cat >conftest.$ac_ext <<_ACEOF
10842 /* confdefs.h.  */
10843 _ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h.  */
10847 $ac_includes_default
10848 #include <$ac_header>
10849 _ACEOF
10850 rm -f conftest.$ac_objext
10851 if { (ac_try="$ac_compile"
10852 case "(($ac_try" in
10853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854   *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857   (eval "$ac_compile") 2>conftest.er1
10858   ac_status=$?
10859   grep -v '^ *+' conftest.er1 >conftest.err
10860   rm -f conftest.er1
10861   cat conftest.err >&5
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); } &&
10864          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865   { (case "(($ac_try" in
10866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867   *) ac_try_echo=$ac_try;;
10868 esac
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870   (eval "$ac_try") 2>&5
10871   ac_status=$?
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); }; } &&
10874          { ac_try='test -s conftest.$ac_objext'
10875   { (case "(($ac_try" in
10876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877   *) ac_try_echo=$ac_try;;
10878 esac
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880   (eval "$ac_try") 2>&5
10881   ac_status=$?
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); }; }; then
10884   ac_header_compiler=yes
10885 else
10886   echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10888
10889         ac_header_compiler=no
10890 fi
10891
10892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10894 echo "${ECHO_T}$ac_header_compiler" >&6; }
10895
10896 # Is the header present?
10897 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10899 cat >conftest.$ac_ext <<_ACEOF
10900 /* confdefs.h.  */
10901 _ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h.  */
10905 #include <$ac_header>
10906 _ACEOF
10907 if { (ac_try="$ac_cpp conftest.$ac_ext"
10908 case "(($ac_try" in
10909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910   *) ac_try_echo=$ac_try;;
10911 esac
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10914   ac_status=$?
10915   grep -v '^ *+' conftest.er1 >conftest.err
10916   rm -f conftest.er1
10917   cat conftest.err >&5
10918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919   (exit $ac_status); } >/dev/null; then
10920   if test -s conftest.err; then
10921     ac_cpp_err=$ac_c_preproc_warn_flag
10922     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10923   else
10924     ac_cpp_err=
10925   fi
10926 else
10927   ac_cpp_err=yes
10928 fi
10929 if test -z "$ac_cpp_err"; then
10930   ac_header_preproc=yes
10931 else
10932   echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10934
10935   ac_header_preproc=no
10936 fi
10937
10938 rm -f conftest.err conftest.$ac_ext
10939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10940 echo "${ECHO_T}$ac_header_preproc" >&6; }
10941
10942 # So?  What about this header?
10943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10944   yes:no: )
10945     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10949     ac_header_preproc=yes
10950     ;;
10951   no:yes:* )
10952     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10954     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10955 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10956     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10958     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10959 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10962     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10964     ( cat <<\_ASBOX
10965 ## ----------------------------------- ##
10966 ## Report this to llvmbugs@cs.uiuc.edu ##
10967 ## ----------------------------------- ##
10968 _ASBOX
10969      ) | sed "s/^/$as_me: WARNING:     /" >&2
10970     ;;
10971 esac
10972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10975   echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977   eval "$as_ac_Header=\$ac_header_preproc"
10978 fi
10979 ac_res=`eval echo '${'$as_ac_Header'}'`
10980                { echo "$as_me:$LINENO: result: $ac_res" >&5
10981 echo "${ECHO_T}$ac_res" >&6; }
10982
10983 fi
10984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10985   cat >>confdefs.h <<_ACEOF
10986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10987 _ACEOF
10988
10989 fi
10990
10991 done
10992
10993
10994 { echo "$as_me:$LINENO: checking for error_t" >&5
10995 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10996 if test "${ac_cv_type_error_t+set}" = set; then
10997   echo $ECHO_N "(cached) $ECHO_C" >&6
10998 else
10999   cat >conftest.$ac_ext <<_ACEOF
11000 /* confdefs.h.  */
11001 _ACEOF
11002 cat confdefs.h >>conftest.$ac_ext
11003 cat >>conftest.$ac_ext <<_ACEOF
11004 /* end confdefs.h.  */
11005 #if HAVE_ARGZ_H
11006 #  include <argz.h>
11007 #endif
11008
11009 typedef error_t ac__type_new_;
11010 int
11011 main ()
11012 {
11013 if ((ac__type_new_ *) 0)
11014   return 0;
11015 if (sizeof (ac__type_new_))
11016   return 0;
11017   ;
11018   return 0;
11019 }
11020 _ACEOF
11021 rm -f conftest.$ac_objext
11022 if { (ac_try="$ac_compile"
11023 case "(($ac_try" in
11024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025   *) ac_try_echo=$ac_try;;
11026 esac
11027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028   (eval "$ac_compile") 2>conftest.er1
11029   ac_status=$?
11030   grep -v '^ *+' conftest.er1 >conftest.err
11031   rm -f conftest.er1
11032   cat conftest.err >&5
11033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034   (exit $ac_status); } &&
11035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11036   { (case "(($ac_try" in
11037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038   *) ac_try_echo=$ac_try;;
11039 esac
11040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041   (eval "$ac_try") 2>&5
11042   ac_status=$?
11043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044   (exit $ac_status); }; } &&
11045          { ac_try='test -s conftest.$ac_objext'
11046   { (case "(($ac_try" in
11047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048   *) ac_try_echo=$ac_try;;
11049 esac
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051   (eval "$ac_try") 2>&5
11052   ac_status=$?
11053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054   (exit $ac_status); }; }; then
11055   ac_cv_type_error_t=yes
11056 else
11057   echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11059
11060         ac_cv_type_error_t=no
11061 fi
11062
11063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11064 fi
11065 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11066 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11067 if test $ac_cv_type_error_t = yes; then
11068
11069 cat >>confdefs.h <<_ACEOF
11070 #define HAVE_ERROR_T 1
11071 _ACEOF
11072
11073
11074 else
11075
11076 cat >>confdefs.h <<\_ACEOF
11077 #define error_t int
11078 _ACEOF
11079
11080 fi
11081
11082
11083
11084
11085
11086
11087
11088 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11089 do
11090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11094   echo $ECHO_N "(cached) $ECHO_C" >&6
11095 else
11096   cat >conftest.$ac_ext <<_ACEOF
11097 /* confdefs.h.  */
11098 _ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h.  */
11102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11103    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11104 #define $ac_func innocuous_$ac_func
11105
11106 /* System header to define __stub macros and hopefully few prototypes,
11107     which can conflict with char $ac_func (); below.
11108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11109     <limits.h> exists even on freestanding compilers.  */
11110
11111 #ifdef __STDC__
11112 # include <limits.h>
11113 #else
11114 # include <assert.h>
11115 #endif
11116
11117 #undef $ac_func
11118
11119 /* Override any GCC internal prototype to avoid an error.
11120    Use char because int might match the return type of a GCC
11121    builtin and then its argument prototype would still apply.  */
11122 #ifdef __cplusplus
11123 extern "C"
11124 #endif
11125 char $ac_func ();
11126 /* The GNU C library defines this for functions which it implements
11127     to always fail with ENOSYS.  Some functions are actually named
11128     something starting with __ and the normal name is an alias.  */
11129 #if defined __stub_$ac_func || defined __stub___$ac_func
11130 choke me
11131 #endif
11132
11133 int
11134 main ()
11135 {
11136 return $ac_func ();
11137   ;
11138   return 0;
11139 }
11140 _ACEOF
11141 rm -f conftest.$ac_objext conftest$ac_exeext
11142 if { (ac_try="$ac_link"
11143 case "(($ac_try" in
11144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145   *) ac_try_echo=$ac_try;;
11146 esac
11147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148   (eval "$ac_link") 2>conftest.er1
11149   ac_status=$?
11150   grep -v '^ *+' conftest.er1 >conftest.err
11151   rm -f conftest.er1
11152   cat conftest.err >&5
11153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154   (exit $ac_status); } &&
11155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11156   { (case "(($ac_try" in
11157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158   *) ac_try_echo=$ac_try;;
11159 esac
11160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161   (eval "$ac_try") 2>&5
11162   ac_status=$?
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); }; } &&
11165          { ac_try='test -s conftest$ac_exeext'
11166   { (case "(($ac_try" in
11167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168   *) ac_try_echo=$ac_try;;
11169 esac
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171   (eval "$ac_try") 2>&5
11172   ac_status=$?
11173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174   (exit $ac_status); }; }; then
11175   eval "$as_ac_var=yes"
11176 else
11177   echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.$ac_ext >&5
11179
11180         eval "$as_ac_var=no"
11181 fi
11182
11183 rm -f core conftest.err conftest.$ac_objext \
11184       conftest$ac_exeext conftest.$ac_ext
11185 fi
11186 ac_res=`eval echo '${'$as_ac_var'}'`
11187                { echo "$as_me:$LINENO: result: $ac_res" >&5
11188 echo "${ECHO_T}$ac_res" >&6; }
11189 if test `eval echo '${'$as_ac_var'}'` = yes; then
11190   cat >>confdefs.h <<_ACEOF
11191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11192 _ACEOF
11193
11194 fi
11195 done
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11225                   stdio.h unistd.h
11226 do
11227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11232   echo $ECHO_N "(cached) $ECHO_C" >&6
11233 fi
11234 ac_res=`eval echo '${'$as_ac_Header'}'`
11235                { echo "$as_me:$LINENO: result: $ac_res" >&5
11236 echo "${ECHO_T}$ac_res" >&6; }
11237 else
11238   # Is the header compilable?
11239 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11241 cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h.  */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h.  */
11247 $ac_includes_default
11248 #include <$ac_header>
11249 _ACEOF
11250 rm -f conftest.$ac_objext
11251 if { (ac_try="$ac_compile"
11252 case "(($ac_try" in
11253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254   *) ac_try_echo=$ac_try;;
11255 esac
11256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257   (eval "$ac_compile") 2>conftest.er1
11258   ac_status=$?
11259   grep -v '^ *+' conftest.er1 >conftest.err
11260   rm -f conftest.er1
11261   cat conftest.err >&5
11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263   (exit $ac_status); } &&
11264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11265   { (case "(($ac_try" in
11266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267   *) ac_try_echo=$ac_try;;
11268 esac
11269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270   (eval "$ac_try") 2>&5
11271   ac_status=$?
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); }; } &&
11274          { ac_try='test -s conftest.$ac_objext'
11275   { (case "(($ac_try" in
11276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277   *) ac_try_echo=$ac_try;;
11278 esac
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280   (eval "$ac_try") 2>&5
11281   ac_status=$?
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); }; }; then
11284   ac_header_compiler=yes
11285 else
11286   echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11288
11289         ac_header_compiler=no
11290 fi
11291
11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11294 echo "${ECHO_T}$ac_header_compiler" >&6; }
11295
11296 # Is the header present?
11297 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11299 cat >conftest.$ac_ext <<_ACEOF
11300 /* confdefs.h.  */
11301 _ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h.  */
11305 #include <$ac_header>
11306 _ACEOF
11307 if { (ac_try="$ac_cpp conftest.$ac_ext"
11308 case "(($ac_try" in
11309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11310   *) ac_try_echo=$ac_try;;
11311 esac
11312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11313   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11314   ac_status=$?
11315   grep -v '^ *+' conftest.er1 >conftest.err
11316   rm -f conftest.er1
11317   cat conftest.err >&5
11318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319   (exit $ac_status); } >/dev/null; then
11320   if test -s conftest.err; then
11321     ac_cpp_err=$ac_c_preproc_warn_flag
11322     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11323   else
11324     ac_cpp_err=
11325   fi
11326 else
11327   ac_cpp_err=yes
11328 fi
11329 if test -z "$ac_cpp_err"; then
11330   ac_header_preproc=yes
11331 else
11332   echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11334
11335   ac_header_preproc=no
11336 fi
11337
11338 rm -f conftest.err conftest.$ac_ext
11339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11340 echo "${ECHO_T}$ac_header_preproc" >&6; }
11341
11342 # So?  What about this header?
11343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11344   yes:no: )
11345     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11349     ac_header_preproc=yes
11350     ;;
11351   no:yes:* )
11352     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11354     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11355 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11356     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11358     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11359 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11362     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11364     ( cat <<\_ASBOX
11365 ## ----------------------------------- ##
11366 ## Report this to llvmbugs@cs.uiuc.edu ##
11367 ## ----------------------------------- ##
11368 _ASBOX
11369      ) | sed "s/^/$as_me: WARNING:     /" >&2
11370     ;;
11371 esac
11372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11375   echo $ECHO_N "(cached) $ECHO_C" >&6
11376 else
11377   eval "$as_ac_Header=\$ac_header_preproc"
11378 fi
11379 ac_res=`eval echo '${'$as_ac_Header'}'`
11380                { echo "$as_me:$LINENO: result: $ac_res" >&5
11381 echo "${ECHO_T}$ac_res" >&6; }
11382
11383 fi
11384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11385   cat >>confdefs.h <<_ACEOF
11386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11387 _ACEOF
11388
11389 fi
11390
11391 done
11392
11393
11394
11395
11396
11397 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11398 do
11399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11404   echo $ECHO_N "(cached) $ECHO_C" >&6
11405 fi
11406 ac_res=`eval echo '${'$as_ac_Header'}'`
11407                { echo "$as_me:$LINENO: result: $ac_res" >&5
11408 echo "${ECHO_T}$ac_res" >&6; }
11409 else
11410   # Is the header compilable?
11411 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11413 cat >conftest.$ac_ext <<_ACEOF
11414 /* confdefs.h.  */
11415 _ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h.  */
11419 $ac_includes_default
11420 #include <$ac_header>
11421 _ACEOF
11422 rm -f conftest.$ac_objext
11423 if { (ac_try="$ac_compile"
11424 case "(($ac_try" in
11425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426   *) ac_try_echo=$ac_try;;
11427 esac
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429   (eval "$ac_compile") 2>conftest.er1
11430   ac_status=$?
11431   grep -v '^ *+' conftest.er1 >conftest.err
11432   rm -f conftest.er1
11433   cat conftest.err >&5
11434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435   (exit $ac_status); } &&
11436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11437   { (case "(($ac_try" in
11438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439   *) ac_try_echo=$ac_try;;
11440 esac
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442   (eval "$ac_try") 2>&5
11443   ac_status=$?
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); }; } &&
11446          { ac_try='test -s conftest.$ac_objext'
11447   { (case "(($ac_try" in
11448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449   *) ac_try_echo=$ac_try;;
11450 esac
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452   (eval "$ac_try") 2>&5
11453   ac_status=$?
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); }; }; then
11456   ac_header_compiler=yes
11457 else
11458   echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11460
11461         ac_header_compiler=no
11462 fi
11463
11464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11466 echo "${ECHO_T}$ac_header_compiler" >&6; }
11467
11468 # Is the header present?
11469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11471 cat >conftest.$ac_ext <<_ACEOF
11472 /* confdefs.h.  */
11473 _ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h.  */
11477 #include <$ac_header>
11478 _ACEOF
11479 if { (ac_try="$ac_cpp conftest.$ac_ext"
11480 case "(($ac_try" in
11481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482   *) ac_try_echo=$ac_try;;
11483 esac
11484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11485   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11486   ac_status=$?
11487   grep -v '^ *+' conftest.er1 >conftest.err
11488   rm -f conftest.er1
11489   cat conftest.err >&5
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); } >/dev/null; then
11492   if test -s conftest.err; then
11493     ac_cpp_err=$ac_c_preproc_warn_flag
11494     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11495   else
11496     ac_cpp_err=
11497   fi
11498 else
11499   ac_cpp_err=yes
11500 fi
11501 if test -z "$ac_cpp_err"; then
11502   ac_header_preproc=yes
11503 else
11504   echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11506
11507   ac_header_preproc=no
11508 fi
11509
11510 rm -f conftest.err conftest.$ac_ext
11511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11512 echo "${ECHO_T}$ac_header_preproc" >&6; }
11513
11514 # So?  What about this header?
11515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11516   yes:no: )
11517     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11521     ac_header_preproc=yes
11522     ;;
11523   no:yes:* )
11524     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11526     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11527 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11528     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11530     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11531 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11534     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11536     ( cat <<\_ASBOX
11537 ## ----------------------------------- ##
11538 ## Report this to llvmbugs@cs.uiuc.edu ##
11539 ## ----------------------------------- ##
11540 _ASBOX
11541      ) | sed "s/^/$as_me: WARNING:     /" >&2
11542     ;;
11543 esac
11544 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11547   echo $ECHO_N "(cached) $ECHO_C" >&6
11548 else
11549   eval "$as_ac_Header=\$ac_header_preproc"
11550 fi
11551 ac_res=`eval echo '${'$as_ac_Header'}'`
11552                { echo "$as_me:$LINENO: result: $ac_res" >&5
11553 echo "${ECHO_T}$ac_res" >&6; }
11554
11555 fi
11556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11557   cat >>confdefs.h <<_ACEOF
11558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11559 _ACEOF
11560
11561 fi
11562
11563 done
11564
11565
11566
11567 for ac_header in string.h strings.h
11568 do
11569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11571   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11574   echo $ECHO_N "(cached) $ECHO_C" >&6
11575 fi
11576 ac_res=`eval echo '${'$as_ac_Header'}'`
11577                { echo "$as_me:$LINENO: result: $ac_res" >&5
11578 echo "${ECHO_T}$ac_res" >&6; }
11579 else
11580   # Is the header compilable?
11581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11583 cat >conftest.$ac_ext <<_ACEOF
11584 /* confdefs.h.  */
11585 _ACEOF
11586 cat confdefs.h >>conftest.$ac_ext
11587 cat >>conftest.$ac_ext <<_ACEOF
11588 /* end confdefs.h.  */
11589 $ac_includes_default
11590 #include <$ac_header>
11591 _ACEOF
11592 rm -f conftest.$ac_objext
11593 if { (ac_try="$ac_compile"
11594 case "(($ac_try" in
11595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596   *) ac_try_echo=$ac_try;;
11597 esac
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599   (eval "$ac_compile") 2>conftest.er1
11600   ac_status=$?
11601   grep -v '^ *+' conftest.er1 >conftest.err
11602   rm -f conftest.er1
11603   cat conftest.err >&5
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); } &&
11606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11607   { (case "(($ac_try" in
11608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609   *) ac_try_echo=$ac_try;;
11610 esac
11611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612   (eval "$ac_try") 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); }; } &&
11616          { ac_try='test -s conftest.$ac_objext'
11617   { (case "(($ac_try" in
11618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619   *) ac_try_echo=$ac_try;;
11620 esac
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622   (eval "$ac_try") 2>&5
11623   ac_status=$?
11624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   (exit $ac_status); }; }; then
11626   ac_header_compiler=yes
11627 else
11628   echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11630
11631         ac_header_compiler=no
11632 fi
11633
11634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11636 echo "${ECHO_T}$ac_header_compiler" >&6; }
11637
11638 # Is the header present?
11639 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11641 cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h.  */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h.  */
11647 #include <$ac_header>
11648 _ACEOF
11649 if { (ac_try="$ac_cpp conftest.$ac_ext"
11650 case "(($ac_try" in
11651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652   *) ac_try_echo=$ac_try;;
11653 esac
11654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11656   ac_status=$?
11657   grep -v '^ *+' conftest.er1 >conftest.err
11658   rm -f conftest.er1
11659   cat conftest.err >&5
11660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661   (exit $ac_status); } >/dev/null; then
11662   if test -s conftest.err; then
11663     ac_cpp_err=$ac_c_preproc_warn_flag
11664     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11665   else
11666     ac_cpp_err=
11667   fi
11668 else
11669   ac_cpp_err=yes
11670 fi
11671 if test -z "$ac_cpp_err"; then
11672   ac_header_preproc=yes
11673 else
11674   echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11676
11677   ac_header_preproc=no
11678 fi
11679
11680 rm -f conftest.err conftest.$ac_ext
11681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11682 echo "${ECHO_T}$ac_header_preproc" >&6; }
11683
11684 # So?  What about this header?
11685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11686   yes:no: )
11687     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11691     ac_header_preproc=yes
11692     ;;
11693   no:yes:* )
11694     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11696     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11697 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11698     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11700     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11701 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11702     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11704     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11706     ( cat <<\_ASBOX
11707 ## ----------------------------------- ##
11708 ## Report this to llvmbugs@cs.uiuc.edu ##
11709 ## ----------------------------------- ##
11710 _ASBOX
11711      ) | sed "s/^/$as_me: WARNING:     /" >&2
11712     ;;
11713 esac
11714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11717   echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719   eval "$as_ac_Header=\$ac_header_preproc"
11720 fi
11721 ac_res=`eval echo '${'$as_ac_Header'}'`
11722                { echo "$as_me:$LINENO: result: $ac_res" >&5
11723 echo "${ECHO_T}$ac_res" >&6; }
11724
11725 fi
11726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11727   cat >>confdefs.h <<_ACEOF
11728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11729 _ACEOF
11730  break
11731 fi
11732
11733 done
11734
11735
11736
11737
11738 for ac_func in strchr index
11739 do
11740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746   cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h.  */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h.  */
11752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11754 #define $ac_func innocuous_$ac_func
11755
11756 /* System header to define __stub macros and hopefully few prototypes,
11757     which can conflict with char $ac_func (); below.
11758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759     <limits.h> exists even on freestanding compilers.  */
11760
11761 #ifdef __STDC__
11762 # include <limits.h>
11763 #else
11764 # include <assert.h>
11765 #endif
11766
11767 #undef $ac_func
11768
11769 /* Override any GCC internal prototype to avoid an error.
11770    Use char because int might match the return type of a GCC
11771    builtin and then its argument prototype would still apply.  */
11772 #ifdef __cplusplus
11773 extern "C"
11774 #endif
11775 char $ac_func ();
11776 /* The GNU C library defines this for functions which it implements
11777     to always fail with ENOSYS.  Some functions are actually named
11778     something starting with __ and the normal name is an alias.  */
11779 #if defined __stub_$ac_func || defined __stub___$ac_func
11780 choke me
11781 #endif
11782
11783 int
11784 main ()
11785 {
11786 return $ac_func ();
11787   ;
11788   return 0;
11789 }
11790 _ACEOF
11791 rm -f conftest.$ac_objext conftest$ac_exeext
11792 if { (ac_try="$ac_link"
11793 case "(($ac_try" in
11794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795   *) ac_try_echo=$ac_try;;
11796 esac
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798   (eval "$ac_link") 2>conftest.er1
11799   ac_status=$?
11800   grep -v '^ *+' conftest.er1 >conftest.err
11801   rm -f conftest.er1
11802   cat conftest.err >&5
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); } &&
11805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11806   { (case "(($ac_try" in
11807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808   *) ac_try_echo=$ac_try;;
11809 esac
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811   (eval "$ac_try") 2>&5
11812   ac_status=$?
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); }; } &&
11815          { ac_try='test -s conftest$ac_exeext'
11816   { (case "(($ac_try" in
11817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818   *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821   (eval "$ac_try") 2>&5
11822   ac_status=$?
11823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824   (exit $ac_status); }; }; then
11825   eval "$as_ac_var=yes"
11826 else
11827   echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11829
11830         eval "$as_ac_var=no"
11831 fi
11832
11833 rm -f core conftest.err conftest.$ac_objext \
11834       conftest$ac_exeext conftest.$ac_ext
11835 fi
11836 ac_res=`eval echo '${'$as_ac_var'}'`
11837                { echo "$as_me:$LINENO: result: $ac_res" >&5
11838 echo "${ECHO_T}$ac_res" >&6; }
11839 if test `eval echo '${'$as_ac_var'}'` = yes; then
11840   cat >>confdefs.h <<_ACEOF
11841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11842 _ACEOF
11843  break
11844 fi
11845 done
11846
11847
11848
11849 for ac_func in strrchr rindex
11850 do
11851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11855   echo $ECHO_N "(cached) $ECHO_C" >&6
11856 else
11857   cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h.  */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h.  */
11863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11865 #define $ac_func innocuous_$ac_func
11866
11867 /* System header to define __stub macros and hopefully few prototypes,
11868     which can conflict with char $ac_func (); below.
11869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11870     <limits.h> exists even on freestanding compilers.  */
11871
11872 #ifdef __STDC__
11873 # include <limits.h>
11874 #else
11875 # include <assert.h>
11876 #endif
11877
11878 #undef $ac_func
11879
11880 /* Override any GCC internal prototype to avoid an error.
11881    Use char because int might match the return type of a GCC
11882    builtin and then its argument prototype would still apply.  */
11883 #ifdef __cplusplus
11884 extern "C"
11885 #endif
11886 char $ac_func ();
11887 /* The GNU C library defines this for functions which it implements
11888     to always fail with ENOSYS.  Some functions are actually named
11889     something starting with __ and the normal name is an alias.  */
11890 #if defined __stub_$ac_func || defined __stub___$ac_func
11891 choke me
11892 #endif
11893
11894 int
11895 main ()
11896 {
11897 return $ac_func ();
11898   ;
11899   return 0;
11900 }
11901 _ACEOF
11902 rm -f conftest.$ac_objext conftest$ac_exeext
11903 if { (ac_try="$ac_link"
11904 case "(($ac_try" in
11905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906   *) ac_try_echo=$ac_try;;
11907 esac
11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909   (eval "$ac_link") 2>conftest.er1
11910   ac_status=$?
11911   grep -v '^ *+' conftest.er1 >conftest.err
11912   rm -f conftest.er1
11913   cat conftest.err >&5
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); } &&
11916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11917   { (case "(($ac_try" in
11918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919   *) ac_try_echo=$ac_try;;
11920 esac
11921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922   (eval "$ac_try") 2>&5
11923   ac_status=$?
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); }; } &&
11926          { ac_try='test -s conftest$ac_exeext'
11927   { (case "(($ac_try" in
11928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929   *) ac_try_echo=$ac_try;;
11930 esac
11931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932   (eval "$ac_try") 2>&5
11933   ac_status=$?
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); }; }; then
11936   eval "$as_ac_var=yes"
11937 else
11938   echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11940
11941         eval "$as_ac_var=no"
11942 fi
11943
11944 rm -f core conftest.err conftest.$ac_objext \
11945       conftest$ac_exeext conftest.$ac_ext
11946 fi
11947 ac_res=`eval echo '${'$as_ac_var'}'`
11948                { echo "$as_me:$LINENO: result: $ac_res" >&5
11949 echo "${ECHO_T}$ac_res" >&6; }
11950 if test `eval echo '${'$as_ac_var'}'` = yes; then
11951   cat >>confdefs.h <<_ACEOF
11952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11953 _ACEOF
11954  break
11955 fi
11956 done
11957
11958
11959
11960 for ac_func in memcpy bcopy
11961 do
11962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11966   echo $ECHO_N "(cached) $ECHO_C" >&6
11967 else
11968   cat >conftest.$ac_ext <<_ACEOF
11969 /* confdefs.h.  */
11970 _ACEOF
11971 cat confdefs.h >>conftest.$ac_ext
11972 cat >>conftest.$ac_ext <<_ACEOF
11973 /* end confdefs.h.  */
11974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11976 #define $ac_func innocuous_$ac_func
11977
11978 /* System header to define __stub macros and hopefully few prototypes,
11979     which can conflict with char $ac_func (); below.
11980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11981     <limits.h> exists even on freestanding compilers.  */
11982
11983 #ifdef __STDC__
11984 # include <limits.h>
11985 #else
11986 # include <assert.h>
11987 #endif
11988
11989 #undef $ac_func
11990
11991 /* Override any GCC internal prototype to avoid an error.
11992    Use char because int might match the return type of a GCC
11993    builtin and then its argument prototype would still apply.  */
11994 #ifdef __cplusplus
11995 extern "C"
11996 #endif
11997 char $ac_func ();
11998 /* The GNU C library defines this for functions which it implements
11999     to always fail with ENOSYS.  Some functions are actually named
12000     something starting with __ and the normal name is an alias.  */
12001 #if defined __stub_$ac_func || defined __stub___$ac_func
12002 choke me
12003 #endif
12004
12005 int
12006 main ()
12007 {
12008 return $ac_func ();
12009   ;
12010   return 0;
12011 }
12012 _ACEOF
12013 rm -f conftest.$ac_objext conftest$ac_exeext
12014 if { (ac_try="$ac_link"
12015 case "(($ac_try" in
12016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017   *) ac_try_echo=$ac_try;;
12018 esac
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020   (eval "$ac_link") 2>conftest.er1
12021   ac_status=$?
12022   grep -v '^ *+' conftest.er1 >conftest.err
12023   rm -f conftest.er1
12024   cat conftest.err >&5
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); } &&
12027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12028   { (case "(($ac_try" in
12029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030   *) ac_try_echo=$ac_try;;
12031 esac
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033   (eval "$ac_try") 2>&5
12034   ac_status=$?
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); }; } &&
12037          { ac_try='test -s conftest$ac_exeext'
12038   { (case "(($ac_try" in
12039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040   *) ac_try_echo=$ac_try;;
12041 esac
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043   (eval "$ac_try") 2>&5
12044   ac_status=$?
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); }; }; then
12047   eval "$as_ac_var=yes"
12048 else
12049   echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12051
12052         eval "$as_ac_var=no"
12053 fi
12054
12055 rm -f core conftest.err conftest.$ac_objext \
12056       conftest$ac_exeext conftest.$ac_ext
12057 fi
12058 ac_res=`eval echo '${'$as_ac_var'}'`
12059                { echo "$as_me:$LINENO: result: $ac_res" >&5
12060 echo "${ECHO_T}$ac_res" >&6; }
12061 if test `eval echo '${'$as_ac_var'}'` = yes; then
12062   cat >>confdefs.h <<_ACEOF
12063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12064 _ACEOF
12065  break
12066 fi
12067 done
12068
12069
12070
12071 for ac_func in memmove strcmp
12072 do
12073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12077   echo $ECHO_N "(cached) $ECHO_C" >&6
12078 else
12079   cat >conftest.$ac_ext <<_ACEOF
12080 /* confdefs.h.  */
12081 _ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h.  */
12085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12087 #define $ac_func innocuous_$ac_func
12088
12089 /* System header to define __stub macros and hopefully few prototypes,
12090     which can conflict with char $ac_func (); below.
12091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12092     <limits.h> exists even on freestanding compilers.  */
12093
12094 #ifdef __STDC__
12095 # include <limits.h>
12096 #else
12097 # include <assert.h>
12098 #endif
12099
12100 #undef $ac_func
12101
12102 /* Override any GCC internal prototype to avoid an error.
12103    Use char because int might match the return type of a GCC
12104    builtin and then its argument prototype would still apply.  */
12105 #ifdef __cplusplus
12106 extern "C"
12107 #endif
12108 char $ac_func ();
12109 /* The GNU C library defines this for functions which it implements
12110     to always fail with ENOSYS.  Some functions are actually named
12111     something starting with __ and the normal name is an alias.  */
12112 #if defined __stub_$ac_func || defined __stub___$ac_func
12113 choke me
12114 #endif
12115
12116 int
12117 main ()
12118 {
12119 return $ac_func ();
12120   ;
12121   return 0;
12122 }
12123 _ACEOF
12124 rm -f conftest.$ac_objext conftest$ac_exeext
12125 if { (ac_try="$ac_link"
12126 case "(($ac_try" in
12127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128   *) ac_try_echo=$ac_try;;
12129 esac
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131   (eval "$ac_link") 2>conftest.er1
12132   ac_status=$?
12133   grep -v '^ *+' conftest.er1 >conftest.err
12134   rm -f conftest.er1
12135   cat conftest.err >&5
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); } &&
12138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12139   { (case "(($ac_try" in
12140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141   *) ac_try_echo=$ac_try;;
12142 esac
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144   (eval "$ac_try") 2>&5
12145   ac_status=$?
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); }; } &&
12148          { ac_try='test -s conftest$ac_exeext'
12149   { (case "(($ac_try" in
12150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151   *) ac_try_echo=$ac_try;;
12152 esac
12153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154   (eval "$ac_try") 2>&5
12155   ac_status=$?
12156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157   (exit $ac_status); }; }; then
12158   eval "$as_ac_var=yes"
12159 else
12160   echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12162
12163         eval "$as_ac_var=no"
12164 fi
12165
12166 rm -f core conftest.err conftest.$ac_objext \
12167       conftest$ac_exeext conftest.$ac_ext
12168 fi
12169 ac_res=`eval echo '${'$as_ac_var'}'`
12170                { echo "$as_me:$LINENO: result: $ac_res" >&5
12171 echo "${ECHO_T}$ac_res" >&6; }
12172 if test `eval echo '${'$as_ac_var'}'` = yes; then
12173   cat >>confdefs.h <<_ACEOF
12174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12175 _ACEOF
12176
12177 fi
12178 done
12179
12180
12181
12182
12183 for ac_func in closedir opendir readdir
12184 do
12185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12189   echo $ECHO_N "(cached) $ECHO_C" >&6
12190 else
12191   cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h.  */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h.  */
12197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12199 #define $ac_func innocuous_$ac_func
12200
12201 /* System header to define __stub macros and hopefully few prototypes,
12202     which can conflict with char $ac_func (); below.
12203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12204     <limits.h> exists even on freestanding compilers.  */
12205
12206 #ifdef __STDC__
12207 # include <limits.h>
12208 #else
12209 # include <assert.h>
12210 #endif
12211
12212 #undef $ac_func
12213
12214 /* Override any GCC internal prototype to avoid an error.
12215    Use char because int might match the return type of a GCC
12216    builtin and then its argument prototype would still apply.  */
12217 #ifdef __cplusplus
12218 extern "C"
12219 #endif
12220 char $ac_func ();
12221 /* The GNU C library defines this for functions which it implements
12222     to always fail with ENOSYS.  Some functions are actually named
12223     something starting with __ and the normal name is an alias.  */
12224 #if defined __stub_$ac_func || defined __stub___$ac_func
12225 choke me
12226 #endif
12227
12228 int
12229 main ()
12230 {
12231 return $ac_func ();
12232   ;
12233   return 0;
12234 }
12235 _ACEOF
12236 rm -f conftest.$ac_objext conftest$ac_exeext
12237 if { (ac_try="$ac_link"
12238 case "(($ac_try" in
12239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240   *) ac_try_echo=$ac_try;;
12241 esac
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243   (eval "$ac_link") 2>conftest.er1
12244   ac_status=$?
12245   grep -v '^ *+' conftest.er1 >conftest.err
12246   rm -f conftest.er1
12247   cat conftest.err >&5
12248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249   (exit $ac_status); } &&
12250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12251   { (case "(($ac_try" in
12252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253   *) ac_try_echo=$ac_try;;
12254 esac
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256   (eval "$ac_try") 2>&5
12257   ac_status=$?
12258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259   (exit $ac_status); }; } &&
12260          { ac_try='test -s conftest$ac_exeext'
12261   { (case "(($ac_try" in
12262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263   *) ac_try_echo=$ac_try;;
12264 esac
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266   (eval "$ac_try") 2>&5
12267   ac_status=$?
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); }; }; then
12270   eval "$as_ac_var=yes"
12271 else
12272   echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12274
12275         eval "$as_ac_var=no"
12276 fi
12277
12278 rm -f core conftest.err conftest.$ac_objext \
12279       conftest$ac_exeext conftest.$ac_ext
12280 fi
12281 ac_res=`eval echo '${'$as_ac_var'}'`
12282                { echo "$as_me:$LINENO: result: $ac_res" >&5
12283 echo "${ECHO_T}$ac_res" >&6; }
12284 if test `eval echo '${'$as_ac_var'}'` = yes; then
12285   cat >>confdefs.h <<_ACEOF
12286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12287 _ACEOF
12288
12289 fi
12290 done
12291
12292
12293 # Check whether --enable-shared was given.
12294 if test "${enable_shared+set}" = set; then
12295   enableval=$enable_shared; p=${PACKAGE-default}
12296     case $enableval in
12297     yes) enable_shared=yes ;;
12298     no) enable_shared=no ;;
12299     *)
12300       enable_shared=no
12301       # Look at the argument we got.  We use all the common list separators.
12302       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12303       for pkg in $enableval; do
12304         IFS="$lt_save_ifs"
12305         if test "X$pkg" = "X$p"; then
12306           enable_shared=yes
12307         fi
12308       done
12309       IFS="$lt_save_ifs"
12310       ;;
12311     esac
12312 else
12313   enable_shared=yes
12314 fi
12315
12316
12317 # Check whether --enable-static was given.
12318 if test "${enable_static+set}" = set; then
12319   enableval=$enable_static; p=${PACKAGE-default}
12320     case $enableval in
12321     yes) enable_static=yes ;;
12322     no) enable_static=no ;;
12323     *)
12324      enable_static=no
12325       # Look at the argument we got.  We use all the common list separators.
12326       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12327       for pkg in $enableval; do
12328         IFS="$lt_save_ifs"
12329         if test "X$pkg" = "X$p"; then
12330           enable_static=yes
12331         fi
12332       done
12333       IFS="$lt_save_ifs"
12334       ;;
12335     esac
12336 else
12337   enable_static=yes
12338 fi
12339
12340
12341 # Check whether --enable-fast-install was given.
12342 if test "${enable_fast_install+set}" = set; then
12343   enableval=$enable_fast_install; p=${PACKAGE-default}
12344     case $enableval in
12345     yes) enable_fast_install=yes ;;
12346     no) enable_fast_install=no ;;
12347     *)
12348       enable_fast_install=no
12349       # Look at the argument we got.  We use all the common list separators.
12350       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12351       for pkg in $enableval; do
12352         IFS="$lt_save_ifs"
12353         if test "X$pkg" = "X$p"; then
12354           enable_fast_install=yes
12355         fi
12356       done
12357       IFS="$lt_save_ifs"
12358       ;;
12359     esac
12360 else
12361   enable_fast_install=yes
12362 fi
12363
12364
12365 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12366 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12367 if test "${lt_cv_path_SED+set}" = set; then
12368   echo $ECHO_N "(cached) $ECHO_C" >&6
12369 else
12370   # Loop through the user's path and test for sed and gsed.
12371 # Then use that list of sed's as ones to test for truncation.
12372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12373 for as_dir in $PATH
12374 do
12375   IFS=$as_save_IFS
12376   test -z "$as_dir" && as_dir=.
12377   for lt_ac_prog in sed gsed; do
12378     for ac_exec_ext in '' $ac_executable_extensions; do
12379       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12380         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12381       fi
12382     done
12383   done
12384 done
12385 lt_ac_max=0
12386 lt_ac_count=0
12387 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12388 # along with /bin/sed that truncates output.
12389 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12390   test ! -f $lt_ac_sed && continue
12391   cat /dev/null > conftest.in
12392   lt_ac_count=0
12393   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12394   # Check for GNU sed and select it if it is found.
12395   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12396     lt_cv_path_SED=$lt_ac_sed
12397     break
12398   fi
12399   while true; do
12400     cat conftest.in conftest.in >conftest.tmp
12401     mv conftest.tmp conftest.in
12402     cp conftest.in conftest.nl
12403     echo >>conftest.nl
12404     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12405     cmp -s conftest.out conftest.nl || break
12406     # 10000 chars as input seems more than enough
12407     test $lt_ac_count -gt 10 && break
12408     lt_ac_count=`expr $lt_ac_count + 1`
12409     if test $lt_ac_count -gt $lt_ac_max; then
12410       lt_ac_max=$lt_ac_count
12411       lt_cv_path_SED=$lt_ac_sed
12412     fi
12413   done
12414 done
12415
12416 fi
12417
12418 SED=$lt_cv_path_SED
12419 { echo "$as_me:$LINENO: result: $SED" >&5
12420 echo "${ECHO_T}$SED" >&6; }
12421
12422
12423 # Check whether --with-gnu-ld was given.
12424 if test "${with_gnu_ld+set}" = set; then
12425   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12426 else
12427   with_gnu_ld=no
12428 fi
12429
12430 ac_prog=ld
12431 if test "$GCC" = yes; then
12432   # Check if gcc -print-prog-name=ld gives a path.
12433   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12434 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12435   case $host in
12436   *-*-mingw*)
12437     # gcc leaves a trailing carriage return which upsets mingw
12438     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12439   *)
12440     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12441   esac
12442   case $ac_prog in
12443     # Accept absolute paths.
12444     [\\/]* | ?:[\\/]*)
12445       re_direlt='/[^/][^/]*/\.\./'
12446       # Canonicalize the pathname of ld
12447       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12448       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12449         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12450       done
12451       test -z "$LD" && LD="$ac_prog"
12452       ;;
12453   "")
12454     # If it fails, then pretend we aren't using GCC.
12455     ac_prog=ld
12456     ;;
12457   *)
12458     # If it is relative, then search for the first ld in PATH.
12459     with_gnu_ld=unknown
12460     ;;
12461   esac
12462 elif test "$with_gnu_ld" = yes; then
12463   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12464 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12465 else
12466   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12467 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12468 fi
12469 if test "${lt_cv_path_LD+set}" = set; then
12470   echo $ECHO_N "(cached) $ECHO_C" >&6
12471 else
12472   if test -z "$LD"; then
12473   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12474   for ac_dir in $PATH; do
12475     IFS="$lt_save_ifs"
12476     test -z "$ac_dir" && ac_dir=.
12477     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12478       lt_cv_path_LD="$ac_dir/$ac_prog"
12479       # Check to see if the program is GNU ld.  I'd rather use --version,
12480       # but apparently some variants of GNU ld only accept -v.
12481       # Break only if it was the GNU/non-GNU ld that we prefer.
12482       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12483       *GNU* | *'with BFD'*)
12484         test "$with_gnu_ld" != no && break
12485         ;;
12486       *)
12487         test "$with_gnu_ld" != yes && break
12488         ;;
12489       esac
12490     fi
12491   done
12492   IFS="$lt_save_ifs"
12493 else
12494   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12495 fi
12496 fi
12497
12498 LD="$lt_cv_path_LD"
12499 if test -n "$LD"; then
12500   { echo "$as_me:$LINENO: result: $LD" >&5
12501 echo "${ECHO_T}$LD" >&6; }
12502 else
12503   { echo "$as_me:$LINENO: result: no" >&5
12504 echo "${ECHO_T}no" >&6; }
12505 fi
12506 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12507 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12508    { (exit 1); exit 1; }; }
12509 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12510 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12511 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12512   echo $ECHO_N "(cached) $ECHO_C" >&6
12513 else
12514   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12515 case `$LD -v 2>&1 </dev/null` in
12516 *GNU* | *'with BFD'*)
12517   lt_cv_prog_gnu_ld=yes
12518   ;;
12519 *)
12520   lt_cv_prog_gnu_ld=no
12521   ;;
12522 esac
12523 fi
12524 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12525 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12526 with_gnu_ld=$lt_cv_prog_gnu_ld
12527
12528
12529 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12530 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12531 if test "${lt_cv_ld_reload_flag+set}" = set; then
12532   echo $ECHO_N "(cached) $ECHO_C" >&6
12533 else
12534   lt_cv_ld_reload_flag='-r'
12535 fi
12536 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12537 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12538 reload_flag=$lt_cv_ld_reload_flag
12539 case $reload_flag in
12540 "" | " "*) ;;
12541 *) reload_flag=" $reload_flag" ;;
12542 esac
12543 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12544 case $host_os in
12545   darwin*)
12546     if test "$GCC" = yes; then
12547       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12548     else
12549       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12550     fi
12551     ;;
12552 esac
12553
12554 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12555 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12556 if test "${lt_cv_deplibs_check_method+set}" = set; then
12557   echo $ECHO_N "(cached) $ECHO_C" >&6
12558 else
12559   lt_cv_file_magic_cmd='$MAGIC_CMD'
12560 lt_cv_file_magic_test_file=
12561 lt_cv_deplibs_check_method='unknown'
12562 # Need to set the preceding variable on all platforms that support
12563 # interlibrary dependencies.
12564 # 'none' -- dependencies not supported.
12565 # `unknown' -- same as none, but documents that we really don't know.
12566 # 'pass_all' -- all dependencies passed with no checks.
12567 # 'test_compile' -- check by making test program.
12568 # 'file_magic [[regex]]' -- check by looking for files in library path
12569 # which responds to the $file_magic_cmd with a given extended regex.
12570 # If you have `file' or equivalent on your system and you're not sure
12571 # whether `pass_all' will *always* work, you probably want this one.
12572
12573 case $host_os in
12574 aix4* | aix5*)
12575   lt_cv_deplibs_check_method=pass_all
12576   ;;
12577
12578 beos*)
12579   lt_cv_deplibs_check_method=pass_all
12580   ;;
12581
12582 bsdi[45]*)
12583   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12584   lt_cv_file_magic_cmd='/usr/bin/file -L'
12585   lt_cv_file_magic_test_file=/shlib/libc.so
12586   ;;
12587
12588 cygwin*)
12589   # func_win32_libid is a shell function defined in ltmain.sh
12590   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12591   lt_cv_file_magic_cmd='func_win32_libid'
12592   ;;
12593
12594 mingw* | pw32*)
12595   # Base MSYS/MinGW do not provide the 'file' command needed by
12596   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12597   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12598   lt_cv_file_magic_cmd='$OBJDUMP -f'
12599   ;;
12600
12601 darwin* | rhapsody*)
12602   lt_cv_deplibs_check_method=pass_all
12603   ;;
12604
12605 freebsd* | kfreebsd*-gnu | dragonfly*)
12606   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12607     case $host_cpu in
12608     i*86 )
12609       # Not sure whether the presence of OpenBSD here was a mistake.
12610       # Let's accept both of them until this is cleared up.
12611       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12612       lt_cv_file_magic_cmd=/usr/bin/file
12613       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12614       ;;
12615     esac
12616   else
12617     lt_cv_deplibs_check_method=pass_all
12618   fi
12619   ;;
12620
12621 gnu*)
12622   lt_cv_deplibs_check_method=pass_all
12623   ;;
12624
12625 hpux10.20* | hpux11*)
12626   lt_cv_file_magic_cmd=/usr/bin/file
12627   case $host_cpu in
12628   ia64*)
12629     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12630     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12631     ;;
12632   hppa*64*)
12633     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]'
12634     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12635     ;;
12636   *)
12637     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12638     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12639     ;;
12640   esac
12641   ;;
12642
12643 interix3*)
12644   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12645   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12646   ;;
12647
12648 irix5* | irix6* | nonstopux*)
12649   case $LD in
12650   *-32|*"-32 ") libmagic=32-bit;;
12651   *-n32|*"-n32 ") libmagic=N32;;
12652   *-64|*"-64 ") libmagic=64-bit;;
12653   *) libmagic=never-match;;
12654   esac
12655   lt_cv_deplibs_check_method=pass_all
12656   ;;
12657
12658 # This must be Linux ELF.
12659 linux*)
12660   lt_cv_deplibs_check_method=pass_all
12661   ;;
12662
12663 netbsd*)
12664   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12665     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12666   else
12667     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12668   fi
12669   ;;
12670
12671 newos6*)
12672   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12673   lt_cv_file_magic_cmd=/usr/bin/file
12674   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12675   ;;
12676
12677 nto-qnx*)
12678   lt_cv_deplibs_check_method=unknown
12679   ;;
12680
12681 openbsd*)
12682   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12683     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12684   else
12685     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12686   fi
12687   ;;
12688
12689 osf3* | osf4* | osf5*)
12690   lt_cv_deplibs_check_method=pass_all
12691   ;;
12692
12693 solaris*)
12694   lt_cv_deplibs_check_method=pass_all
12695   ;;
12696
12697 sysv4 | sysv4.3*)
12698   case $host_vendor in
12699   motorola)
12700     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]'
12701     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12702     ;;
12703   ncr)
12704     lt_cv_deplibs_check_method=pass_all
12705     ;;
12706   sequent)
12707     lt_cv_file_magic_cmd='/bin/file'
12708     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12709     ;;
12710   sni)
12711     lt_cv_file_magic_cmd='/bin/file'
12712     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12713     lt_cv_file_magic_test_file=/lib/libc.so
12714     ;;
12715   siemens)
12716     lt_cv_deplibs_check_method=pass_all
12717     ;;
12718   pc)
12719     lt_cv_deplibs_check_method=pass_all
12720     ;;
12721   esac
12722   ;;
12723
12724 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12725   lt_cv_deplibs_check_method=pass_all
12726   ;;
12727 esac
12728
12729 fi
12730 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12731 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12732 file_magic_cmd=$lt_cv_file_magic_cmd
12733 deplibs_check_method=$lt_cv_deplibs_check_method
12734 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12735
12736
12737
12738 # If no C compiler was specified, use CC.
12739 LTCC=${LTCC-"$CC"}
12740
12741 # If no C compiler flags were specified, use CFLAGS.
12742 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12743
12744 # Allow CC to be a program name with arguments.
12745 compiler=$CC
12746
12747 # Check whether --enable-libtool-lock was given.
12748 if test "${enable_libtool_lock+set}" = set; then
12749   enableval=$enable_libtool_lock;
12750 fi
12751
12752 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12753
12754 # Some flags need to be propagated to the compiler or linker for good
12755 # libtool support.
12756 case $host in
12757 ia64-*-hpux*)
12758   # Find out which ABI we are using.
12759   echo 'int i;' > conftest.$ac_ext
12760   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12761   (eval $ac_compile) 2>&5
12762   ac_status=$?
12763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764   (exit $ac_status); }; then
12765     case `/usr/bin/file conftest.$ac_objext` in
12766     *ELF-32*)
12767       HPUX_IA64_MODE="32"
12768       ;;
12769     *ELF-64*)
12770       HPUX_IA64_MODE="64"
12771       ;;
12772     esac
12773   fi
12774   rm -rf conftest*
12775   ;;
12776 *-*-irix6*)
12777   # Find out which ABI we are using.
12778   echo '#line 12777 "configure"' > conftest.$ac_ext
12779   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12780   (eval $ac_compile) 2>&5
12781   ac_status=$?
12782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783   (exit $ac_status); }; then
12784    if test "$lt_cv_prog_gnu_ld" = yes; then
12785     case `/usr/bin/file conftest.$ac_objext` in
12786     *32-bit*)
12787       LD="${LD-ld} -melf32bsmip"
12788       ;;
12789     *N32*)
12790       LD="${LD-ld} -melf32bmipn32"
12791       ;;
12792     *64-bit*)
12793       LD="${LD-ld} -melf64bmip"
12794       ;;
12795     esac
12796    else
12797     case `/usr/bin/file conftest.$ac_objext` in
12798     *32-bit*)
12799       LD="${LD-ld} -32"
12800       ;;
12801     *N32*)
12802       LD="${LD-ld} -n32"
12803       ;;
12804     *64-bit*)
12805       LD="${LD-ld} -64"
12806       ;;
12807     esac
12808    fi
12809   fi
12810   rm -rf conftest*
12811   ;;
12812
12813 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12814   # Find out which ABI we are using.
12815   echo 'int i;' > conftest.$ac_ext
12816   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12817   (eval $ac_compile) 2>&5
12818   ac_status=$?
12819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820   (exit $ac_status); }; then
12821     case `/usr/bin/file conftest.o` in
12822     *32-bit*)
12823       case $host in
12824         x86_64-*linux*)
12825           LD="${LD-ld} -m elf_i386"
12826           ;;
12827         ppc64-*linux*|powerpc64-*linux*)
12828           LD="${LD-ld} -m elf32ppclinux"
12829           ;;
12830         s390x-*linux*)
12831           LD="${LD-ld} -m elf_s390"
12832           ;;
12833         sparc64-*linux*)
12834           LD="${LD-ld} -m elf32_sparc"
12835           ;;
12836       esac
12837       ;;
12838     *64-bit*)
12839       case $host in
12840         x86_64-*linux*)
12841           LD="${LD-ld} -m elf_x86_64"
12842           ;;
12843         ppc*-*linux*|powerpc*-*linux*)
12844           LD="${LD-ld} -m elf64ppc"
12845           ;;
12846         s390*-*linux*)
12847           LD="${LD-ld} -m elf64_s390"
12848           ;;
12849         sparc*-*linux*)
12850           LD="${LD-ld} -m elf64_sparc"
12851           ;;
12852       esac
12853       ;;
12854     esac
12855   fi
12856   rm -rf conftest*
12857   ;;
12858
12859 *-*-sco3.2v5*)
12860   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12861   SAVE_CFLAGS="$CFLAGS"
12862   CFLAGS="$CFLAGS -belf"
12863   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12864 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12865 if test "${lt_cv_cc_needs_belf+set}" = set; then
12866   echo $ECHO_N "(cached) $ECHO_C" >&6
12867 else
12868   ac_ext=c
12869 ac_cpp='$CPP $CPPFLAGS'
12870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12873
12874      cat >conftest.$ac_ext <<_ACEOF
12875 /* confdefs.h.  */
12876 _ACEOF
12877 cat confdefs.h >>conftest.$ac_ext
12878 cat >>conftest.$ac_ext <<_ACEOF
12879 /* end confdefs.h.  */
12880
12881 int
12882 main ()
12883 {
12884
12885   ;
12886   return 0;
12887 }
12888 _ACEOF
12889 rm -f conftest.$ac_objext conftest$ac_exeext
12890 if { (ac_try="$ac_link"
12891 case "(($ac_try" in
12892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893   *) ac_try_echo=$ac_try;;
12894 esac
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896   (eval "$ac_link") 2>conftest.er1
12897   ac_status=$?
12898   grep -v '^ *+' conftest.er1 >conftest.err
12899   rm -f conftest.er1
12900   cat conftest.err >&5
12901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902   (exit $ac_status); } &&
12903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12904   { (case "(($ac_try" in
12905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906   *) ac_try_echo=$ac_try;;
12907 esac
12908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909   (eval "$ac_try") 2>&5
12910   ac_status=$?
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); }; } &&
12913          { ac_try='test -s conftest$ac_exeext'
12914   { (case "(($ac_try" in
12915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916   *) ac_try_echo=$ac_try;;
12917 esac
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919   (eval "$ac_try") 2>&5
12920   ac_status=$?
12921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922   (exit $ac_status); }; }; then
12923   lt_cv_cc_needs_belf=yes
12924 else
12925   echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.$ac_ext >&5
12927
12928         lt_cv_cc_needs_belf=no
12929 fi
12930
12931 rm -f core conftest.err conftest.$ac_objext \
12932       conftest$ac_exeext conftest.$ac_ext
12933      ac_ext=c
12934 ac_cpp='$CPP $CPPFLAGS'
12935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12938
12939 fi
12940 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12941 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12942   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12943     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12944     CFLAGS="$SAVE_CFLAGS"
12945   fi
12946   ;;
12947 sparc*-*solaris*)
12948   # Find out which ABI we are using.
12949   echo 'int i;' > conftest.$ac_ext
12950   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12951   (eval $ac_compile) 2>&5
12952   ac_status=$?
12953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954   (exit $ac_status); }; then
12955     case `/usr/bin/file conftest.o` in
12956     *64-bit*)
12957       case $lt_cv_prog_gnu_ld in
12958       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12959       *)    LD="${LD-ld} -64" ;;
12960       esac
12961       ;;
12962     esac
12963   fi
12964   rm -rf conftest*
12965   ;;
12966
12967
12968 esac
12969
12970 need_locks="$enable_libtool_lock"
12971
12972
12973
12974
12975 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12976     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12977     (test "X$CXX" != "Xg++"))) ; then
12978   ac_ext=cpp
12979 ac_cpp='$CXXCPP $CPPFLAGS'
12980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12983 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12984 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12985 if test -z "$CXXCPP"; then
12986   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12987   echo $ECHO_N "(cached) $ECHO_C" >&6
12988 else
12989       # Double quotes because CXXCPP needs to be expanded
12990     for CXXCPP in "$CXX -E" "/lib/cpp"
12991     do
12992       ac_preproc_ok=false
12993 for ac_cxx_preproc_warn_flag in '' yes
12994 do
12995   # Use a header file that comes with gcc, so configuring glibc
12996   # with a fresh cross-compiler works.
12997   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12998   # <limits.h> exists even on freestanding compilers.
12999   # On the NeXT, cc -E runs the code through the compiler's parser,
13000   # not just through cpp. "Syntax error" is here to catch this case.
13001   cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h.  */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h.  */
13007 #ifdef __STDC__
13008 # include <limits.h>
13009 #else
13010 # include <assert.h>
13011 #endif
13012                      Syntax error
13013 _ACEOF
13014 if { (ac_try="$ac_cpp conftest.$ac_ext"
13015 case "(($ac_try" in
13016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017   *) ac_try_echo=$ac_try;;
13018 esac
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13021   ac_status=$?
13022   grep -v '^ *+' conftest.er1 >conftest.err
13023   rm -f conftest.er1
13024   cat conftest.err >&5
13025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026   (exit $ac_status); } >/dev/null; then
13027   if test -s conftest.err; then
13028     ac_cpp_err=$ac_cxx_preproc_warn_flag
13029     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13030   else
13031     ac_cpp_err=
13032   fi
13033 else
13034   ac_cpp_err=yes
13035 fi
13036 if test -z "$ac_cpp_err"; then
13037   :
13038 else
13039   echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13041
13042   # Broken: fails on valid input.
13043 continue
13044 fi
13045
13046 rm -f conftest.err conftest.$ac_ext
13047
13048   # OK, works on sane cases.  Now check whether nonexistent headers
13049   # can be detected and how.
13050   cat >conftest.$ac_ext <<_ACEOF
13051 /* confdefs.h.  */
13052 _ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h.  */
13056 #include <ac_nonexistent.h>
13057 _ACEOF
13058 if { (ac_try="$ac_cpp conftest.$ac_ext"
13059 case "(($ac_try" in
13060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061   *) ac_try_echo=$ac_try;;
13062 esac
13063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13065   ac_status=$?
13066   grep -v '^ *+' conftest.er1 >conftest.err
13067   rm -f conftest.er1
13068   cat conftest.err >&5
13069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070   (exit $ac_status); } >/dev/null; then
13071   if test -s conftest.err; then
13072     ac_cpp_err=$ac_cxx_preproc_warn_flag
13073     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13074   else
13075     ac_cpp_err=
13076   fi
13077 else
13078   ac_cpp_err=yes
13079 fi
13080 if test -z "$ac_cpp_err"; then
13081   # Broken: success on invalid input.
13082 continue
13083 else
13084   echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13086
13087   # Passes both tests.
13088 ac_preproc_ok=:
13089 break
13090 fi
13091
13092 rm -f conftest.err conftest.$ac_ext
13093
13094 done
13095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13096 rm -f conftest.err conftest.$ac_ext
13097 if $ac_preproc_ok; then
13098   break
13099 fi
13100
13101     done
13102     ac_cv_prog_CXXCPP=$CXXCPP
13103
13104 fi
13105   CXXCPP=$ac_cv_prog_CXXCPP
13106 else
13107   ac_cv_prog_CXXCPP=$CXXCPP
13108 fi
13109 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13110 echo "${ECHO_T}$CXXCPP" >&6; }
13111 ac_preproc_ok=false
13112 for ac_cxx_preproc_warn_flag in '' yes
13113 do
13114   # Use a header file that comes with gcc, so configuring glibc
13115   # with a fresh cross-compiler works.
13116   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13117   # <limits.h> exists even on freestanding compilers.
13118   # On the NeXT, cc -E runs the code through the compiler's parser,
13119   # not just through cpp. "Syntax error" is here to catch this case.
13120   cat >conftest.$ac_ext <<_ACEOF
13121 /* confdefs.h.  */
13122 _ACEOF
13123 cat confdefs.h >>conftest.$ac_ext
13124 cat >>conftest.$ac_ext <<_ACEOF
13125 /* end confdefs.h.  */
13126 #ifdef __STDC__
13127 # include <limits.h>
13128 #else
13129 # include <assert.h>
13130 #endif
13131                      Syntax error
13132 _ACEOF
13133 if { (ac_try="$ac_cpp conftest.$ac_ext"
13134 case "(($ac_try" in
13135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136   *) ac_try_echo=$ac_try;;
13137 esac
13138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13140   ac_status=$?
13141   grep -v '^ *+' conftest.er1 >conftest.err
13142   rm -f conftest.er1
13143   cat conftest.err >&5
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); } >/dev/null; then
13146   if test -s conftest.err; then
13147     ac_cpp_err=$ac_cxx_preproc_warn_flag
13148     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13149   else
13150     ac_cpp_err=
13151   fi
13152 else
13153   ac_cpp_err=yes
13154 fi
13155 if test -z "$ac_cpp_err"; then
13156   :
13157 else
13158   echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13160
13161   # Broken: fails on valid input.
13162 continue
13163 fi
13164
13165 rm -f conftest.err conftest.$ac_ext
13166
13167   # OK, works on sane cases.  Now check whether nonexistent headers
13168   # can be detected and how.
13169   cat >conftest.$ac_ext <<_ACEOF
13170 /* confdefs.h.  */
13171 _ACEOF
13172 cat confdefs.h >>conftest.$ac_ext
13173 cat >>conftest.$ac_ext <<_ACEOF
13174 /* end confdefs.h.  */
13175 #include <ac_nonexistent.h>
13176 _ACEOF
13177 if { (ac_try="$ac_cpp conftest.$ac_ext"
13178 case "(($ac_try" in
13179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180   *) ac_try_echo=$ac_try;;
13181 esac
13182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13184   ac_status=$?
13185   grep -v '^ *+' conftest.er1 >conftest.err
13186   rm -f conftest.er1
13187   cat conftest.err >&5
13188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189   (exit $ac_status); } >/dev/null; then
13190   if test -s conftest.err; then
13191     ac_cpp_err=$ac_cxx_preproc_warn_flag
13192     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13193   else
13194     ac_cpp_err=
13195   fi
13196 else
13197   ac_cpp_err=yes
13198 fi
13199 if test -z "$ac_cpp_err"; then
13200   # Broken: success on invalid input.
13201 continue
13202 else
13203   echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13205
13206   # Passes both tests.
13207 ac_preproc_ok=:
13208 break
13209 fi
13210
13211 rm -f conftest.err conftest.$ac_ext
13212
13213 done
13214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13215 rm -f conftest.err conftest.$ac_ext
13216 if $ac_preproc_ok; then
13217   :
13218 else
13219   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13220 See \`config.log' for more details." >&5
13221 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13222 See \`config.log' for more details." >&2;}
13223    { (exit 1); exit 1; }; }
13224 fi
13225
13226 ac_ext=cpp
13227 ac_cpp='$CXXCPP $CPPFLAGS'
13228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13231
13232 fi
13233
13234
13235 ac_ext=f
13236 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13237 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13238 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13239 if test -n "$ac_tool_prefix"; then
13240   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13241   do
13242     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13243 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13246 if test "${ac_cv_prog_F77+set}" = set; then
13247   echo $ECHO_N "(cached) $ECHO_C" >&6
13248 else
13249   if test -n "$F77"; then
13250   ac_cv_prog_F77="$F77" # Let the user override the test.
13251 else
13252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253 for as_dir in $PATH
13254 do
13255   IFS=$as_save_IFS
13256   test -z "$as_dir" && as_dir=.
13257   for ac_exec_ext in '' $ac_executable_extensions; do
13258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13259     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13261     break 2
13262   fi
13263 done
13264 done
13265 IFS=$as_save_IFS
13266
13267 fi
13268 fi
13269 F77=$ac_cv_prog_F77
13270 if test -n "$F77"; then
13271   { echo "$as_me:$LINENO: result: $F77" >&5
13272 echo "${ECHO_T}$F77" >&6; }
13273 else
13274   { echo "$as_me:$LINENO: result: no" >&5
13275 echo "${ECHO_T}no" >&6; }
13276 fi
13277
13278
13279     test -n "$F77" && break
13280   done
13281 fi
13282 if test -z "$F77"; then
13283   ac_ct_F77=$F77
13284   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13285 do
13286   # Extract the first word of "$ac_prog", so it can be a program name with args.
13287 set dummy $ac_prog; ac_word=$2
13288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13290 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13291   echo $ECHO_N "(cached) $ECHO_C" >&6
13292 else
13293   if test -n "$ac_ct_F77"; then
13294   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13295 else
13296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297 for as_dir in $PATH
13298 do
13299   IFS=$as_save_IFS
13300   test -z "$as_dir" && as_dir=.
13301   for ac_exec_ext in '' $ac_executable_extensions; do
13302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13303     ac_cv_prog_ac_ct_F77="$ac_prog"
13304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13305     break 2
13306   fi
13307 done
13308 done
13309 IFS=$as_save_IFS
13310
13311 fi
13312 fi
13313 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13314 if test -n "$ac_ct_F77"; then
13315   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13316 echo "${ECHO_T}$ac_ct_F77" >&6; }
13317 else
13318   { echo "$as_me:$LINENO: result: no" >&5
13319 echo "${ECHO_T}no" >&6; }
13320 fi
13321
13322
13323   test -n "$ac_ct_F77" && break
13324 done
13325
13326   if test "x$ac_ct_F77" = x; then
13327     F77=""
13328   else
13329     case $cross_compiling:$ac_tool_warned in
13330 yes:)
13331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13332 whose name does not start with the host triplet.  If you think this
13333 configuration is useful to you, please write to autoconf@gnu.org." >&5
13334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13335 whose name does not start with the host triplet.  If you think this
13336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13337 ac_tool_warned=yes ;;
13338 esac
13339     F77=$ac_ct_F77
13340   fi
13341 fi
13342
13343
13344 # Provide some information about the compiler.
13345 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13346 ac_compiler=`set X $ac_compile; echo $2`
13347 { (ac_try="$ac_compiler --version >&5"
13348 case "(($ac_try" in
13349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350   *) ac_try_echo=$ac_try;;
13351 esac
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353   (eval "$ac_compiler --version >&5") 2>&5
13354   ac_status=$?
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); }
13357 { (ac_try="$ac_compiler -v >&5"
13358 case "(($ac_try" in
13359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360   *) ac_try_echo=$ac_try;;
13361 esac
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363   (eval "$ac_compiler -v >&5") 2>&5
13364   ac_status=$?
13365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366   (exit $ac_status); }
13367 { (ac_try="$ac_compiler -V >&5"
13368 case "(($ac_try" in
13369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370   *) ac_try_echo=$ac_try;;
13371 esac
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373   (eval "$ac_compiler -V >&5") 2>&5
13374   ac_status=$?
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); }
13377 rm -f a.out
13378
13379 # If we don't use `.F' as extension, the preprocessor is not run on the
13380 # input file.  (Note that this only needs to work for GNU compilers.)
13381 ac_save_ext=$ac_ext
13382 ac_ext=F
13383 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13384 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13385 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13386   echo $ECHO_N "(cached) $ECHO_C" >&6
13387 else
13388   cat >conftest.$ac_ext <<_ACEOF
13389       program main
13390 #ifndef __GNUC__
13391        choke me
13392 #endif
13393
13394       end
13395 _ACEOF
13396 rm -f conftest.$ac_objext
13397 if { (ac_try="$ac_compile"
13398 case "(($ac_try" in
13399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400   *) ac_try_echo=$ac_try;;
13401 esac
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403   (eval "$ac_compile") 2>conftest.er1
13404   ac_status=$?
13405   grep -v '^ *+' conftest.er1 >conftest.err
13406   rm -f conftest.er1
13407   cat conftest.err >&5
13408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409   (exit $ac_status); } &&
13410          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13411   { (case "(($ac_try" in
13412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413   *) ac_try_echo=$ac_try;;
13414 esac
13415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416   (eval "$ac_try") 2>&5
13417   ac_status=$?
13418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419   (exit $ac_status); }; } &&
13420          { ac_try='test -s conftest.$ac_objext'
13421   { (case "(($ac_try" in
13422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423   *) ac_try_echo=$ac_try;;
13424 esac
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426   (eval "$ac_try") 2>&5
13427   ac_status=$?
13428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429   (exit $ac_status); }; }; then
13430   ac_compiler_gnu=yes
13431 else
13432   echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13434
13435         ac_compiler_gnu=no
13436 fi
13437
13438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13439 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13440
13441 fi
13442 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13443 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13444 ac_ext=$ac_save_ext
13445 ac_test_FFLAGS=${FFLAGS+set}
13446 ac_save_FFLAGS=$FFLAGS
13447 FFLAGS=
13448 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13449 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13450 if test "${ac_cv_prog_f77_g+set}" = set; then
13451   echo $ECHO_N "(cached) $ECHO_C" >&6
13452 else
13453   FFLAGS=-g
13454 cat >conftest.$ac_ext <<_ACEOF
13455       program main
13456
13457       end
13458 _ACEOF
13459 rm -f conftest.$ac_objext
13460 if { (ac_try="$ac_compile"
13461 case "(($ac_try" in
13462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463   *) ac_try_echo=$ac_try;;
13464 esac
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466   (eval "$ac_compile") 2>conftest.er1
13467   ac_status=$?
13468   grep -v '^ *+' conftest.er1 >conftest.err
13469   rm -f conftest.er1
13470   cat conftest.err >&5
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); } &&
13473          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13474   { (case "(($ac_try" in
13475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13476   *) ac_try_echo=$ac_try;;
13477 esac
13478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13479   (eval "$ac_try") 2>&5
13480   ac_status=$?
13481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482   (exit $ac_status); }; } &&
13483          { ac_try='test -s conftest.$ac_objext'
13484   { (case "(($ac_try" in
13485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486   *) ac_try_echo=$ac_try;;
13487 esac
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489   (eval "$ac_try") 2>&5
13490   ac_status=$?
13491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492   (exit $ac_status); }; }; then
13493   ac_cv_prog_f77_g=yes
13494 else
13495   echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13497
13498         ac_cv_prog_f77_g=no
13499 fi
13500
13501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13502
13503 fi
13504 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13505 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13506 if test "$ac_test_FFLAGS" = set; then
13507   FFLAGS=$ac_save_FFLAGS
13508 elif test $ac_cv_prog_f77_g = yes; then
13509   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13510     FFLAGS="-g -O2"
13511   else
13512     FFLAGS="-g"
13513   fi
13514 else
13515   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13516     FFLAGS="-O2"
13517   else
13518     FFLAGS=
13519   fi
13520 fi
13521
13522 G77=`test $ac_compiler_gnu = yes && echo yes`
13523 ac_ext=c
13524 ac_cpp='$CPP $CPPFLAGS'
13525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13528
13529
13530
13531 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13532
13533 # find the maximum length of command line arguments
13534 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13535 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13536 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13537   echo $ECHO_N "(cached) $ECHO_C" >&6
13538 else
13539     i=0
13540   teststring="ABCD"
13541
13542   case $build_os in
13543   msdosdjgpp*)
13544     # On DJGPP, this test can blow up pretty badly due to problems in libc
13545     # (any single argument exceeding 2000 bytes causes a buffer overrun
13546     # during glob expansion).  Even if it were fixed, the result of this
13547     # check would be larger than it should be.
13548     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13549     ;;
13550
13551   gnu*)
13552     # Under GNU Hurd, this test is not required because there is
13553     # no limit to the length of command line arguments.
13554     # Libtool will interpret -1 as no limit whatsoever
13555     lt_cv_sys_max_cmd_len=-1;
13556     ;;
13557
13558   cygwin* | mingw*)
13559     # On Win9x/ME, this test blows up -- it succeeds, but takes
13560     # about 5 minutes as the teststring grows exponentially.
13561     # Worse, since 9x/ME are not pre-emptively multitasking,
13562     # you end up with a "frozen" computer, even though with patience
13563     # the test eventually succeeds (with a max line length of 256k).
13564     # Instead, let's just punt: use the minimum linelength reported by
13565     # all of the supported platforms: 8192 (on NT/2K/XP).
13566     lt_cv_sys_max_cmd_len=8192;
13567     ;;
13568
13569   amigaos*)
13570     # On AmigaOS with pdksh, this test takes hours, literally.
13571     # So we just punt and use a minimum line length of 8192.
13572     lt_cv_sys_max_cmd_len=8192;
13573     ;;
13574
13575   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13576     # This has been around since 386BSD, at least.  Likely further.
13577     if test -x /sbin/sysctl; then
13578       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13579     elif test -x /usr/sbin/sysctl; then
13580       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13581     else
13582       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13583     fi
13584     # And add a safety zone
13585     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13586     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13587     ;;
13588
13589   interix*)
13590     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13591     lt_cv_sys_max_cmd_len=196608
13592     ;;
13593
13594   osf*)
13595     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13596     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13597     # nice to cause kernel panics so lets avoid the loop below.
13598     # First set a reasonable default.
13599     lt_cv_sys_max_cmd_len=16384
13600     #
13601     if test -x /sbin/sysconfig; then
13602       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13603         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13604       esac
13605     fi
13606     ;;
13607   sco3.2v5*)
13608     lt_cv_sys_max_cmd_len=102400
13609     ;;
13610   sysv5* | sco5v6* | sysv4.2uw2*)
13611     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13612     if test -n "$kargmax"; then
13613       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13614     else
13615       lt_cv_sys_max_cmd_len=32768
13616     fi
13617     ;;
13618   *)
13619     # If test is not a shell built-in, we'll probably end up computing a
13620     # maximum length that is only half of the actual maximum length, but
13621     # we can't tell.
13622     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13623     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13624                = "XX$teststring") >/dev/null 2>&1 &&
13625             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13626             lt_cv_sys_max_cmd_len=$new_result &&
13627             test $i != 17 # 1/2 MB should be enough
13628     do
13629       i=`expr $i + 1`
13630       teststring=$teststring$teststring
13631     done
13632     teststring=
13633     # Add a significant safety factor because C++ compilers can tack on massive
13634     # amounts of additional arguments before passing them to the linker.
13635     # It appears as though 1/2 is a usable value.
13636     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13637     ;;
13638   esac
13639
13640 fi
13641
13642 if test -n $lt_cv_sys_max_cmd_len ; then
13643   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13644 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13645 else
13646   { echo "$as_me:$LINENO: result: none" >&5
13647 echo "${ECHO_T}none" >&6; }
13648 fi
13649
13650
13651
13652
13653 # Check for command to grab the raw symbol name followed by C symbol from nm.
13654 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13655 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13656 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13657   echo $ECHO_N "(cached) $ECHO_C" >&6
13658 else
13659
13660 # These are sane defaults that work on at least a few old systems.
13661 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13662
13663 # Character class describing NM global symbol codes.
13664 symcode='[BCDEGRST]'
13665
13666 # Regexp to match symbols that can be accessed directly from C.
13667 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13668
13669 # Transform an extracted symbol line into a proper C declaration
13670 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13671
13672 # Transform an extracted symbol line into symbol name and symbol address
13673 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'"
13674
13675 # Define system-specific variables.
13676 case $host_os in
13677 aix*)
13678   symcode='[BCDT]'
13679   ;;
13680 cygwin* | mingw* | pw32*)
13681   symcode='[ABCDGISTW]'
13682   ;;
13683 hpux*) # Its linker distinguishes data from code symbols
13684   if test "$host_cpu" = ia64; then
13685     symcode='[ABCDEGRST]'
13686   fi
13687   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13688   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'"
13689   ;;
13690 linux*)
13691   if test "$host_cpu" = ia64; then
13692     symcode='[ABCDGIRSTW]'
13693     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13694     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'"
13695   fi
13696   ;;
13697 irix* | nonstopux*)
13698   symcode='[BCDEGRST]'
13699   ;;
13700 osf*)
13701   symcode='[BCDEGQRST]'
13702   ;;
13703 solaris*)
13704   symcode='[BDRT]'
13705   ;;
13706 sco3.2v5*)
13707   symcode='[DT]'
13708   ;;
13709 sysv4.2uw2*)
13710   symcode='[DT]'
13711   ;;
13712 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13713   symcode='[ABDT]'
13714   ;;
13715 sysv4)
13716   symcode='[DFNSTU]'
13717   ;;
13718 esac
13719
13720 # Handle CRLF in mingw tool chain
13721 opt_cr=
13722 case $build_os in
13723 mingw*)
13724   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13725   ;;
13726 esac
13727
13728 # If we're using GNU nm, then use its standard symbol codes.
13729 case `$NM -V 2>&1` in
13730 *GNU* | *'with BFD'*)
13731   symcode='[ABCDGIRSTW]' ;;
13732 esac
13733
13734 # Try without a prefix undercore, then with it.
13735 for ac_symprfx in "" "_"; do
13736
13737   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13738   symxfrm="\\1 $ac_symprfx\\2 \\2"
13739
13740   # Write the raw and C identifiers.
13741   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13742
13743   # Check to see that the pipe works correctly.
13744   pipe_works=no
13745
13746   rm -f conftest*
13747   cat > conftest.$ac_ext <<EOF
13748 #ifdef __cplusplus
13749 extern "C" {
13750 #endif
13751 char nm_test_var;
13752 void nm_test_func(){}
13753 #ifdef __cplusplus
13754 }
13755 #endif
13756 int main(){nm_test_var='a';nm_test_func();return(0);}
13757 EOF
13758
13759   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13760   (eval $ac_compile) 2>&5
13761   ac_status=$?
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); }; then
13764     # Now try to grab the symbols.
13765     nlist=conftest.nm
13766     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13767   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13768   ac_status=$?
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); } && test -s "$nlist"; then
13771       # Try sorting and uniquifying the output.
13772       if sort "$nlist" | uniq > "$nlist"T; then
13773         mv -f "$nlist"T "$nlist"
13774       else
13775         rm -f "$nlist"T
13776       fi
13777
13778       # Make sure that we snagged all the symbols we need.
13779       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13780         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13781           cat <<EOF > conftest.$ac_ext
13782 #ifdef __cplusplus
13783 extern "C" {
13784 #endif
13785
13786 EOF
13787           # Now generate the symbol file.
13788           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13789
13790           cat <<EOF >> conftest.$ac_ext
13791 #if defined (__STDC__) && __STDC__
13792 # define lt_ptr_t void *
13793 #else
13794 # define lt_ptr_t char *
13795 # define const
13796 #endif
13797
13798 /* The mapping between symbol names and symbols. */
13799 const struct {
13800   const char *name;
13801   lt_ptr_t address;
13802 }
13803 lt_preloaded_symbols[] =
13804 {
13805 EOF
13806           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13807           cat <<\EOF >> conftest.$ac_ext
13808   {0, (lt_ptr_t) 0}
13809 };
13810
13811 #ifdef __cplusplus
13812 }
13813 #endif
13814 EOF
13815           # Now try linking the two files.
13816           mv conftest.$ac_objext conftstm.$ac_objext
13817           lt_save_LIBS="$LIBS"
13818           lt_save_CFLAGS="$CFLAGS"
13819           LIBS="conftstm.$ac_objext"
13820           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13821           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13822   (eval $ac_link) 2>&5
13823   ac_status=$?
13824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13826             pipe_works=yes
13827           fi
13828           LIBS="$lt_save_LIBS"
13829           CFLAGS="$lt_save_CFLAGS"
13830         else
13831           echo "cannot find nm_test_func in $nlist" >&5
13832         fi
13833       else
13834         echo "cannot find nm_test_var in $nlist" >&5
13835       fi
13836     else
13837       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13838     fi
13839   else
13840     echo "$progname: failed program was:" >&5
13841     cat conftest.$ac_ext >&5
13842   fi
13843   rm -f conftest* conftst*
13844
13845   # Do not use the global_symbol_pipe unless it works.
13846   if test "$pipe_works" = yes; then
13847     break
13848   else
13849     lt_cv_sys_global_symbol_pipe=
13850   fi
13851 done
13852
13853 fi
13854
13855 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13856   lt_cv_sys_global_symbol_to_cdecl=
13857 fi
13858 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13859   { echo "$as_me:$LINENO: result: failed" >&5
13860 echo "${ECHO_T}failed" >&6; }
13861 else
13862   { echo "$as_me:$LINENO: result: ok" >&5
13863 echo "${ECHO_T}ok" >&6; }
13864 fi
13865
13866 { echo "$as_me:$LINENO: checking for objdir" >&5
13867 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13868 if test "${lt_cv_objdir+set}" = set; then
13869   echo $ECHO_N "(cached) $ECHO_C" >&6
13870 else
13871   rm -f .libs 2>/dev/null
13872 mkdir .libs 2>/dev/null
13873 if test -d .libs; then
13874   lt_cv_objdir=.libs
13875 else
13876   # MS-DOS does not allow filenames that begin with a dot.
13877   lt_cv_objdir=_libs
13878 fi
13879 rmdir .libs 2>/dev/null
13880 fi
13881 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13882 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13883 objdir=$lt_cv_objdir
13884
13885
13886
13887
13888
13889 case $host_os in
13890 aix3*)
13891   # AIX sometimes has problems with the GCC collect2 program.  For some
13892   # reason, if we set the COLLECT_NAMES environment variable, the problems
13893   # vanish in a puff of smoke.
13894   if test "X${COLLECT_NAMES+set}" != Xset; then
13895     COLLECT_NAMES=
13896     export COLLECT_NAMES
13897   fi
13898   ;;
13899 esac
13900
13901 # Sed substitution that helps us do robust quoting.  It backslashifies
13902 # metacharacters that are still active within double-quoted strings.
13903 Xsed='sed -e 1s/^X//'
13904 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13905
13906 # Same as above, but do not quote variable references.
13907 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13908
13909 # Sed substitution to delay expansion of an escaped shell variable in a
13910 # double_quote_subst'ed string.
13911 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13912
13913 # Sed substitution to avoid accidental globbing in evaled expressions
13914 no_glob_subst='s/\*/\\\*/g'
13915
13916 # Constants:
13917 rm="rm -f"
13918
13919 # Global variables:
13920 default_ofile=mklib
13921 can_build_shared=yes
13922
13923 # All known linkers require a `.a' archive for static linking (except MSVC,
13924 # which needs '.lib').
13925 libext=a
13926 ltmain="$ac_aux_dir/ltmain.sh"
13927 ofile="$default_ofile"
13928 with_gnu_ld="$lt_cv_prog_gnu_ld"
13929
13930 if test -n "$ac_tool_prefix"; then
13931   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13932 set dummy ${ac_tool_prefix}ar; ac_word=$2
13933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13935 if test "${ac_cv_prog_AR+set}" = set; then
13936   echo $ECHO_N "(cached) $ECHO_C" >&6
13937 else
13938   if test -n "$AR"; then
13939   ac_cv_prog_AR="$AR" # Let the user override the test.
13940 else
13941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13942 for as_dir in $PATH
13943 do
13944   IFS=$as_save_IFS
13945   test -z "$as_dir" && as_dir=.
13946   for ac_exec_ext in '' $ac_executable_extensions; do
13947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13948     ac_cv_prog_AR="${ac_tool_prefix}ar"
13949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13950     break 2
13951   fi
13952 done
13953 done
13954 IFS=$as_save_IFS
13955
13956 fi
13957 fi
13958 AR=$ac_cv_prog_AR
13959 if test -n "$AR"; then
13960   { echo "$as_me:$LINENO: result: $AR" >&5
13961 echo "${ECHO_T}$AR" >&6; }
13962 else
13963   { echo "$as_me:$LINENO: result: no" >&5
13964 echo "${ECHO_T}no" >&6; }
13965 fi
13966
13967
13968 fi
13969 if test -z "$ac_cv_prog_AR"; then
13970   ac_ct_AR=$AR
13971   # Extract the first word of "ar", so it can be a program name with args.
13972 set dummy ar; ac_word=$2
13973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13975 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13976   echo $ECHO_N "(cached) $ECHO_C" >&6
13977 else
13978   if test -n "$ac_ct_AR"; then
13979   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13980 else
13981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982 for as_dir in $PATH
13983 do
13984   IFS=$as_save_IFS
13985   test -z "$as_dir" && as_dir=.
13986   for ac_exec_ext in '' $ac_executable_extensions; do
13987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13988     ac_cv_prog_ac_ct_AR="ar"
13989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13990     break 2
13991   fi
13992 done
13993 done
13994 IFS=$as_save_IFS
13995
13996 fi
13997 fi
13998 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13999 if test -n "$ac_ct_AR"; then
14000   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14001 echo "${ECHO_T}$ac_ct_AR" >&6; }
14002 else
14003   { echo "$as_me:$LINENO: result: no" >&5
14004 echo "${ECHO_T}no" >&6; }
14005 fi
14006
14007   if test "x$ac_ct_AR" = x; then
14008     AR="false"
14009   else
14010     case $cross_compiling:$ac_tool_warned in
14011 yes:)
14012 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14013 whose name does not start with the host triplet.  If you think this
14014 configuration is useful to you, please write to autoconf@gnu.org." >&5
14015 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14016 whose name does not start with the host triplet.  If you think this
14017 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14018 ac_tool_warned=yes ;;
14019 esac
14020     AR=$ac_ct_AR
14021   fi
14022 else
14023   AR="$ac_cv_prog_AR"
14024 fi
14025
14026 if test -n "$ac_tool_prefix"; then
14027   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14028 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14031 if test "${ac_cv_prog_RANLIB+set}" = set; then
14032   echo $ECHO_N "(cached) $ECHO_C" >&6
14033 else
14034   if test -n "$RANLIB"; then
14035   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14036 else
14037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14038 for as_dir in $PATH
14039 do
14040   IFS=$as_save_IFS
14041   test -z "$as_dir" && as_dir=.
14042   for ac_exec_ext in '' $ac_executable_extensions; do
14043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14044     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14046     break 2
14047   fi
14048 done
14049 done
14050 IFS=$as_save_IFS
14051
14052 fi
14053 fi
14054 RANLIB=$ac_cv_prog_RANLIB
14055 if test -n "$RANLIB"; then
14056   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14057 echo "${ECHO_T}$RANLIB" >&6; }
14058 else
14059   { echo "$as_me:$LINENO: result: no" >&5
14060 echo "${ECHO_T}no" >&6; }
14061 fi
14062
14063
14064 fi
14065 if test -z "$ac_cv_prog_RANLIB"; then
14066   ac_ct_RANLIB=$RANLIB
14067   # Extract the first word of "ranlib", so it can be a program name with args.
14068 set dummy ranlib; ac_word=$2
14069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14071 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14072   echo $ECHO_N "(cached) $ECHO_C" >&6
14073 else
14074   if test -n "$ac_ct_RANLIB"; then
14075   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14076 else
14077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14078 for as_dir in $PATH
14079 do
14080   IFS=$as_save_IFS
14081   test -z "$as_dir" && as_dir=.
14082   for ac_exec_ext in '' $ac_executable_extensions; do
14083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14084     ac_cv_prog_ac_ct_RANLIB="ranlib"
14085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14086     break 2
14087   fi
14088 done
14089 done
14090 IFS=$as_save_IFS
14091
14092 fi
14093 fi
14094 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14095 if test -n "$ac_ct_RANLIB"; then
14096   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14097 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14098 else
14099   { echo "$as_me:$LINENO: result: no" >&5
14100 echo "${ECHO_T}no" >&6; }
14101 fi
14102
14103   if test "x$ac_ct_RANLIB" = x; then
14104     RANLIB=":"
14105   else
14106     case $cross_compiling:$ac_tool_warned in
14107 yes:)
14108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14109 whose name does not start with the host triplet.  If you think this
14110 configuration is useful to you, please write to autoconf@gnu.org." >&5
14111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14112 whose name does not start with the host triplet.  If you think this
14113 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14114 ac_tool_warned=yes ;;
14115 esac
14116     RANLIB=$ac_ct_RANLIB
14117   fi
14118 else
14119   RANLIB="$ac_cv_prog_RANLIB"
14120 fi
14121
14122 if test -n "$ac_tool_prefix"; then
14123   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14124 set dummy ${ac_tool_prefix}strip; ac_word=$2
14125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14127 if test "${ac_cv_prog_STRIP+set}" = set; then
14128   echo $ECHO_N "(cached) $ECHO_C" >&6
14129 else
14130   if test -n "$STRIP"; then
14131   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14132 else
14133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14134 for as_dir in $PATH
14135 do
14136   IFS=$as_save_IFS
14137   test -z "$as_dir" && as_dir=.
14138   for ac_exec_ext in '' $ac_executable_extensions; do
14139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14140     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14142     break 2
14143   fi
14144 done
14145 done
14146 IFS=$as_save_IFS
14147
14148 fi
14149 fi
14150 STRIP=$ac_cv_prog_STRIP
14151 if test -n "$STRIP"; then
14152   { echo "$as_me:$LINENO: result: $STRIP" >&5
14153 echo "${ECHO_T}$STRIP" >&6; }
14154 else
14155   { echo "$as_me:$LINENO: result: no" >&5
14156 echo "${ECHO_T}no" >&6; }
14157 fi
14158
14159
14160 fi
14161 if test -z "$ac_cv_prog_STRIP"; then
14162   ac_ct_STRIP=$STRIP
14163   # Extract the first word of "strip", so it can be a program name with args.
14164 set dummy strip; ac_word=$2
14165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14167 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14168   echo $ECHO_N "(cached) $ECHO_C" >&6
14169 else
14170   if test -n "$ac_ct_STRIP"; then
14171   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14172 else
14173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14174 for as_dir in $PATH
14175 do
14176   IFS=$as_save_IFS
14177   test -z "$as_dir" && as_dir=.
14178   for ac_exec_ext in '' $ac_executable_extensions; do
14179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14180     ac_cv_prog_ac_ct_STRIP="strip"
14181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14182     break 2
14183   fi
14184 done
14185 done
14186 IFS=$as_save_IFS
14187
14188 fi
14189 fi
14190 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14191 if test -n "$ac_ct_STRIP"; then
14192   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14193 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14194 else
14195   { echo "$as_me:$LINENO: result: no" >&5
14196 echo "${ECHO_T}no" >&6; }
14197 fi
14198
14199   if test "x$ac_ct_STRIP" = x; then
14200     STRIP=":"
14201   else
14202     case $cross_compiling:$ac_tool_warned in
14203 yes:)
14204 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14205 whose name does not start with the host triplet.  If you think this
14206 configuration is useful to you, please write to autoconf@gnu.org." >&5
14207 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14208 whose name does not start with the host triplet.  If you think this
14209 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14210 ac_tool_warned=yes ;;
14211 esac
14212     STRIP=$ac_ct_STRIP
14213   fi
14214 else
14215   STRIP="$ac_cv_prog_STRIP"
14216 fi
14217
14218
14219 old_CC="$CC"
14220 old_CFLAGS="$CFLAGS"
14221
14222 # Set sane defaults for various variables
14223 test -z "$AR" && AR=ar
14224 test -z "$AR_FLAGS" && AR_FLAGS=cru
14225 test -z "$AS" && AS=as
14226 test -z "$CC" && CC=cc
14227 test -z "$LTCC" && LTCC=$CC
14228 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14229 test -z "$DLLTOOL" && DLLTOOL=dlltool
14230 test -z "$LD" && LD=ld
14231 test -z "$LN_S" && LN_S="ln -s"
14232 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14233 test -z "$NM" && NM=nm
14234 test -z "$SED" && SED=sed
14235 test -z "$OBJDUMP" && OBJDUMP=objdump
14236 test -z "$RANLIB" && RANLIB=:
14237 test -z "$STRIP" && STRIP=:
14238 test -z "$ac_objext" && ac_objext=o
14239
14240 # Determine commands to create old-style static archives.
14241 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14242 old_postinstall_cmds='chmod 644 $oldlib'
14243 old_postuninstall_cmds=
14244
14245 if test -n "$RANLIB"; then
14246   case $host_os in
14247   openbsd*)
14248     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14249     ;;
14250   *)
14251     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14252     ;;
14253   esac
14254   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14255 fi
14256
14257 for cc_temp in $compiler""; do
14258   case $cc_temp in
14259     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14260     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14261     \-*) ;;
14262     *) break;;
14263   esac
14264 done
14265 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14266
14267
14268 # Only perform the check for file, if the check method requires it
14269 case $deplibs_check_method in
14270 file_magic*)
14271   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14272     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14273 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14274 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14275   echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277   case $MAGIC_CMD in
14278 [\\/*] |  ?:[\\/]*)
14279   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14280   ;;
14281 *)
14282   lt_save_MAGIC_CMD="$MAGIC_CMD"
14283   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14284   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14285   for ac_dir in $ac_dummy; do
14286     IFS="$lt_save_ifs"
14287     test -z "$ac_dir" && ac_dir=.
14288     if test -f $ac_dir/${ac_tool_prefix}file; then
14289       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14290       if test -n "$file_magic_test_file"; then
14291         case $deplibs_check_method in
14292         "file_magic "*)
14293           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14294           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14295           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14296             $EGREP "$file_magic_regex" > /dev/null; then
14297             :
14298           else
14299             cat <<EOF 1>&2
14300
14301 *** Warning: the command libtool uses to detect shared libraries,
14302 *** $file_magic_cmd, produces output that libtool cannot recognize.
14303 *** The result is that libtool may fail to recognize shared libraries
14304 *** as such.  This will affect the creation of libtool libraries that
14305 *** depend on shared libraries, but programs linked with such libtool
14306 *** libraries will work regardless of this problem.  Nevertheless, you
14307 *** may want to report the problem to your system manager and/or to
14308 *** bug-libtool@gnu.org
14309
14310 EOF
14311           fi ;;
14312         esac
14313       fi
14314       break
14315     fi
14316   done
14317   IFS="$lt_save_ifs"
14318   MAGIC_CMD="$lt_save_MAGIC_CMD"
14319   ;;
14320 esac
14321 fi
14322
14323 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14324 if test -n "$MAGIC_CMD"; then
14325   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14326 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14327 else
14328   { echo "$as_me:$LINENO: result: no" >&5
14329 echo "${ECHO_T}no" >&6; }
14330 fi
14331
14332 if test -z "$lt_cv_path_MAGIC_CMD"; then
14333   if test -n "$ac_tool_prefix"; then
14334     { echo "$as_me:$LINENO: checking for file" >&5
14335 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14336 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14337   echo $ECHO_N "(cached) $ECHO_C" >&6
14338 else
14339   case $MAGIC_CMD in
14340 [\\/*] |  ?:[\\/]*)
14341   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14342   ;;
14343 *)
14344   lt_save_MAGIC_CMD="$MAGIC_CMD"
14345   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14346   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14347   for ac_dir in $ac_dummy; do
14348     IFS="$lt_save_ifs"
14349     test -z "$ac_dir" && ac_dir=.
14350     if test -f $ac_dir/file; then
14351       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14352       if test -n "$file_magic_test_file"; then
14353         case $deplibs_check_method in
14354         "file_magic "*)
14355           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14356           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14357           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14358             $EGREP "$file_magic_regex" > /dev/null; then
14359             :
14360           else
14361             cat <<EOF 1>&2
14362
14363 *** Warning: the command libtool uses to detect shared libraries,
14364 *** $file_magic_cmd, produces output that libtool cannot recognize.
14365 *** The result is that libtool may fail to recognize shared libraries
14366 *** as such.  This will affect the creation of libtool libraries that
14367 *** depend on shared libraries, but programs linked with such libtool
14368 *** libraries will work regardless of this problem.  Nevertheless, you
14369 *** may want to report the problem to your system manager and/or to
14370 *** bug-libtool@gnu.org
14371
14372 EOF
14373           fi ;;
14374         esac
14375       fi
14376       break
14377     fi
14378   done
14379   IFS="$lt_save_ifs"
14380   MAGIC_CMD="$lt_save_MAGIC_CMD"
14381   ;;
14382 esac
14383 fi
14384
14385 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14386 if test -n "$MAGIC_CMD"; then
14387   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14388 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14389 else
14390   { echo "$as_me:$LINENO: result: no" >&5
14391 echo "${ECHO_T}no" >&6; }
14392 fi
14393
14394   else
14395     MAGIC_CMD=:
14396   fi
14397 fi
14398
14399   fi
14400   ;;
14401 esac
14402
14403 enable_dlopen=yes
14404 enable_win32_dll=no
14405
14406 # Check whether --enable-libtool-lock was given.
14407 if test "${enable_libtool_lock+set}" = set; then
14408   enableval=$enable_libtool_lock;
14409 fi
14410
14411 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14412
14413
14414 # Check whether --with-pic was given.
14415 if test "${with_pic+set}" = set; then
14416   withval=$with_pic; pic_mode="$withval"
14417 else
14418   pic_mode=default
14419 fi
14420
14421 test -z "$pic_mode" && pic_mode=default
14422
14423 # Use C for the default configuration in the libtool script
14424 tagname=
14425 lt_save_CC="$CC"
14426 ac_ext=c
14427 ac_cpp='$CPP $CPPFLAGS'
14428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14431
14432
14433 # Source file extension for C test sources.
14434 ac_ext=c
14435
14436 # Object file extension for compiled C test sources.
14437 objext=o
14438 objext=$objext
14439
14440 # Code to be used in simple compile tests
14441 lt_simple_compile_test_code="int some_variable = 0;\n"
14442
14443 # Code to be used in simple link tests
14444 lt_simple_link_test_code='int main(){return(0);}\n'
14445
14446
14447 # If no C compiler was specified, use CC.
14448 LTCC=${LTCC-"$CC"}
14449
14450 # If no C compiler flags were specified, use CFLAGS.
14451 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14452
14453 # Allow CC to be a program name with arguments.
14454 compiler=$CC
14455
14456
14457 # save warnings/boilerplate of simple test code
14458 ac_outfile=conftest.$ac_objext
14459 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14460 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14461 _lt_compiler_boilerplate=`cat conftest.err`
14462 $rm conftest*
14463
14464 ac_outfile=conftest.$ac_objext
14465 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14466 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14467 _lt_linker_boilerplate=`cat conftest.err`
14468 $rm conftest*
14469
14470
14471
14472 lt_prog_compiler_no_builtin_flag=
14473
14474 if test "$GCC" = yes; then
14475   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14476
14477
14478 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14479 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14480 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14481   echo $ECHO_N "(cached) $ECHO_C" >&6
14482 else
14483   lt_cv_prog_compiler_rtti_exceptions=no
14484   ac_outfile=conftest.$ac_objext
14485    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14486    lt_compiler_flag="-fno-rtti -fno-exceptions"
14487    # Insert the option either (1) after the last *FLAGS variable, or
14488    # (2) before a word containing "conftest.", or (3) at the end.
14489    # Note that $ac_compile itself does not contain backslashes and begins
14490    # with a dollar sign (not a hyphen), so the echo should work correctly.
14491    # The option is referenced via a variable to avoid confusing sed.
14492    lt_compile=`echo "$ac_compile" | $SED \
14493    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14494    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14495    -e 's:$: $lt_compiler_flag:'`
14496    (eval echo "\"\$as_me:14495: $lt_compile\"" >&5)
14497    (eval "$lt_compile" 2>conftest.err)
14498    ac_status=$?
14499    cat conftest.err >&5
14500    echo "$as_me:14499: \$? = $ac_status" >&5
14501    if (exit $ac_status) && test -s "$ac_outfile"; then
14502      # The compiler can only warn and ignore the option if not recognized
14503      # So say no if there are warnings other than the usual output.
14504      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14505      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14506      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14507        lt_cv_prog_compiler_rtti_exceptions=yes
14508      fi
14509    fi
14510    $rm conftest*
14511
14512 fi
14513 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14514 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14515
14516 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14517     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14518 else
14519     :
14520 fi
14521
14522 fi
14523
14524 lt_prog_compiler_wl=
14525 lt_prog_compiler_pic=
14526 lt_prog_compiler_static=
14527
14528 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14529 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14530
14531   if test "$GCC" = yes; then
14532     lt_prog_compiler_wl='-Wl,'
14533     lt_prog_compiler_static='-static'
14534
14535     case $host_os in
14536       aix*)
14537       # All AIX code is PIC.
14538       if test "$host_cpu" = ia64; then
14539         # AIX 5 now supports IA64 processor
14540         lt_prog_compiler_static='-Bstatic'
14541       fi
14542       ;;
14543
14544     amigaos*)
14545       # FIXME: we need at least 68020 code to build shared libraries, but
14546       # adding the `-m68020' flag to GCC prevents building anything better,
14547       # like `-m68040'.
14548       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14549       ;;
14550
14551     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14552       # PIC is the default for these OSes.
14553       ;;
14554
14555     mingw* | pw32* | os2*)
14556       # This hack is so that the source file can tell whether it is being
14557       # built for inclusion in a dll (and should export symbols for example).
14558       lt_prog_compiler_pic='-DDLL_EXPORT'
14559       ;;
14560
14561     darwin* | rhapsody*)
14562       # PIC is the default on this platform
14563       # Common symbols not allowed in MH_DYLIB files
14564       lt_prog_compiler_pic='-fno-common'
14565       ;;
14566
14567     interix3*)
14568       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14569       # Instead, we relocate shared libraries at runtime.
14570       ;;
14571
14572     msdosdjgpp*)
14573       # Just because we use GCC doesn't mean we suddenly get shared libraries
14574       # on systems that don't support them.
14575       lt_prog_compiler_can_build_shared=no
14576       enable_shared=no
14577       ;;
14578
14579     sysv4*MP*)
14580       if test -d /usr/nec; then
14581         lt_prog_compiler_pic=-Kconform_pic
14582       fi
14583       ;;
14584
14585     hpux*)
14586       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14587       # not for PA HP-UX.
14588       case $host_cpu in
14589       hppa*64*|ia64*)
14590         # +Z the default
14591         ;;
14592       *)
14593         lt_prog_compiler_pic='-fPIC'
14594         ;;
14595       esac
14596       ;;
14597
14598     *)
14599       lt_prog_compiler_pic='-fPIC'
14600       ;;
14601     esac
14602   else
14603     # PORTME Check for flag to pass linker flags through the system compiler.
14604     case $host_os in
14605     aix*)
14606       lt_prog_compiler_wl='-Wl,'
14607       if test "$host_cpu" = ia64; then
14608         # AIX 5 now supports IA64 processor
14609         lt_prog_compiler_static='-Bstatic'
14610       else
14611         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14612       fi
14613       ;;
14614       darwin*)
14615         # PIC is the default on this platform
14616         # Common symbols not allowed in MH_DYLIB files
14617        case $cc_basename in
14618          xlc*)
14619          lt_prog_compiler_pic='-qnocommon'
14620          lt_prog_compiler_wl='-Wl,'
14621          ;;
14622        esac
14623        ;;
14624
14625     mingw* | pw32* | os2*)
14626       # This hack is so that the source file can tell whether it is being
14627       # built for inclusion in a dll (and should export symbols for example).
14628       lt_prog_compiler_pic='-DDLL_EXPORT'
14629       ;;
14630
14631     hpux9* | hpux10* | hpux11*)
14632       lt_prog_compiler_wl='-Wl,'
14633       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14634       # not for PA HP-UX.
14635       case $host_cpu in
14636       hppa*64*|ia64*)
14637         # +Z the default
14638         ;;
14639       *)
14640         lt_prog_compiler_pic='+Z'
14641         ;;
14642       esac
14643       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14644       lt_prog_compiler_static='${wl}-a ${wl}archive'
14645       ;;
14646
14647     irix5* | irix6* | nonstopux*)
14648       lt_prog_compiler_wl='-Wl,'
14649       # PIC (with -KPIC) is the default.
14650       lt_prog_compiler_static='-non_shared'
14651       ;;
14652
14653     newsos6)
14654       lt_prog_compiler_pic='-KPIC'
14655       lt_prog_compiler_static='-Bstatic'
14656       ;;
14657
14658     linux*)
14659       case $cc_basename in
14660       icc* | ecc*)
14661         lt_prog_compiler_wl='-Wl,'
14662         lt_prog_compiler_pic='-KPIC'
14663         lt_prog_compiler_static='-static'
14664         ;;
14665       pgcc* | pgf77* | pgf90* | pgf95*)
14666         # Portland Group compilers (*not* the Pentium gcc compiler,
14667         # which looks to be a dead project)
14668         lt_prog_compiler_wl='-Wl,'
14669         lt_prog_compiler_pic='-fpic'
14670         lt_prog_compiler_static='-Bstatic'
14671         ;;
14672       ccc*)
14673         lt_prog_compiler_wl='-Wl,'
14674         # All Alpha code is PIC.
14675         lt_prog_compiler_static='-non_shared'
14676         ;;
14677       esac
14678       ;;
14679
14680     osf3* | osf4* | osf5*)
14681       lt_prog_compiler_wl='-Wl,'
14682       # All OSF/1 code is PIC.
14683       lt_prog_compiler_static='-non_shared'
14684       ;;
14685
14686     solaris*)
14687       lt_prog_compiler_pic='-KPIC'
14688       lt_prog_compiler_static='-Bstatic'
14689       case $cc_basename in
14690       f77* | f90* | f95*)
14691         lt_prog_compiler_wl='-Qoption ld ';;
14692       *)
14693         lt_prog_compiler_wl='-Wl,';;
14694       esac
14695       ;;
14696
14697     sunos4*)
14698       lt_prog_compiler_wl='-Qoption ld '
14699       lt_prog_compiler_pic='-PIC'
14700       lt_prog_compiler_static='-Bstatic'
14701       ;;
14702
14703     sysv4 | sysv4.2uw2* | sysv4.3*)
14704       lt_prog_compiler_wl='-Wl,'
14705       lt_prog_compiler_pic='-KPIC'
14706       lt_prog_compiler_static='-Bstatic'
14707       ;;
14708
14709     sysv4*MP*)
14710       if test -d /usr/nec ;then
14711         lt_prog_compiler_pic='-Kconform_pic'
14712         lt_prog_compiler_static='-Bstatic'
14713       fi
14714       ;;
14715
14716     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14717       lt_prog_compiler_wl='-Wl,'
14718       lt_prog_compiler_pic='-KPIC'
14719       lt_prog_compiler_static='-Bstatic'
14720       ;;
14721
14722     unicos*)
14723       lt_prog_compiler_wl='-Wl,'
14724       lt_prog_compiler_can_build_shared=no
14725       ;;
14726
14727     uts4*)
14728       lt_prog_compiler_pic='-pic'
14729       lt_prog_compiler_static='-Bstatic'
14730       ;;
14731
14732     *)
14733       lt_prog_compiler_can_build_shared=no
14734       ;;
14735     esac
14736   fi
14737
14738 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14739 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14740
14741 #
14742 # Check to make sure the PIC flag actually works.
14743 #
14744 if test -n "$lt_prog_compiler_pic"; then
14745
14746 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14747 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14748 if test "${lt_prog_compiler_pic_works+set}" = set; then
14749   echo $ECHO_N "(cached) $ECHO_C" >&6
14750 else
14751   lt_prog_compiler_pic_works=no
14752   ac_outfile=conftest.$ac_objext
14753    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14754    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14755    # Insert the option either (1) after the last *FLAGS variable, or
14756    # (2) before a word containing "conftest.", or (3) at the end.
14757    # Note that $ac_compile itself does not contain backslashes and begins
14758    # with a dollar sign (not a hyphen), so the echo should work correctly.
14759    # The option is referenced via a variable to avoid confusing sed.
14760    lt_compile=`echo "$ac_compile" | $SED \
14761    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14762    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14763    -e 's:$: $lt_compiler_flag:'`
14764    (eval echo "\"\$as_me:14763: $lt_compile\"" >&5)
14765    (eval "$lt_compile" 2>conftest.err)
14766    ac_status=$?
14767    cat conftest.err >&5
14768    echo "$as_me:14767: \$? = $ac_status" >&5
14769    if (exit $ac_status) && test -s "$ac_outfile"; then
14770      # The compiler can only warn and ignore the option if not recognized
14771      # So say no if there are warnings other than the usual output.
14772      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14773      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14774      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14775        lt_prog_compiler_pic_works=yes
14776      fi
14777    fi
14778    $rm conftest*
14779
14780 fi
14781 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14782 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14783
14784 if test x"$lt_prog_compiler_pic_works" = xyes; then
14785     case $lt_prog_compiler_pic in
14786      "" | " "*) ;;
14787      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14788      esac
14789 else
14790     lt_prog_compiler_pic=
14791      lt_prog_compiler_can_build_shared=no
14792 fi
14793
14794 fi
14795 case $host_os in
14796   # For platforms which do not support PIC, -DPIC is meaningless:
14797   *djgpp*)
14798     lt_prog_compiler_pic=
14799     ;;
14800   *)
14801     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14802     ;;
14803 esac
14804
14805 #
14806 # Check to make sure the static flag actually works.
14807 #
14808 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14809 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14810 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14811 if test "${lt_prog_compiler_static_works+set}" = set; then
14812   echo $ECHO_N "(cached) $ECHO_C" >&6
14813 else
14814   lt_prog_compiler_static_works=no
14815    save_LDFLAGS="$LDFLAGS"
14816    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14817    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14818    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14819      # The linker can only warn and ignore the option if not recognized
14820      # So say no if there are warnings
14821      if test -s conftest.err; then
14822        # Append any errors to the config.log.
14823        cat conftest.err 1>&5
14824        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14825        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14826        if diff conftest.exp conftest.er2 >/dev/null; then
14827          lt_prog_compiler_static_works=yes
14828        fi
14829      else
14830        lt_prog_compiler_static_works=yes
14831      fi
14832    fi
14833    $rm conftest*
14834    LDFLAGS="$save_LDFLAGS"
14835
14836 fi
14837 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14838 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14839
14840 if test x"$lt_prog_compiler_static_works" = xyes; then
14841     :
14842 else
14843     lt_prog_compiler_static=
14844 fi
14845
14846
14847 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14848 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14849 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14850   echo $ECHO_N "(cached) $ECHO_C" >&6
14851 else
14852   lt_cv_prog_compiler_c_o=no
14853    $rm -r conftest 2>/dev/null
14854    mkdir conftest
14855    cd conftest
14856    mkdir out
14857    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14858
14859    lt_compiler_flag="-o out/conftest2.$ac_objext"
14860    # Insert the option either (1) after the last *FLAGS variable, or
14861    # (2) before a word containing "conftest.", or (3) at the end.
14862    # Note that $ac_compile itself does not contain backslashes and begins
14863    # with a dollar sign (not a hyphen), so the echo should work correctly.
14864    lt_compile=`echo "$ac_compile" | $SED \
14865    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14866    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14867    -e 's:$: $lt_compiler_flag:'`
14868    (eval echo "\"\$as_me:14867: $lt_compile\"" >&5)
14869    (eval "$lt_compile" 2>out/conftest.err)
14870    ac_status=$?
14871    cat out/conftest.err >&5
14872    echo "$as_me:14871: \$? = $ac_status" >&5
14873    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14874    then
14875      # The compiler can only warn and ignore the option if not recognized
14876      # So say no if there are warnings
14877      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14878      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14879      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14880        lt_cv_prog_compiler_c_o=yes
14881      fi
14882    fi
14883    chmod u+w . 2>&5
14884    $rm conftest*
14885    # SGI C++ compiler will create directory out/ii_files/ for
14886    # template instantiation
14887    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14888    $rm out/* && rmdir out
14889    cd ..
14890    rmdir conftest
14891    $rm conftest*
14892
14893 fi
14894 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14895 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14896
14897
14898 hard_links="nottested"
14899 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14900   # do not overwrite the value of need_locks provided by the user
14901   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14902 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14903   hard_links=yes
14904   $rm conftest*
14905   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14906   touch conftest.a
14907   ln conftest.a conftest.b 2>&5 || hard_links=no
14908   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14909   { echo "$as_me:$LINENO: result: $hard_links" >&5
14910 echo "${ECHO_T}$hard_links" >&6; }
14911   if test "$hard_links" = no; then
14912     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14913 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14914     need_locks=warn
14915   fi
14916 else
14917   need_locks=no
14918 fi
14919
14920 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14921 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14922
14923   runpath_var=
14924   allow_undefined_flag=
14925   enable_shared_with_static_runtimes=no
14926   archive_cmds=
14927   archive_expsym_cmds=
14928   old_archive_From_new_cmds=
14929   old_archive_from_expsyms_cmds=
14930   export_dynamic_flag_spec=
14931   whole_archive_flag_spec=
14932   thread_safe_flag_spec=
14933   hardcode_libdir_flag_spec=
14934   hardcode_libdir_flag_spec_ld=
14935   hardcode_libdir_separator=
14936   hardcode_direct=no
14937   hardcode_minus_L=no
14938   hardcode_shlibpath_var=unsupported
14939   link_all_deplibs=unknown
14940   hardcode_automatic=no
14941   module_cmds=
14942   module_expsym_cmds=
14943   always_export_symbols=no
14944   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14945   # include_expsyms should be a list of space-separated symbols to be *always*
14946   # included in the symbol list
14947   include_expsyms=
14948   # exclude_expsyms can be an extended regexp of symbols to exclude
14949   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14950   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14951   # as well as any symbol that contains `d'.
14952   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14953   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14954   # platforms (ab)use it in PIC code, but their linkers get confused if
14955   # the symbol is explicitly referenced.  Since portable code cannot
14956   # rely on this symbol name, it's probably fine to never include it in
14957   # preloaded symbol tables.
14958   extract_expsyms_cmds=
14959   # Just being paranoid about ensuring that cc_basename is set.
14960   for cc_temp in $compiler""; do
14961   case $cc_temp in
14962     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14963     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14964     \-*) ;;
14965     *) break;;
14966   esac
14967 done
14968 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14969
14970   case $host_os in
14971   cygwin* | mingw* | pw32*)
14972     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14973     # When not using gcc, we currently assume that we are using
14974     # Microsoft Visual C++.
14975     if test "$GCC" != yes; then
14976       with_gnu_ld=no
14977     fi
14978     ;;
14979   interix*)
14980     # we just hope/assume this is gcc and not c89 (= MSVC++)
14981     with_gnu_ld=yes
14982     ;;
14983   openbsd*)
14984     with_gnu_ld=no
14985     ;;
14986   esac
14987
14988   ld_shlibs=yes
14989   if test "$with_gnu_ld" = yes; then
14990     # If archive_cmds runs LD, not CC, wlarc should be empty
14991     wlarc='${wl}'
14992
14993     # Set some defaults for GNU ld with shared library support. These
14994     # are reset later if shared libraries are not supported. Putting them
14995     # here allows them to be overridden if necessary.
14996     runpath_var=LD_RUN_PATH
14997     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14998     export_dynamic_flag_spec='${wl}--export-dynamic'
14999     # ancient GNU ld didn't support --whole-archive et. al.
15000     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15001         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15002       else
15003         whole_archive_flag_spec=
15004     fi
15005     supports_anon_versioning=no
15006     case `$LD -v 2>/dev/null` in
15007       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15008       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15009       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15010       *\ 2.11.*) ;; # other 2.11 versions
15011       *) supports_anon_versioning=yes ;;
15012     esac
15013
15014     # See if GNU ld supports shared libraries.
15015     case $host_os in
15016     aix3* | aix4* | aix5*)
15017       # On AIX/PPC, the GNU linker is very broken
15018       if test "$host_cpu" != ia64; then
15019         ld_shlibs=no
15020         cat <<EOF 1>&2
15021
15022 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15023 *** to be unable to reliably create shared libraries on AIX.
15024 *** Therefore, libtool is disabling shared libraries support.  If you
15025 *** really care for shared libraries, you may want to modify your PATH
15026 *** so that a non-GNU linker is found, and then restart.
15027
15028 EOF
15029       fi
15030       ;;
15031
15032     amigaos*)
15033       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)'
15034       hardcode_libdir_flag_spec='-L$libdir'
15035       hardcode_minus_L=yes
15036
15037       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15038       # that the semantics of dynamic libraries on AmigaOS, at least up
15039       # to version 4, is to share data among multiple programs linked
15040       # with the same dynamic library.  Since this doesn't match the
15041       # behavior of shared libraries on other platforms, we can't use
15042       # them.
15043       ld_shlibs=no
15044       ;;
15045
15046     beos*)
15047       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15048         allow_undefined_flag=unsupported
15049         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15050         # support --undefined.  This deserves some investigation.  FIXME
15051         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15052       else
15053         ld_shlibs=no
15054       fi
15055       ;;
15056
15057     cygwin* | mingw* | pw32*)
15058       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15059       # as there is no search path for DLLs.
15060       hardcode_libdir_flag_spec='-L$libdir'
15061       allow_undefined_flag=unsupported
15062       always_export_symbols=no
15063       enable_shared_with_static_runtimes=yes
15064       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15065
15066       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15067         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15068         # If the export-symbols file already is a .def file (1st line
15069         # is EXPORTS), use it as is; otherwise, prepend...
15070         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15071           cp $export_symbols $output_objdir/$soname.def;
15072         else
15073           echo EXPORTS > $output_objdir/$soname.def;
15074           cat $export_symbols >> $output_objdir/$soname.def;
15075         fi~
15076         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15077       else
15078         ld_shlibs=no
15079       fi
15080       ;;
15081
15082     interix3*)
15083       hardcode_direct=no
15084       hardcode_shlibpath_var=no
15085       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15086       export_dynamic_flag_spec='${wl}-E'
15087       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15088       # Instead, shared libraries are loaded at an image base (0x10000000 by
15089       # default) and relocated if they conflict, which is a slow very memory
15090       # consuming and fragmenting process.  To avoid this, we pick a random,
15091       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15092       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15093       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15094       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'
15095       ;;
15096
15097     linux*)
15098       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15099         tmp_addflag=
15100         case $cc_basename,$host_cpu in
15101         pgcc*)                          # Portland Group C compiler
15102           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'
15103           tmp_addflag=' $pic_flag'
15104           ;;
15105         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15106           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'
15107           tmp_addflag=' $pic_flag -Mnomain' ;;
15108         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15109           tmp_addflag=' -i_dynamic' ;;
15110         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15111           tmp_addflag=' -i_dynamic -nofor_main' ;;
15112         ifc* | ifort*)                  # Intel Fortran compiler
15113           tmp_addflag=' -nofor_main' ;;
15114         esac
15115         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15116
15117         if test $supports_anon_versioning = yes; then
15118           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15119   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15120   $echo "local: *; };" >> $output_objdir/$libname.ver~
15121           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15122         fi
15123       else
15124         ld_shlibs=no
15125       fi
15126       ;;
15127
15128     netbsd*)
15129       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15130         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15131         wlarc=
15132       else
15133         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15134         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15135       fi
15136       ;;
15137
15138     solaris*)
15139       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15140         ld_shlibs=no
15141         cat <<EOF 1>&2
15142
15143 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15144 *** create shared libraries on Solaris systems.  Therefore, libtool
15145 *** is disabling shared libraries support.  We urge you to upgrade GNU
15146 *** binutils to release 2.9.1 or newer.  Another option is to modify
15147 *** your PATH or compiler configuration so that the native linker is
15148 *** used, and then restart.
15149
15150 EOF
15151       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15152         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15153         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15154       else
15155         ld_shlibs=no
15156       fi
15157       ;;
15158
15159     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15160       case `$LD -v 2>&1` in
15161         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15162         ld_shlibs=no
15163         cat <<_LT_EOF 1>&2
15164
15165 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15166 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15167 *** is disabling shared libraries support.  We urge you to upgrade GNU
15168 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15169 *** your PATH or compiler configuration so that the native linker is
15170 *** used, and then restart.
15171
15172 _LT_EOF
15173         ;;
15174         *)
15175           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15176             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15177             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15178             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15179           else
15180             ld_shlibs=no
15181           fi
15182         ;;
15183       esac
15184       ;;
15185
15186     sunos4*)
15187       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15188       wlarc=
15189       hardcode_direct=yes
15190       hardcode_shlibpath_var=no
15191       ;;
15192
15193     *)
15194       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15195         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15196         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15197       else
15198         ld_shlibs=no
15199       fi
15200       ;;
15201     esac
15202
15203     if test "$ld_shlibs" = no; then
15204       runpath_var=
15205       hardcode_libdir_flag_spec=
15206       export_dynamic_flag_spec=
15207       whole_archive_flag_spec=
15208     fi
15209   else
15210     # PORTME fill in a description of your system's linker (not GNU ld)
15211     case $host_os in
15212     aix3*)
15213       allow_undefined_flag=unsupported
15214       always_export_symbols=yes
15215       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'
15216       # Note: this linker hardcodes the directories in LIBPATH if there
15217       # are no directories specified by -L.
15218       hardcode_minus_L=yes
15219       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15220         # Neither direct hardcoding nor static linking is supported with a
15221         # broken collect2.
15222         hardcode_direct=unsupported
15223       fi
15224       ;;
15225
15226     aix4* | aix5*)
15227       if test "$host_cpu" = ia64; then
15228         # On IA64, the linker does run time linking by default, so we don't
15229         # have to do anything special.
15230         aix_use_runtimelinking=no
15231         exp_sym_flag='-Bexport'
15232         no_entry_flag=""
15233       else
15234         # If we're using GNU nm, then we don't want the "-C" option.
15235         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15236         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15237           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'
15238         else
15239           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'
15240         fi
15241         aix_use_runtimelinking=no
15242
15243         # Test if we are trying to use run time linking or normal
15244         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15245         # need to do runtime linking.
15246         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15247           for ld_flag in $LDFLAGS; do
15248           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15249             aix_use_runtimelinking=yes
15250             break
15251           fi
15252           done
15253           ;;
15254         esac
15255
15256         exp_sym_flag='-bexport'
15257         no_entry_flag='-bnoentry'
15258       fi
15259
15260       # When large executables or shared objects are built, AIX ld can
15261       # have problems creating the table of contents.  If linking a library
15262       # or program results in "error TOC overflow" add -mminimal-toc to
15263       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15264       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15265
15266       archive_cmds=''
15267       hardcode_direct=yes
15268       hardcode_libdir_separator=':'
15269       link_all_deplibs=yes
15270
15271       if test "$GCC" = yes; then
15272         case $host_os in aix4.[012]|aix4.[012].*)
15273         # We only want to do this on AIX 4.2 and lower, the check
15274         # below for broken collect2 doesn't work under 4.3+
15275           collect2name=`${CC} -print-prog-name=collect2`
15276           if test -f "$collect2name" && \
15277            strings "$collect2name" | grep resolve_lib_name >/dev/null
15278           then
15279           # We have reworked collect2
15280           hardcode_direct=yes
15281           else
15282           # We have old collect2
15283           hardcode_direct=unsupported
15284           # It fails to find uninstalled libraries when the uninstalled
15285           # path is not listed in the libpath.  Setting hardcode_minus_L
15286           # to unsupported forces relinking
15287           hardcode_minus_L=yes
15288           hardcode_libdir_flag_spec='-L$libdir'
15289           hardcode_libdir_separator=
15290           fi
15291           ;;
15292         esac
15293         shared_flag='-shared'
15294         if test "$aix_use_runtimelinking" = yes; then
15295           shared_flag="$shared_flag "'${wl}-G'
15296         fi
15297       else
15298         # not using gcc
15299         if test "$host_cpu" = ia64; then
15300         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15301         # chokes on -Wl,-G. The following line is correct:
15302           shared_flag='-G'
15303         else
15304           if test "$aix_use_runtimelinking" = yes; then
15305             shared_flag='${wl}-G'
15306           else
15307             shared_flag='${wl}-bM:SRE'
15308           fi
15309         fi
15310       fi
15311
15312       # It seems that -bexpall does not export symbols beginning with
15313       # underscore (_), so it is better to generate a list of symbols to export.
15314       always_export_symbols=yes
15315       if test "$aix_use_runtimelinking" = yes; then
15316         # Warning - without using the other runtime loading flags (-brtl),
15317         # -berok will link without error, but may produce a broken library.
15318         allow_undefined_flag='-berok'
15319        # Determine the default libpath from the value encoded in an empty executable.
15320        cat >conftest.$ac_ext <<_ACEOF
15321 /* confdefs.h.  */
15322 _ACEOF
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h.  */
15326
15327 int
15328 main ()
15329 {
15330
15331   ;
15332   return 0;
15333 }
15334 _ACEOF
15335 rm -f conftest.$ac_objext conftest$ac_exeext
15336 if { (ac_try="$ac_link"
15337 case "(($ac_try" in
15338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339   *) ac_try_echo=$ac_try;;
15340 esac
15341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342   (eval "$ac_link") 2>conftest.er1
15343   ac_status=$?
15344   grep -v '^ *+' conftest.er1 >conftest.err
15345   rm -f conftest.er1
15346   cat conftest.err >&5
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); } &&
15349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15350   { (case "(($ac_try" in
15351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352   *) ac_try_echo=$ac_try;;
15353 esac
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355   (eval "$ac_try") 2>&5
15356   ac_status=$?
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); }; } &&
15359          { ac_try='test -s conftest$ac_exeext'
15360   { (case "(($ac_try" in
15361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362   *) ac_try_echo=$ac_try;;
15363 esac
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365   (eval "$ac_try") 2>&5
15366   ac_status=$?
15367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368   (exit $ac_status); }; }; then
15369
15370 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15371 }'`
15372 # Check for a 64-bit object if we didn't find anything.
15373 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; }
15374 }'`; fi
15375 else
15376   echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.$ac_ext >&5
15378
15379
15380 fi
15381
15382 rm -f core conftest.err conftest.$ac_objext \
15383       conftest$ac_exeext conftest.$ac_ext
15384 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15385
15386        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15387         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"
15388        else
15389         if test "$host_cpu" = ia64; then
15390           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15391           allow_undefined_flag="-z nodefs"
15392           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"
15393         else
15394          # Determine the default libpath from the value encoded in an empty executable.
15395          cat >conftest.$ac_ext <<_ACEOF
15396 /* confdefs.h.  */
15397 _ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h.  */
15401
15402 int
15403 main ()
15404 {
15405
15406   ;
15407   return 0;
15408 }
15409 _ACEOF
15410 rm -f conftest.$ac_objext conftest$ac_exeext
15411 if { (ac_try="$ac_link"
15412 case "(($ac_try" in
15413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15414   *) ac_try_echo=$ac_try;;
15415 esac
15416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15417   (eval "$ac_link") 2>conftest.er1
15418   ac_status=$?
15419   grep -v '^ *+' conftest.er1 >conftest.err
15420   rm -f conftest.er1
15421   cat conftest.err >&5
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); } &&
15424          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15425   { (case "(($ac_try" in
15426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427   *) ac_try_echo=$ac_try;;
15428 esac
15429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15430   (eval "$ac_try") 2>&5
15431   ac_status=$?
15432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433   (exit $ac_status); }; } &&
15434          { ac_try='test -s conftest$ac_exeext'
15435   { (case "(($ac_try" in
15436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437   *) ac_try_echo=$ac_try;;
15438 esac
15439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15440   (eval "$ac_try") 2>&5
15441   ac_status=$?
15442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443   (exit $ac_status); }; }; then
15444
15445 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15446 }'`
15447 # Check for a 64-bit object if we didn't find anything.
15448 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; }
15449 }'`; fi
15450 else
15451   echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15453
15454
15455 fi
15456
15457 rm -f core conftest.err conftest.$ac_objext \
15458       conftest$ac_exeext conftest.$ac_ext
15459 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15460
15461          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15462           # Warning - without using the other run time loading flags,
15463           # -berok will link without error, but may produce a broken library.
15464           no_undefined_flag=' ${wl}-bernotok'
15465           allow_undefined_flag=' ${wl}-berok'
15466           # Exported symbols can be pulled into shared objects from archives
15467           whole_archive_flag_spec='$convenience'
15468           archive_cmds_need_lc=yes
15469           # This is similar to how AIX traditionally builds its shared libraries.
15470           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'
15471         fi
15472       fi
15473       ;;
15474
15475     amigaos*)
15476       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)'
15477       hardcode_libdir_flag_spec='-L$libdir'
15478       hardcode_minus_L=yes
15479       # see comment about different semantics on the GNU ld section
15480       ld_shlibs=no
15481       ;;
15482
15483     bsdi[45]*)
15484       export_dynamic_flag_spec=-rdynamic
15485       ;;
15486
15487     cygwin* | mingw* | pw32*)
15488       # When not using gcc, we currently assume that we are using
15489       # Microsoft Visual C++.
15490       # hardcode_libdir_flag_spec is actually meaningless, as there is
15491       # no search path for DLLs.
15492       hardcode_libdir_flag_spec=' '
15493       allow_undefined_flag=unsupported
15494       # Tell ltmain to make .lib files, not .a files.
15495       libext=lib
15496       # Tell ltmain to make .dll files, not .so files.
15497       shrext_cmds=".dll"
15498       # FIXME: Setting linknames here is a bad hack.
15499       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15500       # The linker will automatically build a .lib file if we build a DLL.
15501       old_archive_From_new_cmds='true'
15502       # FIXME: Should let the user specify the lib program.
15503       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15504       fix_srcfile_path='`cygpath -w "$srcfile"`'
15505       enable_shared_with_static_runtimes=yes
15506       ;;
15507
15508     darwin* | rhapsody*)
15509       case $host_os in
15510         rhapsody* | darwin1.[012])
15511          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15512          ;;
15513        *) # Darwin 1.3 on
15514          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15515            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15516          else
15517            case ${MACOSX_DEPLOYMENT_TARGET} in
15518              10.[012])
15519                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15520                ;;
15521              10.*)
15522                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15523                ;;
15524            esac
15525          fi
15526          ;;
15527       esac
15528       archive_cmds_need_lc=no
15529       hardcode_direct=no
15530       hardcode_automatic=yes
15531       hardcode_shlibpath_var=unsupported
15532       whole_archive_flag_spec=''
15533       link_all_deplibs=yes
15534     if test "$GCC" = yes ; then
15535         output_verbose_link_cmd='echo'
15536         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15537       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15538       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15539       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}'
15540       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}'
15541     else
15542       case $cc_basename in
15543         xlc*)
15544          output_verbose_link_cmd='echo'
15545          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15546          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15547           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15548          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}'
15549           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}'
15550           ;;
15551        *)
15552          ld_shlibs=no
15553           ;;
15554       esac
15555     fi
15556       ;;
15557
15558     dgux*)
15559       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15560       hardcode_libdir_flag_spec='-L$libdir'
15561       hardcode_shlibpath_var=no
15562       ;;
15563
15564     freebsd1*)
15565       ld_shlibs=no
15566       ;;
15567
15568     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15569     # support.  Future versions do this automatically, but an explicit c++rt0.o
15570     # does not break anything, and helps significantly (at the cost of a little
15571     # extra space).
15572     freebsd2.2*)
15573       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15574       hardcode_libdir_flag_spec='-R$libdir'
15575       hardcode_direct=yes
15576       hardcode_shlibpath_var=no
15577       ;;
15578
15579     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15580     freebsd2*)
15581       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15582       hardcode_direct=yes
15583       hardcode_minus_L=yes
15584       hardcode_shlibpath_var=no
15585       ;;
15586
15587     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15588     freebsd* | kfreebsd*-gnu | dragonfly*)
15589       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15590       hardcode_libdir_flag_spec='-R$libdir'
15591       hardcode_direct=yes
15592       hardcode_shlibpath_var=no
15593       ;;
15594
15595     hpux9*)
15596       if test "$GCC" = yes; then
15597         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'
15598       else
15599         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'
15600       fi
15601       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15602       hardcode_libdir_separator=:
15603       hardcode_direct=yes
15604
15605       # hardcode_minus_L: Not really in the search PATH,
15606       # but as the default location of the library.
15607       hardcode_minus_L=yes
15608       export_dynamic_flag_spec='${wl}-E'
15609       ;;
15610
15611     hpux10*)
15612       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15613         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15614       else
15615         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15616       fi
15617       if test "$with_gnu_ld" = no; then
15618         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15619         hardcode_libdir_separator=:
15620
15621         hardcode_direct=yes
15622         export_dynamic_flag_spec='${wl}-E'
15623
15624         # hardcode_minus_L: Not really in the search PATH,
15625         # but as the default location of the library.
15626         hardcode_minus_L=yes
15627       fi
15628       ;;
15629
15630     hpux11*)
15631       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15632         case $host_cpu in
15633         hppa*64*)
15634           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15635           ;;
15636         ia64*)
15637           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15638           ;;
15639         *)
15640           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15641           ;;
15642         esac
15643       else
15644         case $host_cpu in
15645         hppa*64*)
15646           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15647           ;;
15648         ia64*)
15649           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15650           ;;
15651         *)
15652           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15653           ;;
15654         esac
15655       fi
15656       if test "$with_gnu_ld" = no; then
15657         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15658         hardcode_libdir_separator=:
15659
15660         case $host_cpu in
15661         hppa*64*|ia64*)
15662           hardcode_libdir_flag_spec_ld='+b $libdir'
15663           hardcode_direct=no
15664           hardcode_shlibpath_var=no
15665           ;;
15666         *)
15667           hardcode_direct=yes
15668           export_dynamic_flag_spec='${wl}-E'
15669
15670           # hardcode_minus_L: Not really in the search PATH,
15671           # but as the default location of the library.
15672           hardcode_minus_L=yes
15673           ;;
15674         esac
15675       fi
15676       ;;
15677
15678     irix5* | irix6* | nonstopux*)
15679       if test "$GCC" = yes; then
15680         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'
15681       else
15682         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'
15683         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15684       fi
15685       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15686       hardcode_libdir_separator=:
15687       link_all_deplibs=yes
15688       ;;
15689
15690     netbsd*)
15691       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15692         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15693       else
15694         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15695       fi
15696       hardcode_libdir_flag_spec='-R$libdir'
15697       hardcode_direct=yes
15698       hardcode_shlibpath_var=no
15699       ;;
15700
15701     newsos6)
15702       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15703       hardcode_direct=yes
15704       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15705       hardcode_libdir_separator=:
15706       hardcode_shlibpath_var=no
15707       ;;
15708
15709     openbsd*)
15710       hardcode_direct=yes
15711       hardcode_shlibpath_var=no
15712       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15713         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15714         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15715         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15716         export_dynamic_flag_spec='${wl}-E'
15717       else
15718        case $host_os in
15719          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15720            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15721            hardcode_libdir_flag_spec='-R$libdir'
15722            ;;
15723          *)
15724            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15725            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15726            ;;
15727        esac
15728       fi
15729       ;;
15730
15731     os2*)
15732       hardcode_libdir_flag_spec='-L$libdir'
15733       hardcode_minus_L=yes
15734       allow_undefined_flag=unsupported
15735       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'
15736       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15737       ;;
15738
15739     osf3*)
15740       if test "$GCC" = yes; then
15741         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15742         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'
15743       else
15744         allow_undefined_flag=' -expect_unresolved \*'
15745         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'
15746       fi
15747       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15748       hardcode_libdir_separator=:
15749       ;;
15750
15751     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15752       if test "$GCC" = yes; then
15753         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15754         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'
15755         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15756       else
15757         allow_undefined_flag=' -expect_unresolved \*'
15758         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'
15759         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15760         $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'
15761
15762         # Both c and cxx compiler support -rpath directly
15763         hardcode_libdir_flag_spec='-rpath $libdir'
15764       fi
15765       hardcode_libdir_separator=:
15766       ;;
15767
15768     solaris*)
15769       no_undefined_flag=' -z text'
15770       if test "$GCC" = yes; then
15771         wlarc='${wl}'
15772         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15773         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15774           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15775       else
15776         wlarc=''
15777         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15778         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15779         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15780       fi
15781       hardcode_libdir_flag_spec='-R$libdir'
15782       hardcode_shlibpath_var=no
15783       case $host_os in
15784       solaris2.[0-5] | solaris2.[0-5].*) ;;
15785       *)
15786         # The compiler driver will combine linker options so we
15787         # cannot just pass the convience library names through
15788         # without $wl, iff we do not link with $LD.
15789         # Luckily, gcc supports the same syntax we need for Sun Studio.
15790         # Supported since Solaris 2.6 (maybe 2.5.1?)
15791         case $wlarc in
15792         '')
15793           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15794         *)
15795           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' ;;
15796         esac ;;
15797       esac
15798       link_all_deplibs=yes
15799       ;;
15800
15801     sunos4*)
15802       if test "x$host_vendor" = xsequent; then
15803         # Use $CC to link under sequent, because it throws in some extra .o
15804         # files that make .init and .fini sections work.
15805         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15806       else
15807         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15808       fi
15809       hardcode_libdir_flag_spec='-L$libdir'
15810       hardcode_direct=yes
15811       hardcode_minus_L=yes
15812       hardcode_shlibpath_var=no
15813       ;;
15814
15815     sysv4)
15816       case $host_vendor in
15817         sni)
15818           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15819           hardcode_direct=yes # is this really true???
15820         ;;
15821         siemens)
15822           ## LD is ld it makes a PLAMLIB
15823           ## CC just makes a GrossModule.
15824           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15825           reload_cmds='$CC -r -o $output$reload_objs'
15826           hardcode_direct=no
15827         ;;
15828         motorola)
15829           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15830           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15831         ;;
15832       esac
15833       runpath_var='LD_RUN_PATH'
15834       hardcode_shlibpath_var=no
15835       ;;
15836
15837     sysv4.3*)
15838       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15839       hardcode_shlibpath_var=no
15840       export_dynamic_flag_spec='-Bexport'
15841       ;;
15842
15843     sysv4*MP*)
15844       if test -d /usr/nec; then
15845         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15846         hardcode_shlibpath_var=no
15847         runpath_var=LD_RUN_PATH
15848         hardcode_runpath_var=yes
15849         ld_shlibs=yes
15850       fi
15851       ;;
15852
15853     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15854       no_undefined_flag='${wl}-z,text'
15855       archive_cmds_need_lc=no
15856       hardcode_shlibpath_var=no
15857       runpath_var='LD_RUN_PATH'
15858
15859       if test "$GCC" = yes; then
15860         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15861         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15862       else
15863         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15864         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15865       fi
15866       ;;
15867
15868     sysv5* | sco3.2v5* | sco5v6*)
15869       # Note: We can NOT use -z defs as we might desire, because we do not
15870       # link with -lc, and that would cause any symbols used from libc to
15871       # always be unresolved, which means just about no library would
15872       # ever link correctly.  If we're not using GNU ld we use -z text
15873       # though, which does catch some bad symbols but isn't as heavy-handed
15874       # as -z defs.
15875       no_undefined_flag='${wl}-z,text'
15876       allow_undefined_flag='${wl}-z,nodefs'
15877       archive_cmds_need_lc=no
15878       hardcode_shlibpath_var=no
15879       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15880       hardcode_libdir_separator=':'
15881       link_all_deplibs=yes
15882       export_dynamic_flag_spec='${wl}-Bexport'
15883       runpath_var='LD_RUN_PATH'
15884
15885       if test "$GCC" = yes; then
15886         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15887         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15888       else
15889         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15890         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15891       fi
15892       ;;
15893
15894     uts4*)
15895       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15896       hardcode_libdir_flag_spec='-L$libdir'
15897       hardcode_shlibpath_var=no
15898       ;;
15899
15900     *)
15901       ld_shlibs=no
15902       ;;
15903     esac
15904   fi
15905
15906 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15907 echo "${ECHO_T}$ld_shlibs" >&6; }
15908 test "$ld_shlibs" = no && can_build_shared=no
15909
15910 #
15911 # Do we need to explicitly link libc?
15912 #
15913 case "x$archive_cmds_need_lc" in
15914 x|xyes)
15915   # Assume -lc should be added
15916   archive_cmds_need_lc=yes
15917
15918   if test "$enable_shared" = yes && test "$GCC" = yes; then
15919     case $archive_cmds in
15920     *'~'*)
15921       # FIXME: we may have to deal with multi-command sequences.
15922       ;;
15923     '$CC '*)
15924       # Test whether the compiler implicitly links with -lc since on some
15925       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15926       # to ld, don't add -lc before -lgcc.
15927       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15928 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15929       $rm conftest*
15930       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15931
15932       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15933   (eval $ac_compile) 2>&5
15934   ac_status=$?
15935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); } 2>conftest.err; then
15937         soname=conftest
15938         lib=conftest
15939         libobjs=conftest.$ac_objext
15940         deplibs=
15941         wl=$lt_prog_compiler_wl
15942         pic_flag=$lt_prog_compiler_pic
15943         compiler_flags=-v
15944         linker_flags=-v
15945         verstring=
15946         output_objdir=.
15947         libname=conftest
15948         lt_save_allow_undefined_flag=$allow_undefined_flag
15949         allow_undefined_flag=
15950         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15951   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15952   ac_status=$?
15953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954   (exit $ac_status); }
15955         then
15956           archive_cmds_need_lc=no
15957         else
15958           archive_cmds_need_lc=yes
15959         fi
15960         allow_undefined_flag=$lt_save_allow_undefined_flag
15961       else
15962         cat conftest.err 1>&5
15963       fi
15964       $rm conftest*
15965       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15966 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15967       ;;
15968     esac
15969   fi
15970   ;;
15971 esac
15972
15973 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15974 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15975 library_names_spec=
15976 libname_spec='lib$name'
15977 soname_spec=
15978 shrext_cmds=".so"
15979 postinstall_cmds=
15980 postuninstall_cmds=
15981 finish_cmds=
15982 finish_eval=
15983 shlibpath_var=
15984 shlibpath_overrides_runpath=unknown
15985 version_type=none
15986 dynamic_linker="$host_os ld.so"
15987 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15988 if test "$GCC" = yes; then
15989   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15990   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15991     # if the path contains ";" then we assume it to be the separator
15992     # otherwise default to the standard path separator (i.e. ":") - it is
15993     # assumed that no part of a normal pathname contains ";" but that should
15994     # okay in the real world where ";" in dirpaths is itself problematic.
15995     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15996   else
15997     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15998   fi
15999 else
16000   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16001 fi
16002 need_lib_prefix=unknown
16003 hardcode_into_libs=no
16004
16005 # when you set need_version to no, make sure it does not cause -set_version
16006 # flags to be left without arguments
16007 need_version=unknown
16008
16009 case $host_os in
16010 aix3*)
16011   version_type=linux
16012   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16013   shlibpath_var=LIBPATH
16014
16015   # AIX 3 has no versioning support, so we append a major version to the name.
16016   soname_spec='${libname}${release}${shared_ext}$major'
16017   ;;
16018
16019 aix4* | aix5*)
16020   version_type=linux
16021   need_lib_prefix=no
16022   need_version=no
16023   hardcode_into_libs=yes
16024   if test "$host_cpu" = ia64; then
16025     # AIX 5 supports IA64
16026     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16027     shlibpath_var=LD_LIBRARY_PATH
16028   else
16029     # With GCC up to 2.95.x, collect2 would create an import file
16030     # for dependence libraries.  The import file would start with
16031     # the line `#! .'.  This would cause the generated library to
16032     # depend on `.', always an invalid library.  This was fixed in
16033     # development snapshots of GCC prior to 3.0.
16034     case $host_os in
16035       aix4 | aix4.[01] | aix4.[01].*)
16036       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16037            echo ' yes '
16038            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16039         :
16040       else
16041         can_build_shared=no
16042       fi
16043       ;;
16044     esac
16045     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16046     # soname into executable. Probably we can add versioning support to
16047     # collect2, so additional links can be useful in future.
16048     if test "$aix_use_runtimelinking" = yes; then
16049       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16050       # instead of lib<name>.a to let people know that these are not
16051       # typical AIX shared libraries.
16052       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16053     else
16054       # We preserve .a as extension for shared libraries through AIX4.2
16055       # and later when we are not doing run time linking.
16056       library_names_spec='${libname}${release}.a $libname.a'
16057       soname_spec='${libname}${release}${shared_ext}$major'
16058     fi
16059     shlibpath_var=LIBPATH
16060   fi
16061   ;;
16062
16063 amigaos*)
16064   library_names_spec='$libname.ixlibrary $libname.a'
16065   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16066   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'
16067   ;;
16068
16069 beos*)
16070   library_names_spec='${libname}${shared_ext}'
16071   dynamic_linker="$host_os ld.so"
16072   shlibpath_var=LIBRARY_PATH
16073   ;;
16074
16075 bsdi[45]*)
16076   version_type=linux
16077   need_version=no
16078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16079   soname_spec='${libname}${release}${shared_ext}$major'
16080   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16081   shlibpath_var=LD_LIBRARY_PATH
16082   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16083   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16084   # the default ld.so.conf also contains /usr/contrib/lib and
16085   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16086   # libtool to hard-code these into programs
16087   ;;
16088
16089 cygwin* | mingw* | pw32*)
16090   version_type=windows
16091   shrext_cmds=".dll"
16092   need_version=no
16093   need_lib_prefix=no
16094
16095   case $GCC,$host_os in
16096   yes,cygwin* | yes,mingw* | yes,pw32*)
16097     library_names_spec='$libname.dll.a'
16098     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16099     postinstall_cmds='base_file=`basename \${file}`~
16100       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16101       dldir=$destdir/`dirname \$dlpath`~
16102       test -d \$dldir || mkdir -p \$dldir~
16103       $install_prog $dir/$dlname \$dldir/$dlname~
16104       chmod a+x \$dldir/$dlname'
16105     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16106       dlpath=$dir/\$dldll~
16107        $rm \$dlpath'
16108     shlibpath_overrides_runpath=yes
16109
16110     case $host_os in
16111     cygwin*)
16112       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16113       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16114       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16115       ;;
16116     mingw*)
16117       # MinGW DLLs use traditional 'lib' prefix
16118       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16119       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16120       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16121         # It is most probably a Windows format PATH printed by
16122         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16123         # path with ; separators, and with drive letters. We can handle the
16124         # drive letters (cygwin fileutils understands them), so leave them,
16125         # especially as we might pass files found there to a mingw objdump,
16126         # which wouldn't understand a cygwinified path. Ahh.
16127         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16128       else
16129         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16130       fi
16131       ;;
16132     pw32*)
16133       # pw32 DLLs use 'pw' prefix rather than 'lib'
16134       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16135       ;;
16136     esac
16137     ;;
16138
16139   *)
16140     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16141     ;;
16142   esac
16143   dynamic_linker='Win32 ld.exe'
16144   # FIXME: first we should search . and the directory the executable is in
16145   shlibpath_var=PATH
16146   ;;
16147
16148 darwin* | rhapsody*)
16149   dynamic_linker="$host_os dyld"
16150   version_type=darwin
16151   need_lib_prefix=no
16152   need_version=no
16153   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16154   soname_spec='${libname}${release}${major}$shared_ext'
16155   shlibpath_overrides_runpath=yes
16156   shlibpath_var=DYLD_LIBRARY_PATH
16157   shrext_cmds='.dylib'
16158   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16159   if test "$GCC" = yes; then
16160     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"`
16161   else
16162     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16163   fi
16164   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16165   ;;
16166
16167 dgux*)
16168   version_type=linux
16169   need_lib_prefix=no
16170   need_version=no
16171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16172   soname_spec='${libname}${release}${shared_ext}$major'
16173   shlibpath_var=LD_LIBRARY_PATH
16174   ;;
16175
16176 freebsd1*)
16177   dynamic_linker=no
16178   ;;
16179
16180 kfreebsd*-gnu)
16181   version_type=linux
16182   need_lib_prefix=no
16183   need_version=no
16184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16185   soname_spec='${libname}${release}${shared_ext}$major'
16186   shlibpath_var=LD_LIBRARY_PATH
16187   shlibpath_overrides_runpath=no
16188   hardcode_into_libs=yes
16189   dynamic_linker='GNU ld.so'
16190   ;;
16191
16192 freebsd* | dragonfly*)
16193   # DragonFly does not have aout.  When/if they implement a new
16194   # versioning mechanism, adjust this.
16195   if test -x /usr/bin/objformat; then
16196     objformat=`/usr/bin/objformat`
16197   else
16198     case $host_os in
16199     freebsd[123]*) objformat=aout ;;
16200     *) objformat=elf ;;
16201     esac
16202   fi
16203   version_type=freebsd-$objformat
16204   case $version_type in
16205     freebsd-elf*)
16206       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16207       need_version=no
16208       need_lib_prefix=no
16209       ;;
16210     freebsd-*)
16211       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16212       need_version=yes
16213       ;;
16214   esac
16215   shlibpath_var=LD_LIBRARY_PATH
16216   case $host_os in
16217   freebsd2*)
16218     shlibpath_overrides_runpath=yes
16219     ;;
16220   freebsd3.[01]* | freebsdelf3.[01]*)
16221     shlibpath_overrides_runpath=yes
16222     hardcode_into_libs=yes
16223     ;;
16224   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16225   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16226     shlibpath_overrides_runpath=no
16227     hardcode_into_libs=yes
16228     ;;
16229   freebsd*) # from 4.6 on
16230     shlibpath_overrides_runpath=yes
16231     hardcode_into_libs=yes
16232     ;;
16233   esac
16234   ;;
16235
16236 gnu*)
16237   version_type=linux
16238   need_lib_prefix=no
16239   need_version=no
16240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16241   soname_spec='${libname}${release}${shared_ext}$major'
16242   shlibpath_var=LD_LIBRARY_PATH
16243   hardcode_into_libs=yes
16244   ;;
16245
16246 hpux9* | hpux10* | hpux11*)
16247   # Give a soname corresponding to the major version so that dld.sl refuses to
16248   # link against other versions.
16249   version_type=sunos
16250   need_lib_prefix=no
16251   need_version=no
16252   case $host_cpu in
16253   ia64*)
16254     shrext_cmds='.so'
16255     hardcode_into_libs=yes
16256     dynamic_linker="$host_os dld.so"
16257     shlibpath_var=LD_LIBRARY_PATH
16258     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16260     soname_spec='${libname}${release}${shared_ext}$major'
16261     if test "X$HPUX_IA64_MODE" = X32; then
16262       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16263     else
16264       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16265     fi
16266     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16267     ;;
16268    hppa*64*)
16269      shrext_cmds='.sl'
16270      hardcode_into_libs=yes
16271      dynamic_linker="$host_os dld.sl"
16272      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16273      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16274      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275      soname_spec='${libname}${release}${shared_ext}$major'
16276      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16277      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16278      ;;
16279    *)
16280     shrext_cmds='.sl'
16281     dynamic_linker="$host_os dld.sl"
16282     shlibpath_var=SHLIB_PATH
16283     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16284     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16285     soname_spec='${libname}${release}${shared_ext}$major'
16286     ;;
16287   esac
16288   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16289   postinstall_cmds='chmod 555 $lib'
16290   ;;
16291
16292 interix3*)
16293   version_type=linux
16294   need_lib_prefix=no
16295   need_version=no
16296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16297   soname_spec='${libname}${release}${shared_ext}$major'
16298   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16299   shlibpath_var=LD_LIBRARY_PATH
16300   shlibpath_overrides_runpath=no
16301   hardcode_into_libs=yes
16302   ;;
16303
16304 irix5* | irix6* | nonstopux*)
16305   case $host_os in
16306     nonstopux*) version_type=nonstopux ;;
16307     *)
16308         if test "$lt_cv_prog_gnu_ld" = yes; then
16309                 version_type=linux
16310         else
16311                 version_type=irix
16312         fi ;;
16313   esac
16314   need_lib_prefix=no
16315   need_version=no
16316   soname_spec='${libname}${release}${shared_ext}$major'
16317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16318   case $host_os in
16319   irix5* | nonstopux*)
16320     libsuff= shlibsuff=
16321     ;;
16322   *)
16323     case $LD in # libtool.m4 will add one of these switches to LD
16324     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16325       libsuff= shlibsuff= libmagic=32-bit;;
16326     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16327       libsuff=32 shlibsuff=N32 libmagic=N32;;
16328     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16329       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16330     *) libsuff= shlibsuff= libmagic=never-match;;
16331     esac
16332     ;;
16333   esac
16334   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16335   shlibpath_overrides_runpath=no
16336   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16337   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16338   hardcode_into_libs=yes
16339   ;;
16340
16341 # No shared lib support for Linux oldld, aout, or coff.
16342 linux*oldld* | linux*aout* | linux*coff*)
16343   dynamic_linker=no
16344   ;;
16345
16346 # This must be Linux ELF.
16347 linux*)
16348   version_type=linux
16349   need_lib_prefix=no
16350   need_version=no
16351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16352   soname_spec='${libname}${release}${shared_ext}$major'
16353   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16354   shlibpath_var=LD_LIBRARY_PATH
16355   shlibpath_overrides_runpath=no
16356   # This implies no fast_install, which is unacceptable.
16357   # Some rework will be needed to allow for fast_install
16358   # before this can be enabled.
16359   hardcode_into_libs=yes
16360
16361   # Append ld.so.conf contents to the search path
16362   if test -f /etc/ld.so.conf; then
16363     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' ' '`
16364     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16365   fi
16366
16367   # We used to test for /lib/ld.so.1 and disable shared libraries on
16368   # powerpc, because MkLinux only supported shared libraries with the
16369   # GNU dynamic linker.  Since this was broken with cross compilers,
16370   # most powerpc-linux boxes support dynamic linking these days and
16371   # people can always --disable-shared, the test was removed, and we
16372   # assume the GNU/Linux dynamic linker is in use.
16373   dynamic_linker='GNU/Linux ld.so'
16374   ;;
16375
16376 knetbsd*-gnu)
16377   version_type=linux
16378   need_lib_prefix=no
16379   need_version=no
16380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16381   soname_spec='${libname}${release}${shared_ext}$major'
16382   shlibpath_var=LD_LIBRARY_PATH
16383   shlibpath_overrides_runpath=no
16384   hardcode_into_libs=yes
16385   dynamic_linker='GNU ld.so'
16386   ;;
16387
16388 netbsd*)
16389   version_type=sunos
16390   need_lib_prefix=no
16391   need_version=no
16392   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16394     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16395     dynamic_linker='NetBSD (a.out) ld.so'
16396   else
16397     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16398     soname_spec='${libname}${release}${shared_ext}$major'
16399     dynamic_linker='NetBSD ld.elf_so'
16400   fi
16401   shlibpath_var=LD_LIBRARY_PATH
16402   shlibpath_overrides_runpath=yes
16403   hardcode_into_libs=yes
16404   ;;
16405
16406 newsos6)
16407   version_type=linux
16408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16409   shlibpath_var=LD_LIBRARY_PATH
16410   shlibpath_overrides_runpath=yes
16411   ;;
16412
16413 nto-qnx*)
16414   version_type=linux
16415   need_lib_prefix=no
16416   need_version=no
16417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418   soname_spec='${libname}${release}${shared_ext}$major'
16419   shlibpath_var=LD_LIBRARY_PATH
16420   shlibpath_overrides_runpath=yes
16421   ;;
16422
16423 openbsd*)
16424   version_type=sunos
16425   sys_lib_dlsearch_path_spec="/usr/lib"
16426   need_lib_prefix=no
16427   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16428   case $host_os in
16429     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16430     *)                         need_version=no  ;;
16431   esac
16432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16433   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16434   shlibpath_var=LD_LIBRARY_PATH
16435   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16436     case $host_os in
16437       openbsd2.[89] | openbsd2.[89].*)
16438         shlibpath_overrides_runpath=no
16439         ;;
16440       *)
16441         shlibpath_overrides_runpath=yes
16442         ;;
16443       esac
16444   else
16445     shlibpath_overrides_runpath=yes
16446   fi
16447   ;;
16448
16449 os2*)
16450   libname_spec='$name'
16451   shrext_cmds=".dll"
16452   need_lib_prefix=no
16453   library_names_spec='$libname${shared_ext} $libname.a'
16454   dynamic_linker='OS/2 ld.exe'
16455   shlibpath_var=LIBPATH
16456   ;;
16457
16458 osf3* | osf4* | osf5*)
16459   version_type=osf
16460   need_lib_prefix=no
16461   need_version=no
16462   soname_spec='${libname}${release}${shared_ext}$major'
16463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16464   shlibpath_var=LD_LIBRARY_PATH
16465   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16466   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16467   ;;
16468
16469 solaris*)
16470   version_type=linux
16471   need_lib_prefix=no
16472   need_version=no
16473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16474   soname_spec='${libname}${release}${shared_ext}$major'
16475   shlibpath_var=LD_LIBRARY_PATH
16476   shlibpath_overrides_runpath=yes
16477   hardcode_into_libs=yes
16478   # ldd complains unless libraries are executable
16479   postinstall_cmds='chmod +x $lib'
16480   ;;
16481
16482 sunos4*)
16483   version_type=sunos
16484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16485   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16486   shlibpath_var=LD_LIBRARY_PATH
16487   shlibpath_overrides_runpath=yes
16488   if test "$with_gnu_ld" = yes; then
16489     need_lib_prefix=no
16490   fi
16491   need_version=yes
16492   ;;
16493
16494 sysv4 | sysv4.3*)
16495   version_type=linux
16496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16497   soname_spec='${libname}${release}${shared_ext}$major'
16498   shlibpath_var=LD_LIBRARY_PATH
16499   case $host_vendor in
16500     sni)
16501       shlibpath_overrides_runpath=no
16502       need_lib_prefix=no
16503       export_dynamic_flag_spec='${wl}-Blargedynsym'
16504       runpath_var=LD_RUN_PATH
16505       ;;
16506     siemens)
16507       need_lib_prefix=no
16508       ;;
16509     motorola)
16510       need_lib_prefix=no
16511       need_version=no
16512       shlibpath_overrides_runpath=no
16513       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16514       ;;
16515   esac
16516   ;;
16517
16518 sysv4*MP*)
16519   if test -d /usr/nec ;then
16520     version_type=linux
16521     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16522     soname_spec='$libname${shared_ext}.$major'
16523     shlibpath_var=LD_LIBRARY_PATH
16524   fi
16525   ;;
16526
16527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16528   version_type=freebsd-elf
16529   need_lib_prefix=no
16530   need_version=no
16531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16532   soname_spec='${libname}${release}${shared_ext}$major'
16533   shlibpath_var=LD_LIBRARY_PATH
16534   hardcode_into_libs=yes
16535   if test "$with_gnu_ld" = yes; then
16536     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16537     shlibpath_overrides_runpath=no
16538   else
16539     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16540     shlibpath_overrides_runpath=yes
16541     case $host_os in
16542       sco3.2v5*)
16543         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16544         ;;
16545     esac
16546   fi
16547   sys_lib_dlsearch_path_spec='/usr/lib'
16548   ;;
16549
16550 uts4*)
16551   version_type=linux
16552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553   soname_spec='${libname}${release}${shared_ext}$major'
16554   shlibpath_var=LD_LIBRARY_PATH
16555   ;;
16556
16557 *)
16558   dynamic_linker=no
16559   ;;
16560 esac
16561 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16562 echo "${ECHO_T}$dynamic_linker" >&6; }
16563 test "$dynamic_linker" = no && can_build_shared=no
16564
16565 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16566 if test "$GCC" = yes; then
16567   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16568 fi
16569
16570 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16571 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16572 hardcode_action=
16573 if test -n "$hardcode_libdir_flag_spec" || \
16574    test -n "$runpath_var" || \
16575    test "X$hardcode_automatic" = "Xyes" ; then
16576
16577   # We can hardcode non-existant directories.
16578   if test "$hardcode_direct" != no &&
16579      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16580      # have to relink, otherwise we might link with an installed library
16581      # when we should be linking with a yet-to-be-installed one
16582      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16583      test "$hardcode_minus_L" != no; then
16584     # Linking always hardcodes the temporary library directory.
16585     hardcode_action=relink
16586   else
16587     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16588     hardcode_action=immediate
16589   fi
16590 else
16591   # We cannot hardcode anything, or else we can only hardcode existing
16592   # directories.
16593   hardcode_action=unsupported
16594 fi
16595 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16596 echo "${ECHO_T}$hardcode_action" >&6; }
16597
16598 if test "$hardcode_action" = relink; then
16599   # Fast installation is not supported
16600   enable_fast_install=no
16601 elif test "$shlibpath_overrides_runpath" = yes ||
16602      test "$enable_shared" = no; then
16603   # Fast installation is not necessary
16604   enable_fast_install=needless
16605 fi
16606
16607 striplib=
16608 old_striplib=
16609 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16610 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16611 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16612   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16613   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16614   { echo "$as_me:$LINENO: result: yes" >&5
16615 echo "${ECHO_T}yes" >&6; }
16616 else
16617 # FIXME - insert some real tests, host_os isn't really good enough
16618   case $host_os in
16619    darwin*)
16620        if test -n "$STRIP" ; then
16621          striplib="$STRIP -x"
16622          { echo "$as_me:$LINENO: result: yes" >&5
16623 echo "${ECHO_T}yes" >&6; }
16624        else
16625   { echo "$as_me:$LINENO: result: no" >&5
16626 echo "${ECHO_T}no" >&6; }
16627 fi
16628        ;;
16629    *)
16630   { echo "$as_me:$LINENO: result: no" >&5
16631 echo "${ECHO_T}no" >&6; }
16632     ;;
16633   esac
16634 fi
16635
16636 if test "x$enable_dlopen" != xyes; then
16637   enable_dlopen=unknown
16638   enable_dlopen_self=unknown
16639   enable_dlopen_self_static=unknown
16640 else
16641   lt_cv_dlopen=no
16642   lt_cv_dlopen_libs=
16643
16644   case $host_os in
16645   beos*)
16646     lt_cv_dlopen="load_add_on"
16647     lt_cv_dlopen_libs=
16648     lt_cv_dlopen_self=yes
16649     ;;
16650
16651   mingw* | pw32*)
16652     lt_cv_dlopen="LoadLibrary"
16653     lt_cv_dlopen_libs=
16654    ;;
16655
16656   cygwin*)
16657     lt_cv_dlopen="dlopen"
16658     lt_cv_dlopen_libs=
16659    ;;
16660
16661   darwin*)
16662   # if libdl is installed we need to link against it
16663     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16664 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16665 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16666   echo $ECHO_N "(cached) $ECHO_C" >&6
16667 else
16668   ac_check_lib_save_LIBS=$LIBS
16669 LIBS="-ldl  $LIBS"
16670 cat >conftest.$ac_ext <<_ACEOF
16671 /* confdefs.h.  */
16672 _ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h.  */
16676
16677 /* Override any GCC internal prototype to avoid an error.
16678    Use char because int might match the return type of a GCC
16679    builtin and then its argument prototype would still apply.  */
16680 #ifdef __cplusplus
16681 extern "C"
16682 #endif
16683 char dlopen ();
16684 int
16685 main ()
16686 {
16687 return dlopen ();
16688   ;
16689   return 0;
16690 }
16691 _ACEOF
16692 rm -f conftest.$ac_objext conftest$ac_exeext
16693 if { (ac_try="$ac_link"
16694 case "(($ac_try" in
16695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696   *) ac_try_echo=$ac_try;;
16697 esac
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699   (eval "$ac_link") 2>conftest.er1
16700   ac_status=$?
16701   grep -v '^ *+' conftest.er1 >conftest.err
16702   rm -f conftest.er1
16703   cat conftest.err >&5
16704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705   (exit $ac_status); } &&
16706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16707   { (case "(($ac_try" in
16708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709   *) ac_try_echo=$ac_try;;
16710 esac
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712   (eval "$ac_try") 2>&5
16713   ac_status=$?
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); }; } &&
16716          { ac_try='test -s conftest$ac_exeext'
16717   { (case "(($ac_try" in
16718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719   *) ac_try_echo=$ac_try;;
16720 esac
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722   (eval "$ac_try") 2>&5
16723   ac_status=$?
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); }; }; then
16726   ac_cv_lib_dl_dlopen=yes
16727 else
16728   echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16730
16731         ac_cv_lib_dl_dlopen=no
16732 fi
16733
16734 rm -f core conftest.err conftest.$ac_objext \
16735       conftest$ac_exeext conftest.$ac_ext
16736 LIBS=$ac_check_lib_save_LIBS
16737 fi
16738 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16739 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16740 if test $ac_cv_lib_dl_dlopen = yes; then
16741   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16742 else
16743
16744     lt_cv_dlopen="dyld"
16745     lt_cv_dlopen_libs=
16746     lt_cv_dlopen_self=yes
16747
16748 fi
16749
16750    ;;
16751
16752   *)
16753     { echo "$as_me:$LINENO: checking for shl_load" >&5
16754 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16755 if test "${ac_cv_func_shl_load+set}" = set; then
16756   echo $ECHO_N "(cached) $ECHO_C" >&6
16757 else
16758   cat >conftest.$ac_ext <<_ACEOF
16759 /* confdefs.h.  */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h.  */
16764 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16766 #define shl_load innocuous_shl_load
16767
16768 /* System header to define __stub macros and hopefully few prototypes,
16769     which can conflict with char shl_load (); below.
16770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16771     <limits.h> exists even on freestanding compilers.  */
16772
16773 #ifdef __STDC__
16774 # include <limits.h>
16775 #else
16776 # include <assert.h>
16777 #endif
16778
16779 #undef shl_load
16780
16781 /* Override any GCC internal prototype to avoid an error.
16782    Use char because int might match the return type of a GCC
16783    builtin and then its argument prototype would still apply.  */
16784 #ifdef __cplusplus
16785 extern "C"
16786 #endif
16787 char shl_load ();
16788 /* The GNU C library defines this for functions which it implements
16789     to always fail with ENOSYS.  Some functions are actually named
16790     something starting with __ and the normal name is an alias.  */
16791 #if defined __stub_shl_load || defined __stub___shl_load
16792 choke me
16793 #endif
16794
16795 int
16796 main ()
16797 {
16798 return shl_load ();
16799   ;
16800   return 0;
16801 }
16802 _ACEOF
16803 rm -f conftest.$ac_objext conftest$ac_exeext
16804 if { (ac_try="$ac_link"
16805 case "(($ac_try" in
16806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807   *) ac_try_echo=$ac_try;;
16808 esac
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810   (eval "$ac_link") 2>conftest.er1
16811   ac_status=$?
16812   grep -v '^ *+' conftest.er1 >conftest.err
16813   rm -f conftest.er1
16814   cat conftest.err >&5
16815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816   (exit $ac_status); } &&
16817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16818   { (case "(($ac_try" in
16819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820   *) ac_try_echo=$ac_try;;
16821 esac
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823   (eval "$ac_try") 2>&5
16824   ac_status=$?
16825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826   (exit $ac_status); }; } &&
16827          { ac_try='test -s conftest$ac_exeext'
16828   { (case "(($ac_try" in
16829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830   *) ac_try_echo=$ac_try;;
16831 esac
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833   (eval "$ac_try") 2>&5
16834   ac_status=$?
16835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836   (exit $ac_status); }; }; then
16837   ac_cv_func_shl_load=yes
16838 else
16839   echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.$ac_ext >&5
16841
16842         ac_cv_func_shl_load=no
16843 fi
16844
16845 rm -f core conftest.err conftest.$ac_objext \
16846       conftest$ac_exeext conftest.$ac_ext
16847 fi
16848 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16849 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16850 if test $ac_cv_func_shl_load = yes; then
16851   lt_cv_dlopen="shl_load"
16852 else
16853   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16854 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16855 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16856   echo $ECHO_N "(cached) $ECHO_C" >&6
16857 else
16858   ac_check_lib_save_LIBS=$LIBS
16859 LIBS="-ldld  $LIBS"
16860 cat >conftest.$ac_ext <<_ACEOF
16861 /* confdefs.h.  */
16862 _ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h.  */
16866
16867 /* Override any GCC internal prototype to avoid an error.
16868    Use char because int might match the return type of a GCC
16869    builtin and then its argument prototype would still apply.  */
16870 #ifdef __cplusplus
16871 extern "C"
16872 #endif
16873 char shl_load ();
16874 int
16875 main ()
16876 {
16877 return shl_load ();
16878   ;
16879   return 0;
16880 }
16881 _ACEOF
16882 rm -f conftest.$ac_objext conftest$ac_exeext
16883 if { (ac_try="$ac_link"
16884 case "(($ac_try" in
16885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886   *) ac_try_echo=$ac_try;;
16887 esac
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889   (eval "$ac_link") 2>conftest.er1
16890   ac_status=$?
16891   grep -v '^ *+' conftest.er1 >conftest.err
16892   rm -f conftest.er1
16893   cat conftest.err >&5
16894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895   (exit $ac_status); } &&
16896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16897   { (case "(($ac_try" in
16898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899   *) ac_try_echo=$ac_try;;
16900 esac
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902   (eval "$ac_try") 2>&5
16903   ac_status=$?
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); }; } &&
16906          { ac_try='test -s conftest$ac_exeext'
16907   { (case "(($ac_try" in
16908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909   *) ac_try_echo=$ac_try;;
16910 esac
16911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912   (eval "$ac_try") 2>&5
16913   ac_status=$?
16914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915   (exit $ac_status); }; }; then
16916   ac_cv_lib_dld_shl_load=yes
16917 else
16918   echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16920
16921         ac_cv_lib_dld_shl_load=no
16922 fi
16923
16924 rm -f core conftest.err conftest.$ac_objext \
16925       conftest$ac_exeext conftest.$ac_ext
16926 LIBS=$ac_check_lib_save_LIBS
16927 fi
16928 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16929 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16930 if test $ac_cv_lib_dld_shl_load = yes; then
16931   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16932 else
16933   { echo "$as_me:$LINENO: checking for dlopen" >&5
16934 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16935 if test "${ac_cv_func_dlopen+set}" = set; then
16936   echo $ECHO_N "(cached) $ECHO_C" >&6
16937 else
16938   cat >conftest.$ac_ext <<_ACEOF
16939 /* confdefs.h.  */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h.  */
16944 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16946 #define dlopen innocuous_dlopen
16947
16948 /* System header to define __stub macros and hopefully few prototypes,
16949     which can conflict with char dlopen (); below.
16950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16951     <limits.h> exists even on freestanding compilers.  */
16952
16953 #ifdef __STDC__
16954 # include <limits.h>
16955 #else
16956 # include <assert.h>
16957 #endif
16958
16959 #undef dlopen
16960
16961 /* Override any GCC internal prototype to avoid an error.
16962    Use char because int might match the return type of a GCC
16963    builtin and then its argument prototype would still apply.  */
16964 #ifdef __cplusplus
16965 extern "C"
16966 #endif
16967 char dlopen ();
16968 /* The GNU C library defines this for functions which it implements
16969     to always fail with ENOSYS.  Some functions are actually named
16970     something starting with __ and the normal name is an alias.  */
16971 #if defined __stub_dlopen || defined __stub___dlopen
16972 choke me
16973 #endif
16974
16975 int
16976 main ()
16977 {
16978 return dlopen ();
16979   ;
16980   return 0;
16981 }
16982 _ACEOF
16983 rm -f conftest.$ac_objext conftest$ac_exeext
16984 if { (ac_try="$ac_link"
16985 case "(($ac_try" in
16986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987   *) ac_try_echo=$ac_try;;
16988 esac
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990   (eval "$ac_link") 2>conftest.er1
16991   ac_status=$?
16992   grep -v '^ *+' conftest.er1 >conftest.err
16993   rm -f conftest.er1
16994   cat conftest.err >&5
16995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996   (exit $ac_status); } &&
16997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16998   { (case "(($ac_try" in
16999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17000   *) ac_try_echo=$ac_try;;
17001 esac
17002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17003   (eval "$ac_try") 2>&5
17004   ac_status=$?
17005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006   (exit $ac_status); }; } &&
17007          { ac_try='test -s conftest$ac_exeext'
17008   { (case "(($ac_try" in
17009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010   *) ac_try_echo=$ac_try;;
17011 esac
17012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013   (eval "$ac_try") 2>&5
17014   ac_status=$?
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); }; }; then
17017   ac_cv_func_dlopen=yes
17018 else
17019   echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17021
17022         ac_cv_func_dlopen=no
17023 fi
17024
17025 rm -f core conftest.err conftest.$ac_objext \
17026       conftest$ac_exeext conftest.$ac_ext
17027 fi
17028 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17029 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17030 if test $ac_cv_func_dlopen = yes; then
17031   lt_cv_dlopen="dlopen"
17032 else
17033   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17034 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17035 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17036   echo $ECHO_N "(cached) $ECHO_C" >&6
17037 else
17038   ac_check_lib_save_LIBS=$LIBS
17039 LIBS="-ldl  $LIBS"
17040 cat >conftest.$ac_ext <<_ACEOF
17041 /* confdefs.h.  */
17042 _ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h.  */
17046
17047 /* Override any GCC internal prototype to avoid an error.
17048    Use char because int might match the return type of a GCC
17049    builtin and then its argument prototype would still apply.  */
17050 #ifdef __cplusplus
17051 extern "C"
17052 #endif
17053 char dlopen ();
17054 int
17055 main ()
17056 {
17057 return dlopen ();
17058   ;
17059   return 0;
17060 }
17061 _ACEOF
17062 rm -f conftest.$ac_objext conftest$ac_exeext
17063 if { (ac_try="$ac_link"
17064 case "(($ac_try" in
17065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066   *) ac_try_echo=$ac_try;;
17067 esac
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069   (eval "$ac_link") 2>conftest.er1
17070   ac_status=$?
17071   grep -v '^ *+' conftest.er1 >conftest.err
17072   rm -f conftest.er1
17073   cat conftest.err >&5
17074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075   (exit $ac_status); } &&
17076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17077   { (case "(($ac_try" in
17078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079   *) ac_try_echo=$ac_try;;
17080 esac
17081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082   (eval "$ac_try") 2>&5
17083   ac_status=$?
17084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085   (exit $ac_status); }; } &&
17086          { ac_try='test -s conftest$ac_exeext'
17087   { (case "(($ac_try" in
17088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089   *) ac_try_echo=$ac_try;;
17090 esac
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092   (eval "$ac_try") 2>&5
17093   ac_status=$?
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); }; }; then
17096   ac_cv_lib_dl_dlopen=yes
17097 else
17098   echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17100
17101         ac_cv_lib_dl_dlopen=no
17102 fi
17103
17104 rm -f core conftest.err conftest.$ac_objext \
17105       conftest$ac_exeext conftest.$ac_ext
17106 LIBS=$ac_check_lib_save_LIBS
17107 fi
17108 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17109 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17110 if test $ac_cv_lib_dl_dlopen = yes; then
17111   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17112 else
17113   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17114 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17115 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17116   echo $ECHO_N "(cached) $ECHO_C" >&6
17117 else
17118   ac_check_lib_save_LIBS=$LIBS
17119 LIBS="-lsvld  $LIBS"
17120 cat >conftest.$ac_ext <<_ACEOF
17121 /* confdefs.h.  */
17122 _ACEOF
17123 cat confdefs.h >>conftest.$ac_ext
17124 cat >>conftest.$ac_ext <<_ACEOF
17125 /* end confdefs.h.  */
17126
17127 /* Override any GCC internal prototype to avoid an error.
17128    Use char because int might match the return type of a GCC
17129    builtin and then its argument prototype would still apply.  */
17130 #ifdef __cplusplus
17131 extern "C"
17132 #endif
17133 char dlopen ();
17134 int
17135 main ()
17136 {
17137 return dlopen ();
17138   ;
17139   return 0;
17140 }
17141 _ACEOF
17142 rm -f conftest.$ac_objext conftest$ac_exeext
17143 if { (ac_try="$ac_link"
17144 case "(($ac_try" in
17145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146   *) ac_try_echo=$ac_try;;
17147 esac
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149   (eval "$ac_link") 2>conftest.er1
17150   ac_status=$?
17151   grep -v '^ *+' conftest.er1 >conftest.err
17152   rm -f conftest.er1
17153   cat conftest.err >&5
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); } &&
17156          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17157   { (case "(($ac_try" in
17158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159   *) ac_try_echo=$ac_try;;
17160 esac
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162   (eval "$ac_try") 2>&5
17163   ac_status=$?
17164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165   (exit $ac_status); }; } &&
17166          { ac_try='test -s conftest$ac_exeext'
17167   { (case "(($ac_try" in
17168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169   *) ac_try_echo=$ac_try;;
17170 esac
17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172   (eval "$ac_try") 2>&5
17173   ac_status=$?
17174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175   (exit $ac_status); }; }; then
17176   ac_cv_lib_svld_dlopen=yes
17177 else
17178   echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17180
17181         ac_cv_lib_svld_dlopen=no
17182 fi
17183
17184 rm -f core conftest.err conftest.$ac_objext \
17185       conftest$ac_exeext conftest.$ac_ext
17186 LIBS=$ac_check_lib_save_LIBS
17187 fi
17188 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17189 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17190 if test $ac_cv_lib_svld_dlopen = yes; then
17191   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17192 else
17193   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17194 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17195 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17196   echo $ECHO_N "(cached) $ECHO_C" >&6
17197 else
17198   ac_check_lib_save_LIBS=$LIBS
17199 LIBS="-ldld  $LIBS"
17200 cat >conftest.$ac_ext <<_ACEOF
17201 /* confdefs.h.  */
17202 _ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h.  */
17206
17207 /* Override any GCC internal prototype to avoid an error.
17208    Use char because int might match the return type of a GCC
17209    builtin and then its argument prototype would still apply.  */
17210 #ifdef __cplusplus
17211 extern "C"
17212 #endif
17213 char dld_link ();
17214 int
17215 main ()
17216 {
17217 return dld_link ();
17218   ;
17219   return 0;
17220 }
17221 _ACEOF
17222 rm -f conftest.$ac_objext conftest$ac_exeext
17223 if { (ac_try="$ac_link"
17224 case "(($ac_try" in
17225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17226   *) ac_try_echo=$ac_try;;
17227 esac
17228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17229   (eval "$ac_link") 2>conftest.er1
17230   ac_status=$?
17231   grep -v '^ *+' conftest.er1 >conftest.err
17232   rm -f conftest.er1
17233   cat conftest.err >&5
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); } &&
17236          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17237   { (case "(($ac_try" in
17238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239   *) ac_try_echo=$ac_try;;
17240 esac
17241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242   (eval "$ac_try") 2>&5
17243   ac_status=$?
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); }; } &&
17246          { ac_try='test -s conftest$ac_exeext'
17247   { (case "(($ac_try" in
17248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249   *) ac_try_echo=$ac_try;;
17250 esac
17251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252   (eval "$ac_try") 2>&5
17253   ac_status=$?
17254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255   (exit $ac_status); }; }; then
17256   ac_cv_lib_dld_dld_link=yes
17257 else
17258   echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17260
17261         ac_cv_lib_dld_dld_link=no
17262 fi
17263
17264 rm -f core conftest.err conftest.$ac_objext \
17265       conftest$ac_exeext conftest.$ac_ext
17266 LIBS=$ac_check_lib_save_LIBS
17267 fi
17268 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17269 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17270 if test $ac_cv_lib_dld_dld_link = yes; then
17271   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17272 fi
17273
17274
17275 fi
17276
17277
17278 fi
17279
17280
17281 fi
17282
17283
17284 fi
17285
17286
17287 fi
17288
17289     ;;
17290   esac
17291
17292   if test "x$lt_cv_dlopen" != xno; then
17293     enable_dlopen=yes
17294   else
17295     enable_dlopen=no
17296   fi
17297
17298   case $lt_cv_dlopen in
17299   dlopen)
17300     save_CPPFLAGS="$CPPFLAGS"
17301     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17302
17303     save_LDFLAGS="$LDFLAGS"
17304     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17305
17306     save_LIBS="$LIBS"
17307     LIBS="$lt_cv_dlopen_libs $LIBS"
17308
17309     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17310 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17311 if test "${lt_cv_dlopen_self+set}" = set; then
17312   echo $ECHO_N "(cached) $ECHO_C" >&6
17313 else
17314           if test "$cross_compiling" = yes; then :
17315   lt_cv_dlopen_self=cross
17316 else
17317   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17318   lt_status=$lt_dlunknown
17319   cat > conftest.$ac_ext <<EOF
17320 #line 17319 "configure"
17321 #include "confdefs.h"
17322
17323 #if HAVE_DLFCN_H
17324 #include <dlfcn.h>
17325 #endif
17326
17327 #include <stdio.h>
17328
17329 #ifdef RTLD_GLOBAL
17330 #  define LT_DLGLOBAL           RTLD_GLOBAL
17331 #else
17332 #  ifdef DL_GLOBAL
17333 #    define LT_DLGLOBAL         DL_GLOBAL
17334 #  else
17335 #    define LT_DLGLOBAL         0
17336 #  endif
17337 #endif
17338
17339 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17340    find out it does not work in some platform. */
17341 #ifndef LT_DLLAZY_OR_NOW
17342 #  ifdef RTLD_LAZY
17343 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17344 #  else
17345 #    ifdef DL_LAZY
17346 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17347 #    else
17348 #      ifdef RTLD_NOW
17349 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17350 #      else
17351 #        ifdef DL_NOW
17352 #          define LT_DLLAZY_OR_NOW      DL_NOW
17353 #        else
17354 #          define LT_DLLAZY_OR_NOW      0
17355 #        endif
17356 #      endif
17357 #    endif
17358 #  endif
17359 #endif
17360
17361 #ifdef __cplusplus
17362 extern "C" void exit (int);
17363 #endif
17364
17365 void fnord() { int i=42;}
17366 int main ()
17367 {
17368   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17369   int status = $lt_dlunknown;
17370
17371   if (self)
17372     {
17373       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17374       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17375       /* dlclose (self); */
17376     }
17377   else
17378     puts (dlerror ());
17379
17380     exit (status);
17381 }
17382 EOF
17383   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17384   (eval $ac_link) 2>&5
17385   ac_status=$?
17386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17388     (./conftest; exit; ) >&5 2>/dev/null
17389     lt_status=$?
17390     case x$lt_status in
17391       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17392       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17393       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17394     esac
17395   else :
17396     # compilation failed
17397     lt_cv_dlopen_self=no
17398   fi
17399 fi
17400 rm -fr conftest*
17401
17402
17403 fi
17404 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17405 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17406
17407     if test "x$lt_cv_dlopen_self" = xyes; then
17408       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17409       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17410 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17411 if test "${lt_cv_dlopen_self_static+set}" = set; then
17412   echo $ECHO_N "(cached) $ECHO_C" >&6
17413 else
17414           if test "$cross_compiling" = yes; then :
17415   lt_cv_dlopen_self_static=cross
17416 else
17417   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17418   lt_status=$lt_dlunknown
17419   cat > conftest.$ac_ext <<EOF
17420 #line 17419 "configure"
17421 #include "confdefs.h"
17422
17423 #if HAVE_DLFCN_H
17424 #include <dlfcn.h>
17425 #endif
17426
17427 #include <stdio.h>
17428
17429 #ifdef RTLD_GLOBAL
17430 #  define LT_DLGLOBAL           RTLD_GLOBAL
17431 #else
17432 #  ifdef DL_GLOBAL
17433 #    define LT_DLGLOBAL         DL_GLOBAL
17434 #  else
17435 #    define LT_DLGLOBAL         0
17436 #  endif
17437 #endif
17438
17439 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17440    find out it does not work in some platform. */
17441 #ifndef LT_DLLAZY_OR_NOW
17442 #  ifdef RTLD_LAZY
17443 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17444 #  else
17445 #    ifdef DL_LAZY
17446 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17447 #    else
17448 #      ifdef RTLD_NOW
17449 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17450 #      else
17451 #        ifdef DL_NOW
17452 #          define LT_DLLAZY_OR_NOW      DL_NOW
17453 #        else
17454 #          define LT_DLLAZY_OR_NOW      0
17455 #        endif
17456 #      endif
17457 #    endif
17458 #  endif
17459 #endif
17460
17461 #ifdef __cplusplus
17462 extern "C" void exit (int);
17463 #endif
17464
17465 void fnord() { int i=42;}
17466 int main ()
17467 {
17468   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17469   int status = $lt_dlunknown;
17470
17471   if (self)
17472     {
17473       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17474       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17475       /* dlclose (self); */
17476     }
17477   else
17478     puts (dlerror ());
17479
17480     exit (status);
17481 }
17482 EOF
17483   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484   (eval $ac_link) 2>&5
17485   ac_status=$?
17486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17488     (./conftest; exit; ) >&5 2>/dev/null
17489     lt_status=$?
17490     case x$lt_status in
17491       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17492       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17493       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17494     esac
17495   else :
17496     # compilation failed
17497     lt_cv_dlopen_self_static=no
17498   fi
17499 fi
17500 rm -fr conftest*
17501
17502
17503 fi
17504 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17505 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17506     fi
17507
17508     CPPFLAGS="$save_CPPFLAGS"
17509     LDFLAGS="$save_LDFLAGS"
17510     LIBS="$save_LIBS"
17511     ;;
17512   esac
17513
17514   case $lt_cv_dlopen_self in
17515   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17516   *) enable_dlopen_self=unknown ;;
17517   esac
17518
17519   case $lt_cv_dlopen_self_static in
17520   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17521   *) enable_dlopen_self_static=unknown ;;
17522   esac
17523 fi
17524
17525
17526 # Report which library types will actually be built
17527 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17528 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17529 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17530 echo "${ECHO_T}$can_build_shared" >&6; }
17531
17532 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17533 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17534 test "$can_build_shared" = "no" && enable_shared=no
17535
17536 # On AIX, shared libraries and static libraries use the same namespace, and
17537 # are all built from PIC.
17538 case $host_os in
17539 aix3*)
17540   test "$enable_shared" = yes && enable_static=no
17541   if test -n "$RANLIB"; then
17542     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17543     postinstall_cmds='$RANLIB $lib'
17544   fi
17545   ;;
17546
17547 aix4* | aix5*)
17548   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17549     test "$enable_shared" = yes && enable_static=no
17550   fi
17551     ;;
17552 esac
17553 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17554 echo "${ECHO_T}$enable_shared" >&6; }
17555
17556 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17557 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17558 # Make sure either enable_shared or enable_static is yes.
17559 test "$enable_shared" = yes || enable_static=yes
17560 { echo "$as_me:$LINENO: result: $enable_static" >&5
17561 echo "${ECHO_T}$enable_static" >&6; }
17562
17563 # The else clause should only fire when bootstrapping the
17564 # libtool distribution, otherwise you forgot to ship ltmain.sh
17565 # with your package, and you will get complaints that there are
17566 # no rules to generate ltmain.sh.
17567 if test -f "$ltmain"; then
17568   # See if we are running on zsh, and set the options which allow our commands through
17569   # without removal of \ escapes.
17570   if test -n "${ZSH_VERSION+set}" ; then
17571     setopt NO_GLOB_SUBST
17572   fi
17573   # Now quote all the things that may contain metacharacters while being
17574   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17575   # variables and quote the copies for generation of the libtool script.
17576   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17577     SED SHELL STRIP \
17578     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17579     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17580     deplibs_check_method reload_flag reload_cmds need_locks \
17581     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17582     lt_cv_sys_global_symbol_to_c_name_address \
17583     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17584     old_postinstall_cmds old_postuninstall_cmds \
17585     compiler \
17586     CC \
17587     LD \
17588     lt_prog_compiler_wl \
17589     lt_prog_compiler_pic \
17590     lt_prog_compiler_static \
17591     lt_prog_compiler_no_builtin_flag \
17592     export_dynamic_flag_spec \
17593     thread_safe_flag_spec \
17594     whole_archive_flag_spec \
17595     enable_shared_with_static_runtimes \
17596     old_archive_cmds \
17597     old_archive_from_new_cmds \
17598     predep_objects \
17599     postdep_objects \
17600     predeps \
17601     postdeps \
17602     compiler_lib_search_path \
17603     archive_cmds \
17604     archive_expsym_cmds \
17605     postinstall_cmds \
17606     postuninstall_cmds \
17607     old_archive_from_expsyms_cmds \
17608     allow_undefined_flag \
17609     no_undefined_flag \
17610     export_symbols_cmds \
17611     hardcode_libdir_flag_spec \
17612     hardcode_libdir_flag_spec_ld \
17613     hardcode_libdir_separator \
17614     hardcode_automatic \
17615     module_cmds \
17616     module_expsym_cmds \
17617     lt_cv_prog_compiler_c_o \
17618     exclude_expsyms \
17619     include_expsyms; do
17620
17621     case $var in
17622     old_archive_cmds | \
17623     old_archive_from_new_cmds | \
17624     archive_cmds | \
17625     archive_expsym_cmds | \
17626     module_cmds | \
17627     module_expsym_cmds | \
17628     old_archive_from_expsyms_cmds | \
17629     export_symbols_cmds | \
17630     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17631     postinstall_cmds | postuninstall_cmds | \
17632     old_postinstall_cmds | old_postuninstall_cmds | \
17633     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17634       # Double-quote double-evaled strings.
17635       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17636       ;;
17637     *)
17638       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17639       ;;
17640     esac
17641   done
17642
17643   case $lt_echo in
17644   *'\$0 --fallback-echo"')
17645     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17646     ;;
17647   esac
17648
17649 cfgfile="${ofile}T"
17650   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17651   $rm -f "$cfgfile"
17652   { echo "$as_me:$LINENO: creating $ofile" >&5
17653 echo "$as_me: creating $ofile" >&6;}
17654
17655   cat <<__EOF__ >> "$cfgfile"
17656 #! $SHELL
17657
17658 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17659 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17660 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17661 #
17662 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17663 # Free Software Foundation, Inc.
17664 #
17665 # This file is part of GNU Libtool:
17666 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17667 #
17668 # This program is free software; you can redistribute it and/or modify
17669 # it under the terms of the GNU General Public License as published by
17670 # the Free Software Foundation; either version 2 of the License, or
17671 # (at your option) any later version.
17672 #
17673 # This program is distributed in the hope that it will be useful, but
17674 # WITHOUT ANY WARRANTY; without even the implied warranty of
17675 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17676 # General Public License for more details.
17677 #
17678 # You should have received a copy of the GNU General Public License
17679 # along with this program; if not, write to the Free Software
17680 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17681 #
17682 # As a special exception to the GNU General Public License, if you
17683 # distribute this file as part of a program that contains a
17684 # configuration script generated by Autoconf, you may include it under
17685 # the same distribution terms that you use for the rest of that program.
17686
17687 # A sed program that does not truncate output.
17688 SED=$lt_SED
17689
17690 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17691 Xsed="$SED -e 1s/^X//"
17692
17693 # The HP-UX ksh and POSIX shell print the target directory to stdout
17694 # if CDPATH is set.
17695 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17696
17697 # The names of the tagged configurations supported by this script.
17698 available_tags=
17699
17700 # ### BEGIN LIBTOOL CONFIG
17701
17702 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17703
17704 # Shell to use when invoking shell scripts.
17705 SHELL=$lt_SHELL
17706
17707 # Whether or not to build shared libraries.
17708 build_libtool_libs=$enable_shared
17709
17710 # Whether or not to build static libraries.
17711 build_old_libs=$enable_static
17712
17713 # Whether or not to add -lc for building shared libraries.
17714 build_libtool_need_lc=$archive_cmds_need_lc
17715
17716 # Whether or not to disallow shared libs when runtime libs are static
17717 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17718
17719 # Whether or not to optimize for fast installation.
17720 fast_install=$enable_fast_install
17721
17722 # The host system.
17723 host_alias=$host_alias
17724 host=$host
17725 host_os=$host_os
17726
17727 # The build system.
17728 build_alias=$build_alias
17729 build=$build
17730 build_os=$build_os
17731
17732 # An echo program that does not interpret backslashes.
17733 echo=$lt_echo
17734
17735 # The archiver.
17736 AR=$lt_AR
17737 AR_FLAGS=$lt_AR_FLAGS
17738
17739 # A C compiler.
17740 LTCC=$lt_LTCC
17741
17742 # LTCC compiler flags.
17743 LTCFLAGS=$lt_LTCFLAGS
17744
17745 # A language-specific compiler.
17746 CC=$lt_compiler
17747
17748 # Is the compiler the GNU C compiler?
17749 with_gcc=$GCC
17750
17751 # An ERE matcher.
17752 EGREP=$lt_EGREP
17753
17754 # The linker used to build libraries.
17755 LD=$lt_LD
17756
17757 # Whether we need hard or soft links.
17758 LN_S=$lt_LN_S
17759
17760 # A BSD-compatible nm program.
17761 NM=$lt_NM
17762
17763 # A symbol stripping program
17764 STRIP=$lt_STRIP
17765
17766 # Used to examine libraries when file_magic_cmd begins "file"
17767 MAGIC_CMD=$MAGIC_CMD
17768
17769 # Used on cygwin: DLL creation program.
17770 DLLTOOL="$DLLTOOL"
17771
17772 # Used on cygwin: object dumper.
17773 OBJDUMP="$OBJDUMP"
17774
17775 # Used on cygwin: assembler.
17776 AS="$AS"
17777
17778 # The name of the directory that contains temporary libtool files.
17779 objdir=$objdir
17780
17781 # How to create reloadable object files.
17782 reload_flag=$lt_reload_flag
17783 reload_cmds=$lt_reload_cmds
17784
17785 # How to pass a linker flag through the compiler.
17786 wl=$lt_lt_prog_compiler_wl
17787
17788 # Object file suffix (normally "o").
17789 objext="$ac_objext"
17790
17791 # Old archive suffix (normally "a").
17792 libext="$libext"
17793
17794 # Shared library suffix (normally ".so").
17795 shrext_cmds='$shrext_cmds'
17796
17797 # Executable file suffix (normally "").
17798 exeext="$exeext"
17799
17800 # Additional compiler flags for building library objects.
17801 pic_flag=$lt_lt_prog_compiler_pic
17802 pic_mode=$pic_mode
17803
17804 # What is the maximum length of a command?
17805 max_cmd_len=$lt_cv_sys_max_cmd_len
17806
17807 # Does compiler simultaneously support -c and -o options?
17808 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17809
17810 # Must we lock files when doing compilation?
17811 need_locks=$lt_need_locks
17812
17813 # Do we need the lib prefix for modules?
17814 need_lib_prefix=$need_lib_prefix
17815
17816 # Do we need a version for libraries?
17817 need_version=$need_version
17818
17819 # Whether dlopen is supported.
17820 dlopen_support=$enable_dlopen
17821
17822 # Whether dlopen of programs is supported.
17823 dlopen_self=$enable_dlopen_self
17824
17825 # Whether dlopen of statically linked programs is supported.
17826 dlopen_self_static=$enable_dlopen_self_static
17827
17828 # Compiler flag to prevent dynamic linking.
17829 link_static_flag=$lt_lt_prog_compiler_static
17830
17831 # Compiler flag to turn off builtin functions.
17832 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17833
17834 # Compiler flag to allow reflexive dlopens.
17835 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17836
17837 # Compiler flag to generate shared objects directly from archives.
17838 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17839
17840 # Compiler flag to generate thread-safe objects.
17841 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17842
17843 # Library versioning type.
17844 version_type=$version_type
17845
17846 # Format of library name prefix.
17847 libname_spec=$lt_libname_spec
17848
17849 # List of archive names.  First name is the real one, the rest are links.
17850 # The last name is the one that the linker finds with -lNAME.
17851 library_names_spec=$lt_library_names_spec
17852
17853 # The coded name of the library, if different from the real name.
17854 soname_spec=$lt_soname_spec
17855
17856 # Commands used to build and install an old-style archive.
17857 RANLIB=$lt_RANLIB
17858 old_archive_cmds=$lt_old_archive_cmds
17859 old_postinstall_cmds=$lt_old_postinstall_cmds
17860 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17861
17862 # Create an old-style archive from a shared archive.
17863 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17864
17865 # Create a temporary old-style archive to link instead of a shared archive.
17866 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17867
17868 # Commands used to build and install a shared archive.
17869 archive_cmds=$lt_archive_cmds
17870 archive_expsym_cmds=$lt_archive_expsym_cmds
17871 postinstall_cmds=$lt_postinstall_cmds
17872 postuninstall_cmds=$lt_postuninstall_cmds
17873
17874 # Commands used to build a loadable module (assumed same as above if empty)
17875 module_cmds=$lt_module_cmds
17876 module_expsym_cmds=$lt_module_expsym_cmds
17877
17878 # Commands to strip libraries.
17879 old_striplib=$lt_old_striplib
17880 striplib=$lt_striplib
17881
17882 # Dependencies to place before the objects being linked to create a
17883 # shared library.
17884 predep_objects=$lt_predep_objects
17885
17886 # Dependencies to place after the objects being linked to create a
17887 # shared library.
17888 postdep_objects=$lt_postdep_objects
17889
17890 # Dependencies to place before the objects being linked to create a
17891 # shared library.
17892 predeps=$lt_predeps
17893
17894 # Dependencies to place after the objects being linked to create a
17895 # shared library.
17896 postdeps=$lt_postdeps
17897
17898 # The library search path used internally by the compiler when linking
17899 # a shared library.
17900 compiler_lib_search_path=$lt_compiler_lib_search_path
17901
17902 # Method to check whether dependent libraries are shared objects.
17903 deplibs_check_method=$lt_deplibs_check_method
17904
17905 # Command to use when deplibs_check_method == file_magic.
17906 file_magic_cmd=$lt_file_magic_cmd
17907
17908 # Flag that allows shared libraries with undefined symbols to be built.
17909 allow_undefined_flag=$lt_allow_undefined_flag
17910
17911 # Flag that forces no undefined symbols.
17912 no_undefined_flag=$lt_no_undefined_flag
17913
17914 # Commands used to finish a libtool library installation in a directory.
17915 finish_cmds=$lt_finish_cmds
17916
17917 # Same as above, but a single script fragment to be evaled but not shown.
17918 finish_eval=$lt_finish_eval
17919
17920 # Take the output of nm and produce a listing of raw symbols and C names.
17921 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17922
17923 # Transform the output of nm in a proper C declaration
17924 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17925
17926 # Transform the output of nm in a C name address pair
17927 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17928
17929 # This is the shared library runtime path variable.
17930 runpath_var=$runpath_var
17931
17932 # This is the shared library path variable.
17933 shlibpath_var=$shlibpath_var
17934
17935 # Is shlibpath searched before the hard-coded library search path?
17936 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17937
17938 # How to hardcode a shared library path into an executable.
17939 hardcode_action=$hardcode_action
17940
17941 # Whether we should hardcode library paths into libraries.
17942 hardcode_into_libs=$hardcode_into_libs
17943
17944 # Flag to hardcode \$libdir into a binary during linking.
17945 # This must work even if \$libdir does not exist.
17946 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17947
17948 # If ld is used when linking, flag to hardcode \$libdir into
17949 # a binary during linking. This must work even if \$libdir does
17950 # not exist.
17951 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17952
17953 # Whether we need a single -rpath flag with a separated argument.
17954 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17955
17956 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17957 # resulting binary.
17958 hardcode_direct=$hardcode_direct
17959
17960 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17961 # resulting binary.
17962 hardcode_minus_L=$hardcode_minus_L
17963
17964 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17965 # the resulting binary.
17966 hardcode_shlibpath_var=$hardcode_shlibpath_var
17967
17968 # Set to yes if building a shared library automatically hardcodes DIR into the library
17969 # and all subsequent libraries and executables linked against it.
17970 hardcode_automatic=$hardcode_automatic
17971
17972 # Variables whose values should be saved in libtool wrapper scripts and
17973 # restored at relink time.
17974 variables_saved_for_relink="$variables_saved_for_relink"
17975
17976 # Whether libtool must link a program against all its dependency libraries.
17977 link_all_deplibs=$link_all_deplibs
17978
17979 # Compile-time system search path for libraries
17980 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17981
17982 # Run-time system search path for libraries
17983 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17984
17985 # Fix the shell variable \$srcfile for the compiler.
17986 fix_srcfile_path="$fix_srcfile_path"
17987
17988 # Set to yes if exported symbols are required.
17989 always_export_symbols=$always_export_symbols
17990
17991 # The commands to list exported symbols.
17992 export_symbols_cmds=$lt_export_symbols_cmds
17993
17994 # The commands to extract the exported symbol list from a shared archive.
17995 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17996
17997 # Symbols that should not be listed in the preloaded symbols.
17998 exclude_expsyms=$lt_exclude_expsyms
17999
18000 # Symbols that must always be exported.
18001 include_expsyms=$lt_include_expsyms
18002
18003 # ### END LIBTOOL CONFIG
18004
18005 __EOF__
18006
18007
18008   case $host_os in
18009   aix3*)
18010     cat <<\EOF >> "$cfgfile"
18011
18012 # AIX sometimes has problems with the GCC collect2 program.  For some
18013 # reason, if we set the COLLECT_NAMES environment variable, the problems
18014 # vanish in a puff of smoke.
18015 if test "X${COLLECT_NAMES+set}" != Xset; then
18016   COLLECT_NAMES=
18017   export COLLECT_NAMES
18018 fi
18019 EOF
18020     ;;
18021   esac
18022
18023   # We use sed instead of cat because bash on DJGPP gets confused if
18024   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18025   # text mode, it properly converts lines to CR/LF.  This bash problem
18026   # is reportedly fixed, but why not run on old versions too?
18027   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18028
18029   mv -f "$cfgfile" "$ofile" || \
18030     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18031   chmod +x "$ofile"
18032
18033 else
18034   # If there is no Makefile yet, we rely on a make rule to execute
18035   # `config.status --recheck' to rerun these tests and create the
18036   # libtool script then.
18037   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18038   if test -f "$ltmain_in"; then
18039     test -f Makefile && make "$ltmain"
18040   fi
18041 fi
18042
18043
18044 ac_ext=c
18045 ac_cpp='$CPP $CPPFLAGS'
18046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18049
18050 CC="$lt_save_CC"
18051
18052
18053 # Check whether --with-tags was given.
18054 if test "${with_tags+set}" = set; then
18055   withval=$with_tags; tagnames="$withval"
18056 fi
18057
18058
18059 if test -f "$ltmain" && test -n "$tagnames"; then
18060   if test ! -f "${ofile}"; then
18061     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18062 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18063   fi
18064
18065   if test -z "$LTCC"; then
18066     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18067     if test -z "$LTCC"; then
18068       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18069 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18070     else
18071       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18072 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18073     fi
18074   fi
18075   if test -z "$LTCFLAGS"; then
18076     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18077   fi
18078
18079   # Extract list of available tagged configurations in $ofile.
18080   # Note that this assumes the entire list is on one line.
18081   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18082
18083   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18084   for tagname in $tagnames; do
18085     IFS="$lt_save_ifs"
18086     # Check whether tagname contains only valid characters
18087     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18088     "") ;;
18089     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18090 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18091    { (exit 1); exit 1; }; }
18092         ;;
18093     esac
18094
18095     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18096     then
18097       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18098 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18099    { (exit 1); exit 1; }; }
18100     fi
18101
18102     # Update the list of available tags.
18103     if test -n "$tagname"; then
18104       echo appending configuration tag \"$tagname\" to $ofile
18105
18106       case $tagname in
18107       CXX)
18108         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18109             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18110             (test "X$CXX" != "Xg++"))) ; then
18111           ac_ext=cpp
18112 ac_cpp='$CXXCPP $CPPFLAGS'
18113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18116
18117
18118
18119
18120 archive_cmds_need_lc_CXX=no
18121 allow_undefined_flag_CXX=
18122 always_export_symbols_CXX=no
18123 archive_expsym_cmds_CXX=
18124 export_dynamic_flag_spec_CXX=
18125 hardcode_direct_CXX=no
18126 hardcode_libdir_flag_spec_CXX=
18127 hardcode_libdir_flag_spec_ld_CXX=
18128 hardcode_libdir_separator_CXX=
18129 hardcode_minus_L_CXX=no
18130 hardcode_shlibpath_var_CXX=unsupported
18131 hardcode_automatic_CXX=no
18132 module_cmds_CXX=
18133 module_expsym_cmds_CXX=
18134 link_all_deplibs_CXX=unknown
18135 old_archive_cmds_CXX=$old_archive_cmds
18136 no_undefined_flag_CXX=
18137 whole_archive_flag_spec_CXX=
18138 enable_shared_with_static_runtimes_CXX=no
18139
18140 # Dependencies to place before and after the object being linked:
18141 predep_objects_CXX=
18142 postdep_objects_CXX=
18143 predeps_CXX=
18144 postdeps_CXX=
18145 compiler_lib_search_path_CXX=
18146
18147 # Source file extension for C++ test sources.
18148 ac_ext=cpp
18149
18150 # Object file extension for compiled C++ test sources.
18151 objext=o
18152 objext_CXX=$objext
18153
18154 # Code to be used in simple compile tests
18155 lt_simple_compile_test_code="int some_variable = 0;\n"
18156
18157 # Code to be used in simple link tests
18158 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18159
18160 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18161
18162 # If no C compiler was specified, use CC.
18163 LTCC=${LTCC-"$CC"}
18164
18165 # If no C compiler flags were specified, use CFLAGS.
18166 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18167
18168 # Allow CC to be a program name with arguments.
18169 compiler=$CC
18170
18171
18172 # save warnings/boilerplate of simple test code
18173 ac_outfile=conftest.$ac_objext
18174 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18175 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18176 _lt_compiler_boilerplate=`cat conftest.err`
18177 $rm conftest*
18178
18179 ac_outfile=conftest.$ac_objext
18180 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18181 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18182 _lt_linker_boilerplate=`cat conftest.err`
18183 $rm conftest*
18184
18185
18186 # Allow CC to be a program name with arguments.
18187 lt_save_CC=$CC
18188 lt_save_LD=$LD
18189 lt_save_GCC=$GCC
18190 GCC=$GXX
18191 lt_save_with_gnu_ld=$with_gnu_ld
18192 lt_save_path_LD=$lt_cv_path_LD
18193 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18194   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18195 else
18196   $as_unset lt_cv_prog_gnu_ld
18197 fi
18198 if test -n "${lt_cv_path_LDCXX+set}"; then
18199   lt_cv_path_LD=$lt_cv_path_LDCXX
18200 else
18201   $as_unset lt_cv_path_LD
18202 fi
18203 test -z "${LDCXX+set}" || LD=$LDCXX
18204 CC=${CXX-"c++"}
18205 compiler=$CC
18206 compiler_CXX=$CC
18207 for cc_temp in $compiler""; do
18208   case $cc_temp in
18209     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18210     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18211     \-*) ;;
18212     *) break;;
18213   esac
18214 done
18215 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18216
18217
18218 # We don't want -fno-exception wen compiling C++ code, so set the
18219 # no_builtin_flag separately
18220 if test "$GXX" = yes; then
18221   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18222 else
18223   lt_prog_compiler_no_builtin_flag_CXX=
18224 fi
18225
18226 if test "$GXX" = yes; then
18227   # Set up default GNU C++ configuration
18228
18229
18230 # Check whether --with-gnu-ld was given.
18231 if test "${with_gnu_ld+set}" = set; then
18232   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18233 else
18234   with_gnu_ld=no
18235 fi
18236
18237 ac_prog=ld
18238 if test "$GCC" = yes; then
18239   # Check if gcc -print-prog-name=ld gives a path.
18240   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18241 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18242   case $host in
18243   *-*-mingw*)
18244     # gcc leaves a trailing carriage return which upsets mingw
18245     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18246   *)
18247     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18248   esac
18249   case $ac_prog in
18250     # Accept absolute paths.
18251     [\\/]* | ?:[\\/]*)
18252       re_direlt='/[^/][^/]*/\.\./'
18253       # Canonicalize the pathname of ld
18254       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18255       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18256         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18257       done
18258       test -z "$LD" && LD="$ac_prog"
18259       ;;
18260   "")
18261     # If it fails, then pretend we aren't using GCC.
18262     ac_prog=ld
18263     ;;
18264   *)
18265     # If it is relative, then search for the first ld in PATH.
18266     with_gnu_ld=unknown
18267     ;;
18268   esac
18269 elif test "$with_gnu_ld" = yes; then
18270   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18271 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18272 else
18273   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18274 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18275 fi
18276 if test "${lt_cv_path_LD+set}" = set; then
18277   echo $ECHO_N "(cached) $ECHO_C" >&6
18278 else
18279   if test -z "$LD"; then
18280   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18281   for ac_dir in $PATH; do
18282     IFS="$lt_save_ifs"
18283     test -z "$ac_dir" && ac_dir=.
18284     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18285       lt_cv_path_LD="$ac_dir/$ac_prog"
18286       # Check to see if the program is GNU ld.  I'd rather use --version,
18287       # but apparently some variants of GNU ld only accept -v.
18288       # Break only if it was the GNU/non-GNU ld that we prefer.
18289       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18290       *GNU* | *'with BFD'*)
18291         test "$with_gnu_ld" != no && break
18292         ;;
18293       *)
18294         test "$with_gnu_ld" != yes && break
18295         ;;
18296       esac
18297     fi
18298   done
18299   IFS="$lt_save_ifs"
18300 else
18301   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18302 fi
18303 fi
18304
18305 LD="$lt_cv_path_LD"
18306 if test -n "$LD"; then
18307   { echo "$as_me:$LINENO: result: $LD" >&5
18308 echo "${ECHO_T}$LD" >&6; }
18309 else
18310   { echo "$as_me:$LINENO: result: no" >&5
18311 echo "${ECHO_T}no" >&6; }
18312 fi
18313 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18314 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18315    { (exit 1); exit 1; }; }
18316 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18317 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18318 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18319   echo $ECHO_N "(cached) $ECHO_C" >&6
18320 else
18321   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18322 case `$LD -v 2>&1 </dev/null` in
18323 *GNU* | *'with BFD'*)
18324   lt_cv_prog_gnu_ld=yes
18325   ;;
18326 *)
18327   lt_cv_prog_gnu_ld=no
18328   ;;
18329 esac
18330 fi
18331 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18332 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18333 with_gnu_ld=$lt_cv_prog_gnu_ld
18334
18335
18336
18337   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18338   # archiving commands below assume that GNU ld is being used.
18339   if test "$with_gnu_ld" = yes; then
18340     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18341     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'
18342
18343     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18344     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18345
18346     # If archive_cmds runs LD, not CC, wlarc should be empty
18347     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18348     #     investigate it a little bit more. (MM)
18349     wlarc='${wl}'
18350
18351     # ancient GNU ld didn't support --whole-archive et. al.
18352     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18353         grep 'no-whole-archive' > /dev/null; then
18354       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18355     else
18356       whole_archive_flag_spec_CXX=
18357     fi
18358   else
18359     with_gnu_ld=no
18360     wlarc=
18361
18362     # A generic and very simple default shared library creation
18363     # command for GNU C++ for the case where it uses the native
18364     # linker, instead of GNU ld.  If possible, this setting should
18365     # overridden to take advantage of the native linker features on
18366     # the platform it is being used on.
18367     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18368   fi
18369
18370   # Commands to make compiler produce verbose output that lists
18371   # what "hidden" libraries, object files and flags are used when
18372   # linking a shared library.
18373   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18374
18375 else
18376   GXX=no
18377   with_gnu_ld=no
18378   wlarc=
18379 fi
18380
18381 # PORTME: fill in a description of your system's C++ link characteristics
18382 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18383 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18384 ld_shlibs_CXX=yes
18385 case $host_os in
18386   aix3*)
18387     # FIXME: insert proper C++ library support
18388     ld_shlibs_CXX=no
18389     ;;
18390   aix4* | aix5*)
18391     if test "$host_cpu" = ia64; then
18392       # On IA64, the linker does run time linking by default, so we don't
18393       # have to do anything special.
18394       aix_use_runtimelinking=no
18395       exp_sym_flag='-Bexport'
18396       no_entry_flag=""
18397     else
18398       aix_use_runtimelinking=no
18399
18400       # Test if we are trying to use run time linking or normal
18401       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18402       # need to do runtime linking.
18403       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18404         for ld_flag in $LDFLAGS; do
18405           case $ld_flag in
18406           *-brtl*)
18407             aix_use_runtimelinking=yes
18408             break
18409             ;;
18410           esac
18411         done
18412         ;;
18413       esac
18414
18415       exp_sym_flag='-bexport'
18416       no_entry_flag='-bnoentry'
18417     fi
18418
18419     # When large executables or shared objects are built, AIX ld can
18420     # have problems creating the table of contents.  If linking a library
18421     # or program results in "error TOC overflow" add -mminimal-toc to
18422     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18423     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18424
18425     archive_cmds_CXX=''
18426     hardcode_direct_CXX=yes
18427     hardcode_libdir_separator_CXX=':'
18428     link_all_deplibs_CXX=yes
18429
18430     if test "$GXX" = yes; then
18431       case $host_os in aix4.[012]|aix4.[012].*)
18432       # We only want to do this on AIX 4.2 and lower, the check
18433       # below for broken collect2 doesn't work under 4.3+
18434         collect2name=`${CC} -print-prog-name=collect2`
18435         if test -f "$collect2name" && \
18436            strings "$collect2name" | grep resolve_lib_name >/dev/null
18437         then
18438           # We have reworked collect2
18439           hardcode_direct_CXX=yes
18440         else
18441           # We have old collect2
18442           hardcode_direct_CXX=unsupported
18443           # It fails to find uninstalled libraries when the uninstalled
18444           # path is not listed in the libpath.  Setting hardcode_minus_L
18445           # to unsupported forces relinking
18446           hardcode_minus_L_CXX=yes
18447           hardcode_libdir_flag_spec_CXX='-L$libdir'
18448           hardcode_libdir_separator_CXX=
18449         fi
18450         ;;
18451       esac
18452       shared_flag='-shared'
18453       if test "$aix_use_runtimelinking" = yes; then
18454         shared_flag="$shared_flag "'${wl}-G'
18455       fi
18456     else
18457       # not using gcc
18458       if test "$host_cpu" = ia64; then
18459         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18460         # chokes on -Wl,-G. The following line is correct:
18461         shared_flag='-G'
18462       else
18463         if test "$aix_use_runtimelinking" = yes; then
18464           shared_flag='${wl}-G'
18465         else
18466           shared_flag='${wl}-bM:SRE'
18467         fi
18468       fi
18469     fi
18470
18471     # It seems that -bexpall does not export symbols beginning with
18472     # underscore (_), so it is better to generate a list of symbols to export.
18473     always_export_symbols_CXX=yes
18474     if test "$aix_use_runtimelinking" = yes; then
18475       # Warning - without using the other runtime loading flags (-brtl),
18476       # -berok will link without error, but may produce a broken library.
18477       allow_undefined_flag_CXX='-berok'
18478       # Determine the default libpath from the value encoded in an empty executable.
18479       cat >conftest.$ac_ext <<_ACEOF
18480 /* confdefs.h.  */
18481 _ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h.  */
18485
18486 int
18487 main ()
18488 {
18489
18490   ;
18491   return 0;
18492 }
18493 _ACEOF
18494 rm -f conftest.$ac_objext conftest$ac_exeext
18495 if { (ac_try="$ac_link"
18496 case "(($ac_try" in
18497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498   *) ac_try_echo=$ac_try;;
18499 esac
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501   (eval "$ac_link") 2>conftest.er1
18502   ac_status=$?
18503   grep -v '^ *+' conftest.er1 >conftest.err
18504   rm -f conftest.er1
18505   cat conftest.err >&5
18506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507   (exit $ac_status); } &&
18508          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18509   { (case "(($ac_try" in
18510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511   *) ac_try_echo=$ac_try;;
18512 esac
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514   (eval "$ac_try") 2>&5
18515   ac_status=$?
18516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517   (exit $ac_status); }; } &&
18518          { ac_try='test -s conftest$ac_exeext'
18519   { (case "(($ac_try" in
18520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521   *) ac_try_echo=$ac_try;;
18522 esac
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524   (eval "$ac_try") 2>&5
18525   ac_status=$?
18526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527   (exit $ac_status); }; }; then
18528
18529 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18530 }'`
18531 # Check for a 64-bit object if we didn't find anything.
18532 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; }
18533 }'`; fi
18534 else
18535   echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18537
18538
18539 fi
18540
18541 rm -f core conftest.err conftest.$ac_objext \
18542       conftest$ac_exeext conftest.$ac_ext
18543 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18544
18545       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18546
18547       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"
18548      else
18549       if test "$host_cpu" = ia64; then
18550         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18551         allow_undefined_flag_CXX="-z nodefs"
18552         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"
18553       else
18554         # Determine the default libpath from the value encoded in an empty executable.
18555         cat >conftest.$ac_ext <<_ACEOF
18556 /* confdefs.h.  */
18557 _ACEOF
18558 cat confdefs.h >>conftest.$ac_ext
18559 cat >>conftest.$ac_ext <<_ACEOF
18560 /* end confdefs.h.  */
18561
18562 int
18563 main ()
18564 {
18565
18566   ;
18567   return 0;
18568 }
18569 _ACEOF
18570 rm -f conftest.$ac_objext conftest$ac_exeext
18571 if { (ac_try="$ac_link"
18572 case "(($ac_try" in
18573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574   *) ac_try_echo=$ac_try;;
18575 esac
18576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18577   (eval "$ac_link") 2>conftest.er1
18578   ac_status=$?
18579   grep -v '^ *+' conftest.er1 >conftest.err
18580   rm -f conftest.er1
18581   cat conftest.err >&5
18582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583   (exit $ac_status); } &&
18584          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18585   { (case "(($ac_try" in
18586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587   *) ac_try_echo=$ac_try;;
18588 esac
18589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590   (eval "$ac_try") 2>&5
18591   ac_status=$?
18592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593   (exit $ac_status); }; } &&
18594          { ac_try='test -s conftest$ac_exeext'
18595   { (case "(($ac_try" in
18596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18597   *) ac_try_echo=$ac_try;;
18598 esac
18599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18600   (eval "$ac_try") 2>&5
18601   ac_status=$?
18602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603   (exit $ac_status); }; }; then
18604
18605 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18606 }'`
18607 # Check for a 64-bit object if we didn't find anything.
18608 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; }
18609 }'`; fi
18610 else
18611   echo "$as_me: failed program was:" >&5
18612 sed 's/^/| /' conftest.$ac_ext >&5
18613
18614
18615 fi
18616
18617 rm -f core conftest.err conftest.$ac_objext \
18618       conftest$ac_exeext conftest.$ac_ext
18619 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18620
18621         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18622         # Warning - without using the other run time loading flags,
18623         # -berok will link without error, but may produce a broken library.
18624         no_undefined_flag_CXX=' ${wl}-bernotok'
18625         allow_undefined_flag_CXX=' ${wl}-berok'
18626         # Exported symbols can be pulled into shared objects from archives
18627         whole_archive_flag_spec_CXX='$convenience'
18628         archive_cmds_need_lc_CXX=yes
18629         # This is similar to how AIX traditionally builds its shared libraries.
18630         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'
18631       fi
18632     fi
18633     ;;
18634
18635   beos*)
18636     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18637       allow_undefined_flag_CXX=unsupported
18638       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18639       # support --undefined.  This deserves some investigation.  FIXME
18640       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18641     else
18642       ld_shlibs_CXX=no
18643     fi
18644     ;;
18645
18646   chorus*)
18647     case $cc_basename in
18648       *)
18649         # FIXME: insert proper C++ library support
18650         ld_shlibs_CXX=no
18651         ;;
18652     esac
18653     ;;
18654
18655   cygwin* | mingw* | pw32*)
18656     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18657     # as there is no search path for DLLs.
18658     hardcode_libdir_flag_spec_CXX='-L$libdir'
18659     allow_undefined_flag_CXX=unsupported
18660     always_export_symbols_CXX=no
18661     enable_shared_with_static_runtimes_CXX=yes
18662
18663     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18664       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'
18665       # If the export-symbols file already is a .def file (1st line
18666       # is EXPORTS), use it as is; otherwise, prepend...
18667       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18668         cp $export_symbols $output_objdir/$soname.def;
18669       else
18670         echo EXPORTS > $output_objdir/$soname.def;
18671         cat $export_symbols >> $output_objdir/$soname.def;
18672       fi~
18673       $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'
18674     else
18675       ld_shlibs_CXX=no
18676     fi
18677   ;;
18678       darwin* | rhapsody*)
18679         case $host_os in
18680         rhapsody* | darwin1.[012])
18681          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18682          ;;
18683        *) # Darwin 1.3 on
18684          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18685            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18686          else
18687            case ${MACOSX_DEPLOYMENT_TARGET} in
18688              10.[012])
18689                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18690                ;;
18691              10.*)
18692                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18693                ;;
18694            esac
18695          fi
18696          ;;
18697         esac
18698       archive_cmds_need_lc_CXX=no
18699       hardcode_direct_CXX=no
18700       hardcode_automatic_CXX=yes
18701       hardcode_shlibpath_var_CXX=unsupported
18702       whole_archive_flag_spec_CXX=''
18703       link_all_deplibs_CXX=yes
18704
18705     if test "$GXX" = yes ; then
18706       lt_int_apple_cc_single_mod=no
18707       output_verbose_link_cmd='echo'
18708       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18709        lt_int_apple_cc_single_mod=yes
18710       fi
18711       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18712        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18713       else
18714           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'
18715         fi
18716         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18717         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18718           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18719             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}'
18720           else
18721             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}'
18722           fi
18723             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}'
18724       else
18725       case $cc_basename in
18726         xlc*)
18727          output_verbose_link_cmd='echo'
18728           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'
18729           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18730           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18731           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}'
18732           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}'
18733           ;;
18734        *)
18735          ld_shlibs_CXX=no
18736           ;;
18737       esac
18738       fi
18739         ;;
18740
18741   dgux*)
18742     case $cc_basename in
18743       ec++*)
18744         # FIXME: insert proper C++ library support
18745         ld_shlibs_CXX=no
18746         ;;
18747       ghcx*)
18748         # Green Hills C++ Compiler
18749         # FIXME: insert proper C++ library support
18750         ld_shlibs_CXX=no
18751         ;;
18752       *)
18753         # FIXME: insert proper C++ library support
18754         ld_shlibs_CXX=no
18755         ;;
18756     esac
18757     ;;
18758   freebsd[12]*)
18759     # C++ shared libraries reported to be fairly broken before switch to ELF
18760     ld_shlibs_CXX=no
18761     ;;
18762   freebsd-elf*)
18763     archive_cmds_need_lc_CXX=no
18764     ;;
18765   freebsd* | kfreebsd*-gnu | dragonfly*)
18766     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18767     # conventions
18768     ld_shlibs_CXX=yes
18769     ;;
18770   gnu*)
18771     ;;
18772   hpux9*)
18773     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18774     hardcode_libdir_separator_CXX=:
18775     export_dynamic_flag_spec_CXX='${wl}-E'
18776     hardcode_direct_CXX=yes
18777     hardcode_minus_L_CXX=yes # Not in the search PATH,
18778                                 # but as the default
18779                                 # location of the library.
18780
18781     case $cc_basename in
18782     CC*)
18783       # FIXME: insert proper C++ library support
18784       ld_shlibs_CXX=no
18785       ;;
18786     aCC*)
18787       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'
18788       # Commands to make compiler produce verbose output that lists
18789       # what "hidden" libraries, object files and flags are used when
18790       # linking a shared library.
18791       #
18792       # There doesn't appear to be a way to prevent this compiler from
18793       # explicitly linking system object files so we need to strip them
18794       # from the output so that they don't get included in the library
18795       # dependencies.
18796       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'
18797       ;;
18798     *)
18799       if test "$GXX" = yes; then
18800         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'
18801       else
18802         # FIXME: insert proper C++ library support
18803         ld_shlibs_CXX=no
18804       fi
18805       ;;
18806     esac
18807     ;;
18808   hpux10*|hpux11*)
18809     if test $with_gnu_ld = no; then
18810       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18811       hardcode_libdir_separator_CXX=:
18812
18813       case $host_cpu in
18814       hppa*64*|ia64*)
18815         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18816         ;;
18817       *)
18818         export_dynamic_flag_spec_CXX='${wl}-E'
18819         ;;
18820       esac
18821     fi
18822     case $host_cpu in
18823     hppa*64*|ia64*)
18824       hardcode_direct_CXX=no
18825       hardcode_shlibpath_var_CXX=no
18826       ;;
18827     *)
18828       hardcode_direct_CXX=yes
18829       hardcode_minus_L_CXX=yes # Not in the search PATH,
18830                                               # but as the default
18831                                               # location of the library.
18832       ;;
18833     esac
18834
18835     case $cc_basename in
18836       CC*)
18837         # FIXME: insert proper C++ library support
18838         ld_shlibs_CXX=no
18839         ;;
18840       aCC*)
18841         case $host_cpu in
18842         hppa*64*)
18843           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18844           ;;
18845         ia64*)
18846           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18847           ;;
18848         *)
18849           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18850           ;;
18851         esac
18852         # Commands to make compiler produce verbose output that lists
18853         # what "hidden" libraries, object files and flags are used when
18854         # linking a shared library.
18855         #
18856         # There doesn't appear to be a way to prevent this compiler from
18857         # explicitly linking system object files so we need to strip them
18858         # from the output so that they don't get included in the library
18859         # dependencies.
18860         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'
18861         ;;
18862       *)
18863         if test "$GXX" = yes; then
18864           if test $with_gnu_ld = no; then
18865             case $host_cpu in
18866             hppa*64*)
18867               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18868               ;;
18869             ia64*)
18870               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18871               ;;
18872             *)
18873               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'
18874               ;;
18875             esac
18876           fi
18877         else
18878           # FIXME: insert proper C++ library support
18879           ld_shlibs_CXX=no
18880         fi
18881         ;;
18882     esac
18883     ;;
18884   interix3*)
18885     hardcode_direct_CXX=no
18886     hardcode_shlibpath_var_CXX=no
18887     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18888     export_dynamic_flag_spec_CXX='${wl}-E'
18889     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18890     # Instead, shared libraries are loaded at an image base (0x10000000 by
18891     # default) and relocated if they conflict, which is a slow very memory
18892     # consuming and fragmenting process.  To avoid this, we pick a random,
18893     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18894     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18895     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'
18896     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'
18897     ;;
18898   irix5* | irix6*)
18899     case $cc_basename in
18900       CC*)
18901         # SGI C++
18902         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'
18903
18904         # Archives containing C++ object files must be created using
18905         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18906         # necessary to make sure instantiated templates are included
18907         # in the archive.
18908         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18909         ;;
18910       *)
18911         if test "$GXX" = yes; then
18912           if test "$with_gnu_ld" = no; then
18913             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'
18914           else
18915             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'
18916           fi
18917         fi
18918         link_all_deplibs_CXX=yes
18919         ;;
18920     esac
18921     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18922     hardcode_libdir_separator_CXX=:
18923     ;;
18924   linux*)
18925     case $cc_basename in
18926       KCC*)
18927         # Kuck and Associates, Inc. (KAI) C++ Compiler
18928
18929         # KCC will only create a shared library if the output file
18930         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18931         # to its proper name (with version) after linking.
18932         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'
18933         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'
18934         # Commands to make compiler produce verbose output that lists
18935         # what "hidden" libraries, object files and flags are used when
18936         # linking a shared library.
18937         #
18938         # There doesn't appear to be a way to prevent this compiler from
18939         # explicitly linking system object files so we need to strip them
18940         # from the output so that they don't get included in the library
18941         # dependencies.
18942         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'
18943
18944         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18945         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18946
18947         # Archives containing C++ object files must be created using
18948         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18949         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18950         ;;
18951       icpc*)
18952         # Intel C++
18953         with_gnu_ld=yes
18954         # version 8.0 and above of icpc choke on multiply defined symbols
18955         # if we add $predep_objects and $postdep_objects, however 7.1 and
18956         # earlier do not add the objects themselves.
18957         case `$CC -V 2>&1` in
18958         *"Version 7."*)
18959           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18960           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'
18961           ;;
18962         *)  # Version 8.0 or newer
18963           tmp_idyn=
18964           case $host_cpu in
18965             ia64*) tmp_idyn=' -i_dynamic';;
18966           esac
18967           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18968           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'
18969           ;;
18970         esac
18971         archive_cmds_need_lc_CXX=no
18972         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18973         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18974         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18975         ;;
18976       pgCC*)
18977         # Portland Group C++ compiler
18978         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18979         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'
18980
18981         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18982         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18983         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'
18984         ;;
18985       cxx*)
18986         # Compaq C++
18987         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18988         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'
18989
18990         runpath_var=LD_RUN_PATH
18991         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18992         hardcode_libdir_separator_CXX=:
18993
18994         # Commands to make compiler produce verbose output that lists
18995         # what "hidden" libraries, object files and flags are used when
18996         # linking a shared library.
18997         #
18998         # There doesn't appear to be a way to prevent this compiler from
18999         # explicitly linking system object files so we need to strip them
19000         # from the output so that they don't get included in the library
19001         # dependencies.
19002         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'
19003         ;;
19004     esac
19005     ;;
19006   lynxos*)
19007     # FIXME: insert proper C++ library support
19008     ld_shlibs_CXX=no
19009     ;;
19010   m88k*)
19011     # FIXME: insert proper C++ library support
19012     ld_shlibs_CXX=no
19013     ;;
19014   mvs*)
19015     case $cc_basename in
19016       cxx*)
19017         # FIXME: insert proper C++ library support
19018         ld_shlibs_CXX=no
19019         ;;
19020       *)
19021         # FIXME: insert proper C++ library support
19022         ld_shlibs_CXX=no
19023         ;;
19024     esac
19025     ;;
19026   netbsd*)
19027     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19028       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19029       wlarc=
19030       hardcode_libdir_flag_spec_CXX='-R$libdir'
19031       hardcode_direct_CXX=yes
19032       hardcode_shlibpath_var_CXX=no
19033     fi
19034     # Workaround some broken pre-1.5 toolchains
19035     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19036     ;;
19037   openbsd2*)
19038     # C++ shared libraries are fairly broken
19039     ld_shlibs_CXX=no
19040     ;;
19041   openbsd*)
19042     hardcode_direct_CXX=yes
19043     hardcode_shlibpath_var_CXX=no
19044     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19045     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19046     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19047       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19048       export_dynamic_flag_spec_CXX='${wl}-E'
19049       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19050     fi
19051     output_verbose_link_cmd='echo'
19052     ;;
19053   osf3*)
19054     case $cc_basename in
19055       KCC*)
19056         # Kuck and Associates, Inc. (KAI) C++ Compiler
19057
19058         # KCC will only create a shared library if the output file
19059         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19060         # to its proper name (with version) after linking.
19061         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'
19062
19063         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19064         hardcode_libdir_separator_CXX=:
19065
19066         # Archives containing C++ object files must be created using
19067         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19068         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19069
19070         ;;
19071       RCC*)
19072         # Rational C++ 2.4.1
19073         # FIXME: insert proper C++ library support
19074         ld_shlibs_CXX=no
19075         ;;
19076       cxx*)
19077         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19078         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'
19079
19080         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19081         hardcode_libdir_separator_CXX=:
19082
19083         # Commands to make compiler produce verbose output that lists
19084         # what "hidden" libraries, object files and flags are used when
19085         # linking a shared library.
19086         #
19087         # There doesn't appear to be a way to prevent this compiler from
19088         # explicitly linking system object files so we need to strip them
19089         # from the output so that they don't get included in the library
19090         # dependencies.
19091         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'
19092         ;;
19093       *)
19094         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19095           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19096           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'
19097
19098           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19099           hardcode_libdir_separator_CXX=:
19100
19101           # Commands to make compiler produce verbose output that lists
19102           # what "hidden" libraries, object files and flags are used when
19103           # linking a shared library.
19104           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19105
19106         else
19107           # FIXME: insert proper C++ library support
19108           ld_shlibs_CXX=no
19109         fi
19110         ;;
19111     esac
19112     ;;
19113   osf4* | osf5*)
19114     case $cc_basename in
19115       KCC*)
19116         # Kuck and Associates, Inc. (KAI) C++ Compiler
19117
19118         # KCC will only create a shared library if the output file
19119         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19120         # to its proper name (with version) after linking.
19121         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'
19122
19123         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19124         hardcode_libdir_separator_CXX=:
19125
19126         # Archives containing C++ object files must be created using
19127         # the KAI C++ compiler.
19128         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19129         ;;
19130       RCC*)
19131         # Rational C++ 2.4.1
19132         # FIXME: insert proper C++ library support
19133         ld_shlibs_CXX=no
19134         ;;
19135       cxx*)
19136         allow_undefined_flag_CXX=' -expect_unresolved \*'
19137         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'
19138         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19139           echo "-hidden">> $lib.exp~
19140           $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~
19141           $rm $lib.exp'
19142
19143         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19144         hardcode_libdir_separator_CXX=:
19145
19146         # Commands to make compiler produce verbose output that lists
19147         # what "hidden" libraries, object files and flags are used when
19148         # linking a shared library.
19149         #
19150         # There doesn't appear to be a way to prevent this compiler from
19151         # explicitly linking system object files so we need to strip them
19152         # from the output so that they don't get included in the library
19153         # dependencies.
19154         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'
19155         ;;
19156       *)
19157         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19158           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19159          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'
19160
19161           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19162           hardcode_libdir_separator_CXX=:
19163
19164           # Commands to make compiler produce verbose output that lists
19165           # what "hidden" libraries, object files and flags are used when
19166           # linking a shared library.
19167           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19168
19169         else
19170           # FIXME: insert proper C++ library support
19171           ld_shlibs_CXX=no
19172         fi
19173         ;;
19174     esac
19175     ;;
19176   psos*)
19177     # FIXME: insert proper C++ library support
19178     ld_shlibs_CXX=no
19179     ;;
19180   sunos4*)
19181     case $cc_basename in
19182       CC*)
19183         # Sun C++ 4.x
19184         # FIXME: insert proper C++ library support
19185         ld_shlibs_CXX=no
19186         ;;
19187       lcc*)
19188         # Lucid
19189         # FIXME: insert proper C++ library support
19190         ld_shlibs_CXX=no
19191         ;;
19192       *)
19193         # FIXME: insert proper C++ library support
19194         ld_shlibs_CXX=no
19195         ;;
19196     esac
19197     ;;
19198   solaris*)
19199     case $cc_basename in
19200       CC*)
19201         # Sun C++ 4.2, 5.x and Centerline C++
19202         archive_cmds_need_lc_CXX=yes
19203         no_undefined_flag_CXX=' -zdefs'
19204         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19205         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19206         $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'
19207
19208         hardcode_libdir_flag_spec_CXX='-R$libdir'
19209         hardcode_shlibpath_var_CXX=no
19210         case $host_os in
19211           solaris2.[0-5] | solaris2.[0-5].*) ;;
19212           *)
19213             # The C++ compiler is used as linker so we must use $wl
19214             # flag to pass the commands to the underlying system
19215             # linker. We must also pass each convience library through
19216             # to the system linker between allextract/defaultextract.
19217             # The C++ compiler will combine linker options so we
19218             # cannot just pass the convience library names through
19219             # without $wl.
19220             # Supported since Solaris 2.6 (maybe 2.5.1?)
19221             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'
19222             ;;
19223         esac
19224         link_all_deplibs_CXX=yes
19225
19226         output_verbose_link_cmd='echo'
19227
19228         # Archives containing C++ object files must be created using
19229         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19230         # necessary to make sure instantiated templates are included
19231         # in the archive.
19232         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19233         ;;
19234       gcx*)
19235         # Green Hills C++ Compiler
19236         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19237
19238         # The C++ compiler must be used to create the archive.
19239         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19240         ;;
19241       *)
19242         # GNU C++ compiler with Solaris linker
19243         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19244           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19245           if $CC --version | grep -v '^2\.7' > /dev/null; then
19246             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19247             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19248                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19249
19250             # Commands to make compiler produce verbose output that lists
19251             # what "hidden" libraries, object files and flags are used when
19252             # linking a shared library.
19253             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19254           else
19255             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19256             # platform.
19257             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19258             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19259                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19260
19261             # Commands to make compiler produce verbose output that lists
19262             # what "hidden" libraries, object files and flags are used when
19263             # linking a shared library.
19264             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19265           fi
19266
19267           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19268         fi
19269         ;;
19270     esac
19271     ;;
19272   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19273     no_undefined_flag_CXX='${wl}-z,text'
19274     archive_cmds_need_lc_CXX=no
19275     hardcode_shlibpath_var_CXX=no
19276     runpath_var='LD_RUN_PATH'
19277
19278     case $cc_basename in
19279       CC*)
19280         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19281         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19282         ;;
19283       *)
19284         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19285         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19286         ;;
19287     esac
19288     ;;
19289   sysv5* | sco3.2v5* | sco5v6*)
19290     # Note: We can NOT use -z defs as we might desire, because we do not
19291     # link with -lc, and that would cause any symbols used from libc to
19292     # always be unresolved, which means just about no library would
19293     # ever link correctly.  If we're not using GNU ld we use -z text
19294     # though, which does catch some bad symbols but isn't as heavy-handed
19295     # as -z defs.
19296     # For security reasons, it is highly recommended that you always
19297     # use absolute paths for naming shared libraries, and exclude the
19298     # DT_RUNPATH tag from executables and libraries.  But doing so
19299     # requires that you compile everything twice, which is a pain.
19300     # So that behaviour is only enabled if SCOABSPATH is set to a
19301     # non-empty value in the environment.  Most likely only useful for
19302     # creating official distributions of packages.
19303     # This is a hack until libtool officially supports absolute path
19304     # names for shared libraries.
19305     no_undefined_flag_CXX='${wl}-z,text'
19306     allow_undefined_flag_CXX='${wl}-z,nodefs'
19307     archive_cmds_need_lc_CXX=no
19308     hardcode_shlibpath_var_CXX=no
19309     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19310     hardcode_libdir_separator_CXX=':'
19311     link_all_deplibs_CXX=yes
19312     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19313     runpath_var='LD_RUN_PATH'
19314
19315     case $cc_basename in
19316       CC*)
19317         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19318         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19319         ;;
19320       *)
19321         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19322         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19323         ;;
19324     esac
19325     ;;
19326   tandem*)
19327     case $cc_basename in
19328       NCC*)
19329         # NonStop-UX NCC 3.20
19330         # FIXME: insert proper C++ library support
19331         ld_shlibs_CXX=no
19332         ;;
19333       *)
19334         # FIXME: insert proper C++ library support
19335         ld_shlibs_CXX=no
19336         ;;
19337     esac
19338     ;;
19339   vxworks*)
19340     # FIXME: insert proper C++ library support
19341     ld_shlibs_CXX=no
19342     ;;
19343   *)
19344     # FIXME: insert proper C++ library support
19345     ld_shlibs_CXX=no
19346     ;;
19347 esac
19348 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19349 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19350 test "$ld_shlibs_CXX" = no && can_build_shared=no
19351
19352 GCC_CXX="$GXX"
19353 LD_CXX="$LD"
19354
19355
19356 cat > conftest.$ac_ext <<EOF
19357 class Foo
19358 {
19359 public:
19360   Foo (void) { a = 0; }
19361 private:
19362   int a;
19363 };
19364 EOF
19365
19366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19367   (eval $ac_compile) 2>&5
19368   ac_status=$?
19369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370   (exit $ac_status); }; then
19371   # Parse the compiler output and extract the necessary
19372   # objects, libraries and library flags.
19373
19374   # Sentinel used to keep track of whether or not we are before
19375   # the conftest object file.
19376   pre_test_object_deps_done=no
19377
19378   # The `*' in the case matches for architectures that use `case' in
19379   # $output_verbose_cmd can trigger glob expansion during the loop
19380   # eval without this substitution.
19381   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19382
19383   for p in `eval $output_verbose_link_cmd`; do
19384     case $p in
19385
19386     -L* | -R* | -l*)
19387        # Some compilers place space between "-{L,R}" and the path.
19388        # Remove the space.
19389        if test $p = "-L" \
19390           || test $p = "-R"; then
19391          prev=$p
19392          continue
19393        else
19394          prev=
19395        fi
19396
19397        if test "$pre_test_object_deps_done" = no; then
19398          case $p in
19399          -L* | -R*)
19400            # Internal compiler library paths should come after those
19401            # provided the user.  The postdeps already come after the
19402            # user supplied libs so there is no need to process them.
19403            if test -z "$compiler_lib_search_path_CXX"; then
19404              compiler_lib_search_path_CXX="${prev}${p}"
19405            else
19406              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19407            fi
19408            ;;
19409          # The "-l" case would never come before the object being
19410          # linked, so don't bother handling this case.
19411          esac
19412        else
19413          if test -z "$postdeps_CXX"; then
19414            postdeps_CXX="${prev}${p}"
19415          else
19416            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19417          fi
19418        fi
19419        ;;
19420
19421     *.$objext)
19422        # This assumes that the test object file only shows up
19423        # once in the compiler output.
19424        if test "$p" = "conftest.$objext"; then
19425          pre_test_object_deps_done=yes
19426          continue
19427        fi
19428
19429        if test "$pre_test_object_deps_done" = no; then
19430          if test -z "$predep_objects_CXX"; then
19431            predep_objects_CXX="$p"
19432          else
19433            predep_objects_CXX="$predep_objects_CXX $p"
19434          fi
19435        else
19436          if test -z "$postdep_objects_CXX"; then
19437            postdep_objects_CXX="$p"
19438          else
19439            postdep_objects_CXX="$postdep_objects_CXX $p"
19440          fi
19441        fi
19442        ;;
19443
19444     *) ;; # Ignore the rest.
19445
19446     esac
19447   done
19448
19449   # Clean up.
19450   rm -f a.out a.exe
19451 else
19452   echo "libtool.m4: error: problem compiling CXX test program"
19453 fi
19454
19455 $rm -f confest.$objext
19456
19457 # PORTME: override above test on systems where it is broken
19458 case $host_os in
19459 interix3*)
19460   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19461   # hack all around it, let's just trust "g++" to DTRT.
19462   predep_objects_CXX=
19463   postdep_objects_CXX=
19464   postdeps_CXX=
19465   ;;
19466
19467 solaris*)
19468   case $cc_basename in
19469   CC*)
19470     # Adding this requires a known-good setup of shared libraries for
19471     # Sun compiler versions before 5.6, else PIC objects from an old
19472     # archive will be linked into the output, leading to subtle bugs.
19473     postdeps_CXX='-lCstd -lCrun'
19474     ;;
19475   esac
19476   ;;
19477 esac
19478
19479
19480 case " $postdeps_CXX " in
19481 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19482 esac
19483
19484 lt_prog_compiler_wl_CXX=
19485 lt_prog_compiler_pic_CXX=
19486 lt_prog_compiler_static_CXX=
19487
19488 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19489 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19490
19491   # C++ specific cases for pic, static, wl, etc.
19492   if test "$GXX" = yes; then
19493     lt_prog_compiler_wl_CXX='-Wl,'
19494     lt_prog_compiler_static_CXX='-static'
19495
19496     case $host_os in
19497     aix*)
19498       # All AIX code is PIC.
19499       if test "$host_cpu" = ia64; then
19500         # AIX 5 now supports IA64 processor
19501         lt_prog_compiler_static_CXX='-Bstatic'
19502       fi
19503       ;;
19504     amigaos*)
19505       # FIXME: we need at least 68020 code to build shared libraries, but
19506       # adding the `-m68020' flag to GCC prevents building anything better,
19507       # like `-m68040'.
19508       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19509       ;;
19510     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19511       # PIC is the default for these OSes.
19512       ;;
19513     mingw* | os2* | pw32*)
19514       # This hack is so that the source file can tell whether it is being
19515       # built for inclusion in a dll (and should export symbols for example).
19516       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19517       ;;
19518     darwin* | rhapsody*)
19519       # PIC is the default on this platform
19520       # Common symbols not allowed in MH_DYLIB files
19521       lt_prog_compiler_pic_CXX='-fno-common'
19522       ;;
19523     *djgpp*)
19524       # DJGPP does not support shared libraries at all
19525       lt_prog_compiler_pic_CXX=
19526       ;;
19527     interix3*)
19528       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19529       # Instead, we relocate shared libraries at runtime.
19530       ;;
19531     sysv4*MP*)
19532       if test -d /usr/nec; then
19533         lt_prog_compiler_pic_CXX=-Kconform_pic
19534       fi
19535       ;;
19536     hpux*)
19537       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19538       # not for PA HP-UX.
19539       case $host_cpu in
19540       hppa*64*|ia64*)
19541         ;;
19542       *)
19543         lt_prog_compiler_pic_CXX='-fPIC'
19544         ;;
19545       esac
19546       ;;
19547     *)
19548       lt_prog_compiler_pic_CXX='-fPIC'
19549       ;;
19550     esac
19551   else
19552     case $host_os in
19553       aix4* | aix5*)
19554         # All AIX code is PIC.
19555         if test "$host_cpu" = ia64; then
19556           # AIX 5 now supports IA64 processor
19557           lt_prog_compiler_static_CXX='-Bstatic'
19558         else
19559           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19560         fi
19561         ;;
19562       chorus*)
19563         case $cc_basename in
19564         cxch68*)
19565           # Green Hills C++ Compiler
19566           # _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"
19567           ;;
19568         esac
19569         ;;
19570        darwin*)
19571          # PIC is the default on this platform
19572          # Common symbols not allowed in MH_DYLIB files
19573          case $cc_basename in
19574            xlc*)
19575            lt_prog_compiler_pic_CXX='-qnocommon'
19576            lt_prog_compiler_wl_CXX='-Wl,'
19577            ;;
19578          esac
19579        ;;
19580       dgux*)
19581         case $cc_basename in
19582           ec++*)
19583             lt_prog_compiler_pic_CXX='-KPIC'
19584             ;;
19585           ghcx*)
19586             # Green Hills C++ Compiler
19587             lt_prog_compiler_pic_CXX='-pic'
19588             ;;
19589           *)
19590             ;;
19591         esac
19592         ;;
19593       freebsd* | kfreebsd*-gnu | dragonfly*)
19594         # FreeBSD uses GNU C++
19595         ;;
19596       hpux9* | hpux10* | hpux11*)
19597         case $cc_basename in
19598           CC*)
19599             lt_prog_compiler_wl_CXX='-Wl,'
19600             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19601             if test "$host_cpu" != ia64; then
19602               lt_prog_compiler_pic_CXX='+Z'
19603             fi
19604             ;;
19605           aCC*)
19606             lt_prog_compiler_wl_CXX='-Wl,'
19607             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19608             case $host_cpu in
19609             hppa*64*|ia64*)
19610               # +Z the default
19611               ;;
19612             *)
19613               lt_prog_compiler_pic_CXX='+Z'
19614               ;;
19615             esac
19616             ;;
19617           *)
19618             ;;
19619         esac
19620         ;;
19621       interix*)
19622         # This is c89, which is MS Visual C++ (no shared libs)
19623         # Anyone wants to do a port?
19624         ;;
19625       irix5* | irix6* | nonstopux*)
19626         case $cc_basename in
19627           CC*)
19628             lt_prog_compiler_wl_CXX='-Wl,'
19629             lt_prog_compiler_static_CXX='-non_shared'
19630             # CC pic flag -KPIC is the default.
19631             ;;
19632           *)
19633             ;;
19634         esac
19635         ;;
19636       linux*)
19637         case $cc_basename in
19638           KCC*)
19639             # KAI C++ Compiler
19640             lt_prog_compiler_wl_CXX='--backend -Wl,'
19641             lt_prog_compiler_pic_CXX='-fPIC'
19642             ;;
19643           icpc* | ecpc*)
19644             # Intel C++
19645             lt_prog_compiler_wl_CXX='-Wl,'
19646             lt_prog_compiler_pic_CXX='-KPIC'
19647             lt_prog_compiler_static_CXX='-static'
19648             ;;
19649           pgCC*)
19650             # Portland Group C++ compiler.
19651             lt_prog_compiler_wl_CXX='-Wl,'
19652             lt_prog_compiler_pic_CXX='-fpic'
19653             lt_prog_compiler_static_CXX='-Bstatic'
19654             ;;
19655           cxx*)
19656             # Compaq C++
19657             # Make sure the PIC flag is empty.  It appears that all Alpha
19658             # Linux and Compaq Tru64 Unix objects are PIC.
19659             lt_prog_compiler_pic_CXX=
19660             lt_prog_compiler_static_CXX='-non_shared'
19661             ;;
19662           *)
19663             ;;
19664         esac
19665         ;;
19666       lynxos*)
19667         ;;
19668       m88k*)
19669         ;;
19670       mvs*)
19671         case $cc_basename in
19672           cxx*)
19673             lt_prog_compiler_pic_CXX='-W c,exportall'
19674             ;;
19675           *)
19676             ;;
19677         esac
19678         ;;
19679       netbsd*)
19680         ;;
19681       osf3* | osf4* | osf5*)
19682         case $cc_basename in
19683           KCC*)
19684             lt_prog_compiler_wl_CXX='--backend -Wl,'
19685             ;;
19686           RCC*)
19687             # Rational C++ 2.4.1
19688             lt_prog_compiler_pic_CXX='-pic'
19689             ;;
19690           cxx*)
19691             # Digital/Compaq C++
19692             lt_prog_compiler_wl_CXX='-Wl,'
19693             # Make sure the PIC flag is empty.  It appears that all Alpha
19694             # Linux and Compaq Tru64 Unix objects are PIC.
19695             lt_prog_compiler_pic_CXX=
19696             lt_prog_compiler_static_CXX='-non_shared'
19697             ;;
19698           *)
19699             ;;
19700         esac
19701         ;;
19702       psos*)
19703         ;;
19704       solaris*)
19705         case $cc_basename in
19706           CC*)
19707             # Sun C++ 4.2, 5.x and Centerline C++
19708             lt_prog_compiler_pic_CXX='-KPIC'
19709             lt_prog_compiler_static_CXX='-Bstatic'
19710             lt_prog_compiler_wl_CXX='-Qoption ld '
19711             ;;
19712           gcx*)
19713             # Green Hills C++ Compiler
19714             lt_prog_compiler_pic_CXX='-PIC'
19715             ;;
19716           *)
19717             ;;
19718         esac
19719         ;;
19720       sunos4*)
19721         case $cc_basename in
19722           CC*)
19723             # Sun C++ 4.x
19724             lt_prog_compiler_pic_CXX='-pic'
19725             lt_prog_compiler_static_CXX='-Bstatic'
19726             ;;
19727           lcc*)
19728             # Lucid
19729             lt_prog_compiler_pic_CXX='-pic'
19730             ;;
19731           *)
19732             ;;
19733         esac
19734         ;;
19735       tandem*)
19736         case $cc_basename in
19737           NCC*)
19738             # NonStop-UX NCC 3.20
19739             lt_prog_compiler_pic_CXX='-KPIC'
19740             ;;
19741           *)
19742             ;;
19743         esac
19744         ;;
19745       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19746         case $cc_basename in
19747           CC*)
19748             lt_prog_compiler_wl_CXX='-Wl,'
19749             lt_prog_compiler_pic_CXX='-KPIC'
19750             lt_prog_compiler_static_CXX='-Bstatic'
19751             ;;
19752         esac
19753         ;;
19754       vxworks*)
19755         ;;
19756       *)
19757         lt_prog_compiler_can_build_shared_CXX=no
19758         ;;
19759     esac
19760   fi
19761
19762 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19763 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19764
19765 #
19766 # Check to make sure the PIC flag actually works.
19767 #
19768 if test -n "$lt_prog_compiler_pic_CXX"; then
19769
19770 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19771 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19772 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19773   echo $ECHO_N "(cached) $ECHO_C" >&6
19774 else
19775   lt_prog_compiler_pic_works_CXX=no
19776   ac_outfile=conftest.$ac_objext
19777    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19778    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19779    # Insert the option either (1) after the last *FLAGS variable, or
19780    # (2) before a word containing "conftest.", or (3) at the end.
19781    # Note that $ac_compile itself does not contain backslashes and begins
19782    # with a dollar sign (not a hyphen), so the echo should work correctly.
19783    # The option is referenced via a variable to avoid confusing sed.
19784    lt_compile=`echo "$ac_compile" | $SED \
19785    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19786    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19787    -e 's:$: $lt_compiler_flag:'`
19788    (eval echo "\"\$as_me:19787: $lt_compile\"" >&5)
19789    (eval "$lt_compile" 2>conftest.err)
19790    ac_status=$?
19791    cat conftest.err >&5
19792    echo "$as_me:19791: \$? = $ac_status" >&5
19793    if (exit $ac_status) && test -s "$ac_outfile"; then
19794      # The compiler can only warn and ignore the option if not recognized
19795      # So say no if there are warnings other than the usual output.
19796      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19797      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19798      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19799        lt_prog_compiler_pic_works_CXX=yes
19800      fi
19801    fi
19802    $rm conftest*
19803
19804 fi
19805 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19806 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19807
19808 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19809     case $lt_prog_compiler_pic_CXX in
19810      "" | " "*) ;;
19811      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19812      esac
19813 else
19814     lt_prog_compiler_pic_CXX=
19815      lt_prog_compiler_can_build_shared_CXX=no
19816 fi
19817
19818 fi
19819 case $host_os in
19820   # For platforms which do not support PIC, -DPIC is meaningless:
19821   *djgpp*)
19822     lt_prog_compiler_pic_CXX=
19823     ;;
19824   *)
19825     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19826     ;;
19827 esac
19828
19829 #
19830 # Check to make sure the static flag actually works.
19831 #
19832 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19833 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19834 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19835 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19836   echo $ECHO_N "(cached) $ECHO_C" >&6
19837 else
19838   lt_prog_compiler_static_works_CXX=no
19839    save_LDFLAGS="$LDFLAGS"
19840    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19841    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19842    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19843      # The linker can only warn and ignore the option if not recognized
19844      # So say no if there are warnings
19845      if test -s conftest.err; then
19846        # Append any errors to the config.log.
19847        cat conftest.err 1>&5
19848        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19849        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19850        if diff conftest.exp conftest.er2 >/dev/null; then
19851          lt_prog_compiler_static_works_CXX=yes
19852        fi
19853      else
19854        lt_prog_compiler_static_works_CXX=yes
19855      fi
19856    fi
19857    $rm conftest*
19858    LDFLAGS="$save_LDFLAGS"
19859
19860 fi
19861 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19862 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19863
19864 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19865     :
19866 else
19867     lt_prog_compiler_static_CXX=
19868 fi
19869
19870
19871 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19872 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19873 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19874   echo $ECHO_N "(cached) $ECHO_C" >&6
19875 else
19876   lt_cv_prog_compiler_c_o_CXX=no
19877    $rm -r conftest 2>/dev/null
19878    mkdir conftest
19879    cd conftest
19880    mkdir out
19881    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19882
19883    lt_compiler_flag="-o out/conftest2.$ac_objext"
19884    # Insert the option either (1) after the last *FLAGS variable, or
19885    # (2) before a word containing "conftest.", or (3) at the end.
19886    # Note that $ac_compile itself does not contain backslashes and begins
19887    # with a dollar sign (not a hyphen), so the echo should work correctly.
19888    lt_compile=`echo "$ac_compile" | $SED \
19889    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19890    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19891    -e 's:$: $lt_compiler_flag:'`
19892    (eval echo "\"\$as_me:19891: $lt_compile\"" >&5)
19893    (eval "$lt_compile" 2>out/conftest.err)
19894    ac_status=$?
19895    cat out/conftest.err >&5
19896    echo "$as_me:19895: \$? = $ac_status" >&5
19897    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19898    then
19899      # The compiler can only warn and ignore the option if not recognized
19900      # So say no if there are warnings
19901      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19902      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19903      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19904        lt_cv_prog_compiler_c_o_CXX=yes
19905      fi
19906    fi
19907    chmod u+w . 2>&5
19908    $rm conftest*
19909    # SGI C++ compiler will create directory out/ii_files/ for
19910    # template instantiation
19911    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19912    $rm out/* && rmdir out
19913    cd ..
19914    rmdir conftest
19915    $rm conftest*
19916
19917 fi
19918 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19919 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19920
19921
19922 hard_links="nottested"
19923 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19924   # do not overwrite the value of need_locks provided by the user
19925   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19926 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19927   hard_links=yes
19928   $rm conftest*
19929   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19930   touch conftest.a
19931   ln conftest.a conftest.b 2>&5 || hard_links=no
19932   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19933   { echo "$as_me:$LINENO: result: $hard_links" >&5
19934 echo "${ECHO_T}$hard_links" >&6; }
19935   if test "$hard_links" = no; then
19936     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19937 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19938     need_locks=warn
19939   fi
19940 else
19941   need_locks=no
19942 fi
19943
19944 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19945 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19946
19947   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19948   case $host_os in
19949   aix4* | aix5*)
19950     # If we're using GNU nm, then we don't want the "-C" option.
19951     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19952     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19953       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'
19954     else
19955       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'
19956     fi
19957     ;;
19958   pw32*)
19959     export_symbols_cmds_CXX="$ltdll_cmds"
19960   ;;
19961   cygwin* | mingw*)
19962     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'
19963   ;;
19964   *)
19965     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19966   ;;
19967   esac
19968
19969 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19970 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19971 test "$ld_shlibs_CXX" = no && can_build_shared=no
19972
19973 #
19974 # Do we need to explicitly link libc?
19975 #
19976 case "x$archive_cmds_need_lc_CXX" in
19977 x|xyes)
19978   # Assume -lc should be added
19979   archive_cmds_need_lc_CXX=yes
19980
19981   if test "$enable_shared" = yes && test "$GCC" = yes; then
19982     case $archive_cmds_CXX in
19983     *'~'*)
19984       # FIXME: we may have to deal with multi-command sequences.
19985       ;;
19986     '$CC '*)
19987       # Test whether the compiler implicitly links with -lc since on some
19988       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19989       # to ld, don't add -lc before -lgcc.
19990       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19991 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19992       $rm conftest*
19993       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19994
19995       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19996   (eval $ac_compile) 2>&5
19997   ac_status=$?
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); } 2>conftest.err; then
20000         soname=conftest
20001         lib=conftest
20002         libobjs=conftest.$ac_objext
20003         deplibs=
20004         wl=$lt_prog_compiler_wl_CXX
20005         pic_flag=$lt_prog_compiler_pic_CXX
20006         compiler_flags=-v
20007         linker_flags=-v
20008         verstring=
20009         output_objdir=.
20010         libname=conftest
20011         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20012         allow_undefined_flag_CXX=
20013         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20014   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20015   ac_status=$?
20016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017   (exit $ac_status); }
20018         then
20019           archive_cmds_need_lc_CXX=no
20020         else
20021           archive_cmds_need_lc_CXX=yes
20022         fi
20023         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20024       else
20025         cat conftest.err 1>&5
20026       fi
20027       $rm conftest*
20028       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20029 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20030       ;;
20031     esac
20032   fi
20033   ;;
20034 esac
20035
20036 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20037 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20038 library_names_spec=
20039 libname_spec='lib$name'
20040 soname_spec=
20041 shrext_cmds=".so"
20042 postinstall_cmds=
20043 postuninstall_cmds=
20044 finish_cmds=
20045 finish_eval=
20046 shlibpath_var=
20047 shlibpath_overrides_runpath=unknown
20048 version_type=none
20049 dynamic_linker="$host_os ld.so"
20050 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20051 if test "$GCC" = yes; then
20052   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20053   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20054     # if the path contains ";" then we assume it to be the separator
20055     # otherwise default to the standard path separator (i.e. ":") - it is
20056     # assumed that no part of a normal pathname contains ";" but that should
20057     # okay in the real world where ";" in dirpaths is itself problematic.
20058     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20059   else
20060     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20061   fi
20062 else
20063   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20064 fi
20065 need_lib_prefix=unknown
20066 hardcode_into_libs=no
20067
20068 # when you set need_version to no, make sure it does not cause -set_version
20069 # flags to be left without arguments
20070 need_version=unknown
20071
20072 case $host_os in
20073 aix3*)
20074   version_type=linux
20075   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20076   shlibpath_var=LIBPATH
20077
20078   # AIX 3 has no versioning support, so we append a major version to the name.
20079   soname_spec='${libname}${release}${shared_ext}$major'
20080   ;;
20081
20082 aix4* | aix5*)
20083   version_type=linux
20084   need_lib_prefix=no
20085   need_version=no
20086   hardcode_into_libs=yes
20087   if test "$host_cpu" = ia64; then
20088     # AIX 5 supports IA64
20089     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20090     shlibpath_var=LD_LIBRARY_PATH
20091   else
20092     # With GCC up to 2.95.x, collect2 would create an import file
20093     # for dependence libraries.  The import file would start with
20094     # the line `#! .'.  This would cause the generated library to
20095     # depend on `.', always an invalid library.  This was fixed in
20096     # development snapshots of GCC prior to 3.0.
20097     case $host_os in
20098       aix4 | aix4.[01] | aix4.[01].*)
20099       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20100            echo ' yes '
20101            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20102         :
20103       else
20104         can_build_shared=no
20105       fi
20106       ;;
20107     esac
20108     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20109     # soname into executable. Probably we can add versioning support to
20110     # collect2, so additional links can be useful in future.
20111     if test "$aix_use_runtimelinking" = yes; then
20112       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20113       # instead of lib<name>.a to let people know that these are not
20114       # typical AIX shared libraries.
20115       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20116     else
20117       # We preserve .a as extension for shared libraries through AIX4.2
20118       # and later when we are not doing run time linking.
20119       library_names_spec='${libname}${release}.a $libname.a'
20120       soname_spec='${libname}${release}${shared_ext}$major'
20121     fi
20122     shlibpath_var=LIBPATH
20123   fi
20124   ;;
20125
20126 amigaos*)
20127   library_names_spec='$libname.ixlibrary $libname.a'
20128   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20129   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'
20130   ;;
20131
20132 beos*)
20133   library_names_spec='${libname}${shared_ext}'
20134   dynamic_linker="$host_os ld.so"
20135   shlibpath_var=LIBRARY_PATH
20136   ;;
20137
20138 bsdi[45]*)
20139   version_type=linux
20140   need_version=no
20141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20142   soname_spec='${libname}${release}${shared_ext}$major'
20143   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20144   shlibpath_var=LD_LIBRARY_PATH
20145   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20146   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20147   # the default ld.so.conf also contains /usr/contrib/lib and
20148   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20149   # libtool to hard-code these into programs
20150   ;;
20151
20152 cygwin* | mingw* | pw32*)
20153   version_type=windows
20154   shrext_cmds=".dll"
20155   need_version=no
20156   need_lib_prefix=no
20157
20158   case $GCC,$host_os in
20159   yes,cygwin* | yes,mingw* | yes,pw32*)
20160     library_names_spec='$libname.dll.a'
20161     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20162     postinstall_cmds='base_file=`basename \${file}`~
20163       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20164       dldir=$destdir/`dirname \$dlpath`~
20165       test -d \$dldir || mkdir -p \$dldir~
20166       $install_prog $dir/$dlname \$dldir/$dlname~
20167       chmod a+x \$dldir/$dlname'
20168     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20169       dlpath=$dir/\$dldll~
20170        $rm \$dlpath'
20171     shlibpath_overrides_runpath=yes
20172
20173     case $host_os in
20174     cygwin*)
20175       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20176       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20177       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20178       ;;
20179     mingw*)
20180       # MinGW DLLs use traditional 'lib' prefix
20181       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20182       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20183       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20184         # It is most probably a Windows format PATH printed by
20185         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20186         # path with ; separators, and with drive letters. We can handle the
20187         # drive letters (cygwin fileutils understands them), so leave them,
20188         # especially as we might pass files found there to a mingw objdump,
20189         # which wouldn't understand a cygwinified path. Ahh.
20190         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20191       else
20192         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20193       fi
20194       ;;
20195     pw32*)
20196       # pw32 DLLs use 'pw' prefix rather than 'lib'
20197       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20198       ;;
20199     esac
20200     ;;
20201
20202   *)
20203     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20204     ;;
20205   esac
20206   dynamic_linker='Win32 ld.exe'
20207   # FIXME: first we should search . and the directory the executable is in
20208   shlibpath_var=PATH
20209   ;;
20210
20211 darwin* | rhapsody*)
20212   dynamic_linker="$host_os dyld"
20213   version_type=darwin
20214   need_lib_prefix=no
20215   need_version=no
20216   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20217   soname_spec='${libname}${release}${major}$shared_ext'
20218   shlibpath_overrides_runpath=yes
20219   shlibpath_var=DYLD_LIBRARY_PATH
20220   shrext_cmds='.dylib'
20221   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20222   if test "$GCC" = yes; then
20223     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"`
20224   else
20225     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20226   fi
20227   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20228   ;;
20229
20230 dgux*)
20231   version_type=linux
20232   need_lib_prefix=no
20233   need_version=no
20234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20235   soname_spec='${libname}${release}${shared_ext}$major'
20236   shlibpath_var=LD_LIBRARY_PATH
20237   ;;
20238
20239 freebsd1*)
20240   dynamic_linker=no
20241   ;;
20242
20243 kfreebsd*-gnu)
20244   version_type=linux
20245   need_lib_prefix=no
20246   need_version=no
20247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20248   soname_spec='${libname}${release}${shared_ext}$major'
20249   shlibpath_var=LD_LIBRARY_PATH
20250   shlibpath_overrides_runpath=no
20251   hardcode_into_libs=yes
20252   dynamic_linker='GNU ld.so'
20253   ;;
20254
20255 freebsd* | dragonfly*)
20256   # DragonFly does not have aout.  When/if they implement a new
20257   # versioning mechanism, adjust this.
20258   if test -x /usr/bin/objformat; then
20259     objformat=`/usr/bin/objformat`
20260   else
20261     case $host_os in
20262     freebsd[123]*) objformat=aout ;;
20263     *) objformat=elf ;;
20264     esac
20265   fi
20266   version_type=freebsd-$objformat
20267   case $version_type in
20268     freebsd-elf*)
20269       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20270       need_version=no
20271       need_lib_prefix=no
20272       ;;
20273     freebsd-*)
20274       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20275       need_version=yes
20276       ;;
20277   esac
20278   shlibpath_var=LD_LIBRARY_PATH
20279   case $host_os in
20280   freebsd2*)
20281     shlibpath_overrides_runpath=yes
20282     ;;
20283   freebsd3.[01]* | freebsdelf3.[01]*)
20284     shlibpath_overrides_runpath=yes
20285     hardcode_into_libs=yes
20286     ;;
20287   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20288   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20289     shlibpath_overrides_runpath=no
20290     hardcode_into_libs=yes
20291     ;;
20292   freebsd*) # from 4.6 on
20293     shlibpath_overrides_runpath=yes
20294     hardcode_into_libs=yes
20295     ;;
20296   esac
20297   ;;
20298
20299 gnu*)
20300   version_type=linux
20301   need_lib_prefix=no
20302   need_version=no
20303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20304   soname_spec='${libname}${release}${shared_ext}$major'
20305   shlibpath_var=LD_LIBRARY_PATH
20306   hardcode_into_libs=yes
20307   ;;
20308
20309 hpux9* | hpux10* | hpux11*)
20310   # Give a soname corresponding to the major version so that dld.sl refuses to
20311   # link against other versions.
20312   version_type=sunos
20313   need_lib_prefix=no
20314   need_version=no
20315   case $host_cpu in
20316   ia64*)
20317     shrext_cmds='.so'
20318     hardcode_into_libs=yes
20319     dynamic_linker="$host_os dld.so"
20320     shlibpath_var=LD_LIBRARY_PATH
20321     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20322     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20323     soname_spec='${libname}${release}${shared_ext}$major'
20324     if test "X$HPUX_IA64_MODE" = X32; then
20325       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20326     else
20327       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20328     fi
20329     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20330     ;;
20331    hppa*64*)
20332      shrext_cmds='.sl'
20333      hardcode_into_libs=yes
20334      dynamic_linker="$host_os dld.sl"
20335      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20336      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20337      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20338      soname_spec='${libname}${release}${shared_ext}$major'
20339      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20340      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20341      ;;
20342    *)
20343     shrext_cmds='.sl'
20344     dynamic_linker="$host_os dld.sl"
20345     shlibpath_var=SHLIB_PATH
20346     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20347     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20348     soname_spec='${libname}${release}${shared_ext}$major'
20349     ;;
20350   esac
20351   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20352   postinstall_cmds='chmod 555 $lib'
20353   ;;
20354
20355 interix3*)
20356   version_type=linux
20357   need_lib_prefix=no
20358   need_version=no
20359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20360   soname_spec='${libname}${release}${shared_ext}$major'
20361   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20362   shlibpath_var=LD_LIBRARY_PATH
20363   shlibpath_overrides_runpath=no
20364   hardcode_into_libs=yes
20365   ;;
20366
20367 irix5* | irix6* | nonstopux*)
20368   case $host_os in
20369     nonstopux*) version_type=nonstopux ;;
20370     *)
20371         if test "$lt_cv_prog_gnu_ld" = yes; then
20372                 version_type=linux
20373         else
20374                 version_type=irix
20375         fi ;;
20376   esac
20377   need_lib_prefix=no
20378   need_version=no
20379   soname_spec='${libname}${release}${shared_ext}$major'
20380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20381   case $host_os in
20382   irix5* | nonstopux*)
20383     libsuff= shlibsuff=
20384     ;;
20385   *)
20386     case $LD in # libtool.m4 will add one of these switches to LD
20387     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20388       libsuff= shlibsuff= libmagic=32-bit;;
20389     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20390       libsuff=32 shlibsuff=N32 libmagic=N32;;
20391     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20392       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20393     *) libsuff= shlibsuff= libmagic=never-match;;
20394     esac
20395     ;;
20396   esac
20397   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20398   shlibpath_overrides_runpath=no
20399   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20400   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20401   hardcode_into_libs=yes
20402   ;;
20403
20404 # No shared lib support for Linux oldld, aout, or coff.
20405 linux*oldld* | linux*aout* | linux*coff*)
20406   dynamic_linker=no
20407   ;;
20408
20409 # This must be Linux ELF.
20410 linux*)
20411   version_type=linux
20412   need_lib_prefix=no
20413   need_version=no
20414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20415   soname_spec='${libname}${release}${shared_ext}$major'
20416   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20417   shlibpath_var=LD_LIBRARY_PATH
20418   shlibpath_overrides_runpath=no
20419   # This implies no fast_install, which is unacceptable.
20420   # Some rework will be needed to allow for fast_install
20421   # before this can be enabled.
20422   hardcode_into_libs=yes
20423
20424   # Append ld.so.conf contents to the search path
20425   if test -f /etc/ld.so.conf; then
20426     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' ' '`
20427     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20428   fi
20429
20430   # We used to test for /lib/ld.so.1 and disable shared libraries on
20431   # powerpc, because MkLinux only supported shared libraries with the
20432   # GNU dynamic linker.  Since this was broken with cross compilers,
20433   # most powerpc-linux boxes support dynamic linking these days and
20434   # people can always --disable-shared, the test was removed, and we
20435   # assume the GNU/Linux dynamic linker is in use.
20436   dynamic_linker='GNU/Linux ld.so'
20437   ;;
20438
20439 knetbsd*-gnu)
20440   version_type=linux
20441   need_lib_prefix=no
20442   need_version=no
20443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20444   soname_spec='${libname}${release}${shared_ext}$major'
20445   shlibpath_var=LD_LIBRARY_PATH
20446   shlibpath_overrides_runpath=no
20447   hardcode_into_libs=yes
20448   dynamic_linker='GNU ld.so'
20449   ;;
20450
20451 netbsd*)
20452   version_type=sunos
20453   need_lib_prefix=no
20454   need_version=no
20455   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20456     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20457     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20458     dynamic_linker='NetBSD (a.out) ld.so'
20459   else
20460     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20461     soname_spec='${libname}${release}${shared_ext}$major'
20462     dynamic_linker='NetBSD ld.elf_so'
20463   fi
20464   shlibpath_var=LD_LIBRARY_PATH
20465   shlibpath_overrides_runpath=yes
20466   hardcode_into_libs=yes
20467   ;;
20468
20469 newsos6)
20470   version_type=linux
20471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20472   shlibpath_var=LD_LIBRARY_PATH
20473   shlibpath_overrides_runpath=yes
20474   ;;
20475
20476 nto-qnx*)
20477   version_type=linux
20478   need_lib_prefix=no
20479   need_version=no
20480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20481   soname_spec='${libname}${release}${shared_ext}$major'
20482   shlibpath_var=LD_LIBRARY_PATH
20483   shlibpath_overrides_runpath=yes
20484   ;;
20485
20486 openbsd*)
20487   version_type=sunos
20488   sys_lib_dlsearch_path_spec="/usr/lib"
20489   need_lib_prefix=no
20490   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20491   case $host_os in
20492     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20493     *)                         need_version=no  ;;
20494   esac
20495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20496   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20497   shlibpath_var=LD_LIBRARY_PATH
20498   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20499     case $host_os in
20500       openbsd2.[89] | openbsd2.[89].*)
20501         shlibpath_overrides_runpath=no
20502         ;;
20503       *)
20504         shlibpath_overrides_runpath=yes
20505         ;;
20506       esac
20507   else
20508     shlibpath_overrides_runpath=yes
20509   fi
20510   ;;
20511
20512 os2*)
20513   libname_spec='$name'
20514   shrext_cmds=".dll"
20515   need_lib_prefix=no
20516   library_names_spec='$libname${shared_ext} $libname.a'
20517   dynamic_linker='OS/2 ld.exe'
20518   shlibpath_var=LIBPATH
20519   ;;
20520
20521 osf3* | osf4* | osf5*)
20522   version_type=osf
20523   need_lib_prefix=no
20524   need_version=no
20525   soname_spec='${libname}${release}${shared_ext}$major'
20526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20527   shlibpath_var=LD_LIBRARY_PATH
20528   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20529   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20530   ;;
20531
20532 solaris*)
20533   version_type=linux
20534   need_lib_prefix=no
20535   need_version=no
20536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20537   soname_spec='${libname}${release}${shared_ext}$major'
20538   shlibpath_var=LD_LIBRARY_PATH
20539   shlibpath_overrides_runpath=yes
20540   hardcode_into_libs=yes
20541   # ldd complains unless libraries are executable
20542   postinstall_cmds='chmod +x $lib'
20543   ;;
20544
20545 sunos4*)
20546   version_type=sunos
20547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20548   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20549   shlibpath_var=LD_LIBRARY_PATH
20550   shlibpath_overrides_runpath=yes
20551   if test "$with_gnu_ld" = yes; then
20552     need_lib_prefix=no
20553   fi
20554   need_version=yes
20555   ;;
20556
20557 sysv4 | sysv4.3*)
20558   version_type=linux
20559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20560   soname_spec='${libname}${release}${shared_ext}$major'
20561   shlibpath_var=LD_LIBRARY_PATH
20562   case $host_vendor in
20563     sni)
20564       shlibpath_overrides_runpath=no
20565       need_lib_prefix=no
20566       export_dynamic_flag_spec='${wl}-Blargedynsym'
20567       runpath_var=LD_RUN_PATH
20568       ;;
20569     siemens)
20570       need_lib_prefix=no
20571       ;;
20572     motorola)
20573       need_lib_prefix=no
20574       need_version=no
20575       shlibpath_overrides_runpath=no
20576       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20577       ;;
20578   esac
20579   ;;
20580
20581 sysv4*MP*)
20582   if test -d /usr/nec ;then
20583     version_type=linux
20584     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20585     soname_spec='$libname${shared_ext}.$major'
20586     shlibpath_var=LD_LIBRARY_PATH
20587   fi
20588   ;;
20589
20590 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20591   version_type=freebsd-elf
20592   need_lib_prefix=no
20593   need_version=no
20594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20595   soname_spec='${libname}${release}${shared_ext}$major'
20596   shlibpath_var=LD_LIBRARY_PATH
20597   hardcode_into_libs=yes
20598   if test "$with_gnu_ld" = yes; then
20599     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20600     shlibpath_overrides_runpath=no
20601   else
20602     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20603     shlibpath_overrides_runpath=yes
20604     case $host_os in
20605       sco3.2v5*)
20606         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20607         ;;
20608     esac
20609   fi
20610   sys_lib_dlsearch_path_spec='/usr/lib'
20611   ;;
20612
20613 uts4*)
20614   version_type=linux
20615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20616   soname_spec='${libname}${release}${shared_ext}$major'
20617   shlibpath_var=LD_LIBRARY_PATH
20618   ;;
20619
20620 *)
20621   dynamic_linker=no
20622   ;;
20623 esac
20624 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20625 echo "${ECHO_T}$dynamic_linker" >&6; }
20626 test "$dynamic_linker" = no && can_build_shared=no
20627
20628 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20629 if test "$GCC" = yes; then
20630   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20631 fi
20632
20633 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20634 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20635 hardcode_action_CXX=
20636 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20637    test -n "$runpath_var_CXX" || \
20638    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20639
20640   # We can hardcode non-existant directories.
20641   if test "$hardcode_direct_CXX" != no &&
20642      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20643      # have to relink, otherwise we might link with an installed library
20644      # when we should be linking with a yet-to-be-installed one
20645      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20646      test "$hardcode_minus_L_CXX" != no; then
20647     # Linking always hardcodes the temporary library directory.
20648     hardcode_action_CXX=relink
20649   else
20650     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20651     hardcode_action_CXX=immediate
20652   fi
20653 else
20654   # We cannot hardcode anything, or else we can only hardcode existing
20655   # directories.
20656   hardcode_action_CXX=unsupported
20657 fi
20658 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20659 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20660
20661 if test "$hardcode_action_CXX" = relink; then
20662   # Fast installation is not supported
20663   enable_fast_install=no
20664 elif test "$shlibpath_overrides_runpath" = yes ||
20665      test "$enable_shared" = no; then
20666   # Fast installation is not necessary
20667   enable_fast_install=needless
20668 fi
20669
20670
20671 # The else clause should only fire when bootstrapping the
20672 # libtool distribution, otherwise you forgot to ship ltmain.sh
20673 # with your package, and you will get complaints that there are
20674 # no rules to generate ltmain.sh.
20675 if test -f "$ltmain"; then
20676   # See if we are running on zsh, and set the options which allow our commands through
20677   # without removal of \ escapes.
20678   if test -n "${ZSH_VERSION+set}" ; then
20679     setopt NO_GLOB_SUBST
20680   fi
20681   # Now quote all the things that may contain metacharacters while being
20682   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20683   # variables and quote the copies for generation of the libtool script.
20684   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20685     SED SHELL STRIP \
20686     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20687     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20688     deplibs_check_method reload_flag reload_cmds need_locks \
20689     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20690     lt_cv_sys_global_symbol_to_c_name_address \
20691     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20692     old_postinstall_cmds old_postuninstall_cmds \
20693     compiler_CXX \
20694     CC_CXX \
20695     LD_CXX \
20696     lt_prog_compiler_wl_CXX \
20697     lt_prog_compiler_pic_CXX \
20698     lt_prog_compiler_static_CXX \
20699     lt_prog_compiler_no_builtin_flag_CXX \
20700     export_dynamic_flag_spec_CXX \
20701     thread_safe_flag_spec_CXX \
20702     whole_archive_flag_spec_CXX \
20703     enable_shared_with_static_runtimes_CXX \
20704     old_archive_cmds_CXX \
20705     old_archive_from_new_cmds_CXX \
20706     predep_objects_CXX \
20707     postdep_objects_CXX \
20708     predeps_CXX \
20709     postdeps_CXX \
20710     compiler_lib_search_path_CXX \
20711     archive_cmds_CXX \
20712     archive_expsym_cmds_CXX \
20713     postinstall_cmds_CXX \
20714     postuninstall_cmds_CXX \
20715     old_archive_from_expsyms_cmds_CXX \
20716     allow_undefined_flag_CXX \
20717     no_undefined_flag_CXX \
20718     export_symbols_cmds_CXX \
20719     hardcode_libdir_flag_spec_CXX \
20720     hardcode_libdir_flag_spec_ld_CXX \
20721     hardcode_libdir_separator_CXX \
20722     hardcode_automatic_CXX \
20723     module_cmds_CXX \
20724     module_expsym_cmds_CXX \
20725     lt_cv_prog_compiler_c_o_CXX \
20726     exclude_expsyms_CXX \
20727     include_expsyms_CXX; do
20728
20729     case $var in
20730     old_archive_cmds_CXX | \
20731     old_archive_from_new_cmds_CXX | \
20732     archive_cmds_CXX | \
20733     archive_expsym_cmds_CXX | \
20734     module_cmds_CXX | \
20735     module_expsym_cmds_CXX | \
20736     old_archive_from_expsyms_cmds_CXX | \
20737     export_symbols_cmds_CXX | \
20738     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20739     postinstall_cmds | postuninstall_cmds | \
20740     old_postinstall_cmds | old_postuninstall_cmds | \
20741     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20742       # Double-quote double-evaled strings.
20743       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20744       ;;
20745     *)
20746       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20747       ;;
20748     esac
20749   done
20750
20751   case $lt_echo in
20752   *'\$0 --fallback-echo"')
20753     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20754     ;;
20755   esac
20756
20757 cfgfile="$ofile"
20758
20759   cat <<__EOF__ >> "$cfgfile"
20760 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20761
20762 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20763
20764 # Shell to use when invoking shell scripts.
20765 SHELL=$lt_SHELL
20766
20767 # Whether or not to build shared libraries.
20768 build_libtool_libs=$enable_shared
20769
20770 # Whether or not to build static libraries.
20771 build_old_libs=$enable_static
20772
20773 # Whether or not to add -lc for building shared libraries.
20774 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20775
20776 # Whether or not to disallow shared libs when runtime libs are static
20777 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20778
20779 # Whether or not to optimize for fast installation.
20780 fast_install=$enable_fast_install
20781
20782 # The host system.
20783 host_alias=$host_alias
20784 host=$host
20785 host_os=$host_os
20786
20787 # The build system.
20788 build_alias=$build_alias
20789 build=$build
20790 build_os=$build_os
20791
20792 # An echo program that does not interpret backslashes.
20793 echo=$lt_echo
20794
20795 # The archiver.
20796 AR=$lt_AR
20797 AR_FLAGS=$lt_AR_FLAGS
20798
20799 # A C compiler.
20800 LTCC=$lt_LTCC
20801
20802 # LTCC compiler flags.
20803 LTCFLAGS=$lt_LTCFLAGS
20804
20805 # A language-specific compiler.
20806 CC=$lt_compiler_CXX
20807
20808 # Is the compiler the GNU C compiler?
20809 with_gcc=$GCC_CXX
20810
20811 # An ERE matcher.
20812 EGREP=$lt_EGREP
20813
20814 # The linker used to build libraries.
20815 LD=$lt_LD_CXX
20816
20817 # Whether we need hard or soft links.
20818 LN_S=$lt_LN_S
20819
20820 # A BSD-compatible nm program.
20821 NM=$lt_NM
20822
20823 # A symbol stripping program
20824 STRIP=$lt_STRIP
20825
20826 # Used to examine libraries when file_magic_cmd begins "file"
20827 MAGIC_CMD=$MAGIC_CMD
20828
20829 # Used on cygwin: DLL creation program.
20830 DLLTOOL="$DLLTOOL"
20831
20832 # Used on cygwin: object dumper.
20833 OBJDUMP="$OBJDUMP"
20834
20835 # Used on cygwin: assembler.
20836 AS="$AS"
20837
20838 # The name of the directory that contains temporary libtool files.
20839 objdir=$objdir
20840
20841 # How to create reloadable object files.
20842 reload_flag=$lt_reload_flag
20843 reload_cmds=$lt_reload_cmds
20844
20845 # How to pass a linker flag through the compiler.
20846 wl=$lt_lt_prog_compiler_wl_CXX
20847
20848 # Object file suffix (normally "o").
20849 objext="$ac_objext"
20850
20851 # Old archive suffix (normally "a").
20852 libext="$libext"
20853
20854 # Shared library suffix (normally ".so").
20855 shrext_cmds='$shrext_cmds'
20856
20857 # Executable file suffix (normally "").
20858 exeext="$exeext"
20859
20860 # Additional compiler flags for building library objects.
20861 pic_flag=$lt_lt_prog_compiler_pic_CXX
20862 pic_mode=$pic_mode
20863
20864 # What is the maximum length of a command?
20865 max_cmd_len=$lt_cv_sys_max_cmd_len
20866
20867 # Does compiler simultaneously support -c and -o options?
20868 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20869
20870 # Must we lock files when doing compilation?
20871 need_locks=$lt_need_locks
20872
20873 # Do we need the lib prefix for modules?
20874 need_lib_prefix=$need_lib_prefix
20875
20876 # Do we need a version for libraries?
20877 need_version=$need_version
20878
20879 # Whether dlopen is supported.
20880 dlopen_support=$enable_dlopen
20881
20882 # Whether dlopen of programs is supported.
20883 dlopen_self=$enable_dlopen_self
20884
20885 # Whether dlopen of statically linked programs is supported.
20886 dlopen_self_static=$enable_dlopen_self_static
20887
20888 # Compiler flag to prevent dynamic linking.
20889 link_static_flag=$lt_lt_prog_compiler_static_CXX
20890
20891 # Compiler flag to turn off builtin functions.
20892 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20893
20894 # Compiler flag to allow reflexive dlopens.
20895 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20896
20897 # Compiler flag to generate shared objects directly from archives.
20898 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20899
20900 # Compiler flag to generate thread-safe objects.
20901 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20902
20903 # Library versioning type.
20904 version_type=$version_type
20905
20906 # Format of library name prefix.
20907 libname_spec=$lt_libname_spec
20908
20909 # List of archive names.  First name is the real one, the rest are links.
20910 # The last name is the one that the linker finds with -lNAME.
20911 library_names_spec=$lt_library_names_spec
20912
20913 # The coded name of the library, if different from the real name.
20914 soname_spec=$lt_soname_spec
20915
20916 # Commands used to build and install an old-style archive.
20917 RANLIB=$lt_RANLIB
20918 old_archive_cmds=$lt_old_archive_cmds_CXX
20919 old_postinstall_cmds=$lt_old_postinstall_cmds
20920 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20921
20922 # Create an old-style archive from a shared archive.
20923 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20924
20925 # Create a temporary old-style archive to link instead of a shared archive.
20926 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20927
20928 # Commands used to build and install a shared archive.
20929 archive_cmds=$lt_archive_cmds_CXX
20930 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20931 postinstall_cmds=$lt_postinstall_cmds
20932 postuninstall_cmds=$lt_postuninstall_cmds
20933
20934 # Commands used to build a loadable module (assumed same as above if empty)
20935 module_cmds=$lt_module_cmds_CXX
20936 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20937
20938 # Commands to strip libraries.
20939 old_striplib=$lt_old_striplib
20940 striplib=$lt_striplib
20941
20942 # Dependencies to place before the objects being linked to create a
20943 # shared library.
20944 predep_objects=$lt_predep_objects_CXX
20945
20946 # Dependencies to place after the objects being linked to create a
20947 # shared library.
20948 postdep_objects=$lt_postdep_objects_CXX
20949
20950 # Dependencies to place before the objects being linked to create a
20951 # shared library.
20952 predeps=$lt_predeps_CXX
20953
20954 # Dependencies to place after the objects being linked to create a
20955 # shared library.
20956 postdeps=$lt_postdeps_CXX
20957
20958 # The library search path used internally by the compiler when linking
20959 # a shared library.
20960 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20961
20962 # Method to check whether dependent libraries are shared objects.
20963 deplibs_check_method=$lt_deplibs_check_method
20964
20965 # Command to use when deplibs_check_method == file_magic.
20966 file_magic_cmd=$lt_file_magic_cmd
20967
20968 # Flag that allows shared libraries with undefined symbols to be built.
20969 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20970
20971 # Flag that forces no undefined symbols.
20972 no_undefined_flag=$lt_no_undefined_flag_CXX
20973
20974 # Commands used to finish a libtool library installation in a directory.
20975 finish_cmds=$lt_finish_cmds
20976
20977 # Same as above, but a single script fragment to be evaled but not shown.
20978 finish_eval=$lt_finish_eval
20979
20980 # Take the output of nm and produce a listing of raw symbols and C names.
20981 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20982
20983 # Transform the output of nm in a proper C declaration
20984 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20985
20986 # Transform the output of nm in a C name address pair
20987 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20988
20989 # This is the shared library runtime path variable.
20990 runpath_var=$runpath_var
20991
20992 # This is the shared library path variable.
20993 shlibpath_var=$shlibpath_var
20994
20995 # Is shlibpath searched before the hard-coded library search path?
20996 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20997
20998 # How to hardcode a shared library path into an executable.
20999 hardcode_action=$hardcode_action_CXX
21000
21001 # Whether we should hardcode library paths into libraries.
21002 hardcode_into_libs=$hardcode_into_libs
21003
21004 # Flag to hardcode \$libdir into a binary during linking.
21005 # This must work even if \$libdir does not exist.
21006 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21007
21008 # If ld is used when linking, flag to hardcode \$libdir into
21009 # a binary during linking. This must work even if \$libdir does
21010 # not exist.
21011 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21012
21013 # Whether we need a single -rpath flag with a separated argument.
21014 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21015
21016 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21017 # resulting binary.
21018 hardcode_direct=$hardcode_direct_CXX
21019
21020 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21021 # resulting binary.
21022 hardcode_minus_L=$hardcode_minus_L_CXX
21023
21024 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21025 # the resulting binary.
21026 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21027
21028 # Set to yes if building a shared library automatically hardcodes DIR into the library
21029 # and all subsequent libraries and executables linked against it.
21030 hardcode_automatic=$hardcode_automatic_CXX
21031
21032 # Variables whose values should be saved in libtool wrapper scripts and
21033 # restored at relink time.
21034 variables_saved_for_relink="$variables_saved_for_relink"
21035
21036 # Whether libtool must link a program against all its dependency libraries.
21037 link_all_deplibs=$link_all_deplibs_CXX
21038
21039 # Compile-time system search path for libraries
21040 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21041
21042 # Run-time system search path for libraries
21043 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21044
21045 # Fix the shell variable \$srcfile for the compiler.
21046 fix_srcfile_path="$fix_srcfile_path_CXX"
21047
21048 # Set to yes if exported symbols are required.
21049 always_export_symbols=$always_export_symbols_CXX
21050
21051 # The commands to list exported symbols.
21052 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21053
21054 # The commands to extract the exported symbol list from a shared archive.
21055 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21056
21057 # Symbols that should not be listed in the preloaded symbols.
21058 exclude_expsyms=$lt_exclude_expsyms_CXX
21059
21060 # Symbols that must always be exported.
21061 include_expsyms=$lt_include_expsyms_CXX
21062
21063 # ### END LIBTOOL TAG CONFIG: $tagname
21064
21065 __EOF__
21066
21067
21068 else
21069   # If there is no Makefile yet, we rely on a make rule to execute
21070   # `config.status --recheck' to rerun these tests and create the
21071   # libtool script then.
21072   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21073   if test -f "$ltmain_in"; then
21074     test -f Makefile && make "$ltmain"
21075   fi
21076 fi
21077
21078
21079 ac_ext=c
21080 ac_cpp='$CPP $CPPFLAGS'
21081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21084
21085 CC=$lt_save_CC
21086 LDCXX=$LD
21087 LD=$lt_save_LD
21088 GCC=$lt_save_GCC
21089 with_gnu_ldcxx=$with_gnu_ld
21090 with_gnu_ld=$lt_save_with_gnu_ld
21091 lt_cv_path_LDCXX=$lt_cv_path_LD
21092 lt_cv_path_LD=$lt_save_path_LD
21093 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21094 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21095
21096         else
21097           tagname=""
21098         fi
21099         ;;
21100
21101       F77)
21102         if test -n "$F77" && test "X$F77" != "Xno"; then
21103
21104 ac_ext=f
21105 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21106 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21107 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21108
21109
21110 archive_cmds_need_lc_F77=no
21111 allow_undefined_flag_F77=
21112 always_export_symbols_F77=no
21113 archive_expsym_cmds_F77=
21114 export_dynamic_flag_spec_F77=
21115 hardcode_direct_F77=no
21116 hardcode_libdir_flag_spec_F77=
21117 hardcode_libdir_flag_spec_ld_F77=
21118 hardcode_libdir_separator_F77=
21119 hardcode_minus_L_F77=no
21120 hardcode_automatic_F77=no
21121 module_cmds_F77=
21122 module_expsym_cmds_F77=
21123 link_all_deplibs_F77=unknown
21124 old_archive_cmds_F77=$old_archive_cmds
21125 no_undefined_flag_F77=
21126 whole_archive_flag_spec_F77=
21127 enable_shared_with_static_runtimes_F77=no
21128
21129 # Source file extension for f77 test sources.
21130 ac_ext=f
21131
21132 # Object file extension for compiled f77 test sources.
21133 objext=o
21134 objext_F77=$objext
21135
21136 # Code to be used in simple compile tests
21137 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21138
21139 # Code to be used in simple link tests
21140 lt_simple_link_test_code="      program t\n      end\n"
21141
21142 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21143
21144 # If no C compiler was specified, use CC.
21145 LTCC=${LTCC-"$CC"}
21146
21147 # If no C compiler flags were specified, use CFLAGS.
21148 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21149
21150 # Allow CC to be a program name with arguments.
21151 compiler=$CC
21152
21153
21154 # save warnings/boilerplate of simple test code
21155 ac_outfile=conftest.$ac_objext
21156 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21157 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21158 _lt_compiler_boilerplate=`cat conftest.err`
21159 $rm conftest*
21160
21161 ac_outfile=conftest.$ac_objext
21162 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21163 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21164 _lt_linker_boilerplate=`cat conftest.err`
21165 $rm conftest*
21166
21167
21168 # Allow CC to be a program name with arguments.
21169 lt_save_CC="$CC"
21170 CC=${F77-"f77"}
21171 compiler=$CC
21172 compiler_F77=$CC
21173 for cc_temp in $compiler""; do
21174   case $cc_temp in
21175     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21176     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21177     \-*) ;;
21178     *) break;;
21179   esac
21180 done
21181 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21182
21183
21184 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21185 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21186 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21187 echo "${ECHO_T}$can_build_shared" >&6; }
21188
21189 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21190 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21191 test "$can_build_shared" = "no" && enable_shared=no
21192
21193 # On AIX, shared libraries and static libraries use the same namespace, and
21194 # are all built from PIC.
21195 case $host_os in
21196 aix3*)
21197   test "$enable_shared" = yes && enable_static=no
21198   if test -n "$RANLIB"; then
21199     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21200     postinstall_cmds='$RANLIB $lib'
21201   fi
21202   ;;
21203 aix4* | aix5*)
21204   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21205     test "$enable_shared" = yes && enable_static=no
21206   fi
21207   ;;
21208 esac
21209 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21210 echo "${ECHO_T}$enable_shared" >&6; }
21211
21212 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21213 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21214 # Make sure either enable_shared or enable_static is yes.
21215 test "$enable_shared" = yes || enable_static=yes
21216 { echo "$as_me:$LINENO: result: $enable_static" >&5
21217 echo "${ECHO_T}$enable_static" >&6; }
21218
21219 GCC_F77="$G77"
21220 LD_F77="$LD"
21221
21222 lt_prog_compiler_wl_F77=
21223 lt_prog_compiler_pic_F77=
21224 lt_prog_compiler_static_F77=
21225
21226 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21227 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21228
21229   if test "$GCC" = yes; then
21230     lt_prog_compiler_wl_F77='-Wl,'
21231     lt_prog_compiler_static_F77='-static'
21232
21233     case $host_os in
21234       aix*)
21235       # All AIX code is PIC.
21236       if test "$host_cpu" = ia64; then
21237         # AIX 5 now supports IA64 processor
21238         lt_prog_compiler_static_F77='-Bstatic'
21239       fi
21240       ;;
21241
21242     amigaos*)
21243       # FIXME: we need at least 68020 code to build shared libraries, but
21244       # adding the `-m68020' flag to GCC prevents building anything better,
21245       # like `-m68040'.
21246       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21247       ;;
21248
21249     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21250       # PIC is the default for these OSes.
21251       ;;
21252
21253     mingw* | pw32* | os2*)
21254       # This hack is so that the source file can tell whether it is being
21255       # built for inclusion in a dll (and should export symbols for example).
21256       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21257       ;;
21258
21259     darwin* | rhapsody*)
21260       # PIC is the default on this platform
21261       # Common symbols not allowed in MH_DYLIB files
21262       lt_prog_compiler_pic_F77='-fno-common'
21263       ;;
21264
21265     interix3*)
21266       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21267       # Instead, we relocate shared libraries at runtime.
21268       ;;
21269
21270     msdosdjgpp*)
21271       # Just because we use GCC doesn't mean we suddenly get shared libraries
21272       # on systems that don't support them.
21273       lt_prog_compiler_can_build_shared_F77=no
21274       enable_shared=no
21275       ;;
21276
21277     sysv4*MP*)
21278       if test -d /usr/nec; then
21279         lt_prog_compiler_pic_F77=-Kconform_pic
21280       fi
21281       ;;
21282
21283     hpux*)
21284       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21285       # not for PA HP-UX.
21286       case $host_cpu in
21287       hppa*64*|ia64*)
21288         # +Z the default
21289         ;;
21290       *)
21291         lt_prog_compiler_pic_F77='-fPIC'
21292         ;;
21293       esac
21294       ;;
21295
21296     *)
21297       lt_prog_compiler_pic_F77='-fPIC'
21298       ;;
21299     esac
21300   else
21301     # PORTME Check for flag to pass linker flags through the system compiler.
21302     case $host_os in
21303     aix*)
21304       lt_prog_compiler_wl_F77='-Wl,'
21305       if test "$host_cpu" = ia64; then
21306         # AIX 5 now supports IA64 processor
21307         lt_prog_compiler_static_F77='-Bstatic'
21308       else
21309         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21310       fi
21311       ;;
21312       darwin*)
21313         # PIC is the default on this platform
21314         # Common symbols not allowed in MH_DYLIB files
21315        case $cc_basename in
21316          xlc*)
21317          lt_prog_compiler_pic_F77='-qnocommon'
21318          lt_prog_compiler_wl_F77='-Wl,'
21319          ;;
21320        esac
21321        ;;
21322
21323     mingw* | pw32* | os2*)
21324       # This hack is so that the source file can tell whether it is being
21325       # built for inclusion in a dll (and should export symbols for example).
21326       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21327       ;;
21328
21329     hpux9* | hpux10* | hpux11*)
21330       lt_prog_compiler_wl_F77='-Wl,'
21331       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21332       # not for PA HP-UX.
21333       case $host_cpu in
21334       hppa*64*|ia64*)
21335         # +Z the default
21336         ;;
21337       *)
21338         lt_prog_compiler_pic_F77='+Z'
21339         ;;
21340       esac
21341       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21342       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21343       ;;
21344
21345     irix5* | irix6* | nonstopux*)
21346       lt_prog_compiler_wl_F77='-Wl,'
21347       # PIC (with -KPIC) is the default.
21348       lt_prog_compiler_static_F77='-non_shared'
21349       ;;
21350
21351     newsos6)
21352       lt_prog_compiler_pic_F77='-KPIC'
21353       lt_prog_compiler_static_F77='-Bstatic'
21354       ;;
21355
21356     linux*)
21357       case $cc_basename in
21358       icc* | ecc*)
21359         lt_prog_compiler_wl_F77='-Wl,'
21360         lt_prog_compiler_pic_F77='-KPIC'
21361         lt_prog_compiler_static_F77='-static'
21362         ;;
21363       pgcc* | pgf77* | pgf90* | pgf95*)
21364         # Portland Group compilers (*not* the Pentium gcc compiler,
21365         # which looks to be a dead project)
21366         lt_prog_compiler_wl_F77='-Wl,'
21367         lt_prog_compiler_pic_F77='-fpic'
21368         lt_prog_compiler_static_F77='-Bstatic'
21369         ;;
21370       ccc*)
21371         lt_prog_compiler_wl_F77='-Wl,'
21372         # All Alpha code is PIC.
21373         lt_prog_compiler_static_F77='-non_shared'
21374         ;;
21375       esac
21376       ;;
21377
21378     osf3* | osf4* | osf5*)
21379       lt_prog_compiler_wl_F77='-Wl,'
21380       # All OSF/1 code is PIC.
21381       lt_prog_compiler_static_F77='-non_shared'
21382       ;;
21383
21384     solaris*)
21385       lt_prog_compiler_pic_F77='-KPIC'
21386       lt_prog_compiler_static_F77='-Bstatic'
21387       case $cc_basename in
21388       f77* | f90* | f95*)
21389         lt_prog_compiler_wl_F77='-Qoption ld ';;
21390       *)
21391         lt_prog_compiler_wl_F77='-Wl,';;
21392       esac
21393       ;;
21394
21395     sunos4*)
21396       lt_prog_compiler_wl_F77='-Qoption ld '
21397       lt_prog_compiler_pic_F77='-PIC'
21398       lt_prog_compiler_static_F77='-Bstatic'
21399       ;;
21400
21401     sysv4 | sysv4.2uw2* | sysv4.3*)
21402       lt_prog_compiler_wl_F77='-Wl,'
21403       lt_prog_compiler_pic_F77='-KPIC'
21404       lt_prog_compiler_static_F77='-Bstatic'
21405       ;;
21406
21407     sysv4*MP*)
21408       if test -d /usr/nec ;then
21409         lt_prog_compiler_pic_F77='-Kconform_pic'
21410         lt_prog_compiler_static_F77='-Bstatic'
21411       fi
21412       ;;
21413
21414     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21415       lt_prog_compiler_wl_F77='-Wl,'
21416       lt_prog_compiler_pic_F77='-KPIC'
21417       lt_prog_compiler_static_F77='-Bstatic'
21418       ;;
21419
21420     unicos*)
21421       lt_prog_compiler_wl_F77='-Wl,'
21422       lt_prog_compiler_can_build_shared_F77=no
21423       ;;
21424
21425     uts4*)
21426       lt_prog_compiler_pic_F77='-pic'
21427       lt_prog_compiler_static_F77='-Bstatic'
21428       ;;
21429
21430     *)
21431       lt_prog_compiler_can_build_shared_F77=no
21432       ;;
21433     esac
21434   fi
21435
21436 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21437 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21438
21439 #
21440 # Check to make sure the PIC flag actually works.
21441 #
21442 if test -n "$lt_prog_compiler_pic_F77"; then
21443
21444 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21445 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21446 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21447   echo $ECHO_N "(cached) $ECHO_C" >&6
21448 else
21449   lt_prog_compiler_pic_works_F77=no
21450   ac_outfile=conftest.$ac_objext
21451    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21452    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21453    # Insert the option either (1) after the last *FLAGS variable, or
21454    # (2) before a word containing "conftest.", or (3) at the end.
21455    # Note that $ac_compile itself does not contain backslashes and begins
21456    # with a dollar sign (not a hyphen), so the echo should work correctly.
21457    # The option is referenced via a variable to avoid confusing sed.
21458    lt_compile=`echo "$ac_compile" | $SED \
21459    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21460    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21461    -e 's:$: $lt_compiler_flag:'`
21462    (eval echo "\"\$as_me:21461: $lt_compile\"" >&5)
21463    (eval "$lt_compile" 2>conftest.err)
21464    ac_status=$?
21465    cat conftest.err >&5
21466    echo "$as_me:21465: \$? = $ac_status" >&5
21467    if (exit $ac_status) && test -s "$ac_outfile"; then
21468      # The compiler can only warn and ignore the option if not recognized
21469      # So say no if there are warnings other than the usual output.
21470      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21471      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21472      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21473        lt_prog_compiler_pic_works_F77=yes
21474      fi
21475    fi
21476    $rm conftest*
21477
21478 fi
21479 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21480 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21481
21482 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21483     case $lt_prog_compiler_pic_F77 in
21484      "" | " "*) ;;
21485      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21486      esac
21487 else
21488     lt_prog_compiler_pic_F77=
21489      lt_prog_compiler_can_build_shared_F77=no
21490 fi
21491
21492 fi
21493 case $host_os in
21494   # For platforms which do not support PIC, -DPIC is meaningless:
21495   *djgpp*)
21496     lt_prog_compiler_pic_F77=
21497     ;;
21498   *)
21499     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21500     ;;
21501 esac
21502
21503 #
21504 # Check to make sure the static flag actually works.
21505 #
21506 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21507 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21508 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21509 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21510   echo $ECHO_N "(cached) $ECHO_C" >&6
21511 else
21512   lt_prog_compiler_static_works_F77=no
21513    save_LDFLAGS="$LDFLAGS"
21514    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21515    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21516    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21517      # The linker can only warn and ignore the option if not recognized
21518      # So say no if there are warnings
21519      if test -s conftest.err; then
21520        # Append any errors to the config.log.
21521        cat conftest.err 1>&5
21522        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21523        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21524        if diff conftest.exp conftest.er2 >/dev/null; then
21525          lt_prog_compiler_static_works_F77=yes
21526        fi
21527      else
21528        lt_prog_compiler_static_works_F77=yes
21529      fi
21530    fi
21531    $rm conftest*
21532    LDFLAGS="$save_LDFLAGS"
21533
21534 fi
21535 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21536 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21537
21538 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21539     :
21540 else
21541     lt_prog_compiler_static_F77=
21542 fi
21543
21544
21545 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21546 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21547 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21548   echo $ECHO_N "(cached) $ECHO_C" >&6
21549 else
21550   lt_cv_prog_compiler_c_o_F77=no
21551    $rm -r conftest 2>/dev/null
21552    mkdir conftest
21553    cd conftest
21554    mkdir out
21555    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21556
21557    lt_compiler_flag="-o out/conftest2.$ac_objext"
21558    # Insert the option either (1) after the last *FLAGS variable, or
21559    # (2) before a word containing "conftest.", or (3) at the end.
21560    # Note that $ac_compile itself does not contain backslashes and begins
21561    # with a dollar sign (not a hyphen), so the echo should work correctly.
21562    lt_compile=`echo "$ac_compile" | $SED \
21563    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21564    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21565    -e 's:$: $lt_compiler_flag:'`
21566    (eval echo "\"\$as_me:21565: $lt_compile\"" >&5)
21567    (eval "$lt_compile" 2>out/conftest.err)
21568    ac_status=$?
21569    cat out/conftest.err >&5
21570    echo "$as_me:21569: \$? = $ac_status" >&5
21571    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21572    then
21573      # The compiler can only warn and ignore the option if not recognized
21574      # So say no if there are warnings
21575      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21576      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21577      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21578        lt_cv_prog_compiler_c_o_F77=yes
21579      fi
21580    fi
21581    chmod u+w . 2>&5
21582    $rm conftest*
21583    # SGI C++ compiler will create directory out/ii_files/ for
21584    # template instantiation
21585    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21586    $rm out/* && rmdir out
21587    cd ..
21588    rmdir conftest
21589    $rm conftest*
21590
21591 fi
21592 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21593 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21594
21595
21596 hard_links="nottested"
21597 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21598   # do not overwrite the value of need_locks provided by the user
21599   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21600 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21601   hard_links=yes
21602   $rm conftest*
21603   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21604   touch conftest.a
21605   ln conftest.a conftest.b 2>&5 || hard_links=no
21606   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21607   { echo "$as_me:$LINENO: result: $hard_links" >&5
21608 echo "${ECHO_T}$hard_links" >&6; }
21609   if test "$hard_links" = no; then
21610     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21611 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21612     need_locks=warn
21613   fi
21614 else
21615   need_locks=no
21616 fi
21617
21618 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21619 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21620
21621   runpath_var=
21622   allow_undefined_flag_F77=
21623   enable_shared_with_static_runtimes_F77=no
21624   archive_cmds_F77=
21625   archive_expsym_cmds_F77=
21626   old_archive_From_new_cmds_F77=
21627   old_archive_from_expsyms_cmds_F77=
21628   export_dynamic_flag_spec_F77=
21629   whole_archive_flag_spec_F77=
21630   thread_safe_flag_spec_F77=
21631   hardcode_libdir_flag_spec_F77=
21632   hardcode_libdir_flag_spec_ld_F77=
21633   hardcode_libdir_separator_F77=
21634   hardcode_direct_F77=no
21635   hardcode_minus_L_F77=no
21636   hardcode_shlibpath_var_F77=unsupported
21637   link_all_deplibs_F77=unknown
21638   hardcode_automatic_F77=no
21639   module_cmds_F77=
21640   module_expsym_cmds_F77=
21641   always_export_symbols_F77=no
21642   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21643   # include_expsyms should be a list of space-separated symbols to be *always*
21644   # included in the symbol list
21645   include_expsyms_F77=
21646   # exclude_expsyms can be an extended regexp of symbols to exclude
21647   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21648   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21649   # as well as any symbol that contains `d'.
21650   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21651   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21652   # platforms (ab)use it in PIC code, but their linkers get confused if
21653   # the symbol is explicitly referenced.  Since portable code cannot
21654   # rely on this symbol name, it's probably fine to never include it in
21655   # preloaded symbol tables.
21656   extract_expsyms_cmds=
21657   # Just being paranoid about ensuring that cc_basename is set.
21658   for cc_temp in $compiler""; do
21659   case $cc_temp in
21660     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21661     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21662     \-*) ;;
21663     *) break;;
21664   esac
21665 done
21666 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21667
21668   case $host_os in
21669   cygwin* | mingw* | pw32*)
21670     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21671     # When not using gcc, we currently assume that we are using
21672     # Microsoft Visual C++.
21673     if test "$GCC" != yes; then
21674       with_gnu_ld=no
21675     fi
21676     ;;
21677   interix*)
21678     # we just hope/assume this is gcc and not c89 (= MSVC++)
21679     with_gnu_ld=yes
21680     ;;
21681   openbsd*)
21682     with_gnu_ld=no
21683     ;;
21684   esac
21685
21686   ld_shlibs_F77=yes
21687   if test "$with_gnu_ld" = yes; then
21688     # If archive_cmds runs LD, not CC, wlarc should be empty
21689     wlarc='${wl}'
21690
21691     # Set some defaults for GNU ld with shared library support. These
21692     # are reset later if shared libraries are not supported. Putting them
21693     # here allows them to be overridden if necessary.
21694     runpath_var=LD_RUN_PATH
21695     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21696     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21697     # ancient GNU ld didn't support --whole-archive et. al.
21698     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21699         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21700       else
21701         whole_archive_flag_spec_F77=
21702     fi
21703     supports_anon_versioning=no
21704     case `$LD -v 2>/dev/null` in
21705       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21706       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21707       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21708       *\ 2.11.*) ;; # other 2.11 versions
21709       *) supports_anon_versioning=yes ;;
21710     esac
21711
21712     # See if GNU ld supports shared libraries.
21713     case $host_os in
21714     aix3* | aix4* | aix5*)
21715       # On AIX/PPC, the GNU linker is very broken
21716       if test "$host_cpu" != ia64; then
21717         ld_shlibs_F77=no
21718         cat <<EOF 1>&2
21719
21720 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21721 *** to be unable to reliably create shared libraries on AIX.
21722 *** Therefore, libtool is disabling shared libraries support.  If you
21723 *** really care for shared libraries, you may want to modify your PATH
21724 *** so that a non-GNU linker is found, and then restart.
21725
21726 EOF
21727       fi
21728       ;;
21729
21730     amigaos*)
21731       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)'
21732       hardcode_libdir_flag_spec_F77='-L$libdir'
21733       hardcode_minus_L_F77=yes
21734
21735       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21736       # that the semantics of dynamic libraries on AmigaOS, at least up
21737       # to version 4, is to share data among multiple programs linked
21738       # with the same dynamic library.  Since this doesn't match the
21739       # behavior of shared libraries on other platforms, we can't use
21740       # them.
21741       ld_shlibs_F77=no
21742       ;;
21743
21744     beos*)
21745       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21746         allow_undefined_flag_F77=unsupported
21747         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21748         # support --undefined.  This deserves some investigation.  FIXME
21749         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21750       else
21751         ld_shlibs_F77=no
21752       fi
21753       ;;
21754
21755     cygwin* | mingw* | pw32*)
21756       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21757       # as there is no search path for DLLs.
21758       hardcode_libdir_flag_spec_F77='-L$libdir'
21759       allow_undefined_flag_F77=unsupported
21760       always_export_symbols_F77=no
21761       enable_shared_with_static_runtimes_F77=yes
21762       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21763
21764       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21765         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21766         # If the export-symbols file already is a .def file (1st line
21767         # is EXPORTS), use it as is; otherwise, prepend...
21768         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21769           cp $export_symbols $output_objdir/$soname.def;
21770         else
21771           echo EXPORTS > $output_objdir/$soname.def;
21772           cat $export_symbols >> $output_objdir/$soname.def;
21773         fi~
21774         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21775       else
21776         ld_shlibs_F77=no
21777       fi
21778       ;;
21779
21780     interix3*)
21781       hardcode_direct_F77=no
21782       hardcode_shlibpath_var_F77=no
21783       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21784       export_dynamic_flag_spec_F77='${wl}-E'
21785       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21786       # Instead, shared libraries are loaded at an image base (0x10000000 by
21787       # default) and relocated if they conflict, which is a slow very memory
21788       # consuming and fragmenting process.  To avoid this, we pick a random,
21789       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21790       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21791       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'
21792       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'
21793       ;;
21794
21795     linux*)
21796       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21797         tmp_addflag=
21798         case $cc_basename,$host_cpu in
21799         pgcc*)                          # Portland Group C compiler
21800           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'
21801           tmp_addflag=' $pic_flag'
21802           ;;
21803         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21804           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'
21805           tmp_addflag=' $pic_flag -Mnomain' ;;
21806         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21807           tmp_addflag=' -i_dynamic' ;;
21808         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21809           tmp_addflag=' -i_dynamic -nofor_main' ;;
21810         ifc* | ifort*)                  # Intel Fortran compiler
21811           tmp_addflag=' -nofor_main' ;;
21812         esac
21813         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21814
21815         if test $supports_anon_versioning = yes; then
21816           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21817   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21818   $echo "local: *; };" >> $output_objdir/$libname.ver~
21819           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21820         fi
21821       else
21822         ld_shlibs_F77=no
21823       fi
21824       ;;
21825
21826     netbsd*)
21827       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21828         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21829         wlarc=
21830       else
21831         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21832         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21833       fi
21834       ;;
21835
21836     solaris*)
21837       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21838         ld_shlibs_F77=no
21839         cat <<EOF 1>&2
21840
21841 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21842 *** create shared libraries on Solaris systems.  Therefore, libtool
21843 *** is disabling shared libraries support.  We urge you to upgrade GNU
21844 *** binutils to release 2.9.1 or newer.  Another option is to modify
21845 *** your PATH or compiler configuration so that the native linker is
21846 *** used, and then restart.
21847
21848 EOF
21849       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21850         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21851         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21852       else
21853         ld_shlibs_F77=no
21854       fi
21855       ;;
21856
21857     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21858       case `$LD -v 2>&1` in
21859         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21860         ld_shlibs_F77=no
21861         cat <<_LT_EOF 1>&2
21862
21863 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21864 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21865 *** is disabling shared libraries support.  We urge you to upgrade GNU
21866 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21867 *** your PATH or compiler configuration so that the native linker is
21868 *** used, and then restart.
21869
21870 _LT_EOF
21871         ;;
21872         *)
21873           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21874             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21875             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21876             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21877           else
21878             ld_shlibs_F77=no
21879           fi
21880         ;;
21881       esac
21882       ;;
21883
21884     sunos4*)
21885       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21886       wlarc=
21887       hardcode_direct_F77=yes
21888       hardcode_shlibpath_var_F77=no
21889       ;;
21890
21891     *)
21892       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21893         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21894         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21895       else
21896         ld_shlibs_F77=no
21897       fi
21898       ;;
21899     esac
21900
21901     if test "$ld_shlibs_F77" = no; then
21902       runpath_var=
21903       hardcode_libdir_flag_spec_F77=
21904       export_dynamic_flag_spec_F77=
21905       whole_archive_flag_spec_F77=
21906     fi
21907   else
21908     # PORTME fill in a description of your system's linker (not GNU ld)
21909     case $host_os in
21910     aix3*)
21911       allow_undefined_flag_F77=unsupported
21912       always_export_symbols_F77=yes
21913       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'
21914       # Note: this linker hardcodes the directories in LIBPATH if there
21915       # are no directories specified by -L.
21916       hardcode_minus_L_F77=yes
21917       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21918         # Neither direct hardcoding nor static linking is supported with a
21919         # broken collect2.
21920         hardcode_direct_F77=unsupported
21921       fi
21922       ;;
21923
21924     aix4* | aix5*)
21925       if test "$host_cpu" = ia64; then
21926         # On IA64, the linker does run time linking by default, so we don't
21927         # have to do anything special.
21928         aix_use_runtimelinking=no
21929         exp_sym_flag='-Bexport'
21930         no_entry_flag=""
21931       else
21932         # If we're using GNU nm, then we don't want the "-C" option.
21933         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21934         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21935           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'
21936         else
21937           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'
21938         fi
21939         aix_use_runtimelinking=no
21940
21941         # Test if we are trying to use run time linking or normal
21942         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21943         # need to do runtime linking.
21944         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21945           for ld_flag in $LDFLAGS; do
21946           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21947             aix_use_runtimelinking=yes
21948             break
21949           fi
21950           done
21951           ;;
21952         esac
21953
21954         exp_sym_flag='-bexport'
21955         no_entry_flag='-bnoentry'
21956       fi
21957
21958       # When large executables or shared objects are built, AIX ld can
21959       # have problems creating the table of contents.  If linking a library
21960       # or program results in "error TOC overflow" add -mminimal-toc to
21961       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21962       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21963
21964       archive_cmds_F77=''
21965       hardcode_direct_F77=yes
21966       hardcode_libdir_separator_F77=':'
21967       link_all_deplibs_F77=yes
21968
21969       if test "$GCC" = yes; then
21970         case $host_os in aix4.[012]|aix4.[012].*)
21971         # We only want to do this on AIX 4.2 and lower, the check
21972         # below for broken collect2 doesn't work under 4.3+
21973           collect2name=`${CC} -print-prog-name=collect2`
21974           if test -f "$collect2name" && \
21975            strings "$collect2name" | grep resolve_lib_name >/dev/null
21976           then
21977           # We have reworked collect2
21978           hardcode_direct_F77=yes
21979           else
21980           # We have old collect2
21981           hardcode_direct_F77=unsupported
21982           # It fails to find uninstalled libraries when the uninstalled
21983           # path is not listed in the libpath.  Setting hardcode_minus_L
21984           # to unsupported forces relinking
21985           hardcode_minus_L_F77=yes
21986           hardcode_libdir_flag_spec_F77='-L$libdir'
21987           hardcode_libdir_separator_F77=
21988           fi
21989           ;;
21990         esac
21991         shared_flag='-shared'
21992         if test "$aix_use_runtimelinking" = yes; then
21993           shared_flag="$shared_flag "'${wl}-G'
21994         fi
21995       else
21996         # not using gcc
21997         if test "$host_cpu" = ia64; then
21998         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21999         # chokes on -Wl,-G. The following line is correct:
22000           shared_flag='-G'
22001         else
22002           if test "$aix_use_runtimelinking" = yes; then
22003             shared_flag='${wl}-G'
22004           else
22005             shared_flag='${wl}-bM:SRE'
22006           fi
22007         fi
22008       fi
22009
22010       # It seems that -bexpall does not export symbols beginning with
22011       # underscore (_), so it is better to generate a list of symbols to export.
22012       always_export_symbols_F77=yes
22013       if test "$aix_use_runtimelinking" = yes; then
22014         # Warning - without using the other runtime loading flags (-brtl),
22015         # -berok will link without error, but may produce a broken library.
22016         allow_undefined_flag_F77='-berok'
22017        # Determine the default libpath from the value encoded in an empty executable.
22018        cat >conftest.$ac_ext <<_ACEOF
22019       program main
22020
22021       end
22022 _ACEOF
22023 rm -f conftest.$ac_objext conftest$ac_exeext
22024 if { (ac_try="$ac_link"
22025 case "(($ac_try" in
22026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027   *) ac_try_echo=$ac_try;;
22028 esac
22029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22030   (eval "$ac_link") 2>conftest.er1
22031   ac_status=$?
22032   grep -v '^ *+' conftest.er1 >conftest.err
22033   rm -f conftest.er1
22034   cat conftest.err >&5
22035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036   (exit $ac_status); } &&
22037          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22038   { (case "(($ac_try" in
22039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22040   *) ac_try_echo=$ac_try;;
22041 esac
22042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22043   (eval "$ac_try") 2>&5
22044   ac_status=$?
22045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); }; } &&
22047          { ac_try='test -s conftest$ac_exeext'
22048   { (case "(($ac_try" in
22049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050   *) ac_try_echo=$ac_try;;
22051 esac
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053   (eval "$ac_try") 2>&5
22054   ac_status=$?
22055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056   (exit $ac_status); }; }; then
22057
22058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22059 }'`
22060 # Check for a 64-bit object if we didn't find anything.
22061 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; }
22062 }'`; fi
22063 else
22064   echo "$as_me: failed program was:" >&5
22065 sed 's/^/| /' conftest.$ac_ext >&5
22066
22067
22068 fi
22069
22070 rm -f core conftest.err conftest.$ac_objext \
22071       conftest$ac_exeext conftest.$ac_ext
22072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22073
22074        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22075         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"
22076        else
22077         if test "$host_cpu" = ia64; then
22078           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22079           allow_undefined_flag_F77="-z nodefs"
22080           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"
22081         else
22082          # Determine the default libpath from the value encoded in an empty executable.
22083          cat >conftest.$ac_ext <<_ACEOF
22084       program main
22085
22086       end
22087 _ACEOF
22088 rm -f conftest.$ac_objext conftest$ac_exeext
22089 if { (ac_try="$ac_link"
22090 case "(($ac_try" in
22091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092   *) ac_try_echo=$ac_try;;
22093 esac
22094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22095   (eval "$ac_link") 2>conftest.er1
22096   ac_status=$?
22097   grep -v '^ *+' conftest.er1 >conftest.err
22098   rm -f conftest.er1
22099   cat conftest.err >&5
22100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101   (exit $ac_status); } &&
22102          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22103   { (case "(($ac_try" in
22104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105   *) ac_try_echo=$ac_try;;
22106 esac
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108   (eval "$ac_try") 2>&5
22109   ac_status=$?
22110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111   (exit $ac_status); }; } &&
22112          { ac_try='test -s conftest$ac_exeext'
22113   { (case "(($ac_try" in
22114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115   *) ac_try_echo=$ac_try;;
22116 esac
22117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118   (eval "$ac_try") 2>&5
22119   ac_status=$?
22120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121   (exit $ac_status); }; }; then
22122
22123 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22124 }'`
22125 # Check for a 64-bit object if we didn't find anything.
22126 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; }
22127 }'`; fi
22128 else
22129   echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22131
22132
22133 fi
22134
22135 rm -f core conftest.err conftest.$ac_objext \
22136       conftest$ac_exeext conftest.$ac_ext
22137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22138
22139          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22140           # Warning - without using the other run time loading flags,
22141           # -berok will link without error, but may produce a broken library.
22142           no_undefined_flag_F77=' ${wl}-bernotok'
22143           allow_undefined_flag_F77=' ${wl}-berok'
22144           # Exported symbols can be pulled into shared objects from archives
22145           whole_archive_flag_spec_F77='$convenience'
22146           archive_cmds_need_lc_F77=yes
22147           # This is similar to how AIX traditionally builds its shared libraries.
22148           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'
22149         fi
22150       fi
22151       ;;
22152
22153     amigaos*)
22154       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)'
22155       hardcode_libdir_flag_spec_F77='-L$libdir'
22156       hardcode_minus_L_F77=yes
22157       # see comment about different semantics on the GNU ld section
22158       ld_shlibs_F77=no
22159       ;;
22160
22161     bsdi[45]*)
22162       export_dynamic_flag_spec_F77=-rdynamic
22163       ;;
22164
22165     cygwin* | mingw* | pw32*)
22166       # When not using gcc, we currently assume that we are using
22167       # Microsoft Visual C++.
22168       # hardcode_libdir_flag_spec is actually meaningless, as there is
22169       # no search path for DLLs.
22170       hardcode_libdir_flag_spec_F77=' '
22171       allow_undefined_flag_F77=unsupported
22172       # Tell ltmain to make .lib files, not .a files.
22173       libext=lib
22174       # Tell ltmain to make .dll files, not .so files.
22175       shrext_cmds=".dll"
22176       # FIXME: Setting linknames here is a bad hack.
22177       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22178       # The linker will automatically build a .lib file if we build a DLL.
22179       old_archive_From_new_cmds_F77='true'
22180       # FIXME: Should let the user specify the lib program.
22181       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22182       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22183       enable_shared_with_static_runtimes_F77=yes
22184       ;;
22185
22186     darwin* | rhapsody*)
22187       case $host_os in
22188         rhapsody* | darwin1.[012])
22189          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22190          ;;
22191        *) # Darwin 1.3 on
22192          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22193            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22194          else
22195            case ${MACOSX_DEPLOYMENT_TARGET} in
22196              10.[012])
22197                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22198                ;;
22199              10.*)
22200                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22201                ;;
22202            esac
22203          fi
22204          ;;
22205       esac
22206       archive_cmds_need_lc_F77=no
22207       hardcode_direct_F77=no
22208       hardcode_automatic_F77=yes
22209       hardcode_shlibpath_var_F77=unsupported
22210       whole_archive_flag_spec_F77=''
22211       link_all_deplibs_F77=yes
22212     if test "$GCC" = yes ; then
22213         output_verbose_link_cmd='echo'
22214         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22215       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22216       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22217       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}'
22218       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}'
22219     else
22220       case $cc_basename in
22221         xlc*)
22222          output_verbose_link_cmd='echo'
22223          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22224          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22225           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22226          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}'
22227           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}'
22228           ;;
22229        *)
22230          ld_shlibs_F77=no
22231           ;;
22232       esac
22233     fi
22234       ;;
22235
22236     dgux*)
22237       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22238       hardcode_libdir_flag_spec_F77='-L$libdir'
22239       hardcode_shlibpath_var_F77=no
22240       ;;
22241
22242     freebsd1*)
22243       ld_shlibs_F77=no
22244       ;;
22245
22246     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22247     # support.  Future versions do this automatically, but an explicit c++rt0.o
22248     # does not break anything, and helps significantly (at the cost of a little
22249     # extra space).
22250     freebsd2.2*)
22251       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22252       hardcode_libdir_flag_spec_F77='-R$libdir'
22253       hardcode_direct_F77=yes
22254       hardcode_shlibpath_var_F77=no
22255       ;;
22256
22257     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22258     freebsd2*)
22259       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22260       hardcode_direct_F77=yes
22261       hardcode_minus_L_F77=yes
22262       hardcode_shlibpath_var_F77=no
22263       ;;
22264
22265     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22266     freebsd* | kfreebsd*-gnu | dragonfly*)
22267       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22268       hardcode_libdir_flag_spec_F77='-R$libdir'
22269       hardcode_direct_F77=yes
22270       hardcode_shlibpath_var_F77=no
22271       ;;
22272
22273     hpux9*)
22274       if test "$GCC" = yes; then
22275         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'
22276       else
22277         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'
22278       fi
22279       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22280       hardcode_libdir_separator_F77=:
22281       hardcode_direct_F77=yes
22282
22283       # hardcode_minus_L: Not really in the search PATH,
22284       # but as the default location of the library.
22285       hardcode_minus_L_F77=yes
22286       export_dynamic_flag_spec_F77='${wl}-E'
22287       ;;
22288
22289     hpux10*)
22290       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22291         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22292       else
22293         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22294       fi
22295       if test "$with_gnu_ld" = no; then
22296         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22297         hardcode_libdir_separator_F77=:
22298
22299         hardcode_direct_F77=yes
22300         export_dynamic_flag_spec_F77='${wl}-E'
22301
22302         # hardcode_minus_L: Not really in the search PATH,
22303         # but as the default location of the library.
22304         hardcode_minus_L_F77=yes
22305       fi
22306       ;;
22307
22308     hpux11*)
22309       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22310         case $host_cpu in
22311         hppa*64*)
22312           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22313           ;;
22314         ia64*)
22315           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22316           ;;
22317         *)
22318           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22319           ;;
22320         esac
22321       else
22322         case $host_cpu in
22323         hppa*64*)
22324           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22325           ;;
22326         ia64*)
22327           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22328           ;;
22329         *)
22330           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22331           ;;
22332         esac
22333       fi
22334       if test "$with_gnu_ld" = no; then
22335         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22336         hardcode_libdir_separator_F77=:
22337
22338         case $host_cpu in
22339         hppa*64*|ia64*)
22340           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22341           hardcode_direct_F77=no
22342           hardcode_shlibpath_var_F77=no
22343           ;;
22344         *)
22345           hardcode_direct_F77=yes
22346           export_dynamic_flag_spec_F77='${wl}-E'
22347
22348           # hardcode_minus_L: Not really in the search PATH,
22349           # but as the default location of the library.
22350           hardcode_minus_L_F77=yes
22351           ;;
22352         esac
22353       fi
22354       ;;
22355
22356     irix5* | irix6* | nonstopux*)
22357       if test "$GCC" = yes; then
22358         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'
22359       else
22360         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'
22361         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22362       fi
22363       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22364       hardcode_libdir_separator_F77=:
22365       link_all_deplibs_F77=yes
22366       ;;
22367
22368     netbsd*)
22369       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22370         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22371       else
22372         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22373       fi
22374       hardcode_libdir_flag_spec_F77='-R$libdir'
22375       hardcode_direct_F77=yes
22376       hardcode_shlibpath_var_F77=no
22377       ;;
22378
22379     newsos6)
22380       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22381       hardcode_direct_F77=yes
22382       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22383       hardcode_libdir_separator_F77=:
22384       hardcode_shlibpath_var_F77=no
22385       ;;
22386
22387     openbsd*)
22388       hardcode_direct_F77=yes
22389       hardcode_shlibpath_var_F77=no
22390       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22391         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22392         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22393         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22394         export_dynamic_flag_spec_F77='${wl}-E'
22395       else
22396        case $host_os in
22397          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22398            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22399            hardcode_libdir_flag_spec_F77='-R$libdir'
22400            ;;
22401          *)
22402            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22403            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22404            ;;
22405        esac
22406       fi
22407       ;;
22408
22409     os2*)
22410       hardcode_libdir_flag_spec_F77='-L$libdir'
22411       hardcode_minus_L_F77=yes
22412       allow_undefined_flag_F77=unsupported
22413       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'
22414       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22415       ;;
22416
22417     osf3*)
22418       if test "$GCC" = yes; then
22419         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22420         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'
22421       else
22422         allow_undefined_flag_F77=' -expect_unresolved \*'
22423         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'
22424       fi
22425       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22426       hardcode_libdir_separator_F77=:
22427       ;;
22428
22429     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22430       if test "$GCC" = yes; then
22431         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22432         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'
22433         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22434       else
22435         allow_undefined_flag_F77=' -expect_unresolved \*'
22436         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'
22437         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~
22438         $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'
22439
22440         # Both c and cxx compiler support -rpath directly
22441         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22442       fi
22443       hardcode_libdir_separator_F77=:
22444       ;;
22445
22446     solaris*)
22447       no_undefined_flag_F77=' -z text'
22448       if test "$GCC" = yes; then
22449         wlarc='${wl}'
22450         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22451         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22452           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22453       else
22454         wlarc=''
22455         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22456         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22457         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22458       fi
22459       hardcode_libdir_flag_spec_F77='-R$libdir'
22460       hardcode_shlibpath_var_F77=no
22461       case $host_os in
22462       solaris2.[0-5] | solaris2.[0-5].*) ;;
22463       *)
22464         # The compiler driver will combine linker options so we
22465         # cannot just pass the convience library names through
22466         # without $wl, iff we do not link with $LD.
22467         # Luckily, gcc supports the same syntax we need for Sun Studio.
22468         # Supported since Solaris 2.6 (maybe 2.5.1?)
22469         case $wlarc in
22470         '')
22471           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22472         *)
22473           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' ;;
22474         esac ;;
22475       esac
22476       link_all_deplibs_F77=yes
22477       ;;
22478
22479     sunos4*)
22480       if test "x$host_vendor" = xsequent; then
22481         # Use $CC to link under sequent, because it throws in some extra .o
22482         # files that make .init and .fini sections work.
22483         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22484       else
22485         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22486       fi
22487       hardcode_libdir_flag_spec_F77='-L$libdir'
22488       hardcode_direct_F77=yes
22489       hardcode_minus_L_F77=yes
22490       hardcode_shlibpath_var_F77=no
22491       ;;
22492
22493     sysv4)
22494       case $host_vendor in
22495         sni)
22496           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22497           hardcode_direct_F77=yes # is this really true???
22498         ;;
22499         siemens)
22500           ## LD is ld it makes a PLAMLIB
22501           ## CC just makes a GrossModule.
22502           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22503           reload_cmds_F77='$CC -r -o $output$reload_objs'
22504           hardcode_direct_F77=no
22505         ;;
22506         motorola)
22507           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22508           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22509         ;;
22510       esac
22511       runpath_var='LD_RUN_PATH'
22512       hardcode_shlibpath_var_F77=no
22513       ;;
22514
22515     sysv4.3*)
22516       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22517       hardcode_shlibpath_var_F77=no
22518       export_dynamic_flag_spec_F77='-Bexport'
22519       ;;
22520
22521     sysv4*MP*)
22522       if test -d /usr/nec; then
22523         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22524         hardcode_shlibpath_var_F77=no
22525         runpath_var=LD_RUN_PATH
22526         hardcode_runpath_var=yes
22527         ld_shlibs_F77=yes
22528       fi
22529       ;;
22530
22531     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22532       no_undefined_flag_F77='${wl}-z,text'
22533       archive_cmds_need_lc_F77=no
22534       hardcode_shlibpath_var_F77=no
22535       runpath_var='LD_RUN_PATH'
22536
22537       if test "$GCC" = yes; then
22538         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22539         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22540       else
22541         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22542         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22543       fi
22544       ;;
22545
22546     sysv5* | sco3.2v5* | sco5v6*)
22547       # Note: We can NOT use -z defs as we might desire, because we do not
22548       # link with -lc, and that would cause any symbols used from libc to
22549       # always be unresolved, which means just about no library would
22550       # ever link correctly.  If we're not using GNU ld we use -z text
22551       # though, which does catch some bad symbols but isn't as heavy-handed
22552       # as -z defs.
22553       no_undefined_flag_F77='${wl}-z,text'
22554       allow_undefined_flag_F77='${wl}-z,nodefs'
22555       archive_cmds_need_lc_F77=no
22556       hardcode_shlibpath_var_F77=no
22557       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22558       hardcode_libdir_separator_F77=':'
22559       link_all_deplibs_F77=yes
22560       export_dynamic_flag_spec_F77='${wl}-Bexport'
22561       runpath_var='LD_RUN_PATH'
22562
22563       if test "$GCC" = yes; then
22564         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22565         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22566       else
22567         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22568         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22569       fi
22570       ;;
22571
22572     uts4*)
22573       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22574       hardcode_libdir_flag_spec_F77='-L$libdir'
22575       hardcode_shlibpath_var_F77=no
22576       ;;
22577
22578     *)
22579       ld_shlibs_F77=no
22580       ;;
22581     esac
22582   fi
22583
22584 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22585 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22586 test "$ld_shlibs_F77" = no && can_build_shared=no
22587
22588 #
22589 # Do we need to explicitly link libc?
22590 #
22591 case "x$archive_cmds_need_lc_F77" in
22592 x|xyes)
22593   # Assume -lc should be added
22594   archive_cmds_need_lc_F77=yes
22595
22596   if test "$enable_shared" = yes && test "$GCC" = yes; then
22597     case $archive_cmds_F77 in
22598     *'~'*)
22599       # FIXME: we may have to deal with multi-command sequences.
22600       ;;
22601     '$CC '*)
22602       # Test whether the compiler implicitly links with -lc since on some
22603       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22604       # to ld, don't add -lc before -lgcc.
22605       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22606 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22607       $rm conftest*
22608       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22609
22610       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22611   (eval $ac_compile) 2>&5
22612   ac_status=$?
22613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614   (exit $ac_status); } 2>conftest.err; then
22615         soname=conftest
22616         lib=conftest
22617         libobjs=conftest.$ac_objext
22618         deplibs=
22619         wl=$lt_prog_compiler_wl_F77
22620         pic_flag=$lt_prog_compiler_pic_F77
22621         compiler_flags=-v
22622         linker_flags=-v
22623         verstring=
22624         output_objdir=.
22625         libname=conftest
22626         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22627         allow_undefined_flag_F77=
22628         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22629   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22630   ac_status=$?
22631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632   (exit $ac_status); }
22633         then
22634           archive_cmds_need_lc_F77=no
22635         else
22636           archive_cmds_need_lc_F77=yes
22637         fi
22638         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22639       else
22640         cat conftest.err 1>&5
22641       fi
22642       $rm conftest*
22643       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22644 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22645       ;;
22646     esac
22647   fi
22648   ;;
22649 esac
22650
22651 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22652 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22653 library_names_spec=
22654 libname_spec='lib$name'
22655 soname_spec=
22656 shrext_cmds=".so"
22657 postinstall_cmds=
22658 postuninstall_cmds=
22659 finish_cmds=
22660 finish_eval=
22661 shlibpath_var=
22662 shlibpath_overrides_runpath=unknown
22663 version_type=none
22664 dynamic_linker="$host_os ld.so"
22665 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22666 if test "$GCC" = yes; then
22667   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22668   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22669     # if the path contains ";" then we assume it to be the separator
22670     # otherwise default to the standard path separator (i.e. ":") - it is
22671     # assumed that no part of a normal pathname contains ";" but that should
22672     # okay in the real world where ";" in dirpaths is itself problematic.
22673     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22674   else
22675     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22676   fi
22677 else
22678   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22679 fi
22680 need_lib_prefix=unknown
22681 hardcode_into_libs=no
22682
22683 # when you set need_version to no, make sure it does not cause -set_version
22684 # flags to be left without arguments
22685 need_version=unknown
22686
22687 case $host_os in
22688 aix3*)
22689   version_type=linux
22690   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22691   shlibpath_var=LIBPATH
22692
22693   # AIX 3 has no versioning support, so we append a major version to the name.
22694   soname_spec='${libname}${release}${shared_ext}$major'
22695   ;;
22696
22697 aix4* | aix5*)
22698   version_type=linux
22699   need_lib_prefix=no
22700   need_version=no
22701   hardcode_into_libs=yes
22702   if test "$host_cpu" = ia64; then
22703     # AIX 5 supports IA64
22704     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22705     shlibpath_var=LD_LIBRARY_PATH
22706   else
22707     # With GCC up to 2.95.x, collect2 would create an import file
22708     # for dependence libraries.  The import file would start with
22709     # the line `#! .'.  This would cause the generated library to
22710     # depend on `.', always an invalid library.  This was fixed in
22711     # development snapshots of GCC prior to 3.0.
22712     case $host_os in
22713       aix4 | aix4.[01] | aix4.[01].*)
22714       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22715            echo ' yes '
22716            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22717         :
22718       else
22719         can_build_shared=no
22720       fi
22721       ;;
22722     esac
22723     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22724     # soname into executable. Probably we can add versioning support to
22725     # collect2, so additional links can be useful in future.
22726     if test "$aix_use_runtimelinking" = yes; then
22727       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22728       # instead of lib<name>.a to let people know that these are not
22729       # typical AIX shared libraries.
22730       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22731     else
22732       # We preserve .a as extension for shared libraries through AIX4.2
22733       # and later when we are not doing run time linking.
22734       library_names_spec='${libname}${release}.a $libname.a'
22735       soname_spec='${libname}${release}${shared_ext}$major'
22736     fi
22737     shlibpath_var=LIBPATH
22738   fi
22739   ;;
22740
22741 amigaos*)
22742   library_names_spec='$libname.ixlibrary $libname.a'
22743   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22744   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'
22745   ;;
22746
22747 beos*)
22748   library_names_spec='${libname}${shared_ext}'
22749   dynamic_linker="$host_os ld.so"
22750   shlibpath_var=LIBRARY_PATH
22751   ;;
22752
22753 bsdi[45]*)
22754   version_type=linux
22755   need_version=no
22756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22757   soname_spec='${libname}${release}${shared_ext}$major'
22758   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22759   shlibpath_var=LD_LIBRARY_PATH
22760   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22761   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22762   # the default ld.so.conf also contains /usr/contrib/lib and
22763   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22764   # libtool to hard-code these into programs
22765   ;;
22766
22767 cygwin* | mingw* | pw32*)
22768   version_type=windows
22769   shrext_cmds=".dll"
22770   need_version=no
22771   need_lib_prefix=no
22772
22773   case $GCC,$host_os in
22774   yes,cygwin* | yes,mingw* | yes,pw32*)
22775     library_names_spec='$libname.dll.a'
22776     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22777     postinstall_cmds='base_file=`basename \${file}`~
22778       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22779       dldir=$destdir/`dirname \$dlpath`~
22780       test -d \$dldir || mkdir -p \$dldir~
22781       $install_prog $dir/$dlname \$dldir/$dlname~
22782       chmod a+x \$dldir/$dlname'
22783     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22784       dlpath=$dir/\$dldll~
22785        $rm \$dlpath'
22786     shlibpath_overrides_runpath=yes
22787
22788     case $host_os in
22789     cygwin*)
22790       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22791       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22792       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22793       ;;
22794     mingw*)
22795       # MinGW DLLs use traditional 'lib' prefix
22796       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22797       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22798       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22799         # It is most probably a Windows format PATH printed by
22800         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22801         # path with ; separators, and with drive letters. We can handle the
22802         # drive letters (cygwin fileutils understands them), so leave them,
22803         # especially as we might pass files found there to a mingw objdump,
22804         # which wouldn't understand a cygwinified path. Ahh.
22805         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22806       else
22807         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22808       fi
22809       ;;
22810     pw32*)
22811       # pw32 DLLs use 'pw' prefix rather than 'lib'
22812       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22813       ;;
22814     esac
22815     ;;
22816
22817   *)
22818     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22819     ;;
22820   esac
22821   dynamic_linker='Win32 ld.exe'
22822   # FIXME: first we should search . and the directory the executable is in
22823   shlibpath_var=PATH
22824   ;;
22825
22826 darwin* | rhapsody*)
22827   dynamic_linker="$host_os dyld"
22828   version_type=darwin
22829   need_lib_prefix=no
22830   need_version=no
22831   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22832   soname_spec='${libname}${release}${major}$shared_ext'
22833   shlibpath_overrides_runpath=yes
22834   shlibpath_var=DYLD_LIBRARY_PATH
22835   shrext_cmds='.dylib'
22836   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22837   if test "$GCC" = yes; then
22838     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"`
22839   else
22840     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22841   fi
22842   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22843   ;;
22844
22845 dgux*)
22846   version_type=linux
22847   need_lib_prefix=no
22848   need_version=no
22849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22850   soname_spec='${libname}${release}${shared_ext}$major'
22851   shlibpath_var=LD_LIBRARY_PATH
22852   ;;
22853
22854 freebsd1*)
22855   dynamic_linker=no
22856   ;;
22857
22858 kfreebsd*-gnu)
22859   version_type=linux
22860   need_lib_prefix=no
22861   need_version=no
22862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22863   soname_spec='${libname}${release}${shared_ext}$major'
22864   shlibpath_var=LD_LIBRARY_PATH
22865   shlibpath_overrides_runpath=no
22866   hardcode_into_libs=yes
22867   dynamic_linker='GNU ld.so'
22868   ;;
22869
22870 freebsd* | dragonfly*)
22871   # DragonFly does not have aout.  When/if they implement a new
22872   # versioning mechanism, adjust this.
22873   if test -x /usr/bin/objformat; then
22874     objformat=`/usr/bin/objformat`
22875   else
22876     case $host_os in
22877     freebsd[123]*) objformat=aout ;;
22878     *) objformat=elf ;;
22879     esac
22880   fi
22881   version_type=freebsd-$objformat
22882   case $version_type in
22883     freebsd-elf*)
22884       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22885       need_version=no
22886       need_lib_prefix=no
22887       ;;
22888     freebsd-*)
22889       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22890       need_version=yes
22891       ;;
22892   esac
22893   shlibpath_var=LD_LIBRARY_PATH
22894   case $host_os in
22895   freebsd2*)
22896     shlibpath_overrides_runpath=yes
22897     ;;
22898   freebsd3.[01]* | freebsdelf3.[01]*)
22899     shlibpath_overrides_runpath=yes
22900     hardcode_into_libs=yes
22901     ;;
22902   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22903   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22904     shlibpath_overrides_runpath=no
22905     hardcode_into_libs=yes
22906     ;;
22907   freebsd*) # from 4.6 on
22908     shlibpath_overrides_runpath=yes
22909     hardcode_into_libs=yes
22910     ;;
22911   esac
22912   ;;
22913
22914 gnu*)
22915   version_type=linux
22916   need_lib_prefix=no
22917   need_version=no
22918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22919   soname_spec='${libname}${release}${shared_ext}$major'
22920   shlibpath_var=LD_LIBRARY_PATH
22921   hardcode_into_libs=yes
22922   ;;
22923
22924 hpux9* | hpux10* | hpux11*)
22925   # Give a soname corresponding to the major version so that dld.sl refuses to
22926   # link against other versions.
22927   version_type=sunos
22928   need_lib_prefix=no
22929   need_version=no
22930   case $host_cpu in
22931   ia64*)
22932     shrext_cmds='.so'
22933     hardcode_into_libs=yes
22934     dynamic_linker="$host_os dld.so"
22935     shlibpath_var=LD_LIBRARY_PATH
22936     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22937     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22938     soname_spec='${libname}${release}${shared_ext}$major'
22939     if test "X$HPUX_IA64_MODE" = X32; then
22940       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22941     else
22942       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22943     fi
22944     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22945     ;;
22946    hppa*64*)
22947      shrext_cmds='.sl'
22948      hardcode_into_libs=yes
22949      dynamic_linker="$host_os dld.sl"
22950      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22951      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22952      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22953      soname_spec='${libname}${release}${shared_ext}$major'
22954      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22955      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22956      ;;
22957    *)
22958     shrext_cmds='.sl'
22959     dynamic_linker="$host_os dld.sl"
22960     shlibpath_var=SHLIB_PATH
22961     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22963     soname_spec='${libname}${release}${shared_ext}$major'
22964     ;;
22965   esac
22966   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22967   postinstall_cmds='chmod 555 $lib'
22968   ;;
22969
22970 interix3*)
22971   version_type=linux
22972   need_lib_prefix=no
22973   need_version=no
22974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22975   soname_spec='${libname}${release}${shared_ext}$major'
22976   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22977   shlibpath_var=LD_LIBRARY_PATH
22978   shlibpath_overrides_runpath=no
22979   hardcode_into_libs=yes
22980   ;;
22981
22982 irix5* | irix6* | nonstopux*)
22983   case $host_os in
22984     nonstopux*) version_type=nonstopux ;;
22985     *)
22986         if test "$lt_cv_prog_gnu_ld" = yes; then
22987                 version_type=linux
22988         else
22989                 version_type=irix
22990         fi ;;
22991   esac
22992   need_lib_prefix=no
22993   need_version=no
22994   soname_spec='${libname}${release}${shared_ext}$major'
22995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22996   case $host_os in
22997   irix5* | nonstopux*)
22998     libsuff= shlibsuff=
22999     ;;
23000   *)
23001     case $LD in # libtool.m4 will add one of these switches to LD
23002     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23003       libsuff= shlibsuff= libmagic=32-bit;;
23004     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23005       libsuff=32 shlibsuff=N32 libmagic=N32;;
23006     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23007       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23008     *) libsuff= shlibsuff= libmagic=never-match;;
23009     esac
23010     ;;
23011   esac
23012   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23013   shlibpath_overrides_runpath=no
23014   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23015   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23016   hardcode_into_libs=yes
23017   ;;
23018
23019 # No shared lib support for Linux oldld, aout, or coff.
23020 linux*oldld* | linux*aout* | linux*coff*)
23021   dynamic_linker=no
23022   ;;
23023
23024 # This must be Linux ELF.
23025 linux*)
23026   version_type=linux
23027   need_lib_prefix=no
23028   need_version=no
23029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23030   soname_spec='${libname}${release}${shared_ext}$major'
23031   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23032   shlibpath_var=LD_LIBRARY_PATH
23033   shlibpath_overrides_runpath=no
23034   # This implies no fast_install, which is unacceptable.
23035   # Some rework will be needed to allow for fast_install
23036   # before this can be enabled.
23037   hardcode_into_libs=yes
23038
23039   # Append ld.so.conf contents to the search path
23040   if test -f /etc/ld.so.conf; then
23041     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' ' '`
23042     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23043   fi
23044
23045   # We used to test for /lib/ld.so.1 and disable shared libraries on
23046   # powerpc, because MkLinux only supported shared libraries with the
23047   # GNU dynamic linker.  Since this was broken with cross compilers,
23048   # most powerpc-linux boxes support dynamic linking these days and
23049   # people can always --disable-shared, the test was removed, and we
23050   # assume the GNU/Linux dynamic linker is in use.
23051   dynamic_linker='GNU/Linux ld.so'
23052   ;;
23053
23054 knetbsd*-gnu)
23055   version_type=linux
23056   need_lib_prefix=no
23057   need_version=no
23058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23059   soname_spec='${libname}${release}${shared_ext}$major'
23060   shlibpath_var=LD_LIBRARY_PATH
23061   shlibpath_overrides_runpath=no
23062   hardcode_into_libs=yes
23063   dynamic_linker='GNU ld.so'
23064   ;;
23065
23066 netbsd*)
23067   version_type=sunos
23068   need_lib_prefix=no
23069   need_version=no
23070   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23072     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23073     dynamic_linker='NetBSD (a.out) ld.so'
23074   else
23075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23076     soname_spec='${libname}${release}${shared_ext}$major'
23077     dynamic_linker='NetBSD ld.elf_so'
23078   fi
23079   shlibpath_var=LD_LIBRARY_PATH
23080   shlibpath_overrides_runpath=yes
23081   hardcode_into_libs=yes
23082   ;;
23083
23084 newsos6)
23085   version_type=linux
23086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23087   shlibpath_var=LD_LIBRARY_PATH
23088   shlibpath_overrides_runpath=yes
23089   ;;
23090
23091 nto-qnx*)
23092   version_type=linux
23093   need_lib_prefix=no
23094   need_version=no
23095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23096   soname_spec='${libname}${release}${shared_ext}$major'
23097   shlibpath_var=LD_LIBRARY_PATH
23098   shlibpath_overrides_runpath=yes
23099   ;;
23100
23101 openbsd*)
23102   version_type=sunos
23103   sys_lib_dlsearch_path_spec="/usr/lib"
23104   need_lib_prefix=no
23105   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23106   case $host_os in
23107     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23108     *)                         need_version=no  ;;
23109   esac
23110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23111   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23112   shlibpath_var=LD_LIBRARY_PATH
23113   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23114     case $host_os in
23115       openbsd2.[89] | openbsd2.[89].*)
23116         shlibpath_overrides_runpath=no
23117         ;;
23118       *)
23119         shlibpath_overrides_runpath=yes
23120         ;;
23121       esac
23122   else
23123     shlibpath_overrides_runpath=yes
23124   fi
23125   ;;
23126
23127 os2*)
23128   libname_spec='$name'
23129   shrext_cmds=".dll"
23130   need_lib_prefix=no
23131   library_names_spec='$libname${shared_ext} $libname.a'
23132   dynamic_linker='OS/2 ld.exe'
23133   shlibpath_var=LIBPATH
23134   ;;
23135
23136 osf3* | osf4* | osf5*)
23137   version_type=osf
23138   need_lib_prefix=no
23139   need_version=no
23140   soname_spec='${libname}${release}${shared_ext}$major'
23141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23142   shlibpath_var=LD_LIBRARY_PATH
23143   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23144   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23145   ;;
23146
23147 solaris*)
23148   version_type=linux
23149   need_lib_prefix=no
23150   need_version=no
23151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23152   soname_spec='${libname}${release}${shared_ext}$major'
23153   shlibpath_var=LD_LIBRARY_PATH
23154   shlibpath_overrides_runpath=yes
23155   hardcode_into_libs=yes
23156   # ldd complains unless libraries are executable
23157   postinstall_cmds='chmod +x $lib'
23158   ;;
23159
23160 sunos4*)
23161   version_type=sunos
23162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23163   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23164   shlibpath_var=LD_LIBRARY_PATH
23165   shlibpath_overrides_runpath=yes
23166   if test "$with_gnu_ld" = yes; then
23167     need_lib_prefix=no
23168   fi
23169   need_version=yes
23170   ;;
23171
23172 sysv4 | sysv4.3*)
23173   version_type=linux
23174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23175   soname_spec='${libname}${release}${shared_ext}$major'
23176   shlibpath_var=LD_LIBRARY_PATH
23177   case $host_vendor in
23178     sni)
23179       shlibpath_overrides_runpath=no
23180       need_lib_prefix=no
23181       export_dynamic_flag_spec='${wl}-Blargedynsym'
23182       runpath_var=LD_RUN_PATH
23183       ;;
23184     siemens)
23185       need_lib_prefix=no
23186       ;;
23187     motorola)
23188       need_lib_prefix=no
23189       need_version=no
23190       shlibpath_overrides_runpath=no
23191       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23192       ;;
23193   esac
23194   ;;
23195
23196 sysv4*MP*)
23197   if test -d /usr/nec ;then
23198     version_type=linux
23199     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23200     soname_spec='$libname${shared_ext}.$major'
23201     shlibpath_var=LD_LIBRARY_PATH
23202   fi
23203   ;;
23204
23205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23206   version_type=freebsd-elf
23207   need_lib_prefix=no
23208   need_version=no
23209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23210   soname_spec='${libname}${release}${shared_ext}$major'
23211   shlibpath_var=LD_LIBRARY_PATH
23212   hardcode_into_libs=yes
23213   if test "$with_gnu_ld" = yes; then
23214     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23215     shlibpath_overrides_runpath=no
23216   else
23217     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23218     shlibpath_overrides_runpath=yes
23219     case $host_os in
23220       sco3.2v5*)
23221         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23222         ;;
23223     esac
23224   fi
23225   sys_lib_dlsearch_path_spec='/usr/lib'
23226   ;;
23227
23228 uts4*)
23229   version_type=linux
23230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23231   soname_spec='${libname}${release}${shared_ext}$major'
23232   shlibpath_var=LD_LIBRARY_PATH
23233   ;;
23234
23235 *)
23236   dynamic_linker=no
23237   ;;
23238 esac
23239 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23240 echo "${ECHO_T}$dynamic_linker" >&6; }
23241 test "$dynamic_linker" = no && can_build_shared=no
23242
23243 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23244 if test "$GCC" = yes; then
23245   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23246 fi
23247
23248 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23249 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23250 hardcode_action_F77=
23251 if test -n "$hardcode_libdir_flag_spec_F77" || \
23252    test -n "$runpath_var_F77" || \
23253    test "X$hardcode_automatic_F77" = "Xyes" ; then
23254
23255   # We can hardcode non-existant directories.
23256   if test "$hardcode_direct_F77" != no &&
23257      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23258      # have to relink, otherwise we might link with an installed library
23259      # when we should be linking with a yet-to-be-installed one
23260      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23261      test "$hardcode_minus_L_F77" != no; then
23262     # Linking always hardcodes the temporary library directory.
23263     hardcode_action_F77=relink
23264   else
23265     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23266     hardcode_action_F77=immediate
23267   fi
23268 else
23269   # We cannot hardcode anything, or else we can only hardcode existing
23270   # directories.
23271   hardcode_action_F77=unsupported
23272 fi
23273 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23274 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23275
23276 if test "$hardcode_action_F77" = relink; then
23277   # Fast installation is not supported
23278   enable_fast_install=no
23279 elif test "$shlibpath_overrides_runpath" = yes ||
23280      test "$enable_shared" = no; then
23281   # Fast installation is not necessary
23282   enable_fast_install=needless
23283 fi
23284
23285
23286 # The else clause should only fire when bootstrapping the
23287 # libtool distribution, otherwise you forgot to ship ltmain.sh
23288 # with your package, and you will get complaints that there are
23289 # no rules to generate ltmain.sh.
23290 if test -f "$ltmain"; then
23291   # See if we are running on zsh, and set the options which allow our commands through
23292   # without removal of \ escapes.
23293   if test -n "${ZSH_VERSION+set}" ; then
23294     setopt NO_GLOB_SUBST
23295   fi
23296   # Now quote all the things that may contain metacharacters while being
23297   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23298   # variables and quote the copies for generation of the libtool script.
23299   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23300     SED SHELL STRIP \
23301     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23302     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23303     deplibs_check_method reload_flag reload_cmds need_locks \
23304     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23305     lt_cv_sys_global_symbol_to_c_name_address \
23306     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23307     old_postinstall_cmds old_postuninstall_cmds \
23308     compiler_F77 \
23309     CC_F77 \
23310     LD_F77 \
23311     lt_prog_compiler_wl_F77 \
23312     lt_prog_compiler_pic_F77 \
23313     lt_prog_compiler_static_F77 \
23314     lt_prog_compiler_no_builtin_flag_F77 \
23315     export_dynamic_flag_spec_F77 \
23316     thread_safe_flag_spec_F77 \
23317     whole_archive_flag_spec_F77 \
23318     enable_shared_with_static_runtimes_F77 \
23319     old_archive_cmds_F77 \
23320     old_archive_from_new_cmds_F77 \
23321     predep_objects_F77 \
23322     postdep_objects_F77 \
23323     predeps_F77 \
23324     postdeps_F77 \
23325     compiler_lib_search_path_F77 \
23326     archive_cmds_F77 \
23327     archive_expsym_cmds_F77 \
23328     postinstall_cmds_F77 \
23329     postuninstall_cmds_F77 \
23330     old_archive_from_expsyms_cmds_F77 \
23331     allow_undefined_flag_F77 \
23332     no_undefined_flag_F77 \
23333     export_symbols_cmds_F77 \
23334     hardcode_libdir_flag_spec_F77 \
23335     hardcode_libdir_flag_spec_ld_F77 \
23336     hardcode_libdir_separator_F77 \
23337     hardcode_automatic_F77 \
23338     module_cmds_F77 \
23339     module_expsym_cmds_F77 \
23340     lt_cv_prog_compiler_c_o_F77 \
23341     exclude_expsyms_F77 \
23342     include_expsyms_F77; do
23343
23344     case $var in
23345     old_archive_cmds_F77 | \
23346     old_archive_from_new_cmds_F77 | \
23347     archive_cmds_F77 | \
23348     archive_expsym_cmds_F77 | \
23349     module_cmds_F77 | \
23350     module_expsym_cmds_F77 | \
23351     old_archive_from_expsyms_cmds_F77 | \
23352     export_symbols_cmds_F77 | \
23353     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23354     postinstall_cmds | postuninstall_cmds | \
23355     old_postinstall_cmds | old_postuninstall_cmds | \
23356     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23357       # Double-quote double-evaled strings.
23358       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23359       ;;
23360     *)
23361       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23362       ;;
23363     esac
23364   done
23365
23366   case $lt_echo in
23367   *'\$0 --fallback-echo"')
23368     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23369     ;;
23370   esac
23371
23372 cfgfile="$ofile"
23373
23374   cat <<__EOF__ >> "$cfgfile"
23375 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23376
23377 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23378
23379 # Shell to use when invoking shell scripts.
23380 SHELL=$lt_SHELL
23381
23382 # Whether or not to build shared libraries.
23383 build_libtool_libs=$enable_shared
23384
23385 # Whether or not to build static libraries.
23386 build_old_libs=$enable_static
23387
23388 # Whether or not to add -lc for building shared libraries.
23389 build_libtool_need_lc=$archive_cmds_need_lc_F77
23390
23391 # Whether or not to disallow shared libs when runtime libs are static
23392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23393
23394 # Whether or not to optimize for fast installation.
23395 fast_install=$enable_fast_install
23396
23397 # The host system.
23398 host_alias=$host_alias
23399 host=$host
23400 host_os=$host_os
23401
23402 # The build system.
23403 build_alias=$build_alias
23404 build=$build
23405 build_os=$build_os
23406
23407 # An echo program that does not interpret backslashes.
23408 echo=$lt_echo
23409
23410 # The archiver.
23411 AR=$lt_AR
23412 AR_FLAGS=$lt_AR_FLAGS
23413
23414 # A C compiler.
23415 LTCC=$lt_LTCC
23416
23417 # LTCC compiler flags.
23418 LTCFLAGS=$lt_LTCFLAGS
23419
23420 # A language-specific compiler.
23421 CC=$lt_compiler_F77
23422
23423 # Is the compiler the GNU C compiler?
23424 with_gcc=$GCC_F77
23425
23426 # An ERE matcher.
23427 EGREP=$lt_EGREP
23428
23429 # The linker used to build libraries.
23430 LD=$lt_LD_F77
23431
23432 # Whether we need hard or soft links.
23433 LN_S=$lt_LN_S
23434
23435 # A BSD-compatible nm program.
23436 NM=$lt_NM
23437
23438 # A symbol stripping program
23439 STRIP=$lt_STRIP
23440
23441 # Used to examine libraries when file_magic_cmd begins "file"
23442 MAGIC_CMD=$MAGIC_CMD
23443
23444 # Used on cygwin: DLL creation program.
23445 DLLTOOL="$DLLTOOL"
23446
23447 # Used on cygwin: object dumper.
23448 OBJDUMP="$OBJDUMP"
23449
23450 # Used on cygwin: assembler.
23451 AS="$AS"
23452
23453 # The name of the directory that contains temporary libtool files.
23454 objdir=$objdir
23455
23456 # How to create reloadable object files.
23457 reload_flag=$lt_reload_flag
23458 reload_cmds=$lt_reload_cmds
23459
23460 # How to pass a linker flag through the compiler.
23461 wl=$lt_lt_prog_compiler_wl_F77
23462
23463 # Object file suffix (normally "o").
23464 objext="$ac_objext"
23465
23466 # Old archive suffix (normally "a").
23467 libext="$libext"
23468
23469 # Shared library suffix (normally ".so").
23470 shrext_cmds='$shrext_cmds'
23471
23472 # Executable file suffix (normally "").
23473 exeext="$exeext"
23474
23475 # Additional compiler flags for building library objects.
23476 pic_flag=$lt_lt_prog_compiler_pic_F77
23477 pic_mode=$pic_mode
23478
23479 # What is the maximum length of a command?
23480 max_cmd_len=$lt_cv_sys_max_cmd_len
23481
23482 # Does compiler simultaneously support -c and -o options?
23483 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23484
23485 # Must we lock files when doing compilation?
23486 need_locks=$lt_need_locks
23487
23488 # Do we need the lib prefix for modules?
23489 need_lib_prefix=$need_lib_prefix
23490
23491 # Do we need a version for libraries?
23492 need_version=$need_version
23493
23494 # Whether dlopen is supported.
23495 dlopen_support=$enable_dlopen
23496
23497 # Whether dlopen of programs is supported.
23498 dlopen_self=$enable_dlopen_self
23499
23500 # Whether dlopen of statically linked programs is supported.
23501 dlopen_self_static=$enable_dlopen_self_static
23502
23503 # Compiler flag to prevent dynamic linking.
23504 link_static_flag=$lt_lt_prog_compiler_static_F77
23505
23506 # Compiler flag to turn off builtin functions.
23507 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23508
23509 # Compiler flag to allow reflexive dlopens.
23510 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23511
23512 # Compiler flag to generate shared objects directly from archives.
23513 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23514
23515 # Compiler flag to generate thread-safe objects.
23516 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23517
23518 # Library versioning type.
23519 version_type=$version_type
23520
23521 # Format of library name prefix.
23522 libname_spec=$lt_libname_spec
23523
23524 # List of archive names.  First name is the real one, the rest are links.
23525 # The last name is the one that the linker finds with -lNAME.
23526 library_names_spec=$lt_library_names_spec
23527
23528 # The coded name of the library, if different from the real name.
23529 soname_spec=$lt_soname_spec
23530
23531 # Commands used to build and install an old-style archive.
23532 RANLIB=$lt_RANLIB
23533 old_archive_cmds=$lt_old_archive_cmds_F77
23534 old_postinstall_cmds=$lt_old_postinstall_cmds
23535 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23536
23537 # Create an old-style archive from a shared archive.
23538 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23539
23540 # Create a temporary old-style archive to link instead of a shared archive.
23541 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23542
23543 # Commands used to build and install a shared archive.
23544 archive_cmds=$lt_archive_cmds_F77
23545 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23546 postinstall_cmds=$lt_postinstall_cmds
23547 postuninstall_cmds=$lt_postuninstall_cmds
23548
23549 # Commands used to build a loadable module (assumed same as above if empty)
23550 module_cmds=$lt_module_cmds_F77
23551 module_expsym_cmds=$lt_module_expsym_cmds_F77
23552
23553 # Commands to strip libraries.
23554 old_striplib=$lt_old_striplib
23555 striplib=$lt_striplib
23556
23557 # Dependencies to place before the objects being linked to create a
23558 # shared library.
23559 predep_objects=$lt_predep_objects_F77
23560
23561 # Dependencies to place after the objects being linked to create a
23562 # shared library.
23563 postdep_objects=$lt_postdep_objects_F77
23564
23565 # Dependencies to place before the objects being linked to create a
23566 # shared library.
23567 predeps=$lt_predeps_F77
23568
23569 # Dependencies to place after the objects being linked to create a
23570 # shared library.
23571 postdeps=$lt_postdeps_F77
23572
23573 # The library search path used internally by the compiler when linking
23574 # a shared library.
23575 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23576
23577 # Method to check whether dependent libraries are shared objects.
23578 deplibs_check_method=$lt_deplibs_check_method
23579
23580 # Command to use when deplibs_check_method == file_magic.
23581 file_magic_cmd=$lt_file_magic_cmd
23582
23583 # Flag that allows shared libraries with undefined symbols to be built.
23584 allow_undefined_flag=$lt_allow_undefined_flag_F77
23585
23586 # Flag that forces no undefined symbols.
23587 no_undefined_flag=$lt_no_undefined_flag_F77
23588
23589 # Commands used to finish a libtool library installation in a directory.
23590 finish_cmds=$lt_finish_cmds
23591
23592 # Same as above, but a single script fragment to be evaled but not shown.
23593 finish_eval=$lt_finish_eval
23594
23595 # Take the output of nm and produce a listing of raw symbols and C names.
23596 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23597
23598 # Transform the output of nm in a proper C declaration
23599 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23600
23601 # Transform the output of nm in a C name address pair
23602 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23603
23604 # This is the shared library runtime path variable.
23605 runpath_var=$runpath_var
23606
23607 # This is the shared library path variable.
23608 shlibpath_var=$shlibpath_var
23609
23610 # Is shlibpath searched before the hard-coded library search path?
23611 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23612
23613 # How to hardcode a shared library path into an executable.
23614 hardcode_action=$hardcode_action_F77
23615
23616 # Whether we should hardcode library paths into libraries.
23617 hardcode_into_libs=$hardcode_into_libs
23618
23619 # Flag to hardcode \$libdir into a binary during linking.
23620 # This must work even if \$libdir does not exist.
23621 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23622
23623 # If ld is used when linking, flag to hardcode \$libdir into
23624 # a binary during linking. This must work even if \$libdir does
23625 # not exist.
23626 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23627
23628 # Whether we need a single -rpath flag with a separated argument.
23629 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23630
23631 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23632 # resulting binary.
23633 hardcode_direct=$hardcode_direct_F77
23634
23635 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23636 # resulting binary.
23637 hardcode_minus_L=$hardcode_minus_L_F77
23638
23639 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23640 # the resulting binary.
23641 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23642
23643 # Set to yes if building a shared library automatically hardcodes DIR into the library
23644 # and all subsequent libraries and executables linked against it.
23645 hardcode_automatic=$hardcode_automatic_F77
23646
23647 # Variables whose values should be saved in libtool wrapper scripts and
23648 # restored at relink time.
23649 variables_saved_for_relink="$variables_saved_for_relink"
23650
23651 # Whether libtool must link a program against all its dependency libraries.
23652 link_all_deplibs=$link_all_deplibs_F77
23653
23654 # Compile-time system search path for libraries
23655 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23656
23657 # Run-time system search path for libraries
23658 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23659
23660 # Fix the shell variable \$srcfile for the compiler.
23661 fix_srcfile_path="$fix_srcfile_path_F77"
23662
23663 # Set to yes if exported symbols are required.
23664 always_export_symbols=$always_export_symbols_F77
23665
23666 # The commands to list exported symbols.
23667 export_symbols_cmds=$lt_export_symbols_cmds_F77
23668
23669 # The commands to extract the exported symbol list from a shared archive.
23670 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23671
23672 # Symbols that should not be listed in the preloaded symbols.
23673 exclude_expsyms=$lt_exclude_expsyms_F77
23674
23675 # Symbols that must always be exported.
23676 include_expsyms=$lt_include_expsyms_F77
23677
23678 # ### END LIBTOOL TAG CONFIG: $tagname
23679
23680 __EOF__
23681
23682
23683 else
23684   # If there is no Makefile yet, we rely on a make rule to execute
23685   # `config.status --recheck' to rerun these tests and create the
23686   # libtool script then.
23687   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23688   if test -f "$ltmain_in"; then
23689     test -f Makefile && make "$ltmain"
23690   fi
23691 fi
23692
23693
23694 ac_ext=c
23695 ac_cpp='$CPP $CPPFLAGS'
23696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23699
23700 CC="$lt_save_CC"
23701
23702         else
23703           tagname=""
23704         fi
23705         ;;
23706
23707       GCJ)
23708         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23709           ac_ext=c
23710 ac_cpp='$CPP $CPPFLAGS'
23711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23714
23715
23716 # Source file extension for Java test sources.
23717 ac_ext=java
23718
23719 # Object file extension for compiled Java test sources.
23720 objext=o
23721 objext_GCJ=$objext
23722
23723 # Code to be used in simple compile tests
23724 lt_simple_compile_test_code="class foo {}\n"
23725
23726 # Code to be used in simple link tests
23727 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23728
23729 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23730
23731 # If no C compiler was specified, use CC.
23732 LTCC=${LTCC-"$CC"}
23733
23734 # If no C compiler flags were specified, use CFLAGS.
23735 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23736
23737 # Allow CC to be a program name with arguments.
23738 compiler=$CC
23739
23740
23741 # save warnings/boilerplate of simple test code
23742 ac_outfile=conftest.$ac_objext
23743 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23744 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23745 _lt_compiler_boilerplate=`cat conftest.err`
23746 $rm conftest*
23747
23748 ac_outfile=conftest.$ac_objext
23749 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23750 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23751 _lt_linker_boilerplate=`cat conftest.err`
23752 $rm conftest*
23753
23754
23755 # Allow CC to be a program name with arguments.
23756 lt_save_CC="$CC"
23757 CC=${GCJ-"gcj"}
23758 compiler=$CC
23759 compiler_GCJ=$CC
23760 for cc_temp in $compiler""; do
23761   case $cc_temp in
23762     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23763     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23764     \-*) ;;
23765     *) break;;
23766   esac
23767 done
23768 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23769
23770
23771 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23772 archive_cmds_need_lc_GCJ=no
23773
23774 old_archive_cmds_GCJ=$old_archive_cmds
23775
23776
23777 lt_prog_compiler_no_builtin_flag_GCJ=
23778
23779 if test "$GCC" = yes; then
23780   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23781
23782
23783 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23784 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23785 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23786   echo $ECHO_N "(cached) $ECHO_C" >&6
23787 else
23788   lt_cv_prog_compiler_rtti_exceptions=no
23789   ac_outfile=conftest.$ac_objext
23790    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23791    lt_compiler_flag="-fno-rtti -fno-exceptions"
23792    # Insert the option either (1) after the last *FLAGS variable, or
23793    # (2) before a word containing "conftest.", or (3) at the end.
23794    # Note that $ac_compile itself does not contain backslashes and begins
23795    # with a dollar sign (not a hyphen), so the echo should work correctly.
23796    # The option is referenced via a variable to avoid confusing sed.
23797    lt_compile=`echo "$ac_compile" | $SED \
23798    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23799    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23800    -e 's:$: $lt_compiler_flag:'`
23801    (eval echo "\"\$as_me:23800: $lt_compile\"" >&5)
23802    (eval "$lt_compile" 2>conftest.err)
23803    ac_status=$?
23804    cat conftest.err >&5
23805    echo "$as_me:23804: \$? = $ac_status" >&5
23806    if (exit $ac_status) && test -s "$ac_outfile"; then
23807      # The compiler can only warn and ignore the option if not recognized
23808      # So say no if there are warnings other than the usual output.
23809      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23810      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23811      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23812        lt_cv_prog_compiler_rtti_exceptions=yes
23813      fi
23814    fi
23815    $rm conftest*
23816
23817 fi
23818 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23819 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23820
23821 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23822     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23823 else
23824     :
23825 fi
23826
23827 fi
23828
23829 lt_prog_compiler_wl_GCJ=
23830 lt_prog_compiler_pic_GCJ=
23831 lt_prog_compiler_static_GCJ=
23832
23833 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23834 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23835
23836   if test "$GCC" = yes; then
23837     lt_prog_compiler_wl_GCJ='-Wl,'
23838     lt_prog_compiler_static_GCJ='-static'
23839
23840     case $host_os in
23841       aix*)
23842       # All AIX code is PIC.
23843       if test "$host_cpu" = ia64; then
23844         # AIX 5 now supports IA64 processor
23845         lt_prog_compiler_static_GCJ='-Bstatic'
23846       fi
23847       ;;
23848
23849     amigaos*)
23850       # FIXME: we need at least 68020 code to build shared libraries, but
23851       # adding the `-m68020' flag to GCC prevents building anything better,
23852       # like `-m68040'.
23853       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23854       ;;
23855
23856     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23857       # PIC is the default for these OSes.
23858       ;;
23859
23860     mingw* | pw32* | os2*)
23861       # This hack is so that the source file can tell whether it is being
23862       # built for inclusion in a dll (and should export symbols for example).
23863       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23864       ;;
23865
23866     darwin* | rhapsody*)
23867       # PIC is the default on this platform
23868       # Common symbols not allowed in MH_DYLIB files
23869       lt_prog_compiler_pic_GCJ='-fno-common'
23870       ;;
23871
23872     interix3*)
23873       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23874       # Instead, we relocate shared libraries at runtime.
23875       ;;
23876
23877     msdosdjgpp*)
23878       # Just because we use GCC doesn't mean we suddenly get shared libraries
23879       # on systems that don't support them.
23880       lt_prog_compiler_can_build_shared_GCJ=no
23881       enable_shared=no
23882       ;;
23883
23884     sysv4*MP*)
23885       if test -d /usr/nec; then
23886         lt_prog_compiler_pic_GCJ=-Kconform_pic
23887       fi
23888       ;;
23889
23890     hpux*)
23891       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23892       # not for PA HP-UX.
23893       case $host_cpu in
23894       hppa*64*|ia64*)
23895         # +Z the default
23896         ;;
23897       *)
23898         lt_prog_compiler_pic_GCJ='-fPIC'
23899         ;;
23900       esac
23901       ;;
23902
23903     *)
23904       lt_prog_compiler_pic_GCJ='-fPIC'
23905       ;;
23906     esac
23907   else
23908     # PORTME Check for flag to pass linker flags through the system compiler.
23909     case $host_os in
23910     aix*)
23911       lt_prog_compiler_wl_GCJ='-Wl,'
23912       if test "$host_cpu" = ia64; then
23913         # AIX 5 now supports IA64 processor
23914         lt_prog_compiler_static_GCJ='-Bstatic'
23915       else
23916         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23917       fi
23918       ;;
23919       darwin*)
23920         # PIC is the default on this platform
23921         # Common symbols not allowed in MH_DYLIB files
23922        case $cc_basename in
23923          xlc*)
23924          lt_prog_compiler_pic_GCJ='-qnocommon'
23925          lt_prog_compiler_wl_GCJ='-Wl,'
23926          ;;
23927        esac
23928        ;;
23929
23930     mingw* | pw32* | os2*)
23931       # This hack is so that the source file can tell whether it is being
23932       # built for inclusion in a dll (and should export symbols for example).
23933       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23934       ;;
23935
23936     hpux9* | hpux10* | hpux11*)
23937       lt_prog_compiler_wl_GCJ='-Wl,'
23938       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23939       # not for PA HP-UX.
23940       case $host_cpu in
23941       hppa*64*|ia64*)
23942         # +Z the default
23943         ;;
23944       *)
23945         lt_prog_compiler_pic_GCJ='+Z'
23946         ;;
23947       esac
23948       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23949       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23950       ;;
23951
23952     irix5* | irix6* | nonstopux*)
23953       lt_prog_compiler_wl_GCJ='-Wl,'
23954       # PIC (with -KPIC) is the default.
23955       lt_prog_compiler_static_GCJ='-non_shared'
23956       ;;
23957
23958     newsos6)
23959       lt_prog_compiler_pic_GCJ='-KPIC'
23960       lt_prog_compiler_static_GCJ='-Bstatic'
23961       ;;
23962
23963     linux*)
23964       case $cc_basename in
23965       icc* | ecc*)
23966         lt_prog_compiler_wl_GCJ='-Wl,'
23967         lt_prog_compiler_pic_GCJ='-KPIC'
23968         lt_prog_compiler_static_GCJ='-static'
23969         ;;
23970       pgcc* | pgf77* | pgf90* | pgf95*)
23971         # Portland Group compilers (*not* the Pentium gcc compiler,
23972         # which looks to be a dead project)
23973         lt_prog_compiler_wl_GCJ='-Wl,'
23974         lt_prog_compiler_pic_GCJ='-fpic'
23975         lt_prog_compiler_static_GCJ='-Bstatic'
23976         ;;
23977       ccc*)
23978         lt_prog_compiler_wl_GCJ='-Wl,'
23979         # All Alpha code is PIC.
23980         lt_prog_compiler_static_GCJ='-non_shared'
23981         ;;
23982       esac
23983       ;;
23984
23985     osf3* | osf4* | osf5*)
23986       lt_prog_compiler_wl_GCJ='-Wl,'
23987       # All OSF/1 code is PIC.
23988       lt_prog_compiler_static_GCJ='-non_shared'
23989       ;;
23990
23991     solaris*)
23992       lt_prog_compiler_pic_GCJ='-KPIC'
23993       lt_prog_compiler_static_GCJ='-Bstatic'
23994       case $cc_basename in
23995       f77* | f90* | f95*)
23996         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23997       *)
23998         lt_prog_compiler_wl_GCJ='-Wl,';;
23999       esac
24000       ;;
24001
24002     sunos4*)
24003       lt_prog_compiler_wl_GCJ='-Qoption ld '
24004       lt_prog_compiler_pic_GCJ='-PIC'
24005       lt_prog_compiler_static_GCJ='-Bstatic'
24006       ;;
24007
24008     sysv4 | sysv4.2uw2* | sysv4.3*)
24009       lt_prog_compiler_wl_GCJ='-Wl,'
24010       lt_prog_compiler_pic_GCJ='-KPIC'
24011       lt_prog_compiler_static_GCJ='-Bstatic'
24012       ;;
24013
24014     sysv4*MP*)
24015       if test -d /usr/nec ;then
24016         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24017         lt_prog_compiler_static_GCJ='-Bstatic'
24018       fi
24019       ;;
24020
24021     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24022       lt_prog_compiler_wl_GCJ='-Wl,'
24023       lt_prog_compiler_pic_GCJ='-KPIC'
24024       lt_prog_compiler_static_GCJ='-Bstatic'
24025       ;;
24026
24027     unicos*)
24028       lt_prog_compiler_wl_GCJ='-Wl,'
24029       lt_prog_compiler_can_build_shared_GCJ=no
24030       ;;
24031
24032     uts4*)
24033       lt_prog_compiler_pic_GCJ='-pic'
24034       lt_prog_compiler_static_GCJ='-Bstatic'
24035       ;;
24036
24037     *)
24038       lt_prog_compiler_can_build_shared_GCJ=no
24039       ;;
24040     esac
24041   fi
24042
24043 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24044 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24045
24046 #
24047 # Check to make sure the PIC flag actually works.
24048 #
24049 if test -n "$lt_prog_compiler_pic_GCJ"; then
24050
24051 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24052 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24053 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24054   echo $ECHO_N "(cached) $ECHO_C" >&6
24055 else
24056   lt_prog_compiler_pic_works_GCJ=no
24057   ac_outfile=conftest.$ac_objext
24058    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24059    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24060    # Insert the option either (1) after the last *FLAGS variable, or
24061    # (2) before a word containing "conftest.", or (3) at the end.
24062    # Note that $ac_compile itself does not contain backslashes and begins
24063    # with a dollar sign (not a hyphen), so the echo should work correctly.
24064    # The option is referenced via a variable to avoid confusing sed.
24065    lt_compile=`echo "$ac_compile" | $SED \
24066    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24067    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24068    -e 's:$: $lt_compiler_flag:'`
24069    (eval echo "\"\$as_me:24068: $lt_compile\"" >&5)
24070    (eval "$lt_compile" 2>conftest.err)
24071    ac_status=$?
24072    cat conftest.err >&5
24073    echo "$as_me:24072: \$? = $ac_status" >&5
24074    if (exit $ac_status) && test -s "$ac_outfile"; then
24075      # The compiler can only warn and ignore the option if not recognized
24076      # So say no if there are warnings other than the usual output.
24077      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24078      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24079      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24080        lt_prog_compiler_pic_works_GCJ=yes
24081      fi
24082    fi
24083    $rm conftest*
24084
24085 fi
24086 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24087 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24088
24089 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24090     case $lt_prog_compiler_pic_GCJ in
24091      "" | " "*) ;;
24092      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24093      esac
24094 else
24095     lt_prog_compiler_pic_GCJ=
24096      lt_prog_compiler_can_build_shared_GCJ=no
24097 fi
24098
24099 fi
24100 case $host_os in
24101   # For platforms which do not support PIC, -DPIC is meaningless:
24102   *djgpp*)
24103     lt_prog_compiler_pic_GCJ=
24104     ;;
24105   *)
24106     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24107     ;;
24108 esac
24109
24110 #
24111 # Check to make sure the static flag actually works.
24112 #
24113 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24114 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24115 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24116 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24117   echo $ECHO_N "(cached) $ECHO_C" >&6
24118 else
24119   lt_prog_compiler_static_works_GCJ=no
24120    save_LDFLAGS="$LDFLAGS"
24121    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24122    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24123    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24124      # The linker can only warn and ignore the option if not recognized
24125      # So say no if there are warnings
24126      if test -s conftest.err; then
24127        # Append any errors to the config.log.
24128        cat conftest.err 1>&5
24129        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24130        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24131        if diff conftest.exp conftest.er2 >/dev/null; then
24132          lt_prog_compiler_static_works_GCJ=yes
24133        fi
24134      else
24135        lt_prog_compiler_static_works_GCJ=yes
24136      fi
24137    fi
24138    $rm conftest*
24139    LDFLAGS="$save_LDFLAGS"
24140
24141 fi
24142 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24143 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24144
24145 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24146     :
24147 else
24148     lt_prog_compiler_static_GCJ=
24149 fi
24150
24151
24152 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24153 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24154 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24155   echo $ECHO_N "(cached) $ECHO_C" >&6
24156 else
24157   lt_cv_prog_compiler_c_o_GCJ=no
24158    $rm -r conftest 2>/dev/null
24159    mkdir conftest
24160    cd conftest
24161    mkdir out
24162    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24163
24164    lt_compiler_flag="-o out/conftest2.$ac_objext"
24165    # Insert the option either (1) after the last *FLAGS variable, or
24166    # (2) before a word containing "conftest.", or (3) at the end.
24167    # Note that $ac_compile itself does not contain backslashes and begins
24168    # with a dollar sign (not a hyphen), so the echo should work correctly.
24169    lt_compile=`echo "$ac_compile" | $SED \
24170    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24171    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24172    -e 's:$: $lt_compiler_flag:'`
24173    (eval echo "\"\$as_me:24172: $lt_compile\"" >&5)
24174    (eval "$lt_compile" 2>out/conftest.err)
24175    ac_status=$?
24176    cat out/conftest.err >&5
24177    echo "$as_me:24176: \$? = $ac_status" >&5
24178    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24179    then
24180      # The compiler can only warn and ignore the option if not recognized
24181      # So say no if there are warnings
24182      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24183      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24184      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24185        lt_cv_prog_compiler_c_o_GCJ=yes
24186      fi
24187    fi
24188    chmod u+w . 2>&5
24189    $rm conftest*
24190    # SGI C++ compiler will create directory out/ii_files/ for
24191    # template instantiation
24192    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24193    $rm out/* && rmdir out
24194    cd ..
24195    rmdir conftest
24196    $rm conftest*
24197
24198 fi
24199 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24200 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24201
24202
24203 hard_links="nottested"
24204 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24205   # do not overwrite the value of need_locks provided by the user
24206   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24207 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24208   hard_links=yes
24209   $rm conftest*
24210   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24211   touch conftest.a
24212   ln conftest.a conftest.b 2>&5 || hard_links=no
24213   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24214   { echo "$as_me:$LINENO: result: $hard_links" >&5
24215 echo "${ECHO_T}$hard_links" >&6; }
24216   if test "$hard_links" = no; then
24217     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24218 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24219     need_locks=warn
24220   fi
24221 else
24222   need_locks=no
24223 fi
24224
24225 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24226 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24227
24228   runpath_var=
24229   allow_undefined_flag_GCJ=
24230   enable_shared_with_static_runtimes_GCJ=no
24231   archive_cmds_GCJ=
24232   archive_expsym_cmds_GCJ=
24233   old_archive_From_new_cmds_GCJ=
24234   old_archive_from_expsyms_cmds_GCJ=
24235   export_dynamic_flag_spec_GCJ=
24236   whole_archive_flag_spec_GCJ=
24237   thread_safe_flag_spec_GCJ=
24238   hardcode_libdir_flag_spec_GCJ=
24239   hardcode_libdir_flag_spec_ld_GCJ=
24240   hardcode_libdir_separator_GCJ=
24241   hardcode_direct_GCJ=no
24242   hardcode_minus_L_GCJ=no
24243   hardcode_shlibpath_var_GCJ=unsupported
24244   link_all_deplibs_GCJ=unknown
24245   hardcode_automatic_GCJ=no
24246   module_cmds_GCJ=
24247   module_expsym_cmds_GCJ=
24248   always_export_symbols_GCJ=no
24249   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24250   # include_expsyms should be a list of space-separated symbols to be *always*
24251   # included in the symbol list
24252   include_expsyms_GCJ=
24253   # exclude_expsyms can be an extended regexp of symbols to exclude
24254   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24255   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24256   # as well as any symbol that contains `d'.
24257   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24258   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24259   # platforms (ab)use it in PIC code, but their linkers get confused if
24260   # the symbol is explicitly referenced.  Since portable code cannot
24261   # rely on this symbol name, it's probably fine to never include it in
24262   # preloaded symbol tables.
24263   extract_expsyms_cmds=
24264   # Just being paranoid about ensuring that cc_basename is set.
24265   for cc_temp in $compiler""; do
24266   case $cc_temp in
24267     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24268     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24269     \-*) ;;
24270     *) break;;
24271   esac
24272 done
24273 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24274
24275   case $host_os in
24276   cygwin* | mingw* | pw32*)
24277     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24278     # When not using gcc, we currently assume that we are using
24279     # Microsoft Visual C++.
24280     if test "$GCC" != yes; then
24281       with_gnu_ld=no
24282     fi
24283     ;;
24284   interix*)
24285     # we just hope/assume this is gcc and not c89 (= MSVC++)
24286     with_gnu_ld=yes
24287     ;;
24288   openbsd*)
24289     with_gnu_ld=no
24290     ;;
24291   esac
24292
24293   ld_shlibs_GCJ=yes
24294   if test "$with_gnu_ld" = yes; then
24295     # If archive_cmds runs LD, not CC, wlarc should be empty
24296     wlarc='${wl}'
24297
24298     # Set some defaults for GNU ld with shared library support. These
24299     # are reset later if shared libraries are not supported. Putting them
24300     # here allows them to be overridden if necessary.
24301     runpath_var=LD_RUN_PATH
24302     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24303     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24304     # ancient GNU ld didn't support --whole-archive et. al.
24305     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24306         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24307       else
24308         whole_archive_flag_spec_GCJ=
24309     fi
24310     supports_anon_versioning=no
24311     case `$LD -v 2>/dev/null` in
24312       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24313       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24314       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24315       *\ 2.11.*) ;; # other 2.11 versions
24316       *) supports_anon_versioning=yes ;;
24317     esac
24318
24319     # See if GNU ld supports shared libraries.
24320     case $host_os in
24321     aix3* | aix4* | aix5*)
24322       # On AIX/PPC, the GNU linker is very broken
24323       if test "$host_cpu" != ia64; then
24324         ld_shlibs_GCJ=no
24325         cat <<EOF 1>&2
24326
24327 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24328 *** to be unable to reliably create shared libraries on AIX.
24329 *** Therefore, libtool is disabling shared libraries support.  If you
24330 *** really care for shared libraries, you may want to modify your PATH
24331 *** so that a non-GNU linker is found, and then restart.
24332
24333 EOF
24334       fi
24335       ;;
24336
24337     amigaos*)
24338       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)'
24339       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24340       hardcode_minus_L_GCJ=yes
24341
24342       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24343       # that the semantics of dynamic libraries on AmigaOS, at least up
24344       # to version 4, is to share data among multiple programs linked
24345       # with the same dynamic library.  Since this doesn't match the
24346       # behavior of shared libraries on other platforms, we can't use
24347       # them.
24348       ld_shlibs_GCJ=no
24349       ;;
24350
24351     beos*)
24352       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24353         allow_undefined_flag_GCJ=unsupported
24354         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24355         # support --undefined.  This deserves some investigation.  FIXME
24356         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24357       else
24358         ld_shlibs_GCJ=no
24359       fi
24360       ;;
24361
24362     cygwin* | mingw* | pw32*)
24363       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24364       # as there is no search path for DLLs.
24365       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24366       allow_undefined_flag_GCJ=unsupported
24367       always_export_symbols_GCJ=no
24368       enable_shared_with_static_runtimes_GCJ=yes
24369       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24370
24371       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24372         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24373         # If the export-symbols file already is a .def file (1st line
24374         # is EXPORTS), use it as is; otherwise, prepend...
24375         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24376           cp $export_symbols $output_objdir/$soname.def;
24377         else
24378           echo EXPORTS > $output_objdir/$soname.def;
24379           cat $export_symbols >> $output_objdir/$soname.def;
24380         fi~
24381         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24382       else
24383         ld_shlibs_GCJ=no
24384       fi
24385       ;;
24386
24387     interix3*)
24388       hardcode_direct_GCJ=no
24389       hardcode_shlibpath_var_GCJ=no
24390       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24391       export_dynamic_flag_spec_GCJ='${wl}-E'
24392       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24393       # Instead, shared libraries are loaded at an image base (0x10000000 by
24394       # default) and relocated if they conflict, which is a slow very memory
24395       # consuming and fragmenting process.  To avoid this, we pick a random,
24396       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24397       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24398       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'
24399       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'
24400       ;;
24401
24402     linux*)
24403       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24404         tmp_addflag=
24405         case $cc_basename,$host_cpu in
24406         pgcc*)                          # Portland Group C compiler
24407           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'
24408           tmp_addflag=' $pic_flag'
24409           ;;
24410         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24411           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'
24412           tmp_addflag=' $pic_flag -Mnomain' ;;
24413         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24414           tmp_addflag=' -i_dynamic' ;;
24415         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24416           tmp_addflag=' -i_dynamic -nofor_main' ;;
24417         ifc* | ifort*)                  # Intel Fortran compiler
24418           tmp_addflag=' -nofor_main' ;;
24419         esac
24420         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24421
24422         if test $supports_anon_versioning = yes; then
24423           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24424   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24425   $echo "local: *; };" >> $output_objdir/$libname.ver~
24426           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24427         fi
24428       else
24429         ld_shlibs_GCJ=no
24430       fi
24431       ;;
24432
24433     netbsd*)
24434       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24435         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24436         wlarc=
24437       else
24438         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24439         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24440       fi
24441       ;;
24442
24443     solaris*)
24444       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24445         ld_shlibs_GCJ=no
24446         cat <<EOF 1>&2
24447
24448 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24449 *** create shared libraries on Solaris systems.  Therefore, libtool
24450 *** is disabling shared libraries support.  We urge you to upgrade GNU
24451 *** binutils to release 2.9.1 or newer.  Another option is to modify
24452 *** your PATH or compiler configuration so that the native linker is
24453 *** used, and then restart.
24454
24455 EOF
24456       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24457         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24458         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24459       else
24460         ld_shlibs_GCJ=no
24461       fi
24462       ;;
24463
24464     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24465       case `$LD -v 2>&1` in
24466         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24467         ld_shlibs_GCJ=no
24468         cat <<_LT_EOF 1>&2
24469
24470 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24471 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24472 *** is disabling shared libraries support.  We urge you to upgrade GNU
24473 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24474 *** your PATH or compiler configuration so that the native linker is
24475 *** used, and then restart.
24476
24477 _LT_EOF
24478         ;;
24479         *)
24480           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24481             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24482             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24483             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24484           else
24485             ld_shlibs_GCJ=no
24486           fi
24487         ;;
24488       esac
24489       ;;
24490
24491     sunos4*)
24492       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24493       wlarc=
24494       hardcode_direct_GCJ=yes
24495       hardcode_shlibpath_var_GCJ=no
24496       ;;
24497
24498     *)
24499       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24500         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24501         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24502       else
24503         ld_shlibs_GCJ=no
24504       fi
24505       ;;
24506     esac
24507
24508     if test "$ld_shlibs_GCJ" = no; then
24509       runpath_var=
24510       hardcode_libdir_flag_spec_GCJ=
24511       export_dynamic_flag_spec_GCJ=
24512       whole_archive_flag_spec_GCJ=
24513     fi
24514   else
24515     # PORTME fill in a description of your system's linker (not GNU ld)
24516     case $host_os in
24517     aix3*)
24518       allow_undefined_flag_GCJ=unsupported
24519       always_export_symbols_GCJ=yes
24520       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'
24521       # Note: this linker hardcodes the directories in LIBPATH if there
24522       # are no directories specified by -L.
24523       hardcode_minus_L_GCJ=yes
24524       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24525         # Neither direct hardcoding nor static linking is supported with a
24526         # broken collect2.
24527         hardcode_direct_GCJ=unsupported
24528       fi
24529       ;;
24530
24531     aix4* | aix5*)
24532       if test "$host_cpu" = ia64; then
24533         # On IA64, the linker does run time linking by default, so we don't
24534         # have to do anything special.
24535         aix_use_runtimelinking=no
24536         exp_sym_flag='-Bexport'
24537         no_entry_flag=""
24538       else
24539         # If we're using GNU nm, then we don't want the "-C" option.
24540         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24541         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24542           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'
24543         else
24544           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'
24545         fi
24546         aix_use_runtimelinking=no
24547
24548         # Test if we are trying to use run time linking or normal
24549         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24550         # need to do runtime linking.
24551         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24552           for ld_flag in $LDFLAGS; do
24553           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24554             aix_use_runtimelinking=yes
24555             break
24556           fi
24557           done
24558           ;;
24559         esac
24560
24561         exp_sym_flag='-bexport'
24562         no_entry_flag='-bnoentry'
24563       fi
24564
24565       # When large executables or shared objects are built, AIX ld can
24566       # have problems creating the table of contents.  If linking a library
24567       # or program results in "error TOC overflow" add -mminimal-toc to
24568       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24569       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24570
24571       archive_cmds_GCJ=''
24572       hardcode_direct_GCJ=yes
24573       hardcode_libdir_separator_GCJ=':'
24574       link_all_deplibs_GCJ=yes
24575
24576       if test "$GCC" = yes; then
24577         case $host_os in aix4.[012]|aix4.[012].*)
24578         # We only want to do this on AIX 4.2 and lower, the check
24579         # below for broken collect2 doesn't work under 4.3+
24580           collect2name=`${CC} -print-prog-name=collect2`
24581           if test -f "$collect2name" && \
24582            strings "$collect2name" | grep resolve_lib_name >/dev/null
24583           then
24584           # We have reworked collect2
24585           hardcode_direct_GCJ=yes
24586           else
24587           # We have old collect2
24588           hardcode_direct_GCJ=unsupported
24589           # It fails to find uninstalled libraries when the uninstalled
24590           # path is not listed in the libpath.  Setting hardcode_minus_L
24591           # to unsupported forces relinking
24592           hardcode_minus_L_GCJ=yes
24593           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24594           hardcode_libdir_separator_GCJ=
24595           fi
24596           ;;
24597         esac
24598         shared_flag='-shared'
24599         if test "$aix_use_runtimelinking" = yes; then
24600           shared_flag="$shared_flag "'${wl}-G'
24601         fi
24602       else
24603         # not using gcc
24604         if test "$host_cpu" = ia64; then
24605         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24606         # chokes on -Wl,-G. The following line is correct:
24607           shared_flag='-G'
24608         else
24609           if test "$aix_use_runtimelinking" = yes; then
24610             shared_flag='${wl}-G'
24611           else
24612             shared_flag='${wl}-bM:SRE'
24613           fi
24614         fi
24615       fi
24616
24617       # It seems that -bexpall does not export symbols beginning with
24618       # underscore (_), so it is better to generate a list of symbols to export.
24619       always_export_symbols_GCJ=yes
24620       if test "$aix_use_runtimelinking" = yes; then
24621         # Warning - without using the other runtime loading flags (-brtl),
24622         # -berok will link without error, but may produce a broken library.
24623         allow_undefined_flag_GCJ='-berok'
24624        # Determine the default libpath from the value encoded in an empty executable.
24625        cat >conftest.$ac_ext <<_ACEOF
24626 /* confdefs.h.  */
24627 _ACEOF
24628 cat confdefs.h >>conftest.$ac_ext
24629 cat >>conftest.$ac_ext <<_ACEOF
24630 /* end confdefs.h.  */
24631
24632 int
24633 main ()
24634 {
24635
24636   ;
24637   return 0;
24638 }
24639 _ACEOF
24640 rm -f conftest.$ac_objext conftest$ac_exeext
24641 if { (ac_try="$ac_link"
24642 case "(($ac_try" in
24643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24644   *) ac_try_echo=$ac_try;;
24645 esac
24646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24647   (eval "$ac_link") 2>conftest.er1
24648   ac_status=$?
24649   grep -v '^ *+' conftest.er1 >conftest.err
24650   rm -f conftest.er1
24651   cat conftest.err >&5
24652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653   (exit $ac_status); } &&
24654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24655   { (case "(($ac_try" in
24656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24657   *) ac_try_echo=$ac_try;;
24658 esac
24659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24660   (eval "$ac_try") 2>&5
24661   ac_status=$?
24662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663   (exit $ac_status); }; } &&
24664          { ac_try='test -s conftest$ac_exeext'
24665   { (case "(($ac_try" in
24666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667   *) ac_try_echo=$ac_try;;
24668 esac
24669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670   (eval "$ac_try") 2>&5
24671   ac_status=$?
24672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673   (exit $ac_status); }; }; then
24674
24675 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24676 }'`
24677 # Check for a 64-bit object if we didn't find anything.
24678 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; }
24679 }'`; fi
24680 else
24681   echo "$as_me: failed program was:" >&5
24682 sed 's/^/| /' conftest.$ac_ext >&5
24683
24684
24685 fi
24686
24687 rm -f core conftest.err conftest.$ac_objext \
24688       conftest$ac_exeext conftest.$ac_ext
24689 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24690
24691        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24692         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"
24693        else
24694         if test "$host_cpu" = ia64; then
24695           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24696           allow_undefined_flag_GCJ="-z nodefs"
24697           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"
24698         else
24699          # Determine the default libpath from the value encoded in an empty executable.
24700          cat >conftest.$ac_ext <<_ACEOF
24701 /* confdefs.h.  */
24702 _ACEOF
24703 cat confdefs.h >>conftest.$ac_ext
24704 cat >>conftest.$ac_ext <<_ACEOF
24705 /* end confdefs.h.  */
24706
24707 int
24708 main ()
24709 {
24710
24711   ;
24712   return 0;
24713 }
24714 _ACEOF
24715 rm -f conftest.$ac_objext conftest$ac_exeext
24716 if { (ac_try="$ac_link"
24717 case "(($ac_try" in
24718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24719   *) ac_try_echo=$ac_try;;
24720 esac
24721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24722   (eval "$ac_link") 2>conftest.er1
24723   ac_status=$?
24724   grep -v '^ *+' conftest.er1 >conftest.err
24725   rm -f conftest.er1
24726   cat conftest.err >&5
24727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728   (exit $ac_status); } &&
24729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24730   { (case "(($ac_try" in
24731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24732   *) ac_try_echo=$ac_try;;
24733 esac
24734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24735   (eval "$ac_try") 2>&5
24736   ac_status=$?
24737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738   (exit $ac_status); }; } &&
24739          { ac_try='test -s conftest$ac_exeext'
24740   { (case "(($ac_try" in
24741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24742   *) ac_try_echo=$ac_try;;
24743 esac
24744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24745   (eval "$ac_try") 2>&5
24746   ac_status=$?
24747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748   (exit $ac_status); }; }; then
24749
24750 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24751 }'`
24752 # Check for a 64-bit object if we didn't find anything.
24753 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; }
24754 }'`; fi
24755 else
24756   echo "$as_me: failed program was:" >&5
24757 sed 's/^/| /' conftest.$ac_ext >&5
24758
24759
24760 fi
24761
24762 rm -f core conftest.err conftest.$ac_objext \
24763       conftest$ac_exeext conftest.$ac_ext
24764 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24765
24766          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24767           # Warning - without using the other run time loading flags,
24768           # -berok will link without error, but may produce a broken library.
24769           no_undefined_flag_GCJ=' ${wl}-bernotok'
24770           allow_undefined_flag_GCJ=' ${wl}-berok'
24771           # Exported symbols can be pulled into shared objects from archives
24772           whole_archive_flag_spec_GCJ='$convenience'
24773           archive_cmds_need_lc_GCJ=yes
24774           # This is similar to how AIX traditionally builds its shared libraries.
24775           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'
24776         fi
24777       fi
24778       ;;
24779
24780     amigaos*)
24781       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)'
24782       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24783       hardcode_minus_L_GCJ=yes
24784       # see comment about different semantics on the GNU ld section
24785       ld_shlibs_GCJ=no
24786       ;;
24787
24788     bsdi[45]*)
24789       export_dynamic_flag_spec_GCJ=-rdynamic
24790       ;;
24791
24792     cygwin* | mingw* | pw32*)
24793       # When not using gcc, we currently assume that we are using
24794       # Microsoft Visual C++.
24795       # hardcode_libdir_flag_spec is actually meaningless, as there is
24796       # no search path for DLLs.
24797       hardcode_libdir_flag_spec_GCJ=' '
24798       allow_undefined_flag_GCJ=unsupported
24799       # Tell ltmain to make .lib files, not .a files.
24800       libext=lib
24801       # Tell ltmain to make .dll files, not .so files.
24802       shrext_cmds=".dll"
24803       # FIXME: Setting linknames here is a bad hack.
24804       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24805       # The linker will automatically build a .lib file if we build a DLL.
24806       old_archive_From_new_cmds_GCJ='true'
24807       # FIXME: Should let the user specify the lib program.
24808       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24809       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24810       enable_shared_with_static_runtimes_GCJ=yes
24811       ;;
24812
24813     darwin* | rhapsody*)
24814       case $host_os in
24815         rhapsody* | darwin1.[012])
24816          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24817          ;;
24818        *) # Darwin 1.3 on
24819          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24820            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24821          else
24822            case ${MACOSX_DEPLOYMENT_TARGET} in
24823              10.[012])
24824                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24825                ;;
24826              10.*)
24827                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24828                ;;
24829            esac
24830          fi
24831          ;;
24832       esac
24833       archive_cmds_need_lc_GCJ=no
24834       hardcode_direct_GCJ=no
24835       hardcode_automatic_GCJ=yes
24836       hardcode_shlibpath_var_GCJ=unsupported
24837       whole_archive_flag_spec_GCJ=''
24838       link_all_deplibs_GCJ=yes
24839     if test "$GCC" = yes ; then
24840         output_verbose_link_cmd='echo'
24841         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24842       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24843       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24844       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}'
24845       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}'
24846     else
24847       case $cc_basename in
24848         xlc*)
24849          output_verbose_link_cmd='echo'
24850          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24851          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24852           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24853          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}'
24854           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}'
24855           ;;
24856        *)
24857          ld_shlibs_GCJ=no
24858           ;;
24859       esac
24860     fi
24861       ;;
24862
24863     dgux*)
24864       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24865       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24866       hardcode_shlibpath_var_GCJ=no
24867       ;;
24868
24869     freebsd1*)
24870       ld_shlibs_GCJ=no
24871       ;;
24872
24873     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24874     # support.  Future versions do this automatically, but an explicit c++rt0.o
24875     # does not break anything, and helps significantly (at the cost of a little
24876     # extra space).
24877     freebsd2.2*)
24878       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24879       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24880       hardcode_direct_GCJ=yes
24881       hardcode_shlibpath_var_GCJ=no
24882       ;;
24883
24884     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24885     freebsd2*)
24886       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24887       hardcode_direct_GCJ=yes
24888       hardcode_minus_L_GCJ=yes
24889       hardcode_shlibpath_var_GCJ=no
24890       ;;
24891
24892     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24893     freebsd* | kfreebsd*-gnu | dragonfly*)
24894       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24895       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24896       hardcode_direct_GCJ=yes
24897       hardcode_shlibpath_var_GCJ=no
24898       ;;
24899
24900     hpux9*)
24901       if test "$GCC" = yes; then
24902         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'
24903       else
24904         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'
24905       fi
24906       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24907       hardcode_libdir_separator_GCJ=:
24908       hardcode_direct_GCJ=yes
24909
24910       # hardcode_minus_L: Not really in the search PATH,
24911       # but as the default location of the library.
24912       hardcode_minus_L_GCJ=yes
24913       export_dynamic_flag_spec_GCJ='${wl}-E'
24914       ;;
24915
24916     hpux10*)
24917       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24918         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24919       else
24920         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24921       fi
24922       if test "$with_gnu_ld" = no; then
24923         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24924         hardcode_libdir_separator_GCJ=:
24925
24926         hardcode_direct_GCJ=yes
24927         export_dynamic_flag_spec_GCJ='${wl}-E'
24928
24929         # hardcode_minus_L: Not really in the search PATH,
24930         # but as the default location of the library.
24931         hardcode_minus_L_GCJ=yes
24932       fi
24933       ;;
24934
24935     hpux11*)
24936       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24937         case $host_cpu in
24938         hppa*64*)
24939           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24940           ;;
24941         ia64*)
24942           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24943           ;;
24944         *)
24945           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24946           ;;
24947         esac
24948       else
24949         case $host_cpu in
24950         hppa*64*)
24951           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24952           ;;
24953         ia64*)
24954           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24955           ;;
24956         *)
24957           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24958           ;;
24959         esac
24960       fi
24961       if test "$with_gnu_ld" = no; then
24962         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24963         hardcode_libdir_separator_GCJ=:
24964
24965         case $host_cpu in
24966         hppa*64*|ia64*)
24967           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24968           hardcode_direct_GCJ=no
24969           hardcode_shlibpath_var_GCJ=no
24970           ;;
24971         *)
24972           hardcode_direct_GCJ=yes
24973           export_dynamic_flag_spec_GCJ='${wl}-E'
24974
24975           # hardcode_minus_L: Not really in the search PATH,
24976           # but as the default location of the library.
24977           hardcode_minus_L_GCJ=yes
24978           ;;
24979         esac
24980       fi
24981       ;;
24982
24983     irix5* | irix6* | nonstopux*)
24984       if test "$GCC" = yes; then
24985         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'
24986       else
24987         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'
24988         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24989       fi
24990       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24991       hardcode_libdir_separator_GCJ=:
24992       link_all_deplibs_GCJ=yes
24993       ;;
24994
24995     netbsd*)
24996       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24997         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24998       else
24999         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25000       fi
25001       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25002       hardcode_direct_GCJ=yes
25003       hardcode_shlibpath_var_GCJ=no
25004       ;;
25005
25006     newsos6)
25007       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25008       hardcode_direct_GCJ=yes
25009       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25010       hardcode_libdir_separator_GCJ=:
25011       hardcode_shlibpath_var_GCJ=no
25012       ;;
25013
25014     openbsd*)
25015       hardcode_direct_GCJ=yes
25016       hardcode_shlibpath_var_GCJ=no
25017       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25018         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25019         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25020         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25021         export_dynamic_flag_spec_GCJ='${wl}-E'
25022       else
25023        case $host_os in
25024          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25025            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25026            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25027            ;;
25028          *)
25029            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25030            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25031            ;;
25032        esac
25033       fi
25034       ;;
25035
25036     os2*)
25037       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25038       hardcode_minus_L_GCJ=yes
25039       allow_undefined_flag_GCJ=unsupported
25040       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'
25041       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25042       ;;
25043
25044     osf3*)
25045       if test "$GCC" = yes; then
25046         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25047         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'
25048       else
25049         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25050         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'
25051       fi
25052       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25053       hardcode_libdir_separator_GCJ=:
25054       ;;
25055
25056     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25057       if test "$GCC" = yes; then
25058         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25059         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'
25060         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25061       else
25062         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25063         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'
25064         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~
25065         $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'
25066
25067         # Both c and cxx compiler support -rpath directly
25068         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25069       fi
25070       hardcode_libdir_separator_GCJ=:
25071       ;;
25072
25073     solaris*)
25074       no_undefined_flag_GCJ=' -z text'
25075       if test "$GCC" = yes; then
25076         wlarc='${wl}'
25077         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25078         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25079           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25080       else
25081         wlarc=''
25082         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25083         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25084         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25085       fi
25086       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25087       hardcode_shlibpath_var_GCJ=no
25088       case $host_os in
25089       solaris2.[0-5] | solaris2.[0-5].*) ;;
25090       *)
25091         # The compiler driver will combine linker options so we
25092         # cannot just pass the convience library names through
25093         # without $wl, iff we do not link with $LD.
25094         # Luckily, gcc supports the same syntax we need for Sun Studio.
25095         # Supported since Solaris 2.6 (maybe 2.5.1?)
25096         case $wlarc in
25097         '')
25098           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25099         *)
25100           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' ;;
25101         esac ;;
25102       esac
25103       link_all_deplibs_GCJ=yes
25104       ;;
25105
25106     sunos4*)
25107       if test "x$host_vendor" = xsequent; then
25108         # Use $CC to link under sequent, because it throws in some extra .o
25109         # files that make .init and .fini sections work.
25110         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25111       else
25112         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25113       fi
25114       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25115       hardcode_direct_GCJ=yes
25116       hardcode_minus_L_GCJ=yes
25117       hardcode_shlibpath_var_GCJ=no
25118       ;;
25119
25120     sysv4)
25121       case $host_vendor in
25122         sni)
25123           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25124           hardcode_direct_GCJ=yes # is this really true???
25125         ;;
25126         siemens)
25127           ## LD is ld it makes a PLAMLIB
25128           ## CC just makes a GrossModule.
25129           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25130           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25131           hardcode_direct_GCJ=no
25132         ;;
25133         motorola)
25134           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25135           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25136         ;;
25137       esac
25138       runpath_var='LD_RUN_PATH'
25139       hardcode_shlibpath_var_GCJ=no
25140       ;;
25141
25142     sysv4.3*)
25143       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25144       hardcode_shlibpath_var_GCJ=no
25145       export_dynamic_flag_spec_GCJ='-Bexport'
25146       ;;
25147
25148     sysv4*MP*)
25149       if test -d /usr/nec; then
25150         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25151         hardcode_shlibpath_var_GCJ=no
25152         runpath_var=LD_RUN_PATH
25153         hardcode_runpath_var=yes
25154         ld_shlibs_GCJ=yes
25155       fi
25156       ;;
25157
25158     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25159       no_undefined_flag_GCJ='${wl}-z,text'
25160       archive_cmds_need_lc_GCJ=no
25161       hardcode_shlibpath_var_GCJ=no
25162       runpath_var='LD_RUN_PATH'
25163
25164       if test "$GCC" = yes; then
25165         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25166         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25167       else
25168         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25169         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25170       fi
25171       ;;
25172
25173     sysv5* | sco3.2v5* | sco5v6*)
25174       # Note: We can NOT use -z defs as we might desire, because we do not
25175       # link with -lc, and that would cause any symbols used from libc to
25176       # always be unresolved, which means just about no library would
25177       # ever link correctly.  If we're not using GNU ld we use -z text
25178       # though, which does catch some bad symbols but isn't as heavy-handed
25179       # as -z defs.
25180       no_undefined_flag_GCJ='${wl}-z,text'
25181       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25182       archive_cmds_need_lc_GCJ=no
25183       hardcode_shlibpath_var_GCJ=no
25184       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25185       hardcode_libdir_separator_GCJ=':'
25186       link_all_deplibs_GCJ=yes
25187       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25188       runpath_var='LD_RUN_PATH'
25189
25190       if test "$GCC" = yes; then
25191         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25192         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25193       else
25194         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25195         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25196       fi
25197       ;;
25198
25199     uts4*)
25200       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25201       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25202       hardcode_shlibpath_var_GCJ=no
25203       ;;
25204
25205     *)
25206       ld_shlibs_GCJ=no
25207       ;;
25208     esac
25209   fi
25210
25211 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25212 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25213 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25214
25215 #
25216 # Do we need to explicitly link libc?
25217 #
25218 case "x$archive_cmds_need_lc_GCJ" in
25219 x|xyes)
25220   # Assume -lc should be added
25221   archive_cmds_need_lc_GCJ=yes
25222
25223   if test "$enable_shared" = yes && test "$GCC" = yes; then
25224     case $archive_cmds_GCJ in
25225     *'~'*)
25226       # FIXME: we may have to deal with multi-command sequences.
25227       ;;
25228     '$CC '*)
25229       # Test whether the compiler implicitly links with -lc since on some
25230       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25231       # to ld, don't add -lc before -lgcc.
25232       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25233 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25234       $rm conftest*
25235       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25236
25237       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25238   (eval $ac_compile) 2>&5
25239   ac_status=$?
25240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241   (exit $ac_status); } 2>conftest.err; then
25242         soname=conftest
25243         lib=conftest
25244         libobjs=conftest.$ac_objext
25245         deplibs=
25246         wl=$lt_prog_compiler_wl_GCJ
25247         pic_flag=$lt_prog_compiler_pic_GCJ
25248         compiler_flags=-v
25249         linker_flags=-v
25250         verstring=
25251         output_objdir=.
25252         libname=conftest
25253         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25254         allow_undefined_flag_GCJ=
25255         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25256   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25257   ac_status=$?
25258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259   (exit $ac_status); }
25260         then
25261           archive_cmds_need_lc_GCJ=no
25262         else
25263           archive_cmds_need_lc_GCJ=yes
25264         fi
25265         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25266       else
25267         cat conftest.err 1>&5
25268       fi
25269       $rm conftest*
25270       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25271 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25272       ;;
25273     esac
25274   fi
25275   ;;
25276 esac
25277
25278 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25279 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25280 library_names_spec=
25281 libname_spec='lib$name'
25282 soname_spec=
25283 shrext_cmds=".so"
25284 postinstall_cmds=
25285 postuninstall_cmds=
25286 finish_cmds=
25287 finish_eval=
25288 shlibpath_var=
25289 shlibpath_overrides_runpath=unknown
25290 version_type=none
25291 dynamic_linker="$host_os ld.so"
25292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25293 if test "$GCC" = yes; then
25294   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25295   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25296     # if the path contains ";" then we assume it to be the separator
25297     # otherwise default to the standard path separator (i.e. ":") - it is
25298     # assumed that no part of a normal pathname contains ";" but that should
25299     # okay in the real world where ";" in dirpaths is itself problematic.
25300     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25301   else
25302     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25303   fi
25304 else
25305   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25306 fi
25307 need_lib_prefix=unknown
25308 hardcode_into_libs=no
25309
25310 # when you set need_version to no, make sure it does not cause -set_version
25311 # flags to be left without arguments
25312 need_version=unknown
25313
25314 case $host_os in
25315 aix3*)
25316   version_type=linux
25317   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25318   shlibpath_var=LIBPATH
25319
25320   # AIX 3 has no versioning support, so we append a major version to the name.
25321   soname_spec='${libname}${release}${shared_ext}$major'
25322   ;;
25323
25324 aix4* | aix5*)
25325   version_type=linux
25326   need_lib_prefix=no
25327   need_version=no
25328   hardcode_into_libs=yes
25329   if test "$host_cpu" = ia64; then
25330     # AIX 5 supports IA64
25331     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25332     shlibpath_var=LD_LIBRARY_PATH
25333   else
25334     # With GCC up to 2.95.x, collect2 would create an import file
25335     # for dependence libraries.  The import file would start with
25336     # the line `#! .'.  This would cause the generated library to
25337     # depend on `.', always an invalid library.  This was fixed in
25338     # development snapshots of GCC prior to 3.0.
25339     case $host_os in
25340       aix4 | aix4.[01] | aix4.[01].*)
25341       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25342            echo ' yes '
25343            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25344         :
25345       else
25346         can_build_shared=no
25347       fi
25348       ;;
25349     esac
25350     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25351     # soname into executable. Probably we can add versioning support to
25352     # collect2, so additional links can be useful in future.
25353     if test "$aix_use_runtimelinking" = yes; then
25354       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25355       # instead of lib<name>.a to let people know that these are not
25356       # typical AIX shared libraries.
25357       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25358     else
25359       # We preserve .a as extension for shared libraries through AIX4.2
25360       # and later when we are not doing run time linking.
25361       library_names_spec='${libname}${release}.a $libname.a'
25362       soname_spec='${libname}${release}${shared_ext}$major'
25363     fi
25364     shlibpath_var=LIBPATH
25365   fi
25366   ;;
25367
25368 amigaos*)
25369   library_names_spec='$libname.ixlibrary $libname.a'
25370   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25371   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'
25372   ;;
25373
25374 beos*)
25375   library_names_spec='${libname}${shared_ext}'
25376   dynamic_linker="$host_os ld.so"
25377   shlibpath_var=LIBRARY_PATH
25378   ;;
25379
25380 bsdi[45]*)
25381   version_type=linux
25382   need_version=no
25383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25384   soname_spec='${libname}${release}${shared_ext}$major'
25385   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25386   shlibpath_var=LD_LIBRARY_PATH
25387   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25388   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25389   # the default ld.so.conf also contains /usr/contrib/lib and
25390   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25391   # libtool to hard-code these into programs
25392   ;;
25393
25394 cygwin* | mingw* | pw32*)
25395   version_type=windows
25396   shrext_cmds=".dll"
25397   need_version=no
25398   need_lib_prefix=no
25399
25400   case $GCC,$host_os in
25401   yes,cygwin* | yes,mingw* | yes,pw32*)
25402     library_names_spec='$libname.dll.a'
25403     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25404     postinstall_cmds='base_file=`basename \${file}`~
25405       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25406       dldir=$destdir/`dirname \$dlpath`~
25407       test -d \$dldir || mkdir -p \$dldir~
25408       $install_prog $dir/$dlname \$dldir/$dlname~
25409       chmod a+x \$dldir/$dlname'
25410     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25411       dlpath=$dir/\$dldll~
25412        $rm \$dlpath'
25413     shlibpath_overrides_runpath=yes
25414
25415     case $host_os in
25416     cygwin*)
25417       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25418       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25419       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25420       ;;
25421     mingw*)
25422       # MinGW DLLs use traditional 'lib' prefix
25423       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25424       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25425       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25426         # It is most probably a Windows format PATH printed by
25427         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25428         # path with ; separators, and with drive letters. We can handle the
25429         # drive letters (cygwin fileutils understands them), so leave them,
25430         # especially as we might pass files found there to a mingw objdump,
25431         # which wouldn't understand a cygwinified path. Ahh.
25432         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25433       else
25434         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25435       fi
25436       ;;
25437     pw32*)
25438       # pw32 DLLs use 'pw' prefix rather than 'lib'
25439       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25440       ;;
25441     esac
25442     ;;
25443
25444   *)
25445     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25446     ;;
25447   esac
25448   dynamic_linker='Win32 ld.exe'
25449   # FIXME: first we should search . and the directory the executable is in
25450   shlibpath_var=PATH
25451   ;;
25452
25453 darwin* | rhapsody*)
25454   dynamic_linker="$host_os dyld"
25455   version_type=darwin
25456   need_lib_prefix=no
25457   need_version=no
25458   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25459   soname_spec='${libname}${release}${major}$shared_ext'
25460   shlibpath_overrides_runpath=yes
25461   shlibpath_var=DYLD_LIBRARY_PATH
25462   shrext_cmds='.dylib'
25463   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25464   if test "$GCC" = yes; then
25465     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"`
25466   else
25467     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25468   fi
25469   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25470   ;;
25471
25472 dgux*)
25473   version_type=linux
25474   need_lib_prefix=no
25475   need_version=no
25476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25477   soname_spec='${libname}${release}${shared_ext}$major'
25478   shlibpath_var=LD_LIBRARY_PATH
25479   ;;
25480
25481 freebsd1*)
25482   dynamic_linker=no
25483   ;;
25484
25485 kfreebsd*-gnu)
25486   version_type=linux
25487   need_lib_prefix=no
25488   need_version=no
25489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25490   soname_spec='${libname}${release}${shared_ext}$major'
25491   shlibpath_var=LD_LIBRARY_PATH
25492   shlibpath_overrides_runpath=no
25493   hardcode_into_libs=yes
25494   dynamic_linker='GNU ld.so'
25495   ;;
25496
25497 freebsd* | dragonfly*)
25498   # DragonFly does not have aout.  When/if they implement a new
25499   # versioning mechanism, adjust this.
25500   if test -x /usr/bin/objformat; then
25501     objformat=`/usr/bin/objformat`
25502   else
25503     case $host_os in
25504     freebsd[123]*) objformat=aout ;;
25505     *) objformat=elf ;;
25506     esac
25507   fi
25508   version_type=freebsd-$objformat
25509   case $version_type in
25510     freebsd-elf*)
25511       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25512       need_version=no
25513       need_lib_prefix=no
25514       ;;
25515     freebsd-*)
25516       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25517       need_version=yes
25518       ;;
25519   esac
25520   shlibpath_var=LD_LIBRARY_PATH
25521   case $host_os in
25522   freebsd2*)
25523     shlibpath_overrides_runpath=yes
25524     ;;
25525   freebsd3.[01]* | freebsdelf3.[01]*)
25526     shlibpath_overrides_runpath=yes
25527     hardcode_into_libs=yes
25528     ;;
25529   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25530   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25531     shlibpath_overrides_runpath=no
25532     hardcode_into_libs=yes
25533     ;;
25534   freebsd*) # from 4.6 on
25535     shlibpath_overrides_runpath=yes
25536     hardcode_into_libs=yes
25537     ;;
25538   esac
25539   ;;
25540
25541 gnu*)
25542   version_type=linux
25543   need_lib_prefix=no
25544   need_version=no
25545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25546   soname_spec='${libname}${release}${shared_ext}$major'
25547   shlibpath_var=LD_LIBRARY_PATH
25548   hardcode_into_libs=yes
25549   ;;
25550
25551 hpux9* | hpux10* | hpux11*)
25552   # Give a soname corresponding to the major version so that dld.sl refuses to
25553   # link against other versions.
25554   version_type=sunos
25555   need_lib_prefix=no
25556   need_version=no
25557   case $host_cpu in
25558   ia64*)
25559     shrext_cmds='.so'
25560     hardcode_into_libs=yes
25561     dynamic_linker="$host_os dld.so"
25562     shlibpath_var=LD_LIBRARY_PATH
25563     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25564     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25565     soname_spec='${libname}${release}${shared_ext}$major'
25566     if test "X$HPUX_IA64_MODE" = X32; then
25567       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25568     else
25569       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25570     fi
25571     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25572     ;;
25573    hppa*64*)
25574      shrext_cmds='.sl'
25575      hardcode_into_libs=yes
25576      dynamic_linker="$host_os dld.sl"
25577      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25578      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25579      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25580      soname_spec='${libname}${release}${shared_ext}$major'
25581      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25582      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25583      ;;
25584    *)
25585     shrext_cmds='.sl'
25586     dynamic_linker="$host_os dld.sl"
25587     shlibpath_var=SHLIB_PATH
25588     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25589     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25590     soname_spec='${libname}${release}${shared_ext}$major'
25591     ;;
25592   esac
25593   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25594   postinstall_cmds='chmod 555 $lib'
25595   ;;
25596
25597 interix3*)
25598   version_type=linux
25599   need_lib_prefix=no
25600   need_version=no
25601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25602   soname_spec='${libname}${release}${shared_ext}$major'
25603   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25604   shlibpath_var=LD_LIBRARY_PATH
25605   shlibpath_overrides_runpath=no
25606   hardcode_into_libs=yes
25607   ;;
25608
25609 irix5* | irix6* | nonstopux*)
25610   case $host_os in
25611     nonstopux*) version_type=nonstopux ;;
25612     *)
25613         if test "$lt_cv_prog_gnu_ld" = yes; then
25614                 version_type=linux
25615         else
25616                 version_type=irix
25617         fi ;;
25618   esac
25619   need_lib_prefix=no
25620   need_version=no
25621   soname_spec='${libname}${release}${shared_ext}$major'
25622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25623   case $host_os in
25624   irix5* | nonstopux*)
25625     libsuff= shlibsuff=
25626     ;;
25627   *)
25628     case $LD in # libtool.m4 will add one of these switches to LD
25629     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25630       libsuff= shlibsuff= libmagic=32-bit;;
25631     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25632       libsuff=32 shlibsuff=N32 libmagic=N32;;
25633     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25634       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25635     *) libsuff= shlibsuff= libmagic=never-match;;
25636     esac
25637     ;;
25638   esac
25639   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25640   shlibpath_overrides_runpath=no
25641   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25642   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25643   hardcode_into_libs=yes
25644   ;;
25645
25646 # No shared lib support for Linux oldld, aout, or coff.
25647 linux*oldld* | linux*aout* | linux*coff*)
25648   dynamic_linker=no
25649   ;;
25650
25651 # This must be Linux ELF.
25652 linux*)
25653   version_type=linux
25654   need_lib_prefix=no
25655   need_version=no
25656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25657   soname_spec='${libname}${release}${shared_ext}$major'
25658   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25659   shlibpath_var=LD_LIBRARY_PATH
25660   shlibpath_overrides_runpath=no
25661   # This implies no fast_install, which is unacceptable.
25662   # Some rework will be needed to allow for fast_install
25663   # before this can be enabled.
25664   hardcode_into_libs=yes
25665
25666   # Append ld.so.conf contents to the search path
25667   if test -f /etc/ld.so.conf; then
25668     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' ' '`
25669     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25670   fi
25671
25672   # We used to test for /lib/ld.so.1 and disable shared libraries on
25673   # powerpc, because MkLinux only supported shared libraries with the
25674   # GNU dynamic linker.  Since this was broken with cross compilers,
25675   # most powerpc-linux boxes support dynamic linking these days and
25676   # people can always --disable-shared, the test was removed, and we
25677   # assume the GNU/Linux dynamic linker is in use.
25678   dynamic_linker='GNU/Linux ld.so'
25679   ;;
25680
25681 knetbsd*-gnu)
25682   version_type=linux
25683   need_lib_prefix=no
25684   need_version=no
25685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25686   soname_spec='${libname}${release}${shared_ext}$major'
25687   shlibpath_var=LD_LIBRARY_PATH
25688   shlibpath_overrides_runpath=no
25689   hardcode_into_libs=yes
25690   dynamic_linker='GNU ld.so'
25691   ;;
25692
25693 netbsd*)
25694   version_type=sunos
25695   need_lib_prefix=no
25696   need_version=no
25697   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25698     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25699     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25700     dynamic_linker='NetBSD (a.out) ld.so'
25701   else
25702     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25703     soname_spec='${libname}${release}${shared_ext}$major'
25704     dynamic_linker='NetBSD ld.elf_so'
25705   fi
25706   shlibpath_var=LD_LIBRARY_PATH
25707   shlibpath_overrides_runpath=yes
25708   hardcode_into_libs=yes
25709   ;;
25710
25711 newsos6)
25712   version_type=linux
25713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25714   shlibpath_var=LD_LIBRARY_PATH
25715   shlibpath_overrides_runpath=yes
25716   ;;
25717
25718 nto-qnx*)
25719   version_type=linux
25720   need_lib_prefix=no
25721   need_version=no
25722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25723   soname_spec='${libname}${release}${shared_ext}$major'
25724   shlibpath_var=LD_LIBRARY_PATH
25725   shlibpath_overrides_runpath=yes
25726   ;;
25727
25728 openbsd*)
25729   version_type=sunos
25730   sys_lib_dlsearch_path_spec="/usr/lib"
25731   need_lib_prefix=no
25732   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25733   case $host_os in
25734     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25735     *)                         need_version=no  ;;
25736   esac
25737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25738   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25739   shlibpath_var=LD_LIBRARY_PATH
25740   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25741     case $host_os in
25742       openbsd2.[89] | openbsd2.[89].*)
25743         shlibpath_overrides_runpath=no
25744         ;;
25745       *)
25746         shlibpath_overrides_runpath=yes
25747         ;;
25748       esac
25749   else
25750     shlibpath_overrides_runpath=yes
25751   fi
25752   ;;
25753
25754 os2*)
25755   libname_spec='$name'
25756   shrext_cmds=".dll"
25757   need_lib_prefix=no
25758   library_names_spec='$libname${shared_ext} $libname.a'
25759   dynamic_linker='OS/2 ld.exe'
25760   shlibpath_var=LIBPATH
25761   ;;
25762
25763 osf3* | osf4* | osf5*)
25764   version_type=osf
25765   need_lib_prefix=no
25766   need_version=no
25767   soname_spec='${libname}${release}${shared_ext}$major'
25768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25769   shlibpath_var=LD_LIBRARY_PATH
25770   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25771   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25772   ;;
25773
25774 solaris*)
25775   version_type=linux
25776   need_lib_prefix=no
25777   need_version=no
25778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25779   soname_spec='${libname}${release}${shared_ext}$major'
25780   shlibpath_var=LD_LIBRARY_PATH
25781   shlibpath_overrides_runpath=yes
25782   hardcode_into_libs=yes
25783   # ldd complains unless libraries are executable
25784   postinstall_cmds='chmod +x $lib'
25785   ;;
25786
25787 sunos4*)
25788   version_type=sunos
25789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25790   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25791   shlibpath_var=LD_LIBRARY_PATH
25792   shlibpath_overrides_runpath=yes
25793   if test "$with_gnu_ld" = yes; then
25794     need_lib_prefix=no
25795   fi
25796   need_version=yes
25797   ;;
25798
25799 sysv4 | sysv4.3*)
25800   version_type=linux
25801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25802   soname_spec='${libname}${release}${shared_ext}$major'
25803   shlibpath_var=LD_LIBRARY_PATH
25804   case $host_vendor in
25805     sni)
25806       shlibpath_overrides_runpath=no
25807       need_lib_prefix=no
25808       export_dynamic_flag_spec='${wl}-Blargedynsym'
25809       runpath_var=LD_RUN_PATH
25810       ;;
25811     siemens)
25812       need_lib_prefix=no
25813       ;;
25814     motorola)
25815       need_lib_prefix=no
25816       need_version=no
25817       shlibpath_overrides_runpath=no
25818       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25819       ;;
25820   esac
25821   ;;
25822
25823 sysv4*MP*)
25824   if test -d /usr/nec ;then
25825     version_type=linux
25826     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25827     soname_spec='$libname${shared_ext}.$major'
25828     shlibpath_var=LD_LIBRARY_PATH
25829   fi
25830   ;;
25831
25832 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25833   version_type=freebsd-elf
25834   need_lib_prefix=no
25835   need_version=no
25836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25837   soname_spec='${libname}${release}${shared_ext}$major'
25838   shlibpath_var=LD_LIBRARY_PATH
25839   hardcode_into_libs=yes
25840   if test "$with_gnu_ld" = yes; then
25841     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25842     shlibpath_overrides_runpath=no
25843   else
25844     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25845     shlibpath_overrides_runpath=yes
25846     case $host_os in
25847       sco3.2v5*)
25848         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25849         ;;
25850     esac
25851   fi
25852   sys_lib_dlsearch_path_spec='/usr/lib'
25853   ;;
25854
25855 uts4*)
25856   version_type=linux
25857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25858   soname_spec='${libname}${release}${shared_ext}$major'
25859   shlibpath_var=LD_LIBRARY_PATH
25860   ;;
25861
25862 *)
25863   dynamic_linker=no
25864   ;;
25865 esac
25866 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25867 echo "${ECHO_T}$dynamic_linker" >&6; }
25868 test "$dynamic_linker" = no && can_build_shared=no
25869
25870 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25871 if test "$GCC" = yes; then
25872   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25873 fi
25874
25875 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25876 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25877 hardcode_action_GCJ=
25878 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25879    test -n "$runpath_var_GCJ" || \
25880    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25881
25882   # We can hardcode non-existant directories.
25883   if test "$hardcode_direct_GCJ" != no &&
25884      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25885      # have to relink, otherwise we might link with an installed library
25886      # when we should be linking with a yet-to-be-installed one
25887      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25888      test "$hardcode_minus_L_GCJ" != no; then
25889     # Linking always hardcodes the temporary library directory.
25890     hardcode_action_GCJ=relink
25891   else
25892     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25893     hardcode_action_GCJ=immediate
25894   fi
25895 else
25896   # We cannot hardcode anything, or else we can only hardcode existing
25897   # directories.
25898   hardcode_action_GCJ=unsupported
25899 fi
25900 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25901 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25902
25903 if test "$hardcode_action_GCJ" = relink; then
25904   # Fast installation is not supported
25905   enable_fast_install=no
25906 elif test "$shlibpath_overrides_runpath" = yes ||
25907      test "$enable_shared" = no; then
25908   # Fast installation is not necessary
25909   enable_fast_install=needless
25910 fi
25911
25912
25913 # The else clause should only fire when bootstrapping the
25914 # libtool distribution, otherwise you forgot to ship ltmain.sh
25915 # with your package, and you will get complaints that there are
25916 # no rules to generate ltmain.sh.
25917 if test -f "$ltmain"; then
25918   # See if we are running on zsh, and set the options which allow our commands through
25919   # without removal of \ escapes.
25920   if test -n "${ZSH_VERSION+set}" ; then
25921     setopt NO_GLOB_SUBST
25922   fi
25923   # Now quote all the things that may contain metacharacters while being
25924   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25925   # variables and quote the copies for generation of the libtool script.
25926   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25927     SED SHELL STRIP \
25928     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25929     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25930     deplibs_check_method reload_flag reload_cmds need_locks \
25931     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25932     lt_cv_sys_global_symbol_to_c_name_address \
25933     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25934     old_postinstall_cmds old_postuninstall_cmds \
25935     compiler_GCJ \
25936     CC_GCJ \
25937     LD_GCJ \
25938     lt_prog_compiler_wl_GCJ \
25939     lt_prog_compiler_pic_GCJ \
25940     lt_prog_compiler_static_GCJ \
25941     lt_prog_compiler_no_builtin_flag_GCJ \
25942     export_dynamic_flag_spec_GCJ \
25943     thread_safe_flag_spec_GCJ \
25944     whole_archive_flag_spec_GCJ \
25945     enable_shared_with_static_runtimes_GCJ \
25946     old_archive_cmds_GCJ \
25947     old_archive_from_new_cmds_GCJ \
25948     predep_objects_GCJ \
25949     postdep_objects_GCJ \
25950     predeps_GCJ \
25951     postdeps_GCJ \
25952     compiler_lib_search_path_GCJ \
25953     archive_cmds_GCJ \
25954     archive_expsym_cmds_GCJ \
25955     postinstall_cmds_GCJ \
25956     postuninstall_cmds_GCJ \
25957     old_archive_from_expsyms_cmds_GCJ \
25958     allow_undefined_flag_GCJ \
25959     no_undefined_flag_GCJ \
25960     export_symbols_cmds_GCJ \
25961     hardcode_libdir_flag_spec_GCJ \
25962     hardcode_libdir_flag_spec_ld_GCJ \
25963     hardcode_libdir_separator_GCJ \
25964     hardcode_automatic_GCJ \
25965     module_cmds_GCJ \
25966     module_expsym_cmds_GCJ \
25967     lt_cv_prog_compiler_c_o_GCJ \
25968     exclude_expsyms_GCJ \
25969     include_expsyms_GCJ; do
25970
25971     case $var in
25972     old_archive_cmds_GCJ | \
25973     old_archive_from_new_cmds_GCJ | \
25974     archive_cmds_GCJ | \
25975     archive_expsym_cmds_GCJ | \
25976     module_cmds_GCJ | \
25977     module_expsym_cmds_GCJ | \
25978     old_archive_from_expsyms_cmds_GCJ | \
25979     export_symbols_cmds_GCJ | \
25980     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25981     postinstall_cmds | postuninstall_cmds | \
25982     old_postinstall_cmds | old_postuninstall_cmds | \
25983     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25984       # Double-quote double-evaled strings.
25985       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25986       ;;
25987     *)
25988       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25989       ;;
25990     esac
25991   done
25992
25993   case $lt_echo in
25994   *'\$0 --fallback-echo"')
25995     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25996     ;;
25997   esac
25998
25999 cfgfile="$ofile"
26000
26001   cat <<__EOF__ >> "$cfgfile"
26002 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26003
26004 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26005
26006 # Shell to use when invoking shell scripts.
26007 SHELL=$lt_SHELL
26008
26009 # Whether or not to build shared libraries.
26010 build_libtool_libs=$enable_shared
26011
26012 # Whether or not to build static libraries.
26013 build_old_libs=$enable_static
26014
26015 # Whether or not to add -lc for building shared libraries.
26016 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26017
26018 # Whether or not to disallow shared libs when runtime libs are static
26019 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26020
26021 # Whether or not to optimize for fast installation.
26022 fast_install=$enable_fast_install
26023
26024 # The host system.
26025 host_alias=$host_alias
26026 host=$host
26027 host_os=$host_os
26028
26029 # The build system.
26030 build_alias=$build_alias
26031 build=$build
26032 build_os=$build_os
26033
26034 # An echo program that does not interpret backslashes.
26035 echo=$lt_echo
26036
26037 # The archiver.
26038 AR=$lt_AR
26039 AR_FLAGS=$lt_AR_FLAGS
26040
26041 # A C compiler.
26042 LTCC=$lt_LTCC
26043
26044 # LTCC compiler flags.
26045 LTCFLAGS=$lt_LTCFLAGS
26046
26047 # A language-specific compiler.
26048 CC=$lt_compiler_GCJ
26049
26050 # Is the compiler the GNU C compiler?
26051 with_gcc=$GCC_GCJ
26052
26053 # An ERE matcher.
26054 EGREP=$lt_EGREP
26055
26056 # The linker used to build libraries.
26057 LD=$lt_LD_GCJ
26058
26059 # Whether we need hard or soft links.
26060 LN_S=$lt_LN_S
26061
26062 # A BSD-compatible nm program.
26063 NM=$lt_NM
26064
26065 # A symbol stripping program
26066 STRIP=$lt_STRIP
26067
26068 # Used to examine libraries when file_magic_cmd begins "file"
26069 MAGIC_CMD=$MAGIC_CMD
26070
26071 # Used on cygwin: DLL creation program.
26072 DLLTOOL="$DLLTOOL"
26073
26074 # Used on cygwin: object dumper.
26075 OBJDUMP="$OBJDUMP"
26076
26077 # Used on cygwin: assembler.
26078 AS="$AS"
26079
26080 # The name of the directory that contains temporary libtool files.
26081 objdir=$objdir
26082
26083 # How to create reloadable object files.
26084 reload_flag=$lt_reload_flag
26085 reload_cmds=$lt_reload_cmds
26086
26087 # How to pass a linker flag through the compiler.
26088 wl=$lt_lt_prog_compiler_wl_GCJ
26089
26090 # Object file suffix (normally "o").
26091 objext="$ac_objext"
26092
26093 # Old archive suffix (normally "a").
26094 libext="$libext"
26095
26096 # Shared library suffix (normally ".so").
26097 shrext_cmds='$shrext_cmds'
26098
26099 # Executable file suffix (normally "").
26100 exeext="$exeext"
26101
26102 # Additional compiler flags for building library objects.
26103 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26104 pic_mode=$pic_mode
26105
26106 # What is the maximum length of a command?
26107 max_cmd_len=$lt_cv_sys_max_cmd_len
26108
26109 # Does compiler simultaneously support -c and -o options?
26110 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26111
26112 # Must we lock files when doing compilation?
26113 need_locks=$lt_need_locks
26114
26115 # Do we need the lib prefix for modules?
26116 need_lib_prefix=$need_lib_prefix
26117
26118 # Do we need a version for libraries?
26119 need_version=$need_version
26120
26121 # Whether dlopen is supported.
26122 dlopen_support=$enable_dlopen
26123
26124 # Whether dlopen of programs is supported.
26125 dlopen_self=$enable_dlopen_self
26126
26127 # Whether dlopen of statically linked programs is supported.
26128 dlopen_self_static=$enable_dlopen_self_static
26129
26130 # Compiler flag to prevent dynamic linking.
26131 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26132
26133 # Compiler flag to turn off builtin functions.
26134 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26135
26136 # Compiler flag to allow reflexive dlopens.
26137 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26138
26139 # Compiler flag to generate shared objects directly from archives.
26140 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26141
26142 # Compiler flag to generate thread-safe objects.
26143 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26144
26145 # Library versioning type.
26146 version_type=$version_type
26147
26148 # Format of library name prefix.
26149 libname_spec=$lt_libname_spec
26150
26151 # List of archive names.  First name is the real one, the rest are links.
26152 # The last name is the one that the linker finds with -lNAME.
26153 library_names_spec=$lt_library_names_spec
26154
26155 # The coded name of the library, if different from the real name.
26156 soname_spec=$lt_soname_spec
26157
26158 # Commands used to build and install an old-style archive.
26159 RANLIB=$lt_RANLIB
26160 old_archive_cmds=$lt_old_archive_cmds_GCJ
26161 old_postinstall_cmds=$lt_old_postinstall_cmds
26162 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26163
26164 # Create an old-style archive from a shared archive.
26165 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26166
26167 # Create a temporary old-style archive to link instead of a shared archive.
26168 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26169
26170 # Commands used to build and install a shared archive.
26171 archive_cmds=$lt_archive_cmds_GCJ
26172 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26173 postinstall_cmds=$lt_postinstall_cmds
26174 postuninstall_cmds=$lt_postuninstall_cmds
26175
26176 # Commands used to build a loadable module (assumed same as above if empty)
26177 module_cmds=$lt_module_cmds_GCJ
26178 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26179
26180 # Commands to strip libraries.
26181 old_striplib=$lt_old_striplib
26182 striplib=$lt_striplib
26183
26184 # Dependencies to place before the objects being linked to create a
26185 # shared library.
26186 predep_objects=$lt_predep_objects_GCJ
26187
26188 # Dependencies to place after the objects being linked to create a
26189 # shared library.
26190 postdep_objects=$lt_postdep_objects_GCJ
26191
26192 # Dependencies to place before the objects being linked to create a
26193 # shared library.
26194 predeps=$lt_predeps_GCJ
26195
26196 # Dependencies to place after the objects being linked to create a
26197 # shared library.
26198 postdeps=$lt_postdeps_GCJ
26199
26200 # The library search path used internally by the compiler when linking
26201 # a shared library.
26202 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26203
26204 # Method to check whether dependent libraries are shared objects.
26205 deplibs_check_method=$lt_deplibs_check_method
26206
26207 # Command to use when deplibs_check_method == file_magic.
26208 file_magic_cmd=$lt_file_magic_cmd
26209
26210 # Flag that allows shared libraries with undefined symbols to be built.
26211 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26212
26213 # Flag that forces no undefined symbols.
26214 no_undefined_flag=$lt_no_undefined_flag_GCJ
26215
26216 # Commands used to finish a libtool library installation in a directory.
26217 finish_cmds=$lt_finish_cmds
26218
26219 # Same as above, but a single script fragment to be evaled but not shown.
26220 finish_eval=$lt_finish_eval
26221
26222 # Take the output of nm and produce a listing of raw symbols and C names.
26223 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26224
26225 # Transform the output of nm in a proper C declaration
26226 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26227
26228 # Transform the output of nm in a C name address pair
26229 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26230
26231 # This is the shared library runtime path variable.
26232 runpath_var=$runpath_var
26233
26234 # This is the shared library path variable.
26235 shlibpath_var=$shlibpath_var
26236
26237 # Is shlibpath searched before the hard-coded library search path?
26238 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26239
26240 # How to hardcode a shared library path into an executable.
26241 hardcode_action=$hardcode_action_GCJ
26242
26243 # Whether we should hardcode library paths into libraries.
26244 hardcode_into_libs=$hardcode_into_libs
26245
26246 # Flag to hardcode \$libdir into a binary during linking.
26247 # This must work even if \$libdir does not exist.
26248 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26249
26250 # If ld is used when linking, flag to hardcode \$libdir into
26251 # a binary during linking. This must work even if \$libdir does
26252 # not exist.
26253 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26254
26255 # Whether we need a single -rpath flag with a separated argument.
26256 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26257
26258 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26259 # resulting binary.
26260 hardcode_direct=$hardcode_direct_GCJ
26261
26262 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26263 # resulting binary.
26264 hardcode_minus_L=$hardcode_minus_L_GCJ
26265
26266 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26267 # the resulting binary.
26268 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26269
26270 # Set to yes if building a shared library automatically hardcodes DIR into the library
26271 # and all subsequent libraries and executables linked against it.
26272 hardcode_automatic=$hardcode_automatic_GCJ
26273
26274 # Variables whose values should be saved in libtool wrapper scripts and
26275 # restored at relink time.
26276 variables_saved_for_relink="$variables_saved_for_relink"
26277
26278 # Whether libtool must link a program against all its dependency libraries.
26279 link_all_deplibs=$link_all_deplibs_GCJ
26280
26281 # Compile-time system search path for libraries
26282 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26283
26284 # Run-time system search path for libraries
26285 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26286
26287 # Fix the shell variable \$srcfile for the compiler.
26288 fix_srcfile_path="$fix_srcfile_path_GCJ"
26289
26290 # Set to yes if exported symbols are required.
26291 always_export_symbols=$always_export_symbols_GCJ
26292
26293 # The commands to list exported symbols.
26294 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26295
26296 # The commands to extract the exported symbol list from a shared archive.
26297 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26298
26299 # Symbols that should not be listed in the preloaded symbols.
26300 exclude_expsyms=$lt_exclude_expsyms_GCJ
26301
26302 # Symbols that must always be exported.
26303 include_expsyms=$lt_include_expsyms_GCJ
26304
26305 # ### END LIBTOOL TAG CONFIG: $tagname
26306
26307 __EOF__
26308
26309
26310 else
26311   # If there is no Makefile yet, we rely on a make rule to execute
26312   # `config.status --recheck' to rerun these tests and create the
26313   # libtool script then.
26314   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26315   if test -f "$ltmain_in"; then
26316     test -f Makefile && make "$ltmain"
26317   fi
26318 fi
26319
26320
26321 ac_ext=c
26322 ac_cpp='$CPP $CPPFLAGS'
26323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26326
26327 CC="$lt_save_CC"
26328
26329         else
26330           tagname=""
26331         fi
26332         ;;
26333
26334       RC)
26335         ac_ext=c
26336 ac_cpp='$CPP $CPPFLAGS'
26337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26340
26341
26342 # Source file extension for RC test sources.
26343 ac_ext=rc
26344
26345 # Object file extension for compiled RC test sources.
26346 objext=o
26347 objext_RC=$objext
26348
26349 # Code to be used in simple compile tests
26350 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26351
26352 # Code to be used in simple link tests
26353 lt_simple_link_test_code="$lt_simple_compile_test_code"
26354
26355 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26356
26357 # If no C compiler was specified, use CC.
26358 LTCC=${LTCC-"$CC"}
26359
26360 # If no C compiler flags were specified, use CFLAGS.
26361 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26362
26363 # Allow CC to be a program name with arguments.
26364 compiler=$CC
26365
26366
26367 # save warnings/boilerplate of simple test code
26368 ac_outfile=conftest.$ac_objext
26369 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26370 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26371 _lt_compiler_boilerplate=`cat conftest.err`
26372 $rm conftest*
26373
26374 ac_outfile=conftest.$ac_objext
26375 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26376 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26377 _lt_linker_boilerplate=`cat conftest.err`
26378 $rm conftest*
26379
26380
26381 # Allow CC to be a program name with arguments.
26382 lt_save_CC="$CC"
26383 CC=${RC-"windres"}
26384 compiler=$CC
26385 compiler_RC=$CC
26386 for cc_temp in $compiler""; do
26387   case $cc_temp in
26388     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26389     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26390     \-*) ;;
26391     *) break;;
26392   esac
26393 done
26394 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26395
26396 lt_cv_prog_compiler_c_o_RC=yes
26397
26398 # The else clause should only fire when bootstrapping the
26399 # libtool distribution, otherwise you forgot to ship ltmain.sh
26400 # with your package, and you will get complaints that there are
26401 # no rules to generate ltmain.sh.
26402 if test -f "$ltmain"; then
26403   # See if we are running on zsh, and set the options which allow our commands through
26404   # without removal of \ escapes.
26405   if test -n "${ZSH_VERSION+set}" ; then
26406     setopt NO_GLOB_SUBST
26407   fi
26408   # Now quote all the things that may contain metacharacters while being
26409   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26410   # variables and quote the copies for generation of the libtool script.
26411   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26412     SED SHELL STRIP \
26413     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26414     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26415     deplibs_check_method reload_flag reload_cmds need_locks \
26416     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26417     lt_cv_sys_global_symbol_to_c_name_address \
26418     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26419     old_postinstall_cmds old_postuninstall_cmds \
26420     compiler_RC \
26421     CC_RC \
26422     LD_RC \
26423     lt_prog_compiler_wl_RC \
26424     lt_prog_compiler_pic_RC \
26425     lt_prog_compiler_static_RC \
26426     lt_prog_compiler_no_builtin_flag_RC \
26427     export_dynamic_flag_spec_RC \
26428     thread_safe_flag_spec_RC \
26429     whole_archive_flag_spec_RC \
26430     enable_shared_with_static_runtimes_RC \
26431     old_archive_cmds_RC \
26432     old_archive_from_new_cmds_RC \
26433     predep_objects_RC \
26434     postdep_objects_RC \
26435     predeps_RC \
26436     postdeps_RC \
26437     compiler_lib_search_path_RC \
26438     archive_cmds_RC \
26439     archive_expsym_cmds_RC \
26440     postinstall_cmds_RC \
26441     postuninstall_cmds_RC \
26442     old_archive_from_expsyms_cmds_RC \
26443     allow_undefined_flag_RC \
26444     no_undefined_flag_RC \
26445     export_symbols_cmds_RC \
26446     hardcode_libdir_flag_spec_RC \
26447     hardcode_libdir_flag_spec_ld_RC \
26448     hardcode_libdir_separator_RC \
26449     hardcode_automatic_RC \
26450     module_cmds_RC \
26451     module_expsym_cmds_RC \
26452     lt_cv_prog_compiler_c_o_RC \
26453     exclude_expsyms_RC \
26454     include_expsyms_RC; do
26455
26456     case $var in
26457     old_archive_cmds_RC | \
26458     old_archive_from_new_cmds_RC | \
26459     archive_cmds_RC | \
26460     archive_expsym_cmds_RC | \
26461     module_cmds_RC | \
26462     module_expsym_cmds_RC | \
26463     old_archive_from_expsyms_cmds_RC | \
26464     export_symbols_cmds_RC | \
26465     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26466     postinstall_cmds | postuninstall_cmds | \
26467     old_postinstall_cmds | old_postuninstall_cmds | \
26468     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26469       # Double-quote double-evaled strings.
26470       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26471       ;;
26472     *)
26473       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26474       ;;
26475     esac
26476   done
26477
26478   case $lt_echo in
26479   *'\$0 --fallback-echo"')
26480     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26481     ;;
26482   esac
26483
26484 cfgfile="$ofile"
26485
26486   cat <<__EOF__ >> "$cfgfile"
26487 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26488
26489 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26490
26491 # Shell to use when invoking shell scripts.
26492 SHELL=$lt_SHELL
26493
26494 # Whether or not to build shared libraries.
26495 build_libtool_libs=$enable_shared
26496
26497 # Whether or not to build static libraries.
26498 build_old_libs=$enable_static
26499
26500 # Whether or not to add -lc for building shared libraries.
26501 build_libtool_need_lc=$archive_cmds_need_lc_RC
26502
26503 # Whether or not to disallow shared libs when runtime libs are static
26504 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26505
26506 # Whether or not to optimize for fast installation.
26507 fast_install=$enable_fast_install
26508
26509 # The host system.
26510 host_alias=$host_alias
26511 host=$host
26512 host_os=$host_os
26513
26514 # The build system.
26515 build_alias=$build_alias
26516 build=$build
26517 build_os=$build_os
26518
26519 # An echo program that does not interpret backslashes.
26520 echo=$lt_echo
26521
26522 # The archiver.
26523 AR=$lt_AR
26524 AR_FLAGS=$lt_AR_FLAGS
26525
26526 # A C compiler.
26527 LTCC=$lt_LTCC
26528
26529 # LTCC compiler flags.
26530 LTCFLAGS=$lt_LTCFLAGS
26531
26532 # A language-specific compiler.
26533 CC=$lt_compiler_RC
26534
26535 # Is the compiler the GNU C compiler?
26536 with_gcc=$GCC_RC
26537
26538 # An ERE matcher.
26539 EGREP=$lt_EGREP
26540
26541 # The linker used to build libraries.
26542 LD=$lt_LD_RC
26543
26544 # Whether we need hard or soft links.
26545 LN_S=$lt_LN_S
26546
26547 # A BSD-compatible nm program.
26548 NM=$lt_NM
26549
26550 # A symbol stripping program
26551 STRIP=$lt_STRIP
26552
26553 # Used to examine libraries when file_magic_cmd begins "file"
26554 MAGIC_CMD=$MAGIC_CMD
26555
26556 # Used on cygwin: DLL creation program.
26557 DLLTOOL="$DLLTOOL"
26558
26559 # Used on cygwin: object dumper.
26560 OBJDUMP="$OBJDUMP"
26561
26562 # Used on cygwin: assembler.
26563 AS="$AS"
26564
26565 # The name of the directory that contains temporary libtool files.
26566 objdir=$objdir
26567
26568 # How to create reloadable object files.
26569 reload_flag=$lt_reload_flag
26570 reload_cmds=$lt_reload_cmds
26571
26572 # How to pass a linker flag through the compiler.
26573 wl=$lt_lt_prog_compiler_wl_RC
26574
26575 # Object file suffix (normally "o").
26576 objext="$ac_objext"
26577
26578 # Old archive suffix (normally "a").
26579 libext="$libext"
26580
26581 # Shared library suffix (normally ".so").
26582 shrext_cmds='$shrext_cmds'
26583
26584 # Executable file suffix (normally "").
26585 exeext="$exeext"
26586
26587 # Additional compiler flags for building library objects.
26588 pic_flag=$lt_lt_prog_compiler_pic_RC
26589 pic_mode=$pic_mode
26590
26591 # What is the maximum length of a command?
26592 max_cmd_len=$lt_cv_sys_max_cmd_len
26593
26594 # Does compiler simultaneously support -c and -o options?
26595 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26596
26597 # Must we lock files when doing compilation?
26598 need_locks=$lt_need_locks
26599
26600 # Do we need the lib prefix for modules?
26601 need_lib_prefix=$need_lib_prefix
26602
26603 # Do we need a version for libraries?
26604 need_version=$need_version
26605
26606 # Whether dlopen is supported.
26607 dlopen_support=$enable_dlopen
26608
26609 # Whether dlopen of programs is supported.
26610 dlopen_self=$enable_dlopen_self
26611
26612 # Whether dlopen of statically linked programs is supported.
26613 dlopen_self_static=$enable_dlopen_self_static
26614
26615 # Compiler flag to prevent dynamic linking.
26616 link_static_flag=$lt_lt_prog_compiler_static_RC
26617
26618 # Compiler flag to turn off builtin functions.
26619 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26620
26621 # Compiler flag to allow reflexive dlopens.
26622 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26623
26624 # Compiler flag to generate shared objects directly from archives.
26625 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26626
26627 # Compiler flag to generate thread-safe objects.
26628 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26629
26630 # Library versioning type.
26631 version_type=$version_type
26632
26633 # Format of library name prefix.
26634 libname_spec=$lt_libname_spec
26635
26636 # List of archive names.  First name is the real one, the rest are links.
26637 # The last name is the one that the linker finds with -lNAME.
26638 library_names_spec=$lt_library_names_spec
26639
26640 # The coded name of the library, if different from the real name.
26641 soname_spec=$lt_soname_spec
26642
26643 # Commands used to build and install an old-style archive.
26644 RANLIB=$lt_RANLIB
26645 old_archive_cmds=$lt_old_archive_cmds_RC
26646 old_postinstall_cmds=$lt_old_postinstall_cmds
26647 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26648
26649 # Create an old-style archive from a shared archive.
26650 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26651
26652 # Create a temporary old-style archive to link instead of a shared archive.
26653 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26654
26655 # Commands used to build and install a shared archive.
26656 archive_cmds=$lt_archive_cmds_RC
26657 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26658 postinstall_cmds=$lt_postinstall_cmds
26659 postuninstall_cmds=$lt_postuninstall_cmds
26660
26661 # Commands used to build a loadable module (assumed same as above if empty)
26662 module_cmds=$lt_module_cmds_RC
26663 module_expsym_cmds=$lt_module_expsym_cmds_RC
26664
26665 # Commands to strip libraries.
26666 old_striplib=$lt_old_striplib
26667 striplib=$lt_striplib
26668
26669 # Dependencies to place before the objects being linked to create a
26670 # shared library.
26671 predep_objects=$lt_predep_objects_RC
26672
26673 # Dependencies to place after the objects being linked to create a
26674 # shared library.
26675 postdep_objects=$lt_postdep_objects_RC
26676
26677 # Dependencies to place before the objects being linked to create a
26678 # shared library.
26679 predeps=$lt_predeps_RC
26680
26681 # Dependencies to place after the objects being linked to create a
26682 # shared library.
26683 postdeps=$lt_postdeps_RC
26684
26685 # The library search path used internally by the compiler when linking
26686 # a shared library.
26687 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26688
26689 # Method to check whether dependent libraries are shared objects.
26690 deplibs_check_method=$lt_deplibs_check_method
26691
26692 # Command to use when deplibs_check_method == file_magic.
26693 file_magic_cmd=$lt_file_magic_cmd
26694
26695 # Flag that allows shared libraries with undefined symbols to be built.
26696 allow_undefined_flag=$lt_allow_undefined_flag_RC
26697
26698 # Flag that forces no undefined symbols.
26699 no_undefined_flag=$lt_no_undefined_flag_RC
26700
26701 # Commands used to finish a libtool library installation in a directory.
26702 finish_cmds=$lt_finish_cmds
26703
26704 # Same as above, but a single script fragment to be evaled but not shown.
26705 finish_eval=$lt_finish_eval
26706
26707 # Take the output of nm and produce a listing of raw symbols and C names.
26708 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26709
26710 # Transform the output of nm in a proper C declaration
26711 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26712
26713 # Transform the output of nm in a C name address pair
26714 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26715
26716 # This is the shared library runtime path variable.
26717 runpath_var=$runpath_var
26718
26719 # This is the shared library path variable.
26720 shlibpath_var=$shlibpath_var
26721
26722 # Is shlibpath searched before the hard-coded library search path?
26723 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26724
26725 # How to hardcode a shared library path into an executable.
26726 hardcode_action=$hardcode_action_RC
26727
26728 # Whether we should hardcode library paths into libraries.
26729 hardcode_into_libs=$hardcode_into_libs
26730
26731 # Flag to hardcode \$libdir into a binary during linking.
26732 # This must work even if \$libdir does not exist.
26733 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26734
26735 # If ld is used when linking, flag to hardcode \$libdir into
26736 # a binary during linking. This must work even if \$libdir does
26737 # not exist.
26738 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26739
26740 # Whether we need a single -rpath flag with a separated argument.
26741 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26742
26743 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26744 # resulting binary.
26745 hardcode_direct=$hardcode_direct_RC
26746
26747 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26748 # resulting binary.
26749 hardcode_minus_L=$hardcode_minus_L_RC
26750
26751 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26752 # the resulting binary.
26753 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26754
26755 # Set to yes if building a shared library automatically hardcodes DIR into the library
26756 # and all subsequent libraries and executables linked against it.
26757 hardcode_automatic=$hardcode_automatic_RC
26758
26759 # Variables whose values should be saved in libtool wrapper scripts and
26760 # restored at relink time.
26761 variables_saved_for_relink="$variables_saved_for_relink"
26762
26763 # Whether libtool must link a program against all its dependency libraries.
26764 link_all_deplibs=$link_all_deplibs_RC
26765
26766 # Compile-time system search path for libraries
26767 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26768
26769 # Run-time system search path for libraries
26770 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26771
26772 # Fix the shell variable \$srcfile for the compiler.
26773 fix_srcfile_path="$fix_srcfile_path_RC"
26774
26775 # Set to yes if exported symbols are required.
26776 always_export_symbols=$always_export_symbols_RC
26777
26778 # The commands to list exported symbols.
26779 export_symbols_cmds=$lt_export_symbols_cmds_RC
26780
26781 # The commands to extract the exported symbol list from a shared archive.
26782 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26783
26784 # Symbols that should not be listed in the preloaded symbols.
26785 exclude_expsyms=$lt_exclude_expsyms_RC
26786
26787 # Symbols that must always be exported.
26788 include_expsyms=$lt_include_expsyms_RC
26789
26790 # ### END LIBTOOL TAG CONFIG: $tagname
26791
26792 __EOF__
26793
26794
26795 else
26796   # If there is no Makefile yet, we rely on a make rule to execute
26797   # `config.status --recheck' to rerun these tests and create the
26798   # libtool script then.
26799   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26800   if test -f "$ltmain_in"; then
26801     test -f Makefile && make "$ltmain"
26802   fi
26803 fi
26804
26805
26806 ac_ext=c
26807 ac_cpp='$CPP $CPPFLAGS'
26808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26811
26812 CC="$lt_save_CC"
26813
26814         ;;
26815
26816       *)
26817         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26818 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26819    { (exit 1); exit 1; }; }
26820         ;;
26821       esac
26822
26823       # Append the new tag name to the list of available tags.
26824       if test -n "$tagname" ; then
26825       available_tags="$available_tags $tagname"
26826     fi
26827     fi
26828   done
26829   IFS="$lt_save_ifs"
26830
26831   # Now substitute the updated list of available tags.
26832   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26833     mv "${ofile}T" "$ofile"
26834     chmod +x "$ofile"
26835   else
26836     rm -f "${ofile}T"
26837     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26838 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26839    { (exit 1); exit 1; }; }
26840   fi
26841 fi
26842
26843
26844
26845 # This can be used to rebuild libtool when needed
26846 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26847
26848 # Always use our own libtool.
26849 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26850
26851 # Prevent multiple expansion
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873 if test "$lt_cv_dlopen_self" = "yes" ; then
26874
26875 cat >>confdefs.h <<\_ACEOF
26876 #define CAN_DLOPEN_SELF 1
26877 _ACEOF
26878
26879 fi
26880
26881 if test "$WITH_LLVMGCCDIR" = "default" ; then
26882   LLVMGCC="llvm-gcc${EXEEXT}"
26883   LLVMGXX="llvm-g++${EXEEXT}"
26884   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26885 set dummy $LLVMGCC; ac_word=$2
26886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26888 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26889   echo $ECHO_N "(cached) $ECHO_C" >&6
26890 else
26891   case $LLVMGCC in
26892   [\\/]* | ?:[\\/]*)
26893   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26894   ;;
26895   *)
26896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26897 for as_dir in $PATH
26898 do
26899   IFS=$as_save_IFS
26900   test -z "$as_dir" && as_dir=.
26901   for ac_exec_ext in '' $ac_executable_extensions; do
26902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26903     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26905     break 2
26906   fi
26907 done
26908 done
26909 IFS=$as_save_IFS
26910
26911   ;;
26912 esac
26913 fi
26914 LLVMGCC=$ac_cv_path_LLVMGCC
26915 if test -n "$LLVMGCC"; then
26916   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26917 echo "${ECHO_T}$LLVMGCC" >&6; }
26918 else
26919   { echo "$as_me:$LINENO: result: no" >&5
26920 echo "${ECHO_T}no" >&6; }
26921 fi
26922
26923
26924   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26925 set dummy $LLVMGXX; ac_word=$2
26926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26928 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26929   echo $ECHO_N "(cached) $ECHO_C" >&6
26930 else
26931   case $LLVMGXX in
26932   [\\/]* | ?:[\\/]*)
26933   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26934   ;;
26935   *)
26936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26937 for as_dir in $PATH
26938 do
26939   IFS=$as_save_IFS
26940   test -z "$as_dir" && as_dir=.
26941   for ac_exec_ext in '' $ac_executable_extensions; do
26942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26943     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26945     break 2
26946   fi
26947 done
26948 done
26949 IFS=$as_save_IFS
26950
26951   ;;
26952 esac
26953 fi
26954 LLVMGXX=$ac_cv_path_LLVMGXX
26955 if test -n "$LLVMGXX"; then
26956   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26957 echo "${ECHO_T}$LLVMGXX" >&6; }
26958 else
26959   { echo "$as_me:$LINENO: result: no" >&5
26960 echo "${ECHO_T}no" >&6; }
26961 fi
26962
26963
26964 else
26965   if test -z "$LLVMGCC"; then
26966     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26967   fi
26968   if test -z "$LLVMGXX"; then
26969     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26970   fi
26971   LLVMGCC=$LLVMGCC
26972
26973   LLVMGXX=$LLVMGXX
26974
26975 fi
26976
26977 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26978 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26979
26980 ICC=no
26981 IXX=no
26982 case $CC in
26983   icc*|icpc*)
26984     ICC=yes
26985     IXX=yes
26986     ;;
26987    *)
26988     ;;
26989 esac
26990
26991 if test "$GCC" != "yes" && test "$ICC" != "yes"
26992 then
26993   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26994 echo "$as_me: error: gcc|icc required but not found" >&2;}
26995    { (exit 1); exit 1; }; }
26996 fi
26997
26998 if test "$GXX" != "yes" && test "$IXX" != "yes"
26999 then
27000   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27001 echo "$as_me: error: g++|icc required but not found" >&2;}
27002    { (exit 1); exit 1; }; }
27003 fi
27004
27005 if test "$GCC" = "yes"
27006 then
27007   cat >conftest.$ac_ext <<_ACEOF
27008 #if !defined(__GNUC__) || __GNUC__ < 3
27009 #error Unsupported GCC version
27010 #endif
27011
27012 _ACEOF
27013 rm -f conftest.$ac_objext
27014 if { (ac_try="$ac_compile"
27015 case "(($ac_try" in
27016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27017   *) ac_try_echo=$ac_try;;
27018 esac
27019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27020   (eval "$ac_compile") 2>conftest.er1
27021   ac_status=$?
27022   grep -v '^ *+' conftest.er1 >conftest.err
27023   rm -f conftest.er1
27024   cat conftest.err >&5
27025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026   (exit $ac_status); } &&
27027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27028   { (case "(($ac_try" in
27029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030   *) ac_try_echo=$ac_try;;
27031 esac
27032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27033   (eval "$ac_try") 2>&5
27034   ac_status=$?
27035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036   (exit $ac_status); }; } &&
27037          { ac_try='test -s conftest.$ac_objext'
27038   { (case "(($ac_try" in
27039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27040   *) ac_try_echo=$ac_try;;
27041 esac
27042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27043   (eval "$ac_try") 2>&5
27044   ac_status=$?
27045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046   (exit $ac_status); }; }; then
27047   :
27048 else
27049   echo "$as_me: failed program was:" >&5
27050 sed 's/^/| /' conftest.$ac_ext >&5
27051
27052         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27053 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27054    { (exit 1); exit 1; }; }
27055 fi
27056
27057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27058 fi
27059
27060 if test -z "$llvm_cv_gnu_make_command"
27061 then
27062   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27063 echo "$as_me: error: GNU Make required but not found" >&2;}
27064    { (exit 1); exit 1; }; }
27065 fi
27066
27067 { echo "$as_me:$LINENO: result: ok" >&5
27068 echo "${ECHO_T}ok" >&6; }
27069
27070
27071
27072 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27073 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27074 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27075   echo $ECHO_N "(cached) $ECHO_C" >&6
27076 else
27077   ac_check_lib_save_LIBS=$LIBS
27078 LIBS="-lelf  $LIBS"
27079 cat >conftest.$ac_ext <<_ACEOF
27080 /* confdefs.h.  */
27081 _ACEOF
27082 cat confdefs.h >>conftest.$ac_ext
27083 cat >>conftest.$ac_ext <<_ACEOF
27084 /* end confdefs.h.  */
27085
27086 /* Override any GCC internal prototype to avoid an error.
27087    Use char because int might match the return type of a GCC
27088    builtin and then its argument prototype would still apply.  */
27089 #ifdef __cplusplus
27090 extern "C"
27091 #endif
27092 char elf_begin ();
27093 int
27094 main ()
27095 {
27096 return elf_begin ();
27097   ;
27098   return 0;
27099 }
27100 _ACEOF
27101 rm -f conftest.$ac_objext conftest$ac_exeext
27102 if { (ac_try="$ac_link"
27103 case "(($ac_try" in
27104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27105   *) ac_try_echo=$ac_try;;
27106 esac
27107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27108   (eval "$ac_link") 2>conftest.er1
27109   ac_status=$?
27110   grep -v '^ *+' conftest.er1 >conftest.err
27111   rm -f conftest.er1
27112   cat conftest.err >&5
27113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114   (exit $ac_status); } &&
27115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27116   { (case "(($ac_try" in
27117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27118   *) ac_try_echo=$ac_try;;
27119 esac
27120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27121   (eval "$ac_try") 2>&5
27122   ac_status=$?
27123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124   (exit $ac_status); }; } &&
27125          { ac_try='test -s conftest$ac_exeext'
27126   { (case "(($ac_try" in
27127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27128   *) ac_try_echo=$ac_try;;
27129 esac
27130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27131   (eval "$ac_try") 2>&5
27132   ac_status=$?
27133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134   (exit $ac_status); }; }; then
27135   ac_cv_lib_elf_elf_begin=yes
27136 else
27137   echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27139
27140         ac_cv_lib_elf_elf_begin=no
27141 fi
27142
27143 rm -f core conftest.err conftest.$ac_objext \
27144       conftest$ac_exeext conftest.$ac_ext
27145 LIBS=$ac_check_lib_save_LIBS
27146 fi
27147 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27148 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27149 if test $ac_cv_lib_elf_elf_begin = yes; then
27150   cat >>confdefs.h <<_ACEOF
27151 #define HAVE_LIBELF 1
27152 _ACEOF
27153
27154   LIBS="-lelf $LIBS"
27155
27156 fi
27157
27158
27159 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27160 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27161 if test "${ac_cv_lib_m_sin+set}" = set; then
27162   echo $ECHO_N "(cached) $ECHO_C" >&6
27163 else
27164   ac_check_lib_save_LIBS=$LIBS
27165 LIBS="-lm  $LIBS"
27166 cat >conftest.$ac_ext <<_ACEOF
27167 /* confdefs.h.  */
27168 _ACEOF
27169 cat confdefs.h >>conftest.$ac_ext
27170 cat >>conftest.$ac_ext <<_ACEOF
27171 /* end confdefs.h.  */
27172
27173 /* Override any GCC internal prototype to avoid an error.
27174    Use char because int might match the return type of a GCC
27175    builtin and then its argument prototype would still apply.  */
27176 #ifdef __cplusplus
27177 extern "C"
27178 #endif
27179 char sin ();
27180 int
27181 main ()
27182 {
27183 return sin ();
27184   ;
27185   return 0;
27186 }
27187 _ACEOF
27188 rm -f conftest.$ac_objext conftest$ac_exeext
27189 if { (ac_try="$ac_link"
27190 case "(($ac_try" in
27191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27192   *) ac_try_echo=$ac_try;;
27193 esac
27194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27195   (eval "$ac_link") 2>conftest.er1
27196   ac_status=$?
27197   grep -v '^ *+' conftest.er1 >conftest.err
27198   rm -f conftest.er1
27199   cat conftest.err >&5
27200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201   (exit $ac_status); } &&
27202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27203   { (case "(($ac_try" in
27204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27205   *) ac_try_echo=$ac_try;;
27206 esac
27207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27208   (eval "$ac_try") 2>&5
27209   ac_status=$?
27210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211   (exit $ac_status); }; } &&
27212          { ac_try='test -s conftest$ac_exeext'
27213   { (case "(($ac_try" in
27214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27215   *) ac_try_echo=$ac_try;;
27216 esac
27217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27218   (eval "$ac_try") 2>&5
27219   ac_status=$?
27220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221   (exit $ac_status); }; }; then
27222   ac_cv_lib_m_sin=yes
27223 else
27224   echo "$as_me: failed program was:" >&5
27225 sed 's/^/| /' conftest.$ac_ext >&5
27226
27227         ac_cv_lib_m_sin=no
27228 fi
27229
27230 rm -f core conftest.err conftest.$ac_objext \
27231       conftest$ac_exeext conftest.$ac_ext
27232 LIBS=$ac_check_lib_save_LIBS
27233 fi
27234 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27235 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27236 if test $ac_cv_lib_m_sin = yes; then
27237   cat >>confdefs.h <<_ACEOF
27238 #define HAVE_LIBM 1
27239 _ACEOF
27240
27241   LIBS="-lm $LIBS"
27242
27243 fi
27244
27245 if test "$llvm_cv_os_type" = "MingW" ; then
27246
27247 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27248 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27249 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27250   echo $ECHO_N "(cached) $ECHO_C" >&6
27251 else
27252   ac_check_lib_save_LIBS=$LIBS
27253 LIBS="-limagehlp  $LIBS"
27254 cat >conftest.$ac_ext <<_ACEOF
27255 /* confdefs.h.  */
27256 _ACEOF
27257 cat confdefs.h >>conftest.$ac_ext
27258 cat >>conftest.$ac_ext <<_ACEOF
27259 /* end confdefs.h.  */
27260
27261
27262 int
27263 main ()
27264 {
27265 return main ();
27266   ;
27267   return 0;
27268 }
27269 _ACEOF
27270 rm -f conftest.$ac_objext conftest$ac_exeext
27271 if { (ac_try="$ac_link"
27272 case "(($ac_try" in
27273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27274   *) ac_try_echo=$ac_try;;
27275 esac
27276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27277   (eval "$ac_link") 2>conftest.er1
27278   ac_status=$?
27279   grep -v '^ *+' conftest.er1 >conftest.err
27280   rm -f conftest.er1
27281   cat conftest.err >&5
27282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283   (exit $ac_status); } &&
27284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27285   { (case "(($ac_try" in
27286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27287   *) ac_try_echo=$ac_try;;
27288 esac
27289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27290   (eval "$ac_try") 2>&5
27291   ac_status=$?
27292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293   (exit $ac_status); }; } &&
27294          { ac_try='test -s conftest$ac_exeext'
27295   { (case "(($ac_try" in
27296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297   *) ac_try_echo=$ac_try;;
27298 esac
27299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27300   (eval "$ac_try") 2>&5
27301   ac_status=$?
27302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303   (exit $ac_status); }; }; then
27304   ac_cv_lib_imagehlp_main=yes
27305 else
27306   echo "$as_me: failed program was:" >&5
27307 sed 's/^/| /' conftest.$ac_ext >&5
27308
27309         ac_cv_lib_imagehlp_main=no
27310 fi
27311
27312 rm -f core conftest.err conftest.$ac_objext \
27313       conftest$ac_exeext conftest.$ac_ext
27314 LIBS=$ac_check_lib_save_LIBS
27315 fi
27316 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27317 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27318 if test $ac_cv_lib_imagehlp_main = yes; then
27319   cat >>confdefs.h <<_ACEOF
27320 #define HAVE_LIBIMAGEHLP 1
27321 _ACEOF
27322
27323   LIBS="-limagehlp $LIBS"
27324
27325 fi
27326
27327
27328 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27329 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27330 if test "${ac_cv_lib_psapi_main+set}" = set; then
27331   echo $ECHO_N "(cached) $ECHO_C" >&6
27332 else
27333   ac_check_lib_save_LIBS=$LIBS
27334 LIBS="-lpsapi  $LIBS"
27335 cat >conftest.$ac_ext <<_ACEOF
27336 /* confdefs.h.  */
27337 _ACEOF
27338 cat confdefs.h >>conftest.$ac_ext
27339 cat >>conftest.$ac_ext <<_ACEOF
27340 /* end confdefs.h.  */
27341
27342
27343 int
27344 main ()
27345 {
27346 return main ();
27347   ;
27348   return 0;
27349 }
27350 _ACEOF
27351 rm -f conftest.$ac_objext conftest$ac_exeext
27352 if { (ac_try="$ac_link"
27353 case "(($ac_try" in
27354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27355   *) ac_try_echo=$ac_try;;
27356 esac
27357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27358   (eval "$ac_link") 2>conftest.er1
27359   ac_status=$?
27360   grep -v '^ *+' conftest.er1 >conftest.err
27361   rm -f conftest.er1
27362   cat conftest.err >&5
27363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364   (exit $ac_status); } &&
27365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27366   { (case "(($ac_try" in
27367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368   *) ac_try_echo=$ac_try;;
27369 esac
27370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371   (eval "$ac_try") 2>&5
27372   ac_status=$?
27373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374   (exit $ac_status); }; } &&
27375          { ac_try='test -s conftest$ac_exeext'
27376   { (case "(($ac_try" in
27377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27378   *) ac_try_echo=$ac_try;;
27379 esac
27380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27381   (eval "$ac_try") 2>&5
27382   ac_status=$?
27383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384   (exit $ac_status); }; }; then
27385   ac_cv_lib_psapi_main=yes
27386 else
27387   echo "$as_me: failed program was:" >&5
27388 sed 's/^/| /' conftest.$ac_ext >&5
27389
27390         ac_cv_lib_psapi_main=no
27391 fi
27392
27393 rm -f core conftest.err conftest.$ac_objext \
27394       conftest$ac_exeext conftest.$ac_ext
27395 LIBS=$ac_check_lib_save_LIBS
27396 fi
27397 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27398 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27399 if test $ac_cv_lib_psapi_main = yes; then
27400   cat >>confdefs.h <<_ACEOF
27401 #define HAVE_LIBPSAPI 1
27402 _ACEOF
27403
27404   LIBS="-lpsapi $LIBS"
27405
27406 fi
27407
27408 fi
27409
27410 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27411 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27412 if test "${ac_cv_search_dlopen+set}" = set; then
27413   echo $ECHO_N "(cached) $ECHO_C" >&6
27414 else
27415   ac_func_search_save_LIBS=$LIBS
27416 cat >conftest.$ac_ext <<_ACEOF
27417 /* confdefs.h.  */
27418 _ACEOF
27419 cat confdefs.h >>conftest.$ac_ext
27420 cat >>conftest.$ac_ext <<_ACEOF
27421 /* end confdefs.h.  */
27422
27423 /* Override any GCC internal prototype to avoid an error.
27424    Use char because int might match the return type of a GCC
27425    builtin and then its argument prototype would still apply.  */
27426 #ifdef __cplusplus
27427 extern "C"
27428 #endif
27429 char dlopen ();
27430 int
27431 main ()
27432 {
27433 return dlopen ();
27434   ;
27435   return 0;
27436 }
27437 _ACEOF
27438 for ac_lib in '' dl; do
27439   if test -z "$ac_lib"; then
27440     ac_res="none required"
27441   else
27442     ac_res=-l$ac_lib
27443     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27444   fi
27445   rm -f conftest.$ac_objext conftest$ac_exeext
27446 if { (ac_try="$ac_link"
27447 case "(($ac_try" in
27448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27449   *) ac_try_echo=$ac_try;;
27450 esac
27451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27452   (eval "$ac_link") 2>conftest.er1
27453   ac_status=$?
27454   grep -v '^ *+' conftest.er1 >conftest.err
27455   rm -f conftest.er1
27456   cat conftest.err >&5
27457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458   (exit $ac_status); } &&
27459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27460   { (case "(($ac_try" in
27461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27462   *) ac_try_echo=$ac_try;;
27463 esac
27464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27465   (eval "$ac_try") 2>&5
27466   ac_status=$?
27467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468   (exit $ac_status); }; } &&
27469          { ac_try='test -s conftest$ac_exeext'
27470   { (case "(($ac_try" in
27471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27472   *) ac_try_echo=$ac_try;;
27473 esac
27474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27475   (eval "$ac_try") 2>&5
27476   ac_status=$?
27477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478   (exit $ac_status); }; }; then
27479   ac_cv_search_dlopen=$ac_res
27480 else
27481   echo "$as_me: failed program was:" >&5
27482 sed 's/^/| /' conftest.$ac_ext >&5
27483
27484
27485 fi
27486
27487 rm -f core conftest.err conftest.$ac_objext \
27488       conftest$ac_exeext
27489   if test "${ac_cv_search_dlopen+set}" = set; then
27490   break
27491 fi
27492 done
27493 if test "${ac_cv_search_dlopen+set}" = set; then
27494   :
27495 else
27496   ac_cv_search_dlopen=no
27497 fi
27498 rm conftest.$ac_ext
27499 LIBS=$ac_func_search_save_LIBS
27500 fi
27501 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27502 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27503 ac_res=$ac_cv_search_dlopen
27504 if test "$ac_res" != no; then
27505   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27506
27507 cat >>confdefs.h <<\_ACEOF
27508 #define HAVE_DLOPEN 1
27509 _ACEOF
27510
27511 else
27512   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27513 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27514 fi
27515
27516
27517 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27518 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27519 if test "${ac_cv_search_mallinfo+set}" = set; then
27520   echo $ECHO_N "(cached) $ECHO_C" >&6
27521 else
27522   ac_func_search_save_LIBS=$LIBS
27523 cat >conftest.$ac_ext <<_ACEOF
27524 /* confdefs.h.  */
27525 _ACEOF
27526 cat confdefs.h >>conftest.$ac_ext
27527 cat >>conftest.$ac_ext <<_ACEOF
27528 /* end confdefs.h.  */
27529
27530 /* Override any GCC internal prototype to avoid an error.
27531    Use char because int might match the return type of a GCC
27532    builtin and then its argument prototype would still apply.  */
27533 #ifdef __cplusplus
27534 extern "C"
27535 #endif
27536 char mallinfo ();
27537 int
27538 main ()
27539 {
27540 return mallinfo ();
27541   ;
27542   return 0;
27543 }
27544 _ACEOF
27545 for ac_lib in '' malloc; do
27546   if test -z "$ac_lib"; then
27547     ac_res="none required"
27548   else
27549     ac_res=-l$ac_lib
27550     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27551   fi
27552   rm -f conftest.$ac_objext conftest$ac_exeext
27553 if { (ac_try="$ac_link"
27554 case "(($ac_try" in
27555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556   *) ac_try_echo=$ac_try;;
27557 esac
27558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27559   (eval "$ac_link") 2>conftest.er1
27560   ac_status=$?
27561   grep -v '^ *+' conftest.er1 >conftest.err
27562   rm -f conftest.er1
27563   cat conftest.err >&5
27564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565   (exit $ac_status); } &&
27566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27567   { (case "(($ac_try" in
27568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27569   *) ac_try_echo=$ac_try;;
27570 esac
27571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27572   (eval "$ac_try") 2>&5
27573   ac_status=$?
27574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575   (exit $ac_status); }; } &&
27576          { ac_try='test -s conftest$ac_exeext'
27577   { (case "(($ac_try" in
27578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579   *) ac_try_echo=$ac_try;;
27580 esac
27581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582   (eval "$ac_try") 2>&5
27583   ac_status=$?
27584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585   (exit $ac_status); }; }; then
27586   ac_cv_search_mallinfo=$ac_res
27587 else
27588   echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27590
27591
27592 fi
27593
27594 rm -f core conftest.err conftest.$ac_objext \
27595       conftest$ac_exeext
27596   if test "${ac_cv_search_mallinfo+set}" = set; then
27597   break
27598 fi
27599 done
27600 if test "${ac_cv_search_mallinfo+set}" = set; then
27601   :
27602 else
27603   ac_cv_search_mallinfo=no
27604 fi
27605 rm conftest.$ac_ext
27606 LIBS=$ac_func_search_save_LIBS
27607 fi
27608 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27609 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27610 ac_res=$ac_cv_search_mallinfo
27611 if test "$ac_res" != no; then
27612   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27613
27614 cat >>confdefs.h <<\_ACEOF
27615 #define HAVE_MALLINFO 1
27616 _ACEOF
27617
27618 fi
27619
27620
27621 if test "$ENABLE_THREADS" -eq 1 ; then
27622
27623 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27624 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27625 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27626   echo $ECHO_N "(cached) $ECHO_C" >&6
27627 else
27628   ac_check_lib_save_LIBS=$LIBS
27629 LIBS="-lpthread  $LIBS"
27630 cat >conftest.$ac_ext <<_ACEOF
27631 /* confdefs.h.  */
27632 _ACEOF
27633 cat confdefs.h >>conftest.$ac_ext
27634 cat >>conftest.$ac_ext <<_ACEOF
27635 /* end confdefs.h.  */
27636
27637 /* Override any GCC internal prototype to avoid an error.
27638    Use char because int might match the return type of a GCC
27639    builtin and then its argument prototype would still apply.  */
27640 #ifdef __cplusplus
27641 extern "C"
27642 #endif
27643 char pthread_mutex_init ();
27644 int
27645 main ()
27646 {
27647 return pthread_mutex_init ();
27648   ;
27649   return 0;
27650 }
27651 _ACEOF
27652 rm -f conftest.$ac_objext conftest$ac_exeext
27653 if { (ac_try="$ac_link"
27654 case "(($ac_try" in
27655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27656   *) ac_try_echo=$ac_try;;
27657 esac
27658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27659   (eval "$ac_link") 2>conftest.er1
27660   ac_status=$?
27661   grep -v '^ *+' conftest.er1 >conftest.err
27662   rm -f conftest.er1
27663   cat conftest.err >&5
27664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665   (exit $ac_status); } &&
27666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27667   { (case "(($ac_try" in
27668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27669   *) ac_try_echo=$ac_try;;
27670 esac
27671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27672   (eval "$ac_try") 2>&5
27673   ac_status=$?
27674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675   (exit $ac_status); }; } &&
27676          { ac_try='test -s conftest$ac_exeext'
27677   { (case "(($ac_try" in
27678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27679   *) ac_try_echo=$ac_try;;
27680 esac
27681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27682   (eval "$ac_try") 2>&5
27683   ac_status=$?
27684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685   (exit $ac_status); }; }; then
27686   ac_cv_lib_pthread_pthread_mutex_init=yes
27687 else
27688   echo "$as_me: failed program was:" >&5
27689 sed 's/^/| /' conftest.$ac_ext >&5
27690
27691         ac_cv_lib_pthread_pthread_mutex_init=no
27692 fi
27693
27694 rm -f core conftest.err conftest.$ac_objext \
27695       conftest$ac_exeext conftest.$ac_ext
27696 LIBS=$ac_check_lib_save_LIBS
27697 fi
27698 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27699 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27700 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27701   cat >>confdefs.h <<_ACEOF
27702 #define HAVE_LIBPTHREAD 1
27703 _ACEOF
27704
27705   LIBS="-lpthread $LIBS"
27706
27707 fi
27708
27709   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27710 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27711 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27712   echo $ECHO_N "(cached) $ECHO_C" >&6
27713 else
27714   ac_func_search_save_LIBS=$LIBS
27715 cat >conftest.$ac_ext <<_ACEOF
27716 /* confdefs.h.  */
27717 _ACEOF
27718 cat confdefs.h >>conftest.$ac_ext
27719 cat >>conftest.$ac_ext <<_ACEOF
27720 /* end confdefs.h.  */
27721
27722 /* Override any GCC internal prototype to avoid an error.
27723    Use char because int might match the return type of a GCC
27724    builtin and then its argument prototype would still apply.  */
27725 #ifdef __cplusplus
27726 extern "C"
27727 #endif
27728 char pthread_mutex_lock ();
27729 int
27730 main ()
27731 {
27732 return pthread_mutex_lock ();
27733   ;
27734   return 0;
27735 }
27736 _ACEOF
27737 for ac_lib in '' pthread; do
27738   if test -z "$ac_lib"; then
27739     ac_res="none required"
27740   else
27741     ac_res=-l$ac_lib
27742     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27743   fi
27744   rm -f conftest.$ac_objext conftest$ac_exeext
27745 if { (ac_try="$ac_link"
27746 case "(($ac_try" in
27747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27748   *) ac_try_echo=$ac_try;;
27749 esac
27750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27751   (eval "$ac_link") 2>conftest.er1
27752   ac_status=$?
27753   grep -v '^ *+' conftest.er1 >conftest.err
27754   rm -f conftest.er1
27755   cat conftest.err >&5
27756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757   (exit $ac_status); } &&
27758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27759   { (case "(($ac_try" in
27760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27761   *) ac_try_echo=$ac_try;;
27762 esac
27763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27764   (eval "$ac_try") 2>&5
27765   ac_status=$?
27766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767   (exit $ac_status); }; } &&
27768          { ac_try='test -s conftest$ac_exeext'
27769   { (case "(($ac_try" in
27770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27771   *) ac_try_echo=$ac_try;;
27772 esac
27773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27774   (eval "$ac_try") 2>&5
27775   ac_status=$?
27776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777   (exit $ac_status); }; }; then
27778   ac_cv_search_pthread_mutex_lock=$ac_res
27779 else
27780   echo "$as_me: failed program was:" >&5
27781 sed 's/^/| /' conftest.$ac_ext >&5
27782
27783
27784 fi
27785
27786 rm -f core conftest.err conftest.$ac_objext \
27787       conftest$ac_exeext
27788   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27789   break
27790 fi
27791 done
27792 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27793   :
27794 else
27795   ac_cv_search_pthread_mutex_lock=no
27796 fi
27797 rm conftest.$ac_ext
27798 LIBS=$ac_func_search_save_LIBS
27799 fi
27800 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27801 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27802 ac_res=$ac_cv_search_pthread_mutex_lock
27803 if test "$ac_res" != no; then
27804   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27805
27806 cat >>confdefs.h <<\_ACEOF
27807 #define HAVE_PTHREAD_MUTEX_LOCK 1
27808 _ACEOF
27809
27810 fi
27811
27812 fi
27813
27814
27815 # Check whether --with-udis86 was given.
27816 if test "${with_udis86+set}" = set; then
27817   withval=$with_udis86;
27818       USE_UDIS86=1
27819
27820       case "$withval" in
27821         /usr/lib|yes) ;;
27822         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27823       esac
27824
27825 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27826 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27827 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27828   echo $ECHO_N "(cached) $ECHO_C" >&6
27829 else
27830   ac_check_lib_save_LIBS=$LIBS
27831 LIBS="-ludis86  $LIBS"
27832 cat >conftest.$ac_ext <<_ACEOF
27833 /* confdefs.h.  */
27834 _ACEOF
27835 cat confdefs.h >>conftest.$ac_ext
27836 cat >>conftest.$ac_ext <<_ACEOF
27837 /* end confdefs.h.  */
27838
27839 /* Override any GCC internal prototype to avoid an error.
27840    Use char because int might match the return type of a GCC
27841    builtin and then its argument prototype would still apply.  */
27842 #ifdef __cplusplus
27843 extern "C"
27844 #endif
27845 char ud_init ();
27846 int
27847 main ()
27848 {
27849 return ud_init ();
27850   ;
27851   return 0;
27852 }
27853 _ACEOF
27854 rm -f conftest.$ac_objext conftest$ac_exeext
27855 if { (ac_try="$ac_link"
27856 case "(($ac_try" in
27857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27858   *) ac_try_echo=$ac_try;;
27859 esac
27860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27861   (eval "$ac_link") 2>conftest.er1
27862   ac_status=$?
27863   grep -v '^ *+' conftest.er1 >conftest.err
27864   rm -f conftest.er1
27865   cat conftest.err >&5
27866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867   (exit $ac_status); } &&
27868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27869   { (case "(($ac_try" in
27870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27871   *) ac_try_echo=$ac_try;;
27872 esac
27873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27874   (eval "$ac_try") 2>&5
27875   ac_status=$?
27876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877   (exit $ac_status); }; } &&
27878          { ac_try='test -s conftest$ac_exeext'
27879   { (case "(($ac_try" in
27880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27881   *) ac_try_echo=$ac_try;;
27882 esac
27883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27884   (eval "$ac_try") 2>&5
27885   ac_status=$?
27886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887   (exit $ac_status); }; }; then
27888   ac_cv_lib_udis86_ud_init=yes
27889 else
27890   echo "$as_me: failed program was:" >&5
27891 sed 's/^/| /' conftest.$ac_ext >&5
27892
27893         ac_cv_lib_udis86_ud_init=no
27894 fi
27895
27896 rm -f core conftest.err conftest.$ac_objext \
27897       conftest$ac_exeext conftest.$ac_ext
27898 LIBS=$ac_check_lib_save_LIBS
27899 fi
27900 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27901 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27902 if test $ac_cv_lib_udis86_ud_init = yes; then
27903   cat >>confdefs.h <<_ACEOF
27904 #define HAVE_LIBUDIS86 1
27905 _ACEOF
27906
27907   LIBS="-ludis86 $LIBS"
27908
27909 else
27910
27911         echo "Error! You need to have libudis86 around."
27912         exit -1
27913
27914 fi
27915
27916
27917 else
27918   USE_UDIS86=0
27919
27920 fi
27921
27922
27923 cat >>confdefs.h <<_ACEOF
27924 #define USE_UDIS86 $USE_UDIS86
27925 _ACEOF
27926
27927
27928
27929
27930
27931
27932
27933
27934 ac_header_dirent=no
27935 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27936   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27937 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27938 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27940   echo $ECHO_N "(cached) $ECHO_C" >&6
27941 else
27942   cat >conftest.$ac_ext <<_ACEOF
27943 /* confdefs.h.  */
27944 _ACEOF
27945 cat confdefs.h >>conftest.$ac_ext
27946 cat >>conftest.$ac_ext <<_ACEOF
27947 /* end confdefs.h.  */
27948 #include <sys/types.h>
27949 #include <$ac_hdr>
27950
27951 int
27952 main ()
27953 {
27954 if ((DIR *) 0)
27955 return 0;
27956   ;
27957   return 0;
27958 }
27959 _ACEOF
27960 rm -f conftest.$ac_objext
27961 if { (ac_try="$ac_compile"
27962 case "(($ac_try" in
27963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27964   *) ac_try_echo=$ac_try;;
27965 esac
27966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27967   (eval "$ac_compile") 2>conftest.er1
27968   ac_status=$?
27969   grep -v '^ *+' conftest.er1 >conftest.err
27970   rm -f conftest.er1
27971   cat conftest.err >&5
27972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973   (exit $ac_status); } &&
27974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27975   { (case "(($ac_try" in
27976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27977   *) ac_try_echo=$ac_try;;
27978 esac
27979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27980   (eval "$ac_try") 2>&5
27981   ac_status=$?
27982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983   (exit $ac_status); }; } &&
27984          { ac_try='test -s conftest.$ac_objext'
27985   { (case "(($ac_try" in
27986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27987   *) ac_try_echo=$ac_try;;
27988 esac
27989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27990   (eval "$ac_try") 2>&5
27991   ac_status=$?
27992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993   (exit $ac_status); }; }; then
27994   eval "$as_ac_Header=yes"
27995 else
27996   echo "$as_me: failed program was:" >&5
27997 sed 's/^/| /' conftest.$ac_ext >&5
27998
27999         eval "$as_ac_Header=no"
28000 fi
28001
28002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28003 fi
28004 ac_res=`eval echo '${'$as_ac_Header'}'`
28005                { echo "$as_me:$LINENO: result: $ac_res" >&5
28006 echo "${ECHO_T}$ac_res" >&6; }
28007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28008   cat >>confdefs.h <<_ACEOF
28009 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28010 _ACEOF
28011
28012 ac_header_dirent=$ac_hdr; break
28013 fi
28014
28015 done
28016 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28017 if test $ac_header_dirent = dirent.h; then
28018   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28019 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28020 if test "${ac_cv_search_opendir+set}" = set; then
28021   echo $ECHO_N "(cached) $ECHO_C" >&6
28022 else
28023   ac_func_search_save_LIBS=$LIBS
28024 cat >conftest.$ac_ext <<_ACEOF
28025 /* confdefs.h.  */
28026 _ACEOF
28027 cat confdefs.h >>conftest.$ac_ext
28028 cat >>conftest.$ac_ext <<_ACEOF
28029 /* end confdefs.h.  */
28030
28031 /* Override any GCC internal prototype to avoid an error.
28032    Use char because int might match the return type of a GCC
28033    builtin and then its argument prototype would still apply.  */
28034 #ifdef __cplusplus
28035 extern "C"
28036 #endif
28037 char opendir ();
28038 int
28039 main ()
28040 {
28041 return opendir ();
28042   ;
28043   return 0;
28044 }
28045 _ACEOF
28046 for ac_lib in '' dir; do
28047   if test -z "$ac_lib"; then
28048     ac_res="none required"
28049   else
28050     ac_res=-l$ac_lib
28051     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28052   fi
28053   rm -f conftest.$ac_objext conftest$ac_exeext
28054 if { (ac_try="$ac_link"
28055 case "(($ac_try" in
28056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28057   *) ac_try_echo=$ac_try;;
28058 esac
28059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28060   (eval "$ac_link") 2>conftest.er1
28061   ac_status=$?
28062   grep -v '^ *+' conftest.er1 >conftest.err
28063   rm -f conftest.er1
28064   cat conftest.err >&5
28065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066   (exit $ac_status); } &&
28067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28068   { (case "(($ac_try" in
28069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28070   *) ac_try_echo=$ac_try;;
28071 esac
28072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28073   (eval "$ac_try") 2>&5
28074   ac_status=$?
28075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076   (exit $ac_status); }; } &&
28077          { ac_try='test -s conftest$ac_exeext'
28078   { (case "(($ac_try" in
28079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28080   *) ac_try_echo=$ac_try;;
28081 esac
28082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28083   (eval "$ac_try") 2>&5
28084   ac_status=$?
28085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086   (exit $ac_status); }; }; then
28087   ac_cv_search_opendir=$ac_res
28088 else
28089   echo "$as_me: failed program was:" >&5
28090 sed 's/^/| /' conftest.$ac_ext >&5
28091
28092
28093 fi
28094
28095 rm -f core conftest.err conftest.$ac_objext \
28096       conftest$ac_exeext
28097   if test "${ac_cv_search_opendir+set}" = set; then
28098   break
28099 fi
28100 done
28101 if test "${ac_cv_search_opendir+set}" = set; then
28102   :
28103 else
28104   ac_cv_search_opendir=no
28105 fi
28106 rm conftest.$ac_ext
28107 LIBS=$ac_func_search_save_LIBS
28108 fi
28109 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28110 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28111 ac_res=$ac_cv_search_opendir
28112 if test "$ac_res" != no; then
28113   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28114
28115 fi
28116
28117 else
28118   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28119 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28120 if test "${ac_cv_search_opendir+set}" = set; then
28121   echo $ECHO_N "(cached) $ECHO_C" >&6
28122 else
28123   ac_func_search_save_LIBS=$LIBS
28124 cat >conftest.$ac_ext <<_ACEOF
28125 /* confdefs.h.  */
28126 _ACEOF
28127 cat confdefs.h >>conftest.$ac_ext
28128 cat >>conftest.$ac_ext <<_ACEOF
28129 /* end confdefs.h.  */
28130
28131 /* Override any GCC internal prototype to avoid an error.
28132    Use char because int might match the return type of a GCC
28133    builtin and then its argument prototype would still apply.  */
28134 #ifdef __cplusplus
28135 extern "C"
28136 #endif
28137 char opendir ();
28138 int
28139 main ()
28140 {
28141 return opendir ();
28142   ;
28143   return 0;
28144 }
28145 _ACEOF
28146 for ac_lib in '' x; do
28147   if test -z "$ac_lib"; then
28148     ac_res="none required"
28149   else
28150     ac_res=-l$ac_lib
28151     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28152   fi
28153   rm -f conftest.$ac_objext conftest$ac_exeext
28154 if { (ac_try="$ac_link"
28155 case "(($ac_try" in
28156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28157   *) ac_try_echo=$ac_try;;
28158 esac
28159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28160   (eval "$ac_link") 2>conftest.er1
28161   ac_status=$?
28162   grep -v '^ *+' conftest.er1 >conftest.err
28163   rm -f conftest.er1
28164   cat conftest.err >&5
28165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166   (exit $ac_status); } &&
28167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28168   { (case "(($ac_try" in
28169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28170   *) ac_try_echo=$ac_try;;
28171 esac
28172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28173   (eval "$ac_try") 2>&5
28174   ac_status=$?
28175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176   (exit $ac_status); }; } &&
28177          { ac_try='test -s conftest$ac_exeext'
28178   { (case "(($ac_try" in
28179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28180   *) ac_try_echo=$ac_try;;
28181 esac
28182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28183   (eval "$ac_try") 2>&5
28184   ac_status=$?
28185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28186   (exit $ac_status); }; }; then
28187   ac_cv_search_opendir=$ac_res
28188 else
28189   echo "$as_me: failed program was:" >&5
28190 sed 's/^/| /' conftest.$ac_ext >&5
28191
28192
28193 fi
28194
28195 rm -f core conftest.err conftest.$ac_objext \
28196       conftest$ac_exeext
28197   if test "${ac_cv_search_opendir+set}" = set; then
28198   break
28199 fi
28200 done
28201 if test "${ac_cv_search_opendir+set}" = set; then
28202   :
28203 else
28204   ac_cv_search_opendir=no
28205 fi
28206 rm conftest.$ac_ext
28207 LIBS=$ac_func_search_save_LIBS
28208 fi
28209 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28210 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28211 ac_res=$ac_cv_search_opendir
28212 if test "$ac_res" != no; then
28213   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28214
28215 fi
28216
28217 fi
28218
28219 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28220 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28221 if test "${ac_cv_header_mmap_anon+set}" = set; then
28222   echo $ECHO_N "(cached) $ECHO_C" >&6
28223 else
28224    ac_ext=c
28225 ac_cpp='$CPP $CPPFLAGS'
28226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28229
28230   cat >conftest.$ac_ext <<_ACEOF
28231 /* confdefs.h.  */
28232 _ACEOF
28233 cat confdefs.h >>conftest.$ac_ext
28234 cat >>conftest.$ac_ext <<_ACEOF
28235 /* end confdefs.h.  */
28236 #include <sys/mman.h>
28237 #include <unistd.h>
28238 #include <fcntl.h>
28239 int
28240 main ()
28241 {
28242 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28243   ;
28244   return 0;
28245 }
28246 _ACEOF
28247 rm -f conftest.$ac_objext
28248 if { (ac_try="$ac_compile"
28249 case "(($ac_try" in
28250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251   *) ac_try_echo=$ac_try;;
28252 esac
28253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254   (eval "$ac_compile") 2>conftest.er1
28255   ac_status=$?
28256   grep -v '^ *+' conftest.er1 >conftest.err
28257   rm -f conftest.er1
28258   cat conftest.err >&5
28259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260   (exit $ac_status); } &&
28261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28262   { (case "(($ac_try" in
28263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28264   *) ac_try_echo=$ac_try;;
28265 esac
28266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28267   (eval "$ac_try") 2>&5
28268   ac_status=$?
28269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270   (exit $ac_status); }; } &&
28271          { ac_try='test -s conftest.$ac_objext'
28272   { (case "(($ac_try" in
28273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274   *) ac_try_echo=$ac_try;;
28275 esac
28276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277   (eval "$ac_try") 2>&5
28278   ac_status=$?
28279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280   (exit $ac_status); }; }; then
28281   ac_cv_header_mmap_anon=yes
28282 else
28283   echo "$as_me: failed program was:" >&5
28284 sed 's/^/| /' conftest.$ac_ext >&5
28285
28286         ac_cv_header_mmap_anon=no
28287 fi
28288
28289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28290   ac_ext=c
28291 ac_cpp='$CPP $CPPFLAGS'
28292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28295
28296
28297 fi
28298 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28299 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28300 if test "$ac_cv_header_mmap_anon" = yes; then
28301
28302 cat >>confdefs.h <<\_ACEOF
28303 #define HAVE_MMAP_ANONYMOUS 1
28304 _ACEOF
28305
28306 fi
28307
28308 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28309 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28310 if test "${ac_cv_header_stat_broken+set}" = set; then
28311   echo $ECHO_N "(cached) $ECHO_C" >&6
28312 else
28313   cat >conftest.$ac_ext <<_ACEOF
28314 /* confdefs.h.  */
28315 _ACEOF
28316 cat confdefs.h >>conftest.$ac_ext
28317 cat >>conftest.$ac_ext <<_ACEOF
28318 /* end confdefs.h.  */
28319 #include <sys/types.h>
28320 #include <sys/stat.h>
28321
28322 #if defined S_ISBLK && defined S_IFDIR
28323 # if S_ISBLK (S_IFDIR)
28324 You lose.
28325 # endif
28326 #endif
28327
28328 #if defined S_ISBLK && defined S_IFCHR
28329 # if S_ISBLK (S_IFCHR)
28330 You lose.
28331 # endif
28332 #endif
28333
28334 #if defined S_ISLNK && defined S_IFREG
28335 # if S_ISLNK (S_IFREG)
28336 You lose.
28337 # endif
28338 #endif
28339
28340 #if defined S_ISSOCK && defined S_IFREG
28341 # if S_ISSOCK (S_IFREG)
28342 You lose.
28343 # endif
28344 #endif
28345
28346 _ACEOF
28347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28348   $EGREP "You lose" >/dev/null 2>&1; then
28349   ac_cv_header_stat_broken=yes
28350 else
28351   ac_cv_header_stat_broken=no
28352 fi
28353 rm -f conftest*
28354
28355 fi
28356 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28357 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28358 if test $ac_cv_header_stat_broken = yes; then
28359
28360 cat >>confdefs.h <<\_ACEOF
28361 #define STAT_MACROS_BROKEN 1
28362 _ACEOF
28363
28364 fi
28365
28366 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28367 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28368 if test "${ac_cv_header_stdc+set}" = set; then
28369   echo $ECHO_N "(cached) $ECHO_C" >&6
28370 else
28371   cat >conftest.$ac_ext <<_ACEOF
28372 /* confdefs.h.  */
28373 _ACEOF
28374 cat confdefs.h >>conftest.$ac_ext
28375 cat >>conftest.$ac_ext <<_ACEOF
28376 /* end confdefs.h.  */
28377 #include <stdlib.h>
28378 #include <stdarg.h>
28379 #include <string.h>
28380 #include <float.h>
28381
28382 int
28383 main ()
28384 {
28385
28386   ;
28387   return 0;
28388 }
28389 _ACEOF
28390 rm -f conftest.$ac_objext
28391 if { (ac_try="$ac_compile"
28392 case "(($ac_try" in
28393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28394   *) ac_try_echo=$ac_try;;
28395 esac
28396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28397   (eval "$ac_compile") 2>conftest.er1
28398   ac_status=$?
28399   grep -v '^ *+' conftest.er1 >conftest.err
28400   rm -f conftest.er1
28401   cat conftest.err >&5
28402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28403   (exit $ac_status); } &&
28404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28405   { (case "(($ac_try" in
28406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28407   *) ac_try_echo=$ac_try;;
28408 esac
28409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28410   (eval "$ac_try") 2>&5
28411   ac_status=$?
28412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413   (exit $ac_status); }; } &&
28414          { ac_try='test -s conftest.$ac_objext'
28415   { (case "(($ac_try" in
28416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28417   *) ac_try_echo=$ac_try;;
28418 esac
28419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420   (eval "$ac_try") 2>&5
28421   ac_status=$?
28422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423   (exit $ac_status); }; }; then
28424   ac_cv_header_stdc=yes
28425 else
28426   echo "$as_me: failed program was:" >&5
28427 sed 's/^/| /' conftest.$ac_ext >&5
28428
28429         ac_cv_header_stdc=no
28430 fi
28431
28432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28433
28434 if test $ac_cv_header_stdc = yes; then
28435   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28436   cat >conftest.$ac_ext <<_ACEOF
28437 /* confdefs.h.  */
28438 _ACEOF
28439 cat confdefs.h >>conftest.$ac_ext
28440 cat >>conftest.$ac_ext <<_ACEOF
28441 /* end confdefs.h.  */
28442 #include <string.h>
28443
28444 _ACEOF
28445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28446   $EGREP "memchr" >/dev/null 2>&1; then
28447   :
28448 else
28449   ac_cv_header_stdc=no
28450 fi
28451 rm -f conftest*
28452
28453 fi
28454
28455 if test $ac_cv_header_stdc = yes; then
28456   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28457   cat >conftest.$ac_ext <<_ACEOF
28458 /* confdefs.h.  */
28459 _ACEOF
28460 cat confdefs.h >>conftest.$ac_ext
28461 cat >>conftest.$ac_ext <<_ACEOF
28462 /* end confdefs.h.  */
28463 #include <stdlib.h>
28464
28465 _ACEOF
28466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28467   $EGREP "free" >/dev/null 2>&1; then
28468   :
28469 else
28470   ac_cv_header_stdc=no
28471 fi
28472 rm -f conftest*
28473
28474 fi
28475
28476 if test $ac_cv_header_stdc = yes; then
28477   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28478   if test "$cross_compiling" = yes; then
28479   :
28480 else
28481   cat >conftest.$ac_ext <<_ACEOF
28482 /* confdefs.h.  */
28483 _ACEOF
28484 cat confdefs.h >>conftest.$ac_ext
28485 cat >>conftest.$ac_ext <<_ACEOF
28486 /* end confdefs.h.  */
28487 #include <ctype.h>
28488 #include <stdlib.h>
28489 #if ((' ' & 0x0FF) == 0x020)
28490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28492 #else
28493 # define ISLOWER(c) \
28494                    (('a' <= (c) && (c) <= 'i') \
28495                      || ('j' <= (c) && (c) <= 'r') \
28496                      || ('s' <= (c) && (c) <= 'z'))
28497 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28498 #endif
28499
28500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28501 int
28502 main ()
28503 {
28504   int i;
28505   for (i = 0; i < 256; i++)
28506     if (XOR (islower (i), ISLOWER (i))
28507         || toupper (i) != TOUPPER (i))
28508       return 2;
28509   return 0;
28510 }
28511 _ACEOF
28512 rm -f conftest$ac_exeext
28513 if { (ac_try="$ac_link"
28514 case "(($ac_try" in
28515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28516   *) ac_try_echo=$ac_try;;
28517 esac
28518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28519   (eval "$ac_link") 2>&5
28520   ac_status=$?
28521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28523   { (case "(($ac_try" in
28524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28525   *) ac_try_echo=$ac_try;;
28526 esac
28527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28528   (eval "$ac_try") 2>&5
28529   ac_status=$?
28530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531   (exit $ac_status); }; }; then
28532   :
28533 else
28534   echo "$as_me: program exited with status $ac_status" >&5
28535 echo "$as_me: failed program was:" >&5
28536 sed 's/^/| /' conftest.$ac_ext >&5
28537
28538 ( exit $ac_status )
28539 ac_cv_header_stdc=no
28540 fi
28541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28542 fi
28543
28544
28545 fi
28546 fi
28547 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28548 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28549 if test $ac_cv_header_stdc = yes; then
28550
28551 cat >>confdefs.h <<\_ACEOF
28552 #define STDC_HEADERS 1
28553 _ACEOF
28554
28555 fi
28556
28557 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28558 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28559 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28560   echo $ECHO_N "(cached) $ECHO_C" >&6
28561 else
28562   cat >conftest.$ac_ext <<_ACEOF
28563 /* confdefs.h.  */
28564 _ACEOF
28565 cat confdefs.h >>conftest.$ac_ext
28566 cat >>conftest.$ac_ext <<_ACEOF
28567 /* end confdefs.h.  */
28568 #include <sys/types.h>
28569 #include <sys/wait.h>
28570 #ifndef WEXITSTATUS
28571 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28572 #endif
28573 #ifndef WIFEXITED
28574 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28575 #endif
28576
28577 int
28578 main ()
28579 {
28580   int s;
28581   wait (&s);
28582   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28583   ;
28584   return 0;
28585 }
28586 _ACEOF
28587 rm -f conftest.$ac_objext
28588 if { (ac_try="$ac_compile"
28589 case "(($ac_try" in
28590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28591   *) ac_try_echo=$ac_try;;
28592 esac
28593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28594   (eval "$ac_compile") 2>conftest.er1
28595   ac_status=$?
28596   grep -v '^ *+' conftest.er1 >conftest.err
28597   rm -f conftest.er1
28598   cat conftest.err >&5
28599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600   (exit $ac_status); } &&
28601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28602   { (case "(($ac_try" in
28603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604   *) ac_try_echo=$ac_try;;
28605 esac
28606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28607   (eval "$ac_try") 2>&5
28608   ac_status=$?
28609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610   (exit $ac_status); }; } &&
28611          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28618   ac_status=$?
28619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620   (exit $ac_status); }; }; then
28621   ac_cv_header_sys_wait_h=yes
28622 else
28623   echo "$as_me: failed program was:" >&5
28624 sed 's/^/| /' conftest.$ac_ext >&5
28625
28626         ac_cv_header_sys_wait_h=no
28627 fi
28628
28629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28630 fi
28631 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28632 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28633 if test $ac_cv_header_sys_wait_h = yes; then
28634
28635 cat >>confdefs.h <<\_ACEOF
28636 #define HAVE_SYS_WAIT_H 1
28637 _ACEOF
28638
28639 fi
28640
28641 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28642 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28643 if test "${ac_cv_header_time+set}" = set; then
28644   echo $ECHO_N "(cached) $ECHO_C" >&6
28645 else
28646   cat >conftest.$ac_ext <<_ACEOF
28647 /* confdefs.h.  */
28648 _ACEOF
28649 cat confdefs.h >>conftest.$ac_ext
28650 cat >>conftest.$ac_ext <<_ACEOF
28651 /* end confdefs.h.  */
28652 #include <sys/types.h>
28653 #include <sys/time.h>
28654 #include <time.h>
28655
28656 int
28657 main ()
28658 {
28659 if ((struct tm *) 0)
28660 return 0;
28661   ;
28662   return 0;
28663 }
28664 _ACEOF
28665 rm -f conftest.$ac_objext
28666 if { (ac_try="$ac_compile"
28667 case "(($ac_try" in
28668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28669   *) ac_try_echo=$ac_try;;
28670 esac
28671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28672   (eval "$ac_compile") 2>conftest.er1
28673   ac_status=$?
28674   grep -v '^ *+' conftest.er1 >conftest.err
28675   rm -f conftest.er1
28676   cat conftest.err >&5
28677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678   (exit $ac_status); } &&
28679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28680   { (case "(($ac_try" in
28681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28682   *) ac_try_echo=$ac_try;;
28683 esac
28684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28685   (eval "$ac_try") 2>&5
28686   ac_status=$?
28687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688   (exit $ac_status); }; } &&
28689          { ac_try='test -s conftest.$ac_objext'
28690   { (case "(($ac_try" in
28691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28692   *) ac_try_echo=$ac_try;;
28693 esac
28694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28695   (eval "$ac_try") 2>&5
28696   ac_status=$?
28697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28698   (exit $ac_status); }; }; then
28699   ac_cv_header_time=yes
28700 else
28701   echo "$as_me: failed program was:" >&5
28702 sed 's/^/| /' conftest.$ac_ext >&5
28703
28704         ac_cv_header_time=no
28705 fi
28706
28707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28708 fi
28709 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28710 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28711 if test $ac_cv_header_time = yes; then
28712
28713 cat >>confdefs.h <<\_ACEOF
28714 #define TIME_WITH_SYS_TIME 1
28715 _ACEOF
28716
28717 fi
28718
28719
28720
28721
28722
28723
28724
28725
28726 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28727 do
28728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28730   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28733   echo $ECHO_N "(cached) $ECHO_C" >&6
28734 fi
28735 ac_res=`eval echo '${'$as_ac_Header'}'`
28736                { echo "$as_me:$LINENO: result: $ac_res" >&5
28737 echo "${ECHO_T}$ac_res" >&6; }
28738 else
28739   # Is the header compilable?
28740 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28742 cat >conftest.$ac_ext <<_ACEOF
28743 /* confdefs.h.  */
28744 _ACEOF
28745 cat confdefs.h >>conftest.$ac_ext
28746 cat >>conftest.$ac_ext <<_ACEOF
28747 /* end confdefs.h.  */
28748 $ac_includes_default
28749 #include <$ac_header>
28750 _ACEOF
28751 rm -f conftest.$ac_objext
28752 if { (ac_try="$ac_compile"
28753 case "(($ac_try" in
28754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755   *) ac_try_echo=$ac_try;;
28756 esac
28757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758   (eval "$ac_compile") 2>conftest.er1
28759   ac_status=$?
28760   grep -v '^ *+' conftest.er1 >conftest.err
28761   rm -f conftest.er1
28762   cat conftest.err >&5
28763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764   (exit $ac_status); } &&
28765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28766   { (case "(($ac_try" in
28767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28768   *) ac_try_echo=$ac_try;;
28769 esac
28770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28771   (eval "$ac_try") 2>&5
28772   ac_status=$?
28773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774   (exit $ac_status); }; } &&
28775          { ac_try='test -s conftest.$ac_objext'
28776   { (case "(($ac_try" in
28777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28778   *) ac_try_echo=$ac_try;;
28779 esac
28780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28781   (eval "$ac_try") 2>&5
28782   ac_status=$?
28783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784   (exit $ac_status); }; }; then
28785   ac_header_compiler=yes
28786 else
28787   echo "$as_me: failed program was:" >&5
28788 sed 's/^/| /' conftest.$ac_ext >&5
28789
28790         ac_header_compiler=no
28791 fi
28792
28793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28795 echo "${ECHO_T}$ac_header_compiler" >&6; }
28796
28797 # Is the header present?
28798 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28800 cat >conftest.$ac_ext <<_ACEOF
28801 /* confdefs.h.  */
28802 _ACEOF
28803 cat confdefs.h >>conftest.$ac_ext
28804 cat >>conftest.$ac_ext <<_ACEOF
28805 /* end confdefs.h.  */
28806 #include <$ac_header>
28807 _ACEOF
28808 if { (ac_try="$ac_cpp conftest.$ac_ext"
28809 case "(($ac_try" in
28810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28811   *) ac_try_echo=$ac_try;;
28812 esac
28813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28814   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28815   ac_status=$?
28816   grep -v '^ *+' conftest.er1 >conftest.err
28817   rm -f conftest.er1
28818   cat conftest.err >&5
28819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820   (exit $ac_status); } >/dev/null; then
28821   if test -s conftest.err; then
28822     ac_cpp_err=$ac_c_preproc_warn_flag
28823     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28824   else
28825     ac_cpp_err=
28826   fi
28827 else
28828   ac_cpp_err=yes
28829 fi
28830 if test -z "$ac_cpp_err"; then
28831   ac_header_preproc=yes
28832 else
28833   echo "$as_me: failed program was:" >&5
28834 sed 's/^/| /' conftest.$ac_ext >&5
28835
28836   ac_header_preproc=no
28837 fi
28838
28839 rm -f conftest.err conftest.$ac_ext
28840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28841 echo "${ECHO_T}$ac_header_preproc" >&6; }
28842
28843 # So?  What about this header?
28844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28845   yes:no: )
28846     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28850     ac_header_preproc=yes
28851     ;;
28852   no:yes:* )
28853     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28855     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28856 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28857     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28859     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28860 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28863     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28865     ( cat <<\_ASBOX
28866 ## ----------------------------------- ##
28867 ## Report this to llvmbugs@cs.uiuc.edu ##
28868 ## ----------------------------------- ##
28869 _ASBOX
28870      ) | sed "s/^/$as_me: WARNING:     /" >&2
28871     ;;
28872 esac
28873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28876   echo $ECHO_N "(cached) $ECHO_C" >&6
28877 else
28878   eval "$as_ac_Header=\$ac_header_preproc"
28879 fi
28880 ac_res=`eval echo '${'$as_ac_Header'}'`
28881                { echo "$as_me:$LINENO: result: $ac_res" >&5
28882 echo "${ECHO_T}$ac_res" >&6; }
28883
28884 fi
28885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28886   cat >>confdefs.h <<_ACEOF
28887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28888 _ACEOF
28889
28890 fi
28891
28892 done
28893
28894
28895
28896
28897
28898
28899
28900 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28901 do
28902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28904   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28907   echo $ECHO_N "(cached) $ECHO_C" >&6
28908 fi
28909 ac_res=`eval echo '${'$as_ac_Header'}'`
28910                { echo "$as_me:$LINENO: result: $ac_res" >&5
28911 echo "${ECHO_T}$ac_res" >&6; }
28912 else
28913   # Is the header compilable?
28914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28916 cat >conftest.$ac_ext <<_ACEOF
28917 /* confdefs.h.  */
28918 _ACEOF
28919 cat confdefs.h >>conftest.$ac_ext
28920 cat >>conftest.$ac_ext <<_ACEOF
28921 /* end confdefs.h.  */
28922 $ac_includes_default
28923 #include <$ac_header>
28924 _ACEOF
28925 rm -f conftest.$ac_objext
28926 if { (ac_try="$ac_compile"
28927 case "(($ac_try" in
28928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28929   *) ac_try_echo=$ac_try;;
28930 esac
28931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28932   (eval "$ac_compile") 2>conftest.er1
28933   ac_status=$?
28934   grep -v '^ *+' conftest.er1 >conftest.err
28935   rm -f conftest.er1
28936   cat conftest.err >&5
28937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938   (exit $ac_status); } &&
28939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28940   { (case "(($ac_try" in
28941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28942   *) ac_try_echo=$ac_try;;
28943 esac
28944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28945   (eval "$ac_try") 2>&5
28946   ac_status=$?
28947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948   (exit $ac_status); }; } &&
28949          { ac_try='test -s conftest.$ac_objext'
28950   { (case "(($ac_try" in
28951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28952   *) ac_try_echo=$ac_try;;
28953 esac
28954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28955   (eval "$ac_try") 2>&5
28956   ac_status=$?
28957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958   (exit $ac_status); }; }; then
28959   ac_header_compiler=yes
28960 else
28961   echo "$as_me: failed program was:" >&5
28962 sed 's/^/| /' conftest.$ac_ext >&5
28963
28964         ac_header_compiler=no
28965 fi
28966
28967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28969 echo "${ECHO_T}$ac_header_compiler" >&6; }
28970
28971 # Is the header present?
28972 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28974 cat >conftest.$ac_ext <<_ACEOF
28975 /* confdefs.h.  */
28976 _ACEOF
28977 cat confdefs.h >>conftest.$ac_ext
28978 cat >>conftest.$ac_ext <<_ACEOF
28979 /* end confdefs.h.  */
28980 #include <$ac_header>
28981 _ACEOF
28982 if { (ac_try="$ac_cpp conftest.$ac_ext"
28983 case "(($ac_try" in
28984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28985   *) ac_try_echo=$ac_try;;
28986 esac
28987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28988   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28989   ac_status=$?
28990   grep -v '^ *+' conftest.er1 >conftest.err
28991   rm -f conftest.er1
28992   cat conftest.err >&5
28993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994   (exit $ac_status); } >/dev/null; then
28995   if test -s conftest.err; then
28996     ac_cpp_err=$ac_c_preproc_warn_flag
28997     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28998   else
28999     ac_cpp_err=
29000   fi
29001 else
29002   ac_cpp_err=yes
29003 fi
29004 if test -z "$ac_cpp_err"; then
29005   ac_header_preproc=yes
29006 else
29007   echo "$as_me: failed program was:" >&5
29008 sed 's/^/| /' conftest.$ac_ext >&5
29009
29010   ac_header_preproc=no
29011 fi
29012
29013 rm -f conftest.err conftest.$ac_ext
29014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29015 echo "${ECHO_T}$ac_header_preproc" >&6; }
29016
29017 # So?  What about this header?
29018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29019   yes:no: )
29020     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29022     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29024     ac_header_preproc=yes
29025     ;;
29026   no:yes:* )
29027     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29029     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29030 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29031     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29033     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29034 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29037     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29039     ( cat <<\_ASBOX
29040 ## ----------------------------------- ##
29041 ## Report this to llvmbugs@cs.uiuc.edu ##
29042 ## ----------------------------------- ##
29043 _ASBOX
29044      ) | sed "s/^/$as_me: WARNING:     /" >&2
29045     ;;
29046 esac
29047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29050   echo $ECHO_N "(cached) $ECHO_C" >&6
29051 else
29052   eval "$as_ac_Header=\$ac_header_preproc"
29053 fi
29054 ac_res=`eval echo '${'$as_ac_Header'}'`
29055                { echo "$as_me:$LINENO: result: $ac_res" >&5
29056 echo "${ECHO_T}$ac_res" >&6; }
29057
29058 fi
29059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29060   cat >>confdefs.h <<_ACEOF
29061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29062 _ACEOF
29063
29064 fi
29065
29066 done
29067
29068
29069 for ac_header in windows.h
29070 do
29071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29073   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29076   echo $ECHO_N "(cached) $ECHO_C" >&6
29077 fi
29078 ac_res=`eval echo '${'$as_ac_Header'}'`
29079                { echo "$as_me:$LINENO: result: $ac_res" >&5
29080 echo "${ECHO_T}$ac_res" >&6; }
29081 else
29082   # Is the header compilable?
29083 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29085 cat >conftest.$ac_ext <<_ACEOF
29086 /* confdefs.h.  */
29087 _ACEOF
29088 cat confdefs.h >>conftest.$ac_ext
29089 cat >>conftest.$ac_ext <<_ACEOF
29090 /* end confdefs.h.  */
29091 $ac_includes_default
29092 #include <$ac_header>
29093 _ACEOF
29094 rm -f conftest.$ac_objext
29095 if { (ac_try="$ac_compile"
29096 case "(($ac_try" in
29097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29098   *) ac_try_echo=$ac_try;;
29099 esac
29100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29101   (eval "$ac_compile") 2>conftest.er1
29102   ac_status=$?
29103   grep -v '^ *+' conftest.er1 >conftest.err
29104   rm -f conftest.er1
29105   cat conftest.err >&5
29106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107   (exit $ac_status); } &&
29108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
29115   ac_status=$?
29116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117   (exit $ac_status); }; } &&
29118          { ac_try='test -s conftest.$ac_objext'
29119   { (case "(($ac_try" in
29120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29121   *) ac_try_echo=$ac_try;;
29122 esac
29123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29124   (eval "$ac_try") 2>&5
29125   ac_status=$?
29126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127   (exit $ac_status); }; }; then
29128   ac_header_compiler=yes
29129 else
29130   echo "$as_me: failed program was:" >&5
29131 sed 's/^/| /' conftest.$ac_ext >&5
29132
29133         ac_header_compiler=no
29134 fi
29135
29136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29138 echo "${ECHO_T}$ac_header_compiler" >&6; }
29139
29140 # Is the header present?
29141 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29143 cat >conftest.$ac_ext <<_ACEOF
29144 /* confdefs.h.  */
29145 _ACEOF
29146 cat confdefs.h >>conftest.$ac_ext
29147 cat >>conftest.$ac_ext <<_ACEOF
29148 /* end confdefs.h.  */
29149 #include <$ac_header>
29150 _ACEOF
29151 if { (ac_try="$ac_cpp conftest.$ac_ext"
29152 case "(($ac_try" in
29153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29154   *) ac_try_echo=$ac_try;;
29155 esac
29156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29157   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29158   ac_status=$?
29159   grep -v '^ *+' conftest.er1 >conftest.err
29160   rm -f conftest.er1
29161   cat conftest.err >&5
29162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163   (exit $ac_status); } >/dev/null; then
29164   if test -s conftest.err; then
29165     ac_cpp_err=$ac_c_preproc_warn_flag
29166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29167   else
29168     ac_cpp_err=
29169   fi
29170 else
29171   ac_cpp_err=yes
29172 fi
29173 if test -z "$ac_cpp_err"; then
29174   ac_header_preproc=yes
29175 else
29176   echo "$as_me: failed program was:" >&5
29177 sed 's/^/| /' conftest.$ac_ext >&5
29178
29179   ac_header_preproc=no
29180 fi
29181
29182 rm -f conftest.err conftest.$ac_ext
29183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29184 echo "${ECHO_T}$ac_header_preproc" >&6; }
29185
29186 # So?  What about this header?
29187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29188   yes:no: )
29189     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29193     ac_header_preproc=yes
29194     ;;
29195   no:yes:* )
29196     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29198     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29199 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29200     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29202     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29203 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29206     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29208     ( cat <<\_ASBOX
29209 ## ----------------------------------- ##
29210 ## Report this to llvmbugs@cs.uiuc.edu ##
29211 ## ----------------------------------- ##
29212 _ASBOX
29213      ) | sed "s/^/$as_me: WARNING:     /" >&2
29214     ;;
29215 esac
29216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29219   echo $ECHO_N "(cached) $ECHO_C" >&6
29220 else
29221   eval "$as_ac_Header=\$ac_header_preproc"
29222 fi
29223 ac_res=`eval echo '${'$as_ac_Header'}'`
29224                { echo "$as_me:$LINENO: result: $ac_res" >&5
29225 echo "${ECHO_T}$ac_res" >&6; }
29226
29227 fi
29228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29229   cat >>confdefs.h <<_ACEOF
29230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29231 _ACEOF
29232
29233 fi
29234
29235 done
29236
29237
29238
29239
29240
29241 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29242 do
29243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29245   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29248   echo $ECHO_N "(cached) $ECHO_C" >&6
29249 fi
29250 ac_res=`eval echo '${'$as_ac_Header'}'`
29251                { echo "$as_me:$LINENO: result: $ac_res" >&5
29252 echo "${ECHO_T}$ac_res" >&6; }
29253 else
29254   # Is the header compilable?
29255 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29257 cat >conftest.$ac_ext <<_ACEOF
29258 /* confdefs.h.  */
29259 _ACEOF
29260 cat confdefs.h >>conftest.$ac_ext
29261 cat >>conftest.$ac_ext <<_ACEOF
29262 /* end confdefs.h.  */
29263 $ac_includes_default
29264 #include <$ac_header>
29265 _ACEOF
29266 rm -f conftest.$ac_objext
29267 if { (ac_try="$ac_compile"
29268 case "(($ac_try" in
29269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29270   *) ac_try_echo=$ac_try;;
29271 esac
29272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29273   (eval "$ac_compile") 2>conftest.er1
29274   ac_status=$?
29275   grep -v '^ *+' conftest.er1 >conftest.err
29276   rm -f conftest.er1
29277   cat conftest.err >&5
29278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279   (exit $ac_status); } &&
29280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29281   { (case "(($ac_try" in
29282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29283   *) ac_try_echo=$ac_try;;
29284 esac
29285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29286   (eval "$ac_try") 2>&5
29287   ac_status=$?
29288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289   (exit $ac_status); }; } &&
29290          { ac_try='test -s conftest.$ac_objext'
29291   { (case "(($ac_try" in
29292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29293   *) ac_try_echo=$ac_try;;
29294 esac
29295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29296   (eval "$ac_try") 2>&5
29297   ac_status=$?
29298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299   (exit $ac_status); }; }; then
29300   ac_header_compiler=yes
29301 else
29302   echo "$as_me: failed program was:" >&5
29303 sed 's/^/| /' conftest.$ac_ext >&5
29304
29305         ac_header_compiler=no
29306 fi
29307
29308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29309 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29310 echo "${ECHO_T}$ac_header_compiler" >&6; }
29311
29312 # Is the header present?
29313 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29315 cat >conftest.$ac_ext <<_ACEOF
29316 /* confdefs.h.  */
29317 _ACEOF
29318 cat confdefs.h >>conftest.$ac_ext
29319 cat >>conftest.$ac_ext <<_ACEOF
29320 /* end confdefs.h.  */
29321 #include <$ac_header>
29322 _ACEOF
29323 if { (ac_try="$ac_cpp conftest.$ac_ext"
29324 case "(($ac_try" in
29325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29326   *) ac_try_echo=$ac_try;;
29327 esac
29328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29329   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29330   ac_status=$?
29331   grep -v '^ *+' conftest.er1 >conftest.err
29332   rm -f conftest.er1
29333   cat conftest.err >&5
29334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335   (exit $ac_status); } >/dev/null; then
29336   if test -s conftest.err; then
29337     ac_cpp_err=$ac_c_preproc_warn_flag
29338     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29339   else
29340     ac_cpp_err=
29341   fi
29342 else
29343   ac_cpp_err=yes
29344 fi
29345 if test -z "$ac_cpp_err"; then
29346   ac_header_preproc=yes
29347 else
29348   echo "$as_me: failed program was:" >&5
29349 sed 's/^/| /' conftest.$ac_ext >&5
29350
29351   ac_header_preproc=no
29352 fi
29353
29354 rm -f conftest.err conftest.$ac_ext
29355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29356 echo "${ECHO_T}$ac_header_preproc" >&6; }
29357
29358 # So?  What about this header?
29359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29360   yes:no: )
29361     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29365     ac_header_preproc=yes
29366     ;;
29367   no:yes:* )
29368     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29370     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29371 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29372     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29374     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29375 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29378     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29380     ( cat <<\_ASBOX
29381 ## ----------------------------------- ##
29382 ## Report this to llvmbugs@cs.uiuc.edu ##
29383 ## ----------------------------------- ##
29384 _ASBOX
29385      ) | sed "s/^/$as_me: WARNING:     /" >&2
29386     ;;
29387 esac
29388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29391   echo $ECHO_N "(cached) $ECHO_C" >&6
29392 else
29393   eval "$as_ac_Header=\$ac_header_preproc"
29394 fi
29395 ac_res=`eval echo '${'$as_ac_Header'}'`
29396                { echo "$as_me:$LINENO: result: $ac_res" >&5
29397 echo "${ECHO_T}$ac_res" >&6; }
29398
29399 fi
29400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29401   cat >>confdefs.h <<_ACEOF
29402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29403 _ACEOF
29404
29405 fi
29406
29407 done
29408
29409
29410
29411
29412 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29413 do
29414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29416   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29419   echo $ECHO_N "(cached) $ECHO_C" >&6
29420 fi
29421 ac_res=`eval echo '${'$as_ac_Header'}'`
29422                { echo "$as_me:$LINENO: result: $ac_res" >&5
29423 echo "${ECHO_T}$ac_res" >&6; }
29424 else
29425   # Is the header compilable?
29426 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29428 cat >conftest.$ac_ext <<_ACEOF
29429 /* confdefs.h.  */
29430 _ACEOF
29431 cat confdefs.h >>conftest.$ac_ext
29432 cat >>conftest.$ac_ext <<_ACEOF
29433 /* end confdefs.h.  */
29434 $ac_includes_default
29435 #include <$ac_header>
29436 _ACEOF
29437 rm -f conftest.$ac_objext
29438 if { (ac_try="$ac_compile"
29439 case "(($ac_try" in
29440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29441   *) ac_try_echo=$ac_try;;
29442 esac
29443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29444   (eval "$ac_compile") 2>conftest.er1
29445   ac_status=$?
29446   grep -v '^ *+' conftest.er1 >conftest.err
29447   rm -f conftest.er1
29448   cat conftest.err >&5
29449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450   (exit $ac_status); } &&
29451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29452   { (case "(($ac_try" in
29453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29454   *) ac_try_echo=$ac_try;;
29455 esac
29456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29457   (eval "$ac_try") 2>&5
29458   ac_status=$?
29459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460   (exit $ac_status); }; } &&
29461          { ac_try='test -s conftest.$ac_objext'
29462   { (case "(($ac_try" in
29463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29464   *) ac_try_echo=$ac_try;;
29465 esac
29466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29467   (eval "$ac_try") 2>&5
29468   ac_status=$?
29469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470   (exit $ac_status); }; }; then
29471   ac_header_compiler=yes
29472 else
29473   echo "$as_me: failed program was:" >&5
29474 sed 's/^/| /' conftest.$ac_ext >&5
29475
29476         ac_header_compiler=no
29477 fi
29478
29479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29481 echo "${ECHO_T}$ac_header_compiler" >&6; }
29482
29483 # Is the header present?
29484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29486 cat >conftest.$ac_ext <<_ACEOF
29487 /* confdefs.h.  */
29488 _ACEOF
29489 cat confdefs.h >>conftest.$ac_ext
29490 cat >>conftest.$ac_ext <<_ACEOF
29491 /* end confdefs.h.  */
29492 #include <$ac_header>
29493 _ACEOF
29494 if { (ac_try="$ac_cpp conftest.$ac_ext"
29495 case "(($ac_try" in
29496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29497   *) ac_try_echo=$ac_try;;
29498 esac
29499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29501   ac_status=$?
29502   grep -v '^ *+' conftest.er1 >conftest.err
29503   rm -f conftest.er1
29504   cat conftest.err >&5
29505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506   (exit $ac_status); } >/dev/null; then
29507   if test -s conftest.err; then
29508     ac_cpp_err=$ac_c_preproc_warn_flag
29509     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29510   else
29511     ac_cpp_err=
29512   fi
29513 else
29514   ac_cpp_err=yes
29515 fi
29516 if test -z "$ac_cpp_err"; then
29517   ac_header_preproc=yes
29518 else
29519   echo "$as_me: failed program was:" >&5
29520 sed 's/^/| /' conftest.$ac_ext >&5
29521
29522   ac_header_preproc=no
29523 fi
29524
29525 rm -f conftest.err conftest.$ac_ext
29526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29527 echo "${ECHO_T}$ac_header_preproc" >&6; }
29528
29529 # So?  What about this header?
29530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29531   yes:no: )
29532     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29536     ac_header_preproc=yes
29537     ;;
29538   no:yes:* )
29539     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29541     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29542 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29543     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29545     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29546 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29549     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29551     ( cat <<\_ASBOX
29552 ## ----------------------------------- ##
29553 ## Report this to llvmbugs@cs.uiuc.edu ##
29554 ## ----------------------------------- ##
29555 _ASBOX
29556      ) | sed "s/^/$as_me: WARNING:     /" >&2
29557     ;;
29558 esac
29559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29562   echo $ECHO_N "(cached) $ECHO_C" >&6
29563 else
29564   eval "$as_ac_Header=\$ac_header_preproc"
29565 fi
29566 ac_res=`eval echo '${'$as_ac_Header'}'`
29567                { echo "$as_me:$LINENO: result: $ac_res" >&5
29568 echo "${ECHO_T}$ac_res" >&6; }
29569
29570 fi
29571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29572   cat >>confdefs.h <<_ACEOF
29573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29574 _ACEOF
29575
29576 fi
29577
29578 done
29579
29580 if test "$ENABLE_THREADS" -eq 1 ; then
29581
29582 for ac_header in pthread.h
29583 do
29584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29586   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29589   echo $ECHO_N "(cached) $ECHO_C" >&6
29590 fi
29591 ac_res=`eval echo '${'$as_ac_Header'}'`
29592                { echo "$as_me:$LINENO: result: $ac_res" >&5
29593 echo "${ECHO_T}$ac_res" >&6; }
29594 else
29595   # Is the header compilable?
29596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29598 cat >conftest.$ac_ext <<_ACEOF
29599 /* confdefs.h.  */
29600 _ACEOF
29601 cat confdefs.h >>conftest.$ac_ext
29602 cat >>conftest.$ac_ext <<_ACEOF
29603 /* end confdefs.h.  */
29604 $ac_includes_default
29605 #include <$ac_header>
29606 _ACEOF
29607 rm -f conftest.$ac_objext
29608 if { (ac_try="$ac_compile"
29609 case "(($ac_try" in
29610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29611   *) ac_try_echo=$ac_try;;
29612 esac
29613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29614   (eval "$ac_compile") 2>conftest.er1
29615   ac_status=$?
29616   grep -v '^ *+' conftest.er1 >conftest.err
29617   rm -f conftest.er1
29618   cat conftest.err >&5
29619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620   (exit $ac_status); } &&
29621          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29622   { (case "(($ac_try" in
29623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29624   *) ac_try_echo=$ac_try;;
29625 esac
29626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29627   (eval "$ac_try") 2>&5
29628   ac_status=$?
29629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630   (exit $ac_status); }; } &&
29631          { ac_try='test -s conftest.$ac_objext'
29632   { (case "(($ac_try" in
29633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29634   *) ac_try_echo=$ac_try;;
29635 esac
29636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29637   (eval "$ac_try") 2>&5
29638   ac_status=$?
29639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640   (exit $ac_status); }; }; then
29641   ac_header_compiler=yes
29642 else
29643   echo "$as_me: failed program was:" >&5
29644 sed 's/^/| /' conftest.$ac_ext >&5
29645
29646         ac_header_compiler=no
29647 fi
29648
29649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29651 echo "${ECHO_T}$ac_header_compiler" >&6; }
29652
29653 # Is the header present?
29654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29656 cat >conftest.$ac_ext <<_ACEOF
29657 /* confdefs.h.  */
29658 _ACEOF
29659 cat confdefs.h >>conftest.$ac_ext
29660 cat >>conftest.$ac_ext <<_ACEOF
29661 /* end confdefs.h.  */
29662 #include <$ac_header>
29663 _ACEOF
29664 if { (ac_try="$ac_cpp conftest.$ac_ext"
29665 case "(($ac_try" in
29666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667   *) ac_try_echo=$ac_try;;
29668 esac
29669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29671   ac_status=$?
29672   grep -v '^ *+' conftest.er1 >conftest.err
29673   rm -f conftest.er1
29674   cat conftest.err >&5
29675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676   (exit $ac_status); } >/dev/null; then
29677   if test -s conftest.err; then
29678     ac_cpp_err=$ac_c_preproc_warn_flag
29679     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29680   else
29681     ac_cpp_err=
29682   fi
29683 else
29684   ac_cpp_err=yes
29685 fi
29686 if test -z "$ac_cpp_err"; then
29687   ac_header_preproc=yes
29688 else
29689   echo "$as_me: failed program was:" >&5
29690 sed 's/^/| /' conftest.$ac_ext >&5
29691
29692   ac_header_preproc=no
29693 fi
29694
29695 rm -f conftest.err conftest.$ac_ext
29696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29697 echo "${ECHO_T}$ac_header_preproc" >&6; }
29698
29699 # So?  What about this header?
29700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29701   yes:no: )
29702     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29706     ac_header_preproc=yes
29707     ;;
29708   no:yes:* )
29709     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29711     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29712 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29713     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29715     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29716 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29717     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29719     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29721     ( cat <<\_ASBOX
29722 ## ----------------------------------- ##
29723 ## Report this to llvmbugs@cs.uiuc.edu ##
29724 ## ----------------------------------- ##
29725 _ASBOX
29726      ) | sed "s/^/$as_me: WARNING:     /" >&2
29727     ;;
29728 esac
29729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29732   echo $ECHO_N "(cached) $ECHO_C" >&6
29733 else
29734   eval "$as_ac_Header=\$ac_header_preproc"
29735 fi
29736 ac_res=`eval echo '${'$as_ac_Header'}'`
29737                { echo "$as_me:$LINENO: result: $ac_res" >&5
29738 echo "${ECHO_T}$ac_res" >&6; }
29739
29740 fi
29741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29742   cat >>confdefs.h <<_ACEOF
29743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29744 _ACEOF
29745  HAVE_PTHREAD=1
29746
29747 else
29748   HAVE_PTHREAD=0
29749
29750 fi
29751
29752 done
29753
29754 else
29755   HAVE_PTHREAD=0
29756
29757 fi
29758
29759
29760
29761   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29762 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29763 if test "${ac_cv_huge_val_sanity+set}" = set; then
29764   echo $ECHO_N "(cached) $ECHO_C" >&6
29765 else
29766
29767     ac_ext=cpp
29768 ac_cpp='$CXXCPP $CPPFLAGS'
29769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29772
29773     CXXFLAGS=-pedantic
29774     if test "$cross_compiling" = yes; then
29775   ac_cv_huge_val_sanity=yes
29776 else
29777   cat >conftest.$ac_ext <<_ACEOF
29778 /* confdefs.h.  */
29779 _ACEOF
29780 cat confdefs.h >>conftest.$ac_ext
29781 cat >>conftest.$ac_ext <<_ACEOF
29782 /* end confdefs.h.  */
29783 #include <math.h>
29784 int
29785 main ()
29786 {
29787 double x = HUGE_VAL; return x != x;
29788   ;
29789   return 0;
29790 }
29791 _ACEOF
29792 rm -f conftest$ac_exeext
29793 if { (ac_try="$ac_link"
29794 case "(($ac_try" in
29795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29796   *) ac_try_echo=$ac_try;;
29797 esac
29798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29799   (eval "$ac_link") 2>&5
29800   ac_status=$?
29801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29803   { (case "(($ac_try" in
29804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29805   *) ac_try_echo=$ac_try;;
29806 esac
29807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29808   (eval "$ac_try") 2>&5
29809   ac_status=$?
29810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811   (exit $ac_status); }; }; then
29812   ac_cv_huge_val_sanity=yes
29813 else
29814   echo "$as_me: program exited with status $ac_status" >&5
29815 echo "$as_me: failed program was:" >&5
29816 sed 's/^/| /' conftest.$ac_ext >&5
29817
29818 ( exit $ac_status )
29819 ac_cv_huge_val_sanity=no
29820 fi
29821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29822 fi
29823
29824
29825     ac_ext=c
29826 ac_cpp='$CPP $CPPFLAGS'
29827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29830
29831
29832 fi
29833 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29834 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29835   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29836
29837
29838 { echo "$as_me:$LINENO: checking for pid_t" >&5
29839 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29840 if test "${ac_cv_type_pid_t+set}" = set; then
29841   echo $ECHO_N "(cached) $ECHO_C" >&6
29842 else
29843   cat >conftest.$ac_ext <<_ACEOF
29844 /* confdefs.h.  */
29845 _ACEOF
29846 cat confdefs.h >>conftest.$ac_ext
29847 cat >>conftest.$ac_ext <<_ACEOF
29848 /* end confdefs.h.  */
29849 $ac_includes_default
29850 typedef pid_t ac__type_new_;
29851 int
29852 main ()
29853 {
29854 if ((ac__type_new_ *) 0)
29855   return 0;
29856 if (sizeof (ac__type_new_))
29857   return 0;
29858   ;
29859   return 0;
29860 }
29861 _ACEOF
29862 rm -f conftest.$ac_objext
29863 if { (ac_try="$ac_compile"
29864 case "(($ac_try" in
29865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29866   *) ac_try_echo=$ac_try;;
29867 esac
29868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29869   (eval "$ac_compile") 2>conftest.er1
29870   ac_status=$?
29871   grep -v '^ *+' conftest.er1 >conftest.err
29872   rm -f conftest.er1
29873   cat conftest.err >&5
29874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875   (exit $ac_status); } &&
29876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29877   { (case "(($ac_try" in
29878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29879   *) ac_try_echo=$ac_try;;
29880 esac
29881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29882   (eval "$ac_try") 2>&5
29883   ac_status=$?
29884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885   (exit $ac_status); }; } &&
29886          { ac_try='test -s conftest.$ac_objext'
29887   { (case "(($ac_try" in
29888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29889   *) ac_try_echo=$ac_try;;
29890 esac
29891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29892   (eval "$ac_try") 2>&5
29893   ac_status=$?
29894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895   (exit $ac_status); }; }; then
29896   ac_cv_type_pid_t=yes
29897 else
29898   echo "$as_me: failed program was:" >&5
29899 sed 's/^/| /' conftest.$ac_ext >&5
29900
29901         ac_cv_type_pid_t=no
29902 fi
29903
29904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29905 fi
29906 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29907 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29908 if test $ac_cv_type_pid_t = yes; then
29909   :
29910 else
29911
29912 cat >>confdefs.h <<_ACEOF
29913 #define pid_t int
29914 _ACEOF
29915
29916 fi
29917
29918 { echo "$as_me:$LINENO: checking for size_t" >&5
29919 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29920 if test "${ac_cv_type_size_t+set}" = set; then
29921   echo $ECHO_N "(cached) $ECHO_C" >&6
29922 else
29923   cat >conftest.$ac_ext <<_ACEOF
29924 /* confdefs.h.  */
29925 _ACEOF
29926 cat confdefs.h >>conftest.$ac_ext
29927 cat >>conftest.$ac_ext <<_ACEOF
29928 /* end confdefs.h.  */
29929 $ac_includes_default
29930 typedef size_t ac__type_new_;
29931 int
29932 main ()
29933 {
29934 if ((ac__type_new_ *) 0)
29935   return 0;
29936 if (sizeof (ac__type_new_))
29937   return 0;
29938   ;
29939   return 0;
29940 }
29941 _ACEOF
29942 rm -f conftest.$ac_objext
29943 if { (ac_try="$ac_compile"
29944 case "(($ac_try" in
29945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29946   *) ac_try_echo=$ac_try;;
29947 esac
29948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29949   (eval "$ac_compile") 2>conftest.er1
29950   ac_status=$?
29951   grep -v '^ *+' conftest.er1 >conftest.err
29952   rm -f conftest.er1
29953   cat conftest.err >&5
29954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29955   (exit $ac_status); } &&
29956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29957   { (case "(($ac_try" in
29958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29959   *) ac_try_echo=$ac_try;;
29960 esac
29961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29962   (eval "$ac_try") 2>&5
29963   ac_status=$?
29964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965   (exit $ac_status); }; } &&
29966          { ac_try='test -s conftest.$ac_objext'
29967   { (case "(($ac_try" in
29968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29969   *) ac_try_echo=$ac_try;;
29970 esac
29971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29972   (eval "$ac_try") 2>&5
29973   ac_status=$?
29974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975   (exit $ac_status); }; }; then
29976   ac_cv_type_size_t=yes
29977 else
29978   echo "$as_me: failed program was:" >&5
29979 sed 's/^/| /' conftest.$ac_ext >&5
29980
29981         ac_cv_type_size_t=no
29982 fi
29983
29984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29985 fi
29986 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29987 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29988 if test $ac_cv_type_size_t = yes; then
29989   :
29990 else
29991
29992 cat >>confdefs.h <<_ACEOF
29993 #define size_t unsigned int
29994 _ACEOF
29995
29996 fi
29997
29998 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29999 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30000 if test "${ac_cv_type_signal+set}" = set; then
30001   echo $ECHO_N "(cached) $ECHO_C" >&6
30002 else
30003   cat >conftest.$ac_ext <<_ACEOF
30004 /* confdefs.h.  */
30005 _ACEOF
30006 cat confdefs.h >>conftest.$ac_ext
30007 cat >>conftest.$ac_ext <<_ACEOF
30008 /* end confdefs.h.  */
30009 #include <sys/types.h>
30010 #include <signal.h>
30011
30012 int
30013 main ()
30014 {
30015 return *(signal (0, 0)) (0) == 1;
30016   ;
30017   return 0;
30018 }
30019 _ACEOF
30020 rm -f conftest.$ac_objext
30021 if { (ac_try="$ac_compile"
30022 case "(($ac_try" in
30023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30024   *) ac_try_echo=$ac_try;;
30025 esac
30026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30027   (eval "$ac_compile") 2>conftest.er1
30028   ac_status=$?
30029   grep -v '^ *+' conftest.er1 >conftest.err
30030   rm -f conftest.er1
30031   cat conftest.err >&5
30032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30033   (exit $ac_status); } &&
30034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30035   { (case "(($ac_try" in
30036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30037   *) ac_try_echo=$ac_try;;
30038 esac
30039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30040   (eval "$ac_try") 2>&5
30041   ac_status=$?
30042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30043   (exit $ac_status); }; } &&
30044          { ac_try='test -s conftest.$ac_objext'
30045   { (case "(($ac_try" in
30046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30047   *) ac_try_echo=$ac_try;;
30048 esac
30049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30050   (eval "$ac_try") 2>&5
30051   ac_status=$?
30052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053   (exit $ac_status); }; }; then
30054   ac_cv_type_signal=int
30055 else
30056   echo "$as_me: failed program was:" >&5
30057 sed 's/^/| /' conftest.$ac_ext >&5
30058
30059         ac_cv_type_signal=void
30060 fi
30061
30062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30063 fi
30064 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30065 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30066
30067 cat >>confdefs.h <<_ACEOF
30068 #define RETSIGTYPE $ac_cv_type_signal
30069 _ACEOF
30070
30071
30072 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30073 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30074 if test "${ac_cv_struct_tm+set}" = set; then
30075   echo $ECHO_N "(cached) $ECHO_C" >&6
30076 else
30077   cat >conftest.$ac_ext <<_ACEOF
30078 /* confdefs.h.  */
30079 _ACEOF
30080 cat confdefs.h >>conftest.$ac_ext
30081 cat >>conftest.$ac_ext <<_ACEOF
30082 /* end confdefs.h.  */
30083 #include <sys/types.h>
30084 #include <time.h>
30085
30086 int
30087 main ()
30088 {
30089 struct tm *tp; tp->tm_sec;
30090   ;
30091   return 0;
30092 }
30093 _ACEOF
30094 rm -f conftest.$ac_objext
30095 if { (ac_try="$ac_compile"
30096 case "(($ac_try" in
30097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30098   *) ac_try_echo=$ac_try;;
30099 esac
30100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30101   (eval "$ac_compile") 2>conftest.er1
30102   ac_status=$?
30103   grep -v '^ *+' conftest.er1 >conftest.err
30104   rm -f conftest.er1
30105   cat conftest.err >&5
30106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107   (exit $ac_status); } &&
30108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30109   { (case "(($ac_try" in
30110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30111   *) ac_try_echo=$ac_try;;
30112 esac
30113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30114   (eval "$ac_try") 2>&5
30115   ac_status=$?
30116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30117   (exit $ac_status); }; } &&
30118          { ac_try='test -s conftest.$ac_objext'
30119   { (case "(($ac_try" in
30120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30121   *) ac_try_echo=$ac_try;;
30122 esac
30123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30124   (eval "$ac_try") 2>&5
30125   ac_status=$?
30126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127   (exit $ac_status); }; }; then
30128   ac_cv_struct_tm=time.h
30129 else
30130   echo "$as_me: failed program was:" >&5
30131 sed 's/^/| /' conftest.$ac_ext >&5
30132
30133         ac_cv_struct_tm=sys/time.h
30134 fi
30135
30136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30137 fi
30138 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30139 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30140 if test $ac_cv_struct_tm = sys/time.h; then
30141
30142 cat >>confdefs.h <<\_ACEOF
30143 #define TM_IN_SYS_TIME 1
30144 _ACEOF
30145
30146 fi
30147
30148 { echo "$as_me:$LINENO: checking for int64_t" >&5
30149 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30150 if test "${ac_cv_type_int64_t+set}" = set; then
30151   echo $ECHO_N "(cached) $ECHO_C" >&6
30152 else
30153   cat >conftest.$ac_ext <<_ACEOF
30154 /* confdefs.h.  */
30155 _ACEOF
30156 cat confdefs.h >>conftest.$ac_ext
30157 cat >>conftest.$ac_ext <<_ACEOF
30158 /* end confdefs.h.  */
30159 $ac_includes_default
30160 typedef int64_t ac__type_new_;
30161 int
30162 main ()
30163 {
30164 if ((ac__type_new_ *) 0)
30165   return 0;
30166 if (sizeof (ac__type_new_))
30167   return 0;
30168   ;
30169   return 0;
30170 }
30171 _ACEOF
30172 rm -f conftest.$ac_objext
30173 if { (ac_try="$ac_compile"
30174 case "(($ac_try" in
30175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176   *) ac_try_echo=$ac_try;;
30177 esac
30178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179   (eval "$ac_compile") 2>conftest.er1
30180   ac_status=$?
30181   grep -v '^ *+' conftest.er1 >conftest.err
30182   rm -f conftest.er1
30183   cat conftest.err >&5
30184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185   (exit $ac_status); } &&
30186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30187   { (case "(($ac_try" in
30188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30189   *) ac_try_echo=$ac_try;;
30190 esac
30191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30192   (eval "$ac_try") 2>&5
30193   ac_status=$?
30194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195   (exit $ac_status); }; } &&
30196          { ac_try='test -s conftest.$ac_objext'
30197   { (case "(($ac_try" in
30198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30199   *) ac_try_echo=$ac_try;;
30200 esac
30201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30202   (eval "$ac_try") 2>&5
30203   ac_status=$?
30204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205   (exit $ac_status); }; }; then
30206   ac_cv_type_int64_t=yes
30207 else
30208   echo "$as_me: failed program was:" >&5
30209 sed 's/^/| /' conftest.$ac_ext >&5
30210
30211         ac_cv_type_int64_t=no
30212 fi
30213
30214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30215 fi
30216 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30217 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30218 if test $ac_cv_type_int64_t = yes; then
30219
30220 cat >>confdefs.h <<_ACEOF
30221 #define HAVE_INT64_T 1
30222 _ACEOF
30223
30224
30225 else
30226   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30227 echo "$as_me: error: Type int64_t required but not found" >&2;}
30228    { (exit 1); exit 1; }; }
30229 fi
30230
30231 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30232 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30233 if test "${ac_cv_type_uint64_t+set}" = set; then
30234   echo $ECHO_N "(cached) $ECHO_C" >&6
30235 else
30236   cat >conftest.$ac_ext <<_ACEOF
30237 /* confdefs.h.  */
30238 _ACEOF
30239 cat confdefs.h >>conftest.$ac_ext
30240 cat >>conftest.$ac_ext <<_ACEOF
30241 /* end confdefs.h.  */
30242 $ac_includes_default
30243 typedef uint64_t ac__type_new_;
30244 int
30245 main ()
30246 {
30247 if ((ac__type_new_ *) 0)
30248   return 0;
30249 if (sizeof (ac__type_new_))
30250   return 0;
30251   ;
30252   return 0;
30253 }
30254 _ACEOF
30255 rm -f conftest.$ac_objext
30256 if { (ac_try="$ac_compile"
30257 case "(($ac_try" in
30258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30259   *) ac_try_echo=$ac_try;;
30260 esac
30261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30262   (eval "$ac_compile") 2>conftest.er1
30263   ac_status=$?
30264   grep -v '^ *+' conftest.er1 >conftest.err
30265   rm -f conftest.er1
30266   cat conftest.err >&5
30267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268   (exit $ac_status); } &&
30269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30270   { (case "(($ac_try" in
30271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30272   *) ac_try_echo=$ac_try;;
30273 esac
30274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30275   (eval "$ac_try") 2>&5
30276   ac_status=$?
30277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278   (exit $ac_status); }; } &&
30279          { ac_try='test -s conftest.$ac_objext'
30280   { (case "(($ac_try" in
30281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30282   *) ac_try_echo=$ac_try;;
30283 esac
30284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30285   (eval "$ac_try") 2>&5
30286   ac_status=$?
30287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288   (exit $ac_status); }; }; then
30289   ac_cv_type_uint64_t=yes
30290 else
30291   echo "$as_me: failed program was:" >&5
30292 sed 's/^/| /' conftest.$ac_ext >&5
30293
30294         ac_cv_type_uint64_t=no
30295 fi
30296
30297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30298 fi
30299 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30300 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30301 if test $ac_cv_type_uint64_t = yes; then
30302
30303 cat >>confdefs.h <<_ACEOF
30304 #define HAVE_UINT64_T 1
30305 _ACEOF
30306
30307
30308 else
30309   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30310 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30311 if test "${ac_cv_type_u_int64_t+set}" = set; then
30312   echo $ECHO_N "(cached) $ECHO_C" >&6
30313 else
30314   cat >conftest.$ac_ext <<_ACEOF
30315 /* confdefs.h.  */
30316 _ACEOF
30317 cat confdefs.h >>conftest.$ac_ext
30318 cat >>conftest.$ac_ext <<_ACEOF
30319 /* end confdefs.h.  */
30320 $ac_includes_default
30321 typedef u_int64_t ac__type_new_;
30322 int
30323 main ()
30324 {
30325 if ((ac__type_new_ *) 0)
30326   return 0;
30327 if (sizeof (ac__type_new_))
30328   return 0;
30329   ;
30330   return 0;
30331 }
30332 _ACEOF
30333 rm -f conftest.$ac_objext
30334 if { (ac_try="$ac_compile"
30335 case "(($ac_try" in
30336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30337   *) ac_try_echo=$ac_try;;
30338 esac
30339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30340   (eval "$ac_compile") 2>conftest.er1
30341   ac_status=$?
30342   grep -v '^ *+' conftest.er1 >conftest.err
30343   rm -f conftest.er1
30344   cat conftest.err >&5
30345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346   (exit $ac_status); } &&
30347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30348   { (case "(($ac_try" in
30349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350   *) ac_try_echo=$ac_try;;
30351 esac
30352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353   (eval "$ac_try") 2>&5
30354   ac_status=$?
30355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356   (exit $ac_status); }; } &&
30357          { ac_try='test -s conftest.$ac_objext'
30358   { (case "(($ac_try" in
30359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30360   *) ac_try_echo=$ac_try;;
30361 esac
30362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30363   (eval "$ac_try") 2>&5
30364   ac_status=$?
30365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366   (exit $ac_status); }; }; then
30367   ac_cv_type_u_int64_t=yes
30368 else
30369   echo "$as_me: failed program was:" >&5
30370 sed 's/^/| /' conftest.$ac_ext >&5
30371
30372         ac_cv_type_u_int64_t=no
30373 fi
30374
30375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30376 fi
30377 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30378 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30379 if test $ac_cv_type_u_int64_t = yes; then
30380
30381 cat >>confdefs.h <<_ACEOF
30382 #define HAVE_U_INT64_T 1
30383 _ACEOF
30384
30385
30386 else
30387   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30388 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30389    { (exit 1); exit 1; }; }
30390 fi
30391
30392 fi
30393
30394
30395
30396
30397
30398
30399
30400
30401
30402
30403 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30404 do
30405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30406 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30409   echo $ECHO_N "(cached) $ECHO_C" >&6
30410 else
30411   cat >conftest.$ac_ext <<_ACEOF
30412 /* confdefs.h.  */
30413 _ACEOF
30414 cat confdefs.h >>conftest.$ac_ext
30415 cat >>conftest.$ac_ext <<_ACEOF
30416 /* end confdefs.h.  */
30417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30419 #define $ac_func innocuous_$ac_func
30420
30421 /* System header to define __stub macros and hopefully few prototypes,
30422     which can conflict with char $ac_func (); below.
30423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30424     <limits.h> exists even on freestanding compilers.  */
30425
30426 #ifdef __STDC__
30427 # include <limits.h>
30428 #else
30429 # include <assert.h>
30430 #endif
30431
30432 #undef $ac_func
30433
30434 /* Override any GCC internal prototype to avoid an error.
30435    Use char because int might match the return type of a GCC
30436    builtin and then its argument prototype would still apply.  */
30437 #ifdef __cplusplus
30438 extern "C"
30439 #endif
30440 char $ac_func ();
30441 /* The GNU C library defines this for functions which it implements
30442     to always fail with ENOSYS.  Some functions are actually named
30443     something starting with __ and the normal name is an alias.  */
30444 #if defined __stub_$ac_func || defined __stub___$ac_func
30445 choke me
30446 #endif
30447
30448 int
30449 main ()
30450 {
30451 return $ac_func ();
30452   ;
30453   return 0;
30454 }
30455 _ACEOF
30456 rm -f conftest.$ac_objext conftest$ac_exeext
30457 if { (ac_try="$ac_link"
30458 case "(($ac_try" in
30459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460   *) ac_try_echo=$ac_try;;
30461 esac
30462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30463   (eval "$ac_link") 2>conftest.er1
30464   ac_status=$?
30465   grep -v '^ *+' conftest.er1 >conftest.err
30466   rm -f conftest.er1
30467   cat conftest.err >&5
30468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469   (exit $ac_status); } &&
30470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30471   { (case "(($ac_try" in
30472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30473   *) ac_try_echo=$ac_try;;
30474 esac
30475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30476   (eval "$ac_try") 2>&5
30477   ac_status=$?
30478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479   (exit $ac_status); }; } &&
30480          { ac_try='test -s conftest$ac_exeext'
30481   { (case "(($ac_try" in
30482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483   *) ac_try_echo=$ac_try;;
30484 esac
30485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30486   (eval "$ac_try") 2>&5
30487   ac_status=$?
30488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489   (exit $ac_status); }; }; then
30490   eval "$as_ac_var=yes"
30491 else
30492   echo "$as_me: failed program was:" >&5
30493 sed 's/^/| /' conftest.$ac_ext >&5
30494
30495         eval "$as_ac_var=no"
30496 fi
30497
30498 rm -f core conftest.err conftest.$ac_objext \
30499       conftest$ac_exeext conftest.$ac_ext
30500 fi
30501 ac_res=`eval echo '${'$as_ac_var'}'`
30502                { echo "$as_me:$LINENO: result: $ac_res" >&5
30503 echo "${ECHO_T}$ac_res" >&6; }
30504 if test `eval echo '${'$as_ac_var'}'` = yes; then
30505   cat >>confdefs.h <<_ACEOF
30506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30507 _ACEOF
30508
30509 fi
30510 done
30511
30512
30513
30514
30515
30516 for ac_func in powf fmodf strtof round
30517 do
30518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30522   echo $ECHO_N "(cached) $ECHO_C" >&6
30523 else
30524   cat >conftest.$ac_ext <<_ACEOF
30525 /* confdefs.h.  */
30526 _ACEOF
30527 cat confdefs.h >>conftest.$ac_ext
30528 cat >>conftest.$ac_ext <<_ACEOF
30529 /* end confdefs.h.  */
30530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30532 #define $ac_func innocuous_$ac_func
30533
30534 /* System header to define __stub macros and hopefully few prototypes,
30535     which can conflict with char $ac_func (); below.
30536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30537     <limits.h> exists even on freestanding compilers.  */
30538
30539 #ifdef __STDC__
30540 # include <limits.h>
30541 #else
30542 # include <assert.h>
30543 #endif
30544
30545 #undef $ac_func
30546
30547 /* Override any GCC internal prototype to avoid an error.
30548    Use char because int might match the return type of a GCC
30549    builtin and then its argument prototype would still apply.  */
30550 #ifdef __cplusplus
30551 extern "C"
30552 #endif
30553 char $ac_func ();
30554 /* The GNU C library defines this for functions which it implements
30555     to always fail with ENOSYS.  Some functions are actually named
30556     something starting with __ and the normal name is an alias.  */
30557 #if defined __stub_$ac_func || defined __stub___$ac_func
30558 choke me
30559 #endif
30560
30561 int
30562 main ()
30563 {
30564 return $ac_func ();
30565   ;
30566   return 0;
30567 }
30568 _ACEOF
30569 rm -f conftest.$ac_objext conftest$ac_exeext
30570 if { (ac_try="$ac_link"
30571 case "(($ac_try" in
30572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30573   *) ac_try_echo=$ac_try;;
30574 esac
30575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30576   (eval "$ac_link") 2>conftest.er1
30577   ac_status=$?
30578   grep -v '^ *+' conftest.er1 >conftest.err
30579   rm -f conftest.er1
30580   cat conftest.err >&5
30581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582   (exit $ac_status); } &&
30583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30584   { (case "(($ac_try" in
30585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30586   *) ac_try_echo=$ac_try;;
30587 esac
30588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30589   (eval "$ac_try") 2>&5
30590   ac_status=$?
30591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592   (exit $ac_status); }; } &&
30593          { ac_try='test -s conftest$ac_exeext'
30594   { (case "(($ac_try" in
30595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30596   *) ac_try_echo=$ac_try;;
30597 esac
30598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30599   (eval "$ac_try") 2>&5
30600   ac_status=$?
30601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602   (exit $ac_status); }; }; then
30603   eval "$as_ac_var=yes"
30604 else
30605   echo "$as_me: failed program was:" >&5
30606 sed 's/^/| /' conftest.$ac_ext >&5
30607
30608         eval "$as_ac_var=no"
30609 fi
30610
30611 rm -f core conftest.err conftest.$ac_objext \
30612       conftest$ac_exeext conftest.$ac_ext
30613 fi
30614 ac_res=`eval echo '${'$as_ac_var'}'`
30615                { echo "$as_me:$LINENO: result: $ac_res" >&5
30616 echo "${ECHO_T}$ac_res" >&6; }
30617 if test `eval echo '${'$as_ac_var'}'` = yes; then
30618   cat >>confdefs.h <<_ACEOF
30619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30620 _ACEOF
30621
30622 fi
30623 done
30624
30625
30626
30627
30628
30629
30630 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30631 do
30632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30633 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30635 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30636   echo $ECHO_N "(cached) $ECHO_C" >&6
30637 else
30638   cat >conftest.$ac_ext <<_ACEOF
30639 /* confdefs.h.  */
30640 _ACEOF
30641 cat confdefs.h >>conftest.$ac_ext
30642 cat >>conftest.$ac_ext <<_ACEOF
30643 /* end confdefs.h.  */
30644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30645    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30646 #define $ac_func innocuous_$ac_func
30647
30648 /* System header to define __stub macros and hopefully few prototypes,
30649     which can conflict with char $ac_func (); below.
30650     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30651     <limits.h> exists even on freestanding compilers.  */
30652
30653 #ifdef __STDC__
30654 # include <limits.h>
30655 #else
30656 # include <assert.h>
30657 #endif
30658
30659 #undef $ac_func
30660
30661 /* Override any GCC internal prototype to avoid an error.
30662    Use char because int might match the return type of a GCC
30663    builtin and then its argument prototype would still apply.  */
30664 #ifdef __cplusplus
30665 extern "C"
30666 #endif
30667 char $ac_func ();
30668 /* The GNU C library defines this for functions which it implements
30669     to always fail with ENOSYS.  Some functions are actually named
30670     something starting with __ and the normal name is an alias.  */
30671 #if defined __stub_$ac_func || defined __stub___$ac_func
30672 choke me
30673 #endif
30674
30675 int
30676 main ()
30677 {
30678 return $ac_func ();
30679   ;
30680   return 0;
30681 }
30682 _ACEOF
30683 rm -f conftest.$ac_objext conftest$ac_exeext
30684 if { (ac_try="$ac_link"
30685 case "(($ac_try" in
30686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30687   *) ac_try_echo=$ac_try;;
30688 esac
30689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30690   (eval "$ac_link") 2>conftest.er1
30691   ac_status=$?
30692   grep -v '^ *+' conftest.er1 >conftest.err
30693   rm -f conftest.er1
30694   cat conftest.err >&5
30695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30696   (exit $ac_status); } &&
30697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30698   { (case "(($ac_try" in
30699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30700   *) ac_try_echo=$ac_try;;
30701 esac
30702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30703   (eval "$ac_try") 2>&5
30704   ac_status=$?
30705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706   (exit $ac_status); }; } &&
30707          { ac_try='test -s conftest$ac_exeext'
30708   { (case "(($ac_try" in
30709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30710   *) ac_try_echo=$ac_try;;
30711 esac
30712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30713   (eval "$ac_try") 2>&5
30714   ac_status=$?
30715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30716   (exit $ac_status); }; }; then
30717   eval "$as_ac_var=yes"
30718 else
30719   echo "$as_me: failed program was:" >&5
30720 sed 's/^/| /' conftest.$ac_ext >&5
30721
30722         eval "$as_ac_var=no"
30723 fi
30724
30725 rm -f core conftest.err conftest.$ac_objext \
30726       conftest$ac_exeext conftest.$ac_ext
30727 fi
30728 ac_res=`eval echo '${'$as_ac_var'}'`
30729                { echo "$as_me:$LINENO: result: $ac_res" >&5
30730 echo "${ECHO_T}$ac_res" >&6; }
30731 if test `eval echo '${'$as_ac_var'}'` = yes; then
30732   cat >>confdefs.h <<_ACEOF
30733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30734 _ACEOF
30735
30736 fi
30737 done
30738
30739
30740
30741
30742 for ac_func in isatty mkdtemp mkstemp
30743 do
30744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30745 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30747 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30748   echo $ECHO_N "(cached) $ECHO_C" >&6
30749 else
30750   cat >conftest.$ac_ext <<_ACEOF
30751 /* confdefs.h.  */
30752 _ACEOF
30753 cat confdefs.h >>conftest.$ac_ext
30754 cat >>conftest.$ac_ext <<_ACEOF
30755 /* end confdefs.h.  */
30756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30758 #define $ac_func innocuous_$ac_func
30759
30760 /* System header to define __stub macros and hopefully few prototypes,
30761     which can conflict with char $ac_func (); below.
30762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30763     <limits.h> exists even on freestanding compilers.  */
30764
30765 #ifdef __STDC__
30766 # include <limits.h>
30767 #else
30768 # include <assert.h>
30769 #endif
30770
30771 #undef $ac_func
30772
30773 /* Override any GCC internal prototype to avoid an error.
30774    Use char because int might match the return type of a GCC
30775    builtin and then its argument prototype would still apply.  */
30776 #ifdef __cplusplus
30777 extern "C"
30778 #endif
30779 char $ac_func ();
30780 /* The GNU C library defines this for functions which it implements
30781     to always fail with ENOSYS.  Some functions are actually named
30782     something starting with __ and the normal name is an alias.  */
30783 #if defined __stub_$ac_func || defined __stub___$ac_func
30784 choke me
30785 #endif
30786
30787 int
30788 main ()
30789 {
30790 return $ac_func ();
30791   ;
30792   return 0;
30793 }
30794 _ACEOF
30795 rm -f conftest.$ac_objext conftest$ac_exeext
30796 if { (ac_try="$ac_link"
30797 case "(($ac_try" in
30798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30799   *) ac_try_echo=$ac_try;;
30800 esac
30801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30802   (eval "$ac_link") 2>conftest.er1
30803   ac_status=$?
30804   grep -v '^ *+' conftest.er1 >conftest.err
30805   rm -f conftest.er1
30806   cat conftest.err >&5
30807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30808   (exit $ac_status); } &&
30809          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30810   { (case "(($ac_try" in
30811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30812   *) ac_try_echo=$ac_try;;
30813 esac
30814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30815   (eval "$ac_try") 2>&5
30816   ac_status=$?
30817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818   (exit $ac_status); }; } &&
30819          { ac_try='test -s conftest$ac_exeext'
30820   { (case "(($ac_try" in
30821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30822   *) ac_try_echo=$ac_try;;
30823 esac
30824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30825   (eval "$ac_try") 2>&5
30826   ac_status=$?
30827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828   (exit $ac_status); }; }; then
30829   eval "$as_ac_var=yes"
30830 else
30831   echo "$as_me: failed program was:" >&5
30832 sed 's/^/| /' conftest.$ac_ext >&5
30833
30834         eval "$as_ac_var=no"
30835 fi
30836
30837 rm -f core conftest.err conftest.$ac_objext \
30838       conftest$ac_exeext conftest.$ac_ext
30839 fi
30840 ac_res=`eval echo '${'$as_ac_var'}'`
30841                { echo "$as_me:$LINENO: result: $ac_res" >&5
30842 echo "${ECHO_T}$ac_res" >&6; }
30843 if test `eval echo '${'$as_ac_var'}'` = yes; then
30844   cat >>confdefs.h <<_ACEOF
30845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30846 _ACEOF
30847
30848 fi
30849 done
30850
30851
30852
30853
30854
30855
30856
30857
30858 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30859 do
30860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30864   echo $ECHO_N "(cached) $ECHO_C" >&6
30865 else
30866   cat >conftest.$ac_ext <<_ACEOF
30867 /* confdefs.h.  */
30868 _ACEOF
30869 cat confdefs.h >>conftest.$ac_ext
30870 cat >>conftest.$ac_ext <<_ACEOF
30871 /* end confdefs.h.  */
30872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30874 #define $ac_func innocuous_$ac_func
30875
30876 /* System header to define __stub macros and hopefully few prototypes,
30877     which can conflict with char $ac_func (); below.
30878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30879     <limits.h> exists even on freestanding compilers.  */
30880
30881 #ifdef __STDC__
30882 # include <limits.h>
30883 #else
30884 # include <assert.h>
30885 #endif
30886
30887 #undef $ac_func
30888
30889 /* Override any GCC internal prototype to avoid an error.
30890    Use char because int might match the return type of a GCC
30891    builtin and then its argument prototype would still apply.  */
30892 #ifdef __cplusplus
30893 extern "C"
30894 #endif
30895 char $ac_func ();
30896 /* The GNU C library defines this for functions which it implements
30897     to always fail with ENOSYS.  Some functions are actually named
30898     something starting with __ and the normal name is an alias.  */
30899 #if defined __stub_$ac_func || defined __stub___$ac_func
30900 choke me
30901 #endif
30902
30903 int
30904 main ()
30905 {
30906 return $ac_func ();
30907   ;
30908   return 0;
30909 }
30910 _ACEOF
30911 rm -f conftest.$ac_objext conftest$ac_exeext
30912 if { (ac_try="$ac_link"
30913 case "(($ac_try" in
30914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30915   *) ac_try_echo=$ac_try;;
30916 esac
30917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30918   (eval "$ac_link") 2>conftest.er1
30919   ac_status=$?
30920   grep -v '^ *+' conftest.er1 >conftest.err
30921   rm -f conftest.er1
30922   cat conftest.err >&5
30923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924   (exit $ac_status); } &&
30925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30926   { (case "(($ac_try" in
30927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30928   *) ac_try_echo=$ac_try;;
30929 esac
30930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30931   (eval "$ac_try") 2>&5
30932   ac_status=$?
30933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934   (exit $ac_status); }; } &&
30935          { ac_try='test -s conftest$ac_exeext'
30936   { (case "(($ac_try" in
30937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938   *) ac_try_echo=$ac_try;;
30939 esac
30940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941   (eval "$ac_try") 2>&5
30942   ac_status=$?
30943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944   (exit $ac_status); }; }; then
30945   eval "$as_ac_var=yes"
30946 else
30947   echo "$as_me: failed program was:" >&5
30948 sed 's/^/| /' conftest.$ac_ext >&5
30949
30950         eval "$as_ac_var=no"
30951 fi
30952
30953 rm -f core conftest.err conftest.$ac_objext \
30954       conftest$ac_exeext conftest.$ac_ext
30955 fi
30956 ac_res=`eval echo '${'$as_ac_var'}'`
30957                { echo "$as_me:$LINENO: result: $ac_res" >&5
30958 echo "${ECHO_T}$ac_res" >&6; }
30959 if test `eval echo '${'$as_ac_var'}'` = yes; then
30960   cat >>confdefs.h <<_ACEOF
30961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30962 _ACEOF
30963
30964 fi
30965 done
30966
30967
30968
30969
30970
30971 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30972 do
30973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30974 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30976 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30977   echo $ECHO_N "(cached) $ECHO_C" >&6
30978 else
30979   cat >conftest.$ac_ext <<_ACEOF
30980 /* confdefs.h.  */
30981 _ACEOF
30982 cat confdefs.h >>conftest.$ac_ext
30983 cat >>conftest.$ac_ext <<_ACEOF
30984 /* end confdefs.h.  */
30985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30987 #define $ac_func innocuous_$ac_func
30988
30989 /* System header to define __stub macros and hopefully few prototypes,
30990     which can conflict with char $ac_func (); below.
30991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30992     <limits.h> exists even on freestanding compilers.  */
30993
30994 #ifdef __STDC__
30995 # include <limits.h>
30996 #else
30997 # include <assert.h>
30998 #endif
30999
31000 #undef $ac_func
31001
31002 /* Override any GCC internal prototype to avoid an error.
31003    Use char because int might match the return type of a GCC
31004    builtin and then its argument prototype would still apply.  */
31005 #ifdef __cplusplus
31006 extern "C"
31007 #endif
31008 char $ac_func ();
31009 /* The GNU C library defines this for functions which it implements
31010     to always fail with ENOSYS.  Some functions are actually named
31011     something starting with __ and the normal name is an alias.  */
31012 #if defined __stub_$ac_func || defined __stub___$ac_func
31013 choke me
31014 #endif
31015
31016 int
31017 main ()
31018 {
31019 return $ac_func ();
31020   ;
31021   return 0;
31022 }
31023 _ACEOF
31024 rm -f conftest.$ac_objext conftest$ac_exeext
31025 if { (ac_try="$ac_link"
31026 case "(($ac_try" in
31027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31028   *) ac_try_echo=$ac_try;;
31029 esac
31030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31031   (eval "$ac_link") 2>conftest.er1
31032   ac_status=$?
31033   grep -v '^ *+' conftest.er1 >conftest.err
31034   rm -f conftest.er1
31035   cat conftest.err >&5
31036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31037   (exit $ac_status); } &&
31038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31039   { (case "(($ac_try" in
31040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31041   *) ac_try_echo=$ac_try;;
31042 esac
31043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31044   (eval "$ac_try") 2>&5
31045   ac_status=$?
31046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31047   (exit $ac_status); }; } &&
31048          { ac_try='test -s conftest$ac_exeext'
31049   { (case "(($ac_try" in
31050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051   *) ac_try_echo=$ac_try;;
31052 esac
31053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054   (eval "$ac_try") 2>&5
31055   ac_status=$?
31056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057   (exit $ac_status); }; }; then
31058   eval "$as_ac_var=yes"
31059 else
31060   echo "$as_me: failed program was:" >&5
31061 sed 's/^/| /' conftest.$ac_ext >&5
31062
31063         eval "$as_ac_var=no"
31064 fi
31065
31066 rm -f core conftest.err conftest.$ac_objext \
31067       conftest$ac_exeext conftest.$ac_ext
31068 fi
31069 ac_res=`eval echo '${'$as_ac_var'}'`
31070                { echo "$as_me:$LINENO: result: $ac_res" >&5
31071 echo "${ECHO_T}$ac_res" >&6; }
31072 if test `eval echo '${'$as_ac_var'}'` = yes; then
31073   cat >>confdefs.h <<_ACEOF
31074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31075 _ACEOF
31076
31077 fi
31078 done
31079
31080
31081
31082
31083
31084 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31085 do
31086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31087 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31089 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31090   echo $ECHO_N "(cached) $ECHO_C" >&6
31091 else
31092   cat >conftest.$ac_ext <<_ACEOF
31093 /* confdefs.h.  */
31094 _ACEOF
31095 cat confdefs.h >>conftest.$ac_ext
31096 cat >>conftest.$ac_ext <<_ACEOF
31097 /* end confdefs.h.  */
31098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31099    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31100 #define $ac_func innocuous_$ac_func
31101
31102 /* System header to define __stub macros and hopefully few prototypes,
31103     which can conflict with char $ac_func (); below.
31104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31105     <limits.h> exists even on freestanding compilers.  */
31106
31107 #ifdef __STDC__
31108 # include <limits.h>
31109 #else
31110 # include <assert.h>
31111 #endif
31112
31113 #undef $ac_func
31114
31115 /* Override any GCC internal prototype to avoid an error.
31116    Use char because int might match the return type of a GCC
31117    builtin and then its argument prototype would still apply.  */
31118 #ifdef __cplusplus
31119 extern "C"
31120 #endif
31121 char $ac_func ();
31122 /* The GNU C library defines this for functions which it implements
31123     to always fail with ENOSYS.  Some functions are actually named
31124     something starting with __ and the normal name is an alias.  */
31125 #if defined __stub_$ac_func || defined __stub___$ac_func
31126 choke me
31127 #endif
31128
31129 int
31130 main ()
31131 {
31132 return $ac_func ();
31133   ;
31134   return 0;
31135 }
31136 _ACEOF
31137 rm -f conftest.$ac_objext conftest$ac_exeext
31138 if { (ac_try="$ac_link"
31139 case "(($ac_try" in
31140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31141   *) ac_try_echo=$ac_try;;
31142 esac
31143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31144   (eval "$ac_link") 2>conftest.er1
31145   ac_status=$?
31146   grep -v '^ *+' conftest.er1 >conftest.err
31147   rm -f conftest.er1
31148   cat conftest.err >&5
31149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150   (exit $ac_status); } &&
31151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31152   { (case "(($ac_try" in
31153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154   *) ac_try_echo=$ac_try;;
31155 esac
31156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31157   (eval "$ac_try") 2>&5
31158   ac_status=$?
31159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160   (exit $ac_status); }; } &&
31161          { ac_try='test -s conftest$ac_exeext'
31162   { (case "(($ac_try" in
31163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31164   *) ac_try_echo=$ac_try;;
31165 esac
31166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31167   (eval "$ac_try") 2>&5
31168   ac_status=$?
31169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170   (exit $ac_status); }; }; then
31171   eval "$as_ac_var=yes"
31172 else
31173   echo "$as_me: failed program was:" >&5
31174 sed 's/^/| /' conftest.$ac_ext >&5
31175
31176         eval "$as_ac_var=no"
31177 fi
31178
31179 rm -f core conftest.err conftest.$ac_objext \
31180       conftest$ac_exeext conftest.$ac_ext
31181 fi
31182 ac_res=`eval echo '${'$as_ac_var'}'`
31183                { echo "$as_me:$LINENO: result: $ac_res" >&5
31184 echo "${ECHO_T}$ac_res" >&6; }
31185 if test `eval echo '${'$as_ac_var'}'` = yes; then
31186   cat >>confdefs.h <<_ACEOF
31187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31188 _ACEOF
31189
31190 fi
31191 done
31192
31193 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31194 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31195 if test "${llvm_cv_c_printf_a+set}" = set; then
31196   echo $ECHO_N "(cached) $ECHO_C" >&6
31197 else
31198   ac_ext=c
31199 ac_cpp='$CPP $CPPFLAGS'
31200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31203
31204  if test "$cross_compiling" = yes; then
31205   llvmac_cv_c_printf_a=no
31206 else
31207   cat >conftest.$ac_ext <<_ACEOF
31208
31209   /* confdefs.h.  */
31210 _ACEOF
31211 cat confdefs.h >>conftest.$ac_ext
31212 cat >>conftest.$ac_ext <<_ACEOF
31213 /* end confdefs.h.  */
31214
31215 #include <stdio.h>
31216 #include <stdlib.h>
31217
31218 int
31219 main ()
31220 {
31221
31222 volatile double A, B;
31223 char Buffer[100];
31224 A = 1;
31225 A /= 10.0;
31226 sprintf(Buffer, "%a", A);
31227 B = atof(Buffer);
31228 if (A != B)
31229   return (1);
31230 if (A != 0x1.999999999999ap-4)
31231   return (1);
31232 return (0);
31233   ;
31234   return 0;
31235 }
31236 _ACEOF
31237 rm -f conftest$ac_exeext
31238 if { (ac_try="$ac_link"
31239 case "(($ac_try" in
31240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31241   *) ac_try_echo=$ac_try;;
31242 esac
31243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31244   (eval "$ac_link") 2>&5
31245   ac_status=$?
31246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31248   { (case "(($ac_try" in
31249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31250   *) ac_try_echo=$ac_try;;
31251 esac
31252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31253   (eval "$ac_try") 2>&5
31254   ac_status=$?
31255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31256   (exit $ac_status); }; }; then
31257   llvm_cv_c_printf_a=yes
31258 else
31259   echo "$as_me: program exited with status $ac_status" >&5
31260 echo "$as_me: failed program was:" >&5
31261 sed 's/^/| /' conftest.$ac_ext >&5
31262
31263 ( exit $ac_status )
31264 llvmac_cv_c_printf_a=no
31265 fi
31266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31267 fi
31268
31269
31270  ac_ext=c
31271 ac_cpp='$CPP $CPPFLAGS'
31272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31275
31276 fi
31277 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31278 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31279  if test "$llvm_cv_c_printf_a" = "yes"; then
31280
31281 cat >>confdefs.h <<\_ACEOF
31282 #define HAVE_PRINTF_A 1
31283 _ACEOF
31284
31285  fi
31286
31287 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31288 # for constant arguments.  Useless!
31289 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31290 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31291 if test "${ac_cv_working_alloca_h+set}" = set; then
31292   echo $ECHO_N "(cached) $ECHO_C" >&6
31293 else
31294   cat >conftest.$ac_ext <<_ACEOF
31295 /* confdefs.h.  */
31296 _ACEOF
31297 cat confdefs.h >>conftest.$ac_ext
31298 cat >>conftest.$ac_ext <<_ACEOF
31299 /* end confdefs.h.  */
31300 #include <alloca.h>
31301 int
31302 main ()
31303 {
31304 char *p = (char *) alloca (2 * sizeof (int));
31305                           if (p) return 0;
31306   ;
31307   return 0;
31308 }
31309 _ACEOF
31310 rm -f conftest.$ac_objext conftest$ac_exeext
31311 if { (ac_try="$ac_link"
31312 case "(($ac_try" in
31313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31314   *) ac_try_echo=$ac_try;;
31315 esac
31316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31317   (eval "$ac_link") 2>conftest.er1
31318   ac_status=$?
31319   grep -v '^ *+' conftest.er1 >conftest.err
31320   rm -f conftest.er1
31321   cat conftest.err >&5
31322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323   (exit $ac_status); } &&
31324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31325   { (case "(($ac_try" in
31326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31327   *) ac_try_echo=$ac_try;;
31328 esac
31329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31330   (eval "$ac_try") 2>&5
31331   ac_status=$?
31332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333   (exit $ac_status); }; } &&
31334          { ac_try='test -s conftest$ac_exeext'
31335   { (case "(($ac_try" in
31336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31337   *) ac_try_echo=$ac_try;;
31338 esac
31339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31340   (eval "$ac_try") 2>&5
31341   ac_status=$?
31342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343   (exit $ac_status); }; }; then
31344   ac_cv_working_alloca_h=yes
31345 else
31346   echo "$as_me: failed program was:" >&5
31347 sed 's/^/| /' conftest.$ac_ext >&5
31348
31349         ac_cv_working_alloca_h=no
31350 fi
31351
31352 rm -f core conftest.err conftest.$ac_objext \
31353       conftest$ac_exeext conftest.$ac_ext
31354 fi
31355 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31356 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31357 if test $ac_cv_working_alloca_h = yes; then
31358
31359 cat >>confdefs.h <<\_ACEOF
31360 #define HAVE_ALLOCA_H 1
31361 _ACEOF
31362
31363 fi
31364
31365 { echo "$as_me:$LINENO: checking for alloca" >&5
31366 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31367 if test "${ac_cv_func_alloca_works+set}" = set; then
31368   echo $ECHO_N "(cached) $ECHO_C" >&6
31369 else
31370   cat >conftest.$ac_ext <<_ACEOF
31371 /* confdefs.h.  */
31372 _ACEOF
31373 cat confdefs.h >>conftest.$ac_ext
31374 cat >>conftest.$ac_ext <<_ACEOF
31375 /* end confdefs.h.  */
31376 #ifdef __GNUC__
31377 # define alloca __builtin_alloca
31378 #else
31379 # ifdef _MSC_VER
31380 #  include <malloc.h>
31381 #  define alloca _alloca
31382 # else
31383 #  if HAVE_ALLOCA_H
31384 #   include <alloca.h>
31385 #  else
31386 #   ifdef _AIX
31387  #pragma alloca
31388 #   else
31389 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31390 char *alloca ();
31391 #    endif
31392 #   endif
31393 #  endif
31394 # endif
31395 #endif
31396
31397 int
31398 main ()
31399 {
31400 char *p = (char *) alloca (1);
31401                                     if (p) return 0;
31402   ;
31403   return 0;
31404 }
31405 _ACEOF
31406 rm -f conftest.$ac_objext conftest$ac_exeext
31407 if { (ac_try="$ac_link"
31408 case "(($ac_try" in
31409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31410   *) ac_try_echo=$ac_try;;
31411 esac
31412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31413   (eval "$ac_link") 2>conftest.er1
31414   ac_status=$?
31415   grep -v '^ *+' conftest.er1 >conftest.err
31416   rm -f conftest.er1
31417   cat conftest.err >&5
31418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31419   (exit $ac_status); } &&
31420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31421   { (case "(($ac_try" in
31422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31423   *) ac_try_echo=$ac_try;;
31424 esac
31425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31426   (eval "$ac_try") 2>&5
31427   ac_status=$?
31428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429   (exit $ac_status); }; } &&
31430          { ac_try='test -s conftest$ac_exeext'
31431   { (case "(($ac_try" in
31432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31433   *) ac_try_echo=$ac_try;;
31434 esac
31435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31436   (eval "$ac_try") 2>&5
31437   ac_status=$?
31438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31439   (exit $ac_status); }; }; then
31440   ac_cv_func_alloca_works=yes
31441 else
31442   echo "$as_me: failed program was:" >&5
31443 sed 's/^/| /' conftest.$ac_ext >&5
31444
31445         ac_cv_func_alloca_works=no
31446 fi
31447
31448 rm -f core conftest.err conftest.$ac_objext \
31449       conftest$ac_exeext conftest.$ac_ext
31450 fi
31451 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31452 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31453
31454 if test $ac_cv_func_alloca_works = yes; then
31455
31456 cat >>confdefs.h <<\_ACEOF
31457 #define HAVE_ALLOCA 1
31458 _ACEOF
31459
31460 else
31461   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31462 # that cause trouble.  Some versions do not even contain alloca or
31463 # contain a buggy version.  If you still want to use their alloca,
31464 # use ar to extract alloca.o from them instead of compiling alloca.c.
31465
31466 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31467
31468 cat >>confdefs.h <<\_ACEOF
31469 #define C_ALLOCA 1
31470 _ACEOF
31471
31472
31473 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31474 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31475 if test "${ac_cv_os_cray+set}" = set; then
31476   echo $ECHO_N "(cached) $ECHO_C" >&6
31477 else
31478   cat >conftest.$ac_ext <<_ACEOF
31479 /* confdefs.h.  */
31480 _ACEOF
31481 cat confdefs.h >>conftest.$ac_ext
31482 cat >>conftest.$ac_ext <<_ACEOF
31483 /* end confdefs.h.  */
31484 #if defined CRAY && ! defined CRAY2
31485 webecray
31486 #else
31487 wenotbecray
31488 #endif
31489
31490 _ACEOF
31491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31492   $EGREP "webecray" >/dev/null 2>&1; then
31493   ac_cv_os_cray=yes
31494 else
31495   ac_cv_os_cray=no
31496 fi
31497 rm -f conftest*
31498
31499 fi
31500 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31501 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31502 if test $ac_cv_os_cray = yes; then
31503   for ac_func in _getb67 GETB67 getb67; do
31504     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31508   echo $ECHO_N "(cached) $ECHO_C" >&6
31509 else
31510   cat >conftest.$ac_ext <<_ACEOF
31511 /* confdefs.h.  */
31512 _ACEOF
31513 cat confdefs.h >>conftest.$ac_ext
31514 cat >>conftest.$ac_ext <<_ACEOF
31515 /* end confdefs.h.  */
31516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31518 #define $ac_func innocuous_$ac_func
31519
31520 /* System header to define __stub macros and hopefully few prototypes,
31521     which can conflict with char $ac_func (); below.
31522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31523     <limits.h> exists even on freestanding compilers.  */
31524
31525 #ifdef __STDC__
31526 # include <limits.h>
31527 #else
31528 # include <assert.h>
31529 #endif
31530
31531 #undef $ac_func
31532
31533 /* Override any GCC internal prototype to avoid an error.
31534    Use char because int might match the return type of a GCC
31535    builtin and then its argument prototype would still apply.  */
31536 #ifdef __cplusplus
31537 extern "C"
31538 #endif
31539 char $ac_func ();
31540 /* The GNU C library defines this for functions which it implements
31541     to always fail with ENOSYS.  Some functions are actually named
31542     something starting with __ and the normal name is an alias.  */
31543 #if defined __stub_$ac_func || defined __stub___$ac_func
31544 choke me
31545 #endif
31546
31547 int
31548 main ()
31549 {
31550 return $ac_func ();
31551   ;
31552   return 0;
31553 }
31554 _ACEOF
31555 rm -f conftest.$ac_objext conftest$ac_exeext
31556 if { (ac_try="$ac_link"
31557 case "(($ac_try" in
31558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31559   *) ac_try_echo=$ac_try;;
31560 esac
31561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31562   (eval "$ac_link") 2>conftest.er1
31563   ac_status=$?
31564   grep -v '^ *+' conftest.er1 >conftest.err
31565   rm -f conftest.er1
31566   cat conftest.err >&5
31567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568   (exit $ac_status); } &&
31569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31570   { (case "(($ac_try" in
31571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31572   *) ac_try_echo=$ac_try;;
31573 esac
31574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31575   (eval "$ac_try") 2>&5
31576   ac_status=$?
31577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31578   (exit $ac_status); }; } &&
31579          { ac_try='test -s conftest$ac_exeext'
31580   { (case "(($ac_try" in
31581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31582   *) ac_try_echo=$ac_try;;
31583 esac
31584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31585   (eval "$ac_try") 2>&5
31586   ac_status=$?
31587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588   (exit $ac_status); }; }; then
31589   eval "$as_ac_var=yes"
31590 else
31591   echo "$as_me: failed program was:" >&5
31592 sed 's/^/| /' conftest.$ac_ext >&5
31593
31594         eval "$as_ac_var=no"
31595 fi
31596
31597 rm -f core conftest.err conftest.$ac_objext \
31598       conftest$ac_exeext conftest.$ac_ext
31599 fi
31600 ac_res=`eval echo '${'$as_ac_var'}'`
31601                { echo "$as_me:$LINENO: result: $ac_res" >&5
31602 echo "${ECHO_T}$ac_res" >&6; }
31603 if test `eval echo '${'$as_ac_var'}'` = yes; then
31604
31605 cat >>confdefs.h <<_ACEOF
31606 #define CRAY_STACKSEG_END $ac_func
31607 _ACEOF
31608
31609     break
31610 fi
31611
31612   done
31613 fi
31614
31615 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31616 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31617 if test "${ac_cv_c_stack_direction+set}" = set; then
31618   echo $ECHO_N "(cached) $ECHO_C" >&6
31619 else
31620   if test "$cross_compiling" = yes; then
31621   ac_cv_c_stack_direction=0
31622 else
31623   cat >conftest.$ac_ext <<_ACEOF
31624 /* confdefs.h.  */
31625 _ACEOF
31626 cat confdefs.h >>conftest.$ac_ext
31627 cat >>conftest.$ac_ext <<_ACEOF
31628 /* end confdefs.h.  */
31629 $ac_includes_default
31630 int
31631 find_stack_direction ()
31632 {
31633   static char *addr = 0;
31634   auto char dummy;
31635   if (addr == 0)
31636     {
31637       addr = &dummy;
31638       return find_stack_direction ();
31639     }
31640   else
31641     return (&dummy > addr) ? 1 : -1;
31642 }
31643
31644 int
31645 main ()
31646 {
31647   return find_stack_direction () < 0;
31648 }
31649 _ACEOF
31650 rm -f conftest$ac_exeext
31651 if { (ac_try="$ac_link"
31652 case "(($ac_try" in
31653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654   *) ac_try_echo=$ac_try;;
31655 esac
31656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31657   (eval "$ac_link") 2>&5
31658   ac_status=$?
31659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31661   { (case "(($ac_try" in
31662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31663   *) ac_try_echo=$ac_try;;
31664 esac
31665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31666   (eval "$ac_try") 2>&5
31667   ac_status=$?
31668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669   (exit $ac_status); }; }; then
31670   ac_cv_c_stack_direction=1
31671 else
31672   echo "$as_me: program exited with status $ac_status" >&5
31673 echo "$as_me: failed program was:" >&5
31674 sed 's/^/| /' conftest.$ac_ext >&5
31675
31676 ( exit $ac_status )
31677 ac_cv_c_stack_direction=-1
31678 fi
31679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31680 fi
31681
31682
31683 fi
31684 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31685 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31686
31687 cat >>confdefs.h <<_ACEOF
31688 #define STACK_DIRECTION $ac_cv_c_stack_direction
31689 _ACEOF
31690
31691
31692 fi
31693
31694
31695 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31696 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31697 if test "${ac_cv_func_rand48+set}" = set; then
31698   echo $ECHO_N "(cached) $ECHO_C" >&6
31699 else
31700   ac_ext=cpp
31701 ac_cpp='$CXXCPP $CPPFLAGS'
31702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31705
31706    cat >conftest.$ac_ext <<_ACEOF
31707 /* confdefs.h.  */
31708 _ACEOF
31709 cat confdefs.h >>conftest.$ac_ext
31710 cat >>conftest.$ac_ext <<_ACEOF
31711 /* end confdefs.h.  */
31712 #include <stdlib.h>
31713 int
31714 main ()
31715 {
31716 srand48(0);lrand48();drand48();
31717   ;
31718   return 0;
31719 }
31720 _ACEOF
31721 rm -f conftest.$ac_objext
31722 if { (ac_try="$ac_compile"
31723 case "(($ac_try" in
31724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31725   *) ac_try_echo=$ac_try;;
31726 esac
31727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31728   (eval "$ac_compile") 2>conftest.er1
31729   ac_status=$?
31730   grep -v '^ *+' conftest.er1 >conftest.err
31731   rm -f conftest.er1
31732   cat conftest.err >&5
31733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734   (exit $ac_status); } &&
31735          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31736   { (case "(($ac_try" in
31737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31738   *) ac_try_echo=$ac_try;;
31739 esac
31740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31741   (eval "$ac_try") 2>&5
31742   ac_status=$?
31743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744   (exit $ac_status); }; } &&
31745          { ac_try='test -s conftest.$ac_objext'
31746   { (case "(($ac_try" in
31747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31748   *) ac_try_echo=$ac_try;;
31749 esac
31750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31751   (eval "$ac_try") 2>&5
31752   ac_status=$?
31753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31754   (exit $ac_status); }; }; then
31755   ac_cv_func_rand48=yes
31756 else
31757   echo "$as_me: failed program was:" >&5
31758 sed 's/^/| /' conftest.$ac_ext >&5
31759
31760         ac_cv_func_rand48=no
31761 fi
31762
31763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31764   ac_ext=c
31765 ac_cpp='$CPP $CPPFLAGS'
31766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31769
31770 fi
31771 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31772 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31773
31774 if test "$ac_cv_func_rand48" = "yes" ; then
31775
31776 cat >>confdefs.h <<\_ACEOF
31777 #define HAVE_RAND48 1
31778 _ACEOF
31779
31780 fi
31781
31782
31783 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31784 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31785 if test "${ac_cv_cxx_namespaces+set}" = set; then
31786   echo $ECHO_N "(cached) $ECHO_C" >&6
31787 else
31788   ac_ext=cpp
31789 ac_cpp='$CXXCPP $CPPFLAGS'
31790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31793
31794  cat >conftest.$ac_ext <<_ACEOF
31795 /* confdefs.h.  */
31796 _ACEOF
31797 cat confdefs.h >>conftest.$ac_ext
31798 cat >>conftest.$ac_ext <<_ACEOF
31799 /* end confdefs.h.  */
31800 namespace Outer { namespace Inner { int i = 0; }}
31801 int
31802 main ()
31803 {
31804 using namespace Outer::Inner; return i;
31805   ;
31806   return 0;
31807 }
31808 _ACEOF
31809 rm -f conftest.$ac_objext
31810 if { (ac_try="$ac_compile"
31811 case "(($ac_try" in
31812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31813   *) ac_try_echo=$ac_try;;
31814 esac
31815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31816   (eval "$ac_compile") 2>conftest.er1
31817   ac_status=$?
31818   grep -v '^ *+' conftest.er1 >conftest.err
31819   rm -f conftest.er1
31820   cat conftest.err >&5
31821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822   (exit $ac_status); } &&
31823          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31824   { (case "(($ac_try" in
31825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31826   *) ac_try_echo=$ac_try;;
31827 esac
31828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31829   (eval "$ac_try") 2>&5
31830   ac_status=$?
31831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832   (exit $ac_status); }; } &&
31833          { ac_try='test -s conftest.$ac_objext'
31834   { (case "(($ac_try" in
31835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31836   *) ac_try_echo=$ac_try;;
31837 esac
31838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31839   (eval "$ac_try") 2>&5
31840   ac_status=$?
31841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842   (exit $ac_status); }; }; then
31843   ac_cv_cxx_namespaces=yes
31844 else
31845   echo "$as_me: failed program was:" >&5
31846 sed 's/^/| /' conftest.$ac_ext >&5
31847
31848         ac_cv_cxx_namespaces=no
31849 fi
31850
31851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31852  ac_ext=c
31853 ac_cpp='$CPP $CPPFLAGS'
31854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31857
31858
31859 fi
31860 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31861 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31862 if test "$ac_cv_cxx_namespaces" = yes; then
31863
31864 cat >>confdefs.h <<\_ACEOF
31865 #define HAVE_NAMESPACES
31866 _ACEOF
31867
31868 fi
31869
31870 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31871 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31872 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31873   echo $ECHO_N "(cached) $ECHO_C" >&6
31874 else
31875
31876   ac_ext=cpp
31877 ac_cpp='$CXXCPP $CPPFLAGS'
31878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31881
31882   cat >conftest.$ac_ext <<_ACEOF
31883 /* confdefs.h.  */
31884 _ACEOF
31885 cat confdefs.h >>conftest.$ac_ext
31886 cat >>conftest.$ac_ext <<_ACEOF
31887 /* end confdefs.h.  */
31888 #include <ext/hash_map>
31889 #ifdef HAVE_NAMESPACES
31890 using namespace std;
31891 #endif
31892 int
31893 main ()
31894 {
31895 hash_map<int, int> t;
31896   ;
31897   return 0;
31898 }
31899 _ACEOF
31900 rm -f conftest.$ac_objext
31901 if { (ac_try="$ac_compile"
31902 case "(($ac_try" in
31903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31904   *) ac_try_echo=$ac_try;;
31905 esac
31906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31907   (eval "$ac_compile") 2>conftest.er1
31908   ac_status=$?
31909   grep -v '^ *+' conftest.er1 >conftest.err
31910   rm -f conftest.er1
31911   cat conftest.err >&5
31912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31913   (exit $ac_status); } &&
31914          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31915   { (case "(($ac_try" in
31916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31917   *) ac_try_echo=$ac_try;;
31918 esac
31919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31920   (eval "$ac_try") 2>&5
31921   ac_status=$?
31922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31923   (exit $ac_status); }; } &&
31924          { ac_try='test -s conftest.$ac_objext'
31925   { (case "(($ac_try" in
31926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31927   *) ac_try_echo=$ac_try;;
31928 esac
31929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31930   (eval "$ac_try") 2>&5
31931   ac_status=$?
31932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933   (exit $ac_status); }; }; then
31934   ac_cv_cxx_have_std_ext_hash_map=yes
31935 else
31936   echo "$as_me: failed program was:" >&5
31937 sed 's/^/| /' conftest.$ac_ext >&5
31938
31939         ac_cv_cxx_have_std_ext_hash_map=no
31940 fi
31941
31942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31943   ac_ext=c
31944 ac_cpp='$CPP $CPPFLAGS'
31945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31948
31949 fi
31950 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31951 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31952  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31953  then
31954
31955 cat >>confdefs.h <<\_ACEOF
31956 #define HAVE_STD_EXT_HASH_MAP 1
31957 _ACEOF
31958
31959  else
31960
31961 cat >>confdefs.h <<\_ACEOF
31962 #define HAVE_STD_EXT_HASH_MAP 0
31963 _ACEOF
31964
31965  fi
31966
31967  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31968 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31969 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31970   echo $ECHO_N "(cached) $ECHO_C" >&6
31971 else
31972
31973   ac_ext=cpp
31974 ac_cpp='$CXXCPP $CPPFLAGS'
31975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31978
31979   cat >conftest.$ac_ext <<_ACEOF
31980 /* confdefs.h.  */
31981 _ACEOF
31982 cat confdefs.h >>conftest.$ac_ext
31983 cat >>conftest.$ac_ext <<_ACEOF
31984 /* end confdefs.h.  */
31985 #include <ext/hash_map>
31986 #ifdef HAVE_NAMESPACES
31987 using namespace __gnu_cxx;
31988 #endif
31989 int
31990 main ()
31991 {
31992 hash_map<int,int> t;
31993   ;
31994   return 0;
31995 }
31996 _ACEOF
31997 rm -f conftest.$ac_objext
31998 if { (ac_try="$ac_compile"
31999 case "(($ac_try" in
32000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32001   *) ac_try_echo=$ac_try;;
32002 esac
32003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32004   (eval "$ac_compile") 2>conftest.er1
32005   ac_status=$?
32006   grep -v '^ *+' conftest.er1 >conftest.err
32007   rm -f conftest.er1
32008   cat conftest.err >&5
32009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010   (exit $ac_status); } &&
32011          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32012   { (case "(($ac_try" in
32013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32014   *) ac_try_echo=$ac_try;;
32015 esac
32016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32017   (eval "$ac_try") 2>&5
32018   ac_status=$?
32019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020   (exit $ac_status); }; } &&
32021          { ac_try='test -s conftest.$ac_objext'
32022   { (case "(($ac_try" in
32023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024   *) ac_try_echo=$ac_try;;
32025 esac
32026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027   (eval "$ac_try") 2>&5
32028   ac_status=$?
32029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030   (exit $ac_status); }; }; then
32031   ac_cv_cxx_have_gnu_ext_hash_map=yes
32032 else
32033   echo "$as_me: failed program was:" >&5
32034 sed 's/^/| /' conftest.$ac_ext >&5
32035
32036         ac_cv_cxx_have_gnu_ext_hash_map=no
32037 fi
32038
32039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32040   ac_ext=c
32041 ac_cpp='$CPP $CPPFLAGS'
32042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32045
32046 fi
32047 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32048 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32049  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32050  then
32051
32052 cat >>confdefs.h <<\_ACEOF
32053 #define HAVE_GNU_EXT_HASH_MAP 1
32054 _ACEOF
32055
32056  else
32057
32058 cat >>confdefs.h <<\_ACEOF
32059 #define HAVE_GNU_EXT_HASH_MAP 0
32060 _ACEOF
32061
32062  fi
32063
32064  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32065 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32066 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32067   echo $ECHO_N "(cached) $ECHO_C" >&6
32068 else
32069
32070   ac_ext=cpp
32071 ac_cpp='$CXXCPP $CPPFLAGS'
32072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32075
32076   cat >conftest.$ac_ext <<_ACEOF
32077 /* confdefs.h.  */
32078 _ACEOF
32079 cat confdefs.h >>conftest.$ac_ext
32080 cat >>conftest.$ac_ext <<_ACEOF
32081 /* end confdefs.h.  */
32082 #include <hash_map>
32083 int
32084 main ()
32085 {
32086 hash_map<int,int> t;
32087   ;
32088   return 0;
32089 }
32090 _ACEOF
32091 rm -f conftest.$ac_objext
32092 if { (ac_try="$ac_compile"
32093 case "(($ac_try" in
32094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32095   *) ac_try_echo=$ac_try;;
32096 esac
32097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32098   (eval "$ac_compile") 2>conftest.er1
32099   ac_status=$?
32100   grep -v '^ *+' conftest.er1 >conftest.err
32101   rm -f conftest.er1
32102   cat conftest.err >&5
32103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32104   (exit $ac_status); } &&
32105          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32106   { (case "(($ac_try" in
32107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32108   *) ac_try_echo=$ac_try;;
32109 esac
32110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32111   (eval "$ac_try") 2>&5
32112   ac_status=$?
32113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114   (exit $ac_status); }; } &&
32115          { ac_try='test -s conftest.$ac_objext'
32116   { (case "(($ac_try" in
32117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32118   *) ac_try_echo=$ac_try;;
32119 esac
32120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32121   (eval "$ac_try") 2>&5
32122   ac_status=$?
32123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124   (exit $ac_status); }; }; then
32125   ac_cv_cxx_have_global_hash_map=yes
32126 else
32127   echo "$as_me: failed program was:" >&5
32128 sed 's/^/| /' conftest.$ac_ext >&5
32129
32130         ac_cv_cxx_have_global_hash_map=no
32131 fi
32132
32133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32134   ac_ext=c
32135 ac_cpp='$CPP $CPPFLAGS'
32136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32139
32140 fi
32141 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32142 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32143  if test "$ac_cv_cxx_have_global_hash_map" = yes
32144  then
32145
32146 cat >>confdefs.h <<\_ACEOF
32147 #define HAVE_GLOBAL_HASH_MAP 1
32148 _ACEOF
32149
32150  else
32151
32152 cat >>confdefs.h <<\_ACEOF
32153 #define HAVE_GLOBAL_HASH_MAP 0
32154 _ACEOF
32155
32156  fi
32157
32158 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32159 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32160 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32161   echo $ECHO_N "(cached) $ECHO_C" >&6
32162 else
32163
32164   ac_ext=cpp
32165 ac_cpp='$CXXCPP $CPPFLAGS'
32166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32169
32170   cat >conftest.$ac_ext <<_ACEOF
32171 /* confdefs.h.  */
32172 _ACEOF
32173 cat confdefs.h >>conftest.$ac_ext
32174 cat >>conftest.$ac_ext <<_ACEOF
32175 /* end confdefs.h.  */
32176 #include <ext/hash_set>
32177 #ifdef HAVE_NAMESPACES
32178 using namespace std;
32179 #endif
32180 int
32181 main ()
32182 {
32183 hash_set<int> t;
32184   ;
32185   return 0;
32186 }
32187 _ACEOF
32188 rm -f conftest.$ac_objext
32189 if { (ac_try="$ac_compile"
32190 case "(($ac_try" in
32191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32192   *) ac_try_echo=$ac_try;;
32193 esac
32194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32195   (eval "$ac_compile") 2>conftest.er1
32196   ac_status=$?
32197   grep -v '^ *+' conftest.er1 >conftest.err
32198   rm -f conftest.er1
32199   cat conftest.err >&5
32200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201   (exit $ac_status); } &&
32202          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32203   { (case "(($ac_try" in
32204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32205   *) ac_try_echo=$ac_try;;
32206 esac
32207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32208   (eval "$ac_try") 2>&5
32209   ac_status=$?
32210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211   (exit $ac_status); }; } &&
32212          { ac_try='test -s conftest.$ac_objext'
32213   { (case "(($ac_try" in
32214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215   *) ac_try_echo=$ac_try;;
32216 esac
32217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218   (eval "$ac_try") 2>&5
32219   ac_status=$?
32220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221   (exit $ac_status); }; }; then
32222   ac_cv_cxx_have_std_ext_hash_set=yes
32223 else
32224   echo "$as_me: failed program was:" >&5
32225 sed 's/^/| /' conftest.$ac_ext >&5
32226
32227         ac_cv_cxx_have_std_ext_hash_set=no
32228 fi
32229
32230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32231   ac_ext=c
32232 ac_cpp='$CPP $CPPFLAGS'
32233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32236
32237 fi
32238 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32239 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32240  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32241  then
32242
32243 cat >>confdefs.h <<\_ACEOF
32244 #define HAVE_STD_EXT_HASH_SET 1
32245 _ACEOF
32246
32247  else
32248
32249 cat >>confdefs.h <<\_ACEOF
32250 #define HAVE_STD_EXT_HASH_SET 0
32251 _ACEOF
32252
32253  fi
32254
32255  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32256 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32257 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32258   echo $ECHO_N "(cached) $ECHO_C" >&6
32259 else
32260
32261   ac_ext=cpp
32262 ac_cpp='$CXXCPP $CPPFLAGS'
32263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32266
32267   cat >conftest.$ac_ext <<_ACEOF
32268 /* confdefs.h.  */
32269 _ACEOF
32270 cat confdefs.h >>conftest.$ac_ext
32271 cat >>conftest.$ac_ext <<_ACEOF
32272 /* end confdefs.h.  */
32273 #include <ext/hash_set>
32274 #ifdef HAVE_NAMESPACES
32275 using namespace __gnu_cxx;
32276 #endif
32277 int
32278 main ()
32279 {
32280 hash_set<int> t;
32281   ;
32282   return 0;
32283 }
32284 _ACEOF
32285 rm -f conftest.$ac_objext
32286 if { (ac_try="$ac_compile"
32287 case "(($ac_try" in
32288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32289   *) ac_try_echo=$ac_try;;
32290 esac
32291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32292   (eval "$ac_compile") 2>conftest.er1
32293   ac_status=$?
32294   grep -v '^ *+' conftest.er1 >conftest.err
32295   rm -f conftest.er1
32296   cat conftest.err >&5
32297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298   (exit $ac_status); } &&
32299          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32300   { (case "(($ac_try" in
32301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32302   *) ac_try_echo=$ac_try;;
32303 esac
32304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32305   (eval "$ac_try") 2>&5
32306   ac_status=$?
32307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32308   (exit $ac_status); }; } &&
32309          { ac_try='test -s conftest.$ac_objext'
32310   { (case "(($ac_try" in
32311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32312   *) ac_try_echo=$ac_try;;
32313 esac
32314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32315   (eval "$ac_try") 2>&5
32316   ac_status=$?
32317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318   (exit $ac_status); }; }; then
32319   ac_cv_cxx_have_gnu_ext_hash_set=yes
32320 else
32321   echo "$as_me: failed program was:" >&5
32322 sed 's/^/| /' conftest.$ac_ext >&5
32323
32324         ac_cv_cxx_have_gnu_ext_hash_set=no
32325 fi
32326
32327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32328   ac_ext=c
32329 ac_cpp='$CPP $CPPFLAGS'
32330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32333
32334 fi
32335 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32336 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32337  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32338  then
32339
32340 cat >>confdefs.h <<\_ACEOF
32341 #define HAVE_GNU_EXT_HASH_SET 1
32342 _ACEOF
32343
32344  else
32345
32346 cat >>confdefs.h <<\_ACEOF
32347 #define HAVE_GNU_EXT_HASH_SET 0
32348 _ACEOF
32349
32350  fi
32351
32352  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32353 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32354 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32355   echo $ECHO_N "(cached) $ECHO_C" >&6
32356 else
32357
32358   ac_ext=cpp
32359 ac_cpp='$CXXCPP $CPPFLAGS'
32360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32363
32364   cat >conftest.$ac_ext <<_ACEOF
32365 /* confdefs.h.  */
32366 _ACEOF
32367 cat confdefs.h >>conftest.$ac_ext
32368 cat >>conftest.$ac_ext <<_ACEOF
32369 /* end confdefs.h.  */
32370 #include <hash_set>
32371 int
32372 main ()
32373 {
32374 hash_set<int> t; return 0;
32375   ;
32376   return 0;
32377 }
32378 _ACEOF
32379 rm -f conftest.$ac_objext
32380 if { (ac_try="$ac_compile"
32381 case "(($ac_try" in
32382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32383   *) ac_try_echo=$ac_try;;
32384 esac
32385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32386   (eval "$ac_compile") 2>conftest.er1
32387   ac_status=$?
32388   grep -v '^ *+' conftest.er1 >conftest.err
32389   rm -f conftest.er1
32390   cat conftest.err >&5
32391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32392   (exit $ac_status); } &&
32393          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32394   { (case "(($ac_try" in
32395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32396   *) ac_try_echo=$ac_try;;
32397 esac
32398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32399   (eval "$ac_try") 2>&5
32400   ac_status=$?
32401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402   (exit $ac_status); }; } &&
32403          { ac_try='test -s conftest.$ac_objext'
32404   { (case "(($ac_try" in
32405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32406   *) ac_try_echo=$ac_try;;
32407 esac
32408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32409   (eval "$ac_try") 2>&5
32410   ac_status=$?
32411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32412   (exit $ac_status); }; }; then
32413   ac_cv_cxx_have_global_hash_set=yes
32414 else
32415   echo "$as_me: failed program was:" >&5
32416 sed 's/^/| /' conftest.$ac_ext >&5
32417
32418         ac_cv_cxx_have_global_hash_set=no
32419 fi
32420
32421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32422   ac_ext=c
32423 ac_cpp='$CPP $CPPFLAGS'
32424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32427
32428 fi
32429 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32430 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32431  if test "$ac_cv_cxx_have_global_hash_set" = yes
32432  then
32433
32434 cat >>confdefs.h <<\_ACEOF
32435 #define HAVE_GLOBAL_HASH_SET 1
32436 _ACEOF
32437
32438  else
32439
32440 cat >>confdefs.h <<\_ACEOF
32441 #define HAVE_GLOBAL_HASH_SET 0
32442 _ACEOF
32443
32444  fi
32445
32446 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32447 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32448 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32449   echo $ECHO_N "(cached) $ECHO_C" >&6
32450 else
32451
32452   ac_ext=cpp
32453 ac_cpp='$CXXCPP $CPPFLAGS'
32454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32457
32458   cat >conftest.$ac_ext <<_ACEOF
32459 /* confdefs.h.  */
32460 _ACEOF
32461 cat confdefs.h >>conftest.$ac_ext
32462 cat >>conftest.$ac_ext <<_ACEOF
32463 /* end confdefs.h.  */
32464 #include <iterator>
32465 #ifdef HAVE_NAMESPACES
32466 using namespace std;
32467 #endif
32468 int
32469 main ()
32470 {
32471 iterator<int,int,int> t; return 0;
32472   ;
32473   return 0;
32474 }
32475 _ACEOF
32476 rm -f conftest.$ac_objext
32477 if { (ac_try="$ac_compile"
32478 case "(($ac_try" in
32479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32480   *) ac_try_echo=$ac_try;;
32481 esac
32482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32483   (eval "$ac_compile") 2>conftest.er1
32484   ac_status=$?
32485   grep -v '^ *+' conftest.er1 >conftest.err
32486   rm -f conftest.er1
32487   cat conftest.err >&5
32488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489   (exit $ac_status); } &&
32490          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32491   { (case "(($ac_try" in
32492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32493   *) ac_try_echo=$ac_try;;
32494 esac
32495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32496   (eval "$ac_try") 2>&5
32497   ac_status=$?
32498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499   (exit $ac_status); }; } &&
32500          { ac_try='test -s conftest.$ac_objext'
32501   { (case "(($ac_try" in
32502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32503   *) ac_try_echo=$ac_try;;
32504 esac
32505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32506   (eval "$ac_try") 2>&5
32507   ac_status=$?
32508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509   (exit $ac_status); }; }; then
32510   ac_cv_cxx_have_std_iterator=yes
32511 else
32512   echo "$as_me: failed program was:" >&5
32513 sed 's/^/| /' conftest.$ac_ext >&5
32514
32515         ac_cv_cxx_have_std_iterator=no
32516 fi
32517
32518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32519   ac_ext=c
32520 ac_cpp='$CPP $CPPFLAGS'
32521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32524
32525
32526 fi
32527 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32528 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32529 if test "$ac_cv_cxx_have_std_iterator" = yes
32530 then
32531
32532 cat >>confdefs.h <<\_ACEOF
32533 #define HAVE_STD_ITERATOR 1
32534 _ACEOF
32535
32536 else
32537
32538 cat >>confdefs.h <<\_ACEOF
32539 #define HAVE_STD_ITERATOR 0
32540 _ACEOF
32541
32542 fi
32543
32544 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32545 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32546 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32547   echo $ECHO_N "(cached) $ECHO_C" >&6
32548 else
32549
32550   ac_ext=cpp
32551 ac_cpp='$CXXCPP $CPPFLAGS'
32552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32555
32556   cat >conftest.$ac_ext <<_ACEOF
32557 /* confdefs.h.  */
32558 _ACEOF
32559 cat confdefs.h >>conftest.$ac_ext
32560 cat >>conftest.$ac_ext <<_ACEOF
32561 /* end confdefs.h.  */
32562 #include <iterator>
32563 #ifdef HAVE_NAMESPACES
32564 using namespace std;
32565 #endif
32566 int
32567 main ()
32568 {
32569 bidirectional_iterator<int,int> t; return 0;
32570   ;
32571   return 0;
32572 }
32573 _ACEOF
32574 rm -f conftest.$ac_objext
32575 if { (ac_try="$ac_compile"
32576 case "(($ac_try" in
32577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32578   *) ac_try_echo=$ac_try;;
32579 esac
32580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32581   (eval "$ac_compile") 2>conftest.er1
32582   ac_status=$?
32583   grep -v '^ *+' conftest.er1 >conftest.err
32584   rm -f conftest.er1
32585   cat conftest.err >&5
32586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587   (exit $ac_status); } &&
32588          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32589   { (case "(($ac_try" in
32590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32591   *) ac_try_echo=$ac_try;;
32592 esac
32593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32594   (eval "$ac_try") 2>&5
32595   ac_status=$?
32596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32597   (exit $ac_status); }; } &&
32598          { ac_try='test -s conftest.$ac_objext'
32599   { (case "(($ac_try" in
32600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32601   *) ac_try_echo=$ac_try;;
32602 esac
32603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32604   (eval "$ac_try") 2>&5
32605   ac_status=$?
32606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32607   (exit $ac_status); }; }; then
32608   ac_cv_cxx_have_bi_iterator=yes
32609 else
32610   echo "$as_me: failed program was:" >&5
32611 sed 's/^/| /' conftest.$ac_ext >&5
32612
32613         ac_cv_cxx_have_bi_iterator=no
32614 fi
32615
32616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32617   ac_ext=c
32618 ac_cpp='$CPP $CPPFLAGS'
32619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32622
32623
32624 fi
32625 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32626 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32627 if test "$ac_cv_cxx_have_bi_iterator" = yes
32628 then
32629
32630 cat >>confdefs.h <<\_ACEOF
32631 #define HAVE_BI_ITERATOR 1
32632 _ACEOF
32633
32634 else
32635
32636 cat >>confdefs.h <<\_ACEOF
32637 #define HAVE_BI_ITERATOR 0
32638 _ACEOF
32639
32640 fi
32641
32642 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32643 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32644 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32645   echo $ECHO_N "(cached) $ECHO_C" >&6
32646 else
32647
32648   ac_ext=cpp
32649 ac_cpp='$CXXCPP $CPPFLAGS'
32650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32653
32654   cat >conftest.$ac_ext <<_ACEOF
32655 /* confdefs.h.  */
32656 _ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h.  */
32660 #include <iterator>
32661 #ifdef HAVE_NAMESPACES
32662 using namespace std;
32663 #endif
32664 int
32665 main ()
32666 {
32667 forward_iterator<int,int> t; return 0;
32668   ;
32669   return 0;
32670 }
32671 _ACEOF
32672 rm -f conftest.$ac_objext
32673 if { (ac_try="$ac_compile"
32674 case "(($ac_try" in
32675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32676   *) ac_try_echo=$ac_try;;
32677 esac
32678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32679   (eval "$ac_compile") 2>conftest.er1
32680   ac_status=$?
32681   grep -v '^ *+' conftest.er1 >conftest.err
32682   rm -f conftest.er1
32683   cat conftest.err >&5
32684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685   (exit $ac_status); } &&
32686          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32687   { (case "(($ac_try" in
32688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32689   *) ac_try_echo=$ac_try;;
32690 esac
32691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32692   (eval "$ac_try") 2>&5
32693   ac_status=$?
32694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695   (exit $ac_status); }; } &&
32696          { ac_try='test -s conftest.$ac_objext'
32697   { (case "(($ac_try" in
32698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32699   *) ac_try_echo=$ac_try;;
32700 esac
32701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32702   (eval "$ac_try") 2>&5
32703   ac_status=$?
32704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705   (exit $ac_status); }; }; then
32706   ac_cv_cxx_have_fwd_iterator=yes
32707 else
32708   echo "$as_me: failed program was:" >&5
32709 sed 's/^/| /' conftest.$ac_ext >&5
32710
32711         ac_cv_cxx_have_fwd_iterator=no
32712 fi
32713
32714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32715   ac_ext=c
32716 ac_cpp='$CPP $CPPFLAGS'
32717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32720
32721
32722 fi
32723 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32724 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32725 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32726 then
32727
32728 cat >>confdefs.h <<\_ACEOF
32729 #define HAVE_FWD_ITERATOR 1
32730 _ACEOF
32731
32732 else
32733
32734 cat >>confdefs.h <<\_ACEOF
32735 #define HAVE_FWD_ITERATOR 0
32736 _ACEOF
32737
32738 fi
32739
32740
32741 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32742 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32743 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32744   echo $ECHO_N "(cached) $ECHO_C" >&6
32745 else
32746   ac_ext=cpp
32747 ac_cpp='$CXXCPP $CPPFLAGS'
32748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32751
32752    cat >conftest.$ac_ext <<_ACEOF
32753 /* confdefs.h.  */
32754 _ACEOF
32755 cat confdefs.h >>conftest.$ac_ext
32756 cat >>conftest.$ac_ext <<_ACEOF
32757 /* end confdefs.h.  */
32758 #include <math.h>
32759 int
32760 main ()
32761 {
32762 float f; isnan(f);
32763   ;
32764   return 0;
32765 }
32766 _ACEOF
32767 rm -f conftest.$ac_objext
32768 if { (ac_try="$ac_compile"
32769 case "(($ac_try" in
32770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32771   *) ac_try_echo=$ac_try;;
32772 esac
32773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32774   (eval "$ac_compile") 2>conftest.er1
32775   ac_status=$?
32776   grep -v '^ *+' conftest.er1 >conftest.err
32777   rm -f conftest.er1
32778   cat conftest.err >&5
32779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780   (exit $ac_status); } &&
32781          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32782   { (case "(($ac_try" in
32783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32784   *) ac_try_echo=$ac_try;;
32785 esac
32786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32787   (eval "$ac_try") 2>&5
32788   ac_status=$?
32789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32790   (exit $ac_status); }; } &&
32791          { ac_try='test -s conftest.$ac_objext'
32792   { (case "(($ac_try" in
32793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32794   *) ac_try_echo=$ac_try;;
32795 esac
32796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32797   (eval "$ac_try") 2>&5
32798   ac_status=$?
32799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800   (exit $ac_status); }; }; then
32801   ac_cv_func_isnan_in_math_h=yes
32802 else
32803   echo "$as_me: failed program was:" >&5
32804 sed 's/^/| /' conftest.$ac_ext >&5
32805
32806         ac_cv_func_isnan_in_math_h=no
32807 fi
32808
32809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32810   ac_ext=c
32811 ac_cpp='$CPP $CPPFLAGS'
32812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32815
32816 fi
32817 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32818 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32819
32820
32821 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32822
32823 cat >>confdefs.h <<\_ACEOF
32824 #define HAVE_ISNAN_IN_MATH_H 1
32825 _ACEOF
32826
32827 fi
32828
32829 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32830 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32831 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32832   echo $ECHO_N "(cached) $ECHO_C" >&6
32833 else
32834   ac_ext=cpp
32835 ac_cpp='$CXXCPP $CPPFLAGS'
32836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32839
32840    cat >conftest.$ac_ext <<_ACEOF
32841 /* confdefs.h.  */
32842 _ACEOF
32843 cat confdefs.h >>conftest.$ac_ext
32844 cat >>conftest.$ac_ext <<_ACEOF
32845 /* end confdefs.h.  */
32846 #include <cmath>
32847 int
32848 main ()
32849 {
32850 float f; isnan(f);
32851   ;
32852   return 0;
32853 }
32854 _ACEOF
32855 rm -f conftest.$ac_objext
32856 if { (ac_try="$ac_compile"
32857 case "(($ac_try" in
32858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32859   *) ac_try_echo=$ac_try;;
32860 esac
32861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32862   (eval "$ac_compile") 2>conftest.er1
32863   ac_status=$?
32864   grep -v '^ *+' conftest.er1 >conftest.err
32865   rm -f conftest.er1
32866   cat conftest.err >&5
32867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868   (exit $ac_status); } &&
32869          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32870   { (case "(($ac_try" in
32871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32872   *) ac_try_echo=$ac_try;;
32873 esac
32874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32875   (eval "$ac_try") 2>&5
32876   ac_status=$?
32877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878   (exit $ac_status); }; } &&
32879          { ac_try='test -s conftest.$ac_objext'
32880   { (case "(($ac_try" in
32881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32882   *) ac_try_echo=$ac_try;;
32883 esac
32884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32885   (eval "$ac_try") 2>&5
32886   ac_status=$?
32887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32888   (exit $ac_status); }; }; then
32889   ac_cv_func_isnan_in_cmath=yes
32890 else
32891   echo "$as_me: failed program was:" >&5
32892 sed 's/^/| /' conftest.$ac_ext >&5
32893
32894         ac_cv_func_isnan_in_cmath=no
32895 fi
32896
32897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32898   ac_ext=c
32899 ac_cpp='$CPP $CPPFLAGS'
32900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32903
32904 fi
32905 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32906 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32907
32908 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32909
32910 cat >>confdefs.h <<\_ACEOF
32911 #define HAVE_ISNAN_IN_CMATH 1
32912 _ACEOF
32913
32914 fi
32915
32916 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32917 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32918 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32919   echo $ECHO_N "(cached) $ECHO_C" >&6
32920 else
32921   ac_ext=cpp
32922 ac_cpp='$CXXCPP $CPPFLAGS'
32923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32926
32927    cat >conftest.$ac_ext <<_ACEOF
32928 /* confdefs.h.  */
32929 _ACEOF
32930 cat confdefs.h >>conftest.$ac_ext
32931 cat >>conftest.$ac_ext <<_ACEOF
32932 /* end confdefs.h.  */
32933 #include <cmath>
32934 int
32935 main ()
32936 {
32937 float f; std::isnan(f);
32938   ;
32939   return 0;
32940 }
32941 _ACEOF
32942 rm -f conftest.$ac_objext
32943 if { (ac_try="$ac_compile"
32944 case "(($ac_try" in
32945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32946   *) ac_try_echo=$ac_try;;
32947 esac
32948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32949   (eval "$ac_compile") 2>conftest.er1
32950   ac_status=$?
32951   grep -v '^ *+' conftest.er1 >conftest.err
32952   rm -f conftest.er1
32953   cat conftest.err >&5
32954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32955   (exit $ac_status); } &&
32956          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32957   { (case "(($ac_try" in
32958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32959   *) ac_try_echo=$ac_try;;
32960 esac
32961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32962   (eval "$ac_try") 2>&5
32963   ac_status=$?
32964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965   (exit $ac_status); }; } &&
32966          { ac_try='test -s conftest.$ac_objext'
32967   { (case "(($ac_try" in
32968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969   *) ac_try_echo=$ac_try;;
32970 esac
32971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32972   (eval "$ac_try") 2>&5
32973   ac_status=$?
32974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975   (exit $ac_status); }; }; then
32976   ac_cv_func_std_isnan_in_cmath=yes
32977 else
32978   echo "$as_me: failed program was:" >&5
32979 sed 's/^/| /' conftest.$ac_ext >&5
32980
32981         ac_cv_func_std_isnan_in_cmath=no
32982 fi
32983
32984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32985   ac_ext=c
32986 ac_cpp='$CPP $CPPFLAGS'
32987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32990
32991 fi
32992 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32993 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32994
32995 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32996
32997 cat >>confdefs.h <<\_ACEOF
32998 #define HAVE_STD_ISNAN_IN_CMATH 1
32999 _ACEOF
33000
33001 fi
33002
33003
33004 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33005 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33006 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33007   echo $ECHO_N "(cached) $ECHO_C" >&6
33008 else
33009   ac_ext=cpp
33010 ac_cpp='$CXXCPP $CPPFLAGS'
33011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33014
33015    cat >conftest.$ac_ext <<_ACEOF
33016 /* confdefs.h.  */
33017 _ACEOF
33018 cat confdefs.h >>conftest.$ac_ext
33019 cat >>conftest.$ac_ext <<_ACEOF
33020 /* end confdefs.h.  */
33021 #include <math.h>
33022 int
33023 main ()
33024 {
33025 float f; isinf(f);
33026   ;
33027   return 0;
33028 }
33029 _ACEOF
33030 rm -f conftest.$ac_objext
33031 if { (ac_try="$ac_compile"
33032 case "(($ac_try" in
33033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33034   *) ac_try_echo=$ac_try;;
33035 esac
33036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33037   (eval "$ac_compile") 2>conftest.er1
33038   ac_status=$?
33039   grep -v '^ *+' conftest.er1 >conftest.err
33040   rm -f conftest.er1
33041   cat conftest.err >&5
33042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043   (exit $ac_status); } &&
33044          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33045   { (case "(($ac_try" in
33046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33047   *) ac_try_echo=$ac_try;;
33048 esac
33049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33050   (eval "$ac_try") 2>&5
33051   ac_status=$?
33052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053   (exit $ac_status); }; } &&
33054          { ac_try='test -s conftest.$ac_objext'
33055   { (case "(($ac_try" in
33056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33057   *) ac_try_echo=$ac_try;;
33058 esac
33059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33060   (eval "$ac_try") 2>&5
33061   ac_status=$?
33062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063   (exit $ac_status); }; }; then
33064   ac_cv_func_isinf_in_math_h=yes
33065 else
33066   echo "$as_me: failed program was:" >&5
33067 sed 's/^/| /' conftest.$ac_ext >&5
33068
33069         ac_cv_func_isinf_in_math_h=no
33070 fi
33071
33072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33073   ac_ext=c
33074 ac_cpp='$CPP $CPPFLAGS'
33075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33078
33079 fi
33080 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33081 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33082
33083 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33084
33085 cat >>confdefs.h <<\_ACEOF
33086 #define HAVE_ISINF_IN_MATH_H 1
33087 _ACEOF
33088
33089 fi
33090
33091 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33092 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33093 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33094   echo $ECHO_N "(cached) $ECHO_C" >&6
33095 else
33096   ac_ext=cpp
33097 ac_cpp='$CXXCPP $CPPFLAGS'
33098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33101
33102    cat >conftest.$ac_ext <<_ACEOF
33103 /* confdefs.h.  */
33104 _ACEOF
33105 cat confdefs.h >>conftest.$ac_ext
33106 cat >>conftest.$ac_ext <<_ACEOF
33107 /* end confdefs.h.  */
33108 #include <cmath>
33109 int
33110 main ()
33111 {
33112 float f; isinf(f);
33113   ;
33114   return 0;
33115 }
33116 _ACEOF
33117 rm -f conftest.$ac_objext
33118 if { (ac_try="$ac_compile"
33119 case "(($ac_try" in
33120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33121   *) ac_try_echo=$ac_try;;
33122 esac
33123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33124   (eval "$ac_compile") 2>conftest.er1
33125   ac_status=$?
33126   grep -v '^ *+' conftest.er1 >conftest.err
33127   rm -f conftest.er1
33128   cat conftest.err >&5
33129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33130   (exit $ac_status); } &&
33131          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33132   { (case "(($ac_try" in
33133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33134   *) ac_try_echo=$ac_try;;
33135 esac
33136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33137   (eval "$ac_try") 2>&5
33138   ac_status=$?
33139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140   (exit $ac_status); }; } &&
33141          { ac_try='test -s conftest.$ac_objext'
33142   { (case "(($ac_try" in
33143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33144   *) ac_try_echo=$ac_try;;
33145 esac
33146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33147   (eval "$ac_try") 2>&5
33148   ac_status=$?
33149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150   (exit $ac_status); }; }; then
33151   ac_cv_func_isinf_in_cmath=yes
33152 else
33153   echo "$as_me: failed program was:" >&5
33154 sed 's/^/| /' conftest.$ac_ext >&5
33155
33156         ac_cv_func_isinf_in_cmath=no
33157 fi
33158
33159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33160   ac_ext=c
33161 ac_cpp='$CPP $CPPFLAGS'
33162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33165
33166 fi
33167 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33168 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33169
33170 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33171
33172 cat >>confdefs.h <<\_ACEOF
33173 #define HAVE_ISINF_IN_CMATH 1
33174 _ACEOF
33175
33176 fi
33177
33178 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33179 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33180 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33181   echo $ECHO_N "(cached) $ECHO_C" >&6
33182 else
33183   ac_ext=cpp
33184 ac_cpp='$CXXCPP $CPPFLAGS'
33185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33188
33189    cat >conftest.$ac_ext <<_ACEOF
33190 /* confdefs.h.  */
33191 _ACEOF
33192 cat confdefs.h >>conftest.$ac_ext
33193 cat >>conftest.$ac_ext <<_ACEOF
33194 /* end confdefs.h.  */
33195 #include <cmath>
33196 int
33197 main ()
33198 {
33199 float f; std::isinf(f)}
33200   ;
33201   return 0;
33202 }
33203 _ACEOF
33204 rm -f conftest.$ac_objext
33205 if { (ac_try="$ac_compile"
33206 case "(($ac_try" in
33207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33208   *) ac_try_echo=$ac_try;;
33209 esac
33210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33211   (eval "$ac_compile") 2>conftest.er1
33212   ac_status=$?
33213   grep -v '^ *+' conftest.er1 >conftest.err
33214   rm -f conftest.er1
33215   cat conftest.err >&5
33216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217   (exit $ac_status); } &&
33218          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33219   { (case "(($ac_try" in
33220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33221   *) ac_try_echo=$ac_try;;
33222 esac
33223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33224   (eval "$ac_try") 2>&5
33225   ac_status=$?
33226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33227   (exit $ac_status); }; } &&
33228          { ac_try='test -s conftest.$ac_objext'
33229   { (case "(($ac_try" in
33230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33231   *) ac_try_echo=$ac_try;;
33232 esac
33233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33234   (eval "$ac_try") 2>&5
33235   ac_status=$?
33236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237   (exit $ac_status); }; }; then
33238   ac_cv_func_std_isinf_in_cmath=yes
33239 else
33240   echo "$as_me: failed program was:" >&5
33241 sed 's/^/| /' conftest.$ac_ext >&5
33242
33243         ac_cv_func_std_isinf_in_cmath=no
33244 fi
33245
33246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33247   ac_ext=c
33248 ac_cpp='$CPP $CPPFLAGS'
33249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33252
33253 fi
33254 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33255 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33256
33257 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33258
33259 cat >>confdefs.h <<\_ACEOF
33260 #define HAVE_STD_ISINF_IN_CMATH 1
33261 _ACEOF
33262
33263 fi
33264
33265 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33266 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33267 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33268   echo $ECHO_N "(cached) $ECHO_C" >&6
33269 else
33270   ac_ext=cpp
33271 ac_cpp='$CXXCPP $CPPFLAGS'
33272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33275
33276    cat >conftest.$ac_ext <<_ACEOF
33277 /* confdefs.h.  */
33278 _ACEOF
33279 cat confdefs.h >>conftest.$ac_ext
33280 cat >>conftest.$ac_ext <<_ACEOF
33281 /* end confdefs.h.  */
33282 #include <ieeefp.h>
33283 int
33284 main ()
33285 {
33286 float f; finite(f);
33287   ;
33288   return 0;
33289 }
33290 _ACEOF
33291 rm -f conftest.$ac_objext
33292 if { (ac_try="$ac_compile"
33293 case "(($ac_try" in
33294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33295   *) ac_try_echo=$ac_try;;
33296 esac
33297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33298   (eval "$ac_compile") 2>conftest.er1
33299   ac_status=$?
33300   grep -v '^ *+' conftest.er1 >conftest.err
33301   rm -f conftest.er1
33302   cat conftest.err >&5
33303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33304   (exit $ac_status); } &&
33305          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33306   { (case "(($ac_try" in
33307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33308   *) ac_try_echo=$ac_try;;
33309 esac
33310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33311   (eval "$ac_try") 2>&5
33312   ac_status=$?
33313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33314   (exit $ac_status); }; } &&
33315          { ac_try='test -s conftest.$ac_objext'
33316   { (case "(($ac_try" in
33317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33318   *) ac_try_echo=$ac_try;;
33319 esac
33320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33321   (eval "$ac_try") 2>&5
33322   ac_status=$?
33323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324   (exit $ac_status); }; }; then
33325   ac_cv_func_finite_in_ieeefp_h=yes
33326 else
33327   echo "$as_me: failed program was:" >&5
33328 sed 's/^/| /' conftest.$ac_ext >&5
33329
33330         ac_cv_func_finite_in_ieeefp_h=no
33331 fi
33332
33333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33334   ac_ext=c
33335 ac_cpp='$CPP $CPPFLAGS'
33336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33339
33340 fi
33341 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33342 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33343
33344 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33345
33346 cat >>confdefs.h <<\_ACEOF
33347 #define HAVE_FINITE_IN_IEEEFP_H 1
33348 _ACEOF
33349
33350 fi
33351
33352
33353
33354 if test "$llvm_cv_platform_type" = "Unix" ; then
33355
33356
33357 for ac_header in stdlib.h unistd.h
33358 do
33359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33361   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33364   echo $ECHO_N "(cached) $ECHO_C" >&6
33365 fi
33366 ac_res=`eval echo '${'$as_ac_Header'}'`
33367                { echo "$as_me:$LINENO: result: $ac_res" >&5
33368 echo "${ECHO_T}$ac_res" >&6; }
33369 else
33370   # Is the header compilable?
33371 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33373 cat >conftest.$ac_ext <<_ACEOF
33374 /* confdefs.h.  */
33375 _ACEOF
33376 cat confdefs.h >>conftest.$ac_ext
33377 cat >>conftest.$ac_ext <<_ACEOF
33378 /* end confdefs.h.  */
33379 $ac_includes_default
33380 #include <$ac_header>
33381 _ACEOF
33382 rm -f conftest.$ac_objext
33383 if { (ac_try="$ac_compile"
33384 case "(($ac_try" in
33385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33386   *) ac_try_echo=$ac_try;;
33387 esac
33388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33389   (eval "$ac_compile") 2>conftest.er1
33390   ac_status=$?
33391   grep -v '^ *+' conftest.er1 >conftest.err
33392   rm -f conftest.er1
33393   cat conftest.err >&5
33394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33395   (exit $ac_status); } &&
33396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33397   { (case "(($ac_try" in
33398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33399   *) ac_try_echo=$ac_try;;
33400 esac
33401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33402   (eval "$ac_try") 2>&5
33403   ac_status=$?
33404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405   (exit $ac_status); }; } &&
33406          { ac_try='test -s conftest.$ac_objext'
33407   { (case "(($ac_try" in
33408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33409   *) ac_try_echo=$ac_try;;
33410 esac
33411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33412   (eval "$ac_try") 2>&5
33413   ac_status=$?
33414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415   (exit $ac_status); }; }; then
33416   ac_header_compiler=yes
33417 else
33418   echo "$as_me: failed program was:" >&5
33419 sed 's/^/| /' conftest.$ac_ext >&5
33420
33421         ac_header_compiler=no
33422 fi
33423
33424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33426 echo "${ECHO_T}$ac_header_compiler" >&6; }
33427
33428 # Is the header present?
33429 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33431 cat >conftest.$ac_ext <<_ACEOF
33432 /* confdefs.h.  */
33433 _ACEOF
33434 cat confdefs.h >>conftest.$ac_ext
33435 cat >>conftest.$ac_ext <<_ACEOF
33436 /* end confdefs.h.  */
33437 #include <$ac_header>
33438 _ACEOF
33439 if { (ac_try="$ac_cpp conftest.$ac_ext"
33440 case "(($ac_try" in
33441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33442   *) ac_try_echo=$ac_try;;
33443 esac
33444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33446   ac_status=$?
33447   grep -v '^ *+' conftest.er1 >conftest.err
33448   rm -f conftest.er1
33449   cat conftest.err >&5
33450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33451   (exit $ac_status); } >/dev/null; then
33452   if test -s conftest.err; then
33453     ac_cpp_err=$ac_c_preproc_warn_flag
33454     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33455   else
33456     ac_cpp_err=
33457   fi
33458 else
33459   ac_cpp_err=yes
33460 fi
33461 if test -z "$ac_cpp_err"; then
33462   ac_header_preproc=yes
33463 else
33464   echo "$as_me: failed program was:" >&5
33465 sed 's/^/| /' conftest.$ac_ext >&5
33466
33467   ac_header_preproc=no
33468 fi
33469
33470 rm -f conftest.err conftest.$ac_ext
33471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33472 echo "${ECHO_T}$ac_header_preproc" >&6; }
33473
33474 # So?  What about this header?
33475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33476   yes:no: )
33477     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33481     ac_header_preproc=yes
33482     ;;
33483   no:yes:* )
33484     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33486     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33487 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33488     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33490     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33491 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33494     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33496     ( cat <<\_ASBOX
33497 ## ----------------------------------- ##
33498 ## Report this to llvmbugs@cs.uiuc.edu ##
33499 ## ----------------------------------- ##
33500 _ASBOX
33501      ) | sed "s/^/$as_me: WARNING:     /" >&2
33502     ;;
33503 esac
33504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33507   echo $ECHO_N "(cached) $ECHO_C" >&6
33508 else
33509   eval "$as_ac_Header=\$ac_header_preproc"
33510 fi
33511 ac_res=`eval echo '${'$as_ac_Header'}'`
33512                { echo "$as_me:$LINENO: result: $ac_res" >&5
33513 echo "${ECHO_T}$ac_res" >&6; }
33514
33515 fi
33516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33517   cat >>confdefs.h <<_ACEOF
33518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33519 _ACEOF
33520
33521 fi
33522
33523 done
33524
33525
33526 for ac_func in getpagesize
33527 do
33528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33529 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33532   echo $ECHO_N "(cached) $ECHO_C" >&6
33533 else
33534   cat >conftest.$ac_ext <<_ACEOF
33535 /* confdefs.h.  */
33536 _ACEOF
33537 cat confdefs.h >>conftest.$ac_ext
33538 cat >>conftest.$ac_ext <<_ACEOF
33539 /* end confdefs.h.  */
33540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33542 #define $ac_func innocuous_$ac_func
33543
33544 /* System header to define __stub macros and hopefully few prototypes,
33545     which can conflict with char $ac_func (); below.
33546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33547     <limits.h> exists even on freestanding compilers.  */
33548
33549 #ifdef __STDC__
33550 # include <limits.h>
33551 #else
33552 # include <assert.h>
33553 #endif
33554
33555 #undef $ac_func
33556
33557 /* Override any GCC internal prototype to avoid an error.
33558    Use char because int might match the return type of a GCC
33559    builtin and then its argument prototype would still apply.  */
33560 #ifdef __cplusplus
33561 extern "C"
33562 #endif
33563 char $ac_func ();
33564 /* The GNU C library defines this for functions which it implements
33565     to always fail with ENOSYS.  Some functions are actually named
33566     something starting with __ and the normal name is an alias.  */
33567 #if defined __stub_$ac_func || defined __stub___$ac_func
33568 choke me
33569 #endif
33570
33571 int
33572 main ()
33573 {
33574 return $ac_func ();
33575   ;
33576   return 0;
33577 }
33578 _ACEOF
33579 rm -f conftest.$ac_objext conftest$ac_exeext
33580 if { (ac_try="$ac_link"
33581 case "(($ac_try" in
33582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33583   *) ac_try_echo=$ac_try;;
33584 esac
33585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33586   (eval "$ac_link") 2>conftest.er1
33587   ac_status=$?
33588   grep -v '^ *+' conftest.er1 >conftest.err
33589   rm -f conftest.er1
33590   cat conftest.err >&5
33591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592   (exit $ac_status); } &&
33593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33594   { (case "(($ac_try" in
33595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33596   *) ac_try_echo=$ac_try;;
33597 esac
33598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33599   (eval "$ac_try") 2>&5
33600   ac_status=$?
33601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602   (exit $ac_status); }; } &&
33603          { ac_try='test -s conftest$ac_exeext'
33604   { (case "(($ac_try" in
33605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33606   *) ac_try_echo=$ac_try;;
33607 esac
33608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33609   (eval "$ac_try") 2>&5
33610   ac_status=$?
33611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612   (exit $ac_status); }; }; then
33613   eval "$as_ac_var=yes"
33614 else
33615   echo "$as_me: failed program was:" >&5
33616 sed 's/^/| /' conftest.$ac_ext >&5
33617
33618         eval "$as_ac_var=no"
33619 fi
33620
33621 rm -f core conftest.err conftest.$ac_objext \
33622       conftest$ac_exeext conftest.$ac_ext
33623 fi
33624 ac_res=`eval echo '${'$as_ac_var'}'`
33625                { echo "$as_me:$LINENO: result: $ac_res" >&5
33626 echo "${ECHO_T}$ac_res" >&6; }
33627 if test `eval echo '${'$as_ac_var'}'` = yes; then
33628   cat >>confdefs.h <<_ACEOF
33629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33630 _ACEOF
33631
33632 fi
33633 done
33634
33635 { echo "$as_me:$LINENO: checking for working mmap" >&5
33636 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33637 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33638   echo $ECHO_N "(cached) $ECHO_C" >&6
33639 else
33640   if test "$cross_compiling" = yes; then
33641   ac_cv_func_mmap_fixed_mapped=no
33642 else
33643   cat >conftest.$ac_ext <<_ACEOF
33644 /* confdefs.h.  */
33645 _ACEOF
33646 cat confdefs.h >>conftest.$ac_ext
33647 cat >>conftest.$ac_ext <<_ACEOF
33648 /* end confdefs.h.  */
33649 $ac_includes_default
33650 /* malloc might have been renamed as rpl_malloc. */
33651 #undef malloc
33652
33653 /* Thanks to Mike Haertel and Jim Avera for this test.
33654    Here is a matrix of mmap possibilities:
33655         mmap private not fixed
33656         mmap private fixed at somewhere currently unmapped
33657         mmap private fixed at somewhere already mapped
33658         mmap shared not fixed
33659         mmap shared fixed at somewhere currently unmapped
33660         mmap shared fixed at somewhere already mapped
33661    For private mappings, we should verify that changes cannot be read()
33662    back from the file, nor mmap's back from the file at a different
33663    address.  (There have been systems where private was not correctly
33664    implemented like the infamous i386 svr4.0, and systems where the
33665    VM page cache was not coherent with the file system buffer cache
33666    like early versions of FreeBSD and possibly contemporary NetBSD.)
33667    For shared mappings, we should conversely verify that changes get
33668    propagated back to all the places they're supposed to be.
33669
33670    Grep wants private fixed already mapped.
33671    The main things grep needs to know about mmap are:
33672    * does it exist and is it safe to write into the mmap'd area
33673    * how to use it (BSD variants)  */
33674
33675 #include <fcntl.h>
33676 #include <sys/mman.h>
33677
33678 #if !STDC_HEADERS && !HAVE_STDLIB_H
33679 char *malloc ();
33680 #endif
33681
33682 /* This mess was copied from the GNU getpagesize.h.  */
33683 #if !HAVE_GETPAGESIZE
33684 /* Assume that all systems that can run configure have sys/param.h.  */
33685 # if !HAVE_SYS_PARAM_H
33686 #  define HAVE_SYS_PARAM_H 1
33687 # endif
33688
33689 # ifdef _SC_PAGESIZE
33690 #  define getpagesize() sysconf(_SC_PAGESIZE)
33691 # else /* no _SC_PAGESIZE */
33692 #  if HAVE_SYS_PARAM_H
33693 #   include <sys/param.h>
33694 #   ifdef EXEC_PAGESIZE
33695 #    define getpagesize() EXEC_PAGESIZE
33696 #   else /* no EXEC_PAGESIZE */
33697 #    ifdef NBPG
33698 #     define getpagesize() NBPG * CLSIZE
33699 #     ifndef CLSIZE
33700 #      define CLSIZE 1
33701 #     endif /* no CLSIZE */
33702 #    else /* no NBPG */
33703 #     ifdef NBPC
33704 #      define getpagesize() NBPC
33705 #     else /* no NBPC */
33706 #      ifdef PAGESIZE
33707 #       define getpagesize() PAGESIZE
33708 #      endif /* PAGESIZE */
33709 #     endif /* no NBPC */
33710 #    endif /* no NBPG */
33711 #   endif /* no EXEC_PAGESIZE */
33712 #  else /* no HAVE_SYS_PARAM_H */
33713 #   define getpagesize() 8192   /* punt totally */
33714 #  endif /* no HAVE_SYS_PARAM_H */
33715 # endif /* no _SC_PAGESIZE */
33716
33717 #endif /* no HAVE_GETPAGESIZE */
33718
33719 int
33720 main ()
33721 {
33722   char *data, *data2, *data3;
33723   int i, pagesize;
33724   int fd;
33725
33726   pagesize = getpagesize ();
33727
33728   /* First, make a file with some known garbage in it. */
33729   data = (char *) malloc (pagesize);
33730   if (!data)
33731     return 1;
33732   for (i = 0; i < pagesize; ++i)
33733     *(data + i) = rand ();
33734   umask (0);
33735   fd = creat ("conftest.mmap", 0600);
33736   if (fd < 0)
33737     return 1;
33738   if (write (fd, data, pagesize) != pagesize)
33739     return 1;
33740   close (fd);
33741
33742   /* Next, try to mmap the file at a fixed address which already has
33743      something else allocated at it.  If we can, also make sure that
33744      we see the same garbage.  */
33745   fd = open ("conftest.mmap", O_RDWR);
33746   if (fd < 0)
33747     return 1;
33748   data2 = (char *) malloc (2 * pagesize);
33749   if (!data2)
33750     return 1;
33751   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33752   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33753                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33754     return 1;
33755   for (i = 0; i < pagesize; ++i)
33756     if (*(data + i) != *(data2 + i))
33757       return 1;
33758
33759   /* Finally, make sure that changes to the mapped area do not
33760      percolate back to the file as seen by read().  (This is a bug on
33761      some variants of i386 svr4.0.)  */
33762   for (i = 0; i < pagesize; ++i)
33763     *(data2 + i) = *(data2 + i) + 1;
33764   data3 = (char *) malloc (pagesize);
33765   if (!data3)
33766     return 1;
33767   if (read (fd, data3, pagesize) != pagesize)
33768     return 1;
33769   for (i = 0; i < pagesize; ++i)
33770     if (*(data + i) != *(data3 + i))
33771       return 1;
33772   close (fd);
33773   return 0;
33774 }
33775 _ACEOF
33776 rm -f conftest$ac_exeext
33777 if { (ac_try="$ac_link"
33778 case "(($ac_try" in
33779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33780   *) ac_try_echo=$ac_try;;
33781 esac
33782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33783   (eval "$ac_link") 2>&5
33784   ac_status=$?
33785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33787   { (case "(($ac_try" in
33788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33789   *) ac_try_echo=$ac_try;;
33790 esac
33791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33792   (eval "$ac_try") 2>&5
33793   ac_status=$?
33794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795   (exit $ac_status); }; }; then
33796   ac_cv_func_mmap_fixed_mapped=yes
33797 else
33798   echo "$as_me: program exited with status $ac_status" >&5
33799 echo "$as_me: failed program was:" >&5
33800 sed 's/^/| /' conftest.$ac_ext >&5
33801
33802 ( exit $ac_status )
33803 ac_cv_func_mmap_fixed_mapped=no
33804 fi
33805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33806 fi
33807
33808
33809 fi
33810 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33811 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33812 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33813
33814 cat >>confdefs.h <<\_ACEOF
33815 #define HAVE_MMAP 1
33816 _ACEOF
33817
33818 fi
33819 rm -f conftest.mmap
33820
33821   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33822 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33823 if test "${ac_cv_func_mmap_file+set}" = set; then
33824   echo $ECHO_N "(cached) $ECHO_C" >&6
33825 else
33826    ac_ext=c
33827 ac_cpp='$CPP $CPPFLAGS'
33828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33831
33832   if test "$cross_compiling" = yes; then
33833   ac_cv_func_mmap_file=no
33834 else
33835   cat >conftest.$ac_ext <<_ACEOF
33836
33837     /* confdefs.h.  */
33838 _ACEOF
33839 cat confdefs.h >>conftest.$ac_ext
33840 cat >>conftest.$ac_ext <<_ACEOF
33841 /* end confdefs.h.  */
33842
33843 #include <sys/types.h>
33844 #include <sys/mman.h>
33845 #include <fcntl.h>
33846
33847 int
33848 main ()
33849 {
33850
33851   int fd;
33852   fd = creat ("foo",0777);
33853   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33854   unlink ("foo");
33855   return (fd != (int) MAP_FAILED);
33856   ;
33857   return 0;
33858 }
33859 _ACEOF
33860 rm -f conftest$ac_exeext
33861 if { (ac_try="$ac_link"
33862 case "(($ac_try" in
33863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33864   *) ac_try_echo=$ac_try;;
33865 esac
33866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33867   (eval "$ac_link") 2>&5
33868   ac_status=$?
33869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33871   { (case "(($ac_try" in
33872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33873   *) ac_try_echo=$ac_try;;
33874 esac
33875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33876   (eval "$ac_try") 2>&5
33877   ac_status=$?
33878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879   (exit $ac_status); }; }; then
33880   ac_cv_func_mmap_file=yes
33881 else
33882   echo "$as_me: program exited with status $ac_status" >&5
33883 echo "$as_me: failed program was:" >&5
33884 sed 's/^/| /' conftest.$ac_ext >&5
33885
33886 ( exit $ac_status )
33887 ac_cv_func_mmap_file=no
33888 fi
33889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33890 fi
33891
33892
33893   ac_ext=c
33894 ac_cpp='$CPP $CPPFLAGS'
33895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33898
33899
33900 fi
33901 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33902 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33903 if test "$ac_cv_func_mmap_file" = yes; then
33904
33905 cat >>confdefs.h <<\_ACEOF
33906 #define HAVE_MMAP_FILE
33907 _ACEOF
33908
33909    MMAP_FILE=yes
33910
33911 fi
33912
33913   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33914 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33915 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33916   echo $ECHO_N "(cached) $ECHO_C" >&6
33917 else
33918   if test "$llvm_cv_os_type" = "Interix" ; then
33919    ac_cv_need_dev_zero_for_mmap=yes
33920  else
33921    ac_cv_need_dev_zero_for_mmap=no
33922  fi
33923
33924 fi
33925 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33926 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33927 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33928
33929 cat >>confdefs.h <<\_ACEOF
33930 #define NEED_DEV_ZERO_FOR_MMAP 1
33931 _ACEOF
33932
33933 fi
33934
33935   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33936   then
33937     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33938 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33939   fi
33940   if test "$ac_cv_func_mmap_file" = "no"
33941   then
33942     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33943 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33944   fi
33945 fi
33946
33947
33948
33949 for ac_func in __dso_handle
33950 do
33951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33955   echo $ECHO_N "(cached) $ECHO_C" >&6
33956 else
33957   cat >conftest.$ac_ext <<_ACEOF
33958 /* confdefs.h.  */
33959 _ACEOF
33960 cat confdefs.h >>conftest.$ac_ext
33961 cat >>conftest.$ac_ext <<_ACEOF
33962 /* end confdefs.h.  */
33963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33965 #define $ac_func innocuous_$ac_func
33966
33967 /* System header to define __stub macros and hopefully few prototypes,
33968     which can conflict with char $ac_func (); below.
33969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33970     <limits.h> exists even on freestanding compilers.  */
33971
33972 #ifdef __STDC__
33973 # include <limits.h>
33974 #else
33975 # include <assert.h>
33976 #endif
33977
33978 #undef $ac_func
33979
33980 /* Override any GCC internal prototype to avoid an error.
33981    Use char because int might match the return type of a GCC
33982    builtin and then its argument prototype would still apply.  */
33983 #ifdef __cplusplus
33984 extern "C"
33985 #endif
33986 char $ac_func ();
33987 /* The GNU C library defines this for functions which it implements
33988     to always fail with ENOSYS.  Some functions are actually named
33989     something starting with __ and the normal name is an alias.  */
33990 #if defined __stub_$ac_func || defined __stub___$ac_func
33991 choke me
33992 #endif
33993
33994 int
33995 main ()
33996 {
33997 return $ac_func ();
33998   ;
33999   return 0;
34000 }
34001 _ACEOF
34002 rm -f conftest.$ac_objext conftest$ac_exeext
34003 if { (ac_try="$ac_link"
34004 case "(($ac_try" in
34005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34006   *) ac_try_echo=$ac_try;;
34007 esac
34008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34009   (eval "$ac_link") 2>conftest.er1
34010   ac_status=$?
34011   grep -v '^ *+' conftest.er1 >conftest.err
34012   rm -f conftest.er1
34013   cat conftest.err >&5
34014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015   (exit $ac_status); } &&
34016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34017   { (case "(($ac_try" in
34018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34019   *) ac_try_echo=$ac_try;;
34020 esac
34021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34022   (eval "$ac_try") 2>&5
34023   ac_status=$?
34024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025   (exit $ac_status); }; } &&
34026          { ac_try='test -s conftest$ac_exeext'
34027   { (case "(($ac_try" in
34028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34029   *) ac_try_echo=$ac_try;;
34030 esac
34031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34032   (eval "$ac_try") 2>&5
34033   ac_status=$?
34034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035   (exit $ac_status); }; }; then
34036   eval "$as_ac_var=yes"
34037 else
34038   echo "$as_me: failed program was:" >&5
34039 sed 's/^/| /' conftest.$ac_ext >&5
34040
34041         eval "$as_ac_var=no"
34042 fi
34043
34044 rm -f core conftest.err conftest.$ac_objext \
34045       conftest$ac_exeext conftest.$ac_ext
34046 fi
34047 ac_res=`eval echo '${'$as_ac_var'}'`
34048                { echo "$as_me:$LINENO: result: $ac_res" >&5
34049 echo "${ECHO_T}$ac_res" >&6; }
34050 if test `eval echo '${'$as_ac_var'}'` = yes; then
34051   cat >>confdefs.h <<_ACEOF
34052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34053 _ACEOF
34054
34055 fi
34056 done
34057
34058
34059 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34060 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34061 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34062   echo $ECHO_N "(cached) $ECHO_C" >&6
34063 else
34064   llvm_cv_llvmgcc_sanity="no"
34065 if test -x "$LLVMGCC" ; then
34066   cp /dev/null conftest.c
34067   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34068       grep 'target datalayout =' > /dev/null 2>&1
34069   if test $? -eq 0 ; then
34070     llvm_cv_llvmgcc_sanity="yes"
34071   fi
34072   rm conftest.c
34073 fi
34074 fi
34075 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34076 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34077
34078 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34079   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34080 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34081   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34082   LLVMCC1=$llvmcc1path
34083
34084   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34085   LLVMCC1PLUS=$llvmcc1pluspath
34086
34087   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34088   LLVMGCCDIR=$llvmgccdir
34089
34090   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34091   LLVMGCCLIBEXEC=$llvmgcclibexec
34092
34093   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34094   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34095   LLVMGCC_VERSION=$llvmgccversion
34096
34097   LLVMGCC_MAJVERS=$llvmgccmajvers
34098
34099   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34100   LLVMGCC_LANGS=$llvmgcclangs
34101
34102   { echo "$as_me:$LINENO: result: ok" >&5
34103 echo "${ECHO_T}ok" >&6; }
34104 fi
34105
34106 SHLIBEXT=$libltdl_cv_shlibext
34107
34108
34109 # Translate the various configuration directories and other basic
34110 # information into substitutions that will end up in Makefile.config.in
34111 # that these configured values can be used by the makefiles
34112 if test "${prefix}" = "NONE" ; then
34113   prefix="/usr/local"
34114 fi
34115 eval LLVM_PREFIX="${prefix}";
34116 eval LLVM_BINDIR="${prefix}/bin";
34117 eval LLVM_LIBDIR="${prefix}/lib";
34118 eval LLVM_DATADIR="${prefix}/share/llvm";
34119 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34120 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34121 eval LLVM_INCLUDEDIR="${prefix}/include";
34122 eval LLVM_INFODIR="${prefix}/info";
34123 eval LLVM_MANDIR="${prefix}/man";
34124 LLVM_CONFIGTIME=`date`
34125
34126
34127
34128
34129
34130
34131
34132
34133
34134
34135
34136 # Place the various directores into the config.h file as #defines so that we
34137 # can know about the installation paths within LLVM.
34138
34139 cat >>confdefs.h <<_ACEOF
34140 #define LLVM_PREFIX "$LLVM_PREFIX"
34141 _ACEOF
34142
34143
34144 cat >>confdefs.h <<_ACEOF
34145 #define LLVM_BINDIR "$LLVM_BINDIR"
34146 _ACEOF
34147
34148
34149 cat >>confdefs.h <<_ACEOF
34150 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34151 _ACEOF
34152
34153
34154 cat >>confdefs.h <<_ACEOF
34155 #define LLVM_DATADIR "$LLVM_DATADIR"
34156 _ACEOF
34157
34158
34159 cat >>confdefs.h <<_ACEOF
34160 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34161 _ACEOF
34162
34163
34164 cat >>confdefs.h <<_ACEOF
34165 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34166 _ACEOF
34167
34168
34169 cat >>confdefs.h <<_ACEOF
34170 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34171 _ACEOF
34172
34173
34174 cat >>confdefs.h <<_ACEOF
34175 #define LLVM_INFODIR "$LLVM_INFODIR"
34176 _ACEOF
34177
34178
34179 cat >>confdefs.h <<_ACEOF
34180 #define LLVM_MANDIR "$LLVM_MANDIR"
34181 _ACEOF
34182
34183
34184 cat >>confdefs.h <<_ACEOF
34185 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34186 _ACEOF
34187
34188
34189 cat >>confdefs.h <<_ACEOF
34190 #define LLVM_HOSTTRIPLE "$host"
34191 _ACEOF
34192
34193
34194 # Determine which bindings to build.
34195 if test "$BINDINGS_TO_BUILD" = auto ; then
34196   BINDINGS_TO_BUILD=""
34197   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34198     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34199   fi
34200 fi
34201 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34202
34203
34204 # This isn't really configurey, but it avoids having to repeat the list in
34205 # other files.
34206 ALL_BINDINGS=ocaml
34207
34208
34209 # Do any work necessary to ensure that bindings have what they need.
34210 binding_prereqs_failed=0
34211 for a_binding in $BINDINGS_TO_BUILD ; do
34212   case "$a_binding" in
34213   ocaml)
34214     if test "x$OCAMLC" = x ; then
34215       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34216 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34217       binding_prereqs_failed=1
34218     fi
34219     if test "x$OCAMLDEP" = x ; then
34220       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34221 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34222       binding_prereqs_failed=1
34223     fi
34224     if test "x$OCAMLOPT" = x ; then
34225       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34226 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34227           fi
34228     if test "x$with_ocaml_libdir" != xauto ; then
34229       OCAML_LIBDIR=$with_ocaml_libdir
34230
34231     else
34232       ocaml_stdlib="`"$OCAMLC" -where`"
34233       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34234       then
34235         # ocaml stdlib is beneath our prefix; use stdlib
34236         OCAML_LIBDIR=$ocaml_stdlib
34237
34238       else
34239         # ocaml stdlib is outside our prefix; use libdir/ocaml
34240         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34241
34242       fi
34243     fi
34244     ;;
34245   esac
34246 done
34247 if test "$binding_prereqs_failed" = 1 ; then
34248   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34249 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34250    { (exit 1); exit 1; }; }
34251 fi
34252
34253
34254
34255 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34256
34257 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34258
34259 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34260
34261 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34262
34263 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34264
34265
34266 ac_config_files="$ac_config_files Makefile.config"
34267
34268
34269 ac_config_files="$ac_config_files llvm.spec"
34270
34271
34272 ac_config_files="$ac_config_files docs/doxygen.cfg"
34273
34274
34275 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34276
34277
34278 ac_config_commands="$ac_config_commands setup"
34279
34280 ac_config_commands="$ac_config_commands Makefile"
34281
34282
34283 ac_config_commands="$ac_config_commands Makefile.common"
34284
34285
34286 ac_config_commands="$ac_config_commands examples/Makefile"
34287
34288
34289 ac_config_commands="$ac_config_commands lib/Makefile"
34290
34291
34292 ac_config_commands="$ac_config_commands runtime/Makefile"
34293
34294
34295 ac_config_commands="$ac_config_commands test/Makefile"
34296
34297
34298 ac_config_commands="$ac_config_commands test/Makefile.tests"
34299
34300
34301 ac_config_commands="$ac_config_commands tools/Makefile"
34302
34303
34304 ac_config_commands="$ac_config_commands utils/Makefile"
34305
34306
34307 ac_config_commands="$ac_config_commands projects/Makefile"
34308
34309
34310 ac_config_commands="$ac_config_commands bindings/Makefile"
34311
34312
34313 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34314
34315
34316
34317 cat >confcache <<\_ACEOF
34318 # This file is a shell script that caches the results of configure
34319 # tests run on this system so they can be shared between configure
34320 # scripts and configure runs, see configure's option --config-cache.
34321 # It is not useful on other systems.  If it contains results you don't
34322 # want to keep, you may remove or edit it.
34323 #
34324 # config.status only pays attention to the cache file if you give it
34325 # the --recheck option to rerun configure.
34326 #
34327 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34328 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34329 # following values.
34330
34331 _ACEOF
34332
34333 # The following way of writing the cache mishandles newlines in values,
34334 # but we know of no workaround that is simple, portable, and efficient.
34335 # So, we kill variables containing newlines.
34336 # Ultrix sh set writes to stderr and can't be redirected directly,
34337 # and sets the high bit in the cache file unless we assign to the vars.
34338 (
34339   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34340     eval ac_val=\$$ac_var
34341     case $ac_val in #(
34342     *${as_nl}*)
34343       case $ac_var in #(
34344       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34345 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34346       esac
34347       case $ac_var in #(
34348       _ | IFS | as_nl) ;; #(
34349       *) $as_unset $ac_var ;;
34350       esac ;;
34351     esac
34352   done
34353
34354   (set) 2>&1 |
34355     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34356     *${as_nl}ac_space=\ *)
34357       # `set' does not quote correctly, so add quotes (double-quote
34358       # substitution turns \\\\ into \\, and sed turns \\ into \).
34359       sed -n \
34360         "s/'/'\\\\''/g;
34361           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34362       ;; #(
34363     *)
34364       # `set' quotes correctly as required by POSIX, so do not add quotes.
34365       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34366       ;;
34367     esac |
34368     sort
34369 ) |
34370   sed '
34371      /^ac_cv_env_/b end
34372      t clear
34373      :clear
34374      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34375      t end
34376      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34377      :end' >>confcache
34378 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34379   if test -w "$cache_file"; then
34380     test "x$cache_file" != "x/dev/null" &&
34381       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34382 echo "$as_me: updating cache $cache_file" >&6;}
34383     cat confcache >$cache_file
34384   else
34385     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34386 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34387   fi
34388 fi
34389 rm -f confcache
34390
34391 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34392 # Let make expand exec_prefix.
34393 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34394
34395 DEFS=-DHAVE_CONFIG_H
34396
34397 ac_libobjs=
34398 ac_ltlibobjs=
34399 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34400   # 1. Remove the extension, and $U if already installed.
34401   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34402   ac_i=`echo "$ac_i" | sed "$ac_script"`
34403   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34404   #    will be set to the directory where LIBOBJS objects are built.
34405   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34406   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34407 done
34408 LIBOBJS=$ac_libobjs
34409
34410 LTLIBOBJS=$ac_ltlibobjs
34411
34412
34413 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34414   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34415 Usually this means the macro was only invoked conditionally." >&5
34416 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34417 Usually this means the macro was only invoked conditionally." >&2;}
34418    { (exit 1); exit 1; }; }
34419 fi
34420 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34421   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34422 Usually this means the macro was only invoked conditionally." >&5
34423 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34424 Usually this means the macro was only invoked conditionally." >&2;}
34425    { (exit 1); exit 1; }; }
34426 fi
34427
34428 : ${CONFIG_STATUS=./config.status}
34429 ac_clean_files_save=$ac_clean_files
34430 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34431 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34432 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34433 cat >$CONFIG_STATUS <<_ACEOF
34434 #! $SHELL
34435 # Generated by $as_me.
34436 # Run this file to recreate the current configuration.
34437 # Compiler output produced by configure, useful for debugging
34438 # configure, is in config.log if it exists.
34439
34440 debug=false
34441 ac_cs_recheck=false
34442 ac_cs_silent=false
34443 SHELL=\${CONFIG_SHELL-$SHELL}
34444 _ACEOF
34445
34446 cat >>$CONFIG_STATUS <<\_ACEOF
34447 ## --------------------- ##
34448 ## M4sh Initialization.  ##
34449 ## --------------------- ##
34450
34451 # Be Bourne compatible
34452 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34453   emulate sh
34454   NULLCMD=:
34455   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34456   # is contrary to our usage.  Disable this feature.
34457   alias -g '${1+"$@"}'='"$@"'
34458   setopt NO_GLOB_SUBST
34459 else
34460   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34461 fi
34462 BIN_SH=xpg4; export BIN_SH # for Tru64
34463 DUALCASE=1; export DUALCASE # for MKS sh
34464
34465
34466 # PATH needs CR
34467 # Avoid depending upon Character Ranges.
34468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34471 as_cr_digits='0123456789'
34472 as_cr_alnum=$as_cr_Letters$as_cr_digits
34473
34474 # The user is always right.
34475 if test "${PATH_SEPARATOR+set}" != set; then
34476   echo "#! /bin/sh" >conf$$.sh
34477   echo  "exit 0"   >>conf$$.sh
34478   chmod +x conf$$.sh
34479   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34480     PATH_SEPARATOR=';'
34481   else
34482     PATH_SEPARATOR=:
34483   fi
34484   rm -f conf$$.sh
34485 fi
34486
34487 # Support unset when possible.
34488 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34489   as_unset=unset
34490 else
34491   as_unset=false
34492 fi
34493
34494
34495 # IFS
34496 # We need space, tab and new line, in precisely that order.  Quoting is
34497 # there to prevent editors from complaining about space-tab.
34498 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34499 # splitting by setting IFS to empty value.)
34500 as_nl='
34501 '
34502 IFS=" ""        $as_nl"
34503
34504 # Find who we are.  Look in the path if we contain no directory separator.
34505 case $0 in
34506   *[\\/]* ) as_myself=$0 ;;
34507   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34508 for as_dir in $PATH
34509 do
34510   IFS=$as_save_IFS
34511   test -z "$as_dir" && as_dir=.
34512   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34513 done
34514 IFS=$as_save_IFS
34515
34516      ;;
34517 esac
34518 # We did not find ourselves, most probably we were run as `sh COMMAND'
34519 # in which case we are not to be found in the path.
34520 if test "x$as_myself" = x; then
34521   as_myself=$0
34522 fi
34523 if test ! -f "$as_myself"; then
34524   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34525   { (exit 1); exit 1; }
34526 fi
34527
34528 # Work around bugs in pre-3.0 UWIN ksh.
34529 for as_var in ENV MAIL MAILPATH
34530 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34531 done
34532 PS1='$ '
34533 PS2='> '
34534 PS4='+ '
34535
34536 # NLS nuisances.
34537 for as_var in \
34538   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34539   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34540   LC_TELEPHONE LC_TIME
34541 do
34542   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34543     eval $as_var=C; export $as_var
34544   else
34545     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34546   fi
34547 done
34548
34549 # Required to use basename.
34550 if expr a : '\(a\)' >/dev/null 2>&1 &&
34551    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34552   as_expr=expr
34553 else
34554   as_expr=false
34555 fi
34556
34557 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34558   as_basename=basename
34559 else
34560   as_basename=false
34561 fi
34562
34563
34564 # Name of the executable.
34565 as_me=`$as_basename -- "$0" ||
34566 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34567          X"$0" : 'X\(//\)$' \| \
34568          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34569 echo X/"$0" |
34570     sed '/^.*\/\([^/][^/]*\)\/*$/{
34571             s//\1/
34572             q
34573           }
34574           /^X\/\(\/\/\)$/{
34575             s//\1/
34576             q
34577           }
34578           /^X\/\(\/\).*/{
34579             s//\1/
34580             q
34581           }
34582           s/.*/./; q'`
34583
34584 # CDPATH.
34585 $as_unset CDPATH
34586
34587
34588
34589   as_lineno_1=$LINENO
34590   as_lineno_2=$LINENO
34591   test "x$as_lineno_1" != "x$as_lineno_2" &&
34592   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34593
34594   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34595   # uniformly replaced by the line number.  The first 'sed' inserts a
34596   # line-number line after each line using $LINENO; the second 'sed'
34597   # does the real work.  The second script uses 'N' to pair each
34598   # line-number line with the line containing $LINENO, and appends
34599   # trailing '-' during substitution so that $LINENO is not a special
34600   # case at line end.
34601   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34602   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34603   # E. McMahon (1931-1989) for sed's syntax.  :-)
34604   sed -n '
34605     p
34606     /[$]LINENO/=
34607   ' <$as_myself |
34608     sed '
34609       s/[$]LINENO.*/&-/
34610       t lineno
34611       b
34612       :lineno
34613       N
34614       :loop
34615       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34616       t loop
34617       s/-\n.*//
34618     ' >$as_me.lineno &&
34619   chmod +x "$as_me.lineno" ||
34620     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34621    { (exit 1); exit 1; }; }
34622
34623   # Don't try to exec as it changes $[0], causing all sort of problems
34624   # (the dirname of $[0] is not the place where we might find the
34625   # original and so on.  Autoconf is especially sensitive to this).
34626   . "./$as_me.lineno"
34627   # Exit status is that of the last command.
34628   exit
34629 }
34630
34631
34632 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34633   as_dirname=dirname
34634 else
34635   as_dirname=false
34636 fi
34637
34638 ECHO_C= ECHO_N= ECHO_T=
34639 case `echo -n x` in
34640 -n*)
34641   case `echo 'x\c'` in
34642   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34643   *)   ECHO_C='\c';;
34644   esac;;
34645 *)
34646   ECHO_N='-n';;
34647 esac
34648
34649 if expr a : '\(a\)' >/dev/null 2>&1 &&
34650    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34651   as_expr=expr
34652 else
34653   as_expr=false
34654 fi
34655
34656 rm -f conf$$ conf$$.exe conf$$.file
34657 if test -d conf$$.dir; then
34658   rm -f conf$$.dir/conf$$.file
34659 else
34660   rm -f conf$$.dir
34661   mkdir conf$$.dir
34662 fi
34663 echo >conf$$.file
34664 if ln -s conf$$.file conf$$ 2>/dev/null; then
34665   as_ln_s='ln -s'
34666   # ... but there are two gotchas:
34667   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34668   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34669   # In both cases, we have to default to `cp -p'.
34670   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34671     as_ln_s='cp -p'
34672 elif ln conf$$.file conf$$ 2>/dev/null; then
34673   as_ln_s=ln
34674 else
34675   as_ln_s='cp -p'
34676 fi
34677 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34678 rmdir conf$$.dir 2>/dev/null
34679
34680 if mkdir -p . 2>/dev/null; then
34681   as_mkdir_p=:
34682 else
34683   test -d ./-p && rmdir ./-p
34684   as_mkdir_p=false
34685 fi
34686
34687 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34688 # systems may use methods other than mode bits to determine executability.
34689 cat >conf$$.file <<_ASEOF
34690 #! /bin/sh
34691 exit 0
34692 _ASEOF
34693 chmod +x conf$$.file
34694 if test -x conf$$.file >/dev/null 2>&1; then
34695   as_executable_p="test -x"
34696 else
34697   as_executable_p=:
34698 fi
34699 rm -f conf$$.file
34700
34701 # Sed expression to map a string onto a valid CPP name.
34702 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34703
34704 # Sed expression to map a string onto a valid variable name.
34705 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34706
34707
34708 exec 6>&1
34709
34710 # Save the log message, to keep $[0] and so on meaningful, and to
34711 # report actual input values of CONFIG_FILES etc. instead of their
34712 # values after options handling.
34713 ac_log="
34714 This file was extended by llvm $as_me 2.3svn, which was
34715 generated by GNU Autoconf 2.60.  Invocation command line was
34716
34717   CONFIG_FILES    = $CONFIG_FILES
34718   CONFIG_HEADERS  = $CONFIG_HEADERS
34719   CONFIG_LINKS    = $CONFIG_LINKS
34720   CONFIG_COMMANDS = $CONFIG_COMMANDS
34721   $ $0 $@
34722
34723 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34724 "
34725
34726 _ACEOF
34727
34728 cat >>$CONFIG_STATUS <<_ACEOF
34729 # Files that config.status was made for.
34730 config_files="$ac_config_files"
34731 config_headers="$ac_config_headers"
34732 config_commands="$ac_config_commands"
34733
34734 _ACEOF
34735
34736 cat >>$CONFIG_STATUS <<\_ACEOF
34737 ac_cs_usage="\
34738 \`$as_me' instantiates files from templates according to the
34739 current configuration.
34740
34741 Usage: $0 [OPTIONS] [FILE]...
34742
34743   -h, --help       print this help, then exit
34744   -V, --version    print version number, then exit
34745   -q, --quiet      do not print progress messages
34746   -d, --debug      don't remove temporary files
34747       --recheck    update $as_me by reconfiguring in the same conditions
34748   --file=FILE[:TEMPLATE]
34749                    instantiate the configuration file FILE
34750   --header=FILE[:TEMPLATE]
34751                    instantiate the configuration header FILE
34752
34753 Configuration files:
34754 $config_files
34755
34756 Configuration headers:
34757 $config_headers
34758
34759 Configuration commands:
34760 $config_commands
34761
34762 Report bugs to <bug-autoconf@gnu.org>."
34763
34764 _ACEOF
34765 cat >>$CONFIG_STATUS <<_ACEOF
34766 ac_cs_version="\\
34767 llvm config.status 2.3svn
34768 configured by $0, generated by GNU Autoconf 2.60,
34769   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34770
34771 Copyright (C) 2006 Free Software Foundation, Inc.
34772 This config.status script is free software; the Free Software Foundation
34773 gives unlimited permission to copy, distribute and modify it."
34774
34775 ac_pwd='$ac_pwd'
34776 srcdir='$srcdir'
34777 INSTALL='$INSTALL'
34778 _ACEOF
34779
34780 cat >>$CONFIG_STATUS <<\_ACEOF
34781 # If no file are specified by the user, then we need to provide default
34782 # value.  By we need to know if files were specified by the user.
34783 ac_need_defaults=:
34784 while test $# != 0
34785 do
34786   case $1 in
34787   --*=*)
34788     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34789     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34790     ac_shift=:
34791     ;;
34792   *)
34793     ac_option=$1
34794     ac_optarg=$2
34795     ac_shift=shift
34796     ;;
34797   esac
34798
34799   case $ac_option in
34800   # Handling of the options.
34801   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34802     ac_cs_recheck=: ;;
34803   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34804     echo "$ac_cs_version"; exit ;;
34805   --debug | --debu | --deb | --de | --d | -d )
34806     debug=: ;;
34807   --file | --fil | --fi | --f )
34808     $ac_shift
34809     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34810     ac_need_defaults=false;;
34811   --header | --heade | --head | --hea )
34812     $ac_shift
34813     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34814     ac_need_defaults=false;;
34815   --he | --h)
34816     # Conflict between --help and --header
34817     { echo "$as_me: error: ambiguous option: $1
34818 Try \`$0 --help' for more information." >&2
34819    { (exit 1); exit 1; }; };;
34820   --help | --hel | -h )
34821     echo "$ac_cs_usage"; exit ;;
34822   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34823   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34824     ac_cs_silent=: ;;
34825
34826   # This is an error.
34827   -*) { echo "$as_me: error: unrecognized option: $1
34828 Try \`$0 --help' for more information." >&2
34829    { (exit 1); exit 1; }; } ;;
34830
34831   *) ac_config_targets="$ac_config_targets $1"
34832      ac_need_defaults=false ;;
34833
34834   esac
34835   shift
34836 done
34837
34838 ac_configure_extra_args=
34839
34840 if $ac_cs_silent; then
34841   exec 6>/dev/null
34842   ac_configure_extra_args="$ac_configure_extra_args --silent"
34843 fi
34844
34845 _ACEOF
34846 cat >>$CONFIG_STATUS <<_ACEOF
34847 if \$ac_cs_recheck; then
34848   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34849   CONFIG_SHELL=$SHELL
34850   export CONFIG_SHELL
34851   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34852 fi
34853
34854 _ACEOF
34855 cat >>$CONFIG_STATUS <<\_ACEOF
34856 exec 5>>config.log
34857 {
34858   echo
34859   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34860 ## Running $as_me. ##
34861 _ASBOX
34862   echo "$ac_log"
34863 } >&5
34864
34865 _ACEOF
34866 cat >>$CONFIG_STATUS <<_ACEOF
34867 #
34868 # INIT-COMMANDS
34869 #
34870 llvm_src="${srcdir}"
34871
34872 _ACEOF
34873
34874 cat >>$CONFIG_STATUS <<\_ACEOF
34875
34876 # Handling of arguments.
34877 for ac_config_target in $ac_config_targets
34878 do
34879   case $ac_config_target in
34880     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34881     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34882     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34883     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34884     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34885     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34886     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34887     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34888     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34889     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34890     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34891     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34892     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34893     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34894     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34895     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34896     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34897     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34898     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34899     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34900     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34901     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34902
34903   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34904 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34905    { (exit 1); exit 1; }; };;
34906   esac
34907 done
34908
34909
34910 # If the user did not use the arguments to specify the items to instantiate,
34911 # then the envvar interface is used.  Set only those that are not.
34912 # We use the long form for the default assignment because of an extremely
34913 # bizarre bug on SunOS 4.1.3.
34914 if $ac_need_defaults; then
34915   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34916   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34917   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34918 fi
34919
34920 # Have a temporary directory for convenience.  Make it in the build tree
34921 # simply because there is no reason against having it here, and in addition,
34922 # creating and moving files from /tmp can sometimes cause problems.
34923 # Hook for its removal unless debugging.
34924 # Note that there is a small window in which the directory will not be cleaned:
34925 # after its creation but before its name has been assigned to `$tmp'.
34926 $debug ||
34927 {
34928   tmp=
34929   trap 'exit_status=$?
34930   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34931 ' 0
34932   trap '{ (exit 1); exit 1; }' 1 2 13 15
34933 }
34934 # Create a (secure) tmp directory for tmp files.
34935
34936 {
34937   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34938   test -n "$tmp" && test -d "$tmp"
34939 }  ||
34940 {
34941   tmp=./conf$$-$RANDOM
34942   (umask 077 && mkdir "$tmp")
34943 } ||
34944 {
34945    echo "$me: cannot create a temporary directory in ." >&2
34946    { (exit 1); exit 1; }
34947 }
34948
34949 #
34950 # Set up the sed scripts for CONFIG_FILES section.
34951 #
34952
34953 # No need to generate the scripts if there are no CONFIG_FILES.
34954 # This happens for instance when ./config.status config.h
34955 if test -n "$CONFIG_FILES"; then
34956
34957 _ACEOF
34958
34959
34960
34961 ac_delim='%!_!# '
34962 for ac_last_try in false false false false false :; do
34963   cat >conf$$subs.sed <<_ACEOF
34964 SHELL!$SHELL$ac_delim
34965 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34966 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34967 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34968 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34969 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34970 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34971 exec_prefix!$exec_prefix$ac_delim
34972 prefix!$prefix$ac_delim
34973 program_transform_name!$program_transform_name$ac_delim
34974 bindir!$bindir$ac_delim
34975 sbindir!$sbindir$ac_delim
34976 libexecdir!$libexecdir$ac_delim
34977 datarootdir!$datarootdir$ac_delim
34978 datadir!$datadir$ac_delim
34979 sysconfdir!$sysconfdir$ac_delim
34980 sharedstatedir!$sharedstatedir$ac_delim
34981 localstatedir!$localstatedir$ac_delim
34982 includedir!$includedir$ac_delim
34983 oldincludedir!$oldincludedir$ac_delim
34984 docdir!$docdir$ac_delim
34985 infodir!$infodir$ac_delim
34986 htmldir!$htmldir$ac_delim
34987 dvidir!$dvidir$ac_delim
34988 pdfdir!$pdfdir$ac_delim
34989 psdir!$psdir$ac_delim
34990 libdir!$libdir$ac_delim
34991 localedir!$localedir$ac_delim
34992 mandir!$mandir$ac_delim
34993 DEFS!$DEFS$ac_delim
34994 ECHO_C!$ECHO_C$ac_delim
34995 ECHO_N!$ECHO_N$ac_delim
34996 ECHO_T!$ECHO_T$ac_delim
34997 LIBS!$LIBS$ac_delim
34998 build_alias!$build_alias$ac_delim
34999 host_alias!$host_alias$ac_delim
35000 target_alias!$target_alias$ac_delim
35001 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35002 subdirs!$subdirs$ac_delim
35003 build!$build$ac_delim
35004 build_cpu!$build_cpu$ac_delim
35005 build_vendor!$build_vendor$ac_delim
35006 build_os!$build_os$ac_delim
35007 host!$host$ac_delim
35008 host_cpu!$host_cpu$ac_delim
35009 host_vendor!$host_vendor$ac_delim
35010 host_os!$host_os$ac_delim
35011 target!$target$ac_delim
35012 target_cpu!$target_cpu$ac_delim
35013 target_vendor!$target_vendor$ac_delim
35014 target_os!$target_os$ac_delim
35015 OS!$OS$ac_delim
35016 LINKALL!$LINKALL$ac_delim
35017 NOLINKALL!$NOLINKALL$ac_delim
35018 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35019 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35020 ARCH!$ARCH$ac_delim
35021 ENDIAN!$ENDIAN$ac_delim
35022 CC!$CC$ac_delim
35023 CFLAGS!$CFLAGS$ac_delim
35024 LDFLAGS!$LDFLAGS$ac_delim
35025 CPPFLAGS!$CPPFLAGS$ac_delim
35026 ac_ct_CC!$ac_ct_CC$ac_delim
35027 EXEEXT!$EXEEXT$ac_delim
35028 OBJEXT!$OBJEXT$ac_delim
35029 CPP!$CPP$ac_delim
35030 GREP!$GREP$ac_delim
35031 EGREP!$EGREP$ac_delim
35032 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35033 BUILD_CC!$BUILD_CC$ac_delim
35034 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35035 CVSBUILD!$CVSBUILD$ac_delim
35036 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35037 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35038 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35039 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35040 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35041 JIT!$JIT$ac_delim
35042 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35043 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35044 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35045 ENABLE_PIC!$ENABLE_PIC$ac_delim
35046 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35047 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35048 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35049 CXX!$CXX$ac_delim
35050 CXXFLAGS!$CXXFLAGS$ac_delim
35051 ac_ct_CXX!$ac_ct_CXX$ac_delim
35052 LEX!$LEX$ac_delim
35053 LEXLIB!$LEXLIB$ac_delim
35054 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35055 FLEX!$FLEX$ac_delim
35056 YACC!$YACC$ac_delim
35057 YFLAGS!$YFLAGS$ac_delim
35058 BISON!$BISON$ac_delim
35059 NM!$NM$ac_delim
35060 ifGNUmake!$ifGNUmake$ac_delim
35061 _ACEOF
35062
35063   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35064     break
35065   elif $ac_last_try; then
35066     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35067 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35068    { (exit 1); exit 1; }; }
35069   else
35070     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35071   fi
35072 done
35073
35074 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35075 if test -n "$ac_eof"; then
35076   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35077   ac_eof=`expr $ac_eof + 1`
35078 fi
35079
35080 cat >>$CONFIG_STATUS <<_ACEOF
35081 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35083 _ACEOF
35084 sed '
35085 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35086 s/^/s,@/; s/!/@,|#_!!_#|/
35087 :n
35088 t n
35089 s/'"$ac_delim"'$/,g/; t
35090 s/$/\\/; p
35091 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35092 ' >>$CONFIG_STATUS <conf$$subs.sed
35093 rm -f conf$$subs.sed
35094 cat >>$CONFIG_STATUS <<_ACEOF
35095 CEOF$ac_eof
35096 _ACEOF
35097
35098
35099 ac_delim='%!_!# '
35100 for ac_last_try in false false false false false :; do
35101   cat >conf$$subs.sed <<_ACEOF
35102 LN_S!$LN_S$ac_delim
35103 CMP!$CMP$ac_delim
35104 CP!$CP$ac_delim
35105 DATE!$DATE$ac_delim
35106 FIND!$FIND$ac_delim
35107 MKDIR!$MKDIR$ac_delim
35108 MV!$MV$ac_delim
35109 RANLIB!$RANLIB$ac_delim
35110 RM!$RM$ac_delim
35111 SED!$SED$ac_delim
35112 TAR!$TAR$ac_delim
35113 BINPWD!$BINPWD$ac_delim
35114 GRAPHVIZ!$GRAPHVIZ$ac_delim
35115 DOT!$DOT$ac_delim
35116 GV!$GV$ac_delim
35117 DOTTY!$DOTTY$ac_delim
35118 PERL!$PERL$ac_delim
35119 HAVE_PERL!$HAVE_PERL$ac_delim
35120 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35121 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35122 INSTALL_DATA!$INSTALL_DATA$ac_delim
35123 BZIP2!$BZIP2$ac_delim
35124 DOXYGEN!$DOXYGEN$ac_delim
35125 GROFF!$GROFF$ac_delim
35126 GZIP!$GZIP$ac_delim
35127 POD2HTML!$POD2HTML$ac_delim
35128 POD2MAN!$POD2MAN$ac_delim
35129 RUNTEST!$RUNTEST$ac_delim
35130 TCLSH!$TCLSH$ac_delim
35131 ZIP!$ZIP$ac_delim
35132 OCAMLC!$OCAMLC$ac_delim
35133 OCAMLOPT!$OCAMLOPT$ac_delim
35134 OCAMLDEP!$OCAMLDEP$ac_delim
35135 OCAMLDOC!$OCAMLDOC$ac_delim
35136 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35137 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35138 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35139 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35140 LIBADD_DL!$LIBADD_DL$ac_delim
35141 ECHO!$ECHO$ac_delim
35142 AR!$AR$ac_delim
35143 STRIP!$STRIP$ac_delim
35144 CXXCPP!$CXXCPP$ac_delim
35145 F77!$F77$ac_delim
35146 FFLAGS!$FFLAGS$ac_delim
35147 ac_ct_F77!$ac_ct_F77$ac_delim
35148 LIBTOOL!$LIBTOOL$ac_delim
35149 LLVMGCC!$LLVMGCC$ac_delim
35150 LLVMGXX!$LLVMGXX$ac_delim
35151 USE_UDIS86!$USE_UDIS86$ac_delim
35152 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35153 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35154 ALLOCA!$ALLOCA$ac_delim
35155 MMAP_FILE!$MMAP_FILE$ac_delim
35156 LLVMCC1!$LLVMCC1$ac_delim
35157 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35158 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35159 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35160 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35161 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35162 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35163 SHLIBEXT!$SHLIBEXT$ac_delim
35164 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35165 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35166 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35167 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35168 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35169 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35170 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35171 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35172 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35173 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35174 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35175 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35176 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35177 LIBOBJS!$LIBOBJS$ac_delim
35178 LTLIBOBJS!$LTLIBOBJS$ac_delim
35179 _ACEOF
35180
35181   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
35182     break
35183   elif $ac_last_try; then
35184     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35185 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35186    { (exit 1); exit 1; }; }
35187   else
35188     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35189   fi
35190 done
35191
35192 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35193 if test -n "$ac_eof"; then
35194   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35195   ac_eof=`expr $ac_eof + 1`
35196 fi
35197
35198 cat >>$CONFIG_STATUS <<_ACEOF
35199 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35201 _ACEOF
35202 sed '
35203 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35204 s/^/s,@/; s/!/@,|#_!!_#|/
35205 :n
35206 t n
35207 s/'"$ac_delim"'$/,g/; t
35208 s/$/\\/; p
35209 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35210 ' >>$CONFIG_STATUS <conf$$subs.sed
35211 rm -f conf$$subs.sed
35212 cat >>$CONFIG_STATUS <<_ACEOF
35213 :end
35214 s/|#_!!_#|//g
35215 CEOF$ac_eof
35216 _ACEOF
35217
35218
35219 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35220 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35221 # trailing colons and then remove the whole line if VPATH becomes empty
35222 # (actually we leave an empty line to preserve line numbers).
35223 if test "x$srcdir" = x.; then
35224   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35225 s/:*\$(srcdir):*/:/
35226 s/:*\${srcdir}:*/:/
35227 s/:*@srcdir@:*/:/
35228 s/^\([^=]*=[     ]*\):*/\1/
35229 s/:*$//
35230 s/^[^=]*=[       ]*$//
35231 }'
35232 fi
35233
35234 cat >>$CONFIG_STATUS <<\_ACEOF
35235 fi # test -n "$CONFIG_FILES"
35236
35237
35238 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35239 do
35240   case $ac_tag in
35241   :[FHLC]) ac_mode=$ac_tag; continue;;
35242   esac
35243   case $ac_mode$ac_tag in
35244   :[FHL]*:*);;
35245   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35246 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35247    { (exit 1); exit 1; }; };;
35248   :[FH]-) ac_tag=-:-;;
35249   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35250   esac
35251   ac_save_IFS=$IFS
35252   IFS=:
35253   set x $ac_tag
35254   IFS=$ac_save_IFS
35255   shift
35256   ac_file=$1
35257   shift
35258
35259   case $ac_mode in
35260   :L) ac_source=$1;;
35261   :[FH])
35262     ac_file_inputs=
35263     for ac_f
35264     do
35265       case $ac_f in
35266       -) ac_f="$tmp/stdin";;
35267       *) # Look for the file first in the build tree, then in the source tree
35268          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35269          # because $ac_f cannot contain `:'.
35270          test -f "$ac_f" ||
35271            case $ac_f in
35272            [\\/$]*) false;;
35273            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35274            esac ||
35275            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35276 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35277    { (exit 1); exit 1; }; };;
35278       esac
35279       ac_file_inputs="$ac_file_inputs $ac_f"
35280     done
35281
35282     # Let's still pretend it is `configure' which instantiates (i.e., don't
35283     # use $as_me), people would be surprised to read:
35284     #    /* config.h.  Generated by config.status.  */
35285     configure_input="Generated from "`IFS=:
35286           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35287     if test x"$ac_file" != x-; then
35288       configure_input="$ac_file.  $configure_input"
35289       { echo "$as_me:$LINENO: creating $ac_file" >&5
35290 echo "$as_me: creating $ac_file" >&6;}
35291     fi
35292
35293     case $ac_tag in
35294     *:-:* | *:-) cat >"$tmp/stdin";;
35295     esac
35296     ;;
35297   esac
35298
35299   ac_dir=`$as_dirname -- "$ac_file" ||
35300 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35301          X"$ac_file" : 'X\(//\)[^/]' \| \
35302          X"$ac_file" : 'X\(//\)$' \| \
35303          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35304 echo X"$ac_file" |
35305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35306             s//\1/
35307             q
35308           }
35309           /^X\(\/\/\)[^/].*/{
35310             s//\1/
35311             q
35312           }
35313           /^X\(\/\/\)$/{
35314             s//\1/
35315             q
35316           }
35317           /^X\(\/\).*/{
35318             s//\1/
35319             q
35320           }
35321           s/.*/./; q'`
35322   { as_dir="$ac_dir"
35323   case $as_dir in #(
35324   -*) as_dir=./$as_dir;;
35325   esac
35326   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35327     as_dirs=
35328     while :; do
35329       case $as_dir in #(
35330       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35331       *) as_qdir=$as_dir;;
35332       esac
35333       as_dirs="'$as_qdir' $as_dirs"
35334       as_dir=`$as_dirname -- "$as_dir" ||
35335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35336          X"$as_dir" : 'X\(//\)[^/]' \| \
35337          X"$as_dir" : 'X\(//\)$' \| \
35338          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35339 echo X"$as_dir" |
35340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35341             s//\1/
35342             q
35343           }
35344           /^X\(\/\/\)[^/].*/{
35345             s//\1/
35346             q
35347           }
35348           /^X\(\/\/\)$/{
35349             s//\1/
35350             q
35351           }
35352           /^X\(\/\).*/{
35353             s//\1/
35354             q
35355           }
35356           s/.*/./; q'`
35357       test -d "$as_dir" && break
35358     done
35359     test -z "$as_dirs" || eval "mkdir $as_dirs"
35360   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35361 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35362    { (exit 1); exit 1; }; }; }
35363   ac_builddir=.
35364
35365 case "$ac_dir" in
35366 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35367 *)
35368   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35369   # A ".." for each directory in $ac_dir_suffix.
35370   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35371   case $ac_top_builddir_sub in
35372   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35373   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35374   esac ;;
35375 esac
35376 ac_abs_top_builddir=$ac_pwd
35377 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35378 # for backward compatibility:
35379 ac_top_builddir=$ac_top_build_prefix
35380
35381 case $srcdir in
35382   .)  # We are building in place.
35383     ac_srcdir=.
35384     ac_top_srcdir=$ac_top_builddir_sub
35385     ac_abs_top_srcdir=$ac_pwd ;;
35386   [\\/]* | ?:[\\/]* )  # Absolute name.
35387     ac_srcdir=$srcdir$ac_dir_suffix;
35388     ac_top_srcdir=$srcdir
35389     ac_abs_top_srcdir=$srcdir ;;
35390   *) # Relative name.
35391     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35392     ac_top_srcdir=$ac_top_build_prefix$srcdir
35393     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35394 esac
35395 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35396
35397
35398   case $ac_mode in
35399   :F)
35400   #
35401   # CONFIG_FILE
35402   #
35403
35404   case $INSTALL in
35405   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35406   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35407   esac
35408 _ACEOF
35409
35410 cat >>$CONFIG_STATUS <<\_ACEOF
35411 # If the template does not know about datarootdir, expand it.
35412 # FIXME: This hack should be removed a few years after 2.60.
35413 ac_datarootdir_hack=; ac_datarootdir_seen=
35414
35415 case `sed -n '/datarootdir/ {
35416   p
35417   q
35418 }
35419 /@datadir@/p
35420 /@docdir@/p
35421 /@infodir@/p
35422 /@localedir@/p
35423 /@mandir@/p
35424 ' $ac_file_inputs` in
35425 *datarootdir*) ac_datarootdir_seen=yes;;
35426 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35427   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35428 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35429 _ACEOF
35430 cat >>$CONFIG_STATUS <<_ACEOF
35431   ac_datarootdir_hack='
35432   s&@datadir@&$datadir&g
35433   s&@docdir@&$docdir&g
35434   s&@infodir@&$infodir&g
35435   s&@localedir@&$localedir&g
35436   s&@mandir@&$mandir&g
35437     s&\\\${datarootdir}&$datarootdir&g' ;;
35438 esac
35439 _ACEOF
35440
35441 # Neutralize VPATH when `$srcdir' = `.'.
35442 # Shell code in configure.ac might set extrasub.
35443 # FIXME: do we really want to maintain this feature?
35444 cat >>$CONFIG_STATUS <<_ACEOF
35445   sed "$ac_vpsub
35446 $extrasub
35447 _ACEOF
35448 cat >>$CONFIG_STATUS <<\_ACEOF
35449 :t
35450 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35451 s&@configure_input@&$configure_input&;t t
35452 s&@top_builddir@&$ac_top_builddir_sub&;t t
35453 s&@srcdir@&$ac_srcdir&;t t
35454 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35455 s&@top_srcdir@&$ac_top_srcdir&;t t
35456 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35457 s&@builddir@&$ac_builddir&;t t
35458 s&@abs_builddir@&$ac_abs_builddir&;t t
35459 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35460 s&@INSTALL@&$ac_INSTALL&;t t
35461 $ac_datarootdir_hack
35462 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35463
35464 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35465   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35466   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35467   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35468 which seems to be undefined.  Please make sure it is defined." >&5
35469 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35470 which seems to be undefined.  Please make sure it is defined." >&2;}
35471
35472   rm -f "$tmp/stdin"
35473   case $ac_file in
35474   -) cat "$tmp/out"; rm -f "$tmp/out";;
35475   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35476   esac
35477  ;;
35478   :H)
35479   #
35480   # CONFIG_HEADER
35481   #
35482 _ACEOF
35483
35484 # Transform confdefs.h into a sed script `conftest.defines', that
35485 # substitutes the proper values into config.h.in to produce config.h.
35486 rm -f conftest.defines conftest.tail
35487 # First, append a space to every undef/define line, to ease matching.
35488 echo 's/$/ /' >conftest.defines
35489 # Then, protect against being on the right side of a sed subst, or in
35490 # an unquoted here document, in config.status.  If some macros were
35491 # called several times there might be several #defines for the same
35492 # symbol, which is useless.  But do not sort them, since the last
35493 # AC_DEFINE must be honored.
35494 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35495 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35496 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35497 # PARAMS is the parameter list in the macro definition--in most cases, it's
35498 # just an empty string.
35499 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35500 ac_dB='\\)[      (].*,\\1define\\2'
35501 ac_dC=' '
35502 ac_dD=' ,'
35503
35504 uniq confdefs.h |
35505   sed -n '
35506         t rset
35507         :rset
35508         s/^[     ]*#[    ]*define[       ][      ]*//
35509         t ok
35510         d
35511         :ok
35512         s/[\\&,]/\\&/g
35513         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35514         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35515   ' >>conftest.defines
35516
35517 # Remove the space that was appended to ease matching.
35518 # Then replace #undef with comments.  This is necessary, for
35519 # example, in the case of _POSIX_SOURCE, which is predefined and required
35520 # on some systems where configure will not decide to define it.
35521 # (The regexp can be short, since the line contains either #define or #undef.)
35522 echo 's/ $//
35523 s,^[     #]*u.*,/* & */,' >>conftest.defines
35524
35525 # Break up conftest.defines:
35526 ac_max_sed_lines=50
35527
35528 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35529 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35530 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35531 # et cetera.
35532 ac_in='$ac_file_inputs'
35533 ac_out='"$tmp/out1"'
35534 ac_nxt='"$tmp/out2"'
35535
35536 while :
35537 do
35538   # Write a here document:
35539     cat >>$CONFIG_STATUS <<_ACEOF
35540     # First, check the format of the line:
35541     cat >"\$tmp/defines.sed" <<\\CEOF
35542 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35543 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35544 b
35545 :def
35546 _ACEOF
35547   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35548   echo 'CEOF
35549     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35550   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35551   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35552   grep . conftest.tail >/dev/null || break
35553   rm -f conftest.defines
35554   mv conftest.tail conftest.defines
35555 done
35556 rm -f conftest.defines conftest.tail
35557
35558 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35559 cat >>$CONFIG_STATUS <<\_ACEOF
35560   if test x"$ac_file" != x-; then
35561     echo "/* $configure_input  */" >"$tmp/config.h"
35562     cat "$ac_result" >>"$tmp/config.h"
35563     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35564       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35565 echo "$as_me: $ac_file is unchanged" >&6;}
35566     else
35567       rm -f $ac_file
35568       mv "$tmp/config.h" $ac_file
35569     fi
35570   else
35571     echo "/* $configure_input  */"
35572     cat "$ac_result"
35573   fi
35574   rm -f "$tmp/out12"
35575  ;;
35576
35577   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35578 echo "$as_me: executing $ac_file commands" >&6;}
35579  ;;
35580   esac
35581
35582
35583   case $ac_file$ac_mode in
35584     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35585    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35586     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35587    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35588     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35589    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35590     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35591    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35592     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35593    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35594     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35595    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35596     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35597    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35598     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35599    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35600     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35601    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35602     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35603    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35604     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35605    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35606     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35607    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35608
35609   esac
35610 done # for ac_tag
35611
35612
35613 { (exit 0); exit 0; }
35614 _ACEOF
35615 chmod +x $CONFIG_STATUS
35616 ac_clean_files=$ac_clean_files_save
35617
35618
35619 # configure is writing to config.log, and then calls config.status.
35620 # config.status does its own redirection, appending to config.log.
35621 # Unfortunately, on DOS this fails, as config.log is still kept open
35622 # by configure, so config.status won't be able to write to it; its
35623 # output is simply discarded.  So we exec the FD to /dev/null,
35624 # effectively closing config.log, so it can be properly (re)opened and
35625 # appended to by config.status.  When coming back to configure, we
35626 # need to make the FD available again.
35627 if test "$no_create" != yes; then
35628   ac_cs_success=:
35629   ac_config_status_args=
35630   test "$silent" = yes &&
35631     ac_config_status_args="$ac_config_status_args --quiet"
35632   exec 5>/dev/null
35633   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35634   exec 5>>config.log
35635   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35636   # would make configure fail if this is the last instruction.
35637   $ac_cs_success || { (exit 1); exit 1; }
35638 fi
35639
35640 #
35641 # CONFIG_SUBDIRS section.
35642 #
35643 if test "$no_recursion" != yes; then
35644
35645   # Remove --cache-file and --srcdir arguments so they do not pile up.
35646   ac_sub_configure_args=
35647   ac_prev=
35648   eval "set x $ac_configure_args"
35649   shift
35650   for ac_arg
35651   do
35652     if test -n "$ac_prev"; then
35653       ac_prev=
35654       continue
35655     fi
35656     case $ac_arg in
35657     -cache-file | --cache-file | --cache-fil | --cache-fi \
35658     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35659       ac_prev=cache_file ;;
35660     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35661     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35662     | --c=*)
35663       ;;
35664     --config-cache | -C)
35665       ;;
35666     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35667       ac_prev=srcdir ;;
35668     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35669       ;;
35670     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35671       ac_prev=prefix ;;
35672     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35673       ;;
35674     *)
35675       case $ac_arg in
35676       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35677       esac
35678       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35679     esac
35680   done
35681
35682   # Always prepend --prefix to ensure using the same prefix
35683   # in subdir configurations.
35684   ac_arg="--prefix=$prefix"
35685   case $ac_arg in
35686   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35687   esac
35688   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35689
35690   ac_popdir=`pwd`
35691   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35692
35693     # Do not complain, so a configure script can configure whichever
35694     # parts of a large source tree are present.
35695     test -d "$srcdir/$ac_dir" || continue
35696
35697     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35698     echo "$as_me:$LINENO: $ac_msg" >&5
35699     echo "$ac_msg" >&6
35700     { as_dir="$ac_dir"
35701   case $as_dir in #(
35702   -*) as_dir=./$as_dir;;
35703   esac
35704   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35705     as_dirs=
35706     while :; do
35707       case $as_dir in #(
35708       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35709       *) as_qdir=$as_dir;;
35710       esac
35711       as_dirs="'$as_qdir' $as_dirs"
35712       as_dir=`$as_dirname -- "$as_dir" ||
35713 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35714          X"$as_dir" : 'X\(//\)[^/]' \| \
35715          X"$as_dir" : 'X\(//\)$' \| \
35716          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35717 echo X"$as_dir" |
35718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35719             s//\1/
35720             q
35721           }
35722           /^X\(\/\/\)[^/].*/{
35723             s//\1/
35724             q
35725           }
35726           /^X\(\/\/\)$/{
35727             s//\1/
35728             q
35729           }
35730           /^X\(\/\).*/{
35731             s//\1/
35732             q
35733           }
35734           s/.*/./; q'`
35735       test -d "$as_dir" && break
35736     done
35737     test -z "$as_dirs" || eval "mkdir $as_dirs"
35738   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35739 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35740    { (exit 1); exit 1; }; }; }
35741     ac_builddir=.
35742
35743 case "$ac_dir" in
35744 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35745 *)
35746   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35747   # A ".." for each directory in $ac_dir_suffix.
35748   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35749   case $ac_top_builddir_sub in
35750   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35751   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35752   esac ;;
35753 esac
35754 ac_abs_top_builddir=$ac_pwd
35755 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35756 # for backward compatibility:
35757 ac_top_builddir=$ac_top_build_prefix
35758
35759 case $srcdir in
35760   .)  # We are building in place.
35761     ac_srcdir=.
35762     ac_top_srcdir=$ac_top_builddir_sub
35763     ac_abs_top_srcdir=$ac_pwd ;;
35764   [\\/]* | ?:[\\/]* )  # Absolute name.
35765     ac_srcdir=$srcdir$ac_dir_suffix;
35766     ac_top_srcdir=$srcdir
35767     ac_abs_top_srcdir=$srcdir ;;
35768   *) # Relative name.
35769     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35770     ac_top_srcdir=$ac_top_build_prefix$srcdir
35771     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35772 esac
35773 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35774
35775
35776     cd "$ac_dir"
35777
35778     # Check for guested configure; otherwise get Cygnus style configure.
35779     if test -f "$ac_srcdir/configure.gnu"; then
35780       ac_sub_configure=$ac_srcdir/configure.gnu
35781     elif test -f "$ac_srcdir/configure"; then
35782       ac_sub_configure=$ac_srcdir/configure
35783     elif test -f "$ac_srcdir/configure.in"; then
35784       # This should be Cygnus configure.
35785       ac_sub_configure=$ac_aux_dir/configure
35786     else
35787       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35788 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35789       ac_sub_configure=
35790     fi
35791
35792     # The recursion is here.
35793     if test -n "$ac_sub_configure"; then
35794       # Make the cache file name correct relative to the subdirectory.
35795       case $cache_file in
35796       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35797       *) # Relative name.
35798         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35799       esac
35800
35801       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35802 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35803       # The eval makes quoting arguments work.
35804       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35805            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35806         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35807 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35808    { (exit 1); exit 1; }; }
35809     fi
35810
35811     cd "$ac_popdir"
35812   done
35813 fi
35814