For PR738:
[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 1.9cvs.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545 case X$ECHO in
546 X*--fallback-echo)
547   # Remove one level of quotation (which was required for Make).
548   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549   ;;
550 esac
551
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554   # Discard the --no-reexec flag, and continue.
555   shift
556 elif test "X$1" = X--fallback-echo; then
557   # Avoid inline document here, it may be left over
558   :
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560   # Yippee, $echo works!
561   :
562 else
563   # Restart under the correct shell.
564   exec $SHELL "$0" --no-reexec ${1+"$@"}
565 fi
566
567 if test "X$1" = X--fallback-echo; then
568   # used as fallback echo
569   shift
570   cat <<EOF
571 $*
572 EOF
573   exit 0
574 fi
575
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586        echo_test_string=`eval $cmd` &&
587        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588     then
589       break
590     fi
591   done
592 fi
593
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596    test "X$echo_testing_string" = "X$echo_test_string"; then
597   :
598 else
599   # The Solaris, AIX, and Digital Unix default echo programs unquote
600   # backslashes.  This makes it impossible to quote backslashes using
601   #   echo "$something" | sed 's/\\/\\\\/g'
602   #
603   # So, first we look for a working echo in the user's PATH.
604
605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606   for dir in $PATH /usr/ucb; do
607     IFS="$lt_save_ifs"
608     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611        test "X$echo_testing_string" = "X$echo_test_string"; then
612       echo="$dir/echo"
613       break
614     fi
615   done
616   IFS="$lt_save_ifs"
617
618   if test "X$echo" = Xecho; then
619     # We didn't find a better echo, so look for alternatives.
620     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       # This shell has a builtin print -r that does the trick.
624       echo='print -r'
625     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626          test "X$CONFIG_SHELL" != X/bin/ksh; then
627       # If we have ksh, try running configure again with it.
628       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629       export ORIGINAL_CONFIG_SHELL
630       CONFIG_SHELL=/bin/ksh
631       export CONFIG_SHELL
632       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633     else
634       # Try using printf.
635       echo='printf %s\n'
636       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638          test "X$echo_testing_string" = "X$echo_test_string"; then
639         # Cool, printf works
640         :
641       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642            test "X$echo_testing_string" = 'X\t' &&
643            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644            test "X$echo_testing_string" = "X$echo_test_string"; then
645         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646         export CONFIG_SHELL
647         SHELL="$CONFIG_SHELL"
648         export SHELL
649         echo="$CONFIG_SHELL $0 --fallback-echo"
650       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651            test "X$echo_testing_string" = 'X\t' &&
652            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653            test "X$echo_testing_string" = "X$echo_test_string"; then
654         echo="$CONFIG_SHELL $0 --fallback-echo"
655       else
656         # maybe with a smaller string...
657         prev=:
658
659         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661           then
662             break
663           fi
664           prev="$cmd"
665         done
666
667         if test "$prev" != 'sed 50q "$0"'; then
668           echo_test_string=`eval $prev`
669           export echo_test_string
670           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671         else
672           # Oops.  We lost completely, so just stick with echo.
673           echo=echo
674         fi
675       fi
676     fi
677   fi
678 fi
679 fi
680
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 fi
687
688
689
690
691 tagnames=${tagnames+${tagnames},}CXX
692
693 tagnames=${tagnames+${tagnames},}F77
694
695 exec 7<&0 </dev/null 6>&1
696
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702 #
703 # Initializations.
704 #
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
714
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='1.9cvs'
719 PACKAGE_STRING='llvm 1.9cvs'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
810 OS
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 CVSBUILD
831 ENABLE_OPTIMIZED
832 DISABLE_ASSERTIONS
833 DEBUG_RUNTIME
834 JIT
835 TARGET_HAS_JIT
836 ENABLE_DOXYGEN
837 ENABLE_THREADS
838 TARGETS_TO_BUILD
839 EXTRA_OPTIONS
840 CXX
841 CXXFLAGS
842 ac_ct_CXX
843 LEX
844 LEXLIB
845 LEX_OUTPUT_ROOT
846 FLEX
847 YACC
848 YFLAGS
849 BISON
850 NM
851 ifGNUmake
852 LN_S
853 CMP
854 CP
855 DATE
856 FIND
857 MKDIR
858 MV
859 RANLIB
860 RM
861 SED
862 TAR
863 BINPWD
864 GRAPHVIZ
865 DOT
866 GV
867 DOTTY
868 PERL
869 HAVE_PERL
870 INSTALL_PROGRAM
871 INSTALL_SCRIPT
872 INSTALL_DATA
873 BZIP2
874 DOXYGEN
875 GROFF
876 GZIP
877 POD2HTML
878 POD2MAN
879 RUNTEST
880 TCLSH
881 ZIP
882 INSTALL_LTDL_TRUE
883 INSTALL_LTDL_FALSE
884 CONVENIENCE_LTDL_TRUE
885 CONVENIENCE_LTDL_FALSE
886 LIBADD_DL
887 ECHO
888 AR
889 STRIP
890 CXXCPP
891 F77
892 FFLAGS
893 ac_ct_F77
894 LIBTOOL
895 ETAGSFLAGS
896 LLVMGCC
897 LLVMGXX
898 ALLOCA
899 MMAP_FILE
900 LLVMCC1
901 LLVMCC1PLUS
902 LLVMGCCDIR
903 LLVMGCC_VERSION
904 LLVMGCC_MAJVERS
905 SHLIBEXT
906 LLVM_PREFIX
907 LLVM_BINDIR
908 LLVM_LIBDIR
909 LLVM_DATADIR
910 LLVM_DOCSDIR
911 LLVM_ETCDIR
912 LLVM_INCLUDEDIR
913 LLVM_INFODIR
914 LLVM_MANDIR
915 LLVM_CONFIGTIME
916 LIBOBJS
917 LTLIBOBJS'
918 ac_subst_files=''
919       ac_precious_vars='build_alias
920 host_alias
921 target_alias
922 CC
923 CFLAGS
924 LDFLAGS
925 CPPFLAGS
926 CPP
927 CXX
928 CXXFLAGS
929 CCC
930 YACC
931 YFLAGS
932 CXXCPP
933 F77
934 FFLAGS'
935 ac_subdirs_all='projects/sample
936 projects/Stacker
937 projects/privbracket
938 projects/llvm-test
939 projects/llvm-reopt
940 projects/llvm-gcc
941 projects/llvm-java
942 projects/llvm-tv
943 projects/llvm-poolalloc
944 projects/llvm-kernel'
945
946 # Initialize some variables set by options.
947 ac_init_help=
948 ac_init_version=false
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
951 cache_file=/dev/null
952 exec_prefix=NONE
953 no_create=
954 no_recursion=
955 prefix=NONE
956 program_prefix=NONE
957 program_suffix=NONE
958 program_transform_name=s,x,x,
959 silent=
960 site=
961 srcdir=
962 verbose=
963 x_includes=NONE
964 x_libraries=NONE
965
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir='${exec_prefix}/bin'
973 sbindir='${exec_prefix}/sbin'
974 libexecdir='${exec_prefix}/libexec'
975 datarootdir='${prefix}/share'
976 datadir='${datarootdir}'
977 sysconfdir='${prefix}/etc'
978 sharedstatedir='${prefix}/com'
979 localstatedir='${prefix}/var'
980 includedir='${prefix}/include'
981 oldincludedir='/usr/include'
982 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
983 infodir='${datarootdir}/info'
984 htmldir='${docdir}'
985 dvidir='${docdir}'
986 pdfdir='${docdir}'
987 psdir='${docdir}'
988 libdir='${exec_prefix}/lib'
989 localedir='${datarootdir}/locale'
990 mandir='${datarootdir}/man'
991
992 ac_prev=
993 ac_dashdash=
994 for ac_option
995 do
996   # If the previous option needs an argument, assign it.
997   if test -n "$ac_prev"; then
998     eval $ac_prev=\$ac_option
999     ac_prev=
1000     continue
1001   fi
1002
1003   case $ac_option in
1004   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005   *)    ac_optarg=yes ;;
1006   esac
1007
1008   # Accept the important Cygnus configure options, so we can diagnose typos.
1009
1010   case $ac_dashdash$ac_option in
1011   --)
1012     ac_dashdash=yes ;;
1013
1014   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015     ac_prev=bindir ;;
1016   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017     bindir=$ac_optarg ;;
1018
1019   -build | --build | --buil | --bui | --bu)
1020     ac_prev=build_alias ;;
1021   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022     build_alias=$ac_optarg ;;
1023
1024   -cache-file | --cache-file | --cache-fil | --cache-fi \
1025   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1026     ac_prev=cache_file ;;
1027   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1028   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1029     cache_file=$ac_optarg ;;
1030
1031   --config-cache | -C)
1032     cache_file=config.cache ;;
1033
1034   -datadir | --datadir | --datadi | --datad)
1035     ac_prev=datadir ;;
1036   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1037     datadir=$ac_optarg ;;
1038
1039   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040   | --dataroo | --dataro | --datar)
1041     ac_prev=datarootdir ;;
1042   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044     datarootdir=$ac_optarg ;;
1045
1046   -disable-* | --disable-*)
1047     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048     # Reject names that are not valid shell variable names.
1049     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1050       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1051    { (exit 1); exit 1; }; }
1052     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1053     eval enable_$ac_feature=no ;;
1054
1055   -docdir | --docdir | --docdi | --doc | --do)
1056     ac_prev=docdir ;;
1057   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058     docdir=$ac_optarg ;;
1059
1060   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061     ac_prev=dvidir ;;
1062   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063     dvidir=$ac_optarg ;;
1064
1065   -enable-* | --enable-*)
1066     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067     # Reject names that are not valid shell variable names.
1068     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1069       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1070    { (exit 1); exit 1; }; }
1071     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1072     eval enable_$ac_feature=\$ac_optarg ;;
1073
1074   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1075   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1076   | --exec | --exe | --ex)
1077     ac_prev=exec_prefix ;;
1078   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1079   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1080   | --exec=* | --exe=* | --ex=*)
1081     exec_prefix=$ac_optarg ;;
1082
1083   -gas | --gas | --ga | --g)
1084     # Obsolete; use --with-gas.
1085     with_gas=yes ;;
1086
1087   -help | --help | --hel | --he | -h)
1088     ac_init_help=long ;;
1089   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1090     ac_init_help=recursive ;;
1091   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1092     ac_init_help=short ;;
1093
1094   -host | --host | --hos | --ho)
1095     ac_prev=host_alias ;;
1096   -host=* | --host=* | --hos=* | --ho=*)
1097     host_alias=$ac_optarg ;;
1098
1099   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1100     ac_prev=htmldir ;;
1101   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1102   | --ht=*)
1103     htmldir=$ac_optarg ;;
1104
1105   -includedir | --includedir | --includedi | --included | --include \
1106   | --includ | --inclu | --incl | --inc)
1107     ac_prev=includedir ;;
1108   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1109   | --includ=* | --inclu=* | --incl=* | --inc=*)
1110     includedir=$ac_optarg ;;
1111
1112   -infodir | --infodir | --infodi | --infod | --info | --inf)
1113     ac_prev=infodir ;;
1114   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1115     infodir=$ac_optarg ;;
1116
1117   -libdir | --libdir | --libdi | --libd)
1118     ac_prev=libdir ;;
1119   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1120     libdir=$ac_optarg ;;
1121
1122   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1123   | --libexe | --libex | --libe)
1124     ac_prev=libexecdir ;;
1125   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1126   | --libexe=* | --libex=* | --libe=*)
1127     libexecdir=$ac_optarg ;;
1128
1129   -localedir | --localedir | --localedi | --localed | --locale)
1130     ac_prev=localedir ;;
1131   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1132     localedir=$ac_optarg ;;
1133
1134   -localstatedir | --localstatedir | --localstatedi | --localstated \
1135   | --localstate | --localstat | --localsta | --localst | --locals)
1136     ac_prev=localstatedir ;;
1137   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1138   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1139     localstatedir=$ac_optarg ;;
1140
1141   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1142     ac_prev=mandir ;;
1143   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1144     mandir=$ac_optarg ;;
1145
1146   -nfp | --nfp | --nf)
1147     # Obsolete; use --without-fp.
1148     with_fp=no ;;
1149
1150   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1151   | --no-cr | --no-c | -n)
1152     no_create=yes ;;
1153
1154   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1155   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1156     no_recursion=yes ;;
1157
1158   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1159   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1160   | --oldin | --oldi | --old | --ol | --o)
1161     ac_prev=oldincludedir ;;
1162   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1163   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1164   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1165     oldincludedir=$ac_optarg ;;
1166
1167   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1168     ac_prev=prefix ;;
1169   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1170     prefix=$ac_optarg ;;
1171
1172   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1173   | --program-pre | --program-pr | --program-p)
1174     ac_prev=program_prefix ;;
1175   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1176   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1177     program_prefix=$ac_optarg ;;
1178
1179   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1180   | --program-suf | --program-su | --program-s)
1181     ac_prev=program_suffix ;;
1182   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1183   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1184     program_suffix=$ac_optarg ;;
1185
1186   -program-transform-name | --program-transform-name \
1187   | --program-transform-nam | --program-transform-na \
1188   | --program-transform-n | --program-transform- \
1189   | --program-transform | --program-transfor \
1190   | --program-transfo | --program-transf \
1191   | --program-trans | --program-tran \
1192   | --progr-tra | --program-tr | --program-t)
1193     ac_prev=program_transform_name ;;
1194   -program-transform-name=* | --program-transform-name=* \
1195   | --program-transform-nam=* | --program-transform-na=* \
1196   | --program-transform-n=* | --program-transform-=* \
1197   | --program-transform=* | --program-transfor=* \
1198   | --program-transfo=* | --program-transf=* \
1199   | --program-trans=* | --program-tran=* \
1200   | --progr-tra=* | --program-tr=* | --program-t=*)
1201     program_transform_name=$ac_optarg ;;
1202
1203   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1204     ac_prev=pdfdir ;;
1205   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1206     pdfdir=$ac_optarg ;;
1207
1208   -psdir | --psdir | --psdi | --psd | --ps)
1209     ac_prev=psdir ;;
1210   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1211     psdir=$ac_optarg ;;
1212
1213   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1214   | -silent | --silent | --silen | --sile | --sil)
1215     silent=yes ;;
1216
1217   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218     ac_prev=sbindir ;;
1219   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220   | --sbi=* | --sb=*)
1221     sbindir=$ac_optarg ;;
1222
1223   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225   | --sharedst | --shareds | --shared | --share | --shar \
1226   | --sha | --sh)
1227     ac_prev=sharedstatedir ;;
1228   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231   | --sha=* | --sh=*)
1232     sharedstatedir=$ac_optarg ;;
1233
1234   -site | --site | --sit)
1235     ac_prev=site ;;
1236   -site=* | --site=* | --sit=*)
1237     site=$ac_optarg ;;
1238
1239   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240     ac_prev=srcdir ;;
1241   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1242     srcdir=$ac_optarg ;;
1243
1244   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245   | --syscon | --sysco | --sysc | --sys | --sy)
1246     ac_prev=sysconfdir ;;
1247   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1249     sysconfdir=$ac_optarg ;;
1250
1251   -target | --target | --targe | --targ | --tar | --ta | --t)
1252     ac_prev=target_alias ;;
1253   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1254     target_alias=$ac_optarg ;;
1255
1256   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1257     verbose=yes ;;
1258
1259   -version | --version | --versio | --versi | --vers | -V)
1260     ac_init_version=: ;;
1261
1262   -with-* | --with-*)
1263     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1264     # Reject names that are not valid shell variable names.
1265     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1266       { echo "$as_me: error: invalid package name: $ac_package" >&2
1267    { (exit 1); exit 1; }; }
1268     ac_package=`echo $ac_package| sed 's/-/_/g'`
1269     eval with_$ac_package=\$ac_optarg ;;
1270
1271   -without-* | --without-*)
1272     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273     # Reject names that are not valid shell variable names.
1274     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1275       { echo "$as_me: error: invalid package name: $ac_package" >&2
1276    { (exit 1); exit 1; }; }
1277     ac_package=`echo $ac_package | sed 's/-/_/g'`
1278     eval with_$ac_package=no ;;
1279
1280   --x)
1281     # Obsolete; use --with-x.
1282     with_x=yes ;;
1283
1284   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1285   | --x-incl | --x-inc | --x-in | --x-i)
1286     ac_prev=x_includes ;;
1287   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1288   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1289     x_includes=$ac_optarg ;;
1290
1291   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1292   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1293     ac_prev=x_libraries ;;
1294   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1295   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1296     x_libraries=$ac_optarg ;;
1297
1298   -*) { echo "$as_me: error: unrecognized option: $ac_option
1299 Try \`$0 --help' for more information." >&2
1300    { (exit 1); exit 1; }; }
1301     ;;
1302
1303   *=*)
1304     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305     # Reject names that are not valid shell variable names.
1306     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1307       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1308    { (exit 1); exit 1; }; }
1309     eval $ac_envvar=\$ac_optarg
1310     export $ac_envvar ;;
1311
1312   *)
1313     # FIXME: should be removed in autoconf 3.0.
1314     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1318     ;;
1319
1320   esac
1321 done
1322
1323 if test -n "$ac_prev"; then
1324   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1325   { echo "$as_me: error: missing argument to $ac_option" >&2
1326    { (exit 1); exit 1; }; }
1327 fi
1328
1329 # Be sure to have absolute directory names.
1330 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331                 datadir sysconfdir sharedstatedir localstatedir includedir \
1332                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333                 libdir localedir mandir
1334 do
1335   eval ac_val=\$$ac_var
1336   case $ac_val in
1337     [\\/$]* | ?:[\\/]* )  continue;;
1338     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339   esac
1340   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1341    { (exit 1); exit 1; }; }
1342 done
1343
1344 # There might be people who depend on the old broken behavior: `$host'
1345 # used to hold the argument of --host etc.
1346 # FIXME: To remove some day.
1347 build=$build_alias
1348 host=$host_alias
1349 target=$target_alias
1350
1351 # FIXME: To remove some day.
1352 if test "x$host_alias" != x; then
1353   if test "x$build_alias" = x; then
1354     cross_compiling=maybe
1355     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1356     If a cross compiler is detected then cross compile mode will be used." >&2
1357   elif test "x$build_alias" != "x$host_alias"; then
1358     cross_compiling=yes
1359   fi
1360 fi
1361
1362 ac_tool_prefix=
1363 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364
1365 test "$silent" = yes && exec 6>/dev/null
1366
1367
1368 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1369 ac_ls_di=`ls -di .` &&
1370 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1371   { echo "$as_me: error: Working directory cannot be determined" >&2
1372    { (exit 1); exit 1; }; }
1373 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374   { echo "$as_me: error: pwd does not report name of working directory" >&2
1375    { (exit 1); exit 1; }; }
1376
1377
1378 # Find the source files, if location was not specified.
1379 if test -z "$srcdir"; then
1380   ac_srcdir_defaulted=yes
1381   # Try the directory containing this script, then the parent directory.
1382   ac_confdir=`$as_dirname -- "$0" ||
1383 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1384          X"$0" : 'X\(//\)[^/]' \| \
1385          X"$0" : 'X\(//\)$' \| \
1386          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1387 echo X"$0" |
1388     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389             s//\1/
1390             q
1391           }
1392           /^X\(\/\/\)[^/].*/{
1393             s//\1/
1394             q
1395           }
1396           /^X\(\/\/\)$/{
1397             s//\1/
1398             q
1399           }
1400           /^X\(\/\).*/{
1401             s//\1/
1402             q
1403           }
1404           s/.*/./; q'`
1405   srcdir=$ac_confdir
1406   if test ! -r "$srcdir/$ac_unique_file"; then
1407     srcdir=..
1408   fi
1409 else
1410   ac_srcdir_defaulted=no
1411 fi
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1413   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1414   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1415    { (exit 1); exit 1; }; }
1416 fi
1417 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1418 ac_abs_confdir=`(
1419         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1420    { (exit 1); exit 1; }; }
1421         pwd)`
1422 # When building in place, set srcdir=.
1423 if test "$ac_abs_confdir" = "$ac_pwd"; then
1424   srcdir=.
1425 fi
1426 # Remove unnecessary trailing slashes from srcdir.
1427 # Double slashes in file names in object file debugging info
1428 # mess up M-x gdb in Emacs.
1429 case $srcdir in
1430 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431 esac
1432 for ac_var in $ac_precious_vars; do
1433   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434   eval ac_env_${ac_var}_value=\$${ac_var}
1435   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437 done
1438
1439 #
1440 # Report the --help message.
1441 #
1442 if test "$ac_init_help" = "long"; then
1443   # Omit some internal or obsolete options to make the list less imposing.
1444   # This message is too long to be a string in the A/UX 3.1 sh.
1445   cat <<_ACEOF
1446 \`configure' configures llvm 1.9cvs to adapt to many kinds of systems.
1447
1448 Usage: $0 [OPTION]... [VAR=VALUE]...
1449
1450 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451 VAR=VALUE.  See below for descriptions of some of the useful variables.
1452
1453 Defaults for the options are specified in brackets.
1454
1455 Configuration:
1456   -h, --help              display this help and exit
1457       --help=short        display options specific to this package
1458       --help=recursive    display the short help of all the included packages
1459   -V, --version           display version information and exit
1460   -q, --quiet, --silent   do not print \`checking...' messages
1461       --cache-file=FILE   cache test results in FILE [disabled]
1462   -C, --config-cache      alias for \`--cache-file=config.cache'
1463   -n, --no-create         do not create output files
1464       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1465
1466 Installation directories:
1467   --prefix=PREFIX         install architecture-independent files in PREFIX
1468                           [$ac_default_prefix]
1469   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1470                           [PREFIX]
1471
1472 By default, \`make install' will install all the files in
1473 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1474 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475 for instance \`--prefix=\$HOME'.
1476
1477 For better control, use the options below.
1478
1479 Fine tuning of the installation directories:
1480   --bindir=DIR           user executables [EPREFIX/bin]
1481   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1482   --libexecdir=DIR       program executables [EPREFIX/libexec]
1483   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1484   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1485   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1486   --libdir=DIR           object code libraries [EPREFIX/lib]
1487   --includedir=DIR       C header files [PREFIX/include]
1488   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1489   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1490   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1491   --infodir=DIR          info documentation [DATAROOTDIR/info]
1492   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1493   --mandir=DIR           man documentation [DATAROOTDIR/man]
1494   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1495   --htmldir=DIR          html documentation [DOCDIR]
1496   --dvidir=DIR           dvi documentation [DOCDIR]
1497   --pdfdir=DIR           pdf documentation [DOCDIR]
1498   --psdir=DIR            ps documentation [DOCDIR]
1499 _ACEOF
1500
1501   cat <<\_ACEOF
1502
1503 System types:
1504   --build=BUILD     configure for building on BUILD [guessed]
1505   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1506   --target=TARGET   configure for building compilers for TARGET [HOST]
1507 _ACEOF
1508 fi
1509
1510 if test -n "$ac_init_help"; then
1511   case $ac_init_help in
1512      short | recursive ) echo "Configuration of llvm 1.9cvs:";;
1513    esac
1514   cat <<\_ACEOF
1515
1516 Optional Features:
1517   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1518   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1519   --enable-optimized
1520   --enable-assertions
1521   --enable-debug-runtime
1522   --enable-jit            Enable Just In Time Compiling (default is YES)
1523   --enable-doxygen        Build doxygen documentation (default is NO)
1524   --enable-threads        Use threads if available (default is YES)
1525   --enable-targets        Build specific host targets:
1526                           all,host-only,{target-name} (default=all)
1527   --enable-ltdl-install   install libltdl
1528   --enable-shared[=PKGS]  build shared libraries
1529                           [default=enable_shared_default]
1530   --enable-static[=PKGS]  build static libraries
1531                           [default=enable_static_default]
1532   --enable-fast-install[=PKGS]
1533                           optimize for fast installation
1534                           [default=enable_Fast_install_default]
1535   --disable-libtool-lock  avoid locking (might break parallel builds)
1536
1537 Optional Packages:
1538   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1539   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1540   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1541                           searches PATH)
1542   --with-extra-options    Specify addtional options to compile LLVM with
1543   --with-tclinclude       directory where tcl headers are
1544   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1545   --with-pic              try to use only PIC/non-PIC objects [default=use
1546                           both]
1547   --with-tags[=TAGS]      include additional configurations [automatic]
1548
1549 Some influential environment variables:
1550   CC          C compiler command
1551   CFLAGS      C compiler flags
1552   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1553               nonstandard directory <lib dir>
1554   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1555               you have headers in a nonstandard directory <include dir>
1556   CPP         C preprocessor
1557   CXX         C++ compiler command
1558   CXXFLAGS    C++ compiler flags
1559   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1560               the first program found out of: `bison -y', `byacc', `yacc'.
1561   YFLAGS      The list of arguments that will be passed by default to $YACC.
1562               This script will default YFLAGS to the empty string to avoid a
1563               default value of `-d' given by some make applications.
1564   CXXCPP      C++ preprocessor
1565   F77         Fortran 77 compiler command
1566   FFLAGS      Fortran 77 compiler flags
1567
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1570
1571 Report bugs to <llvmbugs@cs.uiuc.edu>.
1572 _ACEOF
1573 ac_status=$?
1574 fi
1575
1576 if test "$ac_init_help" = "recursive"; then
1577   # If there are subdirs, report their specific --help.
1578   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579     test -d "$ac_dir" || continue
1580     ac_builddir=.
1581
1582 case "$ac_dir" in
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *)
1585   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1586   # A ".." for each directory in $ac_dir_suffix.
1587   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1588   case $ac_top_builddir_sub in
1589   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591   esac ;;
1592 esac
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1597
1598 case $srcdir in
1599   .)  # We are building in place.
1600     ac_srcdir=.
1601     ac_top_srcdir=$ac_top_builddir_sub
1602     ac_abs_top_srcdir=$ac_pwd ;;
1603   [\\/]* | ?:[\\/]* )  # Absolute name.
1604     ac_srcdir=$srcdir$ac_dir_suffix;
1605     ac_top_srcdir=$srcdir
1606     ac_abs_top_srcdir=$srcdir ;;
1607   *) # Relative name.
1608     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609     ac_top_srcdir=$ac_top_build_prefix$srcdir
1610     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 esac
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614     cd "$ac_dir" || { ac_status=$?; continue; }
1615     # Check for guested configure.
1616     if test -f "$ac_srcdir/configure.gnu"; then
1617       echo &&
1618       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619     elif test -f "$ac_srcdir/configure"; then
1620       echo &&
1621       $SHELL "$ac_srcdir/configure" --help=recursive
1622     else
1623       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624     fi || ac_status=$?
1625     cd "$ac_pwd" || { ac_status=$?; break; }
1626   done
1627 fi
1628
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1631   cat <<\_ACEOF
1632 llvm configure 1.9cvs
1633 generated by GNU Autoconf 2.60
1634
1635 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1636 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1637 This configure script is free software; the Free Software Foundation
1638 gives unlimited permission to copy, distribute and modify it.
1639
1640 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1641 _ACEOF
1642   exit
1643 fi
1644 cat >config.log <<_ACEOF
1645 This file contains any messages produced by compilers while
1646 running configure, to aid debugging if configure makes a mistake.
1647
1648 It was created by llvm $as_me 1.9cvs, which was
1649 generated by GNU Autoconf 2.60.  Invocation command line was
1650
1651   $ $0 $@
1652
1653 _ACEOF
1654 exec 5>>config.log
1655 {
1656 cat <<_ASUNAME
1657 ## --------- ##
1658 ## Platform. ##
1659 ## --------- ##
1660
1661 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1662 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1663 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1664 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1665 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1666
1667 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1668 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1669
1670 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1671 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1672 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1673 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1674 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1675 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1676 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1677
1678 _ASUNAME
1679
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 for as_dir in $PATH
1682 do
1683   IFS=$as_save_IFS
1684   test -z "$as_dir" && as_dir=.
1685   echo "PATH: $as_dir"
1686 done
1687 IFS=$as_save_IFS
1688
1689 } >&5
1690
1691 cat >&5 <<_ACEOF
1692
1693
1694 ## ----------- ##
1695 ## Core tests. ##
1696 ## ----------- ##
1697
1698 _ACEOF
1699
1700
1701 # Keep a trace of the command line.
1702 # Strip out --no-create and --no-recursion so they do not pile up.
1703 # Strip out --silent because we don't want to record it for future runs.
1704 # Also quote any args containing shell meta-characters.
1705 # Make two passes to allow for proper duplicate-argument suppression.
1706 ac_configure_args=
1707 ac_configure_args0=
1708 ac_configure_args1=
1709 ac_must_keep_next=false
1710 for ac_pass in 1 2
1711 do
1712   for ac_arg
1713   do
1714     case $ac_arg in
1715     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1716     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1717     | -silent | --silent | --silen | --sile | --sil)
1718       continue ;;
1719     *\'*)
1720       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1721     esac
1722     case $ac_pass in
1723     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1724     2)
1725       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1726       if test $ac_must_keep_next = true; then
1727         ac_must_keep_next=false # Got value, back to normal.
1728       else
1729         case $ac_arg in
1730           *=* | --config-cache | -C | -disable-* | --disable-* \
1731           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1732           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1733           | -with-* | --with-* | -without-* | --without-* | --x)
1734             case "$ac_configure_args0 " in
1735               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1736             esac
1737             ;;
1738           -* ) ac_must_keep_next=true ;;
1739         esac
1740       fi
1741       ac_configure_args="$ac_configure_args '$ac_arg'"
1742       ;;
1743     esac
1744   done
1745 done
1746 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1747 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1748
1749 # When interrupted or exit'd, cleanup temporary files, and complete
1750 # config.log.  We remove comments because anyway the quotes in there
1751 # would cause problems or look ugly.
1752 # WARNING: Use '\'' to represent an apostrophe within the trap.
1753 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1754 trap 'exit_status=$?
1755   # Save into config.log some information that might help in debugging.
1756   {
1757     echo
1758
1759     cat <<\_ASBOX
1760 ## ---------------- ##
1761 ## Cache variables. ##
1762 ## ---------------- ##
1763 _ASBOX
1764     echo
1765     # The following way of writing the cache mishandles newlines in values,
1766 (
1767   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1768     eval ac_val=\$$ac_var
1769     case $ac_val in #(
1770     *${as_nl}*)
1771       case $ac_var in #(
1772       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1773 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1774       esac
1775       case $ac_var in #(
1776       _ | IFS | as_nl) ;; #(
1777       *) $as_unset $ac_var ;;
1778       esac ;;
1779     esac
1780   done
1781   (set) 2>&1 |
1782     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1783     *${as_nl}ac_space=\ *)
1784       sed -n \
1785         "s/'\''/'\''\\\\'\'''\''/g;
1786           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1787       ;; #(
1788     *)
1789       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1790       ;;
1791     esac |
1792     sort
1793 )
1794     echo
1795
1796     cat <<\_ASBOX
1797 ## ----------------- ##
1798 ## Output variables. ##
1799 ## ----------------- ##
1800 _ASBOX
1801     echo
1802     for ac_var in $ac_subst_vars
1803     do
1804       eval ac_val=\$$ac_var
1805       case $ac_val in
1806       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807       esac
1808       echo "$ac_var='\''$ac_val'\''"
1809     done | sort
1810     echo
1811
1812     if test -n "$ac_subst_files"; then
1813       cat <<\_ASBOX
1814 ## ------------------- ##
1815 ## File substitutions. ##
1816 ## ------------------- ##
1817 _ASBOX
1818       echo
1819       for ac_var in $ac_subst_files
1820       do
1821         eval ac_val=\$$ac_var
1822         case $ac_val in
1823         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824         esac
1825         echo "$ac_var='\''$ac_val'\''"
1826       done | sort
1827       echo
1828     fi
1829
1830     if test -s confdefs.h; then
1831       cat <<\_ASBOX
1832 ## ----------- ##
1833 ## confdefs.h. ##
1834 ## ----------- ##
1835 _ASBOX
1836       echo
1837       cat confdefs.h
1838       echo
1839     fi
1840     test "$ac_signal" != 0 &&
1841       echo "$as_me: caught signal $ac_signal"
1842     echo "$as_me: exit $exit_status"
1843   } >&5
1844   rm -f core *.core core.conftest.* &&
1845     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1846     exit $exit_status
1847 ' 0
1848 for ac_signal in 1 2 13 15; do
1849   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1850 done
1851 ac_signal=0
1852
1853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1854 rm -f -r conftest* confdefs.h
1855
1856 # Predefined preprocessor variables.
1857
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_NAME "$PACKAGE_NAME"
1860 _ACEOF
1861
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1865 _ACEOF
1866
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1870 _ACEOF
1871
1872
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_STRING "$PACKAGE_STRING"
1875 _ACEOF
1876
1877
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1880 _ACEOF
1881
1882
1883 # Let the site file select an alternate cache file if it wants to.
1884 # Prefer explicitly selected file to automatically selected ones.
1885 if test -n "$CONFIG_SITE"; then
1886   set x "$CONFIG_SITE"
1887 elif test "x$prefix" != xNONE; then
1888   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1889 else
1890   set x "$ac_default_prefix/share/config.site" \
1891         "$ac_default_prefix/etc/config.site"
1892 fi
1893 shift
1894 for ac_site_file
1895 do
1896   if test -r "$ac_site_file"; then
1897     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1898 echo "$as_me: loading site script $ac_site_file" >&6;}
1899     sed 's/^/| /' "$ac_site_file" >&5
1900     . "$ac_site_file"
1901   fi
1902 done
1903
1904 if test -r "$cache_file"; then
1905   # Some versions of bash will fail to source /dev/null (special
1906   # files actually), so we avoid doing that.
1907   if test -f "$cache_file"; then
1908     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1909 echo "$as_me: loading cache $cache_file" >&6;}
1910     case $cache_file in
1911       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1912       *)                      . "./$cache_file";;
1913     esac
1914   fi
1915 else
1916   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917 echo "$as_me: creating cache $cache_file" >&6;}
1918   >$cache_file
1919 fi
1920
1921 # Check that the precious variables saved in the cache have kept the same
1922 # value.
1923 ac_cache_corrupted=false
1924 for ac_var in $ac_precious_vars; do
1925   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1926   eval ac_new_set=\$ac_env_${ac_var}_set
1927   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1928   eval ac_new_val=\$ac_env_${ac_var}_value
1929   case $ac_old_set,$ac_new_set in
1930     set,)
1931       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1932 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1933       ac_cache_corrupted=: ;;
1934     ,set)
1935       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1936 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1937       ac_cache_corrupted=: ;;
1938     ,);;
1939     *)
1940       if test "x$ac_old_val" != "x$ac_new_val"; then
1941         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1942 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1943         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1944 echo "$as_me:   former value:  $ac_old_val" >&2;}
1945         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1946 echo "$as_me:   current value: $ac_new_val" >&2;}
1947         ac_cache_corrupted=:
1948       fi;;
1949   esac
1950   # Pass precious variables to config.status.
1951   if test "$ac_new_set" = set; then
1952     case $ac_new_val in
1953     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1954     *) ac_arg=$ac_var=$ac_new_val ;;
1955     esac
1956     case " $ac_configure_args " in
1957       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1958       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1959     esac
1960   fi
1961 done
1962 if $ac_cache_corrupted; then
1963   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1964 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1965   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1966 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1967    { (exit 1); exit 1; }; }
1968 fi
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994 ac_ext=c
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999
2000
2001
2002 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
2003
2004
2005
2006
2007
2008
2009
2010 ac_aux_dir=
2011 for ac_dir in autoconf "$srcdir"/autoconf; do
2012   if test -f "$ac_dir/install-sh"; then
2013     ac_aux_dir=$ac_dir
2014     ac_install_sh="$ac_aux_dir/install-sh -c"
2015     break
2016   elif test -f "$ac_dir/install.sh"; then
2017     ac_aux_dir=$ac_dir
2018     ac_install_sh="$ac_aux_dir/install.sh -c"
2019     break
2020   elif test -f "$ac_dir/shtool"; then
2021     ac_aux_dir=$ac_dir
2022     ac_install_sh="$ac_aux_dir/shtool install -c"
2023     break
2024   fi
2025 done
2026 if test -z "$ac_aux_dir"; then
2027   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2028 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2029    { (exit 1); exit 1; }; }
2030 fi
2031
2032 # These three variables are undocumented and unsupported,
2033 # and are intended to be withdrawn in a future Autoconf release.
2034 # They can cause serious problems if a builder's source tree is in a directory
2035 # whose full name contains unusual characters.
2036 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2037 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2038 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2039
2040
2041
2042 if test ${srcdir} != "." ; then
2043   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2044     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2045 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2046    { (exit 1); exit 1; }; }
2047   fi
2048 fi
2049
2050 for i in `ls ${srcdir}/projects`
2051 do
2052   if test -d ${srcdir}/projects/${i} ; then
2053     case ${i} in
2054       "CVS") ;;
2055       "sample")       subdirs="$subdirs projects/sample"
2056     ;;
2057       "Stacker")      subdirs="$subdirs projects/Stacker"
2058    ;;
2059       "privbracket")  subdirs="$subdirs projects/privbracket"
2060  ;;
2061       "llvm-test")    subdirs="$subdirs projects/llvm-test"
2062  ;;
2063       "llvm-reopt")   subdirs="$subdirs projects/llvm-reopt"
2064 ;;
2065       "llvm-gcc")     subdirs="$subdirs projects/llvm-gcc"
2066   ;;
2067       "llvm-java")    subdirs="$subdirs projects/llvm-java"
2068  ;;
2069       "llvm-tv")      subdirs="$subdirs projects/llvm-tv"
2070    ;;
2071       "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
2072  ;;
2073       "llvm-kernel")  subdirs="$subdirs projects/llvm-kernel"
2074  ;;
2075       *)
2076         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2077 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2078         ;;
2079     esac
2080   fi
2081 done
2082
2083
2084 # Make sure we can run config.sub.
2085 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2086   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2087 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2088    { (exit 1); exit 1; }; }
2089
2090 { echo "$as_me:$LINENO: checking build system type" >&5
2091 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2092 if test "${ac_cv_build+set}" = set; then
2093   echo $ECHO_N "(cached) $ECHO_C" >&6
2094 else
2095   ac_build_alias=$build_alias
2096 test "x$ac_build_alias" = x &&
2097   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2098 test "x$ac_build_alias" = x &&
2099   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2100 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2101    { (exit 1); exit 1; }; }
2102 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2103   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2104 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2105    { (exit 1); exit 1; }; }
2106
2107 fi
2108 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2109 echo "${ECHO_T}$ac_cv_build" >&6; }
2110 case $ac_cv_build in
2111 *-*-*) ;;
2112 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2113 echo "$as_me: error: invalid value of canonical build" >&2;}
2114    { (exit 1); exit 1; }; };;
2115 esac
2116 build=$ac_cv_build
2117 ac_save_IFS=$IFS; IFS='-'
2118 set x $ac_cv_build
2119 shift
2120 build_cpu=$1
2121 build_vendor=$2
2122 shift; shift
2123 # Remember, the first character of IFS is used to create $*,
2124 # except with old shells:
2125 build_os=$*
2126 IFS=$ac_save_IFS
2127 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2128
2129
2130 { echo "$as_me:$LINENO: checking host system type" >&5
2131 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2132 if test "${ac_cv_host+set}" = set; then
2133   echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135   if test "x$host_alias" = x; then
2136   ac_cv_host=$ac_cv_build
2137 else
2138   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2139     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2140 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2141    { (exit 1); exit 1; }; }
2142 fi
2143
2144 fi
2145 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2146 echo "${ECHO_T}$ac_cv_host" >&6; }
2147 case $ac_cv_host in
2148 *-*-*) ;;
2149 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2150 echo "$as_me: error: invalid value of canonical host" >&2;}
2151    { (exit 1); exit 1; }; };;
2152 esac
2153 host=$ac_cv_host
2154 ac_save_IFS=$IFS; IFS='-'
2155 set x $ac_cv_host
2156 shift
2157 host_cpu=$1
2158 host_vendor=$2
2159 shift; shift
2160 # Remember, the first character of IFS is used to create $*,
2161 # except with old shells:
2162 host_os=$*
2163 IFS=$ac_save_IFS
2164 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2165
2166
2167 { echo "$as_me:$LINENO: checking target system type" >&5
2168 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2169 if test "${ac_cv_target+set}" = set; then
2170   echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172   if test "x$target_alias" = x; then
2173   ac_cv_target=$ac_cv_host
2174 else
2175   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2176     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2177 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2178    { (exit 1); exit 1; }; }
2179 fi
2180
2181 fi
2182 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2183 echo "${ECHO_T}$ac_cv_target" >&6; }
2184 case $ac_cv_target in
2185 *-*-*) ;;
2186 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2187 echo "$as_me: error: invalid value of canonical target" >&2;}
2188    { (exit 1); exit 1; }; };;
2189 esac
2190 target=$ac_cv_target
2191 ac_save_IFS=$IFS; IFS='-'
2192 set x $ac_cv_target
2193 shift
2194 target_cpu=$1
2195 target_vendor=$2
2196 shift; shift
2197 # Remember, the first character of IFS is used to create $*,
2198 # except with old shells:
2199 target_os=$*
2200 IFS=$ac_save_IFS
2201 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2202
2203
2204 # The aliases save the names the user supplied, while $host etc.
2205 # will get canonicalized.
2206 test -n "$target_alias" &&
2207   test "$program_prefix$program_suffix$program_transform_name" = \
2208     NONENONEs,x,x, &&
2209   program_prefix=${target_alias}-
2210
2211 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2212 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2213 if test "${llvm_cv_os_type+set}" = set; then
2214   echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216   case $host in
2217   *-*-aix*)
2218     llvm_cv_link_all_option="-Wl,--whole-archive"
2219     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2220     llvm_cv_os_type="AIX"
2221     llvm_cv_platform_type="Unix" ;;
2222   *-*-irix*)
2223     llvm_cv_link_all_option="-Wl,--whole-archive"
2224     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2225     llvm_cv_os_type="IRIX"
2226     llvm_cv_platform_type="Unix" ;;
2227   *-*-cygwin*)
2228     llvm_cv_link_all_option="-Wl,--whole-archive"
2229     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2230     llvm_cv_os_type="Cygwin"
2231     llvm_cv_platform_type="Unix" ;;
2232   *-*-darwin*)
2233     llvm_cv_link_all_option="-Wl,-all_load"
2234     llvm_cv_link_all_option="-Wl,-noall_load"
2235     llvm_cv_os_type="Darwin"
2236     llvm_cv_platform_type="Unix" ;;
2237   *-*-freebsd*)
2238     llvm_cv_link_all_option="-Wl,--whole-archive"
2239     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2240     llvm_cv_os_type="FreeBSD"
2241     llvm_cv_platform_type="Unix" ;;
2242   *-*-openbsd*)
2243     llvm_cv_link_all_option="-Wl,--whole-archive"
2244     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2245     llvm_cv_os_type="OpenBSD"
2246     llvm_cv_platform_type="Unix" ;;
2247   *-*-hpux*)
2248     llvm_cv_link_all_option="-Wl,--whole-archive"
2249     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2250     llvm_cv_os_type="HP-UX"
2251     llvm_cv_platform_type="Unix" ;;
2252   *-*-interix*)
2253     llvm_cv_link_all_option="-Wl,--whole-archive"
2254     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2255     llvm_cv_os_type="Interix"
2256     llvm_cv_platform_type="Unix" ;;
2257   *-*-linux*)
2258     llvm_cv_link_all_option="-Wl,--whole-archive"
2259     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2260     llvm_cv_os_type="Linux"
2261     llvm_cv_platform_type="Unix" ;;
2262   *-*-solaris*)
2263     llvm_cv_link_all_option="-Wl,-z,allextract"
2264     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2265     llvm_cv_os_type="SunOS"
2266     llvm_cv_platform_type="Unix" ;;
2267   *-*-win32*)
2268     llvm_cv_link_all_option="-Wl,--whole-archive"
2269     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2270     llvm_cv_os_type="Win32"
2271     llvm_cv_platform_type="Win32" ;;
2272   *-*-mingw*)
2273     llvm_cv_link_all_option="-Wl,--whole-archive"
2274     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275     llvm_cv_os_type="MingW"
2276     llvm_cv_platform_type="Win32" ;;
2277   *)
2278     llvm_cv_link_all_option=""
2279     llvm_cv_no_link_all_option=""
2280     llvm_cv_os_type="Unknown"
2281     llvm_cv_platform_type="Unknown" ;;
2282 esac
2283 fi
2284 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2285 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2286
2287 if test "$llvm_cv_os_type" = "Unknown" ; then
2288   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2289 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2290    { (exit 1); exit 1; }; }
2291 fi
2292
2293 OS=$llvm_cv_os_type
2294
2295
2296 LINKALL=$llvm_cv_link_all_option
2297
2298 NOLINKALL=$llvm_cv_no_link_all_option
2299
2300
2301 case $llvm_cv_platform_type in
2302   Unix)
2303
2304 cat >>confdefs.h <<\_ACEOF
2305 #define LLVM_ON_UNIX 1
2306 _ACEOF
2307
2308     LLVM_ON_UNIX=1
2309
2310     LLVM_ON_WIN32=0
2311
2312     ;;
2313   Win32)
2314
2315 cat >>confdefs.h <<\_ACEOF
2316 #define LLVM_ON_WIN32 1
2317 _ACEOF
2318
2319     LLVM_ON_UNIX=0
2320
2321     LLVM_ON_WIN32=1
2322
2323     ;;
2324 esac
2325
2326 { echo "$as_me:$LINENO: checking target architecture" >&5
2327 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2328 if test "${llvm_cv_target_arch+set}" = set; then
2329   echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331   case $target in
2332   i?86-*)                 llvm_cv_target_arch="x86" ;;
2333   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2334   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2335   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2336   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2337   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2338   *)                      llvm_cv_target_arch="Unknown" ;;
2339 esac
2340 fi
2341 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2342 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2343
2344 if test "$llvm_cv_target_arch" = "Unknown" ; then
2345   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2346 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2347 fi
2348
2349 ARCH=$llvm_cv_target_arch
2350
2351
2352 ac_ext=c
2353 ac_cpp='$CPP $CPPFLAGS'
2354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357 if test -n "$ac_tool_prefix"; then
2358   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2359 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362 if test "${ac_cv_prog_CC+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   if test -n "$CC"; then
2366   ac_cv_prog_CC="$CC" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371   IFS=$as_save_IFS
2372   test -z "$as_dir" && as_dir=.
2373   for ac_exec_ext in '' $ac_executable_extensions; do
2374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2375     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377     break 2
2378   fi
2379 done
2380 done
2381 IFS=$as_save_IFS
2382
2383 fi
2384 fi
2385 CC=$ac_cv_prog_CC
2386 if test -n "$CC"; then
2387   { echo "$as_me:$LINENO: result: $CC" >&5
2388 echo "${ECHO_T}$CC" >&6; }
2389 else
2390   { echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6; }
2392 fi
2393
2394
2395 fi
2396 if test -z "$ac_cv_prog_CC"; then
2397   ac_ct_CC=$CC
2398   # Extract the first word of "gcc", so it can be a program name with args.
2399 set dummy 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_ac_ct_CC+set}" = set; then
2403   echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405   if test -n "$ac_ct_CC"; then
2406   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2426 if test -n "$ac_ct_CC"; then
2427   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2428 echo "${ECHO_T}$ac_ct_CC" >&6; }
2429 else
2430   { echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6; }
2432 fi
2433
2434   if test "x$ac_ct_CC" = x; then
2435     CC=""
2436   else
2437     case $cross_compiling:$ac_tool_warned in
2438 yes:)
2439 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2440 whose name does not start with the host triplet.  If you think this
2441 configuration is useful to you, please write to autoconf@gnu.org." >&5
2442 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2443 whose name does not start with the host triplet.  If you think this
2444 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2445 ac_tool_warned=yes ;;
2446 esac
2447     CC=$ac_ct_CC
2448   fi
2449 else
2450   CC="$ac_cv_prog_CC"
2451 fi
2452
2453 if test -z "$CC"; then
2454           if test -n "$ac_tool_prefix"; then
2455     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2456 set dummy ${ac_tool_prefix}cc; ac_word=$2
2457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_CC+set}" = set; then
2460   echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462   if test -n "$CC"; then
2463   ac_cv_prog_CC="$CC" # Let the user override the test.
2464 else
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2467 do
2468   IFS=$as_save_IFS
2469   test -z "$as_dir" && as_dir=.
2470   for ac_exec_ext in '' $ac_executable_extensions; do
2471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2472     ac_cv_prog_CC="${ac_tool_prefix}cc"
2473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474     break 2
2475   fi
2476 done
2477 done
2478 IFS=$as_save_IFS
2479
2480 fi
2481 fi
2482 CC=$ac_cv_prog_CC
2483 if test -n "$CC"; then
2484   { echo "$as_me:$LINENO: result: $CC" >&5
2485 echo "${ECHO_T}$CC" >&6; }
2486 else
2487   { echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6; }
2489 fi
2490
2491
2492   fi
2493 fi
2494 if test -z "$CC"; then
2495   # Extract the first word of "cc", so it can be a program name with args.
2496 set dummy 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   ac_prog_rejected=no
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509   IFS=$as_save_IFS
2510   test -z "$as_dir" && as_dir=.
2511   for ac_exec_ext in '' $ac_executable_extensions; do
2512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2513     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2514        ac_prog_rejected=yes
2515        continue
2516      fi
2517     ac_cv_prog_CC="cc"
2518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519     break 2
2520   fi
2521 done
2522 done
2523 IFS=$as_save_IFS
2524
2525 if test $ac_prog_rejected = yes; then
2526   # We found a bogon in the path, so make sure we never use it.
2527   set dummy $ac_cv_prog_CC
2528   shift
2529   if test $# != 0; then
2530     # We chose a different compiler from the bogus one.
2531     # However, it has the same basename, so the bogon will be chosen
2532     # first if we set CC to just the basename; use the full file name.
2533     shift
2534     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2535   fi
2536 fi
2537 fi
2538 fi
2539 CC=$ac_cv_prog_CC
2540 if test -n "$CC"; then
2541   { echo "$as_me:$LINENO: result: $CC" >&5
2542 echo "${ECHO_T}$CC" >&6; }
2543 else
2544   { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2546 fi
2547
2548
2549 fi
2550 if test -z "$CC"; then
2551   if test -n "$ac_tool_prefix"; then
2552   for ac_prog in cl.exe
2553   do
2554     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2558 if test "${ac_cv_prog_CC+set}" = set; then
2559   echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561   if test -n "$CC"; then
2562   ac_cv_prog_CC="$CC" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2566 do
2567   IFS=$as_save_IFS
2568   test -z "$as_dir" && as_dir=.
2569   for ac_exec_ext in '' $ac_executable_extensions; do
2570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2571     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573     break 2
2574   fi
2575 done
2576 done
2577 IFS=$as_save_IFS
2578
2579 fi
2580 fi
2581 CC=$ac_cv_prog_CC
2582 if test -n "$CC"; then
2583   { echo "$as_me:$LINENO: result: $CC" >&5
2584 echo "${ECHO_T}$CC" >&6; }
2585 else
2586   { echo "$as_me:$LINENO: result: no" >&5
2587 echo "${ECHO_T}no" >&6; }
2588 fi
2589
2590
2591     test -n "$CC" && break
2592   done
2593 fi
2594 if test -z "$CC"; then
2595   ac_ct_CC=$CC
2596   for ac_prog in cl.exe
2597 do
2598   # Extract the first word of "$ac_prog", so it can be a program name with args.
2599 set dummy $ac_prog; ac_word=$2
2600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2603   echo $ECHO_N "(cached) $ECHO_C" >&6
2604 else
2605   if test -n "$ac_ct_CC"; then
2606   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2607 else
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611   IFS=$as_save_IFS
2612   test -z "$as_dir" && as_dir=.
2613   for ac_exec_ext in '' $ac_executable_extensions; do
2614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2615     ac_cv_prog_ac_ct_CC="$ac_prog"
2616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617     break 2
2618   fi
2619 done
2620 done
2621 IFS=$as_save_IFS
2622
2623 fi
2624 fi
2625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2626 if test -n "$ac_ct_CC"; then
2627   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2628 echo "${ECHO_T}$ac_ct_CC" >&6; }
2629 else
2630   { echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6; }
2632 fi
2633
2634
2635   test -n "$ac_ct_CC" && break
2636 done
2637
2638   if test "x$ac_ct_CC" = x; then
2639     CC=""
2640   else
2641     case $cross_compiling:$ac_tool_warned in
2642 yes:)
2643 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2644 whose name does not start with the host triplet.  If you think this
2645 configuration is useful to you, please write to autoconf@gnu.org." >&5
2646 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2647 whose name does not start with the host triplet.  If you think this
2648 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2649 ac_tool_warned=yes ;;
2650 esac
2651     CC=$ac_ct_CC
2652   fi
2653 fi
2654
2655 fi
2656
2657
2658 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2659 See \`config.log' for more details." >&5
2660 echo "$as_me: error: no acceptable C compiler found in \$PATH
2661 See \`config.log' for more details." >&2;}
2662    { (exit 1); exit 1; }; }
2663
2664 # Provide some information about the compiler.
2665 echo "$as_me:$LINENO: checking for C compiler version" >&5
2666 ac_compiler=`set X $ac_compile; echo $2`
2667 { (ac_try="$ac_compiler --version >&5"
2668 case "(($ac_try" in
2669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670   *) ac_try_echo=$ac_try;;
2671 esac
2672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673   (eval "$ac_compiler --version >&5") 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }
2677 { (ac_try="$ac_compiler -v >&5"
2678 case "(($ac_try" in
2679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680   *) ac_try_echo=$ac_try;;
2681 esac
2682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2683   (eval "$ac_compiler -v >&5") 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }
2687 { (ac_try="$ac_compiler -V >&5"
2688 case "(($ac_try" in
2689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690   *) ac_try_echo=$ac_try;;
2691 esac
2692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2693   (eval "$ac_compiler -V >&5") 2>&5
2694   ac_status=$?
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); }
2697
2698 cat >conftest.$ac_ext <<_ACEOF
2699 /* confdefs.h.  */
2700 _ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h.  */
2704
2705 int
2706 main ()
2707 {
2708
2709   ;
2710   return 0;
2711 }
2712 _ACEOF
2713 ac_clean_files_save=$ac_clean_files
2714 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2715 # Try to create an executable without -o first, disregard a.out.
2716 # It will help us diagnose broken compilers, and finding out an intuition
2717 # of exeext.
2718 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2719 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2720 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2721 #
2722 # List of possible output files, starting from the most likely.
2723 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2724 # only as a last resort.  b.out is created by i960 compilers.
2725 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2726 #
2727 # The IRIX 6 linker writes into existing files which may not be
2728 # executable, retaining their permissions.  Remove them first so a
2729 # subsequent execution test works.
2730 ac_rmfiles=
2731 for ac_file in $ac_files
2732 do
2733   case $ac_file in
2734     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2735     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2736   esac
2737 done
2738 rm -f $ac_rmfiles
2739
2740 if { (ac_try="$ac_link_default"
2741 case "(($ac_try" in
2742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743   *) ac_try_echo=$ac_try;;
2744 esac
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746   (eval "$ac_link_default") 2>&5
2747   ac_status=$?
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); }; then
2750   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2751 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2752 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2753 # so that the user can short-circuit this test for compilers unknown to
2754 # Autoconf.
2755 for ac_file in $ac_files
2756 do
2757   test -f "$ac_file" || continue
2758   case $ac_file in
2759     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2760         ;;
2761     [ab].out )
2762         # We found the default executable, but exeext='' is most
2763         # certainly right.
2764         break;;
2765     *.* )
2766         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2767         then :; else
2768            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2769         fi
2770         # We set ac_cv_exeext here because the later test for it is not
2771         # safe: cross compilers may not add the suffix if given an `-o'
2772         # argument, so we may need to know it at that point already.
2773         # Even if this section looks crufty: it has the advantage of
2774         # actually working.
2775         break;;
2776     * )
2777         break;;
2778   esac
2779 done
2780 test "$ac_cv_exeext" = no && ac_cv_exeext=
2781
2782 else
2783   echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2785
2786 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2787 See \`config.log' for more details." >&5
2788 echo "$as_me: error: C compiler cannot create executables
2789 See \`config.log' for more details." >&2;}
2790    { (exit 77); exit 77; }; }
2791 fi
2792
2793 ac_exeext=$ac_cv_exeext
2794 { echo "$as_me:$LINENO: result: $ac_file" >&5
2795 echo "${ECHO_T}$ac_file" >&6; }
2796
2797 # Check that the compiler produces executables we can run.  If not, either
2798 # the compiler is broken, or we cross compile.
2799 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2800 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2801 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2802 # If not cross compiling, check that we can run a simple program.
2803 if test "$cross_compiling" != yes; then
2804   if { ac_try='./$ac_file'
2805   { (case "(($ac_try" in
2806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807   *) ac_try_echo=$ac_try;;
2808 esac
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810   (eval "$ac_try") 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); }; }; then
2814     cross_compiling=no
2815   else
2816     if test "$cross_compiling" = maybe; then
2817         cross_compiling=yes
2818     else
2819         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2820 If you meant to cross compile, use \`--host'.
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: cannot run C compiled programs.
2823 If you meant to cross compile, use \`--host'.
2824 See \`config.log' for more details." >&2;}
2825    { (exit 1); exit 1; }; }
2826     fi
2827   fi
2828 fi
2829 { echo "$as_me:$LINENO: result: yes" >&5
2830 echo "${ECHO_T}yes" >&6; }
2831
2832 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2833 ac_clean_files=$ac_clean_files_save
2834 # Check that the compiler produces executables we can run.  If not, either
2835 # the compiler is broken, or we cross compile.
2836 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2837 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2838 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2839 echo "${ECHO_T}$cross_compiling" >&6; }
2840
2841 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2842 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2843 if { (ac_try="$ac_link"
2844 case "(($ac_try" in
2845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846   *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849   (eval "$ac_link") 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); }; then
2853   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2854 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2855 # work properly (i.e., refer to `conftest.exe'), while it won't with
2856 # `rm'.
2857 for ac_file in conftest.exe conftest conftest.*; do
2858   test -f "$ac_file" || continue
2859   case $ac_file in
2860     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2861     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2862           break;;
2863     * ) break;;
2864   esac
2865 done
2866 else
2867   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2868 See \`config.log' for more details." >&5
2869 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&2;}
2871    { (exit 1); exit 1; }; }
2872 fi
2873
2874 rm -f conftest$ac_cv_exeext
2875 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2876 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2877
2878 rm -f conftest.$ac_ext
2879 EXEEXT=$ac_cv_exeext
2880 ac_exeext=$EXEEXT
2881 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2882 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2883 if test "${ac_cv_objext+set}" = set; then
2884   echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886   cat >conftest.$ac_ext <<_ACEOF
2887 /* confdefs.h.  */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h.  */
2892
2893 int
2894 main ()
2895 {
2896
2897   ;
2898   return 0;
2899 }
2900 _ACEOF
2901 rm -f conftest.o conftest.obj
2902 if { (ac_try="$ac_compile"
2903 case "(($ac_try" in
2904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905   *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908   (eval "$ac_compile") 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }; then
2912   for ac_file in conftest.o conftest.obj conftest.*; do
2913   test -f "$ac_file" || continue;
2914   case $ac_file in
2915     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2916     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2917        break;;
2918   esac
2919 done
2920 else
2921   echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2923
2924 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&2;}
2928    { (exit 1); exit 1; }; }
2929 fi
2930
2931 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2932 fi
2933 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2934 echo "${ECHO_T}$ac_cv_objext" >&6; }
2935 OBJEXT=$ac_cv_objext
2936 ac_objext=$OBJEXT
2937 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2938 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2939 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2940   echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942   cat >conftest.$ac_ext <<_ACEOF
2943 /* confdefs.h.  */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h.  */
2948
2949 int
2950 main ()
2951 {
2952 #ifndef __GNUC__
2953        choke me
2954 #endif
2955
2956   ;
2957   return 0;
2958 }
2959 _ACEOF
2960 rm -f conftest.$ac_objext
2961 if { (ac_try="$ac_compile"
2962 case "(($ac_try" in
2963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964   *) ac_try_echo=$ac_try;;
2965 esac
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967   (eval "$ac_compile") 2>conftest.er1
2968   ac_status=$?
2969   grep -v '^ *+' conftest.er1 >conftest.err
2970   rm -f conftest.er1
2971   cat conftest.err >&5
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); } &&
2974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2975   { (case "(($ac_try" in
2976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977   *) ac_try_echo=$ac_try;;
2978 esac
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980   (eval "$ac_try") 2>&5
2981   ac_status=$?
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); }; } &&
2984          { ac_try='test -s conftest.$ac_objext'
2985   { (case "(($ac_try" in
2986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987   *) ac_try_echo=$ac_try;;
2988 esac
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990   (eval "$ac_try") 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }; }; then
2994   ac_compiler_gnu=yes
2995 else
2996   echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2998
2999         ac_compiler_gnu=no
3000 fi
3001
3002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3003 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3004
3005 fi
3006 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3007 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3008 GCC=`test $ac_compiler_gnu = yes && echo yes`
3009 ac_test_CFLAGS=${CFLAGS+set}
3010 ac_save_CFLAGS=$CFLAGS
3011 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3012 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_cc_g+set}" = set; then
3014   echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016   ac_save_c_werror_flag=$ac_c_werror_flag
3017    ac_c_werror_flag=yes
3018    ac_cv_prog_cc_g=no
3019    CFLAGS="-g"
3020    cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h.  */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h.  */
3026
3027 int
3028 main ()
3029 {
3030
3031   ;
3032   return 0;
3033 }
3034 _ACEOF
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3037 case "(($ac_try" in
3038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039   *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042   (eval "$ac_compile") 2>conftest.er1
3043   ac_status=$?
3044   grep -v '^ *+' conftest.er1 >conftest.err
3045   rm -f conftest.er1
3046   cat conftest.err >&5
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } &&
3049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3050   { (case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055   (eval "$ac_try") 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; } &&
3059          { ac_try='test -s conftest.$ac_objext'
3060   { (case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_try") 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }; }; then
3069   ac_cv_prog_cc_g=yes
3070 else
3071   echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074         CFLAGS=""
3075       cat >conftest.$ac_ext <<_ACEOF
3076 /* confdefs.h.  */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h.  */
3081
3082 int
3083 main ()
3084 {
3085
3086   ;
3087   return 0;
3088 }
3089 _ACEOF
3090 rm -f conftest.$ac_objext
3091 if { (ac_try="$ac_compile"
3092 case "(($ac_try" in
3093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094   *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097   (eval "$ac_compile") 2>conftest.er1
3098   ac_status=$?
3099   grep -v '^ *+' conftest.er1 >conftest.err
3100   rm -f conftest.er1
3101   cat conftest.err >&5
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); } &&
3104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3105   { (case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110   (eval "$ac_try") 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }; } &&
3114          { ac_try='test -s conftest.$ac_objext'
3115   { (case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120   (eval "$ac_try") 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }; }; then
3124   :
3125 else
3126   echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3128
3129         ac_c_werror_flag=$ac_save_c_werror_flag
3130          CFLAGS="-g"
3131          cat >conftest.$ac_ext <<_ACEOF
3132 /* confdefs.h.  */
3133 _ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h.  */
3137
3138 int
3139 main ()
3140 {
3141
3142   ;
3143   return 0;
3144 }
3145 _ACEOF
3146 rm -f conftest.$ac_objext
3147 if { (ac_try="$ac_compile"
3148 case "(($ac_try" in
3149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150   *) ac_try_echo=$ac_try;;
3151 esac
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153   (eval "$ac_compile") 2>conftest.er1
3154   ac_status=$?
3155   grep -v '^ *+' conftest.er1 >conftest.err
3156   rm -f conftest.er1
3157   cat conftest.err >&5
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); } &&
3160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3161   { (case "(($ac_try" in
3162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163   *) ac_try_echo=$ac_try;;
3164 esac
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166   (eval "$ac_try") 2>&5
3167   ac_status=$?
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); }; } &&
3170          { ac_try='test -s conftest.$ac_objext'
3171   { (case "(($ac_try" in
3172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173   *) ac_try_echo=$ac_try;;
3174 esac
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176   (eval "$ac_try") 2>&5
3177   ac_status=$?
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); }; }; then
3180   ac_cv_prog_cc_g=yes
3181 else
3182   echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185
3186 fi
3187
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 fi
3190
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 fi
3193
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195    ac_c_werror_flag=$ac_save_c_werror_flag
3196 fi
3197 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3198 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3199 if test "$ac_test_CFLAGS" = set; then
3200   CFLAGS=$ac_save_CFLAGS
3201 elif test $ac_cv_prog_cc_g = yes; then
3202   if test "$GCC" = yes; then
3203     CFLAGS="-g -O2"
3204   else
3205     CFLAGS="-g"
3206   fi
3207 else
3208   if test "$GCC" = yes; then
3209     CFLAGS="-O2"
3210   else
3211     CFLAGS=
3212   fi
3213 fi
3214 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3215 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3216 if test "${ac_cv_prog_cc_c89+set}" = set; then
3217   echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219   ac_cv_prog_cc_c89=no
3220 ac_save_CC=$CC
3221 cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h.  */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h.  */
3227 #include <stdarg.h>
3228 #include <stdio.h>
3229 #include <sys/types.h>
3230 #include <sys/stat.h>
3231 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3232 struct buf { int x; };
3233 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3234 static char *e (p, i)
3235      char **p;
3236      int i;
3237 {
3238   return p[i];
3239 }
3240 static char *f (char * (*g) (char **, int), char **p, ...)
3241 {
3242   char *s;
3243   va_list v;
3244   va_start (v,p);
3245   s = g (p, va_arg (v,int));
3246   va_end (v);
3247   return s;
3248 }
3249
3250 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3251    function prototypes and stuff, but not '\xHH' hex character constants.
3252    These don't provoke an error unfortunately, instead are silently treated
3253    as 'x'.  The following induces an error, until -std is added to get
3254    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3255    array size at least.  It's necessary to write '\x00'==0 to get something
3256    that's true only with -std.  */
3257 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3258
3259 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3260    inside strings and character constants.  */
3261 #define FOO(x) 'x'
3262 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3263
3264 int test (int i, double x);
3265 struct s1 {int (*f) (int a);};
3266 struct s2 {int (*f) (double a);};
3267 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3268 int argc;
3269 char **argv;
3270 int
3271 main ()
3272 {
3273 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3274   ;
3275   return 0;
3276 }
3277 _ACEOF
3278 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3279         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3280 do
3281   CC="$ac_save_CC $ac_arg"
3282   rm -f conftest.$ac_objext
3283 if { (ac_try="$ac_compile"
3284 case "(($ac_try" in
3285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286   *) ac_try_echo=$ac_try;;
3287 esac
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289   (eval "$ac_compile") 2>conftest.er1
3290   ac_status=$?
3291   grep -v '^ *+' conftest.er1 >conftest.err
3292   rm -f conftest.er1
3293   cat conftest.err >&5
3294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295   (exit $ac_status); } &&
3296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3297   { (case "(($ac_try" in
3298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299   *) ac_try_echo=$ac_try;;
3300 esac
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302   (eval "$ac_try") 2>&5
3303   ac_status=$?
3304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305   (exit $ac_status); }; } &&
3306          { ac_try='test -s conftest.$ac_objext'
3307   { (case "(($ac_try" in
3308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309   *) ac_try_echo=$ac_try;;
3310 esac
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312   (eval "$ac_try") 2>&5
3313   ac_status=$?
3314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315   (exit $ac_status); }; }; then
3316   ac_cv_prog_cc_c89=$ac_arg
3317 else
3318   echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3320
3321
3322 fi
3323
3324 rm -f core conftest.err conftest.$ac_objext
3325   test "x$ac_cv_prog_cc_c89" != "xno" && break
3326 done
3327 rm -f conftest.$ac_ext
3328 CC=$ac_save_CC
3329
3330 fi
3331 # AC_CACHE_VAL
3332 case "x$ac_cv_prog_cc_c89" in
3333   x)
3334     { echo "$as_me:$LINENO: result: none needed" >&5
3335 echo "${ECHO_T}none needed" >&6; } ;;
3336   xno)
3337     { echo "$as_me:$LINENO: result: unsupported" >&5
3338 echo "${ECHO_T}unsupported" >&6; } ;;
3339   *)
3340     CC="$CC $ac_cv_prog_cc_c89"
3341     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3342 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3343 esac
3344
3345
3346 ac_ext=c
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351
3352
3353 ac_ext=c
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3359 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3360 # On Suns, sometimes $CPP names a directory.
3361 if test -n "$CPP" && test -d "$CPP"; then
3362   CPP=
3363 fi
3364 if test -z "$CPP"; then
3365   if test "${ac_cv_prog_CPP+set}" = set; then
3366   echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368       # Double quotes because CPP needs to be expanded
3369     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3370     do
3371       ac_preproc_ok=false
3372 for ac_c_preproc_warn_flag in '' yes
3373 do
3374   # Use a header file that comes with gcc, so configuring glibc
3375   # with a fresh cross-compiler works.
3376   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3377   # <limits.h> exists even on freestanding compilers.
3378   # On the NeXT, cc -E runs the code through the compiler's parser,
3379   # not just through cpp. "Syntax error" is here to catch this case.
3380   cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h.  */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h.  */
3386 #ifdef __STDC__
3387 # include <limits.h>
3388 #else
3389 # include <assert.h>
3390 #endif
3391                      Syntax error
3392 _ACEOF
3393 if { (ac_try="$ac_cpp conftest.$ac_ext"
3394 case "(($ac_try" in
3395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396   *) ac_try_echo=$ac_try;;
3397 esac
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400   ac_status=$?
3401   grep -v '^ *+' conftest.er1 >conftest.err
3402   rm -f conftest.er1
3403   cat conftest.err >&5
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); } >/dev/null; then
3406   if test -s conftest.err; then
3407     ac_cpp_err=$ac_c_preproc_warn_flag
3408     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3409   else
3410     ac_cpp_err=
3411   fi
3412 else
3413   ac_cpp_err=yes
3414 fi
3415 if test -z "$ac_cpp_err"; then
3416   :
3417 else
3418   echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3420
3421   # Broken: fails on valid input.
3422 continue
3423 fi
3424
3425 rm -f conftest.err conftest.$ac_ext
3426
3427   # OK, works on sane cases.  Now check whether nonexistent headers
3428   # can be detected and how.
3429   cat >conftest.$ac_ext <<_ACEOF
3430 /* confdefs.h.  */
3431 _ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h.  */
3435 #include <ac_nonexistent.h>
3436 _ACEOF
3437 if { (ac_try="$ac_cpp conftest.$ac_ext"
3438 case "(($ac_try" in
3439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440   *) ac_try_echo=$ac_try;;
3441 esac
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3444   ac_status=$?
3445   grep -v '^ *+' conftest.er1 >conftest.err
3446   rm -f conftest.er1
3447   cat conftest.err >&5
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); } >/dev/null; then
3450   if test -s conftest.err; then
3451     ac_cpp_err=$ac_c_preproc_warn_flag
3452     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3453   else
3454     ac_cpp_err=
3455   fi
3456 else
3457   ac_cpp_err=yes
3458 fi
3459 if test -z "$ac_cpp_err"; then
3460   # Broken: success on invalid input.
3461 continue
3462 else
3463   echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3465
3466   # Passes both tests.
3467 ac_preproc_ok=:
3468 break
3469 fi
3470
3471 rm -f conftest.err conftest.$ac_ext
3472
3473 done
3474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3475 rm -f conftest.err conftest.$ac_ext
3476 if $ac_preproc_ok; then
3477   break
3478 fi
3479
3480     done
3481     ac_cv_prog_CPP=$CPP
3482
3483 fi
3484   CPP=$ac_cv_prog_CPP
3485 else
3486   ac_cv_prog_CPP=$CPP
3487 fi
3488 { echo "$as_me:$LINENO: result: $CPP" >&5
3489 echo "${ECHO_T}$CPP" >&6; }
3490 ac_preproc_ok=false
3491 for ac_c_preproc_warn_flag in '' yes
3492 do
3493   # Use a header file that comes with gcc, so configuring glibc
3494   # with a fresh cross-compiler works.
3495   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3496   # <limits.h> exists even on freestanding compilers.
3497   # On the NeXT, cc -E runs the code through the compiler's parser,
3498   # not just through cpp. "Syntax error" is here to catch this case.
3499   cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h.  */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h.  */
3505 #ifdef __STDC__
3506 # include <limits.h>
3507 #else
3508 # include <assert.h>
3509 #endif
3510                      Syntax error
3511 _ACEOF
3512 if { (ac_try="$ac_cpp conftest.$ac_ext"
3513 case "(($ac_try" in
3514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515   *) ac_try_echo=$ac_try;;
3516 esac
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3519   ac_status=$?
3520   grep -v '^ *+' conftest.er1 >conftest.err
3521   rm -f conftest.er1
3522   cat conftest.err >&5
3523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524   (exit $ac_status); } >/dev/null; then
3525   if test -s conftest.err; then
3526     ac_cpp_err=$ac_c_preproc_warn_flag
3527     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3528   else
3529     ac_cpp_err=
3530   fi
3531 else
3532   ac_cpp_err=yes
3533 fi
3534 if test -z "$ac_cpp_err"; then
3535   :
3536 else
3537   echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3539
3540   # Broken: fails on valid input.
3541 continue
3542 fi
3543
3544 rm -f conftest.err conftest.$ac_ext
3545
3546   # OK, works on sane cases.  Now check whether nonexistent headers
3547   # can be detected and how.
3548   cat >conftest.$ac_ext <<_ACEOF
3549 /* confdefs.h.  */
3550 _ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h.  */
3554 #include <ac_nonexistent.h>
3555 _ACEOF
3556 if { (ac_try="$ac_cpp conftest.$ac_ext"
3557 case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3563   ac_status=$?
3564   grep -v '^ *+' conftest.er1 >conftest.err
3565   rm -f conftest.er1
3566   cat conftest.err >&5
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); } >/dev/null; then
3569   if test -s conftest.err; then
3570     ac_cpp_err=$ac_c_preproc_warn_flag
3571     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3572   else
3573     ac_cpp_err=
3574   fi
3575 else
3576   ac_cpp_err=yes
3577 fi
3578 if test -z "$ac_cpp_err"; then
3579   # Broken: success on invalid input.
3580 continue
3581 else
3582   echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3584
3585   # Passes both tests.
3586 ac_preproc_ok=:
3587 break
3588 fi
3589
3590 rm -f conftest.err conftest.$ac_ext
3591
3592 done
3593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3594 rm -f conftest.err conftest.$ac_ext
3595 if $ac_preproc_ok; then
3596   :
3597 else
3598   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3599 See \`config.log' for more details." >&5
3600 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3601 See \`config.log' for more details." >&2;}
3602    { (exit 1); exit 1; }; }
3603 fi
3604
3605 ac_ext=c
3606 ac_cpp='$CPP $CPPFLAGS'
3607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610
3611
3612 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3613 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3614 if test "${ac_cv_path_GREP+set}" = set; then
3615   echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617   # Extract the first word of "grep ggrep" to use in msg output
3618 if test -z "$GREP"; then
3619 set dummy grep ggrep; ac_prog_name=$2
3620 if test "${ac_cv_path_GREP+set}" = set; then
3621   echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623   ac_path_GREP_found=false
3624 # Loop through the user's path and test for each of PROGNAME-LIST
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3627 do
3628   IFS=$as_save_IFS
3629   test -z "$as_dir" && as_dir=.
3630   for ac_prog in grep ggrep; do
3631   for ac_exec_ext in '' $ac_executable_extensions; do
3632     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3633     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3634     # Check for GNU ac_path_GREP and select it if it is found.
3635   # Check for GNU $ac_path_GREP
3636 case `"$ac_path_GREP" --version 2>&1` in
3637 *GNU*)
3638   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3639 *)
3640   ac_count=0
3641   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3642   while :
3643   do
3644     cat "conftest.in" "conftest.in" >"conftest.tmp"
3645     mv "conftest.tmp" "conftest.in"
3646     cp "conftest.in" "conftest.nl"
3647     echo 'GREP' >> "conftest.nl"
3648     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3649     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3650     ac_count=`expr $ac_count + 1`
3651     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3652       # Best one so far, save it but keep looking for a better one
3653       ac_cv_path_GREP="$ac_path_GREP"
3654       ac_path_GREP_max=$ac_count
3655     fi
3656     # 10*(2^10) chars as input seems more than enough
3657     test $ac_count -gt 10 && break
3658   done
3659   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3660 esac
3661
3662
3663     $ac_path_GREP_found && break 3
3664   done
3665 done
3666
3667 done
3668 IFS=$as_save_IFS
3669
3670
3671 fi
3672
3673 GREP="$ac_cv_path_GREP"
3674 if test -z "$GREP"; then
3675   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3676 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3677    { (exit 1); exit 1; }; }
3678 fi
3679
3680 else
3681   ac_cv_path_GREP=$GREP
3682 fi
3683
3684
3685 fi
3686 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3687 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3688  GREP="$ac_cv_path_GREP"
3689
3690
3691 { echo "$as_me:$LINENO: checking for egrep" >&5
3692 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3693 if test "${ac_cv_path_EGREP+set}" = set; then
3694   echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3697    then ac_cv_path_EGREP="$GREP -E"
3698    else
3699      # Extract the first word of "egrep" to use in msg output
3700 if test -z "$EGREP"; then
3701 set dummy egrep; ac_prog_name=$2
3702 if test "${ac_cv_path_EGREP+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   ac_path_EGREP_found=false
3706 # Loop through the user's path and test for each of PROGNAME-LIST
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3709 do
3710   IFS=$as_save_IFS
3711   test -z "$as_dir" && as_dir=.
3712   for ac_prog in egrep; do
3713   for ac_exec_ext in '' $ac_executable_extensions; do
3714     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3715     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3716     # Check for GNU ac_path_EGREP and select it if it is found.
3717   # Check for GNU $ac_path_EGREP
3718 case `"$ac_path_EGREP" --version 2>&1` in
3719 *GNU*)
3720   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3721 *)
3722   ac_count=0
3723   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3724   while :
3725   do
3726     cat "conftest.in" "conftest.in" >"conftest.tmp"
3727     mv "conftest.tmp" "conftest.in"
3728     cp "conftest.in" "conftest.nl"
3729     echo 'EGREP' >> "conftest.nl"
3730     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3732     ac_count=`expr $ac_count + 1`
3733     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3734       # Best one so far, save it but keep looking for a better one
3735       ac_cv_path_EGREP="$ac_path_EGREP"
3736       ac_path_EGREP_max=$ac_count
3737     fi
3738     # 10*(2^10) chars as input seems more than enough
3739     test $ac_count -gt 10 && break
3740   done
3741   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3742 esac
3743
3744
3745     $ac_path_EGREP_found && break 3
3746   done
3747 done
3748
3749 done
3750 IFS=$as_save_IFS
3751
3752
3753 fi
3754
3755 EGREP="$ac_cv_path_EGREP"
3756 if test -z "$EGREP"; then
3757   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3758 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3759    { (exit 1); exit 1; }; }
3760 fi
3761
3762 else
3763   ac_cv_path_EGREP=$EGREP
3764 fi
3765
3766
3767    fi
3768 fi
3769 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3770 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3771  EGREP="$ac_cv_path_EGREP"
3772
3773
3774 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3775 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3776 if test "${ac_cv_header_stdc+set}" = set; then
3777   echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779   cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h.  */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h.  */
3785 #include <stdlib.h>
3786 #include <stdarg.h>
3787 #include <string.h>
3788 #include <float.h>
3789
3790 int
3791 main ()
3792 {
3793
3794   ;
3795   return 0;
3796 }
3797 _ACEOF
3798 rm -f conftest.$ac_objext
3799 if { (ac_try="$ac_compile"
3800 case "(($ac_try" in
3801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802   *) ac_try_echo=$ac_try;;
3803 esac
3804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3805   (eval "$ac_compile") 2>conftest.er1
3806   ac_status=$?
3807   grep -v '^ *+' conftest.er1 >conftest.err
3808   rm -f conftest.er1
3809   cat conftest.err >&5
3810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811   (exit $ac_status); } &&
3812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3813   { (case "(($ac_try" in
3814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815   *) ac_try_echo=$ac_try;;
3816 esac
3817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3818   (eval "$ac_try") 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; } &&
3822          { ac_try='test -s conftest.$ac_objext'
3823   { (case "(($ac_try" in
3824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825   *) ac_try_echo=$ac_try;;
3826 esac
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828   (eval "$ac_try") 2>&5
3829   ac_status=$?
3830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831   (exit $ac_status); }; }; then
3832   ac_cv_header_stdc=yes
3833 else
3834   echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3836
3837         ac_cv_header_stdc=no
3838 fi
3839
3840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841
3842 if test $ac_cv_header_stdc = yes; then
3843   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3844   cat >conftest.$ac_ext <<_ACEOF
3845 /* confdefs.h.  */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h.  */
3850 #include <string.h>
3851
3852 _ACEOF
3853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3854   $EGREP "memchr" >/dev/null 2>&1; then
3855   :
3856 else
3857   ac_cv_header_stdc=no
3858 fi
3859 rm -f conftest*
3860
3861 fi
3862
3863 if test $ac_cv_header_stdc = yes; then
3864   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3865   cat >conftest.$ac_ext <<_ACEOF
3866 /* confdefs.h.  */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h.  */
3871 #include <stdlib.h>
3872
3873 _ACEOF
3874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3875   $EGREP "free" >/dev/null 2>&1; then
3876   :
3877 else
3878   ac_cv_header_stdc=no
3879 fi
3880 rm -f conftest*
3881
3882 fi
3883
3884 if test $ac_cv_header_stdc = yes; then
3885   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3886   if test "$cross_compiling" = yes; then
3887   :
3888 else
3889   cat >conftest.$ac_ext <<_ACEOF
3890 /* confdefs.h.  */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h.  */
3895 #include <ctype.h>
3896 #include <stdlib.h>
3897 #if ((' ' & 0x0FF) == 0x020)
3898 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3899 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3900 #else
3901 # define ISLOWER(c) \
3902                    (('a' <= (c) && (c) <= 'i') \
3903                      || ('j' <= (c) && (c) <= 'r') \
3904                      || ('s' <= (c) && (c) <= 'z'))
3905 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3906 #endif
3907
3908 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3909 int
3910 main ()
3911 {
3912   int i;
3913   for (i = 0; i < 256; i++)
3914     if (XOR (islower (i), ISLOWER (i))
3915         || toupper (i) != TOUPPER (i))
3916       return 2;
3917   return 0;
3918 }
3919 _ACEOF
3920 rm -f conftest$ac_exeext
3921 if { (ac_try="$ac_link"
3922 case "(($ac_try" in
3923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924   *) ac_try_echo=$ac_try;;
3925 esac
3926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927   (eval "$ac_link") 2>&5
3928   ac_status=$?
3929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3931   { (case "(($ac_try" in
3932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933   *) ac_try_echo=$ac_try;;
3934 esac
3935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936   (eval "$ac_try") 2>&5
3937   ac_status=$?
3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939   (exit $ac_status); }; }; then
3940   :
3941 else
3942   echo "$as_me: program exited with status $ac_status" >&5
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3945
3946 ( exit $ac_status )
3947 ac_cv_header_stdc=no
3948 fi
3949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3950 fi
3951
3952
3953 fi
3954 fi
3955 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3956 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3957 if test $ac_cv_header_stdc = yes; then
3958
3959 cat >>confdefs.h <<\_ACEOF
3960 #define STDC_HEADERS 1
3961 _ACEOF
3962
3963 fi
3964
3965 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3976                   inttypes.h stdint.h unistd.h
3977 do
3978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3982   echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984   cat >conftest.$ac_ext <<_ACEOF
3985 /* confdefs.h.  */
3986 _ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h.  */
3990 $ac_includes_default
3991
3992 #include <$ac_header>
3993 _ACEOF
3994 rm -f conftest.$ac_objext
3995 if { (ac_try="$ac_compile"
3996 case "(($ac_try" in
3997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998   *) ac_try_echo=$ac_try;;
3999 esac
4000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001   (eval "$ac_compile") 2>conftest.er1
4002   ac_status=$?
4003   grep -v '^ *+' conftest.er1 >conftest.err
4004   rm -f conftest.er1
4005   cat conftest.err >&5
4006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007   (exit $ac_status); } &&
4008          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4009   { (case "(($ac_try" in
4010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011   *) ac_try_echo=$ac_try;;
4012 esac
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014   (eval "$ac_try") 2>&5
4015   ac_status=$?
4016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017   (exit $ac_status); }; } &&
4018          { ac_try='test -s conftest.$ac_objext'
4019   { (case "(($ac_try" in
4020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021   *) ac_try_echo=$ac_try;;
4022 esac
4023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4024   (eval "$ac_try") 2>&5
4025   ac_status=$?
4026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027   (exit $ac_status); }; }; then
4028   eval "$as_ac_Header=yes"
4029 else
4030   echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4032
4033         eval "$as_ac_Header=no"
4034 fi
4035
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037 fi
4038 ac_res=`eval echo '${'$as_ac_Header'}'`
4039                { echo "$as_me:$LINENO: result: $ac_res" >&5
4040 echo "${ECHO_T}$ac_res" >&6; }
4041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4042   cat >>confdefs.h <<_ACEOF
4043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4044 _ACEOF
4045
4046 fi
4047
4048 done
4049
4050
4051 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4052 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4053 if test "${ac_cv_c_bigendian+set}" = set; then
4054   echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056   # See if sys/param.h defines the BYTE_ORDER macro.
4057 cat >conftest.$ac_ext <<_ACEOF
4058 /* confdefs.h.  */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h.  */
4063 #include <sys/types.h>
4064 #include <sys/param.h>
4065
4066 int
4067 main ()
4068 {
4069 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4070  bogus endian macros
4071 #endif
4072
4073   ;
4074   return 0;
4075 }
4076 _ACEOF
4077 rm -f conftest.$ac_objext
4078 if { (ac_try="$ac_compile"
4079 case "(($ac_try" in
4080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081   *) ac_try_echo=$ac_try;;
4082 esac
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084   (eval "$ac_compile") 2>conftest.er1
4085   ac_status=$?
4086   grep -v '^ *+' conftest.er1 >conftest.err
4087   rm -f conftest.er1
4088   cat conftest.err >&5
4089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); } &&
4091          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4092   { (case "(($ac_try" in
4093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094   *) ac_try_echo=$ac_try;;
4095 esac
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097   (eval "$ac_try") 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }; } &&
4101          { ac_try='test -s conftest.$ac_objext'
4102   { (case "(($ac_try" in
4103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104   *) ac_try_echo=$ac_try;;
4105 esac
4106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107   (eval "$ac_try") 2>&5
4108   ac_status=$?
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); }; }; then
4111   # It does; now see whether it defined to BIG_ENDIAN or not.
4112 cat >conftest.$ac_ext <<_ACEOF
4113 /* confdefs.h.  */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h.  */
4118 #include <sys/types.h>
4119 #include <sys/param.h>
4120
4121 int
4122 main ()
4123 {
4124 #if BYTE_ORDER != BIG_ENDIAN
4125  not big endian
4126 #endif
4127
4128   ;
4129   return 0;
4130 }
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4134 case "(($ac_try" in
4135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136   *) ac_try_echo=$ac_try;;
4137 esac
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139   (eval "$ac_compile") 2>conftest.er1
4140   ac_status=$?
4141   grep -v '^ *+' conftest.er1 >conftest.err
4142   rm -f conftest.er1
4143   cat conftest.err >&5
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); } &&
4146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4147   { (case "(($ac_try" in
4148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149   *) ac_try_echo=$ac_try;;
4150 esac
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152   (eval "$ac_try") 2>&5
4153   ac_status=$?
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); }; } &&
4156          { ac_try='test -s conftest.$ac_objext'
4157   { (case "(($ac_try" in
4158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159   *) ac_try_echo=$ac_try;;
4160 esac
4161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162   (eval "$ac_try") 2>&5
4163   ac_status=$?
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); }; }; then
4166   ac_cv_c_bigendian=yes
4167 else
4168   echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4170
4171         ac_cv_c_bigendian=no
4172 fi
4173
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 else
4176   echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4178
4179         # It does not; compile a test program.
4180 if test "$cross_compiling" = yes; then
4181   # try to guess the endianness by grepping values into an object file
4182   ac_cv_c_bigendian=unknown
4183   cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h.  */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h.  */
4189 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4190 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4191 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4192 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4193 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4194 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4195 int
4196 main ()
4197 {
4198  _ascii (); _ebcdic ();
4199   ;
4200   return 0;
4201 }
4202 _ACEOF
4203 rm -f conftest.$ac_objext
4204 if { (ac_try="$ac_compile"
4205 case "(($ac_try" in
4206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207   *) ac_try_echo=$ac_try;;
4208 esac
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210   (eval "$ac_compile") 2>conftest.er1
4211   ac_status=$?
4212   grep -v '^ *+' conftest.er1 >conftest.err
4213   rm -f conftest.er1
4214   cat conftest.err >&5
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); } &&
4217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4218   { (case "(($ac_try" in
4219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220   *) ac_try_echo=$ac_try;;
4221 esac
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223   (eval "$ac_try") 2>&5
4224   ac_status=$?
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); }; } &&
4227          { ac_try='test -s conftest.$ac_objext'
4228   { (case "(($ac_try" in
4229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230   *) ac_try_echo=$ac_try;;
4231 esac
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233   (eval "$ac_try") 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); }; }; then
4237   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4238   ac_cv_c_bigendian=yes
4239 fi
4240 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4241   if test "$ac_cv_c_bigendian" = unknown; then
4242     ac_cv_c_bigendian=no
4243   else
4244     # finding both strings is unlikely to happen, but who knows?
4245     ac_cv_c_bigendian=unknown
4246   fi
4247 fi
4248 else
4249   echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4251
4252
4253 fi
4254
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256 else
4257   cat >conftest.$ac_ext <<_ACEOF
4258 /* confdefs.h.  */
4259 _ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h.  */
4263 $ac_includes_default
4264 int
4265 main ()
4266 {
4267
4268   /* Are we little or big endian?  From Harbison&Steele.  */
4269   union
4270   {
4271     long int l;
4272     char c[sizeof (long int)];
4273   } u;
4274   u.l = 1;
4275   return u.c[sizeof (long int) - 1] == 1;
4276
4277   ;
4278   return 0;
4279 }
4280 _ACEOF
4281 rm -f conftest$ac_exeext
4282 if { (ac_try="$ac_link"
4283 case "(($ac_try" in
4284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285   *) ac_try_echo=$ac_try;;
4286 esac
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288   (eval "$ac_link") 2>&5
4289   ac_status=$?
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4292   { (case "(($ac_try" in
4293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294   *) ac_try_echo=$ac_try;;
4295 esac
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297   (eval "$ac_try") 2>&5
4298   ac_status=$?
4299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300   (exit $ac_status); }; }; then
4301   ac_cv_c_bigendian=no
4302 else
4303   echo "$as_me: program exited with status $ac_status" >&5
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4306
4307 ( exit $ac_status )
4308 ac_cv_c_bigendian=yes
4309 fi
4310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4311 fi
4312
4313
4314 fi
4315
4316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317 fi
4318 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4319 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4320 case $ac_cv_c_bigendian in
4321   yes)
4322     ENDIAN=big
4323  ;;
4324   no)
4325     ENDIAN=little
4326  ;;
4327   *)
4328     { { echo "$as_me:$LINENO: error: unknown endianness
4329 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4330 echo "$as_me: error: unknown endianness
4331 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4332    { (exit 1); exit 1; }; } ;;
4333 esac
4334
4335
4336 if test "$cross_compiling" = yes; then
4337   LLVM_CROSS_COMPILING=1
4338
4339
4340 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4341 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4342 if test "${ac_cv_build_exeext+set}" = set; then
4343   echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4346   ac_cv_build_exeext=.exe
4347 else
4348   ac_build_prefix=${build_alias}-
4349
4350   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4351 set dummy ${ac_build_prefix}gcc; ac_word=$2
4352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4354 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4355   echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357   if test -n "$BUILD_CC"; then
4358   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4362 do
4363   IFS=$as_save_IFS
4364   test -z "$as_dir" && as_dir=.
4365   for ac_exec_ext in '' $ac_executable_extensions; do
4366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4367     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369     break 2
4370   fi
4371 done
4372 done
4373 IFS=$as_save_IFS
4374
4375 fi
4376 fi
4377 BUILD_CC=$ac_cv_prog_BUILD_CC
4378 if test -n "$BUILD_CC"; then
4379   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4380 echo "${ECHO_T}$BUILD_CC" >&6; }
4381 else
4382   { echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6; }
4384 fi
4385
4386
4387   if test -z "$BUILD_CC"; then
4388      # Extract the first word of "gcc", so it can be a program name with args.
4389 set dummy gcc; ac_word=$2
4390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4392 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4393   echo $ECHO_N "(cached) $ECHO_C" >&6
4394 else
4395   if test -n "$BUILD_CC"; then
4396   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4397 else
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH
4400 do
4401   IFS=$as_save_IFS
4402   test -z "$as_dir" && as_dir=.
4403   for ac_exec_ext in '' $ac_executable_extensions; do
4404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4405     ac_cv_prog_BUILD_CC="gcc"
4406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4407     break 2
4408   fi
4409 done
4410 done
4411 IFS=$as_save_IFS
4412
4413 fi
4414 fi
4415 BUILD_CC=$ac_cv_prog_BUILD_CC
4416 if test -n "$BUILD_CC"; then
4417   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4418 echo "${ECHO_T}$BUILD_CC" >&6; }
4419 else
4420   { echo "$as_me:$LINENO: result: no" >&5
4421 echo "${ECHO_T}no" >&6; }
4422 fi
4423
4424
4425      if test -z "$BUILD_CC"; then
4426        # Extract the first word of "cc", so it can be a program name with args.
4427 set dummy cc; ac_word=$2
4428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4430 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4431   echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433   if test -n "$BUILD_CC"; then
4434   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4435 else
4436   ac_prog_rejected=no
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440   IFS=$as_save_IFS
4441   test -z "$as_dir" && as_dir=.
4442   for ac_exec_ext in '' $ac_executable_extensions; do
4443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4444     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4445        ac_prog_rejected=yes
4446        continue
4447      fi
4448     ac_cv_prog_BUILD_CC="cc"
4449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450     break 2
4451   fi
4452 done
4453 done
4454 IFS=$as_save_IFS
4455
4456 if test $ac_prog_rejected = yes; then
4457   # We found a bogon in the path, so make sure we never use it.
4458   set dummy $ac_cv_prog_BUILD_CC
4459   shift
4460   if test $# != 0; then
4461     # We chose a different compiler from the bogus one.
4462     # However, it has the same basename, so the bogon will be chosen
4463     # first if we set BUILD_CC to just the basename; use the full file name.
4464     shift
4465     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4466   fi
4467 fi
4468 fi
4469 fi
4470 BUILD_CC=$ac_cv_prog_BUILD_CC
4471 if test -n "$BUILD_CC"; then
4472   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4473 echo "${ECHO_T}$BUILD_CC" >&6; }
4474 else
4475   { echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6; }
4477 fi
4478
4479
4480      fi
4481   fi
4482   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4483 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4484    { (exit 1); exit 1; }; }
4485   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4486   rm -f conftest*
4487   echo 'int main () { return 0; }' > conftest.$ac_ext
4488   ac_cv_build_exeext=
4489   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4490   (eval $ac_build_link) 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }; then
4494     for file in conftest.*; do
4495       case $file in
4496       *.c | *.o | *.obj) ;;
4497       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4498       esac
4499     done
4500   else
4501     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4502 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4503    { (exit 1); exit 1; }; }
4504   fi
4505   rm -f conftest*
4506   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4507 fi
4508 fi
4509
4510 BUILD_EXEEXT=""
4511 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4512 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4513 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4514 ac_build_exeext=$BUILD_EXEEXT
4515
4516 else
4517   LLVM_CROSS_COMPILING=0
4518
4519 fi
4520
4521 if test -d "CVS" -o -d "${srcdir}/CVS"; then
4522   cvsbuild="yes"
4523   optimize="no"
4524   CVSBUILD=CVSBUILD=1
4525
4526 else
4527   cvsbuild="no"
4528   optimize="yes"
4529 fi
4530
4531
4532 # Check whether --enable-optimized was given.
4533 if test "${enable_optimized+set}" = set; then
4534   enableval=$enable_optimized;
4535 else
4536   enableval=$optimize
4537 fi
4538
4539 if test ${enableval} = "no" ; then
4540   ENABLE_OPTIMIZED=
4541
4542 else
4543   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4544
4545 fi
4546
4547 # Check whether --enable-assertions was given.
4548 if test "${enable_assertions+set}" = set; then
4549   enableval=$enable_assertions;
4550 else
4551   enableval="yes"
4552 fi
4553
4554 if test ${enableval} = "yes" ; then
4555   DISABLE_ASSERTIONS=
4556
4557 else
4558   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4559
4560 fi
4561
4562 # Check whether --enable-debug-runtime was given.
4563 if test "${enable_debug_runtime+set}" = set; then
4564   enableval=$enable_debug_runtime;
4565 else
4566   enableval=no
4567 fi
4568
4569 if test ${enableval} = "no" ; then
4570   DEBUG_RUNTIME=
4571
4572 else
4573   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4574
4575 fi
4576
4577 # Check whether --enable-jit was given.
4578 if test "${enable_jit+set}" = set; then
4579   enableval=$enable_jit;
4580 else
4581   enableval=default
4582 fi
4583
4584 if test ${enableval} = "no"
4585 then
4586   JIT=
4587
4588 else
4589   case "$llvm_cv_target_arch" in
4590     x86)     TARGET_HAS_JIT=1
4591  ;;
4592     Sparc)   TARGET_HAS_JIT=1
4593  ;;
4594     PowerPC) TARGET_HAS_JIT=1
4595  ;;
4596     x86_64)  TARGET_HAS_JIT=0
4597  ;;
4598     Alpha)   TARGET_HAS_JIT=1
4599  ;;
4600     IA64)    TARGET_HAS_JIT=0
4601  ;;
4602     *)       TARGET_HAS_JIT=0
4603  ;;
4604   esac
4605 fi
4606
4607 # Check whether --enable-doxygen was given.
4608 if test "${enable_doxygen+set}" = set; then
4609   enableval=$enable_doxygen;
4610 else
4611   enableval=default
4612 fi
4613
4614 case "$enableval" in
4615   yes) ENABLE_DOXYGEN=1
4616  ;;
4617   no)  ENABLE_DOXYGEN=0
4618  ;;
4619   default) ENABLE_DOXYGEN=0
4620  ;;
4621   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4622 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4623    { (exit 1); exit 1; }; } ;;
4624 esac
4625
4626 # Check whether --enable-threads was given.
4627 if test "${enable_threads+set}" = set; then
4628   enableval=$enable_threads;
4629 else
4630   enableval=yes
4631 fi
4632
4633 case "$enableval" in
4634   yes) ENABLE_THREADS=1
4635  ;;
4636   no)  ENABLE_THREADS=0
4637  ;;
4638   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4639 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4640    { (exit 1); exit 1; }; } ;;
4641 esac
4642
4643 cat >>confdefs.h <<_ACEOF
4644 #define ENABLE_THREADS $ENABLE_THREADS
4645 _ACEOF
4646
4647
4648 TARGETS_TO_BUILD=""
4649 # Check whether --enable-targets was given.
4650 if test "${enable_targets+set}" = set; then
4651   enableval=$enable_targets;
4652 else
4653   enableval=all
4654 fi
4655
4656 case "$enableval" in
4657   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4658   host-only)
4659     case "$llvm_cv_target_arch" in
4660       x86)     TARGETS_TO_BUILD="X86" ;;
4661       x86_64)  TARGETS_TO_BUILD="X86" ;;
4662       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4663       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4664       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4665       IA64)    TARGETS_TO_BUILD="IA64" ;;
4666       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4667 echo "$as_me: error: Can not set target to build" >&2;}
4668    { (exit 1); exit 1; }; } ;;
4669     esac
4670     ;;
4671   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4672       case "$a_target" in
4673         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4674         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4675         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4676         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4677         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4678         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4679         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4680 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4681    { (exit 1); exit 1; }; } ;;
4682       esac
4683   done
4684   ;;
4685 esac
4686 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4687 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4688
4689
4690
4691 # Check whether --with-llvmgccdir was given.
4692 if test "${with_llvmgccdir+set}" = set; then
4693   withval=$with_llvmgccdir;
4694 else
4695   withval=default
4696 fi
4697
4698 case "$withval" in
4699   default) WITH_LLVMGCCDIR=default ;;
4700   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4701   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4702 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4703    { (exit 1); exit 1; }; } ;;
4704 esac
4705
4706
4707 # Check whether --with-extra-options was given.
4708 if test "${with_extra_options+set}" = set; then
4709   withval=$with_extra_options;
4710 else
4711   withval=default
4712 fi
4713
4714 case "$withval" in
4715   default) EXTRA_OPTIONS= ;;
4716   *) EXTRA_OPTIONS=$withval ;;
4717 esac
4718 EXTRA_OPTIONS=$EXTRA_OPTIONS
4719
4720
4721
4722 ac_ext=c
4723 ac_cpp='$CPP $CPPFLAGS'
4724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4727 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4728 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4729 # On Suns, sometimes $CPP names a directory.
4730 if test -n "$CPP" && test -d "$CPP"; then
4731   CPP=
4732 fi
4733 if test -z "$CPP"; then
4734   if test "${ac_cv_prog_CPP+set}" = set; then
4735   echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737       # Double quotes because CPP needs to be expanded
4738     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4739     do
4740       ac_preproc_ok=false
4741 for ac_c_preproc_warn_flag in '' yes
4742 do
4743   # Use a header file that comes with gcc, so configuring glibc
4744   # with a fresh cross-compiler works.
4745   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4746   # <limits.h> exists even on freestanding compilers.
4747   # On the NeXT, cc -E runs the code through the compiler's parser,
4748   # not just through cpp. "Syntax error" is here to catch this case.
4749   cat >conftest.$ac_ext <<_ACEOF
4750 /* confdefs.h.  */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h.  */
4755 #ifdef __STDC__
4756 # include <limits.h>
4757 #else
4758 # include <assert.h>
4759 #endif
4760                      Syntax error
4761 _ACEOF
4762 if { (ac_try="$ac_cpp conftest.$ac_ext"
4763 case "(($ac_try" in
4764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765   *) ac_try_echo=$ac_try;;
4766 esac
4767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4768   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4769   ac_status=$?
4770   grep -v '^ *+' conftest.er1 >conftest.err
4771   rm -f conftest.er1
4772   cat conftest.err >&5
4773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774   (exit $ac_status); } >/dev/null; then
4775   if test -s conftest.err; then
4776     ac_cpp_err=$ac_c_preproc_warn_flag
4777     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4778   else
4779     ac_cpp_err=
4780   fi
4781 else
4782   ac_cpp_err=yes
4783 fi
4784 if test -z "$ac_cpp_err"; then
4785   :
4786 else
4787   echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790   # Broken: fails on valid input.
4791 continue
4792 fi
4793
4794 rm -f conftest.err conftest.$ac_ext
4795
4796   # OK, works on sane cases.  Now check whether nonexistent headers
4797   # can be detected and how.
4798   cat >conftest.$ac_ext <<_ACEOF
4799 /* confdefs.h.  */
4800 _ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h.  */
4804 #include <ac_nonexistent.h>
4805 _ACEOF
4806 if { (ac_try="$ac_cpp conftest.$ac_ext"
4807 case "(($ac_try" in
4808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809   *) ac_try_echo=$ac_try;;
4810 esac
4811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4812   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4813   ac_status=$?
4814   grep -v '^ *+' conftest.er1 >conftest.err
4815   rm -f conftest.er1
4816   cat conftest.err >&5
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); } >/dev/null; then
4819   if test -s conftest.err; then
4820     ac_cpp_err=$ac_c_preproc_warn_flag
4821     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4822   else
4823     ac_cpp_err=
4824   fi
4825 else
4826   ac_cpp_err=yes
4827 fi
4828 if test -z "$ac_cpp_err"; then
4829   # Broken: success on invalid input.
4830 continue
4831 else
4832   echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4834
4835   # Passes both tests.
4836 ac_preproc_ok=:
4837 break
4838 fi
4839
4840 rm -f conftest.err conftest.$ac_ext
4841
4842 done
4843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4844 rm -f conftest.err conftest.$ac_ext
4845 if $ac_preproc_ok; then
4846   break
4847 fi
4848
4849     done
4850     ac_cv_prog_CPP=$CPP
4851
4852 fi
4853   CPP=$ac_cv_prog_CPP
4854 else
4855   ac_cv_prog_CPP=$CPP
4856 fi
4857 { echo "$as_me:$LINENO: result: $CPP" >&5
4858 echo "${ECHO_T}$CPP" >&6; }
4859 ac_preproc_ok=false
4860 for ac_c_preproc_warn_flag in '' yes
4861 do
4862   # Use a header file that comes with gcc, so configuring glibc
4863   # with a fresh cross-compiler works.
4864   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4865   # <limits.h> exists even on freestanding compilers.
4866   # On the NeXT, cc -E runs the code through the compiler's parser,
4867   # not just through cpp. "Syntax error" is here to catch this case.
4868   cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h.  */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h.  */
4874 #ifdef __STDC__
4875 # include <limits.h>
4876 #else
4877 # include <assert.h>
4878 #endif
4879                      Syntax error
4880 _ACEOF
4881 if { (ac_try="$ac_cpp conftest.$ac_ext"
4882 case "(($ac_try" in
4883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884   *) ac_try_echo=$ac_try;;
4885 esac
4886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4887   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4888   ac_status=$?
4889   grep -v '^ *+' conftest.er1 >conftest.err
4890   rm -f conftest.er1
4891   cat conftest.err >&5
4892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); } >/dev/null; then
4894   if test -s conftest.err; then
4895     ac_cpp_err=$ac_c_preproc_warn_flag
4896     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4897   else
4898     ac_cpp_err=
4899   fi
4900 else
4901   ac_cpp_err=yes
4902 fi
4903 if test -z "$ac_cpp_err"; then
4904   :
4905 else
4906   echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4908
4909   # Broken: fails on valid input.
4910 continue
4911 fi
4912
4913 rm -f conftest.err conftest.$ac_ext
4914
4915   # OK, works on sane cases.  Now check whether nonexistent headers
4916   # can be detected and how.
4917   cat >conftest.$ac_ext <<_ACEOF
4918 /* confdefs.h.  */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h.  */
4923 #include <ac_nonexistent.h>
4924 _ACEOF
4925 if { (ac_try="$ac_cpp conftest.$ac_ext"
4926 case "(($ac_try" in
4927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928   *) ac_try_echo=$ac_try;;
4929 esac
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4932   ac_status=$?
4933   grep -v '^ *+' conftest.er1 >conftest.err
4934   rm -f conftest.er1
4935   cat conftest.err >&5
4936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937   (exit $ac_status); } >/dev/null; then
4938   if test -s conftest.err; then
4939     ac_cpp_err=$ac_c_preproc_warn_flag
4940     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4941   else
4942     ac_cpp_err=
4943   fi
4944 else
4945   ac_cpp_err=yes
4946 fi
4947 if test -z "$ac_cpp_err"; then
4948   # Broken: success on invalid input.
4949 continue
4950 else
4951   echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4953
4954   # Passes both tests.
4955 ac_preproc_ok=:
4956 break
4957 fi
4958
4959 rm -f conftest.err conftest.$ac_ext
4960
4961 done
4962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4963 rm -f conftest.err conftest.$ac_ext
4964 if $ac_preproc_ok; then
4965   :
4966 else
4967   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4968 See \`config.log' for more details." >&5
4969 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4970 See \`config.log' for more details." >&2;}
4971    { (exit 1); exit 1; }; }
4972 fi
4973
4974 ac_ext=c
4975 ac_cpp='$CPP $CPPFLAGS'
4976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979
4980 ac_ext=c
4981 ac_cpp='$CPP $CPPFLAGS'
4982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4985 if test -n "$ac_tool_prefix"; then
4986   for ac_prog in gcc
4987   do
4988     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4992 if test "${ac_cv_prog_CC+set}" = set; then
4993   echo $ECHO_N "(cached) $ECHO_C" >&6
4994 else
4995   if test -n "$CC"; then
4996   ac_cv_prog_CC="$CC" # Let the user override the test.
4997 else
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5000 do
5001   IFS=$as_save_IFS
5002   test -z "$as_dir" && as_dir=.
5003   for ac_exec_ext in '' $ac_executable_extensions; do
5004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5005     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007     break 2
5008   fi
5009 done
5010 done
5011 IFS=$as_save_IFS
5012
5013 fi
5014 fi
5015 CC=$ac_cv_prog_CC
5016 if test -n "$CC"; then
5017   { echo "$as_me:$LINENO: result: $CC" >&5
5018 echo "${ECHO_T}$CC" >&6; }
5019 else
5020   { echo "$as_me:$LINENO: result: no" >&5
5021 echo "${ECHO_T}no" >&6; }
5022 fi
5023
5024
5025     test -n "$CC" && break
5026   done
5027 fi
5028 if test -z "$CC"; then
5029   ac_ct_CC=$CC
5030   for ac_prog in gcc
5031 do
5032   # Extract the first word of "$ac_prog", so it can be a program name with args.
5033 set dummy $ac_prog; ac_word=$2
5034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5036 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5037   echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039   if test -n "$ac_ct_CC"; then
5040   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5041 else
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5044 do
5045   IFS=$as_save_IFS
5046   test -z "$as_dir" && as_dir=.
5047   for ac_exec_ext in '' $ac_executable_extensions; do
5048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5049     ac_cv_prog_ac_ct_CC="$ac_prog"
5050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051     break 2
5052   fi
5053 done
5054 done
5055 IFS=$as_save_IFS
5056
5057 fi
5058 fi
5059 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5060 if test -n "$ac_ct_CC"; then
5061   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5062 echo "${ECHO_T}$ac_ct_CC" >&6; }
5063 else
5064   { echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6; }
5066 fi
5067
5068
5069   test -n "$ac_ct_CC" && break
5070 done
5071
5072   if test "x$ac_ct_CC" = x; then
5073     CC=""
5074   else
5075     case $cross_compiling:$ac_tool_warned in
5076 yes:)
5077 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5078 whose name does not start with the host triplet.  If you think this
5079 configuration is useful to you, please write to autoconf@gnu.org." >&5
5080 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5081 whose name does not start with the host triplet.  If you think this
5082 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5083 ac_tool_warned=yes ;;
5084 esac
5085     CC=$ac_ct_CC
5086   fi
5087 fi
5088
5089
5090 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5091 See \`config.log' for more details." >&5
5092 echo "$as_me: error: no acceptable C compiler found in \$PATH
5093 See \`config.log' for more details." >&2;}
5094    { (exit 1); exit 1; }; }
5095
5096 # Provide some information about the compiler.
5097 echo "$as_me:$LINENO: checking for C compiler version" >&5
5098 ac_compiler=`set X $ac_compile; echo $2`
5099 { (ac_try="$ac_compiler --version >&5"
5100 case "(($ac_try" in
5101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102   *) ac_try_echo=$ac_try;;
5103 esac
5104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105   (eval "$ac_compiler --version >&5") 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }
5109 { (ac_try="$ac_compiler -v >&5"
5110 case "(($ac_try" in
5111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112   *) ac_try_echo=$ac_try;;
5113 esac
5114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115   (eval "$ac_compiler -v >&5") 2>&5
5116   ac_status=$?
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); }
5119 { (ac_try="$ac_compiler -V >&5"
5120 case "(($ac_try" in
5121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122   *) ac_try_echo=$ac_try;;
5123 esac
5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125   (eval "$ac_compiler -V >&5") 2>&5
5126   ac_status=$?
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); }
5129
5130 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5131 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5132 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5133   echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135   cat >conftest.$ac_ext <<_ACEOF
5136 /* confdefs.h.  */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h.  */
5141
5142 int
5143 main ()
5144 {
5145 #ifndef __GNUC__
5146        choke me
5147 #endif
5148
5149   ;
5150   return 0;
5151 }
5152 _ACEOF
5153 rm -f conftest.$ac_objext
5154 if { (ac_try="$ac_compile"
5155 case "(($ac_try" in
5156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157   *) ac_try_echo=$ac_try;;
5158 esac
5159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5160   (eval "$ac_compile") 2>conftest.er1
5161   ac_status=$?
5162   grep -v '^ *+' conftest.er1 >conftest.err
5163   rm -f conftest.er1
5164   cat conftest.err >&5
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); } &&
5167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5168   { (case "(($ac_try" in
5169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170   *) ac_try_echo=$ac_try;;
5171 esac
5172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173   (eval "$ac_try") 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }; } &&
5177          { ac_try='test -s conftest.$ac_objext'
5178   { (case "(($ac_try" in
5179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180   *) ac_try_echo=$ac_try;;
5181 esac
5182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5183   (eval "$ac_try") 2>&5
5184   ac_status=$?
5185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186   (exit $ac_status); }; }; then
5187   ac_compiler_gnu=yes
5188 else
5189   echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5191
5192         ac_compiler_gnu=no
5193 fi
5194
5195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5197
5198 fi
5199 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5200 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5201 GCC=`test $ac_compiler_gnu = yes && echo yes`
5202 ac_test_CFLAGS=${CFLAGS+set}
5203 ac_save_CFLAGS=$CFLAGS
5204 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5205 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5206 if test "${ac_cv_prog_cc_g+set}" = set; then
5207   echo $ECHO_N "(cached) $ECHO_C" >&6
5208 else
5209   ac_save_c_werror_flag=$ac_c_werror_flag
5210    ac_c_werror_flag=yes
5211    ac_cv_prog_cc_g=no
5212    CFLAGS="-g"
5213    cat >conftest.$ac_ext <<_ACEOF
5214 /* confdefs.h.  */
5215 _ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h.  */
5219
5220 int
5221 main ()
5222 {
5223
5224   ;
5225   return 0;
5226 }
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5230 case "(($ac_try" in
5231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232   *) ac_try_echo=$ac_try;;
5233 esac
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235   (eval "$ac_compile") 2>conftest.er1
5236   ac_status=$?
5237   grep -v '^ *+' conftest.er1 >conftest.err
5238   rm -f conftest.er1
5239   cat conftest.err >&5
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); } &&
5242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5243   { (case "(($ac_try" in
5244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245   *) ac_try_echo=$ac_try;;
5246 esac
5247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248   (eval "$ac_try") 2>&5
5249   ac_status=$?
5250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251   (exit $ac_status); }; } &&
5252          { ac_try='test -s conftest.$ac_objext'
5253   { (case "(($ac_try" in
5254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255   *) ac_try_echo=$ac_try;;
5256 esac
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258   (eval "$ac_try") 2>&5
5259   ac_status=$?
5260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); }; }; then
5262   ac_cv_prog_cc_g=yes
5263 else
5264   echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5266
5267         CFLAGS=""
5268       cat >conftest.$ac_ext <<_ACEOF
5269 /* confdefs.h.  */
5270 _ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h.  */
5274
5275 int
5276 main ()
5277 {
5278
5279   ;
5280   return 0;
5281 }
5282 _ACEOF
5283 rm -f conftest.$ac_objext
5284 if { (ac_try="$ac_compile"
5285 case "(($ac_try" in
5286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287   *) ac_try_echo=$ac_try;;
5288 esac
5289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290   (eval "$ac_compile") 2>conftest.er1
5291   ac_status=$?
5292   grep -v '^ *+' conftest.er1 >conftest.err
5293   rm -f conftest.er1
5294   cat conftest.err >&5
5295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); } &&
5297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
5304   ac_status=$?
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); }; } &&
5307          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); }; }; then
5317   :
5318 else
5319   echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5321
5322         ac_c_werror_flag=$ac_save_c_werror_flag
5323          CFLAGS="-g"
5324          cat >conftest.$ac_ext <<_ACEOF
5325 /* confdefs.h.  */
5326 _ACEOF
5327 cat confdefs.h >>conftest.$ac_ext
5328 cat >>conftest.$ac_ext <<_ACEOF
5329 /* end confdefs.h.  */
5330
5331 int
5332 main ()
5333 {
5334
5335   ;
5336   return 0;
5337 }
5338 _ACEOF
5339 rm -f conftest.$ac_objext
5340 if { (ac_try="$ac_compile"
5341 case "(($ac_try" in
5342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343   *) ac_try_echo=$ac_try;;
5344 esac
5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346   (eval "$ac_compile") 2>conftest.er1
5347   ac_status=$?
5348   grep -v '^ *+' conftest.er1 >conftest.err
5349   rm -f conftest.er1
5350   cat conftest.err >&5
5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352   (exit $ac_status); } &&
5353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5354   { (case "(($ac_try" in
5355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356   *) ac_try_echo=$ac_try;;
5357 esac
5358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359   (eval "$ac_try") 2>&5
5360   ac_status=$?
5361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362   (exit $ac_status); }; } &&
5363          { ac_try='test -s conftest.$ac_objext'
5364   { (case "(($ac_try" in
5365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366   *) ac_try_echo=$ac_try;;
5367 esac
5368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369   (eval "$ac_try") 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); }; }; then
5373   ac_cv_prog_cc_g=yes
5374 else
5375   echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5377
5378
5379 fi
5380
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382 fi
5383
5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385 fi
5386
5387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388    ac_c_werror_flag=$ac_save_c_werror_flag
5389 fi
5390 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5391 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5392 if test "$ac_test_CFLAGS" = set; then
5393   CFLAGS=$ac_save_CFLAGS
5394 elif test $ac_cv_prog_cc_g = yes; then
5395   if test "$GCC" = yes; then
5396     CFLAGS="-g -O2"
5397   else
5398     CFLAGS="-g"
5399   fi
5400 else
5401   if test "$GCC" = yes; then
5402     CFLAGS="-O2"
5403   else
5404     CFLAGS=
5405   fi
5406 fi
5407 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5408 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5409 if test "${ac_cv_prog_cc_c89+set}" = set; then
5410   echo $ECHO_N "(cached) $ECHO_C" >&6
5411 else
5412   ac_cv_prog_cc_c89=no
5413 ac_save_CC=$CC
5414 cat >conftest.$ac_ext <<_ACEOF
5415 /* confdefs.h.  */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h.  */
5420 #include <stdarg.h>
5421 #include <stdio.h>
5422 #include <sys/types.h>
5423 #include <sys/stat.h>
5424 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5425 struct buf { int x; };
5426 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5427 static char *e (p, i)
5428      char **p;
5429      int i;
5430 {
5431   return p[i];
5432 }
5433 static char *f (char * (*g) (char **, int), char **p, ...)
5434 {
5435   char *s;
5436   va_list v;
5437   va_start (v,p);
5438   s = g (p, va_arg (v,int));
5439   va_end (v);
5440   return s;
5441 }
5442
5443 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5444    function prototypes and stuff, but not '\xHH' hex character constants.
5445    These don't provoke an error unfortunately, instead are silently treated
5446    as 'x'.  The following induces an error, until -std is added to get
5447    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5448    array size at least.  It's necessary to write '\x00'==0 to get something
5449    that's true only with -std.  */
5450 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5451
5452 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5453    inside strings and character constants.  */
5454 #define FOO(x) 'x'
5455 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5456
5457 int test (int i, double x);
5458 struct s1 {int (*f) (int a);};
5459 struct s2 {int (*f) (double a);};
5460 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5461 int argc;
5462 char **argv;
5463 int
5464 main ()
5465 {
5466 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5467   ;
5468   return 0;
5469 }
5470 _ACEOF
5471 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5472         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5473 do
5474   CC="$ac_save_CC $ac_arg"
5475   rm -f conftest.$ac_objext
5476 if { (ac_try="$ac_compile"
5477 case "(($ac_try" in
5478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479   *) ac_try_echo=$ac_try;;
5480 esac
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482   (eval "$ac_compile") 2>conftest.er1
5483   ac_status=$?
5484   grep -v '^ *+' conftest.er1 >conftest.err
5485   rm -f conftest.er1
5486   cat conftest.err >&5
5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488   (exit $ac_status); } &&
5489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5490   { (case "(($ac_try" in
5491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492   *) ac_try_echo=$ac_try;;
5493 esac
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495   (eval "$ac_try") 2>&5
5496   ac_status=$?
5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); }; } &&
5499          { ac_try='test -s conftest.$ac_objext'
5500   { (case "(($ac_try" in
5501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502   *) ac_try_echo=$ac_try;;
5503 esac
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505   (eval "$ac_try") 2>&5
5506   ac_status=$?
5507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508   (exit $ac_status); }; }; then
5509   ac_cv_prog_cc_c89=$ac_arg
5510 else
5511   echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5513
5514
5515 fi
5516
5517 rm -f core conftest.err conftest.$ac_objext
5518   test "x$ac_cv_prog_cc_c89" != "xno" && break
5519 done
5520 rm -f conftest.$ac_ext
5521 CC=$ac_save_CC
5522
5523 fi
5524 # AC_CACHE_VAL
5525 case "x$ac_cv_prog_cc_c89" in
5526   x)
5527     { echo "$as_me:$LINENO: result: none needed" >&5
5528 echo "${ECHO_T}none needed" >&6; } ;;
5529   xno)
5530     { echo "$as_me:$LINENO: result: unsupported" >&5
5531 echo "${ECHO_T}unsupported" >&6; } ;;
5532   *)
5533     CC="$CC $ac_cv_prog_cc_c89"
5534     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5535 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5536 esac
5537
5538
5539 ac_ext=c
5540 ac_cpp='$CPP $CPPFLAGS'
5541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5544
5545 ac_ext=cpp
5546 ac_cpp='$CXXCPP $CPPFLAGS'
5547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5550 if test -z "$CXX"; then
5551   if test -n "$CCC"; then
5552     CXX=$CCC
5553   else
5554     if test -n "$ac_tool_prefix"; then
5555   for ac_prog in g++
5556   do
5557     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5558 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5561 if test "${ac_cv_prog_CXX+set}" = set; then
5562   echo $ECHO_N "(cached) $ECHO_C" >&6
5563 else
5564   if test -n "$CXX"; then
5565   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5566 else
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 for as_dir in $PATH
5569 do
5570   IFS=$as_save_IFS
5571   test -z "$as_dir" && as_dir=.
5572   for ac_exec_ext in '' $ac_executable_extensions; do
5573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5574     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5576     break 2
5577   fi
5578 done
5579 done
5580 IFS=$as_save_IFS
5581
5582 fi
5583 fi
5584 CXX=$ac_cv_prog_CXX
5585 if test -n "$CXX"; then
5586   { echo "$as_me:$LINENO: result: $CXX" >&5
5587 echo "${ECHO_T}$CXX" >&6; }
5588 else
5589   { echo "$as_me:$LINENO: result: no" >&5
5590 echo "${ECHO_T}no" >&6; }
5591 fi
5592
5593
5594     test -n "$CXX" && break
5595   done
5596 fi
5597 if test -z "$CXX"; then
5598   ac_ct_CXX=$CXX
5599   for ac_prog in g++
5600 do
5601   # Extract the first word of "$ac_prog", so it can be a program name with args.
5602 set dummy $ac_prog; ac_word=$2
5603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5605 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5606   echo $ECHO_N "(cached) $ECHO_C" >&6
5607 else
5608   if test -n "$ac_ct_CXX"; then
5609   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5613 do
5614   IFS=$as_save_IFS
5615   test -z "$as_dir" && as_dir=.
5616   for ac_exec_ext in '' $ac_executable_extensions; do
5617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5618     ac_cv_prog_ac_ct_CXX="$ac_prog"
5619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5620     break 2
5621   fi
5622 done
5623 done
5624 IFS=$as_save_IFS
5625
5626 fi
5627 fi
5628 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5629 if test -n "$ac_ct_CXX"; then
5630   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5631 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5632 else
5633   { echo "$as_me:$LINENO: result: no" >&5
5634 echo "${ECHO_T}no" >&6; }
5635 fi
5636
5637
5638   test -n "$ac_ct_CXX" && break
5639 done
5640
5641   if test "x$ac_ct_CXX" = x; then
5642     CXX="g++"
5643   else
5644     case $cross_compiling:$ac_tool_warned in
5645 yes:)
5646 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5647 whose name does not start with the host triplet.  If you think this
5648 configuration is useful to you, please write to autoconf@gnu.org." >&5
5649 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5650 whose name does not start with the host triplet.  If you think this
5651 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5652 ac_tool_warned=yes ;;
5653 esac
5654     CXX=$ac_ct_CXX
5655   fi
5656 fi
5657
5658   fi
5659 fi
5660 # Provide some information about the compiler.
5661 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5662 ac_compiler=`set X $ac_compile; echo $2`
5663 { (ac_try="$ac_compiler --version >&5"
5664 case "(($ac_try" in
5665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666   *) ac_try_echo=$ac_try;;
5667 esac
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669   (eval "$ac_compiler --version >&5") 2>&5
5670   ac_status=$?
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); }
5673 { (ac_try="$ac_compiler -v >&5"
5674 case "(($ac_try" in
5675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676   *) ac_try_echo=$ac_try;;
5677 esac
5678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5679   (eval "$ac_compiler -v >&5") 2>&5
5680   ac_status=$?
5681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682   (exit $ac_status); }
5683 { (ac_try="$ac_compiler -V >&5"
5684 case "(($ac_try" in
5685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686   *) ac_try_echo=$ac_try;;
5687 esac
5688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689   (eval "$ac_compiler -V >&5") 2>&5
5690   ac_status=$?
5691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692   (exit $ac_status); }
5693
5694 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5695 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5696 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5697   echo $ECHO_N "(cached) $ECHO_C" >&6
5698 else
5699   cat >conftest.$ac_ext <<_ACEOF
5700 /* confdefs.h.  */
5701 _ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h.  */
5705
5706 int
5707 main ()
5708 {
5709 #ifndef __GNUC__
5710        choke me
5711 #endif
5712
5713   ;
5714   return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5719 case "(($ac_try" in
5720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721   *) ac_try_echo=$ac_try;;
5722 esac
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724   (eval "$ac_compile") 2>conftest.er1
5725   ac_status=$?
5726   grep -v '^ *+' conftest.er1 >conftest.err
5727   rm -f conftest.er1
5728   cat conftest.err >&5
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); } &&
5731          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5732   { (case "(($ac_try" in
5733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734   *) ac_try_echo=$ac_try;;
5735 esac
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737   (eval "$ac_try") 2>&5
5738   ac_status=$?
5739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740   (exit $ac_status); }; } &&
5741          { ac_try='test -s conftest.$ac_objext'
5742   { (case "(($ac_try" in
5743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744   *) ac_try_echo=$ac_try;;
5745 esac
5746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747   (eval "$ac_try") 2>&5
5748   ac_status=$?
5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750   (exit $ac_status); }; }; then
5751   ac_compiler_gnu=yes
5752 else
5753   echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756         ac_compiler_gnu=no
5757 fi
5758
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5761
5762 fi
5763 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5764 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5765 GXX=`test $ac_compiler_gnu = yes && echo yes`
5766 ac_test_CXXFLAGS=${CXXFLAGS+set}
5767 ac_save_CXXFLAGS=$CXXFLAGS
5768 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5769 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5770 if test "${ac_cv_prog_cxx_g+set}" = set; then
5771   echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5774    ac_cxx_werror_flag=yes
5775    ac_cv_prog_cxx_g=no
5776    CXXFLAGS="-g"
5777    cat >conftest.$ac_ext <<_ACEOF
5778 /* confdefs.h.  */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h.  */
5783
5784 int
5785 main ()
5786 {
5787
5788   ;
5789   return 0;
5790 }
5791 _ACEOF
5792 rm -f conftest.$ac_objext
5793 if { (ac_try="$ac_compile"
5794 case "(($ac_try" in
5795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796   *) ac_try_echo=$ac_try;;
5797 esac
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799   (eval "$ac_compile") 2>conftest.er1
5800   ac_status=$?
5801   grep -v '^ *+' conftest.er1 >conftest.err
5802   rm -f conftest.er1
5803   cat conftest.err >&5
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); } &&
5806          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5807   { (case "(($ac_try" in
5808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809   *) ac_try_echo=$ac_try;;
5810 esac
5811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812   (eval "$ac_try") 2>&5
5813   ac_status=$?
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); }; } &&
5816          { ac_try='test -s conftest.$ac_objext'
5817   { (case "(($ac_try" in
5818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819   *) ac_try_echo=$ac_try;;
5820 esac
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822   (eval "$ac_try") 2>&5
5823   ac_status=$?
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); }; }; then
5826   ac_cv_prog_cxx_g=yes
5827 else
5828   echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5830
5831         CXXFLAGS=""
5832       cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h.  */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h.  */
5838
5839 int
5840 main ()
5841 {
5842
5843   ;
5844   return 0;
5845 }
5846 _ACEOF
5847 rm -f conftest.$ac_objext
5848 if { (ac_try="$ac_compile"
5849 case "(($ac_try" in
5850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851   *) ac_try_echo=$ac_try;;
5852 esac
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854   (eval "$ac_compile") 2>conftest.er1
5855   ac_status=$?
5856   grep -v '^ *+' conftest.er1 >conftest.err
5857   rm -f conftest.er1
5858   cat conftest.err >&5
5859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860   (exit $ac_status); } &&
5861          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
5868   ac_status=$?
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); }; } &&
5871          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }; }; then
5881   :
5882 else
5883   echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5885
5886         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5887          CXXFLAGS="-g"
5888          cat >conftest.$ac_ext <<_ACEOF
5889 /* confdefs.h.  */
5890 _ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h.  */
5894
5895 int
5896 main ()
5897 {
5898
5899   ;
5900   return 0;
5901 }
5902 _ACEOF
5903 rm -f conftest.$ac_objext
5904 if { (ac_try="$ac_compile"
5905 case "(($ac_try" in
5906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907   *) ac_try_echo=$ac_try;;
5908 esac
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910   (eval "$ac_compile") 2>conftest.er1
5911   ac_status=$?
5912   grep -v '^ *+' conftest.er1 >conftest.err
5913   rm -f conftest.er1
5914   cat conftest.err >&5
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); } &&
5917          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5918   { (case "(($ac_try" in
5919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920   *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923   (eval "$ac_try") 2>&5
5924   ac_status=$?
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); }; } &&
5927          { ac_try='test -s conftest.$ac_objext'
5928   { (case "(($ac_try" in
5929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930   *) ac_try_echo=$ac_try;;
5931 esac
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933   (eval "$ac_try") 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); }; }; then
5937   ac_cv_prog_cxx_g=yes
5938 else
5939   echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942
5943 fi
5944
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 fi
5947
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949 fi
5950
5951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5953 fi
5954 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5955 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5956 if test "$ac_test_CXXFLAGS" = set; then
5957   CXXFLAGS=$ac_save_CXXFLAGS
5958 elif test $ac_cv_prog_cxx_g = yes; then
5959   if test "$GXX" = yes; then
5960     CXXFLAGS="-g -O2"
5961   else
5962     CXXFLAGS="-g"
5963   fi
5964 else
5965   if test "$GXX" = yes; then
5966     CXXFLAGS="-O2"
5967   else
5968     CXXFLAGS=
5969   fi
5970 fi
5971 ac_ext=c
5972 ac_cpp='$CPP $CPPFLAGS'
5973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5976
5977 { echo "$as_me:$LINENO: checking " >&5
5978 echo $ECHO_N "checking ... $ECHO_C" >&6; }
5979 if test "${ac_cv_has_flex+set}" = set; then
5980   echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982   for ac_prog in flex lex
5983 do
5984   # Extract the first word of "$ac_prog", so it can be a program name with args.
5985 set dummy $ac_prog; ac_word=$2
5986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988 if test "${ac_cv_prog_LEX+set}" = set; then
5989   echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991   if test -n "$LEX"; then
5992   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5993 else
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997   IFS=$as_save_IFS
5998   test -z "$as_dir" && as_dir=.
5999   for ac_exec_ext in '' $ac_executable_extensions; do
6000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6001     ac_cv_prog_LEX="$ac_prog"
6002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003     break 2
6004   fi
6005 done
6006 done
6007 IFS=$as_save_IFS
6008
6009 fi
6010 fi
6011 LEX=$ac_cv_prog_LEX
6012 if test -n "$LEX"; then
6013   { echo "$as_me:$LINENO: result: $LEX" >&5
6014 echo "${ECHO_T}$LEX" >&6; }
6015 else
6016   { echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6; }
6018 fi
6019
6020
6021   test -n "$LEX" && break
6022 done
6023 test -n "$LEX" || LEX=":"
6024
6025 if test -z "$LEXLIB"
6026 then
6027   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6028 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6029 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6030   echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032   ac_check_lib_save_LIBS=$LIBS
6033 LIBS="-lfl  $LIBS"
6034 cat >conftest.$ac_ext <<_ACEOF
6035 /* confdefs.h.  */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h.  */
6040
6041 /* Override any GCC internal prototype to avoid an error.
6042    Use char because int might match the return type of a GCC
6043    builtin and then its argument prototype would still apply.  */
6044 #ifdef __cplusplus
6045 extern "C"
6046 #endif
6047 char yywrap ();
6048 int
6049 main ()
6050 {
6051 return yywrap ();
6052   ;
6053   return 0;
6054 }
6055 _ACEOF
6056 rm -f conftest.$ac_objext conftest$ac_exeext
6057 if { (ac_try="$ac_link"
6058 case "(($ac_try" in
6059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060   *) ac_try_echo=$ac_try;;
6061 esac
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063   (eval "$ac_link") 2>conftest.er1
6064   ac_status=$?
6065   grep -v '^ *+' conftest.er1 >conftest.err
6066   rm -f conftest.er1
6067   cat conftest.err >&5
6068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069   (exit $ac_status); } &&
6070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6071   { (case "(($ac_try" in
6072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073   *) ac_try_echo=$ac_try;;
6074 esac
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076   (eval "$ac_try") 2>&5
6077   ac_status=$?
6078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079   (exit $ac_status); }; } &&
6080          { ac_try='test -s conftest$ac_exeext'
6081   { (case "(($ac_try" in
6082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083   *) ac_try_echo=$ac_try;;
6084 esac
6085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086   (eval "$ac_try") 2>&5
6087   ac_status=$?
6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089   (exit $ac_status); }; }; then
6090   ac_cv_lib_fl_yywrap=yes
6091 else
6092   echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6094
6095         ac_cv_lib_fl_yywrap=no
6096 fi
6097
6098 rm -f core conftest.err conftest.$ac_objext \
6099       conftest$ac_exeext conftest.$ac_ext
6100 LIBS=$ac_check_lib_save_LIBS
6101 fi
6102 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6103 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6104 if test $ac_cv_lib_fl_yywrap = yes; then
6105   LEXLIB="-lfl"
6106 else
6107   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6108 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6109 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6110   echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112   ac_check_lib_save_LIBS=$LIBS
6113 LIBS="-ll  $LIBS"
6114 cat >conftest.$ac_ext <<_ACEOF
6115 /* confdefs.h.  */
6116 _ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h.  */
6120
6121 /* Override any GCC internal prototype to avoid an error.
6122    Use char because int might match the return type of a GCC
6123    builtin and then its argument prototype would still apply.  */
6124 #ifdef __cplusplus
6125 extern "C"
6126 #endif
6127 char yywrap ();
6128 int
6129 main ()
6130 {
6131 return yywrap ();
6132   ;
6133   return 0;
6134 }
6135 _ACEOF
6136 rm -f conftest.$ac_objext conftest$ac_exeext
6137 if { (ac_try="$ac_link"
6138 case "(($ac_try" in
6139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140   *) ac_try_echo=$ac_try;;
6141 esac
6142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143   (eval "$ac_link") 2>conftest.er1
6144   ac_status=$?
6145   grep -v '^ *+' conftest.er1 >conftest.err
6146   rm -f conftest.er1
6147   cat conftest.err >&5
6148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149   (exit $ac_status); } &&
6150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6151   { (case "(($ac_try" in
6152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153   *) ac_try_echo=$ac_try;;
6154 esac
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156   (eval "$ac_try") 2>&5
6157   ac_status=$?
6158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159   (exit $ac_status); }; } &&
6160          { ac_try='test -s conftest$ac_exeext'
6161   { (case "(($ac_try" in
6162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163   *) ac_try_echo=$ac_try;;
6164 esac
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166   (eval "$ac_try") 2>&5
6167   ac_status=$?
6168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169   (exit $ac_status); }; }; then
6170   ac_cv_lib_l_yywrap=yes
6171 else
6172   echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6174
6175         ac_cv_lib_l_yywrap=no
6176 fi
6177
6178 rm -f core conftest.err conftest.$ac_objext \
6179       conftest$ac_exeext conftest.$ac_ext
6180 LIBS=$ac_check_lib_save_LIBS
6181 fi
6182 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6183 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6184 if test $ac_cv_lib_l_yywrap = yes; then
6185   LEXLIB="-ll"
6186 fi
6187
6188 fi
6189
6190 fi
6191
6192 if test "x$LEX" != "x:"; then
6193   { echo "$as_me:$LINENO: checking lex output file root" >&5
6194 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6195 if test "${ac_cv_prog_lex_root+set}" = set; then
6196   echo $ECHO_N "(cached) $ECHO_C" >&6
6197 else
6198   # The minimal lex program is just a single line: %%.  But some broken lexes
6199 # (Solaris, I think it was) want two %% lines, so accommodate them.
6200 cat >conftest.l <<_ACEOF
6201 %%
6202 %%
6203 _ACEOF
6204 { (ac_try="$LEX conftest.l"
6205 case "(($ac_try" in
6206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207   *) ac_try_echo=$ac_try;;
6208 esac
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210   (eval "$LEX conftest.l") 2>&5
6211   ac_status=$?
6212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213   (exit $ac_status); }
6214 if test -f lex.yy.c; then
6215   ac_cv_prog_lex_root=lex.yy
6216 elif test -f lexyy.c; then
6217   ac_cv_prog_lex_root=lexyy
6218 else
6219   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6220 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6221    { (exit 1); exit 1; }; }
6222 fi
6223 fi
6224 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6225 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6226 rm -f conftest.l
6227 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6228
6229 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6230 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6231 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6232   echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234   # POSIX says lex can declare yytext either as a pointer or an array; the
6235 # default is implementation-dependent. Figure out which it is, since
6236 # not all implementations provide the %pointer and %array declarations.
6237 ac_cv_prog_lex_yytext_pointer=no
6238 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6239 ac_save_LIBS=$LIBS
6240 LIBS="$LIBS $LEXLIB"
6241 cat >conftest.$ac_ext <<_ACEOF
6242 `cat $LEX_OUTPUT_ROOT.c`
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_prog_lex_yytext_pointer=yes
6279 else
6280   echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6282
6283
6284 fi
6285
6286 rm -f core conftest.err conftest.$ac_objext \
6287       conftest$ac_exeext conftest.$ac_ext
6288 LIBS=$ac_save_LIBS
6289 rm -f "${LEX_OUTPUT_ROOT}.c"
6290
6291 fi
6292 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6293 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6294 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6295
6296 cat >>confdefs.h <<\_ACEOF
6297 #define YYTEXT_POINTER 1
6298 _ACEOF
6299
6300 fi
6301
6302 fi
6303
6304 fi
6305 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6306 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6307 if test "$LEX" != "flex"; then
6308   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6309 echo "$as_me: error: flex not found but required" >&2;}
6310    { (exit 1); exit 1; }; }
6311 else
6312   FLEX=flex
6313
6314 fi
6315
6316 { echo "$as_me:$LINENO: checking " >&5
6317 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6318 if test "${llvm_cv_has_bison+set}" = set; then
6319   echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321   for ac_prog in 'bison -y' byacc
6322 do
6323   # Extract the first word of "$ac_prog", so it can be a program name with args.
6324 set dummy $ac_prog; ac_word=$2
6325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6327 if test "${ac_cv_prog_YACC+set}" = set; then
6328   echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330   if test -n "$YACC"; then
6331   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336   IFS=$as_save_IFS
6337   test -z "$as_dir" && as_dir=.
6338   for ac_exec_ext in '' $ac_executable_extensions; do
6339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6340     ac_cv_prog_YACC="$ac_prog"
6341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342     break 2
6343   fi
6344 done
6345 done
6346 IFS=$as_save_IFS
6347
6348 fi
6349 fi
6350 YACC=$ac_cv_prog_YACC
6351 if test -n "$YACC"; then
6352   { echo "$as_me:$LINENO: result: $YACC" >&5
6353 echo "${ECHO_T}$YACC" >&6; }
6354 else
6355   { echo "$as_me:$LINENO: result: no" >&5
6356 echo "${ECHO_T}no" >&6; }
6357 fi
6358
6359
6360   test -n "$YACC" && break
6361 done
6362 test -n "$YACC" || YACC="yacc"
6363
6364 fi
6365 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6366 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6367 if test "$YACC" != "bison -y"; then
6368
6369   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6370 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6371 else
6372   BISON=bison
6373
6374 fi
6375
6376 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6377 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6378 if test "${lt_cv_path_NM+set}" = set; then
6379   echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381   if test -n "$NM"; then
6382   # Let the user override the test.
6383   lt_cv_path_NM="$NM"
6384 else
6385   lt_nm_to_check="${ac_tool_prefix}nm"
6386   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6387     lt_nm_to_check="$lt_nm_to_check nm"
6388   fi
6389   for lt_tmp_nm in $lt_nm_to_check; do
6390     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6391     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6392       IFS="$lt_save_ifs"
6393       test -z "$ac_dir" && ac_dir=.
6394       tmp_nm="$ac_dir/$lt_tmp_nm"
6395       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6396         # Check to see if the nm accepts a BSD-compat flag.
6397         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6398         #   nm: unknown option "B" ignored
6399         # Tru64's nm complains that /dev/null is an invalid object file
6400         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6401         */dev/null* | *'Invalid file or object type'*)
6402           lt_cv_path_NM="$tmp_nm -B"
6403           break
6404           ;;
6405         *)
6406           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6407           */dev/null*)
6408             lt_cv_path_NM="$tmp_nm -p"
6409             break
6410             ;;
6411           *)
6412             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6413             continue # so that we can try to find one that supports BSD flags
6414             ;;
6415           esac
6416           ;;
6417         esac
6418       fi
6419     done
6420     IFS="$lt_save_ifs"
6421   done
6422   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6423 fi
6424 fi
6425 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6426 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6427 NM="$lt_cv_path_NM"
6428
6429
6430
6431 { echo "$as_me:$LINENO: checking for GNU make" >&5
6432 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6433 if test "${llvm_cv_gnu_make_command+set}" = set; then
6434   echo $ECHO_N "(cached) $ECHO_C" >&6
6435 else
6436   llvm_cv_gnu_make_command=''
6437  for a in "$MAKE" make gmake gnumake ; do
6438   if test -z "$a" ; then continue ; fi ;
6439   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6440   then
6441    llvm_cv_gnu_make_command=$a ;
6442    break;
6443   fi
6444  done
6445 fi
6446 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6447 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6448  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6449    ifGNUmake='' ;
6450  else
6451    ifGNUmake='#' ;
6452    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6453 echo "${ECHO_T}\"Not found\"" >&6; };
6454  fi
6455
6456
6457 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6458 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6459 LN_S=$as_ln_s
6460 if test "$LN_S" = "ln -s"; then
6461   { echo "$as_me:$LINENO: result: yes" >&5
6462 echo "${ECHO_T}yes" >&6; }
6463 else
6464   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6465 echo "${ECHO_T}no, using $LN_S" >&6; }
6466 fi
6467
6468 # Extract the first word of "cmp", so it can be a program name with args.
6469 set dummy cmp; ac_word=$2
6470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6472 if test "${ac_cv_path_CMP+set}" = set; then
6473   echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475   case $CMP in
6476   [\\/]* | ?:[\\/]*)
6477   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6478   ;;
6479   *)
6480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483   IFS=$as_save_IFS
6484   test -z "$as_dir" && as_dir=.
6485   for ac_exec_ext in '' $ac_executable_extensions; do
6486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6487     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6489     break 2
6490   fi
6491 done
6492 done
6493 IFS=$as_save_IFS
6494
6495   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6496   ;;
6497 esac
6498 fi
6499 CMP=$ac_cv_path_CMP
6500 if test -n "$CMP"; then
6501   { echo "$as_me:$LINENO: result: $CMP" >&5
6502 echo "${ECHO_T}$CMP" >&6; }
6503 else
6504   { echo "$as_me:$LINENO: result: no" >&5
6505 echo "${ECHO_T}no" >&6; }
6506 fi
6507
6508
6509 # Extract the first word of "cp", so it can be a program name with args.
6510 set dummy cp; ac_word=$2
6511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513 if test "${ac_cv_path_CP+set}" = set; then
6514   echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516   case $CP in
6517   [\\/]* | ?:[\\/]*)
6518   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6519   ;;
6520   *)
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_path_CP="$as_dir/$ac_word$ac_exec_ext"
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   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6537   ;;
6538 esac
6539 fi
6540 CP=$ac_cv_path_CP
6541 if test -n "$CP"; then
6542   { echo "$as_me:$LINENO: result: $CP" >&5
6543 echo "${ECHO_T}$CP" >&6; }
6544 else
6545   { echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6; }
6547 fi
6548
6549
6550 # Extract the first word of "date", so it can be a program name with args.
6551 set dummy date; ac_word=$2
6552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6554 if test "${ac_cv_path_DATE+set}" = set; then
6555   echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557   case $DATE in
6558   [\\/]* | ?:[\\/]*)
6559   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6560   ;;
6561   *)
6562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 for as_dir in $PATH
6564 do
6565   IFS=$as_save_IFS
6566   test -z "$as_dir" && as_dir=.
6567   for ac_exec_ext in '' $ac_executable_extensions; do
6568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6569     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571     break 2
6572   fi
6573 done
6574 done
6575 IFS=$as_save_IFS
6576
6577   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6578   ;;
6579 esac
6580 fi
6581 DATE=$ac_cv_path_DATE
6582 if test -n "$DATE"; then
6583   { echo "$as_me:$LINENO: result: $DATE" >&5
6584 echo "${ECHO_T}$DATE" >&6; }
6585 else
6586   { echo "$as_me:$LINENO: result: no" >&5
6587 echo "${ECHO_T}no" >&6; }
6588 fi
6589
6590
6591 # Extract the first word of "find", so it can be a program name with args.
6592 set dummy find; ac_word=$2
6593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6595 if test "${ac_cv_path_FIND+set}" = set; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   case $FIND in
6599   [\\/]* | ?:[\\/]*)
6600   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6601   ;;
6602   *)
6603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6605 do
6606   IFS=$as_save_IFS
6607   test -z "$as_dir" && as_dir=.
6608   for ac_exec_ext in '' $ac_executable_extensions; do
6609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6610     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612     break 2
6613   fi
6614 done
6615 done
6616 IFS=$as_save_IFS
6617
6618   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6619   ;;
6620 esac
6621 fi
6622 FIND=$ac_cv_path_FIND
6623 if test -n "$FIND"; then
6624   { echo "$as_me:$LINENO: result: $FIND" >&5
6625 echo "${ECHO_T}$FIND" >&6; }
6626 else
6627   { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6629 fi
6630
6631
6632 # Extract the first word of "grep", so it can be a program name with args.
6633 set dummy grep; ac_word=$2
6634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6636 if test "${ac_cv_path_GREP+set}" = set; then
6637   echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639   case $GREP in
6640   [\\/]* | ?:[\\/]*)
6641   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6642   ;;
6643   *)
6644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6646 do
6647   IFS=$as_save_IFS
6648   test -z "$as_dir" && as_dir=.
6649   for ac_exec_ext in '' $ac_executable_extensions; do
6650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6651     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653     break 2
6654   fi
6655 done
6656 done
6657 IFS=$as_save_IFS
6658
6659   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6660   ;;
6661 esac
6662 fi
6663 GREP=$ac_cv_path_GREP
6664 if test -n "$GREP"; then
6665   { echo "$as_me:$LINENO: result: $GREP" >&5
6666 echo "${ECHO_T}$GREP" >&6; }
6667 else
6668   { echo "$as_me:$LINENO: result: no" >&5
6669 echo "${ECHO_T}no" >&6; }
6670 fi
6671
6672
6673 # Extract the first word of "mkdir", so it can be a program name with args.
6674 set dummy mkdir; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_path_MKDIR+set}" = set; then
6678   echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680   case $MKDIR in
6681   [\\/]* | ?:[\\/]*)
6682   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6683   ;;
6684   *)
6685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688   IFS=$as_save_IFS
6689   test -z "$as_dir" && as_dir=.
6690   for ac_exec_ext in '' $ac_executable_extensions; do
6691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6692     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6694     break 2
6695   fi
6696 done
6697 done
6698 IFS=$as_save_IFS
6699
6700   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6701   ;;
6702 esac
6703 fi
6704 MKDIR=$ac_cv_path_MKDIR
6705 if test -n "$MKDIR"; then
6706   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6707 echo "${ECHO_T}$MKDIR" >&6; }
6708 else
6709   { echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6; }
6711 fi
6712
6713
6714 # Extract the first word of "mv", so it can be a program name with args.
6715 set dummy mv; ac_word=$2
6716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6718 if test "${ac_cv_path_MV+set}" = set; then
6719   echo $ECHO_N "(cached) $ECHO_C" >&6
6720 else
6721   case $MV in
6722   [\\/]* | ?:[\\/]*)
6723   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6724   ;;
6725   *)
6726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731   for ac_exec_ext in '' $ac_executable_extensions; do
6732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6733     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6742   ;;
6743 esac
6744 fi
6745 MV=$ac_cv_path_MV
6746 if test -n "$MV"; then
6747   { echo "$as_me:$LINENO: result: $MV" >&5
6748 echo "${ECHO_T}$MV" >&6; }
6749 else
6750   { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6752 fi
6753
6754
6755 if test -n "$ac_tool_prefix"; then
6756   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6757 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6760 if test "${ac_cv_prog_RANLIB+set}" = set; then
6761   echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763   if test -n "$RANLIB"; then
6764   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769   IFS=$as_save_IFS
6770   test -z "$as_dir" && as_dir=.
6771   for ac_exec_ext in '' $ac_executable_extensions; do
6772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6773     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775     break 2
6776   fi
6777 done
6778 done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 RANLIB=$ac_cv_prog_RANLIB
6784 if test -n "$RANLIB"; then
6785   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6786 echo "${ECHO_T}$RANLIB" >&6; }
6787 else
6788   { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6790 fi
6791
6792
6793 fi
6794 if test -z "$ac_cv_prog_RANLIB"; then
6795   ac_ct_RANLIB=$RANLIB
6796   # Extract the first word of "ranlib", so it can be a program name with args.
6797 set dummy ranlib; ac_word=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6801   echo $ECHO_N "(cached) $ECHO_C" >&6
6802 else
6803   if test -n "$ac_ct_RANLIB"; then
6804   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809   IFS=$as_save_IFS
6810   test -z "$as_dir" && as_dir=.
6811   for ac_exec_ext in '' $ac_executable_extensions; do
6812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6813     ac_cv_prog_ac_ct_RANLIB="ranlib"
6814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815     break 2
6816   fi
6817 done
6818 done
6819 IFS=$as_save_IFS
6820
6821 fi
6822 fi
6823 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6824 if test -n "$ac_ct_RANLIB"; then
6825   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6826 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6827 else
6828   { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6830 fi
6831
6832   if test "x$ac_ct_RANLIB" = x; then
6833     RANLIB=":"
6834   else
6835     case $cross_compiling:$ac_tool_warned in
6836 yes:)
6837 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6838 whose name does not start with the host triplet.  If you think this
6839 configuration is useful to you, please write to autoconf@gnu.org." >&5
6840 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6841 whose name does not start with the host triplet.  If you think this
6842 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6843 ac_tool_warned=yes ;;
6844 esac
6845     RANLIB=$ac_ct_RANLIB
6846   fi
6847 else
6848   RANLIB="$ac_cv_prog_RANLIB"
6849 fi
6850
6851 # Extract the first word of "rm", so it can be a program name with args.
6852 set dummy rm; ac_word=$2
6853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855 if test "${ac_cv_path_RM+set}" = set; then
6856   echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858   case $RM in
6859   [\\/]* | ?:[\\/]*)
6860   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6861   ;;
6862   *)
6863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH
6865 do
6866   IFS=$as_save_IFS
6867   test -z "$as_dir" && as_dir=.
6868   for ac_exec_ext in '' $ac_executable_extensions; do
6869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6870     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872     break 2
6873   fi
6874 done
6875 done
6876 IFS=$as_save_IFS
6877
6878   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6879   ;;
6880 esac
6881 fi
6882 RM=$ac_cv_path_RM
6883 if test -n "$RM"; then
6884   { echo "$as_me:$LINENO: result: $RM" >&5
6885 echo "${ECHO_T}$RM" >&6; }
6886 else
6887   { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6889 fi
6890
6891
6892 # Extract the first word of "sed", so it can be a program name with args.
6893 set dummy sed; ac_word=$2
6894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896 if test "${ac_cv_path_SED+set}" = set; then
6897   echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899   case $SED in
6900   [\\/]* | ?:[\\/]*)
6901   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6902   ;;
6903   *)
6904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 for as_dir in $PATH
6906 do
6907   IFS=$as_save_IFS
6908   test -z "$as_dir" && as_dir=.
6909   for ac_exec_ext in '' $ac_executable_extensions; do
6910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6911     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913     break 2
6914   fi
6915 done
6916 done
6917 IFS=$as_save_IFS
6918
6919   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6920   ;;
6921 esac
6922 fi
6923 SED=$ac_cv_path_SED
6924 if test -n "$SED"; then
6925   { echo "$as_me:$LINENO: result: $SED" >&5
6926 echo "${ECHO_T}$SED" >&6; }
6927 else
6928   { echo "$as_me:$LINENO: result: no" >&5
6929 echo "${ECHO_T}no" >&6; }
6930 fi
6931
6932
6933 # Extract the first word of "tar", so it can be a program name with args.
6934 set dummy tar; ac_word=$2
6935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937 if test "${ac_cv_path_TAR+set}" = set; then
6938   echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940   case $TAR in
6941   [\\/]* | ?:[\\/]*)
6942   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6943   ;;
6944   *)
6945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948   IFS=$as_save_IFS
6949   test -z "$as_dir" && as_dir=.
6950   for ac_exec_ext in '' $ac_executable_extensions; do
6951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6952     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954     break 2
6955   fi
6956 done
6957 done
6958 IFS=$as_save_IFS
6959
6960   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6961   ;;
6962 esac
6963 fi
6964 TAR=$ac_cv_path_TAR
6965 if test -n "$TAR"; then
6966   { echo "$as_me:$LINENO: result: $TAR" >&5
6967 echo "${ECHO_T}$TAR" >&6; }
6968 else
6969   { echo "$as_me:$LINENO: result: no" >&5
6970 echo "${ECHO_T}no" >&6; }
6971 fi
6972
6973
6974 # Extract the first word of "pwd", so it can be a program name with args.
6975 set dummy pwd; ac_word=$2
6976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6978 if test "${ac_cv_path_BINPWD+set}" = set; then
6979   echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981   case $BINPWD in
6982   [\\/]* | ?:[\\/]*)
6983   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6984   ;;
6985   *)
6986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6988 do
6989   IFS=$as_save_IFS
6990   test -z "$as_dir" && as_dir=.
6991   for ac_exec_ext in '' $ac_executable_extensions; do
6992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6993     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995     break 2
6996   fi
6997 done
6998 done
6999 IFS=$as_save_IFS
7000
7001   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7002   ;;
7003 esac
7004 fi
7005 BINPWD=$ac_cv_path_BINPWD
7006 if test -n "$BINPWD"; then
7007   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7008 echo "${ECHO_T}$BINPWD" >&6; }
7009 else
7010   { echo "$as_me:$LINENO: result: no" >&5
7011 echo "${ECHO_T}no" >&6; }
7012 fi
7013
7014
7015
7016 # Extract the first word of "Graphviz", so it can be a program name with args.
7017 set dummy Graphviz; ac_word=$2
7018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7020 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7021   echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
7023   case $GRAPHVIZ in
7024   [\\/]* | ?:[\\/]*)
7025   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7026   ;;
7027   *)
7028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031   IFS=$as_save_IFS
7032   test -z "$as_dir" && as_dir=.
7033   for ac_exec_ext in '' $ac_executable_extensions; do
7034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7035     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7037     break 2
7038   fi
7039 done
7040 done
7041 IFS=$as_save_IFS
7042
7043   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7044   ;;
7045 esac
7046 fi
7047 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7048 if test -n "$GRAPHVIZ"; then
7049   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7050 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7051 else
7052   { echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6; }
7054 fi
7055
7056
7057 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7058
7059 cat >>confdefs.h <<\_ACEOF
7060 #define HAVE_GRAPHVIZ 1
7061 _ACEOF
7062
7063     if test "$llvm_cv_os_type" == "MingW" ; then
7064     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7065   fi
7066
7067 cat >>confdefs.h <<_ACEOF
7068 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7069 _ACEOF
7070
7071 fi
7072 # Extract the first word of "dot", so it can be a program name with args.
7073 set dummy dot; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_path_DOT+set}" = set; then
7077   echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079   case $DOT in
7080   [\\/]* | ?:[\\/]*)
7081   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7082   ;;
7083   *)
7084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087   IFS=$as_save_IFS
7088   test -z "$as_dir" && as_dir=.
7089   for ac_exec_ext in '' $ac_executable_extensions; do
7090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093     break 2
7094   fi
7095 done
7096 done
7097 IFS=$as_save_IFS
7098
7099   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7100   ;;
7101 esac
7102 fi
7103 DOT=$ac_cv_path_DOT
7104 if test -n "$DOT"; then
7105   { echo "$as_me:$LINENO: result: $DOT" >&5
7106 echo "${ECHO_T}$DOT" >&6; }
7107 else
7108   { echo "$as_me:$LINENO: result: no" >&5
7109 echo "${ECHO_T}no" >&6; }
7110 fi
7111
7112
7113 if test "$DOT" != "echo dot" ; then
7114
7115 cat >>confdefs.h <<\_ACEOF
7116 #define HAVE_DOT 1
7117 _ACEOF
7118
7119     if test "$llvm_cv_os_type" == "MingW" ; then
7120     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7121   fi
7122
7123 cat >>confdefs.h <<_ACEOF
7124 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7125 _ACEOF
7126
7127 fi
7128 for ac_prog in gv gsview32
7129 do
7130   # Extract the first word of "$ac_prog", so it can be a program name with args.
7131 set dummy $ac_prog; ac_word=$2
7132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134 if test "${ac_cv_path_GV+set}" = set; then
7135   echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137   case $GV in
7138   [\\/]* | ?:[\\/]*)
7139   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7140   ;;
7141   *)
7142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145   IFS=$as_save_IFS
7146   test -z "$as_dir" && as_dir=.
7147   for ac_exec_ext in '' $ac_executable_extensions; do
7148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7149     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151     break 2
7152   fi
7153 done
7154 done
7155 IFS=$as_save_IFS
7156
7157   ;;
7158 esac
7159 fi
7160 GV=$ac_cv_path_GV
7161 if test -n "$GV"; then
7162   { echo "$as_me:$LINENO: result: $GV" >&5
7163 echo "${ECHO_T}$GV" >&6; }
7164 else
7165   { echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6; }
7167 fi
7168
7169
7170   test -n "$GV" && break
7171 done
7172 test -n "$GV" || GV="echo gv"
7173
7174 if test "$GV" != "echo gv" ; then
7175
7176 cat >>confdefs.h <<\_ACEOF
7177 #define HAVE_GV 1
7178 _ACEOF
7179
7180     if test "$llvm_cv_os_type" == "MingW" ; then
7181     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7182   fi
7183
7184 cat >>confdefs.h <<_ACEOF
7185 #define LLVM_PATH_GV "$GV${EXEEXT}"
7186 _ACEOF
7187
7188 fi
7189 # Extract the first word of "dotty", so it can be a program name with args.
7190 set dummy dotty; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_path_DOTTY+set}" = set; then
7194   echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196   case $DOTTY in
7197   [\\/]* | ?:[\\/]*)
7198   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7199   ;;
7200   *)
7201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204   IFS=$as_save_IFS
7205   test -z "$as_dir" && as_dir=.
7206   for ac_exec_ext in '' $ac_executable_extensions; do
7207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7208     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210     break 2
7211   fi
7212 done
7213 done
7214 IFS=$as_save_IFS
7215
7216   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7217   ;;
7218 esac
7219 fi
7220 DOTTY=$ac_cv_path_DOTTY
7221 if test -n "$DOTTY"; then
7222   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7223 echo "${ECHO_T}$DOTTY" >&6; }
7224 else
7225   { echo "$as_me:$LINENO: result: no" >&5
7226 echo "${ECHO_T}no" >&6; }
7227 fi
7228
7229
7230 if test "$DOTTY" != "echo dotty" ; then
7231
7232 cat >>confdefs.h <<\_ACEOF
7233 #define HAVE_DOTTY 1
7234 _ACEOF
7235
7236     if test "$llvm_cv_os_type" == "MingW" ; then
7237     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7238   fi
7239
7240 cat >>confdefs.h <<_ACEOF
7241 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7242 _ACEOF
7243
7244 fi
7245
7246
7247 # Extract the first word of "perl", so it can be a program name with args.
7248 set dummy perl; ac_word=$2
7249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7251 if test "${ac_cv_path_PERL+set}" = set; then
7252   echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254   case $PERL in
7255   [\\/]* | ?:[\\/]*)
7256   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7257   ;;
7258   *)
7259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262   IFS=$as_save_IFS
7263   test -z "$as_dir" && as_dir=.
7264   for ac_exec_ext in '' $ac_executable_extensions; do
7265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7266     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268     break 2
7269   fi
7270 done
7271 done
7272 IFS=$as_save_IFS
7273
7274   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7275   ;;
7276 esac
7277 fi
7278 PERL=$ac_cv_path_PERL
7279 if test -n "$PERL"; then
7280   { echo "$as_me:$LINENO: result: $PERL" >&5
7281 echo "${ECHO_T}$PERL" >&6; }
7282 else
7283   { echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6; }
7285 fi
7286
7287
7288 if test "$PERL" != "none"; then
7289   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7290 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7291   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7292     { echo "$as_me:$LINENO: result: yes" >&5
7293 echo "${ECHO_T}yes" >&6; }
7294   else
7295     PERL=none
7296     { echo "$as_me:$LINENO: result: not found" >&5
7297 echo "${ECHO_T}not found" >&6; }
7298   fi
7299 fi
7300
7301
7302 if test x"$PERL" = xnone; then
7303    HAVE_PERL=0
7304
7305 else
7306    HAVE_PERL=1
7307
7308 fi
7309
7310 # Find a good install program.  We prefer a C program (faster),
7311 # so one script is as good as another.  But avoid the broken or
7312 # incompatible versions:
7313 # SysV /etc/install, /usr/sbin/install
7314 # SunOS /usr/etc/install
7315 # IRIX /sbin/install
7316 # AIX /bin/install
7317 # AmigaOS /C/install, which installs bootblocks on floppy discs
7318 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7319 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7320 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7321 # OS/2's system install, which has a completely different semantic
7322 # ./install, which can be erroneously created by make from ./install.sh.
7323 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7324 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7325 if test -z "$INSTALL"; then
7326 if test "${ac_cv_path_install+set}" = set; then
7327   echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 for as_dir in $PATH
7331 do
7332   IFS=$as_save_IFS
7333   test -z "$as_dir" && as_dir=.
7334   # Account for people who put trailing slashes in PATH elements.
7335 case $as_dir/ in
7336   ./ | .// | /cC/* | \
7337   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7338   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7339   /usr/ucb/* ) ;;
7340   *)
7341     # OSF1 and SCO ODT 3.0 have their own names for install.
7342     # Don't use installbsd from OSF since it installs stuff as root
7343     # by default.
7344     for ac_prog in ginstall scoinst install; do
7345       for ac_exec_ext in '' $ac_executable_extensions; do
7346         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7347           if test $ac_prog = install &&
7348             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7349             # AIX install.  It has an incompatible calling convention.
7350             :
7351           elif test $ac_prog = install &&
7352             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7353             # program-specific install script used by HP pwplus--don't use.
7354             :
7355           else
7356             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7357             break 3
7358           fi
7359         fi
7360       done
7361     done
7362     ;;
7363 esac
7364 done
7365 IFS=$as_save_IFS
7366
7367
7368 fi
7369   if test "${ac_cv_path_install+set}" = set; then
7370     INSTALL=$ac_cv_path_install
7371   else
7372     # As a last resort, use the slow shell script.  Don't cache a
7373     # value for INSTALL within a source directory, because that will
7374     # break other packages using the cache if that directory is
7375     # removed, or if the value is a relative name.
7376     INSTALL=$ac_install_sh
7377   fi
7378 fi
7379 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7380 echo "${ECHO_T}$INSTALL" >&6; }
7381
7382 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7383 # It thinks the first close brace ends the variable substitution.
7384 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7385
7386 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7387
7388 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7389
7390
7391 # Extract the first word of "bzip2", so it can be a program name with args.
7392 set dummy bzip2; ac_word=$2
7393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7395 if test "${ac_cv_path_BZIP2+set}" = set; then
7396   echo $ECHO_N "(cached) $ECHO_C" >&6
7397 else
7398   case $BZIP2 in
7399   [\\/]* | ?:[\\/]*)
7400   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7401   ;;
7402   *)
7403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 for as_dir in $PATH
7405 do
7406   IFS=$as_save_IFS
7407   test -z "$as_dir" && as_dir=.
7408   for ac_exec_ext in '' $ac_executable_extensions; do
7409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7410     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412     break 2
7413   fi
7414 done
7415 done
7416 IFS=$as_save_IFS
7417
7418   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7419   ;;
7420 esac
7421 fi
7422 BZIP2=$ac_cv_path_BZIP2
7423 if test -n "$BZIP2"; then
7424   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7425 echo "${ECHO_T}$BZIP2" >&6; }
7426 else
7427   { echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6; }
7429 fi
7430
7431
7432 # Extract the first word of "doxygen", so it can be a program name with args.
7433 set dummy doxygen; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7437   echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439   case $DOXYGEN in
7440   [\\/]* | ?:[\\/]*)
7441   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7442   ;;
7443   *)
7444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447   IFS=$as_save_IFS
7448   test -z "$as_dir" && as_dir=.
7449   for ac_exec_ext in '' $ac_executable_extensions; do
7450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7451     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453     break 2
7454   fi
7455 done
7456 done
7457 IFS=$as_save_IFS
7458
7459   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7460   ;;
7461 esac
7462 fi
7463 DOXYGEN=$ac_cv_path_DOXYGEN
7464 if test -n "$DOXYGEN"; then
7465   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7466 echo "${ECHO_T}$DOXYGEN" >&6; }
7467 else
7468   { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7470 fi
7471
7472
7473 # Extract the first word of "groff", so it can be a program name with args.
7474 set dummy groff; ac_word=$2
7475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7477 if test "${ac_cv_path_GROFF+set}" = set; then
7478   echo $ECHO_N "(cached) $ECHO_C" >&6
7479 else
7480   case $GROFF in
7481   [\\/]* | ?:[\\/]*)
7482   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7483   ;;
7484   *)
7485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7487 do
7488   IFS=$as_save_IFS
7489   test -z "$as_dir" && as_dir=.
7490   for ac_exec_ext in '' $ac_executable_extensions; do
7491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7492     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7494     break 2
7495   fi
7496 done
7497 done
7498 IFS=$as_save_IFS
7499
7500   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7501   ;;
7502 esac
7503 fi
7504 GROFF=$ac_cv_path_GROFF
7505 if test -n "$GROFF"; then
7506   { echo "$as_me:$LINENO: result: $GROFF" >&5
7507 echo "${ECHO_T}$GROFF" >&6; }
7508 else
7509   { echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6; }
7511 fi
7512
7513
7514 # Extract the first word of "gzip", so it can be a program name with args.
7515 set dummy gzip; ac_word=$2
7516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7518 if test "${ac_cv_path_GZIP+set}" = set; then
7519   echo $ECHO_N "(cached) $ECHO_C" >&6
7520 else
7521   case $GZIP in
7522   [\\/]* | ?:[\\/]*)
7523   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7524   ;;
7525   *)
7526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH
7528 do
7529   IFS=$as_save_IFS
7530   test -z "$as_dir" && as_dir=.
7531   for ac_exec_ext in '' $ac_executable_extensions; do
7532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7533     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7535     break 2
7536   fi
7537 done
7538 done
7539 IFS=$as_save_IFS
7540
7541   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7542   ;;
7543 esac
7544 fi
7545 GZIP=$ac_cv_path_GZIP
7546 if test -n "$GZIP"; then
7547   { echo "$as_me:$LINENO: result: $GZIP" >&5
7548 echo "${ECHO_T}$GZIP" >&6; }
7549 else
7550   { echo "$as_me:$LINENO: result: no" >&5
7551 echo "${ECHO_T}no" >&6; }
7552 fi
7553
7554
7555 # Extract the first word of "pod2html", so it can be a program name with args.
7556 set dummy pod2html; ac_word=$2
7557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7559 if test "${ac_cv_path_POD2HTML+set}" = set; then
7560   echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562   case $POD2HTML in
7563   [\\/]* | ?:[\\/]*)
7564   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7565   ;;
7566   *)
7567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7569 do
7570   IFS=$as_save_IFS
7571   test -z "$as_dir" && as_dir=.
7572   for ac_exec_ext in '' $ac_executable_extensions; do
7573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7574     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7576     break 2
7577   fi
7578 done
7579 done
7580 IFS=$as_save_IFS
7581
7582   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7583   ;;
7584 esac
7585 fi
7586 POD2HTML=$ac_cv_path_POD2HTML
7587 if test -n "$POD2HTML"; then
7588   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7589 echo "${ECHO_T}$POD2HTML" >&6; }
7590 else
7591   { echo "$as_me:$LINENO: result: no" >&5
7592 echo "${ECHO_T}no" >&6; }
7593 fi
7594
7595
7596 # Extract the first word of "pod2man", so it can be a program name with args.
7597 set dummy pod2man; ac_word=$2
7598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7600 if test "${ac_cv_path_POD2MAN+set}" = set; then
7601   echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603   case $POD2MAN in
7604   [\\/]* | ?:[\\/]*)
7605   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7606   ;;
7607   *)
7608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 for as_dir in $PATH
7610 do
7611   IFS=$as_save_IFS
7612   test -z "$as_dir" && as_dir=.
7613   for ac_exec_ext in '' $ac_executable_extensions; do
7614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7615     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7617     break 2
7618   fi
7619 done
7620 done
7621 IFS=$as_save_IFS
7622
7623   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7624   ;;
7625 esac
7626 fi
7627 POD2MAN=$ac_cv_path_POD2MAN
7628 if test -n "$POD2MAN"; then
7629   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7630 echo "${ECHO_T}$POD2MAN" >&6; }
7631 else
7632   { echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6; }
7634 fi
7635
7636
7637 # Extract the first word of "runtest", so it can be a program name with args.
7638 set dummy runtest; ac_word=$2
7639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7641 if test "${ac_cv_path_RUNTEST+set}" = set; then
7642   echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644   case $RUNTEST in
7645   [\\/]* | ?:[\\/]*)
7646   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7647   ;;
7648   *)
7649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 for as_dir in $PATH
7651 do
7652   IFS=$as_save_IFS
7653   test -z "$as_dir" && as_dir=.
7654   for ac_exec_ext in '' $ac_executable_extensions; do
7655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7656     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7658     break 2
7659   fi
7660 done
7661 done
7662 IFS=$as_save_IFS
7663
7664   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7665   ;;
7666 esac
7667 fi
7668 RUNTEST=$ac_cv_path_RUNTEST
7669 if test -n "$RUNTEST"; then
7670   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7671 echo "${ECHO_T}$RUNTEST" >&6; }
7672 else
7673   { echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6; }
7675 fi
7676
7677
7678
7679 no_itcl=true
7680 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7681 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7682
7683 # Check whether --with-tclinclude was given.
7684 if test "${with_tclinclude+set}" = set; then
7685   withval=$with_tclinclude; with_tclinclude=${withval}
7686 else
7687   with_tclinclude=''
7688 fi
7689
7690 if test "${ac_cv_path_tclsh+set}" = set; then
7691   echo $ECHO_N "(cached) $ECHO_C" >&6
7692 else
7693
7694 if test x"${with_tclinclude}" != x ; then
7695   if test -f ${with_tclinclude}/tclsh ; then
7696     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7697   elif test -f ${with_tclinclude}/src/tclsh ; then
7698     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7699   else
7700     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7701 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7702    { (exit 1); exit 1; }; }
7703   fi
7704 fi
7705
7706 if test x"${ac_cv_path_tclsh}" = x ; then
7707   { echo "$as_me:$LINENO: result: none" >&5
7708 echo "${ECHO_T}none" >&6; }
7709   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
7710 do
7711   # Extract the first word of "$ac_prog", so it can be a program name with args.
7712 set dummy $ac_prog; ac_word=$2
7713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7715 if test "${ac_cv_path_TCLSH+set}" = set; then
7716   echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718   case $TCLSH in
7719   [\\/]* | ?:[\\/]*)
7720   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7721   ;;
7722   *)
7723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7725 do
7726   IFS=$as_save_IFS
7727   test -z "$as_dir" && as_dir=.
7728   for ac_exec_ext in '' $ac_executable_extensions; do
7729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7730     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7732     break 2
7733   fi
7734 done
7735 done
7736 IFS=$as_save_IFS
7737
7738   ;;
7739 esac
7740 fi
7741 TCLSH=$ac_cv_path_TCLSH
7742 if test -n "$TCLSH"; then
7743   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7744 echo "${ECHO_T}$TCLSH" >&6; }
7745 else
7746   { echo "$as_me:$LINENO: result: no" >&5
7747 echo "${ECHO_T}no" >&6; }
7748 fi
7749
7750
7751   test -n "$TCLSH" && break
7752 done
7753
7754   if test x"${TCLSH}" = x ; then
7755     ac_cv_path_tclsh='';
7756   else
7757     ac_cv_path_tclsh="${TCLSH}";
7758   fi
7759 else
7760   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7761 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7762   TCLSH="${ac_cv_path_tclsh}"
7763
7764 fi
7765
7766 fi
7767
7768 # Extract the first word of "zip", so it can be a program name with args.
7769 set dummy zip; ac_word=$2
7770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7772 if test "${ac_cv_path_ZIP+set}" = set; then
7773   echo $ECHO_N "(cached) $ECHO_C" >&6
7774 else
7775   case $ZIP in
7776   [\\/]* | ?:[\\/]*)
7777   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7778   ;;
7779   *)
7780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783   IFS=$as_save_IFS
7784   test -z "$as_dir" && as_dir=.
7785   for ac_exec_ext in '' $ac_executable_extensions; do
7786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7787     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789     break 2
7790   fi
7791 done
7792 done
7793 IFS=$as_save_IFS
7794
7795   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7796   ;;
7797 esac
7798 fi
7799 ZIP=$ac_cv_path_ZIP
7800 if test -n "$ZIP"; then
7801   { echo "$as_me:$LINENO: result: $ZIP" >&5
7802 echo "${ECHO_T}$ZIP" >&6; }
7803 else
7804   { echo "$as_me:$LINENO: result: no" >&5
7805 echo "${ECHO_T}no" >&6; }
7806 fi
7807
7808
7809
7810 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7811 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7812 if test "${llvm_cv_link_use_r+set}" = set; then
7813   echo $ECHO_N "(cached) $ECHO_C" >&6
7814 else
7815    ac_ext=c
7816 ac_cpp='$CPP $CPPFLAGS'
7817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820
7821   oldcflags="$CFLAGS"
7822   CFLAGS="$CFLAGS -Wl,-R."
7823   cat >conftest.$ac_ext <<_ACEOF
7824 /* confdefs.h.  */
7825 _ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h.  */
7829
7830 int
7831 main ()
7832 {
7833 int main() { return 0; }
7834   ;
7835   return 0;
7836 }
7837 _ACEOF
7838 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (ac_try="$ac_link"
7840 case "(($ac_try" in
7841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842   *) ac_try_echo=$ac_try;;
7843 esac
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845   (eval "$ac_link") 2>conftest.er1
7846   ac_status=$?
7847   grep -v '^ *+' conftest.er1 >conftest.err
7848   rm -f conftest.er1
7849   cat conftest.err >&5
7850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851   (exit $ac_status); } &&
7852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7853   { (case "(($ac_try" in
7854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855   *) ac_try_echo=$ac_try;;
7856 esac
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858   (eval "$ac_try") 2>&5
7859   ac_status=$?
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); }; } &&
7862          { ac_try='test -s conftest$ac_exeext'
7863   { (case "(($ac_try" in
7864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865   *) ac_try_echo=$ac_try;;
7866 esac
7867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7868   (eval "$ac_try") 2>&5
7869   ac_status=$?
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); }; }; then
7872   llvm_cv_link_use_r=yes
7873 else
7874   echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7876
7877         llvm_cv_link_use_r=no
7878 fi
7879
7880 rm -f core conftest.err conftest.$ac_objext \
7881       conftest$ac_exeext conftest.$ac_ext
7882   CFLAGS="$oldcflags"
7883   ac_ext=c
7884 ac_cpp='$CPP $CPPFLAGS'
7885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7888
7889
7890 fi
7891 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7892 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7893 if test "$llvm_cv_link_use_r" = yes ; then
7894
7895 cat >>confdefs.h <<\_ACEOF
7896 #define HAVE_LINK_R 1
7897 _ACEOF
7898
7899   fi
7900
7901
7902
7903
7904 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7905 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7906 if test "${ac_cv_c_const+set}" = set; then
7907   echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909   cat >conftest.$ac_ext <<_ACEOF
7910 /* confdefs.h.  */
7911 _ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h.  */
7915
7916 int
7917 main ()
7918 {
7919 /* FIXME: Include the comments suggested by Paul. */
7920 #ifndef __cplusplus
7921   /* Ultrix mips cc rejects this.  */
7922   typedef int charset[2];
7923   const charset x;
7924   /* SunOS 4.1.1 cc rejects this.  */
7925   char const *const *ccp;
7926   char **p;
7927   /* NEC SVR4.0.2 mips cc rejects this.  */
7928   struct point {int x, y;};
7929   static struct point const zero = {0,0};
7930   /* AIX XL C 1.02.0.0 rejects this.
7931      It does not let you subtract one const X* pointer from another in
7932      an arm of an if-expression whose if-part is not a constant
7933      expression */
7934   const char *g = "string";
7935   ccp = &g + (g ? g-g : 0);
7936   /* HPUX 7.0 cc rejects these. */
7937   ++ccp;
7938   p = (char**) ccp;
7939   ccp = (char const *const *) p;
7940   { /* SCO 3.2v4 cc rejects this.  */
7941     char *t;
7942     char const *s = 0 ? (char *) 0 : (char const *) 0;
7943
7944     *t++ = 0;
7945     if (s) return 0;
7946   }
7947   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7948     int x[] = {25, 17};
7949     const int *foo = &x[0];
7950     ++foo;
7951   }
7952   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7953     typedef const int *iptr;
7954     iptr p = 0;
7955     ++p;
7956   }
7957   { /* AIX XL C 1.02.0.0 rejects this saying
7958        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7959     struct s { int j; const int *ap[3]; };
7960     struct s *b; b->j = 5;
7961   }
7962   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7963     const int foo = 10;
7964     if (!foo) return 0;
7965   }
7966   return !x[0] && !zero.x;
7967 #endif
7968
7969   ;
7970   return 0;
7971 }
7972 _ACEOF
7973 rm -f conftest.$ac_objext
7974 if { (ac_try="$ac_compile"
7975 case "(($ac_try" in
7976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977   *) ac_try_echo=$ac_try;;
7978 esac
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980   (eval "$ac_compile") 2>conftest.er1
7981   ac_status=$?
7982   grep -v '^ *+' conftest.er1 >conftest.err
7983   rm -f conftest.er1
7984   cat conftest.err >&5
7985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986   (exit $ac_status); } &&
7987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7988   { (case "(($ac_try" in
7989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990   *) ac_try_echo=$ac_try;;
7991 esac
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993   (eval "$ac_try") 2>&5
7994   ac_status=$?
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); }; } &&
7997          { ac_try='test -s conftest.$ac_objext'
7998   { (case "(($ac_try" in
7999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000   *) ac_try_echo=$ac_try;;
8001 esac
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003   (eval "$ac_try") 2>&5
8004   ac_status=$?
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); }; }; then
8007   ac_cv_c_const=yes
8008 else
8009   echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8011
8012         ac_cv_c_const=no
8013 fi
8014
8015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8016 fi
8017 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8018 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8019 if test $ac_cv_c_const = no; then
8020
8021 cat >>confdefs.h <<\_ACEOF
8022 #define const
8023 _ACEOF
8024
8025 fi
8026
8027
8028
8029
8030
8031
8032 ac_header_dirent=no
8033 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8034   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8035 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8036 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8038   echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040   cat >conftest.$ac_ext <<_ACEOF
8041 /* confdefs.h.  */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h.  */
8046 #include <sys/types.h>
8047 #include <$ac_hdr>
8048
8049 int
8050 main ()
8051 {
8052 if ((DIR *) 0)
8053 return 0;
8054   ;
8055   return 0;
8056 }
8057 _ACEOF
8058 rm -f conftest.$ac_objext
8059 if { (ac_try="$ac_compile"
8060 case "(($ac_try" in
8061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062   *) ac_try_echo=$ac_try;;
8063 esac
8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065   (eval "$ac_compile") 2>conftest.er1
8066   ac_status=$?
8067   grep -v '^ *+' conftest.er1 >conftest.err
8068   rm -f conftest.er1
8069   cat conftest.err >&5
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); } &&
8072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8073   { (case "(($ac_try" in
8074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075   *) ac_try_echo=$ac_try;;
8076 esac
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078   (eval "$ac_try") 2>&5
8079   ac_status=$?
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); }; } &&
8082          { ac_try='test -s conftest.$ac_objext'
8083   { (case "(($ac_try" in
8084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085   *) ac_try_echo=$ac_try;;
8086 esac
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088   (eval "$ac_try") 2>&5
8089   ac_status=$?
8090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); }; }; then
8092   eval "$as_ac_Header=yes"
8093 else
8094   echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8096
8097         eval "$as_ac_Header=no"
8098 fi
8099
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 fi
8102 ac_res=`eval echo '${'$as_ac_Header'}'`
8103                { echo "$as_me:$LINENO: result: $ac_res" >&5
8104 echo "${ECHO_T}$ac_res" >&6; }
8105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8106   cat >>confdefs.h <<_ACEOF
8107 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8108 _ACEOF
8109
8110 ac_header_dirent=$ac_hdr; break
8111 fi
8112
8113 done
8114 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8115 if test $ac_header_dirent = dirent.h; then
8116   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8117 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8118 if test "${ac_cv_search_opendir+set}" = set; then
8119   echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121   ac_func_search_save_LIBS=$LIBS
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h.  */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h.  */
8128
8129 /* Override any GCC internal prototype to avoid an error.
8130    Use char because int might match the return type of a GCC
8131    builtin and then its argument prototype would still apply.  */
8132 #ifdef __cplusplus
8133 extern "C"
8134 #endif
8135 char opendir ();
8136 int
8137 main ()
8138 {
8139 return opendir ();
8140   ;
8141   return 0;
8142 }
8143 _ACEOF
8144 for ac_lib in '' dir; do
8145   if test -z "$ac_lib"; then
8146     ac_res="none required"
8147   else
8148     ac_res=-l$ac_lib
8149     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8150   fi
8151   rm -f conftest.$ac_objext conftest$ac_exeext
8152 if { (ac_try="$ac_link"
8153 case "(($ac_try" in
8154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155   *) ac_try_echo=$ac_try;;
8156 esac
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158   (eval "$ac_link") 2>conftest.er1
8159   ac_status=$?
8160   grep -v '^ *+' conftest.er1 >conftest.err
8161   rm -f conftest.er1
8162   cat conftest.err >&5
8163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164   (exit $ac_status); } &&
8165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8166   { (case "(($ac_try" in
8167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168   *) ac_try_echo=$ac_try;;
8169 esac
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171   (eval "$ac_try") 2>&5
8172   ac_status=$?
8173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174   (exit $ac_status); }; } &&
8175          { ac_try='test -s conftest$ac_exeext'
8176   { (case "(($ac_try" in
8177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178   *) ac_try_echo=$ac_try;;
8179 esac
8180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181   (eval "$ac_try") 2>&5
8182   ac_status=$?
8183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184   (exit $ac_status); }; }; then
8185   ac_cv_search_opendir=$ac_res
8186 else
8187   echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8189
8190
8191 fi
8192
8193 rm -f core conftest.err conftest.$ac_objext \
8194       conftest$ac_exeext
8195   if test "${ac_cv_search_opendir+set}" = set; then
8196   break
8197 fi
8198 done
8199 if test "${ac_cv_search_opendir+set}" = set; then
8200   :
8201 else
8202   ac_cv_search_opendir=no
8203 fi
8204 rm conftest.$ac_ext
8205 LIBS=$ac_func_search_save_LIBS
8206 fi
8207 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8208 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8209 ac_res=$ac_cv_search_opendir
8210 if test "$ac_res" != no; then
8211   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8212
8213 fi
8214
8215 else
8216   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8217 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8218 if test "${ac_cv_search_opendir+set}" = set; then
8219   echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221   ac_func_search_save_LIBS=$LIBS
8222 cat >conftest.$ac_ext <<_ACEOF
8223 /* confdefs.h.  */
8224 _ACEOF
8225 cat confdefs.h >>conftest.$ac_ext
8226 cat >>conftest.$ac_ext <<_ACEOF
8227 /* end confdefs.h.  */
8228
8229 /* Override any GCC internal prototype to avoid an error.
8230    Use char because int might match the return type of a GCC
8231    builtin and then its argument prototype would still apply.  */
8232 #ifdef __cplusplus
8233 extern "C"
8234 #endif
8235 char opendir ();
8236 int
8237 main ()
8238 {
8239 return opendir ();
8240   ;
8241   return 0;
8242 }
8243 _ACEOF
8244 for ac_lib in '' x; do
8245   if test -z "$ac_lib"; then
8246     ac_res="none required"
8247   else
8248     ac_res=-l$ac_lib
8249     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8250   fi
8251   rm -f conftest.$ac_objext conftest$ac_exeext
8252 if { (ac_try="$ac_link"
8253 case "(($ac_try" in
8254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255   *) ac_try_echo=$ac_try;;
8256 esac
8257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258   (eval "$ac_link") 2>conftest.er1
8259   ac_status=$?
8260   grep -v '^ *+' conftest.er1 >conftest.err
8261   rm -f conftest.er1
8262   cat conftest.err >&5
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); } &&
8265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8266   { (case "(($ac_try" in
8267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268   *) ac_try_echo=$ac_try;;
8269 esac
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271   (eval "$ac_try") 2>&5
8272   ac_status=$?
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); }; } &&
8275          { ac_try='test -s conftest$ac_exeext'
8276   { (case "(($ac_try" in
8277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278   *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281   (eval "$ac_try") 2>&5
8282   ac_status=$?
8283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284   (exit $ac_status); }; }; then
8285   ac_cv_search_opendir=$ac_res
8286 else
8287   echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8289
8290
8291 fi
8292
8293 rm -f core conftest.err conftest.$ac_objext \
8294       conftest$ac_exeext
8295   if test "${ac_cv_search_opendir+set}" = set; then
8296   break
8297 fi
8298 done
8299 if test "${ac_cv_search_opendir+set}" = set; then
8300   :
8301 else
8302   ac_cv_search_opendir=no
8303 fi
8304 rm conftest.$ac_ext
8305 LIBS=$ac_func_search_save_LIBS
8306 fi
8307 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8308 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8309 ac_res=$ac_cv_search_opendir
8310 if test "$ac_res" != no; then
8311   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8312
8313 fi
8314
8315 fi
8316
8317
8318 for ac_header in dlfcn.h
8319 do
8320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8322   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8325   echo $ECHO_N "(cached) $ECHO_C" >&6
8326 fi
8327 ac_res=`eval echo '${'$as_ac_Header'}'`
8328                { echo "$as_me:$LINENO: result: $ac_res" >&5
8329 echo "${ECHO_T}$ac_res" >&6; }
8330 else
8331   # Is the header compilable?
8332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8334 cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h.  */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h.  */
8340 $ac_includes_default
8341 #include <$ac_header>
8342 _ACEOF
8343 rm -f conftest.$ac_objext
8344 if { (ac_try="$ac_compile"
8345 case "(($ac_try" in
8346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347   *) ac_try_echo=$ac_try;;
8348 esac
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350   (eval "$ac_compile") 2>conftest.er1
8351   ac_status=$?
8352   grep -v '^ *+' conftest.er1 >conftest.err
8353   rm -f conftest.er1
8354   cat conftest.err >&5
8355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356   (exit $ac_status); } &&
8357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8358   { (case "(($ac_try" in
8359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360   *) ac_try_echo=$ac_try;;
8361 esac
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363   (eval "$ac_try") 2>&5
8364   ac_status=$?
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); }; } &&
8367          { ac_try='test -s conftest.$ac_objext'
8368   { (case "(($ac_try" in
8369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370   *) ac_try_echo=$ac_try;;
8371 esac
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373   (eval "$ac_try") 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); }; }; then
8377   ac_header_compiler=yes
8378 else
8379   echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382         ac_header_compiler=no
8383 fi
8384
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8387 echo "${ECHO_T}$ac_header_compiler" >&6; }
8388
8389 # Is the header present?
8390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8392 cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h.  */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h.  */
8398 #include <$ac_header>
8399 _ACEOF
8400 if { (ac_try="$ac_cpp conftest.$ac_ext"
8401 case "(($ac_try" in
8402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403   *) ac_try_echo=$ac_try;;
8404 esac
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8407   ac_status=$?
8408   grep -v '^ *+' conftest.er1 >conftest.err
8409   rm -f conftest.er1
8410   cat conftest.err >&5
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); } >/dev/null; then
8413   if test -s conftest.err; then
8414     ac_cpp_err=$ac_c_preproc_warn_flag
8415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8416   else
8417     ac_cpp_err=
8418   fi
8419 else
8420   ac_cpp_err=yes
8421 fi
8422 if test -z "$ac_cpp_err"; then
8423   ac_header_preproc=yes
8424 else
8425   echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8427
8428   ac_header_preproc=no
8429 fi
8430
8431 rm -f conftest.err conftest.$ac_ext
8432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8433 echo "${ECHO_T}$ac_header_preproc" >&6; }
8434
8435 # So?  What about this header?
8436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8437   yes:no: )
8438     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8442     ac_header_preproc=yes
8443     ;;
8444   no:yes:* )
8445     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8447     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8448 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8449     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8451     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8452 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8455     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8457     ( cat <<\_ASBOX
8458 ## ----------------------------------- ##
8459 ## Report this to llvmbugs@cs.uiuc.edu ##
8460 ## ----------------------------------- ##
8461 _ASBOX
8462      ) | sed "s/^/$as_me: WARNING:     /" >&2
8463     ;;
8464 esac
8465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8468   echo $ECHO_N "(cached) $ECHO_C" >&6
8469 else
8470   eval "$as_ac_Header=\$ac_header_preproc"
8471 fi
8472 ac_res=`eval echo '${'$as_ac_Header'}'`
8473                { echo "$as_me:$LINENO: result: $ac_res" >&5
8474 echo "${ECHO_T}$ac_res" >&6; }
8475
8476 fi
8477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8478   cat >>confdefs.h <<_ACEOF
8479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8480 _ACEOF
8481
8482 fi
8483
8484 done
8485
8486 # Check whether --enable-ltdl-install was given.
8487 if test "${enable_ltdl_install+set}" = set; then
8488   enableval=$enable_ltdl_install;
8489 fi
8490
8491
8492
8493
8494 if test x"${enable_ltdl_install-no}" != xno; then
8495   INSTALL_LTDL_TRUE=
8496   INSTALL_LTDL_FALSE='#'
8497 else
8498   INSTALL_LTDL_TRUE='#'
8499   INSTALL_LTDL_FALSE=
8500 fi
8501
8502
8503
8504 if test x"${enable_ltdl_convenience-no}" != xno; then
8505   CONVENIENCE_LTDL_TRUE=
8506   CONVENIENCE_LTDL_FALSE='#'
8507 else
8508   CONVENIENCE_LTDL_TRUE='#'
8509   CONVENIENCE_LTDL_FALSE=
8510 fi
8511
8512
8513 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8514 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8515 library_names_spec=
8516 libname_spec='lib$name'
8517 soname_spec=
8518 shrext_cmds=".so"
8519 postinstall_cmds=
8520 postuninstall_cmds=
8521 finish_cmds=
8522 finish_eval=
8523 shlibpath_var=
8524 shlibpath_overrides_runpath=unknown
8525 version_type=none
8526 dynamic_linker="$host_os ld.so"
8527 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8528 if test "$GCC" = yes; then
8529   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8530   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8531     # if the path contains ";" then we assume it to be the separator
8532     # otherwise default to the standard path separator (i.e. ":") - it is
8533     # assumed that no part of a normal pathname contains ";" but that should
8534     # okay in the real world where ";" in dirpaths is itself problematic.
8535     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8536   else
8537     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8538   fi
8539 else
8540   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8541 fi
8542 need_lib_prefix=unknown
8543 hardcode_into_libs=no
8544
8545 # when you set need_version to no, make sure it does not cause -set_version
8546 # flags to be left without arguments
8547 need_version=unknown
8548
8549 case $host_os in
8550 aix3*)
8551   version_type=linux
8552   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8553   shlibpath_var=LIBPATH
8554
8555   # AIX 3 has no versioning support, so we append a major version to the name.
8556   soname_spec='${libname}${release}${shared_ext}$major'
8557   ;;
8558
8559 aix4* | aix5*)
8560   version_type=linux
8561   need_lib_prefix=no
8562   need_version=no
8563   hardcode_into_libs=yes
8564   if test "$host_cpu" = ia64; then
8565     # AIX 5 supports IA64
8566     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8567     shlibpath_var=LD_LIBRARY_PATH
8568   else
8569     # With GCC up to 2.95.x, collect2 would create an import file
8570     # for dependence libraries.  The import file would start with
8571     # the line `#! .'.  This would cause the generated library to
8572     # depend on `.', always an invalid library.  This was fixed in
8573     # development snapshots of GCC prior to 3.0.
8574     case $host_os in
8575       aix4 | aix4.[01] | aix4.[01].*)
8576       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8577            echo ' yes '
8578            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8579         :
8580       else
8581         can_build_shared=no
8582       fi
8583       ;;
8584     esac
8585     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8586     # soname into executable. Probably we can add versioning support to
8587     # collect2, so additional links can be useful in future.
8588     if test "$aix_use_runtimelinking" = yes; then
8589       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8590       # instead of lib<name>.a to let people know that these are not
8591       # typical AIX shared libraries.
8592       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8593     else
8594       # We preserve .a as extension for shared libraries through AIX4.2
8595       # and later when we are not doing run time linking.
8596       library_names_spec='${libname}${release}.a $libname.a'
8597       soname_spec='${libname}${release}${shared_ext}$major'
8598     fi
8599     shlibpath_var=LIBPATH
8600   fi
8601   ;;
8602
8603 amigaos*)
8604   library_names_spec='$libname.ixlibrary $libname.a'
8605   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8606   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'
8607   ;;
8608
8609 beos*)
8610   library_names_spec='${libname}${shared_ext}'
8611   dynamic_linker="$host_os ld.so"
8612   shlibpath_var=LIBRARY_PATH
8613   ;;
8614
8615 bsdi[45]*)
8616   version_type=linux
8617   need_version=no
8618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8619   soname_spec='${libname}${release}${shared_ext}$major'
8620   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8621   shlibpath_var=LD_LIBRARY_PATH
8622   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8623   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8624   # the default ld.so.conf also contains /usr/contrib/lib and
8625   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8626   # libtool to hard-code these into programs
8627   ;;
8628
8629 cygwin* | mingw* | pw32*)
8630   version_type=windows
8631   shrext_cmds=".dll"
8632   need_version=no
8633   need_lib_prefix=no
8634
8635   case $GCC,$host_os in
8636   yes,cygwin* | yes,mingw* | yes,pw32*)
8637     library_names_spec='$libname.dll.a'
8638     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8639     postinstall_cmds='base_file=`basename \${file}`~
8640       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8641       dldir=$destdir/`dirname \$dlpath`~
8642       test -d \$dldir || mkdir -p \$dldir~
8643       $install_prog $dir/$dlname \$dldir/$dlname~
8644       chmod a+x \$dldir/$dlname'
8645     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8646       dlpath=$dir/\$dldll~
8647        $rm \$dlpath'
8648     shlibpath_overrides_runpath=yes
8649
8650     case $host_os in
8651     cygwin*)
8652       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8653       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8654       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8655       ;;
8656     mingw*)
8657       # MinGW DLLs use traditional 'lib' prefix
8658       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8659       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8660       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8661         # It is most probably a Windows format PATH printed by
8662         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8663         # path with ; separators, and with drive letters. We can handle the
8664         # drive letters (cygwin fileutils understands them), so leave them,
8665         # especially as we might pass files found there to a mingw objdump,
8666         # which wouldn't understand a cygwinified path. Ahh.
8667         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8668       else
8669         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8670       fi
8671       ;;
8672     pw32*)
8673       # pw32 DLLs use 'pw' prefix rather than 'lib'
8674       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8675       ;;
8676     esac
8677     ;;
8678
8679   *)
8680     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8681     ;;
8682   esac
8683   dynamic_linker='Win32 ld.exe'
8684   # FIXME: first we should search . and the directory the executable is in
8685   shlibpath_var=PATH
8686   ;;
8687
8688 darwin* | rhapsody*)
8689   dynamic_linker="$host_os dyld"
8690   version_type=darwin
8691   need_lib_prefix=no
8692   need_version=no
8693   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8694   soname_spec='${libname}${release}${major}$shared_ext'
8695   shlibpath_overrides_runpath=yes
8696   shlibpath_var=DYLD_LIBRARY_PATH
8697   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8698   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8699   if test "$GCC" = yes; then
8700     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"`
8701   else
8702     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8703   fi
8704   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8705   ;;
8706
8707 dgux*)
8708   version_type=linux
8709   need_lib_prefix=no
8710   need_version=no
8711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8712   soname_spec='${libname}${release}${shared_ext}$major'
8713   shlibpath_var=LD_LIBRARY_PATH
8714   ;;
8715
8716 freebsd1*)
8717   dynamic_linker=no
8718   ;;
8719
8720 kfreebsd*-gnu)
8721   version_type=linux
8722   need_lib_prefix=no
8723   need_version=no
8724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8725   soname_spec='${libname}${release}${shared_ext}$major'
8726   shlibpath_var=LD_LIBRARY_PATH
8727   shlibpath_overrides_runpath=no
8728   hardcode_into_libs=yes
8729   dynamic_linker='GNU ld.so'
8730   ;;
8731
8732 freebsd* | dragonfly*)
8733   # DragonFly does not have aout.  When/if they implement a new
8734   # versioning mechanism, adjust this.
8735   if test -x /usr/bin/objformat; then
8736     objformat=`/usr/bin/objformat`
8737   else
8738     case $host_os in
8739     freebsd[123]*) objformat=aout ;;
8740     *) objformat=elf ;;
8741     esac
8742   fi
8743   version_type=freebsd-$objformat
8744   case $version_type in
8745     freebsd-elf*)
8746       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8747       need_version=no
8748       need_lib_prefix=no
8749       ;;
8750     freebsd-*)
8751       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8752       need_version=yes
8753       ;;
8754   esac
8755   shlibpath_var=LD_LIBRARY_PATH
8756   case $host_os in
8757   freebsd2*)
8758     shlibpath_overrides_runpath=yes
8759     ;;
8760   freebsd3.[01]* | freebsdelf3.[01]*)
8761     shlibpath_overrides_runpath=yes
8762     hardcode_into_libs=yes
8763     ;;
8764   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8765   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8766     shlibpath_overrides_runpath=no
8767     hardcode_into_libs=yes
8768     ;;
8769   freebsd*) # from 4.6 on
8770     shlibpath_overrides_runpath=yes
8771     hardcode_into_libs=yes
8772     ;;
8773   esac
8774   ;;
8775
8776 gnu*)
8777   version_type=linux
8778   need_lib_prefix=no
8779   need_version=no
8780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8781   soname_spec='${libname}${release}${shared_ext}$major'
8782   shlibpath_var=LD_LIBRARY_PATH
8783   hardcode_into_libs=yes
8784   ;;
8785
8786 hpux9* | hpux10* | hpux11*)
8787   # Give a soname corresponding to the major version so that dld.sl refuses to
8788   # link against other versions.
8789   version_type=sunos
8790   need_lib_prefix=no
8791   need_version=no
8792   case $host_cpu in
8793   ia64*)
8794     shrext_cmds='.so'
8795     hardcode_into_libs=yes
8796     dynamic_linker="$host_os dld.so"
8797     shlibpath_var=LD_LIBRARY_PATH
8798     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8799     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8800     soname_spec='${libname}${release}${shared_ext}$major'
8801     if test "X$HPUX_IA64_MODE" = X32; then
8802       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8803     else
8804       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8805     fi
8806     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8807     ;;
8808    hppa*64*)
8809      shrext_cmds='.sl'
8810      hardcode_into_libs=yes
8811      dynamic_linker="$host_os dld.sl"
8812      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8813      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8814      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8815      soname_spec='${libname}${release}${shared_ext}$major'
8816      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8817      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8818      ;;
8819    *)
8820     shrext_cmds='.sl'
8821     dynamic_linker="$host_os dld.sl"
8822     shlibpath_var=SHLIB_PATH
8823     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8824     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825     soname_spec='${libname}${release}${shared_ext}$major'
8826     ;;
8827   esac
8828   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8829   postinstall_cmds='chmod 555 $lib'
8830   ;;
8831
8832 interix3*)
8833   version_type=linux
8834   need_lib_prefix=no
8835   need_version=no
8836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8837   soname_spec='${libname}${release}${shared_ext}$major'
8838   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8839   shlibpath_var=LD_LIBRARY_PATH
8840   shlibpath_overrides_runpath=no
8841   hardcode_into_libs=yes
8842   ;;
8843
8844 irix5* | irix6* | nonstopux*)
8845   case $host_os in
8846     nonstopux*) version_type=nonstopux ;;
8847     *)
8848         if test "$lt_cv_prog_gnu_ld" = yes; then
8849                 version_type=linux
8850         else
8851                 version_type=irix
8852         fi ;;
8853   esac
8854   need_lib_prefix=no
8855   need_version=no
8856   soname_spec='${libname}${release}${shared_ext}$major'
8857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8858   case $host_os in
8859   irix5* | nonstopux*)
8860     libsuff= shlibsuff=
8861     ;;
8862   *)
8863     case $LD in # libtool.m4 will add one of these switches to LD
8864     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8865       libsuff= shlibsuff= libmagic=32-bit;;
8866     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8867       libsuff=32 shlibsuff=N32 libmagic=N32;;
8868     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8869       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8870     *) libsuff= shlibsuff= libmagic=never-match;;
8871     esac
8872     ;;
8873   esac
8874   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8875   shlibpath_overrides_runpath=no
8876   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8877   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8878   hardcode_into_libs=yes
8879   ;;
8880
8881 # No shared lib support for Linux oldld, aout, or coff.
8882 linux*oldld* | linux*aout* | linux*coff*)
8883   dynamic_linker=no
8884   ;;
8885
8886 # This must be Linux ELF.
8887 linux*)
8888   version_type=linux
8889   need_lib_prefix=no
8890   need_version=no
8891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8892   soname_spec='${libname}${release}${shared_ext}$major'
8893   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8894   shlibpath_var=LD_LIBRARY_PATH
8895   shlibpath_overrides_runpath=no
8896   # This implies no fast_install, which is unacceptable.
8897   # Some rework will be needed to allow for fast_install
8898   # before this can be enabled.
8899   hardcode_into_libs=yes
8900
8901   # Append ld.so.conf contents to the search path
8902   if test -f /etc/ld.so.conf; then
8903     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' ' '`
8904     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8905   fi
8906
8907   # We used to test for /lib/ld.so.1 and disable shared libraries on
8908   # powerpc, because MkLinux only supported shared libraries with the
8909   # GNU dynamic linker.  Since this was broken with cross compilers,
8910   # most powerpc-linux boxes support dynamic linking these days and
8911   # people can always --disable-shared, the test was removed, and we
8912   # assume the GNU/Linux dynamic linker is in use.
8913   dynamic_linker='GNU/Linux ld.so'
8914   ;;
8915
8916 knetbsd*-gnu)
8917   version_type=linux
8918   need_lib_prefix=no
8919   need_version=no
8920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8921   soname_spec='${libname}${release}${shared_ext}$major'
8922   shlibpath_var=LD_LIBRARY_PATH
8923   shlibpath_overrides_runpath=no
8924   hardcode_into_libs=yes
8925   dynamic_linker='GNU ld.so'
8926   ;;
8927
8928 netbsd*)
8929   version_type=sunos
8930   need_lib_prefix=no
8931   need_version=no
8932   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8933     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8934     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8935     dynamic_linker='NetBSD (a.out) ld.so'
8936   else
8937     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8938     soname_spec='${libname}${release}${shared_ext}$major'
8939     dynamic_linker='NetBSD ld.elf_so'
8940   fi
8941   shlibpath_var=LD_LIBRARY_PATH
8942   shlibpath_overrides_runpath=yes
8943   hardcode_into_libs=yes
8944   ;;
8945
8946 newsos6)
8947   version_type=linux
8948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949   shlibpath_var=LD_LIBRARY_PATH
8950   shlibpath_overrides_runpath=yes
8951   ;;
8952
8953 nto-qnx*)
8954   version_type=linux
8955   need_lib_prefix=no
8956   need_version=no
8957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958   soname_spec='${libname}${release}${shared_ext}$major'
8959   shlibpath_var=LD_LIBRARY_PATH
8960   shlibpath_overrides_runpath=yes
8961   ;;
8962
8963 openbsd*)
8964   version_type=sunos
8965   sys_lib_dlsearch_path_spec="/usr/lib"
8966   need_lib_prefix=no
8967   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8968   case $host_os in
8969     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8970     *)                         need_version=no  ;;
8971   esac
8972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8973   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8974   shlibpath_var=LD_LIBRARY_PATH
8975   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8976     case $host_os in
8977       openbsd2.[89] | openbsd2.[89].*)
8978         shlibpath_overrides_runpath=no
8979         ;;
8980       *)
8981         shlibpath_overrides_runpath=yes
8982         ;;
8983       esac
8984   else
8985     shlibpath_overrides_runpath=yes
8986   fi
8987   ;;
8988
8989 os2*)
8990   libname_spec='$name'
8991   shrext_cmds=".dll"
8992   need_lib_prefix=no
8993   library_names_spec='$libname${shared_ext} $libname.a'
8994   dynamic_linker='OS/2 ld.exe'
8995   shlibpath_var=LIBPATH
8996   ;;
8997
8998 osf3* | osf4* | osf5*)
8999   version_type=osf
9000   need_lib_prefix=no
9001   need_version=no
9002   soname_spec='${libname}${release}${shared_ext}$major'
9003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9004   shlibpath_var=LD_LIBRARY_PATH
9005   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9006   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9007   ;;
9008
9009 solaris*)
9010   version_type=linux
9011   need_lib_prefix=no
9012   need_version=no
9013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9014   soname_spec='${libname}${release}${shared_ext}$major'
9015   shlibpath_var=LD_LIBRARY_PATH
9016   shlibpath_overrides_runpath=yes
9017   hardcode_into_libs=yes
9018   # ldd complains unless libraries are executable
9019   postinstall_cmds='chmod +x $lib'
9020   ;;
9021
9022 sunos4*)
9023   version_type=sunos
9024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9025   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9026   shlibpath_var=LD_LIBRARY_PATH
9027   shlibpath_overrides_runpath=yes
9028   if test "$with_gnu_ld" = yes; then
9029     need_lib_prefix=no
9030   fi
9031   need_version=yes
9032   ;;
9033
9034 sysv4 | sysv4.3*)
9035   version_type=linux
9036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037   soname_spec='${libname}${release}${shared_ext}$major'
9038   shlibpath_var=LD_LIBRARY_PATH
9039   case $host_vendor in
9040     sni)
9041       shlibpath_overrides_runpath=no
9042       need_lib_prefix=no
9043       export_dynamic_flag_spec='${wl}-Blargedynsym'
9044       runpath_var=LD_RUN_PATH
9045       ;;
9046     siemens)
9047       need_lib_prefix=no
9048       ;;
9049     motorola)
9050       need_lib_prefix=no
9051       need_version=no
9052       shlibpath_overrides_runpath=no
9053       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9054       ;;
9055   esac
9056   ;;
9057
9058 sysv4*MP*)
9059   if test -d /usr/nec ;then
9060     version_type=linux
9061     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9062     soname_spec='$libname${shared_ext}.$major'
9063     shlibpath_var=LD_LIBRARY_PATH
9064   fi
9065   ;;
9066
9067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9068   version_type=freebsd-elf
9069   need_lib_prefix=no
9070   need_version=no
9071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9072   soname_spec='${libname}${release}${shared_ext}$major'
9073   shlibpath_var=LD_LIBRARY_PATH
9074   hardcode_into_libs=yes
9075   if test "$with_gnu_ld" = yes; then
9076     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9077     shlibpath_overrides_runpath=no
9078   else
9079     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9080     shlibpath_overrides_runpath=yes
9081     case $host_os in
9082       sco3.2v5*)
9083         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9084         ;;
9085     esac
9086   fi
9087   sys_lib_dlsearch_path_spec='/usr/lib'
9088   ;;
9089
9090 uts4*)
9091   version_type=linux
9092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093   soname_spec='${libname}${release}${shared_ext}$major'
9094   shlibpath_var=LD_LIBRARY_PATH
9095   ;;
9096
9097 *)
9098   dynamic_linker=no
9099   ;;
9100 esac
9101 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9102 echo "${ECHO_T}$dynamic_linker" >&6; }
9103 test "$dynamic_linker" = no && can_build_shared=no
9104
9105 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9106 if test "$GCC" = yes; then
9107   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9108 fi
9109
9110
9111 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9112 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9113 if test "${libltdl_cv_shlibext+set}" = set; then
9114   echo $ECHO_N "(cached) $ECHO_C" >&6
9115 else
9116
9117 module=yes
9118 eval libltdl_cv_shlibext=$shrext_cmds
9119
9120 fi
9121 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9122 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9123 if test -n "$libltdl_cv_shlibext"; then
9124
9125 cat >>confdefs.h <<_ACEOF
9126 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9127 _ACEOF
9128
9129 fi
9130
9131
9132 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9133 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9134 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9135   echo $ECHO_N "(cached) $ECHO_C" >&6
9136 else
9137   libltdl_cv_shlibpath_var="$shlibpath_var"
9138 fi
9139 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9140 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9141 if test -n "$libltdl_cv_shlibpath_var"; then
9142
9143 cat >>confdefs.h <<_ACEOF
9144 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9145 _ACEOF
9146
9147 fi
9148
9149
9150 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9151 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9152 if test "${libltdl_cv_sys_search_path+set}" = set; then
9153   echo $ECHO_N "(cached) $ECHO_C" >&6
9154 else
9155   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9156 fi
9157 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9158 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9159 if test -n "$libltdl_cv_sys_search_path"; then
9160   sys_search_path=
9161   for dir in $libltdl_cv_sys_search_path; do
9162     if test -z "$sys_search_path"; then
9163       sys_search_path="$dir"
9164     else
9165       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9166     fi
9167   done
9168
9169 cat >>confdefs.h <<_ACEOF
9170 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9171 _ACEOF
9172
9173 fi
9174
9175 { echo "$as_me:$LINENO: checking for objdir" >&5
9176 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9177 if test "${libltdl_cv_objdir+set}" = set; then
9178   echo $ECHO_N "(cached) $ECHO_C" >&6
9179 else
9180   libltdl_cv_objdir="$objdir"
9181   if test -n "$objdir"; then
9182     :
9183   else
9184     rm -f .libs 2>/dev/null
9185     mkdir .libs 2>/dev/null
9186     if test -d .libs; then
9187       libltdl_cv_objdir=.libs
9188     else
9189       # MS-DOS does not allow filenames that begin with a dot.
9190       libltdl_cv_objdir=_libs
9191     fi
9192   rmdir .libs 2>/dev/null
9193   fi
9194
9195 fi
9196 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9197 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9198
9199 cat >>confdefs.h <<_ACEOF
9200 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9201 _ACEOF
9202
9203
9204
9205
9206
9207
9208 # Check for command to grab the raw symbol name followed by C symbol from nm.
9209 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9210 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9211 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9212   echo $ECHO_N "(cached) $ECHO_C" >&6
9213 else
9214
9215 # These are sane defaults that work on at least a few old systems.
9216 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9217
9218 # Character class describing NM global symbol codes.
9219 symcode='[BCDEGRST]'
9220
9221 # Regexp to match symbols that can be accessed directly from C.
9222 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9223
9224 # Transform an extracted symbol line into a proper C declaration
9225 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9226
9227 # Transform an extracted symbol line into symbol name and symbol address
9228 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'"
9229
9230 # Define system-specific variables.
9231 case $host_os in
9232 aix*)
9233   symcode='[BCDT]'
9234   ;;
9235 cygwin* | mingw* | pw32*)
9236   symcode='[ABCDGISTW]'
9237   ;;
9238 hpux*) # Its linker distinguishes data from code symbols
9239   if test "$host_cpu" = ia64; then
9240     symcode='[ABCDEGRST]'
9241   fi
9242   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9243   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'"
9244   ;;
9245 linux*)
9246   if test "$host_cpu" = ia64; then
9247     symcode='[ABCDGIRSTW]'
9248     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9249     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'"
9250   fi
9251   ;;
9252 irix* | nonstopux*)
9253   symcode='[BCDEGRST]'
9254   ;;
9255 osf*)
9256   symcode='[BCDEGQRST]'
9257   ;;
9258 solaris*)
9259   symcode='[BDRT]'
9260   ;;
9261 sco3.2v5*)
9262   symcode='[DT]'
9263   ;;
9264 sysv4.2uw2*)
9265   symcode='[DT]'
9266   ;;
9267 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9268   symcode='[ABDT]'
9269   ;;
9270 sysv4)
9271   symcode='[DFNSTU]'
9272   ;;
9273 esac
9274
9275 # Handle CRLF in mingw tool chain
9276 opt_cr=
9277 case $build_os in
9278 mingw*)
9279   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9280   ;;
9281 esac
9282
9283 # If we're using GNU nm, then use its standard symbol codes.
9284 case `$NM -V 2>&1` in
9285 *GNU* | *'with BFD'*)
9286   symcode='[ABCDGIRSTW]' ;;
9287 esac
9288
9289 # Try without a prefix undercore, then with it.
9290 for ac_symprfx in "" "_"; do
9291
9292   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9293   symxfrm="\\1 $ac_symprfx\\2 \\2"
9294
9295   # Write the raw and C identifiers.
9296   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9297
9298   # Check to see that the pipe works correctly.
9299   pipe_works=no
9300
9301   rm -f conftest*
9302   cat > conftest.$ac_ext <<EOF
9303 #ifdef __cplusplus
9304 extern "C" {
9305 #endif
9306 char nm_test_var;
9307 void nm_test_func(){}
9308 #ifdef __cplusplus
9309 }
9310 #endif
9311 int main(){nm_test_var='a';nm_test_func();return(0);}
9312 EOF
9313
9314   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9315   (eval $ac_compile) 2>&5
9316   ac_status=$?
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); }; then
9319     # Now try to grab the symbols.
9320     nlist=conftest.nm
9321     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9322   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9323   ac_status=$?
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); } && test -s "$nlist"; then
9326       # Try sorting and uniquifying the output.
9327       if sort "$nlist" | uniq > "$nlist"T; then
9328         mv -f "$nlist"T "$nlist"
9329       else
9330         rm -f "$nlist"T
9331       fi
9332
9333       # Make sure that we snagged all the symbols we need.
9334       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9335         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9336           cat <<EOF > conftest.$ac_ext
9337 #ifdef __cplusplus
9338 extern "C" {
9339 #endif
9340
9341 EOF
9342           # Now generate the symbol file.
9343           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9344
9345           cat <<EOF >> conftest.$ac_ext
9346 #if defined (__STDC__) && __STDC__
9347 # define lt_ptr_t void *
9348 #else
9349 # define lt_ptr_t char *
9350 # define const
9351 #endif
9352
9353 /* The mapping between symbol names and symbols. */
9354 const struct {
9355   const char *name;
9356   lt_ptr_t address;
9357 }
9358 lt_preloaded_symbols[] =
9359 {
9360 EOF
9361           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9362           cat <<\EOF >> conftest.$ac_ext
9363   {0, (lt_ptr_t) 0}
9364 };
9365
9366 #ifdef __cplusplus
9367 }
9368 #endif
9369 EOF
9370           # Now try linking the two files.
9371           mv conftest.$ac_objext conftstm.$ac_objext
9372           lt_save_LIBS="$LIBS"
9373           lt_save_CFLAGS="$CFLAGS"
9374           LIBS="conftstm.$ac_objext"
9375           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9376           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9377   (eval $ac_link) 2>&5
9378   ac_status=$?
9379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9381             pipe_works=yes
9382           fi
9383           LIBS="$lt_save_LIBS"
9384           CFLAGS="$lt_save_CFLAGS"
9385         else
9386           echo "cannot find nm_test_func in $nlist" >&5
9387         fi
9388       else
9389         echo "cannot find nm_test_var in $nlist" >&5
9390       fi
9391     else
9392       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9393     fi
9394   else
9395     echo "$progname: failed program was:" >&5
9396     cat conftest.$ac_ext >&5
9397   fi
9398   rm -f conftest* conftst*
9399
9400   # Do not use the global_symbol_pipe unless it works.
9401   if test "$pipe_works" = yes; then
9402     break
9403   else
9404     lt_cv_sys_global_symbol_pipe=
9405   fi
9406 done
9407
9408 fi
9409
9410 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9411   lt_cv_sys_global_symbol_to_cdecl=
9412 fi
9413 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9414   { echo "$as_me:$LINENO: result: failed" >&5
9415 echo "${ECHO_T}failed" >&6; }
9416 else
9417   { echo "$as_me:$LINENO: result: ok" >&5
9418 echo "${ECHO_T}ok" >&6; }
9419 fi
9420
9421
9422 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9423 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9424 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9425   echo $ECHO_N "(cached) $ECHO_C" >&6
9426 else
9427   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9428     libltdl_cv_preloaded_symbols=yes
9429   else
9430     libltdl_cv_preloaded_symbols=no
9431   fi
9432
9433 fi
9434 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9435 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9436 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9437
9438 cat >>confdefs.h <<\_ACEOF
9439 #define HAVE_PRELOADED_SYMBOLS 1
9440 _ACEOF
9441
9442 fi
9443
9444 LIBADD_DL=
9445
9446 ac_ext=c
9447 ac_cpp='$CPP $CPPFLAGS'
9448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9451
9452
9453 { echo "$as_me:$LINENO: checking for shl_load" >&5
9454 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9455 if test "${ac_cv_func_shl_load+set}" = set; then
9456   echo $ECHO_N "(cached) $ECHO_C" >&6
9457 else
9458   cat >conftest.$ac_ext <<_ACEOF
9459 /* confdefs.h.  */
9460 _ACEOF
9461 cat confdefs.h >>conftest.$ac_ext
9462 cat >>conftest.$ac_ext <<_ACEOF
9463 /* end confdefs.h.  */
9464 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9465    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9466 #define shl_load innocuous_shl_load
9467
9468 /* System header to define __stub macros and hopefully few prototypes,
9469     which can conflict with char shl_load (); below.
9470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9471     <limits.h> exists even on freestanding compilers.  */
9472
9473 #ifdef __STDC__
9474 # include <limits.h>
9475 #else
9476 # include <assert.h>
9477 #endif
9478
9479 #undef shl_load
9480
9481 /* Override any GCC internal prototype to avoid an error.
9482    Use char because int might match the return type of a GCC
9483    builtin and then its argument prototype would still apply.  */
9484 #ifdef __cplusplus
9485 extern "C"
9486 #endif
9487 char shl_load ();
9488 /* The GNU C library defines this for functions which it implements
9489     to always fail with ENOSYS.  Some functions are actually named
9490     something starting with __ and the normal name is an alias.  */
9491 #if defined __stub_shl_load || defined __stub___shl_load
9492 choke me
9493 #endif
9494
9495 int
9496 main ()
9497 {
9498 return shl_load ();
9499   ;
9500   return 0;
9501 }
9502 _ACEOF
9503 rm -f conftest.$ac_objext conftest$ac_exeext
9504 if { (ac_try="$ac_link"
9505 case "(($ac_try" in
9506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507   *) ac_try_echo=$ac_try;;
9508 esac
9509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510   (eval "$ac_link") 2>conftest.er1
9511   ac_status=$?
9512   grep -v '^ *+' conftest.er1 >conftest.err
9513   rm -f conftest.er1
9514   cat conftest.err >&5
9515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516   (exit $ac_status); } &&
9517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9518   { (case "(($ac_try" in
9519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9520   *) ac_try_echo=$ac_try;;
9521 esac
9522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523   (eval "$ac_try") 2>&5
9524   ac_status=$?
9525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526   (exit $ac_status); }; } &&
9527          { ac_try='test -s conftest$ac_exeext'
9528   { (case "(($ac_try" in
9529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530   *) ac_try_echo=$ac_try;;
9531 esac
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533   (eval "$ac_try") 2>&5
9534   ac_status=$?
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); }; }; then
9537   ac_cv_func_shl_load=yes
9538 else
9539   echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9541
9542         ac_cv_func_shl_load=no
9543 fi
9544
9545 rm -f core conftest.err conftest.$ac_objext \
9546       conftest$ac_exeext conftest.$ac_ext
9547 fi
9548 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9549 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9550 if test $ac_cv_func_shl_load = yes; then
9551
9552 cat >>confdefs.h <<\_ACEOF
9553 #define HAVE_SHL_LOAD 1
9554 _ACEOF
9555
9556 else
9557   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9558 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9559 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9560   echo $ECHO_N "(cached) $ECHO_C" >&6
9561 else
9562   ac_check_lib_save_LIBS=$LIBS
9563 LIBS="-ldld  $LIBS"
9564 cat >conftest.$ac_ext <<_ACEOF
9565 /* confdefs.h.  */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h.  */
9570
9571 /* Override any GCC internal prototype to avoid an error.
9572    Use char because int might match the return type of a GCC
9573    builtin and then its argument prototype would still apply.  */
9574 #ifdef __cplusplus
9575 extern "C"
9576 #endif
9577 char shl_load ();
9578 int
9579 main ()
9580 {
9581 return shl_load ();
9582   ;
9583   return 0;
9584 }
9585 _ACEOF
9586 rm -f conftest.$ac_objext conftest$ac_exeext
9587 if { (ac_try="$ac_link"
9588 case "(($ac_try" in
9589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590   *) ac_try_echo=$ac_try;;
9591 esac
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593   (eval "$ac_link") 2>conftest.er1
9594   ac_status=$?
9595   grep -v '^ *+' conftest.er1 >conftest.err
9596   rm -f conftest.er1
9597   cat conftest.err >&5
9598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599   (exit $ac_status); } &&
9600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9601   { (case "(($ac_try" in
9602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603   *) ac_try_echo=$ac_try;;
9604 esac
9605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9606   (eval "$ac_try") 2>&5
9607   ac_status=$?
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   (exit $ac_status); }; } &&
9610          { ac_try='test -s conftest$ac_exeext'
9611   { (case "(($ac_try" in
9612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613   *) ac_try_echo=$ac_try;;
9614 esac
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616   (eval "$ac_try") 2>&5
9617   ac_status=$?
9618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619   (exit $ac_status); }; }; then
9620   ac_cv_lib_dld_shl_load=yes
9621 else
9622   echo "$as_me: failed program was:" >&5
9623 sed 's/^/| /' conftest.$ac_ext >&5
9624
9625         ac_cv_lib_dld_shl_load=no
9626 fi
9627
9628 rm -f core conftest.err conftest.$ac_objext \
9629       conftest$ac_exeext conftest.$ac_ext
9630 LIBS=$ac_check_lib_save_LIBS
9631 fi
9632 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9633 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9634 if test $ac_cv_lib_dld_shl_load = yes; then
9635
9636 cat >>confdefs.h <<\_ACEOF
9637 #define HAVE_SHL_LOAD 1
9638 _ACEOF
9639
9640         LIBADD_DL="$LIBADD_DL -ldld"
9641 else
9642   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9643 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9644 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9645   echo $ECHO_N "(cached) $ECHO_C" >&6
9646 else
9647   ac_check_lib_save_LIBS=$LIBS
9648 LIBS="-ldl  $LIBS"
9649 cat >conftest.$ac_ext <<_ACEOF
9650 /* confdefs.h.  */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h.  */
9655
9656 /* Override any GCC internal prototype to avoid an error.
9657    Use char because int might match the return type of a GCC
9658    builtin and then its argument prototype would still apply.  */
9659 #ifdef __cplusplus
9660 extern "C"
9661 #endif
9662 char dlopen ();
9663 int
9664 main ()
9665 {
9666 return dlopen ();
9667   ;
9668   return 0;
9669 }
9670 _ACEOF
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (ac_try="$ac_link"
9673 case "(($ac_try" in
9674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675   *) ac_try_echo=$ac_try;;
9676 esac
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678   (eval "$ac_link") 2>conftest.er1
9679   ac_status=$?
9680   grep -v '^ *+' conftest.er1 >conftest.err
9681   rm -f conftest.er1
9682   cat conftest.err >&5
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); } &&
9685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9686   { (case "(($ac_try" in
9687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688   *) ac_try_echo=$ac_try;;
9689 esac
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691   (eval "$ac_try") 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; } &&
9695          { ac_try='test -s conftest$ac_exeext'
9696   { (case "(($ac_try" in
9697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698   *) ac_try_echo=$ac_try;;
9699 esac
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701   (eval "$ac_try") 2>&5
9702   ac_status=$?
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); }; }; then
9705   ac_cv_lib_dl_dlopen=yes
9706 else
9707   echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710         ac_cv_lib_dl_dlopen=no
9711 fi
9712
9713 rm -f core conftest.err conftest.$ac_objext \
9714       conftest$ac_exeext conftest.$ac_ext
9715 LIBS=$ac_check_lib_save_LIBS
9716 fi
9717 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9718 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9719 if test $ac_cv_lib_dl_dlopen = yes; then
9720
9721 cat >>confdefs.h <<\_ACEOF
9722 #define HAVE_LIBDL 1
9723 _ACEOF
9724
9725                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9726 else
9727   cat >conftest.$ac_ext <<_ACEOF
9728 /* confdefs.h.  */
9729 _ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h.  */
9733 #if HAVE_DLFCN_H
9734 #  include <dlfcn.h>
9735 #endif
9736
9737 int
9738 main ()
9739 {
9740 dlopen(0, 0);
9741   ;
9742   return 0;
9743 }
9744 _ACEOF
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (ac_try="$ac_link"
9747 case "(($ac_try" in
9748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749   *) ac_try_echo=$ac_try;;
9750 esac
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752   (eval "$ac_link") 2>conftest.er1
9753   ac_status=$?
9754   grep -v '^ *+' conftest.er1 >conftest.err
9755   rm -f conftest.er1
9756   cat conftest.err >&5
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); } &&
9759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9760   { (case "(($ac_try" in
9761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762   *) ac_try_echo=$ac_try;;
9763 esac
9764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765   (eval "$ac_try") 2>&5
9766   ac_status=$?
9767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768   (exit $ac_status); }; } &&
9769          { ac_try='test -s conftest$ac_exeext'
9770   { (case "(($ac_try" in
9771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772   *) ac_try_echo=$ac_try;;
9773 esac
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775   (eval "$ac_try") 2>&5
9776   ac_status=$?
9777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778   (exit $ac_status); }; }; then
9779
9780 cat >>confdefs.h <<\_ACEOF
9781 #define HAVE_LIBDL 1
9782 _ACEOF
9783  libltdl_cv_func_dlopen="yes"
9784 else
9785   echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9787
9788         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9789 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9790 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9791   echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793   ac_check_lib_save_LIBS=$LIBS
9794 LIBS="-lsvld  $LIBS"
9795 cat >conftest.$ac_ext <<_ACEOF
9796 /* confdefs.h.  */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h.  */
9801
9802 /* Override any GCC internal prototype to avoid an error.
9803    Use char because int might match the return type of a GCC
9804    builtin and then its argument prototype would still apply.  */
9805 #ifdef __cplusplus
9806 extern "C"
9807 #endif
9808 char dlopen ();
9809 int
9810 main ()
9811 {
9812 return dlopen ();
9813   ;
9814   return 0;
9815 }
9816 _ACEOF
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9819 case "(($ac_try" in
9820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821   *) ac_try_echo=$ac_try;;
9822 esac
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824   (eval "$ac_link") 2>conftest.er1
9825   ac_status=$?
9826   grep -v '^ *+' conftest.er1 >conftest.err
9827   rm -f conftest.er1
9828   cat conftest.err >&5
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); } &&
9831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9832   { (case "(($ac_try" in
9833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834   *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837   (eval "$ac_try") 2>&5
9838   ac_status=$?
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); }; } &&
9841          { ac_try='test -s conftest$ac_exeext'
9842   { (case "(($ac_try" in
9843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844   *) ac_try_echo=$ac_try;;
9845 esac
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847   (eval "$ac_try") 2>&5
9848   ac_status=$?
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); }; }; then
9851   ac_cv_lib_svld_dlopen=yes
9852 else
9853   echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9855
9856         ac_cv_lib_svld_dlopen=no
9857 fi
9858
9859 rm -f core conftest.err conftest.$ac_objext \
9860       conftest$ac_exeext conftest.$ac_ext
9861 LIBS=$ac_check_lib_save_LIBS
9862 fi
9863 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9864 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9865 if test $ac_cv_lib_svld_dlopen = yes; then
9866
9867 cat >>confdefs.h <<\_ACEOF
9868 #define HAVE_LIBDL 1
9869 _ACEOF
9870
9871                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9872 else
9873   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9874 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9875 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9876   echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878   ac_check_lib_save_LIBS=$LIBS
9879 LIBS="-ldld  $LIBS"
9880 cat >conftest.$ac_ext <<_ACEOF
9881 /* confdefs.h.  */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h.  */
9886
9887 /* Override any GCC internal prototype to avoid an error.
9888    Use char because int might match the return type of a GCC
9889    builtin and then its argument prototype would still apply.  */
9890 #ifdef __cplusplus
9891 extern "C"
9892 #endif
9893 char dld_link ();
9894 int
9895 main ()
9896 {
9897 return dld_link ();
9898   ;
9899   return 0;
9900 }
9901 _ACEOF
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (ac_try="$ac_link"
9904 case "(($ac_try" in
9905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906   *) ac_try_echo=$ac_try;;
9907 esac
9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909   (eval "$ac_link") 2>conftest.er1
9910   ac_status=$?
9911   grep -v '^ *+' conftest.er1 >conftest.err
9912   rm -f conftest.er1
9913   cat conftest.err >&5
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); } &&
9916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9917   { (case "(($ac_try" in
9918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919   *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922   (eval "$ac_try") 2>&5
9923   ac_status=$?
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); }; } &&
9926          { ac_try='test -s conftest$ac_exeext'
9927   { (case "(($ac_try" in
9928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929   *) ac_try_echo=$ac_try;;
9930 esac
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932   (eval "$ac_try") 2>&5
9933   ac_status=$?
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); }; }; then
9936   ac_cv_lib_dld_dld_link=yes
9937 else
9938   echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9940
9941         ac_cv_lib_dld_dld_link=no
9942 fi
9943
9944 rm -f core conftest.err conftest.$ac_objext \
9945       conftest$ac_exeext conftest.$ac_ext
9946 LIBS=$ac_check_lib_save_LIBS
9947 fi
9948 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9949 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9950 if test $ac_cv_lib_dld_dld_link = yes; then
9951
9952 cat >>confdefs.h <<\_ACEOF
9953 #define HAVE_DLD 1
9954 _ACEOF
9955
9956                 LIBADD_DL="$LIBADD_DL -ldld"
9957 else
9958   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9959 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9960 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9961   echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963   cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h.  */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h.  */
9969 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9971 #define _dyld_func_lookup innocuous__dyld_func_lookup
9972
9973 /* System header to define __stub macros and hopefully few prototypes,
9974     which can conflict with char _dyld_func_lookup (); below.
9975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9976     <limits.h> exists even on freestanding compilers.  */
9977
9978 #ifdef __STDC__
9979 # include <limits.h>
9980 #else
9981 # include <assert.h>
9982 #endif
9983
9984 #undef _dyld_func_lookup
9985
9986 /* Override any GCC internal prototype to avoid an error.
9987    Use char because int might match the return type of a GCC
9988    builtin and then its argument prototype would still apply.  */
9989 #ifdef __cplusplus
9990 extern "C"
9991 #endif
9992 char _dyld_func_lookup ();
9993 /* The GNU C library defines this for functions which it implements
9994     to always fail with ENOSYS.  Some functions are actually named
9995     something starting with __ and the normal name is an alias.  */
9996 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9997 choke me
9998 #endif
9999
10000 int
10001 main ()
10002 {
10003 return _dyld_func_lookup ();
10004   ;
10005   return 0;
10006 }
10007 _ACEOF
10008 rm -f conftest.$ac_objext conftest$ac_exeext
10009 if { (ac_try="$ac_link"
10010 case "(($ac_try" in
10011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012   *) ac_try_echo=$ac_try;;
10013 esac
10014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10015   (eval "$ac_link") 2>conftest.er1
10016   ac_status=$?
10017   grep -v '^ *+' conftest.er1 >conftest.err
10018   rm -f conftest.er1
10019   cat conftest.err >&5
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); } &&
10022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10023   { (case "(($ac_try" in
10024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025   *) ac_try_echo=$ac_try;;
10026 esac
10027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028   (eval "$ac_try") 2>&5
10029   ac_status=$?
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); }; } &&
10032          { ac_try='test -s conftest$ac_exeext'
10033   { (case "(($ac_try" in
10034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035   *) ac_try_echo=$ac_try;;
10036 esac
10037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038   (eval "$ac_try") 2>&5
10039   ac_status=$?
10040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041   (exit $ac_status); }; }; then
10042   ac_cv_func__dyld_func_lookup=yes
10043 else
10044   echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10046
10047         ac_cv_func__dyld_func_lookup=no
10048 fi
10049
10050 rm -f core conftest.err conftest.$ac_objext \
10051       conftest$ac_exeext conftest.$ac_ext
10052 fi
10053 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10054 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10055 if test $ac_cv_func__dyld_func_lookup = yes; then
10056
10057 cat >>confdefs.h <<\_ACEOF
10058 #define HAVE_DYLD 1
10059 _ACEOF
10060
10061 fi
10062
10063
10064 fi
10065
10066
10067 fi
10068
10069
10070 fi
10071
10072 rm -f core conftest.err conftest.$ac_objext \
10073       conftest$ac_exeext conftest.$ac_ext
10074
10075 fi
10076
10077
10078 fi
10079
10080
10081 fi
10082
10083
10084 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10085 then
10086   lt_save_LIBS="$LIBS"
10087   LIBS="$LIBS $LIBADD_DL"
10088
10089 for ac_func in dlerror
10090 do
10091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10095   echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097   cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h.  */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h.  */
10103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10105 #define $ac_func innocuous_$ac_func
10106
10107 /* System header to define __stub macros and hopefully few prototypes,
10108     which can conflict with char $ac_func (); below.
10109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10110     <limits.h> exists even on freestanding compilers.  */
10111
10112 #ifdef __STDC__
10113 # include <limits.h>
10114 #else
10115 # include <assert.h>
10116 #endif
10117
10118 #undef $ac_func
10119
10120 /* Override any GCC internal prototype to avoid an error.
10121    Use char because int might match the return type of a GCC
10122    builtin and then its argument prototype would still apply.  */
10123 #ifdef __cplusplus
10124 extern "C"
10125 #endif
10126 char $ac_func ();
10127 /* The GNU C library defines this for functions which it implements
10128     to always fail with ENOSYS.  Some functions are actually named
10129     something starting with __ and the normal name is an alias.  */
10130 #if defined __stub_$ac_func || defined __stub___$ac_func
10131 choke me
10132 #endif
10133
10134 int
10135 main ()
10136 {
10137 return $ac_func ();
10138   ;
10139   return 0;
10140 }
10141 _ACEOF
10142 rm -f conftest.$ac_objext conftest$ac_exeext
10143 if { (ac_try="$ac_link"
10144 case "(($ac_try" in
10145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146   *) ac_try_echo=$ac_try;;
10147 esac
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149   (eval "$ac_link") 2>conftest.er1
10150   ac_status=$?
10151   grep -v '^ *+' conftest.er1 >conftest.err
10152   rm -f conftest.er1
10153   cat conftest.err >&5
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); } &&
10156          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10157   { (case "(($ac_try" in
10158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159   *) ac_try_echo=$ac_try;;
10160 esac
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162   (eval "$ac_try") 2>&5
10163   ac_status=$?
10164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165   (exit $ac_status); }; } &&
10166          { ac_try='test -s conftest$ac_exeext'
10167   { (case "(($ac_try" in
10168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169   *) ac_try_echo=$ac_try;;
10170 esac
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172   (eval "$ac_try") 2>&5
10173   ac_status=$?
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); }; }; then
10176   eval "$as_ac_var=yes"
10177 else
10178   echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10180
10181         eval "$as_ac_var=no"
10182 fi
10183
10184 rm -f core conftest.err conftest.$ac_objext \
10185       conftest$ac_exeext conftest.$ac_ext
10186 fi
10187 ac_res=`eval echo '${'$as_ac_var'}'`
10188                { echo "$as_me:$LINENO: result: $ac_res" >&5
10189 echo "${ECHO_T}$ac_res" >&6; }
10190 if test `eval echo '${'$as_ac_var'}'` = yes; then
10191   cat >>confdefs.h <<_ACEOF
10192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10193 _ACEOF
10194
10195 fi
10196 done
10197
10198   LIBS="$lt_save_LIBS"
10199 fi
10200 ac_ext=c
10201 ac_cpp='$CPP $CPPFLAGS'
10202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10205
10206
10207
10208 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10209 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10210 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10211   echo $ECHO_N "(cached) $ECHO_C" >&6
10212 else
10213   ac_cv_sys_symbol_underscore=no
10214   cat > conftest.$ac_ext <<EOF
10215 void nm_test_func(){}
10216 int main(){nm_test_func;return 0;}
10217 EOF
10218   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10219   (eval $ac_compile) 2>&5
10220   ac_status=$?
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); }; then
10223     # Now try to grab the symbols.
10224     ac_nlist=conftest.nm
10225     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10226   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10227   ac_status=$?
10228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229   (exit $ac_status); } && test -s "$ac_nlist"; then
10230       # See whether the symbols have a leading underscore.
10231       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10232         ac_cv_sys_symbol_underscore=yes
10233       else
10234         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10235           :
10236         else
10237           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10238         fi
10239       fi
10240     else
10241       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10242     fi
10243   else
10244     echo "configure: failed program was:" >&5
10245     cat conftest.c >&5
10246   fi
10247   rm -rf conftest*
10248
10249 fi
10250 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10251 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10252
10253
10254 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10255   if test x"$libltdl_cv_func_dlopen" = xyes ||
10256      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10257         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10258 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10259 if test "${libltdl_cv_need_uscore+set}" = set; then
10260   echo $ECHO_N "(cached) $ECHO_C" >&6
10261 else
10262   libltdl_cv_need_uscore=unknown
10263           save_LIBS="$LIBS"
10264           LIBS="$LIBS $LIBADD_DL"
10265           if test "$cross_compiling" = yes; then :
10266   libltdl_cv_need_uscore=cross
10267 else
10268   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10269   lt_status=$lt_dlunknown
10270   cat > conftest.$ac_ext <<EOF
10271 #line 10271 "configure"
10272 #include "confdefs.h"
10273
10274 #if HAVE_DLFCN_H
10275 #include <dlfcn.h>
10276 #endif
10277
10278 #include <stdio.h>
10279
10280 #ifdef RTLD_GLOBAL
10281 #  define LT_DLGLOBAL           RTLD_GLOBAL
10282 #else
10283 #  ifdef DL_GLOBAL
10284 #    define LT_DLGLOBAL         DL_GLOBAL
10285 #  else
10286 #    define LT_DLGLOBAL         0
10287 #  endif
10288 #endif
10289
10290 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10291    find out it does not work in some platform. */
10292 #ifndef LT_DLLAZY_OR_NOW
10293 #  ifdef RTLD_LAZY
10294 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10295 #  else
10296 #    ifdef DL_LAZY
10297 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10298 #    else
10299 #      ifdef RTLD_NOW
10300 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10301 #      else
10302 #        ifdef DL_NOW
10303 #          define LT_DLLAZY_OR_NOW      DL_NOW
10304 #        else
10305 #          define LT_DLLAZY_OR_NOW      0
10306 #        endif
10307 #      endif
10308 #    endif
10309 #  endif
10310 #endif
10311
10312 #ifdef __cplusplus
10313 extern "C" void exit (int);
10314 #endif
10315
10316 void fnord() { int i=42;}
10317 int main ()
10318 {
10319   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10320   int status = $lt_dlunknown;
10321
10322   if (self)
10323     {
10324       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10325       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10326       /* dlclose (self); */
10327     }
10328   else
10329     puts (dlerror ());
10330
10331     exit (status);
10332 }
10333 EOF
10334   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10335   (eval $ac_link) 2>&5
10336   ac_status=$?
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10339     (./conftest; exit; ) >&5 2>/dev/null
10340     lt_status=$?
10341     case x$lt_status in
10342       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10343       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10344       x$lt_dlunknown|x*)  ;;
10345     esac
10346   else :
10347     # compilation failed
10348
10349   fi
10350 fi
10351 rm -fr conftest*
10352
10353           LIBS="$save_LIBS"
10354
10355 fi
10356 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10357 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10358   fi
10359 fi
10360
10361 if test x"$libltdl_cv_need_uscore" = xyes; then
10362
10363 cat >>confdefs.h <<\_ACEOF
10364 #define NEED_USCORE 1
10365 _ACEOF
10366
10367 fi
10368
10369
10370 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10371 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10372 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10373   echo $ECHO_N "(cached) $ECHO_C" >&6
10374 else
10375   # PORTME does your system automatically load deplibs for dlopen?
10376   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10377   # For now, we just catch OSes we know something about -- in the
10378   # future, we'll try test this programmatically.
10379   libltdl_cv_sys_dlopen_deplibs=unknown
10380   case "$host_os" in
10381   aix3*|aix4.1.*|aix4.2.*)
10382     # Unknown whether this is true for these versions of AIX, but
10383     # we want this `case' here to explicitly catch those versions.
10384     libltdl_cv_sys_dlopen_deplibs=unknown
10385     ;;
10386   aix[45]*)
10387     libltdl_cv_sys_dlopen_deplibs=yes
10388     ;;
10389   darwin*)
10390     # Assuming the user has installed a libdl from somewhere, this is true
10391     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10392     libltdl_cv_sys_dlopen_deplibs=yes
10393     ;;
10394   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10395     # GNU and its variants, using gnu ld.so (Glibc)
10396     libltdl_cv_sys_dlopen_deplibs=yes
10397     ;;
10398   hpux10*|hpux11*)
10399     libltdl_cv_sys_dlopen_deplibs=yes
10400     ;;
10401   interix*)
10402     libltdl_cv_sys_dlopen_deplibs=yes
10403     ;;
10404   irix[12345]*|irix6.[01]*)
10405     # Catch all versions of IRIX before 6.2, and indicate that we don't
10406     # know how it worked for any of those versions.
10407     libltdl_cv_sys_dlopen_deplibs=unknown
10408     ;;
10409   irix*)
10410     # The case above catches anything before 6.2, and it's known that
10411     # at 6.2 and later dlopen does load deplibs.
10412     libltdl_cv_sys_dlopen_deplibs=yes
10413     ;;
10414   netbsd*)
10415     libltdl_cv_sys_dlopen_deplibs=yes
10416     ;;
10417   openbsd*)
10418     libltdl_cv_sys_dlopen_deplibs=yes
10419     ;;
10420   osf[1234]*)
10421     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10422     # it did *not* use an RPATH in a shared library to find objects the
10423     # library depends on, so we explictly say `no'.
10424     libltdl_cv_sys_dlopen_deplibs=no
10425     ;;
10426   osf5.0|osf5.0a|osf5.1)
10427     # dlopen *does* load deplibs and with the right loader patch applied
10428     # it even uses RPATH in a shared library to search for shared objects
10429     # that the library depends on, but there's no easy way to know if that
10430     # patch is installed.  Since this is the case, all we can really
10431     # say is unknown -- it depends on the patch being installed.  If
10432     # it is, this changes to `yes'.  Without it, it would be `no'.
10433     libltdl_cv_sys_dlopen_deplibs=unknown
10434     ;;
10435   osf*)
10436     # the two cases above should catch all versions of osf <= 5.1.  Read
10437     # the comments above for what we know about them.
10438     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10439     # is used to find them so we can finally say `yes'.
10440     libltdl_cv_sys_dlopen_deplibs=yes
10441     ;;
10442   solaris*)
10443     libltdl_cv_sys_dlopen_deplibs=yes
10444     ;;
10445   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10446     libltdl_cv_sys_dlopen_deplibs=yes
10447     ;;
10448   esac
10449
10450 fi
10451 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10452 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10453 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10454
10455 cat >>confdefs.h <<\_ACEOF
10456 #define LTDL_DLOPEN_DEPLIBS 1
10457 _ACEOF
10458
10459 fi
10460
10461
10462 for ac_header in argz.h
10463 do
10464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10466   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10469   echo $ECHO_N "(cached) $ECHO_C" >&6
10470 fi
10471 ac_res=`eval echo '${'$as_ac_Header'}'`
10472                { echo "$as_me:$LINENO: result: $ac_res" >&5
10473 echo "${ECHO_T}$ac_res" >&6; }
10474 else
10475   # Is the header compilable?
10476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h.  */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h.  */
10484 $ac_includes_default
10485 #include <$ac_header>
10486 _ACEOF
10487 rm -f conftest.$ac_objext
10488 if { (ac_try="$ac_compile"
10489 case "(($ac_try" in
10490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491   *) ac_try_echo=$ac_try;;
10492 esac
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494   (eval "$ac_compile") 2>conftest.er1
10495   ac_status=$?
10496   grep -v '^ *+' conftest.er1 >conftest.err
10497   rm -f conftest.er1
10498   cat conftest.err >&5
10499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500   (exit $ac_status); } &&
10501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10502   { (case "(($ac_try" in
10503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10504   *) ac_try_echo=$ac_try;;
10505 esac
10506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10507   (eval "$ac_try") 2>&5
10508   ac_status=$?
10509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510   (exit $ac_status); }; } &&
10511          { ac_try='test -s conftest.$ac_objext'
10512   { (case "(($ac_try" in
10513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514   *) ac_try_echo=$ac_try;;
10515 esac
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517   (eval "$ac_try") 2>&5
10518   ac_status=$?
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); }; }; then
10521   ac_header_compiler=yes
10522 else
10523   echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10525
10526         ac_header_compiler=no
10527 fi
10528
10529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10531 echo "${ECHO_T}$ac_header_compiler" >&6; }
10532
10533 # Is the header present?
10534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10536 cat >conftest.$ac_ext <<_ACEOF
10537 /* confdefs.h.  */
10538 _ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h.  */
10542 #include <$ac_header>
10543 _ACEOF
10544 if { (ac_try="$ac_cpp conftest.$ac_ext"
10545 case "(($ac_try" in
10546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547   *) ac_try_echo=$ac_try;;
10548 esac
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10551   ac_status=$?
10552   grep -v '^ *+' conftest.er1 >conftest.err
10553   rm -f conftest.er1
10554   cat conftest.err >&5
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); } >/dev/null; then
10557   if test -s conftest.err; then
10558     ac_cpp_err=$ac_c_preproc_warn_flag
10559     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10560   else
10561     ac_cpp_err=
10562   fi
10563 else
10564   ac_cpp_err=yes
10565 fi
10566 if test -z "$ac_cpp_err"; then
10567   ac_header_preproc=yes
10568 else
10569   echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10571
10572   ac_header_preproc=no
10573 fi
10574
10575 rm -f conftest.err conftest.$ac_ext
10576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10577 echo "${ECHO_T}$ac_header_preproc" >&6; }
10578
10579 # So?  What about this header?
10580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10581   yes:no: )
10582     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10586     ac_header_preproc=yes
10587     ;;
10588   no:yes:* )
10589     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10591     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10592 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10593     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10595     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10596 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10599     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10601     ( cat <<\_ASBOX
10602 ## ----------------------------------- ##
10603 ## Report this to llvmbugs@cs.uiuc.edu ##
10604 ## ----------------------------------- ##
10605 _ASBOX
10606      ) | sed "s/^/$as_me: WARNING:     /" >&2
10607     ;;
10608 esac
10609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10612   echo $ECHO_N "(cached) $ECHO_C" >&6
10613 else
10614   eval "$as_ac_Header=\$ac_header_preproc"
10615 fi
10616 ac_res=`eval echo '${'$as_ac_Header'}'`
10617                { echo "$as_me:$LINENO: result: $ac_res" >&5
10618 echo "${ECHO_T}$ac_res" >&6; }
10619
10620 fi
10621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10622   cat >>confdefs.h <<_ACEOF
10623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10624 _ACEOF
10625
10626 fi
10627
10628 done
10629
10630
10631 { echo "$as_me:$LINENO: checking for error_t" >&5
10632 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10633 if test "${ac_cv_type_error_t+set}" = set; then
10634   echo $ECHO_N "(cached) $ECHO_C" >&6
10635 else
10636   cat >conftest.$ac_ext <<_ACEOF
10637 /* confdefs.h.  */
10638 _ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h.  */
10642 #if HAVE_ARGZ_H
10643 #  include <argz.h>
10644 #endif
10645
10646 typedef error_t ac__type_new_;
10647 int
10648 main ()
10649 {
10650 if ((ac__type_new_ *) 0)
10651   return 0;
10652 if (sizeof (ac__type_new_))
10653   return 0;
10654   ;
10655   return 0;
10656 }
10657 _ACEOF
10658 rm -f conftest.$ac_objext
10659 if { (ac_try="$ac_compile"
10660 case "(($ac_try" in
10661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662   *) ac_try_echo=$ac_try;;
10663 esac
10664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665   (eval "$ac_compile") 2>conftest.er1
10666   ac_status=$?
10667   grep -v '^ *+' conftest.er1 >conftest.err
10668   rm -f conftest.er1
10669   cat conftest.err >&5
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); } &&
10672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10673   { (case "(($ac_try" in
10674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675   *) ac_try_echo=$ac_try;;
10676 esac
10677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678   (eval "$ac_try") 2>&5
10679   ac_status=$?
10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); }; } &&
10682          { ac_try='test -s conftest.$ac_objext'
10683   { (case "(($ac_try" in
10684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685   *) ac_try_echo=$ac_try;;
10686 esac
10687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688   (eval "$ac_try") 2>&5
10689   ac_status=$?
10690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); }; }; then
10692   ac_cv_type_error_t=yes
10693 else
10694   echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10696
10697         ac_cv_type_error_t=no
10698 fi
10699
10700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10701 fi
10702 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10703 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10704 if test $ac_cv_type_error_t = yes; then
10705
10706 cat >>confdefs.h <<_ACEOF
10707 #define HAVE_ERROR_T 1
10708 _ACEOF
10709
10710
10711 else
10712
10713 cat >>confdefs.h <<\_ACEOF
10714 #define error_t int
10715 _ACEOF
10716
10717 fi
10718
10719
10720
10721
10722
10723
10724
10725 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10726 do
10727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10731   echo $ECHO_N "(cached) $ECHO_C" >&6
10732 else
10733   cat >conftest.$ac_ext <<_ACEOF
10734 /* confdefs.h.  */
10735 _ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h.  */
10739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10741 #define $ac_func innocuous_$ac_func
10742
10743 /* System header to define __stub macros and hopefully few prototypes,
10744     which can conflict with char $ac_func (); below.
10745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10746     <limits.h> exists even on freestanding compilers.  */
10747
10748 #ifdef __STDC__
10749 # include <limits.h>
10750 #else
10751 # include <assert.h>
10752 #endif
10753
10754 #undef $ac_func
10755
10756 /* Override any GCC internal prototype to avoid an error.
10757    Use char because int might match the return type of a GCC
10758    builtin and then its argument prototype would still apply.  */
10759 #ifdef __cplusplus
10760 extern "C"
10761 #endif
10762 char $ac_func ();
10763 /* The GNU C library defines this for functions which it implements
10764     to always fail with ENOSYS.  Some functions are actually named
10765     something starting with __ and the normal name is an alias.  */
10766 #if defined __stub_$ac_func || defined __stub___$ac_func
10767 choke me
10768 #endif
10769
10770 int
10771 main ()
10772 {
10773 return $ac_func ();
10774   ;
10775   return 0;
10776 }
10777 _ACEOF
10778 rm -f conftest.$ac_objext conftest$ac_exeext
10779 if { (ac_try="$ac_link"
10780 case "(($ac_try" in
10781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782   *) ac_try_echo=$ac_try;;
10783 esac
10784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785   (eval "$ac_link") 2>conftest.er1
10786   ac_status=$?
10787   grep -v '^ *+' conftest.er1 >conftest.err
10788   rm -f conftest.er1
10789   cat conftest.err >&5
10790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); } &&
10792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10793   { (case "(($ac_try" in
10794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795   *) ac_try_echo=$ac_try;;
10796 esac
10797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798   (eval "$ac_try") 2>&5
10799   ac_status=$?
10800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801   (exit $ac_status); }; } &&
10802          { ac_try='test -s conftest$ac_exeext'
10803   { (case "(($ac_try" in
10804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805   *) ac_try_echo=$ac_try;;
10806 esac
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808   (eval "$ac_try") 2>&5
10809   ac_status=$?
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); }; }; then
10812   eval "$as_ac_var=yes"
10813 else
10814   echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10816
10817         eval "$as_ac_var=no"
10818 fi
10819
10820 rm -f core conftest.err conftest.$ac_objext \
10821       conftest$ac_exeext conftest.$ac_ext
10822 fi
10823 ac_res=`eval echo '${'$as_ac_var'}'`
10824                { echo "$as_me:$LINENO: result: $ac_res" >&5
10825 echo "${ECHO_T}$ac_res" >&6; }
10826 if test `eval echo '${'$as_ac_var'}'` = yes; then
10827   cat >>confdefs.h <<_ACEOF
10828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10829 _ACEOF
10830
10831 fi
10832 done
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10862                   stdio.h unistd.h
10863 do
10864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10866   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10869   echo $ECHO_N "(cached) $ECHO_C" >&6
10870 fi
10871 ac_res=`eval echo '${'$as_ac_Header'}'`
10872                { echo "$as_me:$LINENO: result: $ac_res" >&5
10873 echo "${ECHO_T}$ac_res" >&6; }
10874 else
10875   # Is the header compilable?
10876 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10878 cat >conftest.$ac_ext <<_ACEOF
10879 /* confdefs.h.  */
10880 _ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h.  */
10884 $ac_includes_default
10885 #include <$ac_header>
10886 _ACEOF
10887 rm -f conftest.$ac_objext
10888 if { (ac_try="$ac_compile"
10889 case "(($ac_try" in
10890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891   *) ac_try_echo=$ac_try;;
10892 esac
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894   (eval "$ac_compile") 2>conftest.er1
10895   ac_status=$?
10896   grep -v '^ *+' conftest.er1 >conftest.err
10897   rm -f conftest.er1
10898   cat conftest.err >&5
10899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900   (exit $ac_status); } &&
10901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10902   { (case "(($ac_try" in
10903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904   *) ac_try_echo=$ac_try;;
10905 esac
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907   (eval "$ac_try") 2>&5
10908   ac_status=$?
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); }; } &&
10911          { ac_try='test -s conftest.$ac_objext'
10912   { (case "(($ac_try" in
10913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914   *) ac_try_echo=$ac_try;;
10915 esac
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917   (eval "$ac_try") 2>&5
10918   ac_status=$?
10919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920   (exit $ac_status); }; }; then
10921   ac_header_compiler=yes
10922 else
10923   echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10925
10926         ac_header_compiler=no
10927 fi
10928
10929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10930 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10931 echo "${ECHO_T}$ac_header_compiler" >&6; }
10932
10933 # Is the header present?
10934 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10936 cat >conftest.$ac_ext <<_ACEOF
10937 /* confdefs.h.  */
10938 _ACEOF
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h.  */
10942 #include <$ac_header>
10943 _ACEOF
10944 if { (ac_try="$ac_cpp conftest.$ac_ext"
10945 case "(($ac_try" in
10946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947   *) ac_try_echo=$ac_try;;
10948 esac
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10951   ac_status=$?
10952   grep -v '^ *+' conftest.er1 >conftest.err
10953   rm -f conftest.er1
10954   cat conftest.err >&5
10955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956   (exit $ac_status); } >/dev/null; then
10957   if test -s conftest.err; then
10958     ac_cpp_err=$ac_c_preproc_warn_flag
10959     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10960   else
10961     ac_cpp_err=
10962   fi
10963 else
10964   ac_cpp_err=yes
10965 fi
10966 if test -z "$ac_cpp_err"; then
10967   ac_header_preproc=yes
10968 else
10969   echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10971
10972   ac_header_preproc=no
10973 fi
10974
10975 rm -f conftest.err conftest.$ac_ext
10976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10977 echo "${ECHO_T}$ac_header_preproc" >&6; }
10978
10979 # So?  What about this header?
10980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10981   yes:no: )
10982     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10986     ac_header_preproc=yes
10987     ;;
10988   no:yes:* )
10989     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10991     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10992 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10993     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10995     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10996 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10999     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11001     ( cat <<\_ASBOX
11002 ## ----------------------------------- ##
11003 ## Report this to llvmbugs@cs.uiuc.edu ##
11004 ## ----------------------------------- ##
11005 _ASBOX
11006      ) | sed "s/^/$as_me: WARNING:     /" >&2
11007     ;;
11008 esac
11009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11012   echo $ECHO_N "(cached) $ECHO_C" >&6
11013 else
11014   eval "$as_ac_Header=\$ac_header_preproc"
11015 fi
11016 ac_res=`eval echo '${'$as_ac_Header'}'`
11017                { echo "$as_me:$LINENO: result: $ac_res" >&5
11018 echo "${ECHO_T}$ac_res" >&6; }
11019
11020 fi
11021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11022   cat >>confdefs.h <<_ACEOF
11023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11024 _ACEOF
11025
11026 fi
11027
11028 done
11029
11030
11031
11032
11033
11034 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11035 do
11036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11038   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11041   echo $ECHO_N "(cached) $ECHO_C" >&6
11042 fi
11043 ac_res=`eval echo '${'$as_ac_Header'}'`
11044                { echo "$as_me:$LINENO: result: $ac_res" >&5
11045 echo "${ECHO_T}$ac_res" >&6; }
11046 else
11047   # Is the header compilable?
11048 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11050 cat >conftest.$ac_ext <<_ACEOF
11051 /* confdefs.h.  */
11052 _ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h.  */
11056 $ac_includes_default
11057 #include <$ac_header>
11058 _ACEOF
11059 rm -f conftest.$ac_objext
11060 if { (ac_try="$ac_compile"
11061 case "(($ac_try" in
11062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063   *) ac_try_echo=$ac_try;;
11064 esac
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066   (eval "$ac_compile") 2>conftest.er1
11067   ac_status=$?
11068   grep -v '^ *+' conftest.er1 >conftest.err
11069   rm -f conftest.er1
11070   cat conftest.err >&5
11071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072   (exit $ac_status); } &&
11073          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11074   { (case "(($ac_try" in
11075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076   *) ac_try_echo=$ac_try;;
11077 esac
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079   (eval "$ac_try") 2>&5
11080   ac_status=$?
11081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082   (exit $ac_status); }; } &&
11083          { ac_try='test -s conftest.$ac_objext'
11084   { (case "(($ac_try" in
11085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086   *) ac_try_echo=$ac_try;;
11087 esac
11088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11089   (eval "$ac_try") 2>&5
11090   ac_status=$?
11091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092   (exit $ac_status); }; }; then
11093   ac_header_compiler=yes
11094 else
11095   echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11097
11098         ac_header_compiler=no
11099 fi
11100
11101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11103 echo "${ECHO_T}$ac_header_compiler" >&6; }
11104
11105 # Is the header present?
11106 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11108 cat >conftest.$ac_ext <<_ACEOF
11109 /* confdefs.h.  */
11110 _ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h.  */
11114 #include <$ac_header>
11115 _ACEOF
11116 if { (ac_try="$ac_cpp conftest.$ac_ext"
11117 case "(($ac_try" in
11118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11119   *) ac_try_echo=$ac_try;;
11120 esac
11121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11122   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11123   ac_status=$?
11124   grep -v '^ *+' conftest.er1 >conftest.err
11125   rm -f conftest.er1
11126   cat conftest.err >&5
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); } >/dev/null; then
11129   if test -s conftest.err; then
11130     ac_cpp_err=$ac_c_preproc_warn_flag
11131     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11132   else
11133     ac_cpp_err=
11134   fi
11135 else
11136   ac_cpp_err=yes
11137 fi
11138 if test -z "$ac_cpp_err"; then
11139   ac_header_preproc=yes
11140 else
11141   echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11143
11144   ac_header_preproc=no
11145 fi
11146
11147 rm -f conftest.err conftest.$ac_ext
11148 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11149 echo "${ECHO_T}$ac_header_preproc" >&6; }
11150
11151 # So?  What about this header?
11152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11153   yes:no: )
11154     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11156     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11158     ac_header_preproc=yes
11159     ;;
11160   no:yes:* )
11161     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11163     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11164 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11165     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11167     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11168 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11169     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11171     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11173     ( cat <<\_ASBOX
11174 ## ----------------------------------- ##
11175 ## Report this to llvmbugs@cs.uiuc.edu ##
11176 ## ----------------------------------- ##
11177 _ASBOX
11178      ) | sed "s/^/$as_me: WARNING:     /" >&2
11179     ;;
11180 esac
11181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11184   echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186   eval "$as_ac_Header=\$ac_header_preproc"
11187 fi
11188 ac_res=`eval echo '${'$as_ac_Header'}'`
11189                { echo "$as_me:$LINENO: result: $ac_res" >&5
11190 echo "${ECHO_T}$ac_res" >&6; }
11191
11192 fi
11193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11194   cat >>confdefs.h <<_ACEOF
11195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11196 _ACEOF
11197
11198 fi
11199
11200 done
11201
11202
11203
11204 for ac_header in string.h strings.h
11205 do
11206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11208   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11211   echo $ECHO_N "(cached) $ECHO_C" >&6
11212 fi
11213 ac_res=`eval echo '${'$as_ac_Header'}'`
11214                { echo "$as_me:$LINENO: result: $ac_res" >&5
11215 echo "${ECHO_T}$ac_res" >&6; }
11216 else
11217   # Is the header compilable?
11218 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11220 cat >conftest.$ac_ext <<_ACEOF
11221 /* confdefs.h.  */
11222 _ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h.  */
11226 $ac_includes_default
11227 #include <$ac_header>
11228 _ACEOF
11229 rm -f conftest.$ac_objext
11230 if { (ac_try="$ac_compile"
11231 case "(($ac_try" in
11232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233   *) ac_try_echo=$ac_try;;
11234 esac
11235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11236   (eval "$ac_compile") 2>conftest.er1
11237   ac_status=$?
11238   grep -v '^ *+' conftest.er1 >conftest.err
11239   rm -f conftest.er1
11240   cat conftest.err >&5
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); } &&
11243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11244   { (case "(($ac_try" in
11245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246   *) ac_try_echo=$ac_try;;
11247 esac
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249   (eval "$ac_try") 2>&5
11250   ac_status=$?
11251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252   (exit $ac_status); }; } &&
11253          { ac_try='test -s conftest.$ac_objext'
11254   { (case "(($ac_try" in
11255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256   *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259   (eval "$ac_try") 2>&5
11260   ac_status=$?
11261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); }; }; then
11263   ac_header_compiler=yes
11264 else
11265   echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11267
11268         ac_header_compiler=no
11269 fi
11270
11271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11273 echo "${ECHO_T}$ac_header_compiler" >&6; }
11274
11275 # Is the header present?
11276 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11277 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11278 cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h.  */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h.  */
11284 #include <$ac_header>
11285 _ACEOF
11286 if { (ac_try="$ac_cpp conftest.$ac_ext"
11287 case "(($ac_try" in
11288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289   *) ac_try_echo=$ac_try;;
11290 esac
11291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11293   ac_status=$?
11294   grep -v '^ *+' conftest.er1 >conftest.err
11295   rm -f conftest.er1
11296   cat conftest.err >&5
11297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298   (exit $ac_status); } >/dev/null; then
11299   if test -s conftest.err; then
11300     ac_cpp_err=$ac_c_preproc_warn_flag
11301     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11302   else
11303     ac_cpp_err=
11304   fi
11305 else
11306   ac_cpp_err=yes
11307 fi
11308 if test -z "$ac_cpp_err"; then
11309   ac_header_preproc=yes
11310 else
11311   echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11313
11314   ac_header_preproc=no
11315 fi
11316
11317 rm -f conftest.err conftest.$ac_ext
11318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11319 echo "${ECHO_T}$ac_header_preproc" >&6; }
11320
11321 # So?  What about this header?
11322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11323   yes:no: )
11324     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11328     ac_header_preproc=yes
11329     ;;
11330   no:yes:* )
11331     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11333     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11334 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11335     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11337     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11338 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11341     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11343     ( cat <<\_ASBOX
11344 ## ----------------------------------- ##
11345 ## Report this to llvmbugs@cs.uiuc.edu ##
11346 ## ----------------------------------- ##
11347 _ASBOX
11348      ) | sed "s/^/$as_me: WARNING:     /" >&2
11349     ;;
11350 esac
11351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354   echo $ECHO_N "(cached) $ECHO_C" >&6
11355 else
11356   eval "$as_ac_Header=\$ac_header_preproc"
11357 fi
11358 ac_res=`eval echo '${'$as_ac_Header'}'`
11359                { echo "$as_me:$LINENO: result: $ac_res" >&5
11360 echo "${ECHO_T}$ac_res" >&6; }
11361
11362 fi
11363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11364   cat >>confdefs.h <<_ACEOF
11365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11366 _ACEOF
11367  break
11368 fi
11369
11370 done
11371
11372
11373
11374
11375 for ac_func in strchr index
11376 do
11377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11381   echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383   cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h.  */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h.  */
11389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11390    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11391 #define $ac_func innocuous_$ac_func
11392
11393 /* System header to define __stub macros and hopefully few prototypes,
11394     which can conflict with char $ac_func (); below.
11395     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11396     <limits.h> exists even on freestanding compilers.  */
11397
11398 #ifdef __STDC__
11399 # include <limits.h>
11400 #else
11401 # include <assert.h>
11402 #endif
11403
11404 #undef $ac_func
11405
11406 /* Override any GCC internal prototype to avoid an error.
11407    Use char because int might match the return type of a GCC
11408    builtin and then its argument prototype would still apply.  */
11409 #ifdef __cplusplus
11410 extern "C"
11411 #endif
11412 char $ac_func ();
11413 /* The GNU C library defines this for functions which it implements
11414     to always fail with ENOSYS.  Some functions are actually named
11415     something starting with __ and the normal name is an alias.  */
11416 #if defined __stub_$ac_func || defined __stub___$ac_func
11417 choke me
11418 #endif
11419
11420 int
11421 main ()
11422 {
11423 return $ac_func ();
11424   ;
11425   return 0;
11426 }
11427 _ACEOF
11428 rm -f conftest.$ac_objext conftest$ac_exeext
11429 if { (ac_try="$ac_link"
11430 case "(($ac_try" in
11431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432   *) ac_try_echo=$ac_try;;
11433 esac
11434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435   (eval "$ac_link") 2>conftest.er1
11436   ac_status=$?
11437   grep -v '^ *+' conftest.er1 >conftest.err
11438   rm -f conftest.er1
11439   cat conftest.err >&5
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); } &&
11442          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11443   { (case "(($ac_try" in
11444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445   *) ac_try_echo=$ac_try;;
11446 esac
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448   (eval "$ac_try") 2>&5
11449   ac_status=$?
11450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451   (exit $ac_status); }; } &&
11452          { ac_try='test -s conftest$ac_exeext'
11453   { (case "(($ac_try" in
11454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455   *) ac_try_echo=$ac_try;;
11456 esac
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458   (eval "$ac_try") 2>&5
11459   ac_status=$?
11460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461   (exit $ac_status); }; }; then
11462   eval "$as_ac_var=yes"
11463 else
11464   echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11466
11467         eval "$as_ac_var=no"
11468 fi
11469
11470 rm -f core conftest.err conftest.$ac_objext \
11471       conftest$ac_exeext conftest.$ac_ext
11472 fi
11473 ac_res=`eval echo '${'$as_ac_var'}'`
11474                { echo "$as_me:$LINENO: result: $ac_res" >&5
11475 echo "${ECHO_T}$ac_res" >&6; }
11476 if test `eval echo '${'$as_ac_var'}'` = yes; then
11477   cat >>confdefs.h <<_ACEOF
11478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11479 _ACEOF
11480  break
11481 fi
11482 done
11483
11484
11485
11486 for ac_func in strrchr rindex
11487 do
11488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11492   echo $ECHO_N "(cached) $ECHO_C" >&6
11493 else
11494   cat >conftest.$ac_ext <<_ACEOF
11495 /* confdefs.h.  */
11496 _ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h.  */
11500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11501    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11502 #define $ac_func innocuous_$ac_func
11503
11504 /* System header to define __stub macros and hopefully few prototypes,
11505     which can conflict with char $ac_func (); below.
11506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11507     <limits.h> exists even on freestanding compilers.  */
11508
11509 #ifdef __STDC__
11510 # include <limits.h>
11511 #else
11512 # include <assert.h>
11513 #endif
11514
11515 #undef $ac_func
11516
11517 /* Override any GCC internal prototype to avoid an error.
11518    Use char because int might match the return type of a GCC
11519    builtin and then its argument prototype would still apply.  */
11520 #ifdef __cplusplus
11521 extern "C"
11522 #endif
11523 char $ac_func ();
11524 /* The GNU C library defines this for functions which it implements
11525     to always fail with ENOSYS.  Some functions are actually named
11526     something starting with __ and the normal name is an alias.  */
11527 #if defined __stub_$ac_func || defined __stub___$ac_func
11528 choke me
11529 #endif
11530
11531 int
11532 main ()
11533 {
11534 return $ac_func ();
11535   ;
11536   return 0;
11537 }
11538 _ACEOF
11539 rm -f conftest.$ac_objext conftest$ac_exeext
11540 if { (ac_try="$ac_link"
11541 case "(($ac_try" in
11542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543   *) ac_try_echo=$ac_try;;
11544 esac
11545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546   (eval "$ac_link") 2>conftest.er1
11547   ac_status=$?
11548   grep -v '^ *+' conftest.er1 >conftest.err
11549   rm -f conftest.er1
11550   cat conftest.err >&5
11551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552   (exit $ac_status); } &&
11553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11554   { (case "(($ac_try" in
11555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556   *) ac_try_echo=$ac_try;;
11557 esac
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559   (eval "$ac_try") 2>&5
11560   ac_status=$?
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); }; } &&
11563          { ac_try='test -s conftest$ac_exeext'
11564   { (case "(($ac_try" in
11565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566   *) ac_try_echo=$ac_try;;
11567 esac
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569   (eval "$ac_try") 2>&5
11570   ac_status=$?
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); }; }; then
11573   eval "$as_ac_var=yes"
11574 else
11575   echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11577
11578         eval "$as_ac_var=no"
11579 fi
11580
11581 rm -f core conftest.err conftest.$ac_objext \
11582       conftest$ac_exeext conftest.$ac_ext
11583 fi
11584 ac_res=`eval echo '${'$as_ac_var'}'`
11585                { echo "$as_me:$LINENO: result: $ac_res" >&5
11586 echo "${ECHO_T}$ac_res" >&6; }
11587 if test `eval echo '${'$as_ac_var'}'` = yes; then
11588   cat >>confdefs.h <<_ACEOF
11589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11590 _ACEOF
11591  break
11592 fi
11593 done
11594
11595
11596
11597 for ac_func in memcpy bcopy
11598 do
11599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11603   echo $ECHO_N "(cached) $ECHO_C" >&6
11604 else
11605   cat >conftest.$ac_ext <<_ACEOF
11606 /* confdefs.h.  */
11607 _ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h.  */
11611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11613 #define $ac_func innocuous_$ac_func
11614
11615 /* System header to define __stub macros and hopefully few prototypes,
11616     which can conflict with char $ac_func (); below.
11617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11618     <limits.h> exists even on freestanding compilers.  */
11619
11620 #ifdef __STDC__
11621 # include <limits.h>
11622 #else
11623 # include <assert.h>
11624 #endif
11625
11626 #undef $ac_func
11627
11628 /* Override any GCC internal prototype to avoid an error.
11629    Use char because int might match the return type of a GCC
11630    builtin and then its argument prototype would still apply.  */
11631 #ifdef __cplusplus
11632 extern "C"
11633 #endif
11634 char $ac_func ();
11635 /* The GNU C library defines this for functions which it implements
11636     to always fail with ENOSYS.  Some functions are actually named
11637     something starting with __ and the normal name is an alias.  */
11638 #if defined __stub_$ac_func || defined __stub___$ac_func
11639 choke me
11640 #endif
11641
11642 int
11643 main ()
11644 {
11645 return $ac_func ();
11646   ;
11647   return 0;
11648 }
11649 _ACEOF
11650 rm -f conftest.$ac_objext conftest$ac_exeext
11651 if { (ac_try="$ac_link"
11652 case "(($ac_try" in
11653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654   *) ac_try_echo=$ac_try;;
11655 esac
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657   (eval "$ac_link") 2>conftest.er1
11658   ac_status=$?
11659   grep -v '^ *+' conftest.er1 >conftest.err
11660   rm -f conftest.er1
11661   cat conftest.err >&5
11662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663   (exit $ac_status); } &&
11664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11665   { (case "(($ac_try" in
11666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667   *) ac_try_echo=$ac_try;;
11668 esac
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670   (eval "$ac_try") 2>&5
11671   ac_status=$?
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); }; } &&
11674          { ac_try='test -s conftest$ac_exeext'
11675   { (case "(($ac_try" in
11676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677   *) ac_try_echo=$ac_try;;
11678 esac
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680   (eval "$ac_try") 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); }; }; then
11684   eval "$as_ac_var=yes"
11685 else
11686   echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11688
11689         eval "$as_ac_var=no"
11690 fi
11691
11692 rm -f core conftest.err conftest.$ac_objext \
11693       conftest$ac_exeext conftest.$ac_ext
11694 fi
11695 ac_res=`eval echo '${'$as_ac_var'}'`
11696                { echo "$as_me:$LINENO: result: $ac_res" >&5
11697 echo "${ECHO_T}$ac_res" >&6; }
11698 if test `eval echo '${'$as_ac_var'}'` = yes; then
11699   cat >>confdefs.h <<_ACEOF
11700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11701 _ACEOF
11702  break
11703 fi
11704 done
11705
11706
11707
11708 for ac_func in memmove strcmp
11709 do
11710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11714   echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716   cat >conftest.$ac_ext <<_ACEOF
11717 /* confdefs.h.  */
11718 _ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h.  */
11722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11724 #define $ac_func innocuous_$ac_func
11725
11726 /* System header to define __stub macros and hopefully few prototypes,
11727     which can conflict with char $ac_func (); below.
11728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11729     <limits.h> exists even on freestanding compilers.  */
11730
11731 #ifdef __STDC__
11732 # include <limits.h>
11733 #else
11734 # include <assert.h>
11735 #endif
11736
11737 #undef $ac_func
11738
11739 /* Override any GCC internal prototype to avoid an error.
11740    Use char because int might match the return type of a GCC
11741    builtin and then its argument prototype would still apply.  */
11742 #ifdef __cplusplus
11743 extern "C"
11744 #endif
11745 char $ac_func ();
11746 /* The GNU C library defines this for functions which it implements
11747     to always fail with ENOSYS.  Some functions are actually named
11748     something starting with __ and the normal name is an alias.  */
11749 #if defined __stub_$ac_func || defined __stub___$ac_func
11750 choke me
11751 #endif
11752
11753 int
11754 main ()
11755 {
11756 return $ac_func ();
11757   ;
11758   return 0;
11759 }
11760 _ACEOF
11761 rm -f conftest.$ac_objext conftest$ac_exeext
11762 if { (ac_try="$ac_link"
11763 case "(($ac_try" in
11764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765   *) ac_try_echo=$ac_try;;
11766 esac
11767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768   (eval "$ac_link") 2>conftest.er1
11769   ac_status=$?
11770   grep -v '^ *+' conftest.er1 >conftest.err
11771   rm -f conftest.er1
11772   cat conftest.err >&5
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); } &&
11775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11776   { (case "(($ac_try" in
11777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778   *) ac_try_echo=$ac_try;;
11779 esac
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781   (eval "$ac_try") 2>&5
11782   ac_status=$?
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); }; } &&
11785          { ac_try='test -s conftest$ac_exeext'
11786   { (case "(($ac_try" in
11787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788   *) ac_try_echo=$ac_try;;
11789 esac
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791   (eval "$ac_try") 2>&5
11792   ac_status=$?
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); }; }; then
11795   eval "$as_ac_var=yes"
11796 else
11797   echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11799
11800         eval "$as_ac_var=no"
11801 fi
11802
11803 rm -f core conftest.err conftest.$ac_objext \
11804       conftest$ac_exeext conftest.$ac_ext
11805 fi
11806 ac_res=`eval echo '${'$as_ac_var'}'`
11807                { echo "$as_me:$LINENO: result: $ac_res" >&5
11808 echo "${ECHO_T}$ac_res" >&6; }
11809 if test `eval echo '${'$as_ac_var'}'` = yes; then
11810   cat >>confdefs.h <<_ACEOF
11811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11812 _ACEOF
11813
11814 fi
11815 done
11816
11817
11818
11819
11820 for ac_func in closedir opendir readdir
11821 do
11822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11826   echo $ECHO_N "(cached) $ECHO_C" >&6
11827 else
11828   cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h.  */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h.  */
11834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11836 #define $ac_func innocuous_$ac_func
11837
11838 /* System header to define __stub macros and hopefully few prototypes,
11839     which can conflict with char $ac_func (); below.
11840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11841     <limits.h> exists even on freestanding compilers.  */
11842
11843 #ifdef __STDC__
11844 # include <limits.h>
11845 #else
11846 # include <assert.h>
11847 #endif
11848
11849 #undef $ac_func
11850
11851 /* Override any GCC internal prototype to avoid an error.
11852    Use char because int might match the return type of a GCC
11853    builtin and then its argument prototype would still apply.  */
11854 #ifdef __cplusplus
11855 extern "C"
11856 #endif
11857 char $ac_func ();
11858 /* The GNU C library defines this for functions which it implements
11859     to always fail with ENOSYS.  Some functions are actually named
11860     something starting with __ and the normal name is an alias.  */
11861 #if defined __stub_$ac_func || defined __stub___$ac_func
11862 choke me
11863 #endif
11864
11865 int
11866 main ()
11867 {
11868 return $ac_func ();
11869   ;
11870   return 0;
11871 }
11872 _ACEOF
11873 rm -f conftest.$ac_objext conftest$ac_exeext
11874 if { (ac_try="$ac_link"
11875 case "(($ac_try" in
11876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877   *) ac_try_echo=$ac_try;;
11878 esac
11879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880   (eval "$ac_link") 2>conftest.er1
11881   ac_status=$?
11882   grep -v '^ *+' conftest.er1 >conftest.err
11883   rm -f conftest.er1
11884   cat conftest.err >&5
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); } &&
11887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11888   { (case "(($ac_try" in
11889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890   *) ac_try_echo=$ac_try;;
11891 esac
11892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11893   (eval "$ac_try") 2>&5
11894   ac_status=$?
11895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896   (exit $ac_status); }; } &&
11897          { ac_try='test -s conftest$ac_exeext'
11898   { (case "(($ac_try" in
11899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900   *) ac_try_echo=$ac_try;;
11901 esac
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903   (eval "$ac_try") 2>&5
11904   ac_status=$?
11905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906   (exit $ac_status); }; }; then
11907   eval "$as_ac_var=yes"
11908 else
11909   echo "$as_me: failed program was:" >&5
11910 sed 's/^/| /' conftest.$ac_ext >&5
11911
11912         eval "$as_ac_var=no"
11913 fi
11914
11915 rm -f core conftest.err conftest.$ac_objext \
11916       conftest$ac_exeext conftest.$ac_ext
11917 fi
11918 ac_res=`eval echo '${'$as_ac_var'}'`
11919                { echo "$as_me:$LINENO: result: $ac_res" >&5
11920 echo "${ECHO_T}$ac_res" >&6; }
11921 if test `eval echo '${'$as_ac_var'}'` = yes; then
11922   cat >>confdefs.h <<_ACEOF
11923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11924 _ACEOF
11925
11926 fi
11927 done
11928
11929
11930 # Check whether --enable-shared was given.
11931 if test "${enable_shared+set}" = set; then
11932   enableval=$enable_shared; p=${PACKAGE-default}
11933     case $enableval in
11934     yes) enable_shared=yes ;;
11935     no) enable_shared=no ;;
11936     *)
11937       enable_shared=no
11938       # Look at the argument we got.  We use all the common list separators.
11939       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11940       for pkg in $enableval; do
11941         IFS="$lt_save_ifs"
11942         if test "X$pkg" = "X$p"; then
11943           enable_shared=yes
11944         fi
11945       done
11946       IFS="$lt_save_ifs"
11947       ;;
11948     esac
11949 else
11950   enable_shared=yes
11951 fi
11952
11953
11954 # Check whether --enable-static was given.
11955 if test "${enable_static+set}" = set; then
11956   enableval=$enable_static; p=${PACKAGE-default}
11957     case $enableval in
11958     yes) enable_static=yes ;;
11959     no) enable_static=no ;;
11960     *)
11961      enable_static=no
11962       # Look at the argument we got.  We use all the common list separators.
11963       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11964       for pkg in $enableval; do
11965         IFS="$lt_save_ifs"
11966         if test "X$pkg" = "X$p"; then
11967           enable_static=yes
11968         fi
11969       done
11970       IFS="$lt_save_ifs"
11971       ;;
11972     esac
11973 else
11974   enable_static=yes
11975 fi
11976
11977
11978 # Check whether --enable-fast-install was given.
11979 if test "${enable_fast_install+set}" = set; then
11980   enableval=$enable_fast_install; p=${PACKAGE-default}
11981     case $enableval in
11982     yes) enable_fast_install=yes ;;
11983     no) enable_fast_install=no ;;
11984     *)
11985       enable_fast_install=no
11986       # Look at the argument we got.  We use all the common list separators.
11987       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11988       for pkg in $enableval; do
11989         IFS="$lt_save_ifs"
11990         if test "X$pkg" = "X$p"; then
11991           enable_fast_install=yes
11992         fi
11993       done
11994       IFS="$lt_save_ifs"
11995       ;;
11996     esac
11997 else
11998   enable_fast_install=yes
11999 fi
12000
12001
12002 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12003 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12004 if test "${lt_cv_path_SED+set}" = set; then
12005   echo $ECHO_N "(cached) $ECHO_C" >&6
12006 else
12007   # Loop through the user's path and test for sed and gsed.
12008 # Then use that list of sed's as ones to test for truncation.
12009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12010 for as_dir in $PATH
12011 do
12012   IFS=$as_save_IFS
12013   test -z "$as_dir" && as_dir=.
12014   for lt_ac_prog in sed gsed; do
12015     for ac_exec_ext in '' $ac_executable_extensions; do
12016       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12017         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12018       fi
12019     done
12020   done
12021 done
12022 lt_ac_max=0
12023 lt_ac_count=0
12024 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12025 # along with /bin/sed that truncates output.
12026 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12027   test ! -f $lt_ac_sed && continue
12028   cat /dev/null > conftest.in
12029   lt_ac_count=0
12030   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12031   # Check for GNU sed and select it if it is found.
12032   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12033     lt_cv_path_SED=$lt_ac_sed
12034     break
12035   fi
12036   while true; do
12037     cat conftest.in conftest.in >conftest.tmp
12038     mv conftest.tmp conftest.in
12039     cp conftest.in conftest.nl
12040     echo >>conftest.nl
12041     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12042     cmp -s conftest.out conftest.nl || break
12043     # 10000 chars as input seems more than enough
12044     test $lt_ac_count -gt 10 && break
12045     lt_ac_count=`expr $lt_ac_count + 1`
12046     if test $lt_ac_count -gt $lt_ac_max; then
12047       lt_ac_max=$lt_ac_count
12048       lt_cv_path_SED=$lt_ac_sed
12049     fi
12050   done
12051 done
12052
12053 fi
12054
12055 SED=$lt_cv_path_SED
12056 { echo "$as_me:$LINENO: result: $SED" >&5
12057 echo "${ECHO_T}$SED" >&6; }
12058
12059
12060 # Check whether --with-gnu-ld was given.
12061 if test "${with_gnu_ld+set}" = set; then
12062   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12063 else
12064   with_gnu_ld=no
12065 fi
12066
12067 ac_prog=ld
12068 if test "$GCC" = yes; then
12069   # Check if gcc -print-prog-name=ld gives a path.
12070   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12071 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12072   case $host in
12073   *-*-mingw*)
12074     # gcc leaves a trailing carriage return which upsets mingw
12075     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12076   *)
12077     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12078   esac
12079   case $ac_prog in
12080     # Accept absolute paths.
12081     [\\/]* | ?:[\\/]*)
12082       re_direlt='/[^/][^/]*/\.\./'
12083       # Canonicalize the pathname of ld
12084       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12085       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12086         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12087       done
12088       test -z "$LD" && LD="$ac_prog"
12089       ;;
12090   "")
12091     # If it fails, then pretend we aren't using GCC.
12092     ac_prog=ld
12093     ;;
12094   *)
12095     # If it is relative, then search for the first ld in PATH.
12096     with_gnu_ld=unknown
12097     ;;
12098   esac
12099 elif test "$with_gnu_ld" = yes; then
12100   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12101 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12102 else
12103   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12104 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12105 fi
12106 if test "${lt_cv_path_LD+set}" = set; then
12107   echo $ECHO_N "(cached) $ECHO_C" >&6
12108 else
12109   if test -z "$LD"; then
12110   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12111   for ac_dir in $PATH; do
12112     IFS="$lt_save_ifs"
12113     test -z "$ac_dir" && ac_dir=.
12114     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12115       lt_cv_path_LD="$ac_dir/$ac_prog"
12116       # Check to see if the program is GNU ld.  I'd rather use --version,
12117       # but apparently some variants of GNU ld only accept -v.
12118       # Break only if it was the GNU/non-GNU ld that we prefer.
12119       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12120       *GNU* | *'with BFD'*)
12121         test "$with_gnu_ld" != no && break
12122         ;;
12123       *)
12124         test "$with_gnu_ld" != yes && break
12125         ;;
12126       esac
12127     fi
12128   done
12129   IFS="$lt_save_ifs"
12130 else
12131   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12132 fi
12133 fi
12134
12135 LD="$lt_cv_path_LD"
12136 if test -n "$LD"; then
12137   { echo "$as_me:$LINENO: result: $LD" >&5
12138 echo "${ECHO_T}$LD" >&6; }
12139 else
12140   { echo "$as_me:$LINENO: result: no" >&5
12141 echo "${ECHO_T}no" >&6; }
12142 fi
12143 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12144 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12145    { (exit 1); exit 1; }; }
12146 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12147 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12148 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12149   echo $ECHO_N "(cached) $ECHO_C" >&6
12150 else
12151   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12152 case `$LD -v 2>&1 </dev/null` in
12153 *GNU* | *'with BFD'*)
12154   lt_cv_prog_gnu_ld=yes
12155   ;;
12156 *)
12157   lt_cv_prog_gnu_ld=no
12158   ;;
12159 esac
12160 fi
12161 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12162 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12163 with_gnu_ld=$lt_cv_prog_gnu_ld
12164
12165
12166 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12167 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12168 if test "${lt_cv_ld_reload_flag+set}" = set; then
12169   echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171   lt_cv_ld_reload_flag='-r'
12172 fi
12173 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12174 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12175 reload_flag=$lt_cv_ld_reload_flag
12176 case $reload_flag in
12177 "" | " "*) ;;
12178 *) reload_flag=" $reload_flag" ;;
12179 esac
12180 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12181 case $host_os in
12182   darwin*)
12183     if test "$GCC" = yes; then
12184       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12185     else
12186       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12187     fi
12188     ;;
12189 esac
12190
12191 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12192 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12193 if test "${lt_cv_deplibs_check_method+set}" = set; then
12194   echo $ECHO_N "(cached) $ECHO_C" >&6
12195 else
12196   lt_cv_file_magic_cmd='$MAGIC_CMD'
12197 lt_cv_file_magic_test_file=
12198 lt_cv_deplibs_check_method='unknown'
12199 # Need to set the preceding variable on all platforms that support
12200 # interlibrary dependencies.
12201 # 'none' -- dependencies not supported.
12202 # `unknown' -- same as none, but documents that we really don't know.
12203 # 'pass_all' -- all dependencies passed with no checks.
12204 # 'test_compile' -- check by making test program.
12205 # 'file_magic [[regex]]' -- check by looking for files in library path
12206 # which responds to the $file_magic_cmd with a given extended regex.
12207 # If you have `file' or equivalent on your system and you're not sure
12208 # whether `pass_all' will *always* work, you probably want this one.
12209
12210 case $host_os in
12211 aix4* | aix5*)
12212   lt_cv_deplibs_check_method=pass_all
12213   ;;
12214
12215 beos*)
12216   lt_cv_deplibs_check_method=pass_all
12217   ;;
12218
12219 bsdi[45]*)
12220   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12221   lt_cv_file_magic_cmd='/usr/bin/file -L'
12222   lt_cv_file_magic_test_file=/shlib/libc.so
12223   ;;
12224
12225 cygwin*)
12226   # func_win32_libid is a shell function defined in ltmain.sh
12227   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12228   lt_cv_file_magic_cmd='func_win32_libid'
12229   ;;
12230
12231 mingw* | pw32*)
12232   # Base MSYS/MinGW do not provide the 'file' command needed by
12233   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12234   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12235   lt_cv_file_magic_cmd='$OBJDUMP -f'
12236   ;;
12237
12238 darwin* | rhapsody*)
12239   lt_cv_deplibs_check_method=pass_all
12240   ;;
12241
12242 freebsd* | kfreebsd*-gnu | dragonfly*)
12243   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12244     case $host_cpu in
12245     i*86 )
12246       # Not sure whether the presence of OpenBSD here was a mistake.
12247       # Let's accept both of them until this is cleared up.
12248       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12249       lt_cv_file_magic_cmd=/usr/bin/file
12250       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12251       ;;
12252     esac
12253   else
12254     lt_cv_deplibs_check_method=pass_all
12255   fi
12256   ;;
12257
12258 gnu*)
12259   lt_cv_deplibs_check_method=pass_all
12260   ;;
12261
12262 hpux10.20* | hpux11*)
12263   lt_cv_file_magic_cmd=/usr/bin/file
12264   case $host_cpu in
12265   ia64*)
12266     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12267     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12268     ;;
12269   hppa*64*)
12270     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]'
12271     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12272     ;;
12273   *)
12274     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12275     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12276     ;;
12277   esac
12278   ;;
12279
12280 interix3*)
12281   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12282   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12283   ;;
12284
12285 irix5* | irix6* | nonstopux*)
12286   case $LD in
12287   *-32|*"-32 ") libmagic=32-bit;;
12288   *-n32|*"-n32 ") libmagic=N32;;
12289   *-64|*"-64 ") libmagic=64-bit;;
12290   *) libmagic=never-match;;
12291   esac
12292   lt_cv_deplibs_check_method=pass_all
12293   ;;
12294
12295 # This must be Linux ELF.
12296 linux*)
12297   lt_cv_deplibs_check_method=pass_all
12298   ;;
12299
12300 netbsd*)
12301   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12302     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12303   else
12304     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12305   fi
12306   ;;
12307
12308 newos6*)
12309   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12310   lt_cv_file_magic_cmd=/usr/bin/file
12311   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12312   ;;
12313
12314 nto-qnx*)
12315   lt_cv_deplibs_check_method=unknown
12316   ;;
12317
12318 openbsd*)
12319   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12320     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12321   else
12322     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12323   fi
12324   ;;
12325
12326 osf3* | osf4* | osf5*)
12327   lt_cv_deplibs_check_method=pass_all
12328   ;;
12329
12330 solaris*)
12331   lt_cv_deplibs_check_method=pass_all
12332   ;;
12333
12334 sysv4 | sysv4.3*)
12335   case $host_vendor in
12336   motorola)
12337     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]'
12338     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12339     ;;
12340   ncr)
12341     lt_cv_deplibs_check_method=pass_all
12342     ;;
12343   sequent)
12344     lt_cv_file_magic_cmd='/bin/file'
12345     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12346     ;;
12347   sni)
12348     lt_cv_file_magic_cmd='/bin/file'
12349     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12350     lt_cv_file_magic_test_file=/lib/libc.so
12351     ;;
12352   siemens)
12353     lt_cv_deplibs_check_method=pass_all
12354     ;;
12355   pc)
12356     lt_cv_deplibs_check_method=pass_all
12357     ;;
12358   esac
12359   ;;
12360
12361 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12362   lt_cv_deplibs_check_method=pass_all
12363   ;;
12364 esac
12365
12366 fi
12367 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12368 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12369 file_magic_cmd=$lt_cv_file_magic_cmd
12370 deplibs_check_method=$lt_cv_deplibs_check_method
12371 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12372
12373
12374
12375 # If no C compiler was specified, use CC.
12376 LTCC=${LTCC-"$CC"}
12377
12378 # If no C compiler flags were specified, use CFLAGS.
12379 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12380
12381 # Allow CC to be a program name with arguments.
12382 compiler=$CC
12383
12384 # Check whether --enable-libtool-lock was given.
12385 if test "${enable_libtool_lock+set}" = set; then
12386   enableval=$enable_libtool_lock;
12387 fi
12388
12389 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12390
12391 # Some flags need to be propagated to the compiler or linker for good
12392 # libtool support.
12393 case $host in
12394 ia64-*-hpux*)
12395   # Find out which ABI we are using.
12396   echo 'int i;' > conftest.$ac_ext
12397   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12398   (eval $ac_compile) 2>&5
12399   ac_status=$?
12400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401   (exit $ac_status); }; then
12402     case `/usr/bin/file conftest.$ac_objext` in
12403     *ELF-32*)
12404       HPUX_IA64_MODE="32"
12405       ;;
12406     *ELF-64*)
12407       HPUX_IA64_MODE="64"
12408       ;;
12409     esac
12410   fi
12411   rm -rf conftest*
12412   ;;
12413 *-*-irix6*)
12414   # Find out which ABI we are using.
12415   echo '#line 12415 "configure"' > conftest.$ac_ext
12416   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12417   (eval $ac_compile) 2>&5
12418   ac_status=$?
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); }; then
12421    if test "$lt_cv_prog_gnu_ld" = yes; then
12422     case `/usr/bin/file conftest.$ac_objext` in
12423     *32-bit*)
12424       LD="${LD-ld} -melf32bsmip"
12425       ;;
12426     *N32*)
12427       LD="${LD-ld} -melf32bmipn32"
12428       ;;
12429     *64-bit*)
12430       LD="${LD-ld} -melf64bmip"
12431       ;;
12432     esac
12433    else
12434     case `/usr/bin/file conftest.$ac_objext` in
12435     *32-bit*)
12436       LD="${LD-ld} -32"
12437       ;;
12438     *N32*)
12439       LD="${LD-ld} -n32"
12440       ;;
12441     *64-bit*)
12442       LD="${LD-ld} -64"
12443       ;;
12444     esac
12445    fi
12446   fi
12447   rm -rf conftest*
12448   ;;
12449
12450 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12451   # Find out which ABI we are using.
12452   echo 'int i;' > conftest.$ac_ext
12453   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12454   (eval $ac_compile) 2>&5
12455   ac_status=$?
12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); }; then
12458     case `/usr/bin/file conftest.o` in
12459     *32-bit*)
12460       case $host in
12461         x86_64-*linux*)
12462           LD="${LD-ld} -m elf_i386"
12463           ;;
12464         ppc64-*linux*|powerpc64-*linux*)
12465           LD="${LD-ld} -m elf32ppclinux"
12466           ;;
12467         s390x-*linux*)
12468           LD="${LD-ld} -m elf_s390"
12469           ;;
12470         sparc64-*linux*)
12471           LD="${LD-ld} -m elf32_sparc"
12472           ;;
12473       esac
12474       ;;
12475     *64-bit*)
12476       case $host in
12477         x86_64-*linux*)
12478           LD="${LD-ld} -m elf_x86_64"
12479           ;;
12480         ppc*-*linux*|powerpc*-*linux*)
12481           LD="${LD-ld} -m elf64ppc"
12482           ;;
12483         s390*-*linux*)
12484           LD="${LD-ld} -m elf64_s390"
12485           ;;
12486         sparc*-*linux*)
12487           LD="${LD-ld} -m elf64_sparc"
12488           ;;
12489       esac
12490       ;;
12491     esac
12492   fi
12493   rm -rf conftest*
12494   ;;
12495
12496 *-*-sco3.2v5*)
12497   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12498   SAVE_CFLAGS="$CFLAGS"
12499   CFLAGS="$CFLAGS -belf"
12500   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12501 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12502 if test "${lt_cv_cc_needs_belf+set}" = set; then
12503   echo $ECHO_N "(cached) $ECHO_C" >&6
12504 else
12505   ac_ext=c
12506 ac_cpp='$CPP $CPPFLAGS'
12507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12510
12511      cat >conftest.$ac_ext <<_ACEOF
12512 /* confdefs.h.  */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h.  */
12517
12518 int
12519 main ()
12520 {
12521
12522   ;
12523   return 0;
12524 }
12525 _ACEOF
12526 rm -f conftest.$ac_objext conftest$ac_exeext
12527 if { (ac_try="$ac_link"
12528 case "(($ac_try" in
12529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530   *) ac_try_echo=$ac_try;;
12531 esac
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533   (eval "$ac_link") 2>conftest.er1
12534   ac_status=$?
12535   grep -v '^ *+' conftest.er1 >conftest.err
12536   rm -f conftest.er1
12537   cat conftest.err >&5
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); } &&
12540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12541   { (case "(($ac_try" in
12542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543   *) ac_try_echo=$ac_try;;
12544 esac
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546   (eval "$ac_try") 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); }; } &&
12550          { ac_try='test -s conftest$ac_exeext'
12551   { (case "(($ac_try" in
12552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553   *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556   (eval "$ac_try") 2>&5
12557   ac_status=$?
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); }; }; then
12560   lt_cv_cc_needs_belf=yes
12561 else
12562   echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12564
12565         lt_cv_cc_needs_belf=no
12566 fi
12567
12568 rm -f core conftest.err conftest.$ac_objext \
12569       conftest$ac_exeext conftest.$ac_ext
12570      ac_ext=c
12571 ac_cpp='$CPP $CPPFLAGS'
12572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12575
12576 fi
12577 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12578 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12579   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12580     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12581     CFLAGS="$SAVE_CFLAGS"
12582   fi
12583   ;;
12584 sparc*-*solaris*)
12585   # Find out which ABI we are using.
12586   echo 'int i;' > conftest.$ac_ext
12587   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12588   (eval $ac_compile) 2>&5
12589   ac_status=$?
12590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); }; then
12592     case `/usr/bin/file conftest.o` in
12593     *64-bit*)
12594       case $lt_cv_prog_gnu_ld in
12595       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12596       *)    LD="${LD-ld} -64" ;;
12597       esac
12598       ;;
12599     esac
12600   fi
12601   rm -rf conftest*
12602   ;;
12603
12604
12605 esac
12606
12607 need_locks="$enable_libtool_lock"
12608
12609
12610
12611
12612 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12613     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12614     (test "X$CXX" != "Xg++"))) ; then
12615   ac_ext=cpp
12616 ac_cpp='$CXXCPP $CPPFLAGS'
12617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12620 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12621 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12622 if test -z "$CXXCPP"; then
12623   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12624   echo $ECHO_N "(cached) $ECHO_C" >&6
12625 else
12626       # Double quotes because CXXCPP needs to be expanded
12627     for CXXCPP in "$CXX -E" "/lib/cpp"
12628     do
12629       ac_preproc_ok=false
12630 for ac_cxx_preproc_warn_flag in '' yes
12631 do
12632   # Use a header file that comes with gcc, so configuring glibc
12633   # with a fresh cross-compiler works.
12634   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12635   # <limits.h> exists even on freestanding compilers.
12636   # On the NeXT, cc -E runs the code through the compiler's parser,
12637   # not just through cpp. "Syntax error" is here to catch this case.
12638   cat >conftest.$ac_ext <<_ACEOF
12639 /* confdefs.h.  */
12640 _ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h.  */
12644 #ifdef __STDC__
12645 # include <limits.h>
12646 #else
12647 # include <assert.h>
12648 #endif
12649                      Syntax error
12650 _ACEOF
12651 if { (ac_try="$ac_cpp conftest.$ac_ext"
12652 case "(($ac_try" in
12653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654   *) ac_try_echo=$ac_try;;
12655 esac
12656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12658   ac_status=$?
12659   grep -v '^ *+' conftest.er1 >conftest.err
12660   rm -f conftest.er1
12661   cat conftest.err >&5
12662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663   (exit $ac_status); } >/dev/null; then
12664   if test -s conftest.err; then
12665     ac_cpp_err=$ac_cxx_preproc_warn_flag
12666     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12667   else
12668     ac_cpp_err=
12669   fi
12670 else
12671   ac_cpp_err=yes
12672 fi
12673 if test -z "$ac_cpp_err"; then
12674   :
12675 else
12676   echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.$ac_ext >&5
12678
12679   # Broken: fails on valid input.
12680 continue
12681 fi
12682
12683 rm -f conftest.err conftest.$ac_ext
12684
12685   # OK, works on sane cases.  Now check whether nonexistent headers
12686   # can be detected and how.
12687   cat >conftest.$ac_ext <<_ACEOF
12688 /* confdefs.h.  */
12689 _ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h.  */
12693 #include <ac_nonexistent.h>
12694 _ACEOF
12695 if { (ac_try="$ac_cpp conftest.$ac_ext"
12696 case "(($ac_try" in
12697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12698   *) ac_try_echo=$ac_try;;
12699 esac
12700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12701   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12702   ac_status=$?
12703   grep -v '^ *+' conftest.er1 >conftest.err
12704   rm -f conftest.er1
12705   cat conftest.err >&5
12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707   (exit $ac_status); } >/dev/null; then
12708   if test -s conftest.err; then
12709     ac_cpp_err=$ac_cxx_preproc_warn_flag
12710     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12711   else
12712     ac_cpp_err=
12713   fi
12714 else
12715   ac_cpp_err=yes
12716 fi
12717 if test -z "$ac_cpp_err"; then
12718   # Broken: success on invalid input.
12719 continue
12720 else
12721   echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12723
12724   # Passes both tests.
12725 ac_preproc_ok=:
12726 break
12727 fi
12728
12729 rm -f conftest.err conftest.$ac_ext
12730
12731 done
12732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12733 rm -f conftest.err conftest.$ac_ext
12734 if $ac_preproc_ok; then
12735   break
12736 fi
12737
12738     done
12739     ac_cv_prog_CXXCPP=$CXXCPP
12740
12741 fi
12742   CXXCPP=$ac_cv_prog_CXXCPP
12743 else
12744   ac_cv_prog_CXXCPP=$CXXCPP
12745 fi
12746 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12747 echo "${ECHO_T}$CXXCPP" >&6; }
12748 ac_preproc_ok=false
12749 for ac_cxx_preproc_warn_flag in '' yes
12750 do
12751   # Use a header file that comes with gcc, so configuring glibc
12752   # with a fresh cross-compiler works.
12753   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12754   # <limits.h> exists even on freestanding compilers.
12755   # On the NeXT, cc -E runs the code through the compiler's parser,
12756   # not just through cpp. "Syntax error" is here to catch this case.
12757   cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h.  */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h.  */
12763 #ifdef __STDC__
12764 # include <limits.h>
12765 #else
12766 # include <assert.h>
12767 #endif
12768                      Syntax error
12769 _ACEOF
12770 if { (ac_try="$ac_cpp conftest.$ac_ext"
12771 case "(($ac_try" in
12772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773   *) ac_try_echo=$ac_try;;
12774 esac
12775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12777   ac_status=$?
12778   grep -v '^ *+' conftest.er1 >conftest.err
12779   rm -f conftest.er1
12780   cat conftest.err >&5
12781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782   (exit $ac_status); } >/dev/null; then
12783   if test -s conftest.err; then
12784     ac_cpp_err=$ac_cxx_preproc_warn_flag
12785     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12786   else
12787     ac_cpp_err=
12788   fi
12789 else
12790   ac_cpp_err=yes
12791 fi
12792 if test -z "$ac_cpp_err"; then
12793   :
12794 else
12795   echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12797
12798   # Broken: fails on valid input.
12799 continue
12800 fi
12801
12802 rm -f conftest.err conftest.$ac_ext
12803
12804   # OK, works on sane cases.  Now check whether nonexistent headers
12805   # can be detected and how.
12806   cat >conftest.$ac_ext <<_ACEOF
12807 /* confdefs.h.  */
12808 _ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h.  */
12812 #include <ac_nonexistent.h>
12813 _ACEOF
12814 if { (ac_try="$ac_cpp conftest.$ac_ext"
12815 case "(($ac_try" in
12816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817   *) ac_try_echo=$ac_try;;
12818 esac
12819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12820   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12821   ac_status=$?
12822   grep -v '^ *+' conftest.er1 >conftest.err
12823   rm -f conftest.er1
12824   cat conftest.err >&5
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); } >/dev/null; then
12827   if test -s conftest.err; then
12828     ac_cpp_err=$ac_cxx_preproc_warn_flag
12829     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12830   else
12831     ac_cpp_err=
12832   fi
12833 else
12834   ac_cpp_err=yes
12835 fi
12836 if test -z "$ac_cpp_err"; then
12837   # Broken: success on invalid input.
12838 continue
12839 else
12840   echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12842
12843   # Passes both tests.
12844 ac_preproc_ok=:
12845 break
12846 fi
12847
12848 rm -f conftest.err conftest.$ac_ext
12849
12850 done
12851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12852 rm -f conftest.err conftest.$ac_ext
12853 if $ac_preproc_ok; then
12854   :
12855 else
12856   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12857 See \`config.log' for more details." >&5
12858 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12859 See \`config.log' for more details." >&2;}
12860    { (exit 1); exit 1; }; }
12861 fi
12862
12863 ac_ext=cpp
12864 ac_cpp='$CXXCPP $CPPFLAGS'
12865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12868
12869 fi
12870
12871
12872 ac_ext=f
12873 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12874 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12875 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12876 if test -n "$ac_tool_prefix"; then
12877   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
12878   do
12879     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12883 if test "${ac_cv_prog_F77+set}" = set; then
12884   echo $ECHO_N "(cached) $ECHO_C" >&6
12885 else
12886   if test -n "$F77"; then
12887   ac_cv_prog_F77="$F77" # Let the user override the test.
12888 else
12889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12890 for as_dir in $PATH
12891 do
12892   IFS=$as_save_IFS
12893   test -z "$as_dir" && as_dir=.
12894   for ac_exec_ext in '' $ac_executable_extensions; do
12895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12896     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12898     break 2
12899   fi
12900 done
12901 done
12902 IFS=$as_save_IFS
12903
12904 fi
12905 fi
12906 F77=$ac_cv_prog_F77
12907 if test -n "$F77"; then
12908   { echo "$as_me:$LINENO: result: $F77" >&5
12909 echo "${ECHO_T}$F77" >&6; }
12910 else
12911   { echo "$as_me:$LINENO: result: no" >&5
12912 echo "${ECHO_T}no" >&6; }
12913 fi
12914
12915
12916     test -n "$F77" && break
12917   done
12918 fi
12919 if test -z "$F77"; then
12920   ac_ct_F77=$F77
12921   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
12922 do
12923   # Extract the first word of "$ac_prog", so it can be a program name with args.
12924 set dummy $ac_prog; ac_word=$2
12925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12927 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12928   echo $ECHO_N "(cached) $ECHO_C" >&6
12929 else
12930   if test -n "$ac_ct_F77"; then
12931   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12932 else
12933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12934 for as_dir in $PATH
12935 do
12936   IFS=$as_save_IFS
12937   test -z "$as_dir" && as_dir=.
12938   for ac_exec_ext in '' $ac_executable_extensions; do
12939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12940     ac_cv_prog_ac_ct_F77="$ac_prog"
12941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12942     break 2
12943   fi
12944 done
12945 done
12946 IFS=$as_save_IFS
12947
12948 fi
12949 fi
12950 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12951 if test -n "$ac_ct_F77"; then
12952   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12953 echo "${ECHO_T}$ac_ct_F77" >&6; }
12954 else
12955   { echo "$as_me:$LINENO: result: no" >&5
12956 echo "${ECHO_T}no" >&6; }
12957 fi
12958
12959
12960   test -n "$ac_ct_F77" && break
12961 done
12962
12963   if test "x$ac_ct_F77" = x; then
12964     F77=""
12965   else
12966     case $cross_compiling:$ac_tool_warned in
12967 yes:)
12968 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12969 whose name does not start with the host triplet.  If you think this
12970 configuration is useful to you, please write to autoconf@gnu.org." >&5
12971 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12972 whose name does not start with the host triplet.  If you think this
12973 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12974 ac_tool_warned=yes ;;
12975 esac
12976     F77=$ac_ct_F77
12977   fi
12978 fi
12979
12980
12981 # Provide some information about the compiler.
12982 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12983 ac_compiler=`set X $ac_compile; echo $2`
12984 { (ac_try="$ac_compiler --version >&5"
12985 case "(($ac_try" in
12986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987   *) ac_try_echo=$ac_try;;
12988 esac
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990   (eval "$ac_compiler --version >&5") 2>&5
12991   ac_status=$?
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); }
12994 { (ac_try="$ac_compiler -v >&5"
12995 case "(($ac_try" in
12996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997   *) ac_try_echo=$ac_try;;
12998 esac
12999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000   (eval "$ac_compiler -v >&5") 2>&5
13001   ac_status=$?
13002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003   (exit $ac_status); }
13004 { (ac_try="$ac_compiler -V >&5"
13005 case "(($ac_try" in
13006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007   *) ac_try_echo=$ac_try;;
13008 esac
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010   (eval "$ac_compiler -V >&5") 2>&5
13011   ac_status=$?
13012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013   (exit $ac_status); }
13014 rm -f a.out
13015
13016 # If we don't use `.F' as extension, the preprocessor is not run on the
13017 # input file.  (Note that this only needs to work for GNU compilers.)
13018 ac_save_ext=$ac_ext
13019 ac_ext=F
13020 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13021 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13022 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13023   echo $ECHO_N "(cached) $ECHO_C" >&6
13024 else
13025   cat >conftest.$ac_ext <<_ACEOF
13026       program main
13027 #ifndef __GNUC__
13028        choke me
13029 #endif
13030
13031       end
13032 _ACEOF
13033 rm -f conftest.$ac_objext
13034 if { (ac_try="$ac_compile"
13035 case "(($ac_try" in
13036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037   *) ac_try_echo=$ac_try;;
13038 esac
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040   (eval "$ac_compile") 2>conftest.er1
13041   ac_status=$?
13042   grep -v '^ *+' conftest.er1 >conftest.err
13043   rm -f conftest.er1
13044   cat conftest.err >&5
13045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046   (exit $ac_status); } &&
13047          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13048   { (case "(($ac_try" in
13049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050   *) ac_try_echo=$ac_try;;
13051 esac
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053   (eval "$ac_try") 2>&5
13054   ac_status=$?
13055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056   (exit $ac_status); }; } &&
13057          { ac_try='test -s conftest.$ac_objext'
13058   { (case "(($ac_try" in
13059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060   *) ac_try_echo=$ac_try;;
13061 esac
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063   (eval "$ac_try") 2>&5
13064   ac_status=$?
13065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066   (exit $ac_status); }; }; then
13067   ac_compiler_gnu=yes
13068 else
13069   echo "$as_me: failed program was:" >&5
13070 sed 's/^/| /' conftest.$ac_ext >&5
13071
13072         ac_compiler_gnu=no
13073 fi
13074
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13076 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13077
13078 fi
13079 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13080 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13081 ac_ext=$ac_save_ext
13082 ac_test_FFLAGS=${FFLAGS+set}
13083 ac_save_FFLAGS=$FFLAGS
13084 FFLAGS=
13085 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13086 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13087 if test "${ac_cv_prog_f77_g+set}" = set; then
13088   echo $ECHO_N "(cached) $ECHO_C" >&6
13089 else
13090   FFLAGS=-g
13091 cat >conftest.$ac_ext <<_ACEOF
13092       program main
13093
13094       end
13095 _ACEOF
13096 rm -f conftest.$ac_objext
13097 if { (ac_try="$ac_compile"
13098 case "(($ac_try" in
13099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100   *) ac_try_echo=$ac_try;;
13101 esac
13102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103   (eval "$ac_compile") 2>conftest.er1
13104   ac_status=$?
13105   grep -v '^ *+' conftest.er1 >conftest.err
13106   rm -f conftest.er1
13107   cat conftest.err >&5
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); } &&
13110          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13111   { (case "(($ac_try" in
13112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113   *) ac_try_echo=$ac_try;;
13114 esac
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116   (eval "$ac_try") 2>&5
13117   ac_status=$?
13118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119   (exit $ac_status); }; } &&
13120          { ac_try='test -s conftest.$ac_objext'
13121   { (case "(($ac_try" in
13122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123   *) ac_try_echo=$ac_try;;
13124 esac
13125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126   (eval "$ac_try") 2>&5
13127   ac_status=$?
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); }; }; then
13130   ac_cv_prog_f77_g=yes
13131 else
13132   echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13134
13135         ac_cv_prog_f77_g=no
13136 fi
13137
13138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13139
13140 fi
13141 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13142 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13143 if test "$ac_test_FFLAGS" = set; then
13144   FFLAGS=$ac_save_FFLAGS
13145 elif test $ac_cv_prog_f77_g = yes; then
13146   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13147     FFLAGS="-g -O2"
13148   else
13149     FFLAGS="-g"
13150   fi
13151 else
13152   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13153     FFLAGS="-O2"
13154   else
13155     FFLAGS=
13156   fi
13157 fi
13158
13159 G77=`test $ac_compiler_gnu = yes && echo yes`
13160 ac_ext=c
13161 ac_cpp='$CPP $CPPFLAGS'
13162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13165
13166
13167
13168 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13169
13170 # find the maximum length of command line arguments
13171 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13172 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13173 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13174   echo $ECHO_N "(cached) $ECHO_C" >&6
13175 else
13176     i=0
13177   teststring="ABCD"
13178
13179   case $build_os in
13180   msdosdjgpp*)
13181     # On DJGPP, this test can blow up pretty badly due to problems in libc
13182     # (any single argument exceeding 2000 bytes causes a buffer overrun
13183     # during glob expansion).  Even if it were fixed, the result of this
13184     # check would be larger than it should be.
13185     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13186     ;;
13187
13188   gnu*)
13189     # Under GNU Hurd, this test is not required because there is
13190     # no limit to the length of command line arguments.
13191     # Libtool will interpret -1 as no limit whatsoever
13192     lt_cv_sys_max_cmd_len=-1;
13193     ;;
13194
13195   cygwin* | mingw*)
13196     # On Win9x/ME, this test blows up -- it succeeds, but takes
13197     # about 5 minutes as the teststring grows exponentially.
13198     # Worse, since 9x/ME are not pre-emptively multitasking,
13199     # you end up with a "frozen" computer, even though with patience
13200     # the test eventually succeeds (with a max line length of 256k).
13201     # Instead, let's just punt: use the minimum linelength reported by
13202     # all of the supported platforms: 8192 (on NT/2K/XP).
13203     lt_cv_sys_max_cmd_len=8192;
13204     ;;
13205
13206   amigaos*)
13207     # On AmigaOS with pdksh, this test takes hours, literally.
13208     # So we just punt and use a minimum line length of 8192.
13209     lt_cv_sys_max_cmd_len=8192;
13210     ;;
13211
13212   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13213     # This has been around since 386BSD, at least.  Likely further.
13214     if test -x /sbin/sysctl; then
13215       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13216     elif test -x /usr/sbin/sysctl; then
13217       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13218     else
13219       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13220     fi
13221     # And add a safety zone
13222     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13223     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13224     ;;
13225
13226   interix*)
13227     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13228     lt_cv_sys_max_cmd_len=196608
13229     ;;
13230
13231   osf*)
13232     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13233     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13234     # nice to cause kernel panics so lets avoid the loop below.
13235     # First set a reasonable default.
13236     lt_cv_sys_max_cmd_len=16384
13237     #
13238     if test -x /sbin/sysconfig; then
13239       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13240         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13241       esac
13242     fi
13243     ;;
13244   sco3.2v5*)
13245     lt_cv_sys_max_cmd_len=102400
13246     ;;
13247   sysv5* | sco5v6* | sysv4.2uw2*)
13248     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13249     if test -n "$kargmax"; then
13250       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13251     else
13252       lt_cv_sys_max_cmd_len=32768
13253     fi
13254     ;;
13255   *)
13256     # If test is not a shell built-in, we'll probably end up computing a
13257     # maximum length that is only half of the actual maximum length, but
13258     # we can't tell.
13259     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13260     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13261                = "XX$teststring") >/dev/null 2>&1 &&
13262             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13263             lt_cv_sys_max_cmd_len=$new_result &&
13264             test $i != 17 # 1/2 MB should be enough
13265     do
13266       i=`expr $i + 1`
13267       teststring=$teststring$teststring
13268     done
13269     teststring=
13270     # Add a significant safety factor because C++ compilers can tack on massive
13271     # amounts of additional arguments before passing them to the linker.
13272     # It appears as though 1/2 is a usable value.
13273     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13274     ;;
13275   esac
13276
13277 fi
13278
13279 if test -n $lt_cv_sys_max_cmd_len ; then
13280   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13281 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13282 else
13283   { echo "$as_me:$LINENO: result: none" >&5
13284 echo "${ECHO_T}none" >&6; }
13285 fi
13286
13287
13288
13289
13290 # Check for command to grab the raw symbol name followed by C symbol from nm.
13291 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13292 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13293 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13294   echo $ECHO_N "(cached) $ECHO_C" >&6
13295 else
13296
13297 # These are sane defaults that work on at least a few old systems.
13298 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13299
13300 # Character class describing NM global symbol codes.
13301 symcode='[BCDEGRST]'
13302
13303 # Regexp to match symbols that can be accessed directly from C.
13304 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13305
13306 # Transform an extracted symbol line into a proper C declaration
13307 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13308
13309 # Transform an extracted symbol line into symbol name and symbol address
13310 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'"
13311
13312 # Define system-specific variables.
13313 case $host_os in
13314 aix*)
13315   symcode='[BCDT]'
13316   ;;
13317 cygwin* | mingw* | pw32*)
13318   symcode='[ABCDGISTW]'
13319   ;;
13320 hpux*) # Its linker distinguishes data from code symbols
13321   if test "$host_cpu" = ia64; then
13322     symcode='[ABCDEGRST]'
13323   fi
13324   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13325   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'"
13326   ;;
13327 linux*)
13328   if test "$host_cpu" = ia64; then
13329     symcode='[ABCDGIRSTW]'
13330     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13331     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'"
13332   fi
13333   ;;
13334 irix* | nonstopux*)
13335   symcode='[BCDEGRST]'
13336   ;;
13337 osf*)
13338   symcode='[BCDEGQRST]'
13339   ;;
13340 solaris*)
13341   symcode='[BDRT]'
13342   ;;
13343 sco3.2v5*)
13344   symcode='[DT]'
13345   ;;
13346 sysv4.2uw2*)
13347   symcode='[DT]'
13348   ;;
13349 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13350   symcode='[ABDT]'
13351   ;;
13352 sysv4)
13353   symcode='[DFNSTU]'
13354   ;;
13355 esac
13356
13357 # Handle CRLF in mingw tool chain
13358 opt_cr=
13359 case $build_os in
13360 mingw*)
13361   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13362   ;;
13363 esac
13364
13365 # If we're using GNU nm, then use its standard symbol codes.
13366 case `$NM -V 2>&1` in
13367 *GNU* | *'with BFD'*)
13368   symcode='[ABCDGIRSTW]' ;;
13369 esac
13370
13371 # Try without a prefix undercore, then with it.
13372 for ac_symprfx in "" "_"; do
13373
13374   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13375   symxfrm="\\1 $ac_symprfx\\2 \\2"
13376
13377   # Write the raw and C identifiers.
13378   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13379
13380   # Check to see that the pipe works correctly.
13381   pipe_works=no
13382
13383   rm -f conftest*
13384   cat > conftest.$ac_ext <<EOF
13385 #ifdef __cplusplus
13386 extern "C" {
13387 #endif
13388 char nm_test_var;
13389 void nm_test_func(){}
13390 #ifdef __cplusplus
13391 }
13392 #endif
13393 int main(){nm_test_var='a';nm_test_func();return(0);}
13394 EOF
13395
13396   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13397   (eval $ac_compile) 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); }; then
13401     # Now try to grab the symbols.
13402     nlist=conftest.nm
13403     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13404   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13405   ac_status=$?
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); } && test -s "$nlist"; then
13408       # Try sorting and uniquifying the output.
13409       if sort "$nlist" | uniq > "$nlist"T; then
13410         mv -f "$nlist"T "$nlist"
13411       else
13412         rm -f "$nlist"T
13413       fi
13414
13415       # Make sure that we snagged all the symbols we need.
13416       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13417         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13418           cat <<EOF > conftest.$ac_ext
13419 #ifdef __cplusplus
13420 extern "C" {
13421 #endif
13422
13423 EOF
13424           # Now generate the symbol file.
13425           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13426
13427           cat <<EOF >> conftest.$ac_ext
13428 #if defined (__STDC__) && __STDC__
13429 # define lt_ptr_t void *
13430 #else
13431 # define lt_ptr_t char *
13432 # define const
13433 #endif
13434
13435 /* The mapping between symbol names and symbols. */
13436 const struct {
13437   const char *name;
13438   lt_ptr_t address;
13439 }
13440 lt_preloaded_symbols[] =
13441 {
13442 EOF
13443           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13444           cat <<\EOF >> conftest.$ac_ext
13445   {0, (lt_ptr_t) 0}
13446 };
13447
13448 #ifdef __cplusplus
13449 }
13450 #endif
13451 EOF
13452           # Now try linking the two files.
13453           mv conftest.$ac_objext conftstm.$ac_objext
13454           lt_save_LIBS="$LIBS"
13455           lt_save_CFLAGS="$CFLAGS"
13456           LIBS="conftstm.$ac_objext"
13457           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13458           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13459   (eval $ac_link) 2>&5
13460   ac_status=$?
13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13463             pipe_works=yes
13464           fi
13465           LIBS="$lt_save_LIBS"
13466           CFLAGS="$lt_save_CFLAGS"
13467         else
13468           echo "cannot find nm_test_func in $nlist" >&5
13469         fi
13470       else
13471         echo "cannot find nm_test_var in $nlist" >&5
13472       fi
13473     else
13474       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13475     fi
13476   else
13477     echo "$progname: failed program was:" >&5
13478     cat conftest.$ac_ext >&5
13479   fi
13480   rm -f conftest* conftst*
13481
13482   # Do not use the global_symbol_pipe unless it works.
13483   if test "$pipe_works" = yes; then
13484     break
13485   else
13486     lt_cv_sys_global_symbol_pipe=
13487   fi
13488 done
13489
13490 fi
13491
13492 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13493   lt_cv_sys_global_symbol_to_cdecl=
13494 fi
13495 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13496   { echo "$as_me:$LINENO: result: failed" >&5
13497 echo "${ECHO_T}failed" >&6; }
13498 else
13499   { echo "$as_me:$LINENO: result: ok" >&5
13500 echo "${ECHO_T}ok" >&6; }
13501 fi
13502
13503 { echo "$as_me:$LINENO: checking for objdir" >&5
13504 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13505 if test "${lt_cv_objdir+set}" = set; then
13506   echo $ECHO_N "(cached) $ECHO_C" >&6
13507 else
13508   rm -f .libs 2>/dev/null
13509 mkdir .libs 2>/dev/null
13510 if test -d .libs; then
13511   lt_cv_objdir=.libs
13512 else
13513   # MS-DOS does not allow filenames that begin with a dot.
13514   lt_cv_objdir=_libs
13515 fi
13516 rmdir .libs 2>/dev/null
13517 fi
13518 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13519 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13520 objdir=$lt_cv_objdir
13521
13522
13523
13524
13525
13526 case $host_os in
13527 aix3*)
13528   # AIX sometimes has problems with the GCC collect2 program.  For some
13529   # reason, if we set the COLLECT_NAMES environment variable, the problems
13530   # vanish in a puff of smoke.
13531   if test "X${COLLECT_NAMES+set}" != Xset; then
13532     COLLECT_NAMES=
13533     export COLLECT_NAMES
13534   fi
13535   ;;
13536 esac
13537
13538 # Sed substitution that helps us do robust quoting.  It backslashifies
13539 # metacharacters that are still active within double-quoted strings.
13540 Xsed='sed -e 1s/^X//'
13541 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13542
13543 # Same as above, but do not quote variable references.
13544 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13545
13546 # Sed substitution to delay expansion of an escaped shell variable in a
13547 # double_quote_subst'ed string.
13548 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13549
13550 # Sed substitution to avoid accidental globbing in evaled expressions
13551 no_glob_subst='s/\*/\\\*/g'
13552
13553 # Constants:
13554 rm="rm -f"
13555
13556 # Global variables:
13557 default_ofile=mklib
13558 can_build_shared=yes
13559
13560 # All known linkers require a `.a' archive for static linking (except MSVC,
13561 # which needs '.lib').
13562 libext=a
13563 ltmain="$ac_aux_dir/ltmain.sh"
13564 ofile="$default_ofile"
13565 with_gnu_ld="$lt_cv_prog_gnu_ld"
13566
13567 if test -n "$ac_tool_prefix"; then
13568   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13569 set dummy ${ac_tool_prefix}ar; ac_word=$2
13570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13572 if test "${ac_cv_prog_AR+set}" = set; then
13573   echo $ECHO_N "(cached) $ECHO_C" >&6
13574 else
13575   if test -n "$AR"; then
13576   ac_cv_prog_AR="$AR" # Let the user override the test.
13577 else
13578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13579 for as_dir in $PATH
13580 do
13581   IFS=$as_save_IFS
13582   test -z "$as_dir" && as_dir=.
13583   for ac_exec_ext in '' $ac_executable_extensions; do
13584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13585     ac_cv_prog_AR="${ac_tool_prefix}ar"
13586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13587     break 2
13588   fi
13589 done
13590 done
13591 IFS=$as_save_IFS
13592
13593 fi
13594 fi
13595 AR=$ac_cv_prog_AR
13596 if test -n "$AR"; then
13597   { echo "$as_me:$LINENO: result: $AR" >&5
13598 echo "${ECHO_T}$AR" >&6; }
13599 else
13600   { echo "$as_me:$LINENO: result: no" >&5
13601 echo "${ECHO_T}no" >&6; }
13602 fi
13603
13604
13605 fi
13606 if test -z "$ac_cv_prog_AR"; then
13607   ac_ct_AR=$AR
13608   # Extract the first word of "ar", so it can be a program name with args.
13609 set dummy ar; ac_word=$2
13610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13612 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13613   echo $ECHO_N "(cached) $ECHO_C" >&6
13614 else
13615   if test -n "$ac_ct_AR"; then
13616   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13617 else
13618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619 for as_dir in $PATH
13620 do
13621   IFS=$as_save_IFS
13622   test -z "$as_dir" && as_dir=.
13623   for ac_exec_ext in '' $ac_executable_extensions; do
13624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13625     ac_cv_prog_ac_ct_AR="ar"
13626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13627     break 2
13628   fi
13629 done
13630 done
13631 IFS=$as_save_IFS
13632
13633 fi
13634 fi
13635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13636 if test -n "$ac_ct_AR"; then
13637   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13638 echo "${ECHO_T}$ac_ct_AR" >&6; }
13639 else
13640   { echo "$as_me:$LINENO: result: no" >&5
13641 echo "${ECHO_T}no" >&6; }
13642 fi
13643
13644   if test "x$ac_ct_AR" = x; then
13645     AR="false"
13646   else
13647     case $cross_compiling:$ac_tool_warned in
13648 yes:)
13649 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13650 whose name does not start with the host triplet.  If you think this
13651 configuration is useful to you, please write to autoconf@gnu.org." >&5
13652 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13653 whose name does not start with the host triplet.  If you think this
13654 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13655 ac_tool_warned=yes ;;
13656 esac
13657     AR=$ac_ct_AR
13658   fi
13659 else
13660   AR="$ac_cv_prog_AR"
13661 fi
13662
13663 if test -n "$ac_tool_prefix"; then
13664   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13665 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13668 if test "${ac_cv_prog_RANLIB+set}" = set; then
13669   echo $ECHO_N "(cached) $ECHO_C" >&6
13670 else
13671   if test -n "$RANLIB"; then
13672   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13673 else
13674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13675 for as_dir in $PATH
13676 do
13677   IFS=$as_save_IFS
13678   test -z "$as_dir" && as_dir=.
13679   for ac_exec_ext in '' $ac_executable_extensions; do
13680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13681     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13683     break 2
13684   fi
13685 done
13686 done
13687 IFS=$as_save_IFS
13688
13689 fi
13690 fi
13691 RANLIB=$ac_cv_prog_RANLIB
13692 if test -n "$RANLIB"; then
13693   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13694 echo "${ECHO_T}$RANLIB" >&6; }
13695 else
13696   { echo "$as_me:$LINENO: result: no" >&5
13697 echo "${ECHO_T}no" >&6; }
13698 fi
13699
13700
13701 fi
13702 if test -z "$ac_cv_prog_RANLIB"; then
13703   ac_ct_RANLIB=$RANLIB
13704   # Extract the first word of "ranlib", so it can be a program name with args.
13705 set dummy ranlib; ac_word=$2
13706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13708 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13709   echo $ECHO_N "(cached) $ECHO_C" >&6
13710 else
13711   if test -n "$ac_ct_RANLIB"; then
13712   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13713 else
13714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13715 for as_dir in $PATH
13716 do
13717   IFS=$as_save_IFS
13718   test -z "$as_dir" && as_dir=.
13719   for ac_exec_ext in '' $ac_executable_extensions; do
13720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13721     ac_cv_prog_ac_ct_RANLIB="ranlib"
13722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13723     break 2
13724   fi
13725 done
13726 done
13727 IFS=$as_save_IFS
13728
13729 fi
13730 fi
13731 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13732 if test -n "$ac_ct_RANLIB"; then
13733   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13734 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13735 else
13736   { echo "$as_me:$LINENO: result: no" >&5
13737 echo "${ECHO_T}no" >&6; }
13738 fi
13739
13740   if test "x$ac_ct_RANLIB" = x; then
13741     RANLIB=":"
13742   else
13743     case $cross_compiling:$ac_tool_warned in
13744 yes:)
13745 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13746 whose name does not start with the host triplet.  If you think this
13747 configuration is useful to you, please write to autoconf@gnu.org." >&5
13748 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13749 whose name does not start with the host triplet.  If you think this
13750 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13751 ac_tool_warned=yes ;;
13752 esac
13753     RANLIB=$ac_ct_RANLIB
13754   fi
13755 else
13756   RANLIB="$ac_cv_prog_RANLIB"
13757 fi
13758
13759 if test -n "$ac_tool_prefix"; then
13760   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13761 set dummy ${ac_tool_prefix}strip; ac_word=$2
13762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13764 if test "${ac_cv_prog_STRIP+set}" = set; then
13765   echo $ECHO_N "(cached) $ECHO_C" >&6
13766 else
13767   if test -n "$STRIP"; then
13768   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13769 else
13770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13771 for as_dir in $PATH
13772 do
13773   IFS=$as_save_IFS
13774   test -z "$as_dir" && as_dir=.
13775   for ac_exec_ext in '' $ac_executable_extensions; do
13776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13777     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13779     break 2
13780   fi
13781 done
13782 done
13783 IFS=$as_save_IFS
13784
13785 fi
13786 fi
13787 STRIP=$ac_cv_prog_STRIP
13788 if test -n "$STRIP"; then
13789   { echo "$as_me:$LINENO: result: $STRIP" >&5
13790 echo "${ECHO_T}$STRIP" >&6; }
13791 else
13792   { echo "$as_me:$LINENO: result: no" >&5
13793 echo "${ECHO_T}no" >&6; }
13794 fi
13795
13796
13797 fi
13798 if test -z "$ac_cv_prog_STRIP"; then
13799   ac_ct_STRIP=$STRIP
13800   # Extract the first word of "strip", so it can be a program name with args.
13801 set dummy strip; ac_word=$2
13802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13804 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13805   echo $ECHO_N "(cached) $ECHO_C" >&6
13806 else
13807   if test -n "$ac_ct_STRIP"; then
13808   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13809 else
13810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811 for as_dir in $PATH
13812 do
13813   IFS=$as_save_IFS
13814   test -z "$as_dir" && as_dir=.
13815   for ac_exec_ext in '' $ac_executable_extensions; do
13816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13817     ac_cv_prog_ac_ct_STRIP="strip"
13818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13819     break 2
13820   fi
13821 done
13822 done
13823 IFS=$as_save_IFS
13824
13825 fi
13826 fi
13827 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13828 if test -n "$ac_ct_STRIP"; then
13829   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13830 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13831 else
13832   { echo "$as_me:$LINENO: result: no" >&5
13833 echo "${ECHO_T}no" >&6; }
13834 fi
13835
13836   if test "x$ac_ct_STRIP" = x; then
13837     STRIP=":"
13838   else
13839     case $cross_compiling:$ac_tool_warned in
13840 yes:)
13841 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13842 whose name does not start with the host triplet.  If you think this
13843 configuration is useful to you, please write to autoconf@gnu.org." >&5
13844 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13845 whose name does not start with the host triplet.  If you think this
13846 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13847 ac_tool_warned=yes ;;
13848 esac
13849     STRIP=$ac_ct_STRIP
13850   fi
13851 else
13852   STRIP="$ac_cv_prog_STRIP"
13853 fi
13854
13855
13856 old_CC="$CC"
13857 old_CFLAGS="$CFLAGS"
13858
13859 # Set sane defaults for various variables
13860 test -z "$AR" && AR=ar
13861 test -z "$AR_FLAGS" && AR_FLAGS=cru
13862 test -z "$AS" && AS=as
13863 test -z "$CC" && CC=cc
13864 test -z "$LTCC" && LTCC=$CC
13865 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13866 test -z "$DLLTOOL" && DLLTOOL=dlltool
13867 test -z "$LD" && LD=ld
13868 test -z "$LN_S" && LN_S="ln -s"
13869 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13870 test -z "$NM" && NM=nm
13871 test -z "$SED" && SED=sed
13872 test -z "$OBJDUMP" && OBJDUMP=objdump
13873 test -z "$RANLIB" && RANLIB=:
13874 test -z "$STRIP" && STRIP=:
13875 test -z "$ac_objext" && ac_objext=o
13876
13877 # Determine commands to create old-style static archives.
13878 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13879 old_postinstall_cmds='chmod 644 $oldlib'
13880 old_postuninstall_cmds=
13881
13882 if test -n "$RANLIB"; then
13883   case $host_os in
13884   openbsd*)
13885     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13886     ;;
13887   *)
13888     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13889     ;;
13890   esac
13891   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13892 fi
13893
13894 for cc_temp in $compiler""; do
13895   case $cc_temp in
13896     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13897     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13898     \-*) ;;
13899     *) break;;
13900   esac
13901 done
13902 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13903
13904
13905 # Only perform the check for file, if the check method requires it
13906 case $deplibs_check_method in
13907 file_magic*)
13908   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13909     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13910 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13911 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13912   echo $ECHO_N "(cached) $ECHO_C" >&6
13913 else
13914   case $MAGIC_CMD in
13915 [\\/*] |  ?:[\\/]*)
13916   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13917   ;;
13918 *)
13919   lt_save_MAGIC_CMD="$MAGIC_CMD"
13920   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13921   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13922   for ac_dir in $ac_dummy; do
13923     IFS="$lt_save_ifs"
13924     test -z "$ac_dir" && ac_dir=.
13925     if test -f $ac_dir/${ac_tool_prefix}file; then
13926       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13927       if test -n "$file_magic_test_file"; then
13928         case $deplibs_check_method in
13929         "file_magic "*)
13930           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13931           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13932           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13933             $EGREP "$file_magic_regex" > /dev/null; then
13934             :
13935           else
13936             cat <<EOF 1>&2
13937
13938 *** Warning: the command libtool uses to detect shared libraries,
13939 *** $file_magic_cmd, produces output that libtool cannot recognize.
13940 *** The result is that libtool may fail to recognize shared libraries
13941 *** as such.  This will affect the creation of libtool libraries that
13942 *** depend on shared libraries, but programs linked with such libtool
13943 *** libraries will work regardless of this problem.  Nevertheless, you
13944 *** may want to report the problem to your system manager and/or to
13945 *** bug-libtool@gnu.org
13946
13947 EOF
13948           fi ;;
13949         esac
13950       fi
13951       break
13952     fi
13953   done
13954   IFS="$lt_save_ifs"
13955   MAGIC_CMD="$lt_save_MAGIC_CMD"
13956   ;;
13957 esac
13958 fi
13959
13960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13961 if test -n "$MAGIC_CMD"; then
13962   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13963 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13964 else
13965   { echo "$as_me:$LINENO: result: no" >&5
13966 echo "${ECHO_T}no" >&6; }
13967 fi
13968
13969 if test -z "$lt_cv_path_MAGIC_CMD"; then
13970   if test -n "$ac_tool_prefix"; then
13971     { echo "$as_me:$LINENO: checking for file" >&5
13972 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13973 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13974   echo $ECHO_N "(cached) $ECHO_C" >&6
13975 else
13976   case $MAGIC_CMD in
13977 [\\/*] |  ?:[\\/]*)
13978   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13979   ;;
13980 *)
13981   lt_save_MAGIC_CMD="$MAGIC_CMD"
13982   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13983   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13984   for ac_dir in $ac_dummy; do
13985     IFS="$lt_save_ifs"
13986     test -z "$ac_dir" && ac_dir=.
13987     if test -f $ac_dir/file; then
13988       lt_cv_path_MAGIC_CMD="$ac_dir/file"
13989       if test -n "$file_magic_test_file"; then
13990         case $deplibs_check_method in
13991         "file_magic "*)
13992           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13993           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13994           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13995             $EGREP "$file_magic_regex" > /dev/null; then
13996             :
13997           else
13998             cat <<EOF 1>&2
13999
14000 *** Warning: the command libtool uses to detect shared libraries,
14001 *** $file_magic_cmd, produces output that libtool cannot recognize.
14002 *** The result is that libtool may fail to recognize shared libraries
14003 *** as such.  This will affect the creation of libtool libraries that
14004 *** depend on shared libraries, but programs linked with such libtool
14005 *** libraries will work regardless of this problem.  Nevertheless, you
14006 *** may want to report the problem to your system manager and/or to
14007 *** bug-libtool@gnu.org
14008
14009 EOF
14010           fi ;;
14011         esac
14012       fi
14013       break
14014     fi
14015   done
14016   IFS="$lt_save_ifs"
14017   MAGIC_CMD="$lt_save_MAGIC_CMD"
14018   ;;
14019 esac
14020 fi
14021
14022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14023 if test -n "$MAGIC_CMD"; then
14024   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14025 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14026 else
14027   { echo "$as_me:$LINENO: result: no" >&5
14028 echo "${ECHO_T}no" >&6; }
14029 fi
14030
14031   else
14032     MAGIC_CMD=:
14033   fi
14034 fi
14035
14036   fi
14037   ;;
14038 esac
14039
14040 enable_dlopen=yes
14041 enable_win32_dll=no
14042
14043 # Check whether --enable-libtool-lock was given.
14044 if test "${enable_libtool_lock+set}" = set; then
14045   enableval=$enable_libtool_lock;
14046 fi
14047
14048 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14049
14050
14051 # Check whether --with-pic was given.
14052 if test "${with_pic+set}" = set; then
14053   withval=$with_pic; pic_mode="$withval"
14054 else
14055   pic_mode=default
14056 fi
14057
14058 test -z "$pic_mode" && pic_mode=default
14059
14060 # Use C for the default configuration in the libtool script
14061 tagname=
14062 lt_save_CC="$CC"
14063 ac_ext=c
14064 ac_cpp='$CPP $CPPFLAGS'
14065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14068
14069
14070 # Source file extension for C test sources.
14071 ac_ext=c
14072
14073 # Object file extension for compiled C test sources.
14074 objext=o
14075 objext=$objext
14076
14077 # Code to be used in simple compile tests
14078 lt_simple_compile_test_code="int some_variable = 0;\n"
14079
14080 # Code to be used in simple link tests
14081 lt_simple_link_test_code='int main(){return(0);}\n'
14082
14083
14084 # If no C compiler was specified, use CC.
14085 LTCC=${LTCC-"$CC"}
14086
14087 # If no C compiler flags were specified, use CFLAGS.
14088 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14089
14090 # Allow CC to be a program name with arguments.
14091 compiler=$CC
14092
14093
14094 # save warnings/boilerplate of simple test code
14095 ac_outfile=conftest.$ac_objext
14096 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14097 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14098 _lt_compiler_boilerplate=`cat conftest.err`
14099 $rm conftest*
14100
14101 ac_outfile=conftest.$ac_objext
14102 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14103 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14104 _lt_linker_boilerplate=`cat conftest.err`
14105 $rm conftest*
14106
14107
14108
14109 lt_prog_compiler_no_builtin_flag=
14110
14111 if test "$GCC" = yes; then
14112   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14113
14114
14115 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14116 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14117 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14118   echo $ECHO_N "(cached) $ECHO_C" >&6
14119 else
14120   lt_cv_prog_compiler_rtti_exceptions=no
14121   ac_outfile=conftest.$ac_objext
14122    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14123    lt_compiler_flag="-fno-rtti -fno-exceptions"
14124    # Insert the option either (1) after the last *FLAGS variable, or
14125    # (2) before a word containing "conftest.", or (3) at the end.
14126    # Note that $ac_compile itself does not contain backslashes and begins
14127    # with a dollar sign (not a hyphen), so the echo should work correctly.
14128    # The option is referenced via a variable to avoid confusing sed.
14129    lt_compile=`echo "$ac_compile" | $SED \
14130    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14131    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14132    -e 's:$: $lt_compiler_flag:'`
14133    (eval echo "\"\$as_me:14133: $lt_compile\"" >&5)
14134    (eval "$lt_compile" 2>conftest.err)
14135    ac_status=$?
14136    cat conftest.err >&5
14137    echo "$as_me:14137: \$? = $ac_status" >&5
14138    if (exit $ac_status) && test -s "$ac_outfile"; then
14139      # The compiler can only warn and ignore the option if not recognized
14140      # So say no if there are warnings other than the usual output.
14141      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14142      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14143      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14144        lt_cv_prog_compiler_rtti_exceptions=yes
14145      fi
14146    fi
14147    $rm conftest*
14148
14149 fi
14150 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14151 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14152
14153 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14154     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14155 else
14156     :
14157 fi
14158
14159 fi
14160
14161 lt_prog_compiler_wl=
14162 lt_prog_compiler_pic=
14163 lt_prog_compiler_static=
14164
14165 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14166 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14167
14168   if test "$GCC" = yes; then
14169     lt_prog_compiler_wl='-Wl,'
14170     lt_prog_compiler_static='-static'
14171
14172     case $host_os in
14173       aix*)
14174       # All AIX code is PIC.
14175       if test "$host_cpu" = ia64; then
14176         # AIX 5 now supports IA64 processor
14177         lt_prog_compiler_static='-Bstatic'
14178       fi
14179       ;;
14180
14181     amigaos*)
14182       # FIXME: we need at least 68020 code to build shared libraries, but
14183       # adding the `-m68020' flag to GCC prevents building anything better,
14184       # like `-m68040'.
14185       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14186       ;;
14187
14188     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14189       # PIC is the default for these OSes.
14190       ;;
14191
14192     mingw* | pw32* | os2*)
14193       # This hack is so that the source file can tell whether it is being
14194       # built for inclusion in a dll (and should export symbols for example).
14195       lt_prog_compiler_pic='-DDLL_EXPORT'
14196       ;;
14197
14198     darwin* | rhapsody*)
14199       # PIC is the default on this platform
14200       # Common symbols not allowed in MH_DYLIB files
14201       lt_prog_compiler_pic='-fno-common'
14202       ;;
14203
14204     interix3*)
14205       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14206       # Instead, we relocate shared libraries at runtime.
14207       ;;
14208
14209     msdosdjgpp*)
14210       # Just because we use GCC doesn't mean we suddenly get shared libraries
14211       # on systems that don't support them.
14212       lt_prog_compiler_can_build_shared=no
14213       enable_shared=no
14214       ;;
14215
14216     sysv4*MP*)
14217       if test -d /usr/nec; then
14218         lt_prog_compiler_pic=-Kconform_pic
14219       fi
14220       ;;
14221
14222     hpux*)
14223       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14224       # not for PA HP-UX.
14225       case $host_cpu in
14226       hppa*64*|ia64*)
14227         # +Z the default
14228         ;;
14229       *)
14230         lt_prog_compiler_pic='-fPIC'
14231         ;;
14232       esac
14233       ;;
14234
14235     *)
14236       lt_prog_compiler_pic='-fPIC'
14237       ;;
14238     esac
14239   else
14240     # PORTME Check for flag to pass linker flags through the system compiler.
14241     case $host_os in
14242     aix*)
14243       lt_prog_compiler_wl='-Wl,'
14244       if test "$host_cpu" = ia64; then
14245         # AIX 5 now supports IA64 processor
14246         lt_prog_compiler_static='-Bstatic'
14247       else
14248         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14249       fi
14250       ;;
14251       darwin*)
14252         # PIC is the default on this platform
14253         # Common symbols not allowed in MH_DYLIB files
14254        case $cc_basename in
14255          xlc*)
14256          lt_prog_compiler_pic='-qnocommon'
14257          lt_prog_compiler_wl='-Wl,'
14258          ;;
14259        esac
14260        ;;
14261
14262     mingw* | pw32* | os2*)
14263       # This hack is so that the source file can tell whether it is being
14264       # built for inclusion in a dll (and should export symbols for example).
14265       lt_prog_compiler_pic='-DDLL_EXPORT'
14266       ;;
14267
14268     hpux9* | hpux10* | hpux11*)
14269       lt_prog_compiler_wl='-Wl,'
14270       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14271       # not for PA HP-UX.
14272       case $host_cpu in
14273       hppa*64*|ia64*)
14274         # +Z the default
14275         ;;
14276       *)
14277         lt_prog_compiler_pic='+Z'
14278         ;;
14279       esac
14280       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14281       lt_prog_compiler_static='${wl}-a ${wl}archive'
14282       ;;
14283
14284     irix5* | irix6* | nonstopux*)
14285       lt_prog_compiler_wl='-Wl,'
14286       # PIC (with -KPIC) is the default.
14287       lt_prog_compiler_static='-non_shared'
14288       ;;
14289
14290     newsos6)
14291       lt_prog_compiler_pic='-KPIC'
14292       lt_prog_compiler_static='-Bstatic'
14293       ;;
14294
14295     linux*)
14296       case $cc_basename in
14297       icc* | ecc*)
14298         lt_prog_compiler_wl='-Wl,'
14299         lt_prog_compiler_pic='-KPIC'
14300         lt_prog_compiler_static='-static'
14301         ;;
14302       pgcc* | pgf77* | pgf90* | pgf95*)
14303         # Portland Group compilers (*not* the Pentium gcc compiler,
14304         # which looks to be a dead project)
14305         lt_prog_compiler_wl='-Wl,'
14306         lt_prog_compiler_pic='-fpic'
14307         lt_prog_compiler_static='-Bstatic'
14308         ;;
14309       ccc*)
14310         lt_prog_compiler_wl='-Wl,'
14311         # All Alpha code is PIC.
14312         lt_prog_compiler_static='-non_shared'
14313         ;;
14314       esac
14315       ;;
14316
14317     osf3* | osf4* | osf5*)
14318       lt_prog_compiler_wl='-Wl,'
14319       # All OSF/1 code is PIC.
14320       lt_prog_compiler_static='-non_shared'
14321       ;;
14322
14323     solaris*)
14324       lt_prog_compiler_pic='-KPIC'
14325       lt_prog_compiler_static='-Bstatic'
14326       case $cc_basename in
14327       f77* | f90* | f95*)
14328         lt_prog_compiler_wl='-Qoption ld ';;
14329       *)
14330         lt_prog_compiler_wl='-Wl,';;
14331       esac
14332       ;;
14333
14334     sunos4*)
14335       lt_prog_compiler_wl='-Qoption ld '
14336       lt_prog_compiler_pic='-PIC'
14337       lt_prog_compiler_static='-Bstatic'
14338       ;;
14339
14340     sysv4 | sysv4.2uw2* | sysv4.3*)
14341       lt_prog_compiler_wl='-Wl,'
14342       lt_prog_compiler_pic='-KPIC'
14343       lt_prog_compiler_static='-Bstatic'
14344       ;;
14345
14346     sysv4*MP*)
14347       if test -d /usr/nec ;then
14348         lt_prog_compiler_pic='-Kconform_pic'
14349         lt_prog_compiler_static='-Bstatic'
14350       fi
14351       ;;
14352
14353     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14354       lt_prog_compiler_wl='-Wl,'
14355       lt_prog_compiler_pic='-KPIC'
14356       lt_prog_compiler_static='-Bstatic'
14357       ;;
14358
14359     unicos*)
14360       lt_prog_compiler_wl='-Wl,'
14361       lt_prog_compiler_can_build_shared=no
14362       ;;
14363
14364     uts4*)
14365       lt_prog_compiler_pic='-pic'
14366       lt_prog_compiler_static='-Bstatic'
14367       ;;
14368
14369     *)
14370       lt_prog_compiler_can_build_shared=no
14371       ;;
14372     esac
14373   fi
14374
14375 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14376 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14377
14378 #
14379 # Check to make sure the PIC flag actually works.
14380 #
14381 if test -n "$lt_prog_compiler_pic"; then
14382
14383 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14384 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14385 if test "${lt_prog_compiler_pic_works+set}" = set; then
14386   echo $ECHO_N "(cached) $ECHO_C" >&6
14387 else
14388   lt_prog_compiler_pic_works=no
14389   ac_outfile=conftest.$ac_objext
14390    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14391    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14392    # Insert the option either (1) after the last *FLAGS variable, or
14393    # (2) before a word containing "conftest.", or (3) at the end.
14394    # Note that $ac_compile itself does not contain backslashes and begins
14395    # with a dollar sign (not a hyphen), so the echo should work correctly.
14396    # The option is referenced via a variable to avoid confusing sed.
14397    lt_compile=`echo "$ac_compile" | $SED \
14398    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14399    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14400    -e 's:$: $lt_compiler_flag:'`
14401    (eval echo "\"\$as_me:14401: $lt_compile\"" >&5)
14402    (eval "$lt_compile" 2>conftest.err)
14403    ac_status=$?
14404    cat conftest.err >&5
14405    echo "$as_me:14405: \$? = $ac_status" >&5
14406    if (exit $ac_status) && test -s "$ac_outfile"; then
14407      # The compiler can only warn and ignore the option if not recognized
14408      # So say no if there are warnings other than the usual output.
14409      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14410      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14411      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14412        lt_prog_compiler_pic_works=yes
14413      fi
14414    fi
14415    $rm conftest*
14416
14417 fi
14418 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14419 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14420
14421 if test x"$lt_prog_compiler_pic_works" = xyes; then
14422     case $lt_prog_compiler_pic in
14423      "" | " "*) ;;
14424      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14425      esac
14426 else
14427     lt_prog_compiler_pic=
14428      lt_prog_compiler_can_build_shared=no
14429 fi
14430
14431 fi
14432 case $host_os in
14433   # For platforms which do not support PIC, -DPIC is meaningless:
14434   *djgpp*)
14435     lt_prog_compiler_pic=
14436     ;;
14437   *)
14438     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14439     ;;
14440 esac
14441
14442 #
14443 # Check to make sure the static flag actually works.
14444 #
14445 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14446 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14447 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14448 if test "${lt_prog_compiler_static_works+set}" = set; then
14449   echo $ECHO_N "(cached) $ECHO_C" >&6
14450 else
14451   lt_prog_compiler_static_works=no
14452    save_LDFLAGS="$LDFLAGS"
14453    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14454    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14455    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14456      # The linker can only warn and ignore the option if not recognized
14457      # So say no if there are warnings
14458      if test -s conftest.err; then
14459        # Append any errors to the config.log.
14460        cat conftest.err 1>&5
14461        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14462        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14463        if diff conftest.exp conftest.er2 >/dev/null; then
14464          lt_prog_compiler_static_works=yes
14465        fi
14466      else
14467        lt_prog_compiler_static_works=yes
14468      fi
14469    fi
14470    $rm conftest*
14471    LDFLAGS="$save_LDFLAGS"
14472
14473 fi
14474 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14475 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14476
14477 if test x"$lt_prog_compiler_static_works" = xyes; then
14478     :
14479 else
14480     lt_prog_compiler_static=
14481 fi
14482
14483
14484 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14485 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14486 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14487   echo $ECHO_N "(cached) $ECHO_C" >&6
14488 else
14489   lt_cv_prog_compiler_c_o=no
14490    $rm -r conftest 2>/dev/null
14491    mkdir conftest
14492    cd conftest
14493    mkdir out
14494    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14495
14496    lt_compiler_flag="-o out/conftest2.$ac_objext"
14497    # Insert the option either (1) after the last *FLAGS variable, or
14498    # (2) before a word containing "conftest.", or (3) at the end.
14499    # Note that $ac_compile itself does not contain backslashes and begins
14500    # with a dollar sign (not a hyphen), so the echo should work correctly.
14501    lt_compile=`echo "$ac_compile" | $SED \
14502    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14503    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14504    -e 's:$: $lt_compiler_flag:'`
14505    (eval echo "\"\$as_me:14505: $lt_compile\"" >&5)
14506    (eval "$lt_compile" 2>out/conftest.err)
14507    ac_status=$?
14508    cat out/conftest.err >&5
14509    echo "$as_me:14509: \$? = $ac_status" >&5
14510    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14511    then
14512      # The compiler can only warn and ignore the option if not recognized
14513      # So say no if there are warnings
14514      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14515      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14516      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14517        lt_cv_prog_compiler_c_o=yes
14518      fi
14519    fi
14520    chmod u+w . 2>&5
14521    $rm conftest*
14522    # SGI C++ compiler will create directory out/ii_files/ for
14523    # template instantiation
14524    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14525    $rm out/* && rmdir out
14526    cd ..
14527    rmdir conftest
14528    $rm conftest*
14529
14530 fi
14531 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14532 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14533
14534
14535 hard_links="nottested"
14536 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14537   # do not overwrite the value of need_locks provided by the user
14538   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14539 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14540   hard_links=yes
14541   $rm conftest*
14542   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14543   touch conftest.a
14544   ln conftest.a conftest.b 2>&5 || hard_links=no
14545   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14546   { echo "$as_me:$LINENO: result: $hard_links" >&5
14547 echo "${ECHO_T}$hard_links" >&6; }
14548   if test "$hard_links" = no; then
14549     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14550 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14551     need_locks=warn
14552   fi
14553 else
14554   need_locks=no
14555 fi
14556
14557 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14558 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14559
14560   runpath_var=
14561   allow_undefined_flag=
14562   enable_shared_with_static_runtimes=no
14563   archive_cmds=
14564   archive_expsym_cmds=
14565   old_archive_From_new_cmds=
14566   old_archive_from_expsyms_cmds=
14567   export_dynamic_flag_spec=
14568   whole_archive_flag_spec=
14569   thread_safe_flag_spec=
14570   hardcode_libdir_flag_spec=
14571   hardcode_libdir_flag_spec_ld=
14572   hardcode_libdir_separator=
14573   hardcode_direct=no
14574   hardcode_minus_L=no
14575   hardcode_shlibpath_var=unsupported
14576   link_all_deplibs=unknown
14577   hardcode_automatic=no
14578   module_cmds=
14579   module_expsym_cmds=
14580   always_export_symbols=no
14581   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14582   # include_expsyms should be a list of space-separated symbols to be *always*
14583   # included in the symbol list
14584   include_expsyms=
14585   # exclude_expsyms can be an extended regexp of symbols to exclude
14586   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14587   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14588   # as well as any symbol that contains `d'.
14589   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14590   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14591   # platforms (ab)use it in PIC code, but their linkers get confused if
14592   # the symbol is explicitly referenced.  Since portable code cannot
14593   # rely on this symbol name, it's probably fine to never include it in
14594   # preloaded symbol tables.
14595   extract_expsyms_cmds=
14596   # Just being paranoid about ensuring that cc_basename is set.
14597   for cc_temp in $compiler""; do
14598   case $cc_temp in
14599     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14600     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14601     \-*) ;;
14602     *) break;;
14603   esac
14604 done
14605 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14606
14607   case $host_os in
14608   cygwin* | mingw* | pw32*)
14609     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14610     # When not using gcc, we currently assume that we are using
14611     # Microsoft Visual C++.
14612     if test "$GCC" != yes; then
14613       with_gnu_ld=no
14614     fi
14615     ;;
14616   interix*)
14617     # we just hope/assume this is gcc and not c89 (= MSVC++)
14618     with_gnu_ld=yes
14619     ;;
14620   openbsd*)
14621     with_gnu_ld=no
14622     ;;
14623   esac
14624
14625   ld_shlibs=yes
14626   if test "$with_gnu_ld" = yes; then
14627     # If archive_cmds runs LD, not CC, wlarc should be empty
14628     wlarc='${wl}'
14629
14630     # Set some defaults for GNU ld with shared library support. These
14631     # are reset later if shared libraries are not supported. Putting them
14632     # here allows them to be overridden if necessary.
14633     runpath_var=LD_RUN_PATH
14634     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14635     export_dynamic_flag_spec='${wl}--export-dynamic'
14636     # ancient GNU ld didn't support --whole-archive et. al.
14637     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14638         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14639       else
14640         whole_archive_flag_spec=
14641     fi
14642     supports_anon_versioning=no
14643     case `$LD -v 2>/dev/null` in
14644       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14645       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14646       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14647       *\ 2.11.*) ;; # other 2.11 versions
14648       *) supports_anon_versioning=yes ;;
14649     esac
14650
14651     # See if GNU ld supports shared libraries.
14652     case $host_os in
14653     aix3* | aix4* | aix5*)
14654       # On AIX/PPC, the GNU linker is very broken
14655       if test "$host_cpu" != ia64; then
14656         ld_shlibs=no
14657         cat <<EOF 1>&2
14658
14659 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14660 *** to be unable to reliably create shared libraries on AIX.
14661 *** Therefore, libtool is disabling shared libraries support.  If you
14662 *** really care for shared libraries, you may want to modify your PATH
14663 *** so that a non-GNU linker is found, and then restart.
14664
14665 EOF
14666       fi
14667       ;;
14668
14669     amigaos*)
14670       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)'
14671       hardcode_libdir_flag_spec='-L$libdir'
14672       hardcode_minus_L=yes
14673
14674       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14675       # that the semantics of dynamic libraries on AmigaOS, at least up
14676       # to version 4, is to share data among multiple programs linked
14677       # with the same dynamic library.  Since this doesn't match the
14678       # behavior of shared libraries on other platforms, we can't use
14679       # them.
14680       ld_shlibs=no
14681       ;;
14682
14683     beos*)
14684       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14685         allow_undefined_flag=unsupported
14686         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14687         # support --undefined.  This deserves some investigation.  FIXME
14688         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14689       else
14690         ld_shlibs=no
14691       fi
14692       ;;
14693
14694     cygwin* | mingw* | pw32*)
14695       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14696       # as there is no search path for DLLs.
14697       hardcode_libdir_flag_spec='-L$libdir'
14698       allow_undefined_flag=unsupported
14699       always_export_symbols=no
14700       enable_shared_with_static_runtimes=yes
14701       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14702
14703       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14704         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14705         # If the export-symbols file already is a .def file (1st line
14706         # is EXPORTS), use it as is; otherwise, prepend...
14707         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14708           cp $export_symbols $output_objdir/$soname.def;
14709         else
14710           echo EXPORTS > $output_objdir/$soname.def;
14711           cat $export_symbols >> $output_objdir/$soname.def;
14712         fi~
14713         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14714       else
14715         ld_shlibs=no
14716       fi
14717       ;;
14718
14719     interix3*)
14720       hardcode_direct=no
14721       hardcode_shlibpath_var=no
14722       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14723       export_dynamic_flag_spec='${wl}-E'
14724       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14725       # Instead, shared libraries are loaded at an image base (0x10000000 by
14726       # default) and relocated if they conflict, which is a slow very memory
14727       # consuming and fragmenting process.  To avoid this, we pick a random,
14728       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14729       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14730       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14731       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'
14732       ;;
14733
14734     linux*)
14735       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14736         tmp_addflag=
14737         case $cc_basename,$host_cpu in
14738         pgcc*)                          # Portland Group C compiler
14739           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'
14740           tmp_addflag=' $pic_flag'
14741           ;;
14742         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14743           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'
14744           tmp_addflag=' $pic_flag -Mnomain' ;;
14745         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14746           tmp_addflag=' -i_dynamic' ;;
14747         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14748           tmp_addflag=' -i_dynamic -nofor_main' ;;
14749         ifc* | ifort*)                  # Intel Fortran compiler
14750           tmp_addflag=' -nofor_main' ;;
14751         esac
14752         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14753
14754         if test $supports_anon_versioning = yes; then
14755           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14756   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14757   $echo "local: *; };" >> $output_objdir/$libname.ver~
14758           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14759         fi
14760       else
14761         ld_shlibs=no
14762       fi
14763       ;;
14764
14765     netbsd*)
14766       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14767         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14768         wlarc=
14769       else
14770         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14771         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14772       fi
14773       ;;
14774
14775     solaris*)
14776       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14777         ld_shlibs=no
14778         cat <<EOF 1>&2
14779
14780 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14781 *** create shared libraries on Solaris systems.  Therefore, libtool
14782 *** is disabling shared libraries support.  We urge you to upgrade GNU
14783 *** binutils to release 2.9.1 or newer.  Another option is to modify
14784 *** your PATH or compiler configuration so that the native linker is
14785 *** used, and then restart.
14786
14787 EOF
14788       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14789         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14790         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14791       else
14792         ld_shlibs=no
14793       fi
14794       ;;
14795
14796     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14797       case `$LD -v 2>&1` in
14798         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14799         ld_shlibs=no
14800         cat <<_LT_EOF 1>&2
14801
14802 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14803 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14804 *** is disabling shared libraries support.  We urge you to upgrade GNU
14805 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14806 *** your PATH or compiler configuration so that the native linker is
14807 *** used, and then restart.
14808
14809 _LT_EOF
14810         ;;
14811         *)
14812           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14813             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14814             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14815             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14816           else
14817             ld_shlibs=no
14818           fi
14819         ;;
14820       esac
14821       ;;
14822
14823     sunos4*)
14824       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14825       wlarc=
14826       hardcode_direct=yes
14827       hardcode_shlibpath_var=no
14828       ;;
14829
14830     *)
14831       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14832         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14833         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14834       else
14835         ld_shlibs=no
14836       fi
14837       ;;
14838     esac
14839
14840     if test "$ld_shlibs" = no; then
14841       runpath_var=
14842       hardcode_libdir_flag_spec=
14843       export_dynamic_flag_spec=
14844       whole_archive_flag_spec=
14845     fi
14846   else
14847     # PORTME fill in a description of your system's linker (not GNU ld)
14848     case $host_os in
14849     aix3*)
14850       allow_undefined_flag=unsupported
14851       always_export_symbols=yes
14852       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'
14853       # Note: this linker hardcodes the directories in LIBPATH if there
14854       # are no directories specified by -L.
14855       hardcode_minus_L=yes
14856       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14857         # Neither direct hardcoding nor static linking is supported with a
14858         # broken collect2.
14859         hardcode_direct=unsupported
14860       fi
14861       ;;
14862
14863     aix4* | aix5*)
14864       if test "$host_cpu" = ia64; then
14865         # On IA64, the linker does run time linking by default, so we don't
14866         # have to do anything special.
14867         aix_use_runtimelinking=no
14868         exp_sym_flag='-Bexport'
14869         no_entry_flag=""
14870       else
14871         # If we're using GNU nm, then we don't want the "-C" option.
14872         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14873         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14874           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'
14875         else
14876           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'
14877         fi
14878         aix_use_runtimelinking=no
14879
14880         # Test if we are trying to use run time linking or normal
14881         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14882         # need to do runtime linking.
14883         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14884           for ld_flag in $LDFLAGS; do
14885           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14886             aix_use_runtimelinking=yes
14887             break
14888           fi
14889           done
14890           ;;
14891         esac
14892
14893         exp_sym_flag='-bexport'
14894         no_entry_flag='-bnoentry'
14895       fi
14896
14897       # When large executables or shared objects are built, AIX ld can
14898       # have problems creating the table of contents.  If linking a library
14899       # or program results in "error TOC overflow" add -mminimal-toc to
14900       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14901       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14902
14903       archive_cmds=''
14904       hardcode_direct=yes
14905       hardcode_libdir_separator=':'
14906       link_all_deplibs=yes
14907
14908       if test "$GCC" = yes; then
14909         case $host_os in aix4.[012]|aix4.[012].*)
14910         # We only want to do this on AIX 4.2 and lower, the check
14911         # below for broken collect2 doesn't work under 4.3+
14912           collect2name=`${CC} -print-prog-name=collect2`
14913           if test -f "$collect2name" && \
14914            strings "$collect2name" | grep resolve_lib_name >/dev/null
14915           then
14916           # We have reworked collect2
14917           hardcode_direct=yes
14918           else
14919           # We have old collect2
14920           hardcode_direct=unsupported
14921           # It fails to find uninstalled libraries when the uninstalled
14922           # path is not listed in the libpath.  Setting hardcode_minus_L
14923           # to unsupported forces relinking
14924           hardcode_minus_L=yes
14925           hardcode_libdir_flag_spec='-L$libdir'
14926           hardcode_libdir_separator=
14927           fi
14928           ;;
14929         esac
14930         shared_flag='-shared'
14931         if test "$aix_use_runtimelinking" = yes; then
14932           shared_flag="$shared_flag "'${wl}-G'
14933         fi
14934       else
14935         # not using gcc
14936         if test "$host_cpu" = ia64; then
14937         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14938         # chokes on -Wl,-G. The following line is correct:
14939           shared_flag='-G'
14940         else
14941           if test "$aix_use_runtimelinking" = yes; then
14942             shared_flag='${wl}-G'
14943           else
14944             shared_flag='${wl}-bM:SRE'
14945           fi
14946         fi
14947       fi
14948
14949       # It seems that -bexpall does not export symbols beginning with
14950       # underscore (_), so it is better to generate a list of symbols to export.
14951       always_export_symbols=yes
14952       if test "$aix_use_runtimelinking" = yes; then
14953         # Warning - without using the other runtime loading flags (-brtl),
14954         # -berok will link without error, but may produce a broken library.
14955         allow_undefined_flag='-berok'
14956        # Determine the default libpath from the value encoded in an empty executable.
14957        cat >conftest.$ac_ext <<_ACEOF
14958 /* confdefs.h.  */
14959 _ACEOF
14960 cat confdefs.h >>conftest.$ac_ext
14961 cat >>conftest.$ac_ext <<_ACEOF
14962 /* end confdefs.h.  */
14963
14964 int
14965 main ()
14966 {
14967
14968   ;
14969   return 0;
14970 }
14971 _ACEOF
14972 rm -f conftest.$ac_objext conftest$ac_exeext
14973 if { (ac_try="$ac_link"
14974 case "(($ac_try" in
14975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976   *) ac_try_echo=$ac_try;;
14977 esac
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979   (eval "$ac_link") 2>conftest.er1
14980   ac_status=$?
14981   grep -v '^ *+' conftest.er1 >conftest.err
14982   rm -f conftest.er1
14983   cat conftest.err >&5
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); } &&
14986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14987   { (case "(($ac_try" in
14988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989   *) ac_try_echo=$ac_try;;
14990 esac
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992   (eval "$ac_try") 2>&5
14993   ac_status=$?
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); }; } &&
14996          { ac_try='test -s conftest$ac_exeext'
14997   { (case "(($ac_try" in
14998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999   *) ac_try_echo=$ac_try;;
15000 esac
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002   (eval "$ac_try") 2>&5
15003   ac_status=$?
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); }; }; then
15006
15007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15008 }'`
15009 # Check for a 64-bit object if we didn't find anything.
15010 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; }
15011 }'`; fi
15012 else
15013   echo "$as_me: failed program was:" >&5
15014 sed 's/^/| /' conftest.$ac_ext >&5
15015
15016
15017 fi
15018
15019 rm -f core conftest.err conftest.$ac_objext \
15020       conftest$ac_exeext conftest.$ac_ext
15021 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15022
15023        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15024         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"
15025        else
15026         if test "$host_cpu" = ia64; then
15027           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15028           allow_undefined_flag="-z nodefs"
15029           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"
15030         else
15031          # Determine the default libpath from the value encoded in an empty executable.
15032          cat >conftest.$ac_ext <<_ACEOF
15033 /* confdefs.h.  */
15034 _ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h.  */
15038
15039 int
15040 main ()
15041 {
15042
15043   ;
15044   return 0;
15045 }
15046 _ACEOF
15047 rm -f conftest.$ac_objext conftest$ac_exeext
15048 if { (ac_try="$ac_link"
15049 case "(($ac_try" in
15050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051   *) ac_try_echo=$ac_try;;
15052 esac
15053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054   (eval "$ac_link") 2>conftest.er1
15055   ac_status=$?
15056   grep -v '^ *+' conftest.er1 >conftest.err
15057   rm -f conftest.er1
15058   cat conftest.err >&5
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); } &&
15061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15062   { (case "(($ac_try" in
15063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064   *) ac_try_echo=$ac_try;;
15065 esac
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067   (eval "$ac_try") 2>&5
15068   ac_status=$?
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); }; } &&
15071          { ac_try='test -s conftest$ac_exeext'
15072   { (case "(($ac_try" in
15073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074   *) ac_try_echo=$ac_try;;
15075 esac
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077   (eval "$ac_try") 2>&5
15078   ac_status=$?
15079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080   (exit $ac_status); }; }; then
15081
15082 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15083 }'`
15084 # Check for a 64-bit object if we didn't find anything.
15085 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; }
15086 }'`; fi
15087 else
15088   echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15090
15091
15092 fi
15093
15094 rm -f core conftest.err conftest.$ac_objext \
15095       conftest$ac_exeext conftest.$ac_ext
15096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15097
15098          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15099           # Warning - without using the other run time loading flags,
15100           # -berok will link without error, but may produce a broken library.
15101           no_undefined_flag=' ${wl}-bernotok'
15102           allow_undefined_flag=' ${wl}-berok'
15103           # Exported symbols can be pulled into shared objects from archives
15104           whole_archive_flag_spec='$convenience'
15105           archive_cmds_need_lc=yes
15106           # This is similar to how AIX traditionally builds its shared libraries.
15107           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'
15108         fi
15109       fi
15110       ;;
15111
15112     amigaos*)
15113       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)'
15114       hardcode_libdir_flag_spec='-L$libdir'
15115       hardcode_minus_L=yes
15116       # see comment about different semantics on the GNU ld section
15117       ld_shlibs=no
15118       ;;
15119
15120     bsdi[45]*)
15121       export_dynamic_flag_spec=-rdynamic
15122       ;;
15123
15124     cygwin* | mingw* | pw32*)
15125       # When not using gcc, we currently assume that we are using
15126       # Microsoft Visual C++.
15127       # hardcode_libdir_flag_spec is actually meaningless, as there is
15128       # no search path for DLLs.
15129       hardcode_libdir_flag_spec=' '
15130       allow_undefined_flag=unsupported
15131       # Tell ltmain to make .lib files, not .a files.
15132       libext=lib
15133       # Tell ltmain to make .dll files, not .so files.
15134       shrext_cmds=".dll"
15135       # FIXME: Setting linknames here is a bad hack.
15136       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15137       # The linker will automatically build a .lib file if we build a DLL.
15138       old_archive_From_new_cmds='true'
15139       # FIXME: Should let the user specify the lib program.
15140       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15141       fix_srcfile_path='`cygpath -w "$srcfile"`'
15142       enable_shared_with_static_runtimes=yes
15143       ;;
15144
15145     darwin* | rhapsody*)
15146       case $host_os in
15147         rhapsody* | darwin1.[012])
15148          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15149          ;;
15150        *) # Darwin 1.3 on
15151          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15152            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15153          else
15154            case ${MACOSX_DEPLOYMENT_TARGET} in
15155              10.[012])
15156                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15157                ;;
15158              10.*)
15159                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15160                ;;
15161            esac
15162          fi
15163          ;;
15164       esac
15165       archive_cmds_need_lc=no
15166       hardcode_direct=no
15167       hardcode_automatic=yes
15168       hardcode_shlibpath_var=unsupported
15169       whole_archive_flag_spec=''
15170       link_all_deplibs=yes
15171     if test "$GCC" = yes ; then
15172         output_verbose_link_cmd='echo'
15173         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15174       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15175       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15176       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}'
15177       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}'
15178     else
15179       case $cc_basename in
15180         xlc*)
15181          output_verbose_link_cmd='echo'
15182          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15183          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15184           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15185          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}'
15186           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}'
15187           ;;
15188        *)
15189          ld_shlibs=no
15190           ;;
15191       esac
15192     fi
15193       ;;
15194
15195     dgux*)
15196       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15197       hardcode_libdir_flag_spec='-L$libdir'
15198       hardcode_shlibpath_var=no
15199       ;;
15200
15201     freebsd1*)
15202       ld_shlibs=no
15203       ;;
15204
15205     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15206     # support.  Future versions do this automatically, but an explicit c++rt0.o
15207     # does not break anything, and helps significantly (at the cost of a little
15208     # extra space).
15209     freebsd2.2*)
15210       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15211       hardcode_libdir_flag_spec='-R$libdir'
15212       hardcode_direct=yes
15213       hardcode_shlibpath_var=no
15214       ;;
15215
15216     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15217     freebsd2*)
15218       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15219       hardcode_direct=yes
15220       hardcode_minus_L=yes
15221       hardcode_shlibpath_var=no
15222       ;;
15223
15224     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15225     freebsd* | kfreebsd*-gnu | dragonfly*)
15226       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15227       hardcode_libdir_flag_spec='-R$libdir'
15228       hardcode_direct=yes
15229       hardcode_shlibpath_var=no
15230       ;;
15231
15232     hpux9*)
15233       if test "$GCC" = yes; then
15234         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'
15235       else
15236         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'
15237       fi
15238       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15239       hardcode_libdir_separator=:
15240       hardcode_direct=yes
15241
15242       # hardcode_minus_L: Not really in the search PATH,
15243       # but as the default location of the library.
15244       hardcode_minus_L=yes
15245       export_dynamic_flag_spec='${wl}-E'
15246       ;;
15247
15248     hpux10*)
15249       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15250         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15251       else
15252         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15253       fi
15254       if test "$with_gnu_ld" = no; then
15255         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15256         hardcode_libdir_separator=:
15257
15258         hardcode_direct=yes
15259         export_dynamic_flag_spec='${wl}-E'
15260
15261         # hardcode_minus_L: Not really in the search PATH,
15262         # but as the default location of the library.
15263         hardcode_minus_L=yes
15264       fi
15265       ;;
15266
15267     hpux11*)
15268       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15269         case $host_cpu in
15270         hppa*64*)
15271           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15272           ;;
15273         ia64*)
15274           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15275           ;;
15276         *)
15277           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15278           ;;
15279         esac
15280       else
15281         case $host_cpu in
15282         hppa*64*)
15283           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15284           ;;
15285         ia64*)
15286           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15287           ;;
15288         *)
15289           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15290           ;;
15291         esac
15292       fi
15293       if test "$with_gnu_ld" = no; then
15294         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15295         hardcode_libdir_separator=:
15296
15297         case $host_cpu in
15298         hppa*64*|ia64*)
15299           hardcode_libdir_flag_spec_ld='+b $libdir'
15300           hardcode_direct=no
15301           hardcode_shlibpath_var=no
15302           ;;
15303         *)
15304           hardcode_direct=yes
15305           export_dynamic_flag_spec='${wl}-E'
15306
15307           # hardcode_minus_L: Not really in the search PATH,
15308           # but as the default location of the library.
15309           hardcode_minus_L=yes
15310           ;;
15311         esac
15312       fi
15313       ;;
15314
15315     irix5* | irix6* | nonstopux*)
15316       if test "$GCC" = yes; then
15317         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'
15318       else
15319         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'
15320         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15321       fi
15322       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15323       hardcode_libdir_separator=:
15324       link_all_deplibs=yes
15325       ;;
15326
15327     netbsd*)
15328       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15329         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15330       else
15331         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15332       fi
15333       hardcode_libdir_flag_spec='-R$libdir'
15334       hardcode_direct=yes
15335       hardcode_shlibpath_var=no
15336       ;;
15337
15338     newsos6)
15339       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15340       hardcode_direct=yes
15341       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15342       hardcode_libdir_separator=:
15343       hardcode_shlibpath_var=no
15344       ;;
15345
15346     openbsd*)
15347       hardcode_direct=yes
15348       hardcode_shlibpath_var=no
15349       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15350         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15351         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15352         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15353         export_dynamic_flag_spec='${wl}-E'
15354       else
15355        case $host_os in
15356          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15357            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15358            hardcode_libdir_flag_spec='-R$libdir'
15359            ;;
15360          *)
15361            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15362            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15363            ;;
15364        esac
15365       fi
15366       ;;
15367
15368     os2*)
15369       hardcode_libdir_flag_spec='-L$libdir'
15370       hardcode_minus_L=yes
15371       allow_undefined_flag=unsupported
15372       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'
15373       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15374       ;;
15375
15376     osf3*)
15377       if test "$GCC" = yes; then
15378         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15379         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'
15380       else
15381         allow_undefined_flag=' -expect_unresolved \*'
15382         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'
15383       fi
15384       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15385       hardcode_libdir_separator=:
15386       ;;
15387
15388     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15389       if test "$GCC" = yes; then
15390         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15391         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'
15392         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15393       else
15394         allow_undefined_flag=' -expect_unresolved \*'
15395         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'
15396         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15397         $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'
15398
15399         # Both c and cxx compiler support -rpath directly
15400         hardcode_libdir_flag_spec='-rpath $libdir'
15401       fi
15402       hardcode_libdir_separator=:
15403       ;;
15404
15405     solaris*)
15406       no_undefined_flag=' -z text'
15407       if test "$GCC" = yes; then
15408         wlarc='${wl}'
15409         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15410         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15411           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15412       else
15413         wlarc=''
15414         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15415         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15416         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15417       fi
15418       hardcode_libdir_flag_spec='-R$libdir'
15419       hardcode_shlibpath_var=no
15420       case $host_os in
15421       solaris2.[0-5] | solaris2.[0-5].*) ;;
15422       *)
15423         # The compiler driver will combine linker options so we
15424         # cannot just pass the convience library names through
15425         # without $wl, iff we do not link with $LD.
15426         # Luckily, gcc supports the same syntax we need for Sun Studio.
15427         # Supported since Solaris 2.6 (maybe 2.5.1?)
15428         case $wlarc in
15429         '')
15430           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15431         *)
15432           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' ;;
15433         esac ;;
15434       esac
15435       link_all_deplibs=yes
15436       ;;
15437
15438     sunos4*)
15439       if test "x$host_vendor" = xsequent; then
15440         # Use $CC to link under sequent, because it throws in some extra .o
15441         # files that make .init and .fini sections work.
15442         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15443       else
15444         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15445       fi
15446       hardcode_libdir_flag_spec='-L$libdir'
15447       hardcode_direct=yes
15448       hardcode_minus_L=yes
15449       hardcode_shlibpath_var=no
15450       ;;
15451
15452     sysv4)
15453       case $host_vendor in
15454         sni)
15455           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15456           hardcode_direct=yes # is this really true???
15457         ;;
15458         siemens)
15459           ## LD is ld it makes a PLAMLIB
15460           ## CC just makes a GrossModule.
15461           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15462           reload_cmds='$CC -r -o $output$reload_objs'
15463           hardcode_direct=no
15464         ;;
15465         motorola)
15466           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15467           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15468         ;;
15469       esac
15470       runpath_var='LD_RUN_PATH'
15471       hardcode_shlibpath_var=no
15472       ;;
15473
15474     sysv4.3*)
15475       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15476       hardcode_shlibpath_var=no
15477       export_dynamic_flag_spec='-Bexport'
15478       ;;
15479
15480     sysv4*MP*)
15481       if test -d /usr/nec; then
15482         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15483         hardcode_shlibpath_var=no
15484         runpath_var=LD_RUN_PATH
15485         hardcode_runpath_var=yes
15486         ld_shlibs=yes
15487       fi
15488       ;;
15489
15490     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15491       no_undefined_flag='${wl}-z,text'
15492       archive_cmds_need_lc=no
15493       hardcode_shlibpath_var=no
15494       runpath_var='LD_RUN_PATH'
15495
15496       if test "$GCC" = yes; then
15497         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15498         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15499       else
15500         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15501         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15502       fi
15503       ;;
15504
15505     sysv5* | sco3.2v5* | sco5v6*)
15506       # Note: We can NOT use -z defs as we might desire, because we do not
15507       # link with -lc, and that would cause any symbols used from libc to
15508       # always be unresolved, which means just about no library would
15509       # ever link correctly.  If we're not using GNU ld we use -z text
15510       # though, which does catch some bad symbols but isn't as heavy-handed
15511       # as -z defs.
15512       no_undefined_flag='${wl}-z,text'
15513       allow_undefined_flag='${wl}-z,nodefs'
15514       archive_cmds_need_lc=no
15515       hardcode_shlibpath_var=no
15516       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15517       hardcode_libdir_separator=':'
15518       link_all_deplibs=yes
15519       export_dynamic_flag_spec='${wl}-Bexport'
15520       runpath_var='LD_RUN_PATH'
15521
15522       if test "$GCC" = yes; then
15523         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15524         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15525       else
15526         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15527         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15528       fi
15529       ;;
15530
15531     uts4*)
15532       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15533       hardcode_libdir_flag_spec='-L$libdir'
15534       hardcode_shlibpath_var=no
15535       ;;
15536
15537     *)
15538       ld_shlibs=no
15539       ;;
15540     esac
15541   fi
15542
15543 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15544 echo "${ECHO_T}$ld_shlibs" >&6; }
15545 test "$ld_shlibs" = no && can_build_shared=no
15546
15547 #
15548 # Do we need to explicitly link libc?
15549 #
15550 case "x$archive_cmds_need_lc" in
15551 x|xyes)
15552   # Assume -lc should be added
15553   archive_cmds_need_lc=yes
15554
15555   if test "$enable_shared" = yes && test "$GCC" = yes; then
15556     case $archive_cmds in
15557     *'~'*)
15558       # FIXME: we may have to deal with multi-command sequences.
15559       ;;
15560     '$CC '*)
15561       # Test whether the compiler implicitly links with -lc since on some
15562       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15563       # to ld, don't add -lc before -lgcc.
15564       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15565 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15566       $rm conftest*
15567       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15568
15569       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15570   (eval $ac_compile) 2>&5
15571   ac_status=$?
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); } 2>conftest.err; then
15574         soname=conftest
15575         lib=conftest
15576         libobjs=conftest.$ac_objext
15577         deplibs=
15578         wl=$lt_prog_compiler_wl
15579         pic_flag=$lt_prog_compiler_pic
15580         compiler_flags=-v
15581         linker_flags=-v
15582         verstring=
15583         output_objdir=.
15584         libname=conftest
15585         lt_save_allow_undefined_flag=$allow_undefined_flag
15586         allow_undefined_flag=
15587         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15588   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15589   ac_status=$?
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); }
15592         then
15593           archive_cmds_need_lc=no
15594         else
15595           archive_cmds_need_lc=yes
15596         fi
15597         allow_undefined_flag=$lt_save_allow_undefined_flag
15598       else
15599         cat conftest.err 1>&5
15600       fi
15601       $rm conftest*
15602       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15603 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15604       ;;
15605     esac
15606   fi
15607   ;;
15608 esac
15609
15610 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15611 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15612 library_names_spec=
15613 libname_spec='lib$name'
15614 soname_spec=
15615 shrext_cmds=".so"
15616 postinstall_cmds=
15617 postuninstall_cmds=
15618 finish_cmds=
15619 finish_eval=
15620 shlibpath_var=
15621 shlibpath_overrides_runpath=unknown
15622 version_type=none
15623 dynamic_linker="$host_os ld.so"
15624 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15625 if test "$GCC" = yes; then
15626   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15627   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15628     # if the path contains ";" then we assume it to be the separator
15629     # otherwise default to the standard path separator (i.e. ":") - it is
15630     # assumed that no part of a normal pathname contains ";" but that should
15631     # okay in the real world where ";" in dirpaths is itself problematic.
15632     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15633   else
15634     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15635   fi
15636 else
15637   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15638 fi
15639 need_lib_prefix=unknown
15640 hardcode_into_libs=no
15641
15642 # when you set need_version to no, make sure it does not cause -set_version
15643 # flags to be left without arguments
15644 need_version=unknown
15645
15646 case $host_os in
15647 aix3*)
15648   version_type=linux
15649   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15650   shlibpath_var=LIBPATH
15651
15652   # AIX 3 has no versioning support, so we append a major version to the name.
15653   soname_spec='${libname}${release}${shared_ext}$major'
15654   ;;
15655
15656 aix4* | aix5*)
15657   version_type=linux
15658   need_lib_prefix=no
15659   need_version=no
15660   hardcode_into_libs=yes
15661   if test "$host_cpu" = ia64; then
15662     # AIX 5 supports IA64
15663     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15664     shlibpath_var=LD_LIBRARY_PATH
15665   else
15666     # With GCC up to 2.95.x, collect2 would create an import file
15667     # for dependence libraries.  The import file would start with
15668     # the line `#! .'.  This would cause the generated library to
15669     # depend on `.', always an invalid library.  This was fixed in
15670     # development snapshots of GCC prior to 3.0.
15671     case $host_os in
15672       aix4 | aix4.[01] | aix4.[01].*)
15673       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15674            echo ' yes '
15675            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15676         :
15677       else
15678         can_build_shared=no
15679       fi
15680       ;;
15681     esac
15682     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15683     # soname into executable. Probably we can add versioning support to
15684     # collect2, so additional links can be useful in future.
15685     if test "$aix_use_runtimelinking" = yes; then
15686       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15687       # instead of lib<name>.a to let people know that these are not
15688       # typical AIX shared libraries.
15689       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15690     else
15691       # We preserve .a as extension for shared libraries through AIX4.2
15692       # and later when we are not doing run time linking.
15693       library_names_spec='${libname}${release}.a $libname.a'
15694       soname_spec='${libname}${release}${shared_ext}$major'
15695     fi
15696     shlibpath_var=LIBPATH
15697   fi
15698   ;;
15699
15700 amigaos*)
15701   library_names_spec='$libname.ixlibrary $libname.a'
15702   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15703   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'
15704   ;;
15705
15706 beos*)
15707   library_names_spec='${libname}${shared_ext}'
15708   dynamic_linker="$host_os ld.so"
15709   shlibpath_var=LIBRARY_PATH
15710   ;;
15711
15712 bsdi[45]*)
15713   version_type=linux
15714   need_version=no
15715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15716   soname_spec='${libname}${release}${shared_ext}$major'
15717   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15718   shlibpath_var=LD_LIBRARY_PATH
15719   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15720   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15721   # the default ld.so.conf also contains /usr/contrib/lib and
15722   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15723   # libtool to hard-code these into programs
15724   ;;
15725
15726 cygwin* | mingw* | pw32*)
15727   version_type=windows
15728   shrext_cmds=".dll"
15729   need_version=no
15730   need_lib_prefix=no
15731
15732   case $GCC,$host_os in
15733   yes,cygwin* | yes,mingw* | yes,pw32*)
15734     library_names_spec='$libname.dll.a'
15735     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15736     postinstall_cmds='base_file=`basename \${file}`~
15737       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15738       dldir=$destdir/`dirname \$dlpath`~
15739       test -d \$dldir || mkdir -p \$dldir~
15740       $install_prog $dir/$dlname \$dldir/$dlname~
15741       chmod a+x \$dldir/$dlname'
15742     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15743       dlpath=$dir/\$dldll~
15744        $rm \$dlpath'
15745     shlibpath_overrides_runpath=yes
15746
15747     case $host_os in
15748     cygwin*)
15749       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15750       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15751       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15752       ;;
15753     mingw*)
15754       # MinGW DLLs use traditional 'lib' prefix
15755       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15756       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15757       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15758         # It is most probably a Windows format PATH printed by
15759         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15760         # path with ; separators, and with drive letters. We can handle the
15761         # drive letters (cygwin fileutils understands them), so leave them,
15762         # especially as we might pass files found there to a mingw objdump,
15763         # which wouldn't understand a cygwinified path. Ahh.
15764         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15765       else
15766         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15767       fi
15768       ;;
15769     pw32*)
15770       # pw32 DLLs use 'pw' prefix rather than 'lib'
15771       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15772       ;;
15773     esac
15774     ;;
15775
15776   *)
15777     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15778     ;;
15779   esac
15780   dynamic_linker='Win32 ld.exe'
15781   # FIXME: first we should search . and the directory the executable is in
15782   shlibpath_var=PATH
15783   ;;
15784
15785 darwin* | rhapsody*)
15786   dynamic_linker="$host_os dyld"
15787   version_type=darwin
15788   need_lib_prefix=no
15789   need_version=no
15790   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15791   soname_spec='${libname}${release}${major}$shared_ext'
15792   shlibpath_overrides_runpath=yes
15793   shlibpath_var=DYLD_LIBRARY_PATH
15794   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15795   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15796   if test "$GCC" = yes; then
15797     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"`
15798   else
15799     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15800   fi
15801   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15802   ;;
15803
15804 dgux*)
15805   version_type=linux
15806   need_lib_prefix=no
15807   need_version=no
15808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15809   soname_spec='${libname}${release}${shared_ext}$major'
15810   shlibpath_var=LD_LIBRARY_PATH
15811   ;;
15812
15813 freebsd1*)
15814   dynamic_linker=no
15815   ;;
15816
15817 kfreebsd*-gnu)
15818   version_type=linux
15819   need_lib_prefix=no
15820   need_version=no
15821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15822   soname_spec='${libname}${release}${shared_ext}$major'
15823   shlibpath_var=LD_LIBRARY_PATH
15824   shlibpath_overrides_runpath=no
15825   hardcode_into_libs=yes
15826   dynamic_linker='GNU ld.so'
15827   ;;
15828
15829 freebsd* | dragonfly*)
15830   # DragonFly does not have aout.  When/if they implement a new
15831   # versioning mechanism, adjust this.
15832   if test -x /usr/bin/objformat; then
15833     objformat=`/usr/bin/objformat`
15834   else
15835     case $host_os in
15836     freebsd[123]*) objformat=aout ;;
15837     *) objformat=elf ;;
15838     esac
15839   fi
15840   version_type=freebsd-$objformat
15841   case $version_type in
15842     freebsd-elf*)
15843       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15844       need_version=no
15845       need_lib_prefix=no
15846       ;;
15847     freebsd-*)
15848       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15849       need_version=yes
15850       ;;
15851   esac
15852   shlibpath_var=LD_LIBRARY_PATH
15853   case $host_os in
15854   freebsd2*)
15855     shlibpath_overrides_runpath=yes
15856     ;;
15857   freebsd3.[01]* | freebsdelf3.[01]*)
15858     shlibpath_overrides_runpath=yes
15859     hardcode_into_libs=yes
15860     ;;
15861   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15862   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15863     shlibpath_overrides_runpath=no
15864     hardcode_into_libs=yes
15865     ;;
15866   freebsd*) # from 4.6 on
15867     shlibpath_overrides_runpath=yes
15868     hardcode_into_libs=yes
15869     ;;
15870   esac
15871   ;;
15872
15873 gnu*)
15874   version_type=linux
15875   need_lib_prefix=no
15876   need_version=no
15877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15878   soname_spec='${libname}${release}${shared_ext}$major'
15879   shlibpath_var=LD_LIBRARY_PATH
15880   hardcode_into_libs=yes
15881   ;;
15882
15883 hpux9* | hpux10* | hpux11*)
15884   # Give a soname corresponding to the major version so that dld.sl refuses to
15885   # link against other versions.
15886   version_type=sunos
15887   need_lib_prefix=no
15888   need_version=no
15889   case $host_cpu in
15890   ia64*)
15891     shrext_cmds='.so'
15892     hardcode_into_libs=yes
15893     dynamic_linker="$host_os dld.so"
15894     shlibpath_var=LD_LIBRARY_PATH
15895     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15896     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15897     soname_spec='${libname}${release}${shared_ext}$major'
15898     if test "X$HPUX_IA64_MODE" = X32; then
15899       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15900     else
15901       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15902     fi
15903     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15904     ;;
15905    hppa*64*)
15906      shrext_cmds='.sl'
15907      hardcode_into_libs=yes
15908      dynamic_linker="$host_os dld.sl"
15909      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15910      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15911      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15912      soname_spec='${libname}${release}${shared_ext}$major'
15913      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15914      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15915      ;;
15916    *)
15917     shrext_cmds='.sl'
15918     dynamic_linker="$host_os dld.sl"
15919     shlibpath_var=SHLIB_PATH
15920     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15921     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15922     soname_spec='${libname}${release}${shared_ext}$major'
15923     ;;
15924   esac
15925   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15926   postinstall_cmds='chmod 555 $lib'
15927   ;;
15928
15929 interix3*)
15930   version_type=linux
15931   need_lib_prefix=no
15932   need_version=no
15933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15934   soname_spec='${libname}${release}${shared_ext}$major'
15935   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15936   shlibpath_var=LD_LIBRARY_PATH
15937   shlibpath_overrides_runpath=no
15938   hardcode_into_libs=yes
15939   ;;
15940
15941 irix5* | irix6* | nonstopux*)
15942   case $host_os in
15943     nonstopux*) version_type=nonstopux ;;
15944     *)
15945         if test "$lt_cv_prog_gnu_ld" = yes; then
15946                 version_type=linux
15947         else
15948                 version_type=irix
15949         fi ;;
15950   esac
15951   need_lib_prefix=no
15952   need_version=no
15953   soname_spec='${libname}${release}${shared_ext}$major'
15954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15955   case $host_os in
15956   irix5* | nonstopux*)
15957     libsuff= shlibsuff=
15958     ;;
15959   *)
15960     case $LD in # libtool.m4 will add one of these switches to LD
15961     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15962       libsuff= shlibsuff= libmagic=32-bit;;
15963     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15964       libsuff=32 shlibsuff=N32 libmagic=N32;;
15965     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15966       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15967     *) libsuff= shlibsuff= libmagic=never-match;;
15968     esac
15969     ;;
15970   esac
15971   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15972   shlibpath_overrides_runpath=no
15973   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15974   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15975   hardcode_into_libs=yes
15976   ;;
15977
15978 # No shared lib support for Linux oldld, aout, or coff.
15979 linux*oldld* | linux*aout* | linux*coff*)
15980   dynamic_linker=no
15981   ;;
15982
15983 # This must be Linux ELF.
15984 linux*)
15985   version_type=linux
15986   need_lib_prefix=no
15987   need_version=no
15988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15989   soname_spec='${libname}${release}${shared_ext}$major'
15990   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15991   shlibpath_var=LD_LIBRARY_PATH
15992   shlibpath_overrides_runpath=no
15993   # This implies no fast_install, which is unacceptable.
15994   # Some rework will be needed to allow for fast_install
15995   # before this can be enabled.
15996   hardcode_into_libs=yes
15997
15998   # Append ld.so.conf contents to the search path
15999   if test -f /etc/ld.so.conf; then
16000     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' ' '`
16001     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16002   fi
16003
16004   # We used to test for /lib/ld.so.1 and disable shared libraries on
16005   # powerpc, because MkLinux only supported shared libraries with the
16006   # GNU dynamic linker.  Since this was broken with cross compilers,
16007   # most powerpc-linux boxes support dynamic linking these days and
16008   # people can always --disable-shared, the test was removed, and we
16009   # assume the GNU/Linux dynamic linker is in use.
16010   dynamic_linker='GNU/Linux ld.so'
16011   ;;
16012
16013 knetbsd*-gnu)
16014   version_type=linux
16015   need_lib_prefix=no
16016   need_version=no
16017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16018   soname_spec='${libname}${release}${shared_ext}$major'
16019   shlibpath_var=LD_LIBRARY_PATH
16020   shlibpath_overrides_runpath=no
16021   hardcode_into_libs=yes
16022   dynamic_linker='GNU ld.so'
16023   ;;
16024
16025 netbsd*)
16026   version_type=sunos
16027   need_lib_prefix=no
16028   need_version=no
16029   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16030     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16031     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16032     dynamic_linker='NetBSD (a.out) ld.so'
16033   else
16034     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16035     soname_spec='${libname}${release}${shared_ext}$major'
16036     dynamic_linker='NetBSD ld.elf_so'
16037   fi
16038   shlibpath_var=LD_LIBRARY_PATH
16039   shlibpath_overrides_runpath=yes
16040   hardcode_into_libs=yes
16041   ;;
16042
16043 newsos6)
16044   version_type=linux
16045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16046   shlibpath_var=LD_LIBRARY_PATH
16047   shlibpath_overrides_runpath=yes
16048   ;;
16049
16050 nto-qnx*)
16051   version_type=linux
16052   need_lib_prefix=no
16053   need_version=no
16054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16055   soname_spec='${libname}${release}${shared_ext}$major'
16056   shlibpath_var=LD_LIBRARY_PATH
16057   shlibpath_overrides_runpath=yes
16058   ;;
16059
16060 openbsd*)
16061   version_type=sunos
16062   sys_lib_dlsearch_path_spec="/usr/lib"
16063   need_lib_prefix=no
16064   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16065   case $host_os in
16066     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16067     *)                         need_version=no  ;;
16068   esac
16069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16070   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16071   shlibpath_var=LD_LIBRARY_PATH
16072   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16073     case $host_os in
16074       openbsd2.[89] | openbsd2.[89].*)
16075         shlibpath_overrides_runpath=no
16076         ;;
16077       *)
16078         shlibpath_overrides_runpath=yes
16079         ;;
16080       esac
16081   else
16082     shlibpath_overrides_runpath=yes
16083   fi
16084   ;;
16085
16086 os2*)
16087   libname_spec='$name'
16088   shrext_cmds=".dll"
16089   need_lib_prefix=no
16090   library_names_spec='$libname${shared_ext} $libname.a'
16091   dynamic_linker='OS/2 ld.exe'
16092   shlibpath_var=LIBPATH
16093   ;;
16094
16095 osf3* | osf4* | osf5*)
16096   version_type=osf
16097   need_lib_prefix=no
16098   need_version=no
16099   soname_spec='${libname}${release}${shared_ext}$major'
16100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16101   shlibpath_var=LD_LIBRARY_PATH
16102   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16103   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16104   ;;
16105
16106 solaris*)
16107   version_type=linux
16108   need_lib_prefix=no
16109   need_version=no
16110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16111   soname_spec='${libname}${release}${shared_ext}$major'
16112   shlibpath_var=LD_LIBRARY_PATH
16113   shlibpath_overrides_runpath=yes
16114   hardcode_into_libs=yes
16115   # ldd complains unless libraries are executable
16116   postinstall_cmds='chmod +x $lib'
16117   ;;
16118
16119 sunos4*)
16120   version_type=sunos
16121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16122   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16123   shlibpath_var=LD_LIBRARY_PATH
16124   shlibpath_overrides_runpath=yes
16125   if test "$with_gnu_ld" = yes; then
16126     need_lib_prefix=no
16127   fi
16128   need_version=yes
16129   ;;
16130
16131 sysv4 | sysv4.3*)
16132   version_type=linux
16133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16134   soname_spec='${libname}${release}${shared_ext}$major'
16135   shlibpath_var=LD_LIBRARY_PATH
16136   case $host_vendor in
16137     sni)
16138       shlibpath_overrides_runpath=no
16139       need_lib_prefix=no
16140       export_dynamic_flag_spec='${wl}-Blargedynsym'
16141       runpath_var=LD_RUN_PATH
16142       ;;
16143     siemens)
16144       need_lib_prefix=no
16145       ;;
16146     motorola)
16147       need_lib_prefix=no
16148       need_version=no
16149       shlibpath_overrides_runpath=no
16150       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16151       ;;
16152   esac
16153   ;;
16154
16155 sysv4*MP*)
16156   if test -d /usr/nec ;then
16157     version_type=linux
16158     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16159     soname_spec='$libname${shared_ext}.$major'
16160     shlibpath_var=LD_LIBRARY_PATH
16161   fi
16162   ;;
16163
16164 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16165   version_type=freebsd-elf
16166   need_lib_prefix=no
16167   need_version=no
16168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16169   soname_spec='${libname}${release}${shared_ext}$major'
16170   shlibpath_var=LD_LIBRARY_PATH
16171   hardcode_into_libs=yes
16172   if test "$with_gnu_ld" = yes; then
16173     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16174     shlibpath_overrides_runpath=no
16175   else
16176     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16177     shlibpath_overrides_runpath=yes
16178     case $host_os in
16179       sco3.2v5*)
16180         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16181         ;;
16182     esac
16183   fi
16184   sys_lib_dlsearch_path_spec='/usr/lib'
16185   ;;
16186
16187 uts4*)
16188   version_type=linux
16189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16190   soname_spec='${libname}${release}${shared_ext}$major'
16191   shlibpath_var=LD_LIBRARY_PATH
16192   ;;
16193
16194 *)
16195   dynamic_linker=no
16196   ;;
16197 esac
16198 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16199 echo "${ECHO_T}$dynamic_linker" >&6; }
16200 test "$dynamic_linker" = no && can_build_shared=no
16201
16202 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16203 if test "$GCC" = yes; then
16204   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16205 fi
16206
16207 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16208 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16209 hardcode_action=
16210 if test -n "$hardcode_libdir_flag_spec" || \
16211    test -n "$runpath_var" || \
16212    test "X$hardcode_automatic" = "Xyes" ; then
16213
16214   # We can hardcode non-existant directories.
16215   if test "$hardcode_direct" != no &&
16216      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16217      # have to relink, otherwise we might link with an installed library
16218      # when we should be linking with a yet-to-be-installed one
16219      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16220      test "$hardcode_minus_L" != no; then
16221     # Linking always hardcodes the temporary library directory.
16222     hardcode_action=relink
16223   else
16224     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16225     hardcode_action=immediate
16226   fi
16227 else
16228   # We cannot hardcode anything, or else we can only hardcode existing
16229   # directories.
16230   hardcode_action=unsupported
16231 fi
16232 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16233 echo "${ECHO_T}$hardcode_action" >&6; }
16234
16235 if test "$hardcode_action" = relink; then
16236   # Fast installation is not supported
16237   enable_fast_install=no
16238 elif test "$shlibpath_overrides_runpath" = yes ||
16239      test "$enable_shared" = no; then
16240   # Fast installation is not necessary
16241   enable_fast_install=needless
16242 fi
16243
16244 striplib=
16245 old_striplib=
16246 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16247 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16248 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16249   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16250   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16251   { echo "$as_me:$LINENO: result: yes" >&5
16252 echo "${ECHO_T}yes" >&6; }
16253 else
16254 # FIXME - insert some real tests, host_os isn't really good enough
16255   case $host_os in
16256    darwin*)
16257        if test -n "$STRIP" ; then
16258          striplib="$STRIP -x"
16259          { echo "$as_me:$LINENO: result: yes" >&5
16260 echo "${ECHO_T}yes" >&6; }
16261        else
16262   { echo "$as_me:$LINENO: result: no" >&5
16263 echo "${ECHO_T}no" >&6; }
16264 fi
16265        ;;
16266    *)
16267   { echo "$as_me:$LINENO: result: no" >&5
16268 echo "${ECHO_T}no" >&6; }
16269     ;;
16270   esac
16271 fi
16272
16273 if test "x$enable_dlopen" != xyes; then
16274   enable_dlopen=unknown
16275   enable_dlopen_self=unknown
16276   enable_dlopen_self_static=unknown
16277 else
16278   lt_cv_dlopen=no
16279   lt_cv_dlopen_libs=
16280
16281   case $host_os in
16282   beos*)
16283     lt_cv_dlopen="load_add_on"
16284     lt_cv_dlopen_libs=
16285     lt_cv_dlopen_self=yes
16286     ;;
16287
16288   mingw* | pw32*)
16289     lt_cv_dlopen="LoadLibrary"
16290     lt_cv_dlopen_libs=
16291    ;;
16292
16293   cygwin*)
16294     lt_cv_dlopen="dlopen"
16295     lt_cv_dlopen_libs=
16296    ;;
16297
16298   darwin*)
16299   # if libdl is installed we need to link against it
16300     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16301 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16302 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16303   echo $ECHO_N "(cached) $ECHO_C" >&6
16304 else
16305   ac_check_lib_save_LIBS=$LIBS
16306 LIBS="-ldl  $LIBS"
16307 cat >conftest.$ac_ext <<_ACEOF
16308 /* confdefs.h.  */
16309 _ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h.  */
16313
16314 /* Override any GCC internal prototype to avoid an error.
16315    Use char because int might match the return type of a GCC
16316    builtin and then its argument prototype would still apply.  */
16317 #ifdef __cplusplus
16318 extern "C"
16319 #endif
16320 char dlopen ();
16321 int
16322 main ()
16323 {
16324 return dlopen ();
16325   ;
16326   return 0;
16327 }
16328 _ACEOF
16329 rm -f conftest.$ac_objext conftest$ac_exeext
16330 if { (ac_try="$ac_link"
16331 case "(($ac_try" in
16332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333   *) ac_try_echo=$ac_try;;
16334 esac
16335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16336   (eval "$ac_link") 2>conftest.er1
16337   ac_status=$?
16338   grep -v '^ *+' conftest.er1 >conftest.err
16339   rm -f conftest.er1
16340   cat conftest.err >&5
16341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342   (exit $ac_status); } &&
16343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16344   { (case "(($ac_try" in
16345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346   *) ac_try_echo=$ac_try;;
16347 esac
16348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349   (eval "$ac_try") 2>&5
16350   ac_status=$?
16351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352   (exit $ac_status); }; } &&
16353          { ac_try='test -s conftest$ac_exeext'
16354   { (case "(($ac_try" in
16355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356   *) ac_try_echo=$ac_try;;
16357 esac
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359   (eval "$ac_try") 2>&5
16360   ac_status=$?
16361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362   (exit $ac_status); }; }; then
16363   ac_cv_lib_dl_dlopen=yes
16364 else
16365   echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16367
16368         ac_cv_lib_dl_dlopen=no
16369 fi
16370
16371 rm -f core conftest.err conftest.$ac_objext \
16372       conftest$ac_exeext conftest.$ac_ext
16373 LIBS=$ac_check_lib_save_LIBS
16374 fi
16375 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16376 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16377 if test $ac_cv_lib_dl_dlopen = yes; then
16378   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16379 else
16380
16381     lt_cv_dlopen="dyld"
16382     lt_cv_dlopen_libs=
16383     lt_cv_dlopen_self=yes
16384
16385 fi
16386
16387    ;;
16388
16389   *)
16390     { echo "$as_me:$LINENO: checking for shl_load" >&5
16391 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16392 if test "${ac_cv_func_shl_load+set}" = set; then
16393   echo $ECHO_N "(cached) $ECHO_C" >&6
16394 else
16395   cat >conftest.$ac_ext <<_ACEOF
16396 /* confdefs.h.  */
16397 _ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h.  */
16401 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16403 #define shl_load innocuous_shl_load
16404
16405 /* System header to define __stub macros and hopefully few prototypes,
16406     which can conflict with char shl_load (); below.
16407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16408     <limits.h> exists even on freestanding compilers.  */
16409
16410 #ifdef __STDC__
16411 # include <limits.h>
16412 #else
16413 # include <assert.h>
16414 #endif
16415
16416 #undef shl_load
16417
16418 /* Override any GCC internal prototype to avoid an error.
16419    Use char because int might match the return type of a GCC
16420    builtin and then its argument prototype would still apply.  */
16421 #ifdef __cplusplus
16422 extern "C"
16423 #endif
16424 char shl_load ();
16425 /* The GNU C library defines this for functions which it implements
16426     to always fail with ENOSYS.  Some functions are actually named
16427     something starting with __ and the normal name is an alias.  */
16428 #if defined __stub_shl_load || defined __stub___shl_load
16429 choke me
16430 #endif
16431
16432 int
16433 main ()
16434 {
16435 return shl_load ();
16436   ;
16437   return 0;
16438 }
16439 _ACEOF
16440 rm -f conftest.$ac_objext conftest$ac_exeext
16441 if { (ac_try="$ac_link"
16442 case "(($ac_try" in
16443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444   *) ac_try_echo=$ac_try;;
16445 esac
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447   (eval "$ac_link") 2>conftest.er1
16448   ac_status=$?
16449   grep -v '^ *+' conftest.er1 >conftest.err
16450   rm -f conftest.er1
16451   cat conftest.err >&5
16452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453   (exit $ac_status); } &&
16454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16455   { (case "(($ac_try" in
16456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457   *) ac_try_echo=$ac_try;;
16458 esac
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460   (eval "$ac_try") 2>&5
16461   ac_status=$?
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); }; } &&
16464          { ac_try='test -s conftest$ac_exeext'
16465   { (case "(($ac_try" in
16466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467   *) ac_try_echo=$ac_try;;
16468 esac
16469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470   (eval "$ac_try") 2>&5
16471   ac_status=$?
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); }; }; then
16474   ac_cv_func_shl_load=yes
16475 else
16476   echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16478
16479         ac_cv_func_shl_load=no
16480 fi
16481
16482 rm -f core conftest.err conftest.$ac_objext \
16483       conftest$ac_exeext conftest.$ac_ext
16484 fi
16485 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16486 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16487 if test $ac_cv_func_shl_load = yes; then
16488   lt_cv_dlopen="shl_load"
16489 else
16490   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16491 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16492 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16493   echo $ECHO_N "(cached) $ECHO_C" >&6
16494 else
16495   ac_check_lib_save_LIBS=$LIBS
16496 LIBS="-ldld  $LIBS"
16497 cat >conftest.$ac_ext <<_ACEOF
16498 /* confdefs.h.  */
16499 _ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h.  */
16503
16504 /* Override any GCC internal prototype to avoid an error.
16505    Use char because int might match the return type of a GCC
16506    builtin and then its argument prototype would still apply.  */
16507 #ifdef __cplusplus
16508 extern "C"
16509 #endif
16510 char shl_load ();
16511 int
16512 main ()
16513 {
16514 return shl_load ();
16515   ;
16516   return 0;
16517 }
16518 _ACEOF
16519 rm -f conftest.$ac_objext conftest$ac_exeext
16520 if { (ac_try="$ac_link"
16521 case "(($ac_try" in
16522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523   *) ac_try_echo=$ac_try;;
16524 esac
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526   (eval "$ac_link") 2>conftest.er1
16527   ac_status=$?
16528   grep -v '^ *+' conftest.er1 >conftest.err
16529   rm -f conftest.er1
16530   cat conftest.err >&5
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); } &&
16533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16534   { (case "(($ac_try" in
16535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536   *) ac_try_echo=$ac_try;;
16537 esac
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539   (eval "$ac_try") 2>&5
16540   ac_status=$?
16541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542   (exit $ac_status); }; } &&
16543          { ac_try='test -s conftest$ac_exeext'
16544   { (case "(($ac_try" in
16545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546   *) ac_try_echo=$ac_try;;
16547 esac
16548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16549   (eval "$ac_try") 2>&5
16550   ac_status=$?
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); }; }; then
16553   ac_cv_lib_dld_shl_load=yes
16554 else
16555   echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16557
16558         ac_cv_lib_dld_shl_load=no
16559 fi
16560
16561 rm -f core conftest.err conftest.$ac_objext \
16562       conftest$ac_exeext conftest.$ac_ext
16563 LIBS=$ac_check_lib_save_LIBS
16564 fi
16565 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16566 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16567 if test $ac_cv_lib_dld_shl_load = yes; then
16568   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16569 else
16570   { echo "$as_me:$LINENO: checking for dlopen" >&5
16571 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16572 if test "${ac_cv_func_dlopen+set}" = set; then
16573   echo $ECHO_N "(cached) $ECHO_C" >&6
16574 else
16575   cat >conftest.$ac_ext <<_ACEOF
16576 /* confdefs.h.  */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h.  */
16581 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16582    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16583 #define dlopen innocuous_dlopen
16584
16585 /* System header to define __stub macros and hopefully few prototypes,
16586     which can conflict with char dlopen (); below.
16587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16588     <limits.h> exists even on freestanding compilers.  */
16589
16590 #ifdef __STDC__
16591 # include <limits.h>
16592 #else
16593 # include <assert.h>
16594 #endif
16595
16596 #undef dlopen
16597
16598 /* Override any GCC internal prototype to avoid an error.
16599    Use char because int might match the return type of a GCC
16600    builtin and then its argument prototype would still apply.  */
16601 #ifdef __cplusplus
16602 extern "C"
16603 #endif
16604 char dlopen ();
16605 /* The GNU C library defines this for functions which it implements
16606     to always fail with ENOSYS.  Some functions are actually named
16607     something starting with __ and the normal name is an alias.  */
16608 #if defined __stub_dlopen || defined __stub___dlopen
16609 choke me
16610 #endif
16611
16612 int
16613 main ()
16614 {
16615 return dlopen ();
16616   ;
16617   return 0;
16618 }
16619 _ACEOF
16620 rm -f conftest.$ac_objext conftest$ac_exeext
16621 if { (ac_try="$ac_link"
16622 case "(($ac_try" in
16623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624   *) ac_try_echo=$ac_try;;
16625 esac
16626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627   (eval "$ac_link") 2>conftest.er1
16628   ac_status=$?
16629   grep -v '^ *+' conftest.er1 >conftest.err
16630   rm -f conftest.er1
16631   cat conftest.err >&5
16632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633   (exit $ac_status); } &&
16634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16635   { (case "(($ac_try" in
16636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637   *) ac_try_echo=$ac_try;;
16638 esac
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640   (eval "$ac_try") 2>&5
16641   ac_status=$?
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); }; } &&
16644          { ac_try='test -s conftest$ac_exeext'
16645   { (case "(($ac_try" in
16646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647   *) ac_try_echo=$ac_try;;
16648 esac
16649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650   (eval "$ac_try") 2>&5
16651   ac_status=$?
16652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653   (exit $ac_status); }; }; then
16654   ac_cv_func_dlopen=yes
16655 else
16656   echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16658
16659         ac_cv_func_dlopen=no
16660 fi
16661
16662 rm -f core conftest.err conftest.$ac_objext \
16663       conftest$ac_exeext conftest.$ac_ext
16664 fi
16665 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16666 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16667 if test $ac_cv_func_dlopen = yes; then
16668   lt_cv_dlopen="dlopen"
16669 else
16670   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16671 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16672 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16673   echo $ECHO_N "(cached) $ECHO_C" >&6
16674 else
16675   ac_check_lib_save_LIBS=$LIBS
16676 LIBS="-ldl  $LIBS"
16677 cat >conftest.$ac_ext <<_ACEOF
16678 /* confdefs.h.  */
16679 _ACEOF
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h.  */
16683
16684 /* Override any GCC internal prototype to avoid an error.
16685    Use char because int might match the return type of a GCC
16686    builtin and then its argument prototype would still apply.  */
16687 #ifdef __cplusplus
16688 extern "C"
16689 #endif
16690 char dlopen ();
16691 int
16692 main ()
16693 {
16694 return dlopen ();
16695   ;
16696   return 0;
16697 }
16698 _ACEOF
16699 rm -f conftest.$ac_objext conftest$ac_exeext
16700 if { (ac_try="$ac_link"
16701 case "(($ac_try" in
16702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703   *) ac_try_echo=$ac_try;;
16704 esac
16705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16706   (eval "$ac_link") 2>conftest.er1
16707   ac_status=$?
16708   grep -v '^ *+' conftest.er1 >conftest.err
16709   rm -f conftest.er1
16710   cat conftest.err >&5
16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); } &&
16713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16714   { (case "(($ac_try" in
16715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716   *) ac_try_echo=$ac_try;;
16717 esac
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719   (eval "$ac_try") 2>&5
16720   ac_status=$?
16721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722   (exit $ac_status); }; } &&
16723          { ac_try='test -s conftest$ac_exeext'
16724   { (case "(($ac_try" in
16725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726   *) ac_try_echo=$ac_try;;
16727 esac
16728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729   (eval "$ac_try") 2>&5
16730   ac_status=$?
16731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732   (exit $ac_status); }; }; then
16733   ac_cv_lib_dl_dlopen=yes
16734 else
16735   echo "$as_me: failed program was:" >&5
16736 sed 's/^/| /' conftest.$ac_ext >&5
16737
16738         ac_cv_lib_dl_dlopen=no
16739 fi
16740
16741 rm -f core conftest.err conftest.$ac_objext \
16742       conftest$ac_exeext conftest.$ac_ext
16743 LIBS=$ac_check_lib_save_LIBS
16744 fi
16745 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16746 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16747 if test $ac_cv_lib_dl_dlopen = yes; then
16748   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16749 else
16750   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16751 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16752 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16753   echo $ECHO_N "(cached) $ECHO_C" >&6
16754 else
16755   ac_check_lib_save_LIBS=$LIBS
16756 LIBS="-lsvld  $LIBS"
16757 cat >conftest.$ac_ext <<_ACEOF
16758 /* confdefs.h.  */
16759 _ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h.  */
16763
16764 /* Override any GCC internal prototype to avoid an error.
16765    Use char because int might match the return type of a GCC
16766    builtin and then its argument prototype would still apply.  */
16767 #ifdef __cplusplus
16768 extern "C"
16769 #endif
16770 char dlopen ();
16771 int
16772 main ()
16773 {
16774 return dlopen ();
16775   ;
16776   return 0;
16777 }
16778 _ACEOF
16779 rm -f conftest.$ac_objext conftest$ac_exeext
16780 if { (ac_try="$ac_link"
16781 case "(($ac_try" in
16782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783   *) ac_try_echo=$ac_try;;
16784 esac
16785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786   (eval "$ac_link") 2>conftest.er1
16787   ac_status=$?
16788   grep -v '^ *+' conftest.er1 >conftest.err
16789   rm -f conftest.er1
16790   cat conftest.err >&5
16791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792   (exit $ac_status); } &&
16793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16794   { (case "(($ac_try" in
16795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796   *) ac_try_echo=$ac_try;;
16797 esac
16798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799   (eval "$ac_try") 2>&5
16800   ac_status=$?
16801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802   (exit $ac_status); }; } &&
16803          { ac_try='test -s conftest$ac_exeext'
16804   { (case "(($ac_try" in
16805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806   *) ac_try_echo=$ac_try;;
16807 esac
16808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809   (eval "$ac_try") 2>&5
16810   ac_status=$?
16811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812   (exit $ac_status); }; }; then
16813   ac_cv_lib_svld_dlopen=yes
16814 else
16815   echo "$as_me: failed program was:" >&5
16816 sed 's/^/| /' conftest.$ac_ext >&5
16817
16818         ac_cv_lib_svld_dlopen=no
16819 fi
16820
16821 rm -f core conftest.err conftest.$ac_objext \
16822       conftest$ac_exeext conftest.$ac_ext
16823 LIBS=$ac_check_lib_save_LIBS
16824 fi
16825 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16826 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16827 if test $ac_cv_lib_svld_dlopen = yes; then
16828   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16829 else
16830   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16831 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16832 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16833   echo $ECHO_N "(cached) $ECHO_C" >&6
16834 else
16835   ac_check_lib_save_LIBS=$LIBS
16836 LIBS="-ldld  $LIBS"
16837 cat >conftest.$ac_ext <<_ACEOF
16838 /* confdefs.h.  */
16839 _ACEOF
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h.  */
16843
16844 /* Override any GCC internal prototype to avoid an error.
16845    Use char because int might match the return type of a GCC
16846    builtin and then its argument prototype would still apply.  */
16847 #ifdef __cplusplus
16848 extern "C"
16849 #endif
16850 char dld_link ();
16851 int
16852 main ()
16853 {
16854 return dld_link ();
16855   ;
16856   return 0;
16857 }
16858 _ACEOF
16859 rm -f conftest.$ac_objext conftest$ac_exeext
16860 if { (ac_try="$ac_link"
16861 case "(($ac_try" in
16862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863   *) ac_try_echo=$ac_try;;
16864 esac
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866   (eval "$ac_link") 2>conftest.er1
16867   ac_status=$?
16868   grep -v '^ *+' conftest.er1 >conftest.err
16869   rm -f conftest.er1
16870   cat conftest.err >&5
16871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872   (exit $ac_status); } &&
16873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16874   { (case "(($ac_try" in
16875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876   *) ac_try_echo=$ac_try;;
16877 esac
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879   (eval "$ac_try") 2>&5
16880   ac_status=$?
16881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882   (exit $ac_status); }; } &&
16883          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
16890   ac_status=$?
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); }; }; then
16893   ac_cv_lib_dld_dld_link=yes
16894 else
16895   echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16897
16898         ac_cv_lib_dld_dld_link=no
16899 fi
16900
16901 rm -f core conftest.err conftest.$ac_objext \
16902       conftest$ac_exeext conftest.$ac_ext
16903 LIBS=$ac_check_lib_save_LIBS
16904 fi
16905 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16906 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16907 if test $ac_cv_lib_dld_dld_link = yes; then
16908   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16909 fi
16910
16911
16912 fi
16913
16914
16915 fi
16916
16917
16918 fi
16919
16920
16921 fi
16922
16923
16924 fi
16925
16926     ;;
16927   esac
16928
16929   if test "x$lt_cv_dlopen" != xno; then
16930     enable_dlopen=yes
16931   else
16932     enable_dlopen=no
16933   fi
16934
16935   case $lt_cv_dlopen in
16936   dlopen)
16937     save_CPPFLAGS="$CPPFLAGS"
16938     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16939
16940     save_LDFLAGS="$LDFLAGS"
16941     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16942
16943     save_LIBS="$LIBS"
16944     LIBS="$lt_cv_dlopen_libs $LIBS"
16945
16946     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16947 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16948 if test "${lt_cv_dlopen_self+set}" = set; then
16949   echo $ECHO_N "(cached) $ECHO_C" >&6
16950 else
16951           if test "$cross_compiling" = yes; then :
16952   lt_cv_dlopen_self=cross
16953 else
16954   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16955   lt_status=$lt_dlunknown
16956   cat > conftest.$ac_ext <<EOF
16957 #line 16957 "configure"
16958 #include "confdefs.h"
16959
16960 #if HAVE_DLFCN_H
16961 #include <dlfcn.h>
16962 #endif
16963
16964 #include <stdio.h>
16965
16966 #ifdef RTLD_GLOBAL
16967 #  define LT_DLGLOBAL           RTLD_GLOBAL
16968 #else
16969 #  ifdef DL_GLOBAL
16970 #    define LT_DLGLOBAL         DL_GLOBAL
16971 #  else
16972 #    define LT_DLGLOBAL         0
16973 #  endif
16974 #endif
16975
16976 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16977    find out it does not work in some platform. */
16978 #ifndef LT_DLLAZY_OR_NOW
16979 #  ifdef RTLD_LAZY
16980 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16981 #  else
16982 #    ifdef DL_LAZY
16983 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16984 #    else
16985 #      ifdef RTLD_NOW
16986 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16987 #      else
16988 #        ifdef DL_NOW
16989 #          define LT_DLLAZY_OR_NOW      DL_NOW
16990 #        else
16991 #          define LT_DLLAZY_OR_NOW      0
16992 #        endif
16993 #      endif
16994 #    endif
16995 #  endif
16996 #endif
16997
16998 #ifdef __cplusplus
16999 extern "C" void exit (int);
17000 #endif
17001
17002 void fnord() { int i=42;}
17003 int main ()
17004 {
17005   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17006   int status = $lt_dlunknown;
17007
17008   if (self)
17009     {
17010       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17011       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17012       /* dlclose (self); */
17013     }
17014   else
17015     puts (dlerror ());
17016
17017     exit (status);
17018 }
17019 EOF
17020   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17021   (eval $ac_link) 2>&5
17022   ac_status=$?
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17025     (./conftest; exit; ) >&5 2>/dev/null
17026     lt_status=$?
17027     case x$lt_status in
17028       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17029       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17030       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17031     esac
17032   else :
17033     # compilation failed
17034     lt_cv_dlopen_self=no
17035   fi
17036 fi
17037 rm -fr conftest*
17038
17039
17040 fi
17041 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17042 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17043
17044     if test "x$lt_cv_dlopen_self" = xyes; then
17045       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17046       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17047 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17048 if test "${lt_cv_dlopen_self_static+set}" = set; then
17049   echo $ECHO_N "(cached) $ECHO_C" >&6
17050 else
17051           if test "$cross_compiling" = yes; then :
17052   lt_cv_dlopen_self_static=cross
17053 else
17054   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17055   lt_status=$lt_dlunknown
17056   cat > conftest.$ac_ext <<EOF
17057 #line 17057 "configure"
17058 #include "confdefs.h"
17059
17060 #if HAVE_DLFCN_H
17061 #include <dlfcn.h>
17062 #endif
17063
17064 #include <stdio.h>
17065
17066 #ifdef RTLD_GLOBAL
17067 #  define LT_DLGLOBAL           RTLD_GLOBAL
17068 #else
17069 #  ifdef DL_GLOBAL
17070 #    define LT_DLGLOBAL         DL_GLOBAL
17071 #  else
17072 #    define LT_DLGLOBAL         0
17073 #  endif
17074 #endif
17075
17076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17077    find out it does not work in some platform. */
17078 #ifndef LT_DLLAZY_OR_NOW
17079 #  ifdef RTLD_LAZY
17080 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17081 #  else
17082 #    ifdef DL_LAZY
17083 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17084 #    else
17085 #      ifdef RTLD_NOW
17086 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17087 #      else
17088 #        ifdef DL_NOW
17089 #          define LT_DLLAZY_OR_NOW      DL_NOW
17090 #        else
17091 #          define LT_DLLAZY_OR_NOW      0
17092 #        endif
17093 #      endif
17094 #    endif
17095 #  endif
17096 #endif
17097
17098 #ifdef __cplusplus
17099 extern "C" void exit (int);
17100 #endif
17101
17102 void fnord() { int i=42;}
17103 int main ()
17104 {
17105   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17106   int status = $lt_dlunknown;
17107
17108   if (self)
17109     {
17110       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17111       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17112       /* dlclose (self); */
17113     }
17114   else
17115     puts (dlerror ());
17116
17117     exit (status);
17118 }
17119 EOF
17120   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17121   (eval $ac_link) 2>&5
17122   ac_status=$?
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17125     (./conftest; exit; ) >&5 2>/dev/null
17126     lt_status=$?
17127     case x$lt_status in
17128       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17129       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17130       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17131     esac
17132   else :
17133     # compilation failed
17134     lt_cv_dlopen_self_static=no
17135   fi
17136 fi
17137 rm -fr conftest*
17138
17139
17140 fi
17141 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17142 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17143     fi
17144
17145     CPPFLAGS="$save_CPPFLAGS"
17146     LDFLAGS="$save_LDFLAGS"
17147     LIBS="$save_LIBS"
17148     ;;
17149   esac
17150
17151   case $lt_cv_dlopen_self in
17152   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17153   *) enable_dlopen_self=unknown ;;
17154   esac
17155
17156   case $lt_cv_dlopen_self_static in
17157   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17158   *) enable_dlopen_self_static=unknown ;;
17159   esac
17160 fi
17161
17162
17163 # Report which library types will actually be built
17164 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17165 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17166 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17167 echo "${ECHO_T}$can_build_shared" >&6; }
17168
17169 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17170 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17171 test "$can_build_shared" = "no" && enable_shared=no
17172
17173 # On AIX, shared libraries and static libraries use the same namespace, and
17174 # are all built from PIC.
17175 case $host_os in
17176 aix3*)
17177   test "$enable_shared" = yes && enable_static=no
17178   if test -n "$RANLIB"; then
17179     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17180     postinstall_cmds='$RANLIB $lib'
17181   fi
17182   ;;
17183
17184 aix4* | aix5*)
17185   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17186     test "$enable_shared" = yes && enable_static=no
17187   fi
17188     ;;
17189 esac
17190 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17191 echo "${ECHO_T}$enable_shared" >&6; }
17192
17193 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17194 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17195 # Make sure either enable_shared or enable_static is yes.
17196 test "$enable_shared" = yes || enable_static=yes
17197 { echo "$as_me:$LINENO: result: $enable_static" >&5
17198 echo "${ECHO_T}$enable_static" >&6; }
17199
17200 # The else clause should only fire when bootstrapping the
17201 # libtool distribution, otherwise you forgot to ship ltmain.sh
17202 # with your package, and you will get complaints that there are
17203 # no rules to generate ltmain.sh.
17204 if test -f "$ltmain"; then
17205   # See if we are running on zsh, and set the options which allow our commands through
17206   # without removal of \ escapes.
17207   if test -n "${ZSH_VERSION+set}" ; then
17208     setopt NO_GLOB_SUBST
17209   fi
17210   # Now quote all the things that may contain metacharacters while being
17211   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17212   # variables and quote the copies for generation of the libtool script.
17213   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17214     SED SHELL STRIP \
17215     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17216     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17217     deplibs_check_method reload_flag reload_cmds need_locks \
17218     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17219     lt_cv_sys_global_symbol_to_c_name_address \
17220     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17221     old_postinstall_cmds old_postuninstall_cmds \
17222     compiler \
17223     CC \
17224     LD \
17225     lt_prog_compiler_wl \
17226     lt_prog_compiler_pic \
17227     lt_prog_compiler_static \
17228     lt_prog_compiler_no_builtin_flag \
17229     export_dynamic_flag_spec \
17230     thread_safe_flag_spec \
17231     whole_archive_flag_spec \
17232     enable_shared_with_static_runtimes \
17233     old_archive_cmds \
17234     old_archive_from_new_cmds \
17235     predep_objects \
17236     postdep_objects \
17237     predeps \
17238     postdeps \
17239     compiler_lib_search_path \
17240     archive_cmds \
17241     archive_expsym_cmds \
17242     postinstall_cmds \
17243     postuninstall_cmds \
17244     old_archive_from_expsyms_cmds \
17245     allow_undefined_flag \
17246     no_undefined_flag \
17247     export_symbols_cmds \
17248     hardcode_libdir_flag_spec \
17249     hardcode_libdir_flag_spec_ld \
17250     hardcode_libdir_separator \
17251     hardcode_automatic \
17252     module_cmds \
17253     module_expsym_cmds \
17254     lt_cv_prog_compiler_c_o \
17255     exclude_expsyms \
17256     include_expsyms; do
17257
17258     case $var in
17259     old_archive_cmds | \
17260     old_archive_from_new_cmds | \
17261     archive_cmds | \
17262     archive_expsym_cmds | \
17263     module_cmds | \
17264     module_expsym_cmds | \
17265     old_archive_from_expsyms_cmds | \
17266     export_symbols_cmds | \
17267     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17268     postinstall_cmds | postuninstall_cmds | \
17269     old_postinstall_cmds | old_postuninstall_cmds | \
17270     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17271       # Double-quote double-evaled strings.
17272       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17273       ;;
17274     *)
17275       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17276       ;;
17277     esac
17278   done
17279
17280   case $lt_echo in
17281   *'\$0 --fallback-echo"')
17282     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17283     ;;
17284   esac
17285
17286 cfgfile="${ofile}T"
17287   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17288   $rm -f "$cfgfile"
17289   { echo "$as_me:$LINENO: creating $ofile" >&5
17290 echo "$as_me: creating $ofile" >&6;}
17291
17292   cat <<__EOF__ >> "$cfgfile"
17293 #! $SHELL
17294
17295 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17296 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17297 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17298 #
17299 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17300 # Free Software Foundation, Inc.
17301 #
17302 # This file is part of GNU Libtool:
17303 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17304 #
17305 # This program is free software; you can redistribute it and/or modify
17306 # it under the terms of the GNU General Public License as published by
17307 # the Free Software Foundation; either version 2 of the License, or
17308 # (at your option) any later version.
17309 #
17310 # This program is distributed in the hope that it will be useful, but
17311 # WITHOUT ANY WARRANTY; without even the implied warranty of
17312 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17313 # General Public License for more details.
17314 #
17315 # You should have received a copy of the GNU General Public License
17316 # along with this program; if not, write to the Free Software
17317 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17318 #
17319 # As a special exception to the GNU General Public License, if you
17320 # distribute this file as part of a program that contains a
17321 # configuration script generated by Autoconf, you may include it under
17322 # the same distribution terms that you use for the rest of that program.
17323
17324 # A sed program that does not truncate output.
17325 SED=$lt_SED
17326
17327 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17328 Xsed="$SED -e 1s/^X//"
17329
17330 # The HP-UX ksh and POSIX shell print the target directory to stdout
17331 # if CDPATH is set.
17332 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17333
17334 # The names of the tagged configurations supported by this script.
17335 available_tags=
17336
17337 # ### BEGIN LIBTOOL CONFIG
17338
17339 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17340
17341 # Shell to use when invoking shell scripts.
17342 SHELL=$lt_SHELL
17343
17344 # Whether or not to build shared libraries.
17345 build_libtool_libs=$enable_shared
17346
17347 # Whether or not to build static libraries.
17348 build_old_libs=$enable_static
17349
17350 # Whether or not to add -lc for building shared libraries.
17351 build_libtool_need_lc=$archive_cmds_need_lc
17352
17353 # Whether or not to disallow shared libs when runtime libs are static
17354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17355
17356 # Whether or not to optimize for fast installation.
17357 fast_install=$enable_fast_install
17358
17359 # The host system.
17360 host_alias=$host_alias
17361 host=$host
17362 host_os=$host_os
17363
17364 # The build system.
17365 build_alias=$build_alias
17366 build=$build
17367 build_os=$build_os
17368
17369 # An echo program that does not interpret backslashes.
17370 echo=$lt_echo
17371
17372 # The archiver.
17373 AR=$lt_AR
17374 AR_FLAGS=$lt_AR_FLAGS
17375
17376 # A C compiler.
17377 LTCC=$lt_LTCC
17378
17379 # LTCC compiler flags.
17380 LTCFLAGS=$lt_LTCFLAGS
17381
17382 # A language-specific compiler.
17383 CC=$lt_compiler
17384
17385 # Is the compiler the GNU C compiler?
17386 with_gcc=$GCC
17387
17388 # An ERE matcher.
17389 EGREP=$lt_EGREP
17390
17391 # The linker used to build libraries.
17392 LD=$lt_LD
17393
17394 # Whether we need hard or soft links.
17395 LN_S=$lt_LN_S
17396
17397 # A BSD-compatible nm program.
17398 NM=$lt_NM
17399
17400 # A symbol stripping program
17401 STRIP=$lt_STRIP
17402
17403 # Used to examine libraries when file_magic_cmd begins "file"
17404 MAGIC_CMD=$MAGIC_CMD
17405
17406 # Used on cygwin: DLL creation program.
17407 DLLTOOL="$DLLTOOL"
17408
17409 # Used on cygwin: object dumper.
17410 OBJDUMP="$OBJDUMP"
17411
17412 # Used on cygwin: assembler.
17413 AS="$AS"
17414
17415 # The name of the directory that contains temporary libtool files.
17416 objdir=$objdir
17417
17418 # How to create reloadable object files.
17419 reload_flag=$lt_reload_flag
17420 reload_cmds=$lt_reload_cmds
17421
17422 # How to pass a linker flag through the compiler.
17423 wl=$lt_lt_prog_compiler_wl
17424
17425 # Object file suffix (normally "o").
17426 objext="$ac_objext"
17427
17428 # Old archive suffix (normally "a").
17429 libext="$libext"
17430
17431 # Shared library suffix (normally ".so").
17432 shrext_cmds='$shrext_cmds'
17433
17434 # Executable file suffix (normally "").
17435 exeext="$exeext"
17436
17437 # Additional compiler flags for building library objects.
17438 pic_flag=$lt_lt_prog_compiler_pic
17439 pic_mode=$pic_mode
17440
17441 # What is the maximum length of a command?
17442 max_cmd_len=$lt_cv_sys_max_cmd_len
17443
17444 # Does compiler simultaneously support -c and -o options?
17445 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17446
17447 # Must we lock files when doing compilation?
17448 need_locks=$lt_need_locks
17449
17450 # Do we need the lib prefix for modules?
17451 need_lib_prefix=$need_lib_prefix
17452
17453 # Do we need a version for libraries?
17454 need_version=$need_version
17455
17456 # Whether dlopen is supported.
17457 dlopen_support=$enable_dlopen
17458
17459 # Whether dlopen of programs is supported.
17460 dlopen_self=$enable_dlopen_self
17461
17462 # Whether dlopen of statically linked programs is supported.
17463 dlopen_self_static=$enable_dlopen_self_static
17464
17465 # Compiler flag to prevent dynamic linking.
17466 link_static_flag=$lt_lt_prog_compiler_static
17467
17468 # Compiler flag to turn off builtin functions.
17469 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17470
17471 # Compiler flag to allow reflexive dlopens.
17472 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17473
17474 # Compiler flag to generate shared objects directly from archives.
17475 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17476
17477 # Compiler flag to generate thread-safe objects.
17478 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17479
17480 # Library versioning type.
17481 version_type=$version_type
17482
17483 # Format of library name prefix.
17484 libname_spec=$lt_libname_spec
17485
17486 # List of archive names.  First name is the real one, the rest are links.
17487 # The last name is the one that the linker finds with -lNAME.
17488 library_names_spec=$lt_library_names_spec
17489
17490 # The coded name of the library, if different from the real name.
17491 soname_spec=$lt_soname_spec
17492
17493 # Commands used to build and install an old-style archive.
17494 RANLIB=$lt_RANLIB
17495 old_archive_cmds=$lt_old_archive_cmds
17496 old_postinstall_cmds=$lt_old_postinstall_cmds
17497 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17498
17499 # Create an old-style archive from a shared archive.
17500 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17501
17502 # Create a temporary old-style archive to link instead of a shared archive.
17503 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17504
17505 # Commands used to build and install a shared archive.
17506 archive_cmds=$lt_archive_cmds
17507 archive_expsym_cmds=$lt_archive_expsym_cmds
17508 postinstall_cmds=$lt_postinstall_cmds
17509 postuninstall_cmds=$lt_postuninstall_cmds
17510
17511 # Commands used to build a loadable module (assumed same as above if empty)
17512 module_cmds=$lt_module_cmds
17513 module_expsym_cmds=$lt_module_expsym_cmds
17514
17515 # Commands to strip libraries.
17516 old_striplib=$lt_old_striplib
17517 striplib=$lt_striplib
17518
17519 # Dependencies to place before the objects being linked to create a
17520 # shared library.
17521 predep_objects=$lt_predep_objects
17522
17523 # Dependencies to place after the objects being linked to create a
17524 # shared library.
17525 postdep_objects=$lt_postdep_objects
17526
17527 # Dependencies to place before the objects being linked to create a
17528 # shared library.
17529 predeps=$lt_predeps
17530
17531 # Dependencies to place after the objects being linked to create a
17532 # shared library.
17533 postdeps=$lt_postdeps
17534
17535 # The library search path used internally by the compiler when linking
17536 # a shared library.
17537 compiler_lib_search_path=$lt_compiler_lib_search_path
17538
17539 # Method to check whether dependent libraries are shared objects.
17540 deplibs_check_method=$lt_deplibs_check_method
17541
17542 # Command to use when deplibs_check_method == file_magic.
17543 file_magic_cmd=$lt_file_magic_cmd
17544
17545 # Flag that allows shared libraries with undefined symbols to be built.
17546 allow_undefined_flag=$lt_allow_undefined_flag
17547
17548 # Flag that forces no undefined symbols.
17549 no_undefined_flag=$lt_no_undefined_flag
17550
17551 # Commands used to finish a libtool library installation in a directory.
17552 finish_cmds=$lt_finish_cmds
17553
17554 # Same as above, but a single script fragment to be evaled but not shown.
17555 finish_eval=$lt_finish_eval
17556
17557 # Take the output of nm and produce a listing of raw symbols and C names.
17558 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17559
17560 # Transform the output of nm in a proper C declaration
17561 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17562
17563 # Transform the output of nm in a C name address pair
17564 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17565
17566 # This is the shared library runtime path variable.
17567 runpath_var=$runpath_var
17568
17569 # This is the shared library path variable.
17570 shlibpath_var=$shlibpath_var
17571
17572 # Is shlibpath searched before the hard-coded library search path?
17573 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17574
17575 # How to hardcode a shared library path into an executable.
17576 hardcode_action=$hardcode_action
17577
17578 # Whether we should hardcode library paths into libraries.
17579 hardcode_into_libs=$hardcode_into_libs
17580
17581 # Flag to hardcode \$libdir into a binary during linking.
17582 # This must work even if \$libdir does not exist.
17583 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17584
17585 # If ld is used when linking, flag to hardcode \$libdir into
17586 # a binary during linking. This must work even if \$libdir does
17587 # not exist.
17588 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17589
17590 # Whether we need a single -rpath flag with a separated argument.
17591 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17592
17593 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17594 # resulting binary.
17595 hardcode_direct=$hardcode_direct
17596
17597 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17598 # resulting binary.
17599 hardcode_minus_L=$hardcode_minus_L
17600
17601 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17602 # the resulting binary.
17603 hardcode_shlibpath_var=$hardcode_shlibpath_var
17604
17605 # Set to yes if building a shared library automatically hardcodes DIR into the library
17606 # and all subsequent libraries and executables linked against it.
17607 hardcode_automatic=$hardcode_automatic
17608
17609 # Variables whose values should be saved in libtool wrapper scripts and
17610 # restored at relink time.
17611 variables_saved_for_relink="$variables_saved_for_relink"
17612
17613 # Whether libtool must link a program against all its dependency libraries.
17614 link_all_deplibs=$link_all_deplibs
17615
17616 # Compile-time system search path for libraries
17617 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17618
17619 # Run-time system search path for libraries
17620 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17621
17622 # Fix the shell variable \$srcfile for the compiler.
17623 fix_srcfile_path="$fix_srcfile_path"
17624
17625 # Set to yes if exported symbols are required.
17626 always_export_symbols=$always_export_symbols
17627
17628 # The commands to list exported symbols.
17629 export_symbols_cmds=$lt_export_symbols_cmds
17630
17631 # The commands to extract the exported symbol list from a shared archive.
17632 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17633
17634 # Symbols that should not be listed in the preloaded symbols.
17635 exclude_expsyms=$lt_exclude_expsyms
17636
17637 # Symbols that must always be exported.
17638 include_expsyms=$lt_include_expsyms
17639
17640 # ### END LIBTOOL CONFIG
17641
17642 __EOF__
17643
17644
17645   case $host_os in
17646   aix3*)
17647     cat <<\EOF >> "$cfgfile"
17648
17649 # AIX sometimes has problems with the GCC collect2 program.  For some
17650 # reason, if we set the COLLECT_NAMES environment variable, the problems
17651 # vanish in a puff of smoke.
17652 if test "X${COLLECT_NAMES+set}" != Xset; then
17653   COLLECT_NAMES=
17654   export COLLECT_NAMES
17655 fi
17656 EOF
17657     ;;
17658   esac
17659
17660   # We use sed instead of cat because bash on DJGPP gets confused if
17661   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17662   # text mode, it properly converts lines to CR/LF.  This bash problem
17663   # is reportedly fixed, but why not run on old versions too?
17664   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17665
17666   mv -f "$cfgfile" "$ofile" || \
17667     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17668   chmod +x "$ofile"
17669
17670 else
17671   # If there is no Makefile yet, we rely on a make rule to execute
17672   # `config.status --recheck' to rerun these tests and create the
17673   # libtool script then.
17674   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17675   if test -f "$ltmain_in"; then
17676     test -f Makefile && make "$ltmain"
17677   fi
17678 fi
17679
17680
17681 ac_ext=c
17682 ac_cpp='$CPP $CPPFLAGS'
17683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17686
17687 CC="$lt_save_CC"
17688
17689
17690 # Check whether --with-tags was given.
17691 if test "${with_tags+set}" = set; then
17692   withval=$with_tags; tagnames="$withval"
17693 fi
17694
17695
17696 if test -f "$ltmain" && test -n "$tagnames"; then
17697   if test ! -f "${ofile}"; then
17698     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17699 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17700   fi
17701
17702   if test -z "$LTCC"; then
17703     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17704     if test -z "$LTCC"; then
17705       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17706 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17707     else
17708       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17709 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17710     fi
17711   fi
17712   if test -z "$LTCFLAGS"; then
17713     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17714   fi
17715
17716   # Extract list of available tagged configurations in $ofile.
17717   # Note that this assumes the entire list is on one line.
17718   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17719
17720   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17721   for tagname in $tagnames; do
17722     IFS="$lt_save_ifs"
17723     # Check whether tagname contains only valid characters
17724     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17725     "") ;;
17726     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17727 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17728    { (exit 1); exit 1; }; }
17729         ;;
17730     esac
17731
17732     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17733     then
17734       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17735 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17736    { (exit 1); exit 1; }; }
17737     fi
17738
17739     # Update the list of available tags.
17740     if test -n "$tagname"; then
17741       echo appending configuration tag \"$tagname\" to $ofile
17742
17743       case $tagname in
17744       CXX)
17745         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17746             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17747             (test "X$CXX" != "Xg++"))) ; then
17748           ac_ext=cpp
17749 ac_cpp='$CXXCPP $CPPFLAGS'
17750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17753
17754
17755
17756
17757 archive_cmds_need_lc_CXX=no
17758 allow_undefined_flag_CXX=
17759 always_export_symbols_CXX=no
17760 archive_expsym_cmds_CXX=
17761 export_dynamic_flag_spec_CXX=
17762 hardcode_direct_CXX=no
17763 hardcode_libdir_flag_spec_CXX=
17764 hardcode_libdir_flag_spec_ld_CXX=
17765 hardcode_libdir_separator_CXX=
17766 hardcode_minus_L_CXX=no
17767 hardcode_shlibpath_var_CXX=unsupported
17768 hardcode_automatic_CXX=no
17769 module_cmds_CXX=
17770 module_expsym_cmds_CXX=
17771 link_all_deplibs_CXX=unknown
17772 old_archive_cmds_CXX=$old_archive_cmds
17773 no_undefined_flag_CXX=
17774 whole_archive_flag_spec_CXX=
17775 enable_shared_with_static_runtimes_CXX=no
17776
17777 # Dependencies to place before and after the object being linked:
17778 predep_objects_CXX=
17779 postdep_objects_CXX=
17780 predeps_CXX=
17781 postdeps_CXX=
17782 compiler_lib_search_path_CXX=
17783
17784 # Source file extension for C++ test sources.
17785 ac_ext=cpp
17786
17787 # Object file extension for compiled C++ test sources.
17788 objext=o
17789 objext_CXX=$objext
17790
17791 # Code to be used in simple compile tests
17792 lt_simple_compile_test_code="int some_variable = 0;\n"
17793
17794 # Code to be used in simple link tests
17795 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17796
17797 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17798
17799 # If no C compiler was specified, use CC.
17800 LTCC=${LTCC-"$CC"}
17801
17802 # If no C compiler flags were specified, use CFLAGS.
17803 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17804
17805 # Allow CC to be a program name with arguments.
17806 compiler=$CC
17807
17808
17809 # save warnings/boilerplate of simple test code
17810 ac_outfile=conftest.$ac_objext
17811 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17812 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17813 _lt_compiler_boilerplate=`cat conftest.err`
17814 $rm conftest*
17815
17816 ac_outfile=conftest.$ac_objext
17817 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17818 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17819 _lt_linker_boilerplate=`cat conftest.err`
17820 $rm conftest*
17821
17822
17823 # Allow CC to be a program name with arguments.
17824 lt_save_CC=$CC
17825 lt_save_LD=$LD
17826 lt_save_GCC=$GCC
17827 GCC=$GXX
17828 lt_save_with_gnu_ld=$with_gnu_ld
17829 lt_save_path_LD=$lt_cv_path_LD
17830 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17831   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17832 else
17833   $as_unset lt_cv_prog_gnu_ld
17834 fi
17835 if test -n "${lt_cv_path_LDCXX+set}"; then
17836   lt_cv_path_LD=$lt_cv_path_LDCXX
17837 else
17838   $as_unset lt_cv_path_LD
17839 fi
17840 test -z "${LDCXX+set}" || LD=$LDCXX
17841 CC=${CXX-"c++"}
17842 compiler=$CC
17843 compiler_CXX=$CC
17844 for cc_temp in $compiler""; do
17845   case $cc_temp in
17846     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17847     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17848     \-*) ;;
17849     *) break;;
17850   esac
17851 done
17852 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17853
17854
17855 # We don't want -fno-exception wen compiling C++ code, so set the
17856 # no_builtin_flag separately
17857 if test "$GXX" = yes; then
17858   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17859 else
17860   lt_prog_compiler_no_builtin_flag_CXX=
17861 fi
17862
17863 if test "$GXX" = yes; then
17864   # Set up default GNU C++ configuration
17865
17866
17867 # Check whether --with-gnu-ld was given.
17868 if test "${with_gnu_ld+set}" = set; then
17869   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17870 else
17871   with_gnu_ld=no
17872 fi
17873
17874 ac_prog=ld
17875 if test "$GCC" = yes; then
17876   # Check if gcc -print-prog-name=ld gives a path.
17877   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17878 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17879   case $host in
17880   *-*-mingw*)
17881     # gcc leaves a trailing carriage return which upsets mingw
17882     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17883   *)
17884     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17885   esac
17886   case $ac_prog in
17887     # Accept absolute paths.
17888     [\\/]* | ?:[\\/]*)
17889       re_direlt='/[^/][^/]*/\.\./'
17890       # Canonicalize the pathname of ld
17891       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17892       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17893         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17894       done
17895       test -z "$LD" && LD="$ac_prog"
17896       ;;
17897   "")
17898     # If it fails, then pretend we aren't using GCC.
17899     ac_prog=ld
17900     ;;
17901   *)
17902     # If it is relative, then search for the first ld in PATH.
17903     with_gnu_ld=unknown
17904     ;;
17905   esac
17906 elif test "$with_gnu_ld" = yes; then
17907   { echo "$as_me:$LINENO: checking for GNU ld" >&5
17908 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17909 else
17910   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17911 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17912 fi
17913 if test "${lt_cv_path_LD+set}" = set; then
17914   echo $ECHO_N "(cached) $ECHO_C" >&6
17915 else
17916   if test -z "$LD"; then
17917   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17918   for ac_dir in $PATH; do
17919     IFS="$lt_save_ifs"
17920     test -z "$ac_dir" && ac_dir=.
17921     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17922       lt_cv_path_LD="$ac_dir/$ac_prog"
17923       # Check to see if the program is GNU ld.  I'd rather use --version,
17924       # but apparently some variants of GNU ld only accept -v.
17925       # Break only if it was the GNU/non-GNU ld that we prefer.
17926       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17927       *GNU* | *'with BFD'*)
17928         test "$with_gnu_ld" != no && break
17929         ;;
17930       *)
17931         test "$with_gnu_ld" != yes && break
17932         ;;
17933       esac
17934     fi
17935   done
17936   IFS="$lt_save_ifs"
17937 else
17938   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17939 fi
17940 fi
17941
17942 LD="$lt_cv_path_LD"
17943 if test -n "$LD"; then
17944   { echo "$as_me:$LINENO: result: $LD" >&5
17945 echo "${ECHO_T}$LD" >&6; }
17946 else
17947   { echo "$as_me:$LINENO: result: no" >&5
17948 echo "${ECHO_T}no" >&6; }
17949 fi
17950 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17951 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17952    { (exit 1); exit 1; }; }
17953 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17954 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17955 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17956   echo $ECHO_N "(cached) $ECHO_C" >&6
17957 else
17958   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17959 case `$LD -v 2>&1 </dev/null` in
17960 *GNU* | *'with BFD'*)
17961   lt_cv_prog_gnu_ld=yes
17962   ;;
17963 *)
17964   lt_cv_prog_gnu_ld=no
17965   ;;
17966 esac
17967 fi
17968 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17969 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17970 with_gnu_ld=$lt_cv_prog_gnu_ld
17971
17972
17973
17974   # Check if GNU C++ uses GNU ld as the underlying linker, since the
17975   # archiving commands below assume that GNU ld is being used.
17976   if test "$with_gnu_ld" = yes; then
17977     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17978     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'
17979
17980     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17981     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17982
17983     # If archive_cmds runs LD, not CC, wlarc should be empty
17984     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17985     #     investigate it a little bit more. (MM)
17986     wlarc='${wl}'
17987
17988     # ancient GNU ld didn't support --whole-archive et. al.
17989     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17990         grep 'no-whole-archive' > /dev/null; then
17991       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17992     else
17993       whole_archive_flag_spec_CXX=
17994     fi
17995   else
17996     with_gnu_ld=no
17997     wlarc=
17998
17999     # A generic and very simple default shared library creation
18000     # command for GNU C++ for the case where it uses the native
18001     # linker, instead of GNU ld.  If possible, this setting should
18002     # overridden to take advantage of the native linker features on
18003     # the platform it is being used on.
18004     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18005   fi
18006
18007   # Commands to make compiler produce verbose output that lists
18008   # what "hidden" libraries, object files and flags are used when
18009   # linking a shared library.
18010   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18011
18012 else
18013   GXX=no
18014   with_gnu_ld=no
18015   wlarc=
18016 fi
18017
18018 # PORTME: fill in a description of your system's C++ link characteristics
18019 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18020 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18021 ld_shlibs_CXX=yes
18022 case $host_os in
18023   aix3*)
18024     # FIXME: insert proper C++ library support
18025     ld_shlibs_CXX=no
18026     ;;
18027   aix4* | aix5*)
18028     if test "$host_cpu" = ia64; then
18029       # On IA64, the linker does run time linking by default, so we don't
18030       # have to do anything special.
18031       aix_use_runtimelinking=no
18032       exp_sym_flag='-Bexport'
18033       no_entry_flag=""
18034     else
18035       aix_use_runtimelinking=no
18036
18037       # Test if we are trying to use run time linking or normal
18038       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18039       # need to do runtime linking.
18040       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18041         for ld_flag in $LDFLAGS; do
18042           case $ld_flag in
18043           *-brtl*)
18044             aix_use_runtimelinking=yes
18045             break
18046             ;;
18047           esac
18048         done
18049         ;;
18050       esac
18051
18052       exp_sym_flag='-bexport'
18053       no_entry_flag='-bnoentry'
18054     fi
18055
18056     # When large executables or shared objects are built, AIX ld can
18057     # have problems creating the table of contents.  If linking a library
18058     # or program results in "error TOC overflow" add -mminimal-toc to
18059     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18060     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18061
18062     archive_cmds_CXX=''
18063     hardcode_direct_CXX=yes
18064     hardcode_libdir_separator_CXX=':'
18065     link_all_deplibs_CXX=yes
18066
18067     if test "$GXX" = yes; then
18068       case $host_os in aix4.[012]|aix4.[012].*)
18069       # We only want to do this on AIX 4.2 and lower, the check
18070       # below for broken collect2 doesn't work under 4.3+
18071         collect2name=`${CC} -print-prog-name=collect2`
18072         if test -f "$collect2name" && \
18073            strings "$collect2name" | grep resolve_lib_name >/dev/null
18074         then
18075           # We have reworked collect2
18076           hardcode_direct_CXX=yes
18077         else
18078           # We have old collect2
18079           hardcode_direct_CXX=unsupported
18080           # It fails to find uninstalled libraries when the uninstalled
18081           # path is not listed in the libpath.  Setting hardcode_minus_L
18082           # to unsupported forces relinking
18083           hardcode_minus_L_CXX=yes
18084           hardcode_libdir_flag_spec_CXX='-L$libdir'
18085           hardcode_libdir_separator_CXX=
18086         fi
18087         ;;
18088       esac
18089       shared_flag='-shared'
18090       if test "$aix_use_runtimelinking" = yes; then
18091         shared_flag="$shared_flag "'${wl}-G'
18092       fi
18093     else
18094       # not using gcc
18095       if test "$host_cpu" = ia64; then
18096         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18097         # chokes on -Wl,-G. The following line is correct:
18098         shared_flag='-G'
18099       else
18100         if test "$aix_use_runtimelinking" = yes; then
18101           shared_flag='${wl}-G'
18102         else
18103           shared_flag='${wl}-bM:SRE'
18104         fi
18105       fi
18106     fi
18107
18108     # It seems that -bexpall does not export symbols beginning with
18109     # underscore (_), so it is better to generate a list of symbols to export.
18110     always_export_symbols_CXX=yes
18111     if test "$aix_use_runtimelinking" = yes; then
18112       # Warning - without using the other runtime loading flags (-brtl),
18113       # -berok will link without error, but may produce a broken library.
18114       allow_undefined_flag_CXX='-berok'
18115       # Determine the default libpath from the value encoded in an empty executable.
18116       cat >conftest.$ac_ext <<_ACEOF
18117 /* confdefs.h.  */
18118 _ACEOF
18119 cat confdefs.h >>conftest.$ac_ext
18120 cat >>conftest.$ac_ext <<_ACEOF
18121 /* end confdefs.h.  */
18122
18123 int
18124 main ()
18125 {
18126
18127   ;
18128   return 0;
18129 }
18130 _ACEOF
18131 rm -f conftest.$ac_objext conftest$ac_exeext
18132 if { (ac_try="$ac_link"
18133 case "(($ac_try" in
18134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18135   *) ac_try_echo=$ac_try;;
18136 esac
18137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18138   (eval "$ac_link") 2>conftest.er1
18139   ac_status=$?
18140   grep -v '^ *+' conftest.er1 >conftest.err
18141   rm -f conftest.er1
18142   cat conftest.err >&5
18143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144   (exit $ac_status); } &&
18145          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18146   { (case "(($ac_try" in
18147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148   *) ac_try_echo=$ac_try;;
18149 esac
18150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151   (eval "$ac_try") 2>&5
18152   ac_status=$?
18153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154   (exit $ac_status); }; } &&
18155          { ac_try='test -s conftest$ac_exeext'
18156   { (case "(($ac_try" in
18157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158   *) ac_try_echo=$ac_try;;
18159 esac
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161   (eval "$ac_try") 2>&5
18162   ac_status=$?
18163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164   (exit $ac_status); }; }; then
18165
18166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18167 }'`
18168 # Check for a 64-bit object if we didn't find anything.
18169 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; }
18170 }'`; fi
18171 else
18172   echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18174
18175
18176 fi
18177
18178 rm -f core conftest.err conftest.$ac_objext \
18179       conftest$ac_exeext conftest.$ac_ext
18180 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18181
18182       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18183
18184       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"
18185      else
18186       if test "$host_cpu" = ia64; then
18187         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18188         allow_undefined_flag_CXX="-z nodefs"
18189         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"
18190       else
18191         # Determine the default libpath from the value encoded in an empty executable.
18192         cat >conftest.$ac_ext <<_ACEOF
18193 /* confdefs.h.  */
18194 _ACEOF
18195 cat confdefs.h >>conftest.$ac_ext
18196 cat >>conftest.$ac_ext <<_ACEOF
18197 /* end confdefs.h.  */
18198
18199 int
18200 main ()
18201 {
18202
18203   ;
18204   return 0;
18205 }
18206 _ACEOF
18207 rm -f conftest.$ac_objext conftest$ac_exeext
18208 if { (ac_try="$ac_link"
18209 case "(($ac_try" in
18210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211   *) ac_try_echo=$ac_try;;
18212 esac
18213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214   (eval "$ac_link") 2>conftest.er1
18215   ac_status=$?
18216   grep -v '^ *+' conftest.er1 >conftest.err
18217   rm -f conftest.er1
18218   cat conftest.err >&5
18219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220   (exit $ac_status); } &&
18221          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18222   { (case "(($ac_try" in
18223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224   *) ac_try_echo=$ac_try;;
18225 esac
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227   (eval "$ac_try") 2>&5
18228   ac_status=$?
18229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230   (exit $ac_status); }; } &&
18231          { ac_try='test -s conftest$ac_exeext'
18232   { (case "(($ac_try" in
18233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234   *) ac_try_echo=$ac_try;;
18235 esac
18236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237   (eval "$ac_try") 2>&5
18238   ac_status=$?
18239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240   (exit $ac_status); }; }; then
18241
18242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18243 }'`
18244 # Check for a 64-bit object if we didn't find anything.
18245 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; }
18246 }'`; fi
18247 else
18248   echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18250
18251
18252 fi
18253
18254 rm -f core conftest.err conftest.$ac_objext \
18255       conftest$ac_exeext conftest.$ac_ext
18256 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18257
18258         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18259         # Warning - without using the other run time loading flags,
18260         # -berok will link without error, but may produce a broken library.
18261         no_undefined_flag_CXX=' ${wl}-bernotok'
18262         allow_undefined_flag_CXX=' ${wl}-berok'
18263         # Exported symbols can be pulled into shared objects from archives
18264         whole_archive_flag_spec_CXX='$convenience'
18265         archive_cmds_need_lc_CXX=yes
18266         # This is similar to how AIX traditionally builds its shared libraries.
18267         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'
18268       fi
18269     fi
18270     ;;
18271
18272   beos*)
18273     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18274       allow_undefined_flag_CXX=unsupported
18275       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18276       # support --undefined.  This deserves some investigation.  FIXME
18277       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18278     else
18279       ld_shlibs_CXX=no
18280     fi
18281     ;;
18282
18283   chorus*)
18284     case $cc_basename in
18285       *)
18286         # FIXME: insert proper C++ library support
18287         ld_shlibs_CXX=no
18288         ;;
18289     esac
18290     ;;
18291
18292   cygwin* | mingw* | pw32*)
18293     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18294     # as there is no search path for DLLs.
18295     hardcode_libdir_flag_spec_CXX='-L$libdir'
18296     allow_undefined_flag_CXX=unsupported
18297     always_export_symbols_CXX=no
18298     enable_shared_with_static_runtimes_CXX=yes
18299
18300     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18301       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'
18302       # If the export-symbols file already is a .def file (1st line
18303       # is EXPORTS), use it as is; otherwise, prepend...
18304       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18305         cp $export_symbols $output_objdir/$soname.def;
18306       else
18307         echo EXPORTS > $output_objdir/$soname.def;
18308         cat $export_symbols >> $output_objdir/$soname.def;
18309       fi~
18310       $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'
18311     else
18312       ld_shlibs_CXX=no
18313     fi
18314   ;;
18315       darwin* | rhapsody*)
18316         case $host_os in
18317         rhapsody* | darwin1.[012])
18318          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18319          ;;
18320        *) # Darwin 1.3 on
18321          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18322            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18323          else
18324            case ${MACOSX_DEPLOYMENT_TARGET} in
18325              10.[012])
18326                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18327                ;;
18328              10.*)
18329                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18330                ;;
18331            esac
18332          fi
18333          ;;
18334         esac
18335       archive_cmds_need_lc_CXX=no
18336       hardcode_direct_CXX=no
18337       hardcode_automatic_CXX=yes
18338       hardcode_shlibpath_var_CXX=unsupported
18339       whole_archive_flag_spec_CXX=''
18340       link_all_deplibs_CXX=yes
18341
18342     if test "$GXX" = yes ; then
18343       lt_int_apple_cc_single_mod=no
18344       output_verbose_link_cmd='echo'
18345       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18346        lt_int_apple_cc_single_mod=yes
18347       fi
18348       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18349        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18350       else
18351           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'
18352         fi
18353         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18354         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18355           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18356             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}'
18357           else
18358             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}'
18359           fi
18360             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}'
18361       else
18362       case $cc_basename in
18363         xlc*)
18364          output_verbose_link_cmd='echo'
18365           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'
18366           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18367           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18368           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}'
18369           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}'
18370           ;;
18371        *)
18372          ld_shlibs_CXX=no
18373           ;;
18374       esac
18375       fi
18376         ;;
18377
18378   dgux*)
18379     case $cc_basename in
18380       ec++*)
18381         # FIXME: insert proper C++ library support
18382         ld_shlibs_CXX=no
18383         ;;
18384       ghcx*)
18385         # Green Hills C++ Compiler
18386         # FIXME: insert proper C++ library support
18387         ld_shlibs_CXX=no
18388         ;;
18389       *)
18390         # FIXME: insert proper C++ library support
18391         ld_shlibs_CXX=no
18392         ;;
18393     esac
18394     ;;
18395   freebsd[12]*)
18396     # C++ shared libraries reported to be fairly broken before switch to ELF
18397     ld_shlibs_CXX=no
18398     ;;
18399   freebsd-elf*)
18400     archive_cmds_need_lc_CXX=no
18401     ;;
18402   freebsd* | kfreebsd*-gnu | dragonfly*)
18403     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18404     # conventions
18405     ld_shlibs_CXX=yes
18406     ;;
18407   gnu*)
18408     ;;
18409   hpux9*)
18410     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18411     hardcode_libdir_separator_CXX=:
18412     export_dynamic_flag_spec_CXX='${wl}-E'
18413     hardcode_direct_CXX=yes
18414     hardcode_minus_L_CXX=yes # Not in the search PATH,
18415                                 # but as the default
18416                                 # location of the library.
18417
18418     case $cc_basename in
18419     CC*)
18420       # FIXME: insert proper C++ library support
18421       ld_shlibs_CXX=no
18422       ;;
18423     aCC*)
18424       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'
18425       # Commands to make compiler produce verbose output that lists
18426       # what "hidden" libraries, object files and flags are used when
18427       # linking a shared library.
18428       #
18429       # There doesn't appear to be a way to prevent this compiler from
18430       # explicitly linking system object files so we need to strip them
18431       # from the output so that they don't get included in the library
18432       # dependencies.
18433       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'
18434       ;;
18435     *)
18436       if test "$GXX" = yes; then
18437         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'
18438       else
18439         # FIXME: insert proper C++ library support
18440         ld_shlibs_CXX=no
18441       fi
18442       ;;
18443     esac
18444     ;;
18445   hpux10*|hpux11*)
18446     if test $with_gnu_ld = no; then
18447       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18448       hardcode_libdir_separator_CXX=:
18449
18450       case $host_cpu in
18451       hppa*64*|ia64*)
18452         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18453         ;;
18454       *)
18455         export_dynamic_flag_spec_CXX='${wl}-E'
18456         ;;
18457       esac
18458     fi
18459     case $host_cpu in
18460     hppa*64*|ia64*)
18461       hardcode_direct_CXX=no
18462       hardcode_shlibpath_var_CXX=no
18463       ;;
18464     *)
18465       hardcode_direct_CXX=yes
18466       hardcode_minus_L_CXX=yes # Not in the search PATH,
18467                                               # but as the default
18468                                               # location of the library.
18469       ;;
18470     esac
18471
18472     case $cc_basename in
18473       CC*)
18474         # FIXME: insert proper C++ library support
18475         ld_shlibs_CXX=no
18476         ;;
18477       aCC*)
18478         case $host_cpu in
18479         hppa*64*)
18480           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18481           ;;
18482         ia64*)
18483           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18484           ;;
18485         *)
18486           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18487           ;;
18488         esac
18489         # Commands to make compiler produce verbose output that lists
18490         # what "hidden" libraries, object files and flags are used when
18491         # linking a shared library.
18492         #
18493         # There doesn't appear to be a way to prevent this compiler from
18494         # explicitly linking system object files so we need to strip them
18495         # from the output so that they don't get included in the library
18496         # dependencies.
18497         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'
18498         ;;
18499       *)
18500         if test "$GXX" = yes; then
18501           if test $with_gnu_ld = no; then
18502             case $host_cpu in
18503             hppa*64*)
18504               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18505               ;;
18506             ia64*)
18507               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18508               ;;
18509             *)
18510               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'
18511               ;;
18512             esac
18513           fi
18514         else
18515           # FIXME: insert proper C++ library support
18516           ld_shlibs_CXX=no
18517         fi
18518         ;;
18519     esac
18520     ;;
18521   interix3*)
18522     hardcode_direct_CXX=no
18523     hardcode_shlibpath_var_CXX=no
18524     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18525     export_dynamic_flag_spec_CXX='${wl}-E'
18526     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18527     # Instead, shared libraries are loaded at an image base (0x10000000 by
18528     # default) and relocated if they conflict, which is a slow very memory
18529     # consuming and fragmenting process.  To avoid this, we pick a random,
18530     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18531     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18532     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'
18533     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'
18534     ;;
18535   irix5* | irix6*)
18536     case $cc_basename in
18537       CC*)
18538         # SGI C++
18539         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'
18540
18541         # Archives containing C++ object files must be created using
18542         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18543         # necessary to make sure instantiated templates are included
18544         # in the archive.
18545         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18546         ;;
18547       *)
18548         if test "$GXX" = yes; then
18549           if test "$with_gnu_ld" = no; then
18550             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'
18551           else
18552             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'
18553           fi
18554         fi
18555         link_all_deplibs_CXX=yes
18556         ;;
18557     esac
18558     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18559     hardcode_libdir_separator_CXX=:
18560     ;;
18561   linux*)
18562     case $cc_basename in
18563       KCC*)
18564         # Kuck and Associates, Inc. (KAI) C++ Compiler
18565
18566         # KCC will only create a shared library if the output file
18567         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18568         # to its proper name (with version) after linking.
18569         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'
18570         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'
18571         # Commands to make compiler produce verbose output that lists
18572         # what "hidden" libraries, object files and flags are used when
18573         # linking a shared library.
18574         #
18575         # There doesn't appear to be a way to prevent this compiler from
18576         # explicitly linking system object files so we need to strip them
18577         # from the output so that they don't get included in the library
18578         # dependencies.
18579         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'
18580
18581         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18582         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18583
18584         # Archives containing C++ object files must be created using
18585         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18586         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18587         ;;
18588       icpc*)
18589         # Intel C++
18590         with_gnu_ld=yes
18591         # version 8.0 and above of icpc choke on multiply defined symbols
18592         # if we add $predep_objects and $postdep_objects, however 7.1 and
18593         # earlier do not add the objects themselves.
18594         case `$CC -V 2>&1` in
18595         *"Version 7."*)
18596           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18597           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'
18598           ;;
18599         *)  # Version 8.0 or newer
18600           tmp_idyn=
18601           case $host_cpu in
18602             ia64*) tmp_idyn=' -i_dynamic';;
18603           esac
18604           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18605           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'
18606           ;;
18607         esac
18608         archive_cmds_need_lc_CXX=no
18609         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18610         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18611         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18612         ;;
18613       pgCC*)
18614         # Portland Group C++ compiler
18615         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18616         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'
18617
18618         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18619         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18620         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'
18621         ;;
18622       cxx*)
18623         # Compaq C++
18624         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18625         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'
18626
18627         runpath_var=LD_RUN_PATH
18628         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18629         hardcode_libdir_separator_CXX=:
18630
18631         # Commands to make compiler produce verbose output that lists
18632         # what "hidden" libraries, object files and flags are used when
18633         # linking a shared library.
18634         #
18635         # There doesn't appear to be a way to prevent this compiler from
18636         # explicitly linking system object files so we need to strip them
18637         # from the output so that they don't get included in the library
18638         # dependencies.
18639         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'
18640         ;;
18641     esac
18642     ;;
18643   lynxos*)
18644     # FIXME: insert proper C++ library support
18645     ld_shlibs_CXX=no
18646     ;;
18647   m88k*)
18648     # FIXME: insert proper C++ library support
18649     ld_shlibs_CXX=no
18650     ;;
18651   mvs*)
18652     case $cc_basename in
18653       cxx*)
18654         # FIXME: insert proper C++ library support
18655         ld_shlibs_CXX=no
18656         ;;
18657       *)
18658         # FIXME: insert proper C++ library support
18659         ld_shlibs_CXX=no
18660         ;;
18661     esac
18662     ;;
18663   netbsd*)
18664     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18665       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18666       wlarc=
18667       hardcode_libdir_flag_spec_CXX='-R$libdir'
18668       hardcode_direct_CXX=yes
18669       hardcode_shlibpath_var_CXX=no
18670     fi
18671     # Workaround some broken pre-1.5 toolchains
18672     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18673     ;;
18674   openbsd2*)
18675     # C++ shared libraries are fairly broken
18676     ld_shlibs_CXX=no
18677     ;;
18678   openbsd*)
18679     hardcode_direct_CXX=yes
18680     hardcode_shlibpath_var_CXX=no
18681     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18682     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18683     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18684       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18685       export_dynamic_flag_spec_CXX='${wl}-E'
18686       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18687     fi
18688     output_verbose_link_cmd='echo'
18689     ;;
18690   osf3*)
18691     case $cc_basename in
18692       KCC*)
18693         # Kuck and Associates, Inc. (KAI) C++ Compiler
18694
18695         # KCC will only create a shared library if the output file
18696         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18697         # to its proper name (with version) after linking.
18698         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'
18699
18700         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18701         hardcode_libdir_separator_CXX=:
18702
18703         # Archives containing C++ object files must be created using
18704         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18705         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18706
18707         ;;
18708       RCC*)
18709         # Rational C++ 2.4.1
18710         # FIXME: insert proper C++ library support
18711         ld_shlibs_CXX=no
18712         ;;
18713       cxx*)
18714         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18715         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'
18716
18717         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18718         hardcode_libdir_separator_CXX=:
18719
18720         # Commands to make compiler produce verbose output that lists
18721         # what "hidden" libraries, object files and flags are used when
18722         # linking a shared library.
18723         #
18724         # There doesn't appear to be a way to prevent this compiler from
18725         # explicitly linking system object files so we need to strip them
18726         # from the output so that they don't get included in the library
18727         # dependencies.
18728         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'
18729         ;;
18730       *)
18731         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18732           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18733           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'
18734
18735           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18736           hardcode_libdir_separator_CXX=:
18737
18738           # Commands to make compiler produce verbose output that lists
18739           # what "hidden" libraries, object files and flags are used when
18740           # linking a shared library.
18741           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18742
18743         else
18744           # FIXME: insert proper C++ library support
18745           ld_shlibs_CXX=no
18746         fi
18747         ;;
18748     esac
18749     ;;
18750   osf4* | osf5*)
18751     case $cc_basename in
18752       KCC*)
18753         # Kuck and Associates, Inc. (KAI) C++ Compiler
18754
18755         # KCC will only create a shared library if the output file
18756         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18757         # to its proper name (with version) after linking.
18758         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'
18759
18760         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18761         hardcode_libdir_separator_CXX=:
18762
18763         # Archives containing C++ object files must be created using
18764         # the KAI C++ compiler.
18765         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18766         ;;
18767       RCC*)
18768         # Rational C++ 2.4.1
18769         # FIXME: insert proper C++ library support
18770         ld_shlibs_CXX=no
18771         ;;
18772       cxx*)
18773         allow_undefined_flag_CXX=' -expect_unresolved \*'
18774         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'
18775         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18776           echo "-hidden">> $lib.exp~
18777           $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~
18778           $rm $lib.exp'
18779
18780         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18781         hardcode_libdir_separator_CXX=:
18782
18783         # Commands to make compiler produce verbose output that lists
18784         # what "hidden" libraries, object files and flags are used when
18785         # linking a shared library.
18786         #
18787         # There doesn't appear to be a way to prevent this compiler from
18788         # explicitly linking system object files so we need to strip them
18789         # from the output so that they don't get included in the library
18790         # dependencies.
18791         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'
18792         ;;
18793       *)
18794         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18795           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18796          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'
18797
18798           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18799           hardcode_libdir_separator_CXX=:
18800
18801           # Commands to make compiler produce verbose output that lists
18802           # what "hidden" libraries, object files and flags are used when
18803           # linking a shared library.
18804           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18805
18806         else
18807           # FIXME: insert proper C++ library support
18808           ld_shlibs_CXX=no
18809         fi
18810         ;;
18811     esac
18812     ;;
18813   psos*)
18814     # FIXME: insert proper C++ library support
18815     ld_shlibs_CXX=no
18816     ;;
18817   sunos4*)
18818     case $cc_basename in
18819       CC*)
18820         # Sun C++ 4.x
18821         # FIXME: insert proper C++ library support
18822         ld_shlibs_CXX=no
18823         ;;
18824       lcc*)
18825         # Lucid
18826         # FIXME: insert proper C++ library support
18827         ld_shlibs_CXX=no
18828         ;;
18829       *)
18830         # FIXME: insert proper C++ library support
18831         ld_shlibs_CXX=no
18832         ;;
18833     esac
18834     ;;
18835   solaris*)
18836     case $cc_basename in
18837       CC*)
18838         # Sun C++ 4.2, 5.x and Centerline C++
18839         archive_cmds_need_lc_CXX=yes
18840         no_undefined_flag_CXX=' -zdefs'
18841         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18842         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18843         $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'
18844
18845         hardcode_libdir_flag_spec_CXX='-R$libdir'
18846         hardcode_shlibpath_var_CXX=no
18847         case $host_os in
18848           solaris2.[0-5] | solaris2.[0-5].*) ;;
18849           *)
18850             # The C++ compiler is used as linker so we must use $wl
18851             # flag to pass the commands to the underlying system
18852             # linker. We must also pass each convience library through
18853             # to the system linker between allextract/defaultextract.
18854             # The C++ compiler will combine linker options so we
18855             # cannot just pass the convience library names through
18856             # without $wl.
18857             # Supported since Solaris 2.6 (maybe 2.5.1?)
18858             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'
18859             ;;
18860         esac
18861         link_all_deplibs_CXX=yes
18862
18863         output_verbose_link_cmd='echo'
18864
18865         # Archives containing C++ object files must be created using
18866         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18867         # necessary to make sure instantiated templates are included
18868         # in the archive.
18869         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18870         ;;
18871       gcx*)
18872         # Green Hills C++ Compiler
18873         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18874
18875         # The C++ compiler must be used to create the archive.
18876         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18877         ;;
18878       *)
18879         # GNU C++ compiler with Solaris linker
18880         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18881           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18882           if $CC --version | grep -v '^2\.7' > /dev/null; then
18883             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18884             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18885                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18886
18887             # Commands to make compiler produce verbose output that lists
18888             # what "hidden" libraries, object files and flags are used when
18889             # linking a shared library.
18890             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18891           else
18892             # g++ 2.7 appears to require `-G' NOT `-shared' on this
18893             # platform.
18894             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18895             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18896                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18897
18898             # Commands to make compiler produce verbose output that lists
18899             # what "hidden" libraries, object files and flags are used when
18900             # linking a shared library.
18901             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18902           fi
18903
18904           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18905         fi
18906         ;;
18907     esac
18908     ;;
18909   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18910     no_undefined_flag_CXX='${wl}-z,text'
18911     archive_cmds_need_lc_CXX=no
18912     hardcode_shlibpath_var_CXX=no
18913     runpath_var='LD_RUN_PATH'
18914
18915     case $cc_basename in
18916       CC*)
18917         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18918         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18919         ;;
18920       *)
18921         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18922         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18923         ;;
18924     esac
18925     ;;
18926   sysv5* | sco3.2v5* | sco5v6*)
18927     # Note: We can NOT use -z defs as we might desire, because we do not
18928     # link with -lc, and that would cause any symbols used from libc to
18929     # always be unresolved, which means just about no library would
18930     # ever link correctly.  If we're not using GNU ld we use -z text
18931     # though, which does catch some bad symbols but isn't as heavy-handed
18932     # as -z defs.
18933     # For security reasons, it is highly recommended that you always
18934     # use absolute paths for naming shared libraries, and exclude the
18935     # DT_RUNPATH tag from executables and libraries.  But doing so
18936     # requires that you compile everything twice, which is a pain.
18937     # So that behaviour is only enabled if SCOABSPATH is set to a
18938     # non-empty value in the environment.  Most likely only useful for
18939     # creating official distributions of packages.
18940     # This is a hack until libtool officially supports absolute path
18941     # names for shared libraries.
18942     no_undefined_flag_CXX='${wl}-z,text'
18943     allow_undefined_flag_CXX='${wl}-z,nodefs'
18944     archive_cmds_need_lc_CXX=no
18945     hardcode_shlibpath_var_CXX=no
18946     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18947     hardcode_libdir_separator_CXX=':'
18948     link_all_deplibs_CXX=yes
18949     export_dynamic_flag_spec_CXX='${wl}-Bexport'
18950     runpath_var='LD_RUN_PATH'
18951
18952     case $cc_basename in
18953       CC*)
18954         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18955         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18956         ;;
18957       *)
18958         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18959         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18960         ;;
18961     esac
18962     ;;
18963   tandem*)
18964     case $cc_basename in
18965       NCC*)
18966         # NonStop-UX NCC 3.20
18967         # FIXME: insert proper C++ library support
18968         ld_shlibs_CXX=no
18969         ;;
18970       *)
18971         # FIXME: insert proper C++ library support
18972         ld_shlibs_CXX=no
18973         ;;
18974     esac
18975     ;;
18976   vxworks*)
18977     # FIXME: insert proper C++ library support
18978     ld_shlibs_CXX=no
18979     ;;
18980   *)
18981     # FIXME: insert proper C++ library support
18982     ld_shlibs_CXX=no
18983     ;;
18984 esac
18985 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18986 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18987 test "$ld_shlibs_CXX" = no && can_build_shared=no
18988
18989 GCC_CXX="$GXX"
18990 LD_CXX="$LD"
18991
18992
18993 cat > conftest.$ac_ext <<EOF
18994 class Foo
18995 {
18996 public:
18997   Foo (void) { a = 0; }
18998 private:
18999   int a;
19000 };
19001 EOF
19002
19003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19004   (eval $ac_compile) 2>&5
19005   ac_status=$?
19006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007   (exit $ac_status); }; then
19008   # Parse the compiler output and extract the necessary
19009   # objects, libraries and library flags.
19010
19011   # Sentinel used to keep track of whether or not we are before
19012   # the conftest object file.
19013   pre_test_object_deps_done=no
19014
19015   # The `*' in the case matches for architectures that use `case' in
19016   # $output_verbose_cmd can trigger glob expansion during the loop
19017   # eval without this substitution.
19018   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19019
19020   for p in `eval $output_verbose_link_cmd`; do
19021     case $p in
19022
19023     -L* | -R* | -l*)
19024        # Some compilers place space between "-{L,R}" and the path.
19025        # Remove the space.
19026        if test $p = "-L" \
19027           || test $p = "-R"; then
19028          prev=$p
19029          continue
19030        else
19031          prev=
19032        fi
19033
19034        if test "$pre_test_object_deps_done" = no; then
19035          case $p in
19036          -L* | -R*)
19037            # Internal compiler library paths should come after those
19038            # provided the user.  The postdeps already come after the
19039            # user supplied libs so there is no need to process them.
19040            if test -z "$compiler_lib_search_path_CXX"; then
19041              compiler_lib_search_path_CXX="${prev}${p}"
19042            else
19043              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19044            fi
19045            ;;
19046          # The "-l" case would never come before the object being
19047          # linked, so don't bother handling this case.
19048          esac
19049        else
19050          if test -z "$postdeps_CXX"; then
19051            postdeps_CXX="${prev}${p}"
19052          else
19053            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19054          fi
19055        fi
19056        ;;
19057
19058     *.$objext)
19059        # This assumes that the test object file only shows up
19060        # once in the compiler output.
19061        if test "$p" = "conftest.$objext"; then
19062          pre_test_object_deps_done=yes
19063          continue
19064        fi
19065
19066        if test "$pre_test_object_deps_done" = no; then
19067          if test -z "$predep_objects_CXX"; then
19068            predep_objects_CXX="$p"
19069          else
19070            predep_objects_CXX="$predep_objects_CXX $p"
19071          fi
19072        else
19073          if test -z "$postdep_objects_CXX"; then
19074            postdep_objects_CXX="$p"
19075          else
19076            postdep_objects_CXX="$postdep_objects_CXX $p"
19077          fi
19078        fi
19079        ;;
19080
19081     *) ;; # Ignore the rest.
19082
19083     esac
19084   done
19085
19086   # Clean up.
19087   rm -f a.out a.exe
19088 else
19089   echo "libtool.m4: error: problem compiling CXX test program"
19090 fi
19091
19092 $rm -f confest.$objext
19093
19094 # PORTME: override above test on systems where it is broken
19095 case $host_os in
19096 interix3*)
19097   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19098   # hack all around it, let's just trust "g++" to DTRT.
19099   predep_objects_CXX=
19100   postdep_objects_CXX=
19101   postdeps_CXX=
19102   ;;
19103
19104 solaris*)
19105   case $cc_basename in
19106   CC*)
19107     # Adding this requires a known-good setup of shared libraries for
19108     # Sun compiler versions before 5.6, else PIC objects from an old
19109     # archive will be linked into the output, leading to subtle bugs.
19110     postdeps_CXX='-lCstd -lCrun'
19111     ;;
19112   esac
19113   ;;
19114 esac
19115
19116
19117 case " $postdeps_CXX " in
19118 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19119 esac
19120
19121 lt_prog_compiler_wl_CXX=
19122 lt_prog_compiler_pic_CXX=
19123 lt_prog_compiler_static_CXX=
19124
19125 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19126 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19127
19128   # C++ specific cases for pic, static, wl, etc.
19129   if test "$GXX" = yes; then
19130     lt_prog_compiler_wl_CXX='-Wl,'
19131     lt_prog_compiler_static_CXX='-static'
19132
19133     case $host_os in
19134     aix*)
19135       # All AIX code is PIC.
19136       if test "$host_cpu" = ia64; then
19137         # AIX 5 now supports IA64 processor
19138         lt_prog_compiler_static_CXX='-Bstatic'
19139       fi
19140       ;;
19141     amigaos*)
19142       # FIXME: we need at least 68020 code to build shared libraries, but
19143       # adding the `-m68020' flag to GCC prevents building anything better,
19144       # like `-m68040'.
19145       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19146       ;;
19147     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19148       # PIC is the default for these OSes.
19149       ;;
19150     mingw* | os2* | pw32*)
19151       # This hack is so that the source file can tell whether it is being
19152       # built for inclusion in a dll (and should export symbols for example).
19153       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19154       ;;
19155     darwin* | rhapsody*)
19156       # PIC is the default on this platform
19157       # Common symbols not allowed in MH_DYLIB files
19158       lt_prog_compiler_pic_CXX='-fno-common'
19159       ;;
19160     *djgpp*)
19161       # DJGPP does not support shared libraries at all
19162       lt_prog_compiler_pic_CXX=
19163       ;;
19164     interix3*)
19165       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19166       # Instead, we relocate shared libraries at runtime.
19167       ;;
19168     sysv4*MP*)
19169       if test -d /usr/nec; then
19170         lt_prog_compiler_pic_CXX=-Kconform_pic
19171       fi
19172       ;;
19173     hpux*)
19174       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19175       # not for PA HP-UX.
19176       case $host_cpu in
19177       hppa*64*|ia64*)
19178         ;;
19179       *)
19180         lt_prog_compiler_pic_CXX='-fPIC'
19181         ;;
19182       esac
19183       ;;
19184     *)
19185       lt_prog_compiler_pic_CXX='-fPIC'
19186       ;;
19187     esac
19188   else
19189     case $host_os in
19190       aix4* | aix5*)
19191         # All AIX code is PIC.
19192         if test "$host_cpu" = ia64; then
19193           # AIX 5 now supports IA64 processor
19194           lt_prog_compiler_static_CXX='-Bstatic'
19195         else
19196           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19197         fi
19198         ;;
19199       chorus*)
19200         case $cc_basename in
19201         cxch68*)
19202           # Green Hills C++ Compiler
19203           # _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"
19204           ;;
19205         esac
19206         ;;
19207        darwin*)
19208          # PIC is the default on this platform
19209          # Common symbols not allowed in MH_DYLIB files
19210          case $cc_basename in
19211            xlc*)
19212            lt_prog_compiler_pic_CXX='-qnocommon'
19213            lt_prog_compiler_wl_CXX='-Wl,'
19214            ;;
19215          esac
19216        ;;
19217       dgux*)
19218         case $cc_basename in
19219           ec++*)
19220             lt_prog_compiler_pic_CXX='-KPIC'
19221             ;;
19222           ghcx*)
19223             # Green Hills C++ Compiler
19224             lt_prog_compiler_pic_CXX='-pic'
19225             ;;
19226           *)
19227             ;;
19228         esac
19229         ;;
19230       freebsd* | kfreebsd*-gnu | dragonfly*)
19231         # FreeBSD uses GNU C++
19232         ;;
19233       hpux9* | hpux10* | hpux11*)
19234         case $cc_basename in
19235           CC*)
19236             lt_prog_compiler_wl_CXX='-Wl,'
19237             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19238             if test "$host_cpu" != ia64; then
19239               lt_prog_compiler_pic_CXX='+Z'
19240             fi
19241             ;;
19242           aCC*)
19243             lt_prog_compiler_wl_CXX='-Wl,'
19244             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19245             case $host_cpu in
19246             hppa*64*|ia64*)
19247               # +Z the default
19248               ;;
19249             *)
19250               lt_prog_compiler_pic_CXX='+Z'
19251               ;;
19252             esac
19253             ;;
19254           *)
19255             ;;
19256         esac
19257         ;;
19258       interix*)
19259         # This is c89, which is MS Visual C++ (no shared libs)
19260         # Anyone wants to do a port?
19261         ;;
19262       irix5* | irix6* | nonstopux*)
19263         case $cc_basename in
19264           CC*)
19265             lt_prog_compiler_wl_CXX='-Wl,'
19266             lt_prog_compiler_static_CXX='-non_shared'
19267             # CC pic flag -KPIC is the default.
19268             ;;
19269           *)
19270             ;;
19271         esac
19272         ;;
19273       linux*)
19274         case $cc_basename in
19275           KCC*)
19276             # KAI C++ Compiler
19277             lt_prog_compiler_wl_CXX='--backend -Wl,'
19278             lt_prog_compiler_pic_CXX='-fPIC'
19279             ;;
19280           icpc* | ecpc*)
19281             # Intel C++
19282             lt_prog_compiler_wl_CXX='-Wl,'
19283             lt_prog_compiler_pic_CXX='-KPIC'
19284             lt_prog_compiler_static_CXX='-static'
19285             ;;
19286           pgCC*)
19287             # Portland Group C++ compiler.
19288             lt_prog_compiler_wl_CXX='-Wl,'
19289             lt_prog_compiler_pic_CXX='-fpic'
19290             lt_prog_compiler_static_CXX='-Bstatic'
19291             ;;
19292           cxx*)
19293             # Compaq C++
19294             # Make sure the PIC flag is empty.  It appears that all Alpha
19295             # Linux and Compaq Tru64 Unix objects are PIC.
19296             lt_prog_compiler_pic_CXX=
19297             lt_prog_compiler_static_CXX='-non_shared'
19298             ;;
19299           *)
19300             ;;
19301         esac
19302         ;;
19303       lynxos*)
19304         ;;
19305       m88k*)
19306         ;;
19307       mvs*)
19308         case $cc_basename in
19309           cxx*)
19310             lt_prog_compiler_pic_CXX='-W c,exportall'
19311             ;;
19312           *)
19313             ;;
19314         esac
19315         ;;
19316       netbsd*)
19317         ;;
19318       osf3* | osf4* | osf5*)
19319         case $cc_basename in
19320           KCC*)
19321             lt_prog_compiler_wl_CXX='--backend -Wl,'
19322             ;;
19323           RCC*)
19324             # Rational C++ 2.4.1
19325             lt_prog_compiler_pic_CXX='-pic'
19326             ;;
19327           cxx*)
19328             # Digital/Compaq C++
19329             lt_prog_compiler_wl_CXX='-Wl,'
19330             # Make sure the PIC flag is empty.  It appears that all Alpha
19331             # Linux and Compaq Tru64 Unix objects are PIC.
19332             lt_prog_compiler_pic_CXX=
19333             lt_prog_compiler_static_CXX='-non_shared'
19334             ;;
19335           *)
19336             ;;
19337         esac
19338         ;;
19339       psos*)
19340         ;;
19341       solaris*)
19342         case $cc_basename in
19343           CC*)
19344             # Sun C++ 4.2, 5.x and Centerline C++
19345             lt_prog_compiler_pic_CXX='-KPIC'
19346             lt_prog_compiler_static_CXX='-Bstatic'
19347             lt_prog_compiler_wl_CXX='-Qoption ld '
19348             ;;
19349           gcx*)
19350             # Green Hills C++ Compiler
19351             lt_prog_compiler_pic_CXX='-PIC'
19352             ;;
19353           *)
19354             ;;
19355         esac
19356         ;;
19357       sunos4*)
19358         case $cc_basename in
19359           CC*)
19360             # Sun C++ 4.x
19361             lt_prog_compiler_pic_CXX='-pic'
19362             lt_prog_compiler_static_CXX='-Bstatic'
19363             ;;
19364           lcc*)
19365             # Lucid
19366             lt_prog_compiler_pic_CXX='-pic'
19367             ;;
19368           *)
19369             ;;
19370         esac
19371         ;;
19372       tandem*)
19373         case $cc_basename in
19374           NCC*)
19375             # NonStop-UX NCC 3.20
19376             lt_prog_compiler_pic_CXX='-KPIC'
19377             ;;
19378           *)
19379             ;;
19380         esac
19381         ;;
19382       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19383         case $cc_basename in
19384           CC*)
19385             lt_prog_compiler_wl_CXX='-Wl,'
19386             lt_prog_compiler_pic_CXX='-KPIC'
19387             lt_prog_compiler_static_CXX='-Bstatic'
19388             ;;
19389         esac
19390         ;;
19391       vxworks*)
19392         ;;
19393       *)
19394         lt_prog_compiler_can_build_shared_CXX=no
19395         ;;
19396     esac
19397   fi
19398
19399 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19400 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19401
19402 #
19403 # Check to make sure the PIC flag actually works.
19404 #
19405 if test -n "$lt_prog_compiler_pic_CXX"; then
19406
19407 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19408 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19409 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19410   echo $ECHO_N "(cached) $ECHO_C" >&6
19411 else
19412   lt_prog_compiler_pic_works_CXX=no
19413   ac_outfile=conftest.$ac_objext
19414    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19415    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19416    # Insert the option either (1) after the last *FLAGS variable, or
19417    # (2) before a word containing "conftest.", or (3) at the end.
19418    # Note that $ac_compile itself does not contain backslashes and begins
19419    # with a dollar sign (not a hyphen), so the echo should work correctly.
19420    # The option is referenced via a variable to avoid confusing sed.
19421    lt_compile=`echo "$ac_compile" | $SED \
19422    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19423    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19424    -e 's:$: $lt_compiler_flag:'`
19425    (eval echo "\"\$as_me:19425: $lt_compile\"" >&5)
19426    (eval "$lt_compile" 2>conftest.err)
19427    ac_status=$?
19428    cat conftest.err >&5
19429    echo "$as_me:19429: \$? = $ac_status" >&5
19430    if (exit $ac_status) && test -s "$ac_outfile"; then
19431      # The compiler can only warn and ignore the option if not recognized
19432      # So say no if there are warnings other than the usual output.
19433      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19434      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19435      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19436        lt_prog_compiler_pic_works_CXX=yes
19437      fi
19438    fi
19439    $rm conftest*
19440
19441 fi
19442 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19443 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19444
19445 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19446     case $lt_prog_compiler_pic_CXX in
19447      "" | " "*) ;;
19448      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19449      esac
19450 else
19451     lt_prog_compiler_pic_CXX=
19452      lt_prog_compiler_can_build_shared_CXX=no
19453 fi
19454
19455 fi
19456 case $host_os in
19457   # For platforms which do not support PIC, -DPIC is meaningless:
19458   *djgpp*)
19459     lt_prog_compiler_pic_CXX=
19460     ;;
19461   *)
19462     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19463     ;;
19464 esac
19465
19466 #
19467 # Check to make sure the static flag actually works.
19468 #
19469 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19470 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19471 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19472 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19473   echo $ECHO_N "(cached) $ECHO_C" >&6
19474 else
19475   lt_prog_compiler_static_works_CXX=no
19476    save_LDFLAGS="$LDFLAGS"
19477    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19478    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19479    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19480      # The linker can only warn and ignore the option if not recognized
19481      # So say no if there are warnings
19482      if test -s conftest.err; then
19483        # Append any errors to the config.log.
19484        cat conftest.err 1>&5
19485        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19486        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19487        if diff conftest.exp conftest.er2 >/dev/null; then
19488          lt_prog_compiler_static_works_CXX=yes
19489        fi
19490      else
19491        lt_prog_compiler_static_works_CXX=yes
19492      fi
19493    fi
19494    $rm conftest*
19495    LDFLAGS="$save_LDFLAGS"
19496
19497 fi
19498 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19499 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19500
19501 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19502     :
19503 else
19504     lt_prog_compiler_static_CXX=
19505 fi
19506
19507
19508 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19509 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19510 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19511   echo $ECHO_N "(cached) $ECHO_C" >&6
19512 else
19513   lt_cv_prog_compiler_c_o_CXX=no
19514    $rm -r conftest 2>/dev/null
19515    mkdir conftest
19516    cd conftest
19517    mkdir out
19518    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19519
19520    lt_compiler_flag="-o out/conftest2.$ac_objext"
19521    # Insert the option either (1) after the last *FLAGS variable, or
19522    # (2) before a word containing "conftest.", or (3) at the end.
19523    # Note that $ac_compile itself does not contain backslashes and begins
19524    # with a dollar sign (not a hyphen), so the echo should work correctly.
19525    lt_compile=`echo "$ac_compile" | $SED \
19526    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19527    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19528    -e 's:$: $lt_compiler_flag:'`
19529    (eval echo "\"\$as_me:19529: $lt_compile\"" >&5)
19530    (eval "$lt_compile" 2>out/conftest.err)
19531    ac_status=$?
19532    cat out/conftest.err >&5
19533    echo "$as_me:19533: \$? = $ac_status" >&5
19534    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19535    then
19536      # The compiler can only warn and ignore the option if not recognized
19537      # So say no if there are warnings
19538      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19539      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19540      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19541        lt_cv_prog_compiler_c_o_CXX=yes
19542      fi
19543    fi
19544    chmod u+w . 2>&5
19545    $rm conftest*
19546    # SGI C++ compiler will create directory out/ii_files/ for
19547    # template instantiation
19548    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19549    $rm out/* && rmdir out
19550    cd ..
19551    rmdir conftest
19552    $rm conftest*
19553
19554 fi
19555 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19556 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19557
19558
19559 hard_links="nottested"
19560 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19561   # do not overwrite the value of need_locks provided by the user
19562   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19563 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19564   hard_links=yes
19565   $rm conftest*
19566   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19567   touch conftest.a
19568   ln conftest.a conftest.b 2>&5 || hard_links=no
19569   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19570   { echo "$as_me:$LINENO: result: $hard_links" >&5
19571 echo "${ECHO_T}$hard_links" >&6; }
19572   if test "$hard_links" = no; then
19573     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19574 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19575     need_locks=warn
19576   fi
19577 else
19578   need_locks=no
19579 fi
19580
19581 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19582 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19583
19584   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19585   case $host_os in
19586   aix4* | aix5*)
19587     # If we're using GNU nm, then we don't want the "-C" option.
19588     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19589     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19590       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'
19591     else
19592       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'
19593     fi
19594     ;;
19595   pw32*)
19596     export_symbols_cmds_CXX="$ltdll_cmds"
19597   ;;
19598   cygwin* | mingw*)
19599     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'
19600   ;;
19601   *)
19602     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19603   ;;
19604   esac
19605
19606 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19607 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19608 test "$ld_shlibs_CXX" = no && can_build_shared=no
19609
19610 #
19611 # Do we need to explicitly link libc?
19612 #
19613 case "x$archive_cmds_need_lc_CXX" in
19614 x|xyes)
19615   # Assume -lc should be added
19616   archive_cmds_need_lc_CXX=yes
19617
19618   if test "$enable_shared" = yes && test "$GCC" = yes; then
19619     case $archive_cmds_CXX in
19620     *'~'*)
19621       # FIXME: we may have to deal with multi-command sequences.
19622       ;;
19623     '$CC '*)
19624       # Test whether the compiler implicitly links with -lc since on some
19625       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19626       # to ld, don't add -lc before -lgcc.
19627       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19628 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19629       $rm conftest*
19630       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19631
19632       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19633   (eval $ac_compile) 2>&5
19634   ac_status=$?
19635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); } 2>conftest.err; then
19637         soname=conftest
19638         lib=conftest
19639         libobjs=conftest.$ac_objext
19640         deplibs=
19641         wl=$lt_prog_compiler_wl_CXX
19642         pic_flag=$lt_prog_compiler_pic_CXX
19643         compiler_flags=-v
19644         linker_flags=-v
19645         verstring=
19646         output_objdir=.
19647         libname=conftest
19648         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19649         allow_undefined_flag_CXX=
19650         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19651   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19652   ac_status=$?
19653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654   (exit $ac_status); }
19655         then
19656           archive_cmds_need_lc_CXX=no
19657         else
19658           archive_cmds_need_lc_CXX=yes
19659         fi
19660         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19661       else
19662         cat conftest.err 1>&5
19663       fi
19664       $rm conftest*
19665       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19666 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19667       ;;
19668     esac
19669   fi
19670   ;;
19671 esac
19672
19673 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19674 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19675 library_names_spec=
19676 libname_spec='lib$name'
19677 soname_spec=
19678 shrext_cmds=".so"
19679 postinstall_cmds=
19680 postuninstall_cmds=
19681 finish_cmds=
19682 finish_eval=
19683 shlibpath_var=
19684 shlibpath_overrides_runpath=unknown
19685 version_type=none
19686 dynamic_linker="$host_os ld.so"
19687 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19688 if test "$GCC" = yes; then
19689   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19690   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19691     # if the path contains ";" then we assume it to be the separator
19692     # otherwise default to the standard path separator (i.e. ":") - it is
19693     # assumed that no part of a normal pathname contains ";" but that should
19694     # okay in the real world where ";" in dirpaths is itself problematic.
19695     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19696   else
19697     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19698   fi
19699 else
19700   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19701 fi
19702 need_lib_prefix=unknown
19703 hardcode_into_libs=no
19704
19705 # when you set need_version to no, make sure it does not cause -set_version
19706 # flags to be left without arguments
19707 need_version=unknown
19708
19709 case $host_os in
19710 aix3*)
19711   version_type=linux
19712   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19713   shlibpath_var=LIBPATH
19714
19715   # AIX 3 has no versioning support, so we append a major version to the name.
19716   soname_spec='${libname}${release}${shared_ext}$major'
19717   ;;
19718
19719 aix4* | aix5*)
19720   version_type=linux
19721   need_lib_prefix=no
19722   need_version=no
19723   hardcode_into_libs=yes
19724   if test "$host_cpu" = ia64; then
19725     # AIX 5 supports IA64
19726     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19727     shlibpath_var=LD_LIBRARY_PATH
19728   else
19729     # With GCC up to 2.95.x, collect2 would create an import file
19730     # for dependence libraries.  The import file would start with
19731     # the line `#! .'.  This would cause the generated library to
19732     # depend on `.', always an invalid library.  This was fixed in
19733     # development snapshots of GCC prior to 3.0.
19734     case $host_os in
19735       aix4 | aix4.[01] | aix4.[01].*)
19736       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19737            echo ' yes '
19738            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19739         :
19740       else
19741         can_build_shared=no
19742       fi
19743       ;;
19744     esac
19745     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19746     # soname into executable. Probably we can add versioning support to
19747     # collect2, so additional links can be useful in future.
19748     if test "$aix_use_runtimelinking" = yes; then
19749       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19750       # instead of lib<name>.a to let people know that these are not
19751       # typical AIX shared libraries.
19752       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19753     else
19754       # We preserve .a as extension for shared libraries through AIX4.2
19755       # and later when we are not doing run time linking.
19756       library_names_spec='${libname}${release}.a $libname.a'
19757       soname_spec='${libname}${release}${shared_ext}$major'
19758     fi
19759     shlibpath_var=LIBPATH
19760   fi
19761   ;;
19762
19763 amigaos*)
19764   library_names_spec='$libname.ixlibrary $libname.a'
19765   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19766   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'
19767   ;;
19768
19769 beos*)
19770   library_names_spec='${libname}${shared_ext}'
19771   dynamic_linker="$host_os ld.so"
19772   shlibpath_var=LIBRARY_PATH
19773   ;;
19774
19775 bsdi[45]*)
19776   version_type=linux
19777   need_version=no
19778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19779   soname_spec='${libname}${release}${shared_ext}$major'
19780   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19781   shlibpath_var=LD_LIBRARY_PATH
19782   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19783   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19784   # the default ld.so.conf also contains /usr/contrib/lib and
19785   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19786   # libtool to hard-code these into programs
19787   ;;
19788
19789 cygwin* | mingw* | pw32*)
19790   version_type=windows
19791   shrext_cmds=".dll"
19792   need_version=no
19793   need_lib_prefix=no
19794
19795   case $GCC,$host_os in
19796   yes,cygwin* | yes,mingw* | yes,pw32*)
19797     library_names_spec='$libname.dll.a'
19798     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19799     postinstall_cmds='base_file=`basename \${file}`~
19800       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19801       dldir=$destdir/`dirname \$dlpath`~
19802       test -d \$dldir || mkdir -p \$dldir~
19803       $install_prog $dir/$dlname \$dldir/$dlname~
19804       chmod a+x \$dldir/$dlname'
19805     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19806       dlpath=$dir/\$dldll~
19807        $rm \$dlpath'
19808     shlibpath_overrides_runpath=yes
19809
19810     case $host_os in
19811     cygwin*)
19812       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19813       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19814       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19815       ;;
19816     mingw*)
19817       # MinGW DLLs use traditional 'lib' prefix
19818       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19819       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19820       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19821         # It is most probably a Windows format PATH printed by
19822         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19823         # path with ; separators, and with drive letters. We can handle the
19824         # drive letters (cygwin fileutils understands them), so leave them,
19825         # especially as we might pass files found there to a mingw objdump,
19826         # which wouldn't understand a cygwinified path. Ahh.
19827         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19828       else
19829         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19830       fi
19831       ;;
19832     pw32*)
19833       # pw32 DLLs use 'pw' prefix rather than 'lib'
19834       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19835       ;;
19836     esac
19837     ;;
19838
19839   *)
19840     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19841     ;;
19842   esac
19843   dynamic_linker='Win32 ld.exe'
19844   # FIXME: first we should search . and the directory the executable is in
19845   shlibpath_var=PATH
19846   ;;
19847
19848 darwin* | rhapsody*)
19849   dynamic_linker="$host_os dyld"
19850   version_type=darwin
19851   need_lib_prefix=no
19852   need_version=no
19853   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19854   soname_spec='${libname}${release}${major}$shared_ext'
19855   shlibpath_overrides_runpath=yes
19856   shlibpath_var=DYLD_LIBRARY_PATH
19857   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19858   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19859   if test "$GCC" = yes; then
19860     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"`
19861   else
19862     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19863   fi
19864   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19865   ;;
19866
19867 dgux*)
19868   version_type=linux
19869   need_lib_prefix=no
19870   need_version=no
19871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19872   soname_spec='${libname}${release}${shared_ext}$major'
19873   shlibpath_var=LD_LIBRARY_PATH
19874   ;;
19875
19876 freebsd1*)
19877   dynamic_linker=no
19878   ;;
19879
19880 kfreebsd*-gnu)
19881   version_type=linux
19882   need_lib_prefix=no
19883   need_version=no
19884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19885   soname_spec='${libname}${release}${shared_ext}$major'
19886   shlibpath_var=LD_LIBRARY_PATH
19887   shlibpath_overrides_runpath=no
19888   hardcode_into_libs=yes
19889   dynamic_linker='GNU ld.so'
19890   ;;
19891
19892 freebsd* | dragonfly*)
19893   # DragonFly does not have aout.  When/if they implement a new
19894   # versioning mechanism, adjust this.
19895   if test -x /usr/bin/objformat; then
19896     objformat=`/usr/bin/objformat`
19897   else
19898     case $host_os in
19899     freebsd[123]*) objformat=aout ;;
19900     *) objformat=elf ;;
19901     esac
19902   fi
19903   version_type=freebsd-$objformat
19904   case $version_type in
19905     freebsd-elf*)
19906       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19907       need_version=no
19908       need_lib_prefix=no
19909       ;;
19910     freebsd-*)
19911       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19912       need_version=yes
19913       ;;
19914   esac
19915   shlibpath_var=LD_LIBRARY_PATH
19916   case $host_os in
19917   freebsd2*)
19918     shlibpath_overrides_runpath=yes
19919     ;;
19920   freebsd3.[01]* | freebsdelf3.[01]*)
19921     shlibpath_overrides_runpath=yes
19922     hardcode_into_libs=yes
19923     ;;
19924   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19925   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19926     shlibpath_overrides_runpath=no
19927     hardcode_into_libs=yes
19928     ;;
19929   freebsd*) # from 4.6 on
19930     shlibpath_overrides_runpath=yes
19931     hardcode_into_libs=yes
19932     ;;
19933   esac
19934   ;;
19935
19936 gnu*)
19937   version_type=linux
19938   need_lib_prefix=no
19939   need_version=no
19940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19941   soname_spec='${libname}${release}${shared_ext}$major'
19942   shlibpath_var=LD_LIBRARY_PATH
19943   hardcode_into_libs=yes
19944   ;;
19945
19946 hpux9* | hpux10* | hpux11*)
19947   # Give a soname corresponding to the major version so that dld.sl refuses to
19948   # link against other versions.
19949   version_type=sunos
19950   need_lib_prefix=no
19951   need_version=no
19952   case $host_cpu in
19953   ia64*)
19954     shrext_cmds='.so'
19955     hardcode_into_libs=yes
19956     dynamic_linker="$host_os dld.so"
19957     shlibpath_var=LD_LIBRARY_PATH
19958     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19959     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19960     soname_spec='${libname}${release}${shared_ext}$major'
19961     if test "X$HPUX_IA64_MODE" = X32; then
19962       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19963     else
19964       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19965     fi
19966     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19967     ;;
19968    hppa*64*)
19969      shrext_cmds='.sl'
19970      hardcode_into_libs=yes
19971      dynamic_linker="$host_os dld.sl"
19972      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19973      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19974      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19975      soname_spec='${libname}${release}${shared_ext}$major'
19976      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19977      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19978      ;;
19979    *)
19980     shrext_cmds='.sl'
19981     dynamic_linker="$host_os dld.sl"
19982     shlibpath_var=SHLIB_PATH
19983     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19984     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19985     soname_spec='${libname}${release}${shared_ext}$major'
19986     ;;
19987   esac
19988   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19989   postinstall_cmds='chmod 555 $lib'
19990   ;;
19991
19992 interix3*)
19993   version_type=linux
19994   need_lib_prefix=no
19995   need_version=no
19996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19997   soname_spec='${libname}${release}${shared_ext}$major'
19998   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19999   shlibpath_var=LD_LIBRARY_PATH
20000   shlibpath_overrides_runpath=no
20001   hardcode_into_libs=yes
20002   ;;
20003
20004 irix5* | irix6* | nonstopux*)
20005   case $host_os in
20006     nonstopux*) version_type=nonstopux ;;
20007     *)
20008         if test "$lt_cv_prog_gnu_ld" = yes; then
20009                 version_type=linux
20010         else
20011                 version_type=irix
20012         fi ;;
20013   esac
20014   need_lib_prefix=no
20015   need_version=no
20016   soname_spec='${libname}${release}${shared_ext}$major'
20017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20018   case $host_os in
20019   irix5* | nonstopux*)
20020     libsuff= shlibsuff=
20021     ;;
20022   *)
20023     case $LD in # libtool.m4 will add one of these switches to LD
20024     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20025       libsuff= shlibsuff= libmagic=32-bit;;
20026     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20027       libsuff=32 shlibsuff=N32 libmagic=N32;;
20028     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20029       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20030     *) libsuff= shlibsuff= libmagic=never-match;;
20031     esac
20032     ;;
20033   esac
20034   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20035   shlibpath_overrides_runpath=no
20036   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20037   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20038   hardcode_into_libs=yes
20039   ;;
20040
20041 # No shared lib support for Linux oldld, aout, or coff.
20042 linux*oldld* | linux*aout* | linux*coff*)
20043   dynamic_linker=no
20044   ;;
20045
20046 # This must be Linux ELF.
20047 linux*)
20048   version_type=linux
20049   need_lib_prefix=no
20050   need_version=no
20051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20052   soname_spec='${libname}${release}${shared_ext}$major'
20053   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20054   shlibpath_var=LD_LIBRARY_PATH
20055   shlibpath_overrides_runpath=no
20056   # This implies no fast_install, which is unacceptable.
20057   # Some rework will be needed to allow for fast_install
20058   # before this can be enabled.
20059   hardcode_into_libs=yes
20060
20061   # Append ld.so.conf contents to the search path
20062   if test -f /etc/ld.so.conf; then
20063     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' ' '`
20064     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20065   fi
20066
20067   # We used to test for /lib/ld.so.1 and disable shared libraries on
20068   # powerpc, because MkLinux only supported shared libraries with the
20069   # GNU dynamic linker.  Since this was broken with cross compilers,
20070   # most powerpc-linux boxes support dynamic linking these days and
20071   # people can always --disable-shared, the test was removed, and we
20072   # assume the GNU/Linux dynamic linker is in use.
20073   dynamic_linker='GNU/Linux ld.so'
20074   ;;
20075
20076 knetbsd*-gnu)
20077   version_type=linux
20078   need_lib_prefix=no
20079   need_version=no
20080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20081   soname_spec='${libname}${release}${shared_ext}$major'
20082   shlibpath_var=LD_LIBRARY_PATH
20083   shlibpath_overrides_runpath=no
20084   hardcode_into_libs=yes
20085   dynamic_linker='GNU ld.so'
20086   ;;
20087
20088 netbsd*)
20089   version_type=sunos
20090   need_lib_prefix=no
20091   need_version=no
20092   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20093     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20094     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20095     dynamic_linker='NetBSD (a.out) ld.so'
20096   else
20097     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20098     soname_spec='${libname}${release}${shared_ext}$major'
20099     dynamic_linker='NetBSD ld.elf_so'
20100   fi
20101   shlibpath_var=LD_LIBRARY_PATH
20102   shlibpath_overrides_runpath=yes
20103   hardcode_into_libs=yes
20104   ;;
20105
20106 newsos6)
20107   version_type=linux
20108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20109   shlibpath_var=LD_LIBRARY_PATH
20110   shlibpath_overrides_runpath=yes
20111   ;;
20112
20113 nto-qnx*)
20114   version_type=linux
20115   need_lib_prefix=no
20116   need_version=no
20117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20118   soname_spec='${libname}${release}${shared_ext}$major'
20119   shlibpath_var=LD_LIBRARY_PATH
20120   shlibpath_overrides_runpath=yes
20121   ;;
20122
20123 openbsd*)
20124   version_type=sunos
20125   sys_lib_dlsearch_path_spec="/usr/lib"
20126   need_lib_prefix=no
20127   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20128   case $host_os in
20129     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20130     *)                         need_version=no  ;;
20131   esac
20132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20133   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20134   shlibpath_var=LD_LIBRARY_PATH
20135   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20136     case $host_os in
20137       openbsd2.[89] | openbsd2.[89].*)
20138         shlibpath_overrides_runpath=no
20139         ;;
20140       *)
20141         shlibpath_overrides_runpath=yes
20142         ;;
20143       esac
20144   else
20145     shlibpath_overrides_runpath=yes
20146   fi
20147   ;;
20148
20149 os2*)
20150   libname_spec='$name'
20151   shrext_cmds=".dll"
20152   need_lib_prefix=no
20153   library_names_spec='$libname${shared_ext} $libname.a'
20154   dynamic_linker='OS/2 ld.exe'
20155   shlibpath_var=LIBPATH
20156   ;;
20157
20158 osf3* | osf4* | osf5*)
20159   version_type=osf
20160   need_lib_prefix=no
20161   need_version=no
20162   soname_spec='${libname}${release}${shared_ext}$major'
20163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20164   shlibpath_var=LD_LIBRARY_PATH
20165   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20166   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20167   ;;
20168
20169 solaris*)
20170   version_type=linux
20171   need_lib_prefix=no
20172   need_version=no
20173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20174   soname_spec='${libname}${release}${shared_ext}$major'
20175   shlibpath_var=LD_LIBRARY_PATH
20176   shlibpath_overrides_runpath=yes
20177   hardcode_into_libs=yes
20178   # ldd complains unless libraries are executable
20179   postinstall_cmds='chmod +x $lib'
20180   ;;
20181
20182 sunos4*)
20183   version_type=sunos
20184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20185   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20186   shlibpath_var=LD_LIBRARY_PATH
20187   shlibpath_overrides_runpath=yes
20188   if test "$with_gnu_ld" = yes; then
20189     need_lib_prefix=no
20190   fi
20191   need_version=yes
20192   ;;
20193
20194 sysv4 | sysv4.3*)
20195   version_type=linux
20196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20197   soname_spec='${libname}${release}${shared_ext}$major'
20198   shlibpath_var=LD_LIBRARY_PATH
20199   case $host_vendor in
20200     sni)
20201       shlibpath_overrides_runpath=no
20202       need_lib_prefix=no
20203       export_dynamic_flag_spec='${wl}-Blargedynsym'
20204       runpath_var=LD_RUN_PATH
20205       ;;
20206     siemens)
20207       need_lib_prefix=no
20208       ;;
20209     motorola)
20210       need_lib_prefix=no
20211       need_version=no
20212       shlibpath_overrides_runpath=no
20213       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20214       ;;
20215   esac
20216   ;;
20217
20218 sysv4*MP*)
20219   if test -d /usr/nec ;then
20220     version_type=linux
20221     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20222     soname_spec='$libname${shared_ext}.$major'
20223     shlibpath_var=LD_LIBRARY_PATH
20224   fi
20225   ;;
20226
20227 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20228   version_type=freebsd-elf
20229   need_lib_prefix=no
20230   need_version=no
20231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20232   soname_spec='${libname}${release}${shared_ext}$major'
20233   shlibpath_var=LD_LIBRARY_PATH
20234   hardcode_into_libs=yes
20235   if test "$with_gnu_ld" = yes; then
20236     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20237     shlibpath_overrides_runpath=no
20238   else
20239     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20240     shlibpath_overrides_runpath=yes
20241     case $host_os in
20242       sco3.2v5*)
20243         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20244         ;;
20245     esac
20246   fi
20247   sys_lib_dlsearch_path_spec='/usr/lib'
20248   ;;
20249
20250 uts4*)
20251   version_type=linux
20252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20253   soname_spec='${libname}${release}${shared_ext}$major'
20254   shlibpath_var=LD_LIBRARY_PATH
20255   ;;
20256
20257 *)
20258   dynamic_linker=no
20259   ;;
20260 esac
20261 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20262 echo "${ECHO_T}$dynamic_linker" >&6; }
20263 test "$dynamic_linker" = no && can_build_shared=no
20264
20265 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20266 if test "$GCC" = yes; then
20267   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20268 fi
20269
20270 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20271 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20272 hardcode_action_CXX=
20273 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20274    test -n "$runpath_var_CXX" || \
20275    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20276
20277   # We can hardcode non-existant directories.
20278   if test "$hardcode_direct_CXX" != no &&
20279      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20280      # have to relink, otherwise we might link with an installed library
20281      # when we should be linking with a yet-to-be-installed one
20282      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20283      test "$hardcode_minus_L_CXX" != no; then
20284     # Linking always hardcodes the temporary library directory.
20285     hardcode_action_CXX=relink
20286   else
20287     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20288     hardcode_action_CXX=immediate
20289   fi
20290 else
20291   # We cannot hardcode anything, or else we can only hardcode existing
20292   # directories.
20293   hardcode_action_CXX=unsupported
20294 fi
20295 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20296 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20297
20298 if test "$hardcode_action_CXX" = relink; then
20299   # Fast installation is not supported
20300   enable_fast_install=no
20301 elif test "$shlibpath_overrides_runpath" = yes ||
20302      test "$enable_shared" = no; then
20303   # Fast installation is not necessary
20304   enable_fast_install=needless
20305 fi
20306
20307
20308 # The else clause should only fire when bootstrapping the
20309 # libtool distribution, otherwise you forgot to ship ltmain.sh
20310 # with your package, and you will get complaints that there are
20311 # no rules to generate ltmain.sh.
20312 if test -f "$ltmain"; then
20313   # See if we are running on zsh, and set the options which allow our commands through
20314   # without removal of \ escapes.
20315   if test -n "${ZSH_VERSION+set}" ; then
20316     setopt NO_GLOB_SUBST
20317   fi
20318   # Now quote all the things that may contain metacharacters while being
20319   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20320   # variables and quote the copies for generation of the libtool script.
20321   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20322     SED SHELL STRIP \
20323     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20324     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20325     deplibs_check_method reload_flag reload_cmds need_locks \
20326     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20327     lt_cv_sys_global_symbol_to_c_name_address \
20328     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20329     old_postinstall_cmds old_postuninstall_cmds \
20330     compiler_CXX \
20331     CC_CXX \
20332     LD_CXX \
20333     lt_prog_compiler_wl_CXX \
20334     lt_prog_compiler_pic_CXX \
20335     lt_prog_compiler_static_CXX \
20336     lt_prog_compiler_no_builtin_flag_CXX \
20337     export_dynamic_flag_spec_CXX \
20338     thread_safe_flag_spec_CXX \
20339     whole_archive_flag_spec_CXX \
20340     enable_shared_with_static_runtimes_CXX \
20341     old_archive_cmds_CXX \
20342     old_archive_from_new_cmds_CXX \
20343     predep_objects_CXX \
20344     postdep_objects_CXX \
20345     predeps_CXX \
20346     postdeps_CXX \
20347     compiler_lib_search_path_CXX \
20348     archive_cmds_CXX \
20349     archive_expsym_cmds_CXX \
20350     postinstall_cmds_CXX \
20351     postuninstall_cmds_CXX \
20352     old_archive_from_expsyms_cmds_CXX \
20353     allow_undefined_flag_CXX \
20354     no_undefined_flag_CXX \
20355     export_symbols_cmds_CXX \
20356     hardcode_libdir_flag_spec_CXX \
20357     hardcode_libdir_flag_spec_ld_CXX \
20358     hardcode_libdir_separator_CXX \
20359     hardcode_automatic_CXX \
20360     module_cmds_CXX \
20361     module_expsym_cmds_CXX \
20362     lt_cv_prog_compiler_c_o_CXX \
20363     exclude_expsyms_CXX \
20364     include_expsyms_CXX; do
20365
20366     case $var in
20367     old_archive_cmds_CXX | \
20368     old_archive_from_new_cmds_CXX | \
20369     archive_cmds_CXX | \
20370     archive_expsym_cmds_CXX | \
20371     module_cmds_CXX | \
20372     module_expsym_cmds_CXX | \
20373     old_archive_from_expsyms_cmds_CXX | \
20374     export_symbols_cmds_CXX | \
20375     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20376     postinstall_cmds | postuninstall_cmds | \
20377     old_postinstall_cmds | old_postuninstall_cmds | \
20378     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20379       # Double-quote double-evaled strings.
20380       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20381       ;;
20382     *)
20383       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20384       ;;
20385     esac
20386   done
20387
20388   case $lt_echo in
20389   *'\$0 --fallback-echo"')
20390     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20391     ;;
20392   esac
20393
20394 cfgfile="$ofile"
20395
20396   cat <<__EOF__ >> "$cfgfile"
20397 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20398
20399 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20400
20401 # Shell to use when invoking shell scripts.
20402 SHELL=$lt_SHELL
20403
20404 # Whether or not to build shared libraries.
20405 build_libtool_libs=$enable_shared
20406
20407 # Whether or not to build static libraries.
20408 build_old_libs=$enable_static
20409
20410 # Whether or not to add -lc for building shared libraries.
20411 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20412
20413 # Whether or not to disallow shared libs when runtime libs are static
20414 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20415
20416 # Whether or not to optimize for fast installation.
20417 fast_install=$enable_fast_install
20418
20419 # The host system.
20420 host_alias=$host_alias
20421 host=$host
20422 host_os=$host_os
20423
20424 # The build system.
20425 build_alias=$build_alias
20426 build=$build
20427 build_os=$build_os
20428
20429 # An echo program that does not interpret backslashes.
20430 echo=$lt_echo
20431
20432 # The archiver.
20433 AR=$lt_AR
20434 AR_FLAGS=$lt_AR_FLAGS
20435
20436 # A C compiler.
20437 LTCC=$lt_LTCC
20438
20439 # LTCC compiler flags.
20440 LTCFLAGS=$lt_LTCFLAGS
20441
20442 # A language-specific compiler.
20443 CC=$lt_compiler_CXX
20444
20445 # Is the compiler the GNU C compiler?
20446 with_gcc=$GCC_CXX
20447
20448 # An ERE matcher.
20449 EGREP=$lt_EGREP
20450
20451 # The linker used to build libraries.
20452 LD=$lt_LD_CXX
20453
20454 # Whether we need hard or soft links.
20455 LN_S=$lt_LN_S
20456
20457 # A BSD-compatible nm program.
20458 NM=$lt_NM
20459
20460 # A symbol stripping program
20461 STRIP=$lt_STRIP
20462
20463 # Used to examine libraries when file_magic_cmd begins "file"
20464 MAGIC_CMD=$MAGIC_CMD
20465
20466 # Used on cygwin: DLL creation program.
20467 DLLTOOL="$DLLTOOL"
20468
20469 # Used on cygwin: object dumper.
20470 OBJDUMP="$OBJDUMP"
20471
20472 # Used on cygwin: assembler.
20473 AS="$AS"
20474
20475 # The name of the directory that contains temporary libtool files.
20476 objdir=$objdir
20477
20478 # How to create reloadable object files.
20479 reload_flag=$lt_reload_flag
20480 reload_cmds=$lt_reload_cmds
20481
20482 # How to pass a linker flag through the compiler.
20483 wl=$lt_lt_prog_compiler_wl_CXX
20484
20485 # Object file suffix (normally "o").
20486 objext="$ac_objext"
20487
20488 # Old archive suffix (normally "a").
20489 libext="$libext"
20490
20491 # Shared library suffix (normally ".so").
20492 shrext_cmds='$shrext_cmds'
20493
20494 # Executable file suffix (normally "").
20495 exeext="$exeext"
20496
20497 # Additional compiler flags for building library objects.
20498 pic_flag=$lt_lt_prog_compiler_pic_CXX
20499 pic_mode=$pic_mode
20500
20501 # What is the maximum length of a command?
20502 max_cmd_len=$lt_cv_sys_max_cmd_len
20503
20504 # Does compiler simultaneously support -c and -o options?
20505 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20506
20507 # Must we lock files when doing compilation?
20508 need_locks=$lt_need_locks
20509
20510 # Do we need the lib prefix for modules?
20511 need_lib_prefix=$need_lib_prefix
20512
20513 # Do we need a version for libraries?
20514 need_version=$need_version
20515
20516 # Whether dlopen is supported.
20517 dlopen_support=$enable_dlopen
20518
20519 # Whether dlopen of programs is supported.
20520 dlopen_self=$enable_dlopen_self
20521
20522 # Whether dlopen of statically linked programs is supported.
20523 dlopen_self_static=$enable_dlopen_self_static
20524
20525 # Compiler flag to prevent dynamic linking.
20526 link_static_flag=$lt_lt_prog_compiler_static_CXX
20527
20528 # Compiler flag to turn off builtin functions.
20529 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20530
20531 # Compiler flag to allow reflexive dlopens.
20532 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20533
20534 # Compiler flag to generate shared objects directly from archives.
20535 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20536
20537 # Compiler flag to generate thread-safe objects.
20538 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20539
20540 # Library versioning type.
20541 version_type=$version_type
20542
20543 # Format of library name prefix.
20544 libname_spec=$lt_libname_spec
20545
20546 # List of archive names.  First name is the real one, the rest are links.
20547 # The last name is the one that the linker finds with -lNAME.
20548 library_names_spec=$lt_library_names_spec
20549
20550 # The coded name of the library, if different from the real name.
20551 soname_spec=$lt_soname_spec
20552
20553 # Commands used to build and install an old-style archive.
20554 RANLIB=$lt_RANLIB
20555 old_archive_cmds=$lt_old_archive_cmds_CXX
20556 old_postinstall_cmds=$lt_old_postinstall_cmds
20557 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20558
20559 # Create an old-style archive from a shared archive.
20560 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20561
20562 # Create a temporary old-style archive to link instead of a shared archive.
20563 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20564
20565 # Commands used to build and install a shared archive.
20566 archive_cmds=$lt_archive_cmds_CXX
20567 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20568 postinstall_cmds=$lt_postinstall_cmds
20569 postuninstall_cmds=$lt_postuninstall_cmds
20570
20571 # Commands used to build a loadable module (assumed same as above if empty)
20572 module_cmds=$lt_module_cmds_CXX
20573 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20574
20575 # Commands to strip libraries.
20576 old_striplib=$lt_old_striplib
20577 striplib=$lt_striplib
20578
20579 # Dependencies to place before the objects being linked to create a
20580 # shared library.
20581 predep_objects=$lt_predep_objects_CXX
20582
20583 # Dependencies to place after the objects being linked to create a
20584 # shared library.
20585 postdep_objects=$lt_postdep_objects_CXX
20586
20587 # Dependencies to place before the objects being linked to create a
20588 # shared library.
20589 predeps=$lt_predeps_CXX
20590
20591 # Dependencies to place after the objects being linked to create a
20592 # shared library.
20593 postdeps=$lt_postdeps_CXX
20594
20595 # The library search path used internally by the compiler when linking
20596 # a shared library.
20597 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20598
20599 # Method to check whether dependent libraries are shared objects.
20600 deplibs_check_method=$lt_deplibs_check_method
20601
20602 # Command to use when deplibs_check_method == file_magic.
20603 file_magic_cmd=$lt_file_magic_cmd
20604
20605 # Flag that allows shared libraries with undefined symbols to be built.
20606 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20607
20608 # Flag that forces no undefined symbols.
20609 no_undefined_flag=$lt_no_undefined_flag_CXX
20610
20611 # Commands used to finish a libtool library installation in a directory.
20612 finish_cmds=$lt_finish_cmds
20613
20614 # Same as above, but a single script fragment to be evaled but not shown.
20615 finish_eval=$lt_finish_eval
20616
20617 # Take the output of nm and produce a listing of raw symbols and C names.
20618 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20619
20620 # Transform the output of nm in a proper C declaration
20621 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20622
20623 # Transform the output of nm in a C name address pair
20624 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20625
20626 # This is the shared library runtime path variable.
20627 runpath_var=$runpath_var
20628
20629 # This is the shared library path variable.
20630 shlibpath_var=$shlibpath_var
20631
20632 # Is shlibpath searched before the hard-coded library search path?
20633 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20634
20635 # How to hardcode a shared library path into an executable.
20636 hardcode_action=$hardcode_action_CXX
20637
20638 # Whether we should hardcode library paths into libraries.
20639 hardcode_into_libs=$hardcode_into_libs
20640
20641 # Flag to hardcode \$libdir into a binary during linking.
20642 # This must work even if \$libdir does not exist.
20643 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20644
20645 # If ld is used when linking, flag to hardcode \$libdir into
20646 # a binary during linking. This must work even if \$libdir does
20647 # not exist.
20648 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20649
20650 # Whether we need a single -rpath flag with a separated argument.
20651 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20652
20653 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20654 # resulting binary.
20655 hardcode_direct=$hardcode_direct_CXX
20656
20657 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20658 # resulting binary.
20659 hardcode_minus_L=$hardcode_minus_L_CXX
20660
20661 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20662 # the resulting binary.
20663 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20664
20665 # Set to yes if building a shared library automatically hardcodes DIR into the library
20666 # and all subsequent libraries and executables linked against it.
20667 hardcode_automatic=$hardcode_automatic_CXX
20668
20669 # Variables whose values should be saved in libtool wrapper scripts and
20670 # restored at relink time.
20671 variables_saved_for_relink="$variables_saved_for_relink"
20672
20673 # Whether libtool must link a program against all its dependency libraries.
20674 link_all_deplibs=$link_all_deplibs_CXX
20675
20676 # Compile-time system search path for libraries
20677 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20678
20679 # Run-time system search path for libraries
20680 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20681
20682 # Fix the shell variable \$srcfile for the compiler.
20683 fix_srcfile_path="$fix_srcfile_path_CXX"
20684
20685 # Set to yes if exported symbols are required.
20686 always_export_symbols=$always_export_symbols_CXX
20687
20688 # The commands to list exported symbols.
20689 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20690
20691 # The commands to extract the exported symbol list from a shared archive.
20692 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20693
20694 # Symbols that should not be listed in the preloaded symbols.
20695 exclude_expsyms=$lt_exclude_expsyms_CXX
20696
20697 # Symbols that must always be exported.
20698 include_expsyms=$lt_include_expsyms_CXX
20699
20700 # ### END LIBTOOL TAG CONFIG: $tagname
20701
20702 __EOF__
20703
20704
20705 else
20706   # If there is no Makefile yet, we rely on a make rule to execute
20707   # `config.status --recheck' to rerun these tests and create the
20708   # libtool script then.
20709   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20710   if test -f "$ltmain_in"; then
20711     test -f Makefile && make "$ltmain"
20712   fi
20713 fi
20714
20715
20716 ac_ext=c
20717 ac_cpp='$CPP $CPPFLAGS'
20718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20721
20722 CC=$lt_save_CC
20723 LDCXX=$LD
20724 LD=$lt_save_LD
20725 GCC=$lt_save_GCC
20726 with_gnu_ldcxx=$with_gnu_ld
20727 with_gnu_ld=$lt_save_with_gnu_ld
20728 lt_cv_path_LDCXX=$lt_cv_path_LD
20729 lt_cv_path_LD=$lt_save_path_LD
20730 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20731 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20732
20733         else
20734           tagname=""
20735         fi
20736         ;;
20737
20738       F77)
20739         if test -n "$F77" && test "X$F77" != "Xno"; then
20740
20741 ac_ext=f
20742 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20743 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20744 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20745
20746
20747 archive_cmds_need_lc_F77=no
20748 allow_undefined_flag_F77=
20749 always_export_symbols_F77=no
20750 archive_expsym_cmds_F77=
20751 export_dynamic_flag_spec_F77=
20752 hardcode_direct_F77=no
20753 hardcode_libdir_flag_spec_F77=
20754 hardcode_libdir_flag_spec_ld_F77=
20755 hardcode_libdir_separator_F77=
20756 hardcode_minus_L_F77=no
20757 hardcode_automatic_F77=no
20758 module_cmds_F77=
20759 module_expsym_cmds_F77=
20760 link_all_deplibs_F77=unknown
20761 old_archive_cmds_F77=$old_archive_cmds
20762 no_undefined_flag_F77=
20763 whole_archive_flag_spec_F77=
20764 enable_shared_with_static_runtimes_F77=no
20765
20766 # Source file extension for f77 test sources.
20767 ac_ext=f
20768
20769 # Object file extension for compiled f77 test sources.
20770 objext=o
20771 objext_F77=$objext
20772
20773 # Code to be used in simple compile tests
20774 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20775
20776 # Code to be used in simple link tests
20777 lt_simple_link_test_code="      program t\n      end\n"
20778
20779 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20780
20781 # If no C compiler was specified, use CC.
20782 LTCC=${LTCC-"$CC"}
20783
20784 # If no C compiler flags were specified, use CFLAGS.
20785 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20786
20787 # Allow CC to be a program name with arguments.
20788 compiler=$CC
20789
20790
20791 # save warnings/boilerplate of simple test code
20792 ac_outfile=conftest.$ac_objext
20793 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20794 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20795 _lt_compiler_boilerplate=`cat conftest.err`
20796 $rm conftest*
20797
20798 ac_outfile=conftest.$ac_objext
20799 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20800 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20801 _lt_linker_boilerplate=`cat conftest.err`
20802 $rm conftest*
20803
20804
20805 # Allow CC to be a program name with arguments.
20806 lt_save_CC="$CC"
20807 CC=${F77-"f77"}
20808 compiler=$CC
20809 compiler_F77=$CC
20810 for cc_temp in $compiler""; do
20811   case $cc_temp in
20812     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20813     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20814     \-*) ;;
20815     *) break;;
20816   esac
20817 done
20818 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20819
20820
20821 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20822 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20823 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20824 echo "${ECHO_T}$can_build_shared" >&6; }
20825
20826 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20827 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20828 test "$can_build_shared" = "no" && enable_shared=no
20829
20830 # On AIX, shared libraries and static libraries use the same namespace, and
20831 # are all built from PIC.
20832 case $host_os in
20833 aix3*)
20834   test "$enable_shared" = yes && enable_static=no
20835   if test -n "$RANLIB"; then
20836     archive_cmds="$archive_cmds~\$RANLIB \$lib"
20837     postinstall_cmds='$RANLIB $lib'
20838   fi
20839   ;;
20840 aix4* | aix5*)
20841   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20842     test "$enable_shared" = yes && enable_static=no
20843   fi
20844   ;;
20845 esac
20846 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20847 echo "${ECHO_T}$enable_shared" >&6; }
20848
20849 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20850 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20851 # Make sure either enable_shared or enable_static is yes.
20852 test "$enable_shared" = yes || enable_static=yes
20853 { echo "$as_me:$LINENO: result: $enable_static" >&5
20854 echo "${ECHO_T}$enable_static" >&6; }
20855
20856 GCC_F77="$G77"
20857 LD_F77="$LD"
20858
20859 lt_prog_compiler_wl_F77=
20860 lt_prog_compiler_pic_F77=
20861 lt_prog_compiler_static_F77=
20862
20863 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20864 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20865
20866   if test "$GCC" = yes; then
20867     lt_prog_compiler_wl_F77='-Wl,'
20868     lt_prog_compiler_static_F77='-static'
20869
20870     case $host_os in
20871       aix*)
20872       # All AIX code is PIC.
20873       if test "$host_cpu" = ia64; then
20874         # AIX 5 now supports IA64 processor
20875         lt_prog_compiler_static_F77='-Bstatic'
20876       fi
20877       ;;
20878
20879     amigaos*)
20880       # FIXME: we need at least 68020 code to build shared libraries, but
20881       # adding the `-m68020' flag to GCC prevents building anything better,
20882       # like `-m68040'.
20883       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20884       ;;
20885
20886     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20887       # PIC is the default for these OSes.
20888       ;;
20889
20890     mingw* | pw32* | os2*)
20891       # This hack is so that the source file can tell whether it is being
20892       # built for inclusion in a dll (and should export symbols for example).
20893       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20894       ;;
20895
20896     darwin* | rhapsody*)
20897       # PIC is the default on this platform
20898       # Common symbols not allowed in MH_DYLIB files
20899       lt_prog_compiler_pic_F77='-fno-common'
20900       ;;
20901
20902     interix3*)
20903       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20904       # Instead, we relocate shared libraries at runtime.
20905       ;;
20906
20907     msdosdjgpp*)
20908       # Just because we use GCC doesn't mean we suddenly get shared libraries
20909       # on systems that don't support them.
20910       lt_prog_compiler_can_build_shared_F77=no
20911       enable_shared=no
20912       ;;
20913
20914     sysv4*MP*)
20915       if test -d /usr/nec; then
20916         lt_prog_compiler_pic_F77=-Kconform_pic
20917       fi
20918       ;;
20919
20920     hpux*)
20921       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20922       # not for PA HP-UX.
20923       case $host_cpu in
20924       hppa*64*|ia64*)
20925         # +Z the default
20926         ;;
20927       *)
20928         lt_prog_compiler_pic_F77='-fPIC'
20929         ;;
20930       esac
20931       ;;
20932
20933     *)
20934       lt_prog_compiler_pic_F77='-fPIC'
20935       ;;
20936     esac
20937   else
20938     # PORTME Check for flag to pass linker flags through the system compiler.
20939     case $host_os in
20940     aix*)
20941       lt_prog_compiler_wl_F77='-Wl,'
20942       if test "$host_cpu" = ia64; then
20943         # AIX 5 now supports IA64 processor
20944         lt_prog_compiler_static_F77='-Bstatic'
20945       else
20946         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20947       fi
20948       ;;
20949       darwin*)
20950         # PIC is the default on this platform
20951         # Common symbols not allowed in MH_DYLIB files
20952        case $cc_basename in
20953          xlc*)
20954          lt_prog_compiler_pic_F77='-qnocommon'
20955          lt_prog_compiler_wl_F77='-Wl,'
20956          ;;
20957        esac
20958        ;;
20959
20960     mingw* | pw32* | os2*)
20961       # This hack is so that the source file can tell whether it is being
20962       # built for inclusion in a dll (and should export symbols for example).
20963       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20964       ;;
20965
20966     hpux9* | hpux10* | hpux11*)
20967       lt_prog_compiler_wl_F77='-Wl,'
20968       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20969       # not for PA HP-UX.
20970       case $host_cpu in
20971       hppa*64*|ia64*)
20972         # +Z the default
20973         ;;
20974       *)
20975         lt_prog_compiler_pic_F77='+Z'
20976         ;;
20977       esac
20978       # Is there a better lt_prog_compiler_static that works with the bundled CC?
20979       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20980       ;;
20981
20982     irix5* | irix6* | nonstopux*)
20983       lt_prog_compiler_wl_F77='-Wl,'
20984       # PIC (with -KPIC) is the default.
20985       lt_prog_compiler_static_F77='-non_shared'
20986       ;;
20987
20988     newsos6)
20989       lt_prog_compiler_pic_F77='-KPIC'
20990       lt_prog_compiler_static_F77='-Bstatic'
20991       ;;
20992
20993     linux*)
20994       case $cc_basename in
20995       icc* | ecc*)
20996         lt_prog_compiler_wl_F77='-Wl,'
20997         lt_prog_compiler_pic_F77='-KPIC'
20998         lt_prog_compiler_static_F77='-static'
20999         ;;
21000       pgcc* | pgf77* | pgf90* | pgf95*)
21001         # Portland Group compilers (*not* the Pentium gcc compiler,
21002         # which looks to be a dead project)
21003         lt_prog_compiler_wl_F77='-Wl,'
21004         lt_prog_compiler_pic_F77='-fpic'
21005         lt_prog_compiler_static_F77='-Bstatic'
21006         ;;
21007       ccc*)
21008         lt_prog_compiler_wl_F77='-Wl,'
21009         # All Alpha code is PIC.
21010         lt_prog_compiler_static_F77='-non_shared'
21011         ;;
21012       esac
21013       ;;
21014
21015     osf3* | osf4* | osf5*)
21016       lt_prog_compiler_wl_F77='-Wl,'
21017       # All OSF/1 code is PIC.
21018       lt_prog_compiler_static_F77='-non_shared'
21019       ;;
21020
21021     solaris*)
21022       lt_prog_compiler_pic_F77='-KPIC'
21023       lt_prog_compiler_static_F77='-Bstatic'
21024       case $cc_basename in
21025       f77* | f90* | f95*)
21026         lt_prog_compiler_wl_F77='-Qoption ld ';;
21027       *)
21028         lt_prog_compiler_wl_F77='-Wl,';;
21029       esac
21030       ;;
21031
21032     sunos4*)
21033       lt_prog_compiler_wl_F77='-Qoption ld '
21034       lt_prog_compiler_pic_F77='-PIC'
21035       lt_prog_compiler_static_F77='-Bstatic'
21036       ;;
21037
21038     sysv4 | sysv4.2uw2* | sysv4.3*)
21039       lt_prog_compiler_wl_F77='-Wl,'
21040       lt_prog_compiler_pic_F77='-KPIC'
21041       lt_prog_compiler_static_F77='-Bstatic'
21042       ;;
21043
21044     sysv4*MP*)
21045       if test -d /usr/nec ;then
21046         lt_prog_compiler_pic_F77='-Kconform_pic'
21047         lt_prog_compiler_static_F77='-Bstatic'
21048       fi
21049       ;;
21050
21051     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21052       lt_prog_compiler_wl_F77='-Wl,'
21053       lt_prog_compiler_pic_F77='-KPIC'
21054       lt_prog_compiler_static_F77='-Bstatic'
21055       ;;
21056
21057     unicos*)
21058       lt_prog_compiler_wl_F77='-Wl,'
21059       lt_prog_compiler_can_build_shared_F77=no
21060       ;;
21061
21062     uts4*)
21063       lt_prog_compiler_pic_F77='-pic'
21064       lt_prog_compiler_static_F77='-Bstatic'
21065       ;;
21066
21067     *)
21068       lt_prog_compiler_can_build_shared_F77=no
21069       ;;
21070     esac
21071   fi
21072
21073 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21074 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21075
21076 #
21077 # Check to make sure the PIC flag actually works.
21078 #
21079 if test -n "$lt_prog_compiler_pic_F77"; then
21080
21081 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21082 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21083 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21084   echo $ECHO_N "(cached) $ECHO_C" >&6
21085 else
21086   lt_prog_compiler_pic_works_F77=no
21087   ac_outfile=conftest.$ac_objext
21088    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21089    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21090    # Insert the option either (1) after the last *FLAGS variable, or
21091    # (2) before a word containing "conftest.", or (3) at the end.
21092    # Note that $ac_compile itself does not contain backslashes and begins
21093    # with a dollar sign (not a hyphen), so the echo should work correctly.
21094    # The option is referenced via a variable to avoid confusing sed.
21095    lt_compile=`echo "$ac_compile" | $SED \
21096    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21097    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21098    -e 's:$: $lt_compiler_flag:'`
21099    (eval echo "\"\$as_me:21099: $lt_compile\"" >&5)
21100    (eval "$lt_compile" 2>conftest.err)
21101    ac_status=$?
21102    cat conftest.err >&5
21103    echo "$as_me:21103: \$? = $ac_status" >&5
21104    if (exit $ac_status) && test -s "$ac_outfile"; then
21105      # The compiler can only warn and ignore the option if not recognized
21106      # So say no if there are warnings other than the usual output.
21107      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21108      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21109      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21110        lt_prog_compiler_pic_works_F77=yes
21111      fi
21112    fi
21113    $rm conftest*
21114
21115 fi
21116 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21117 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21118
21119 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21120     case $lt_prog_compiler_pic_F77 in
21121      "" | " "*) ;;
21122      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21123      esac
21124 else
21125     lt_prog_compiler_pic_F77=
21126      lt_prog_compiler_can_build_shared_F77=no
21127 fi
21128
21129 fi
21130 case $host_os in
21131   # For platforms which do not support PIC, -DPIC is meaningless:
21132   *djgpp*)
21133     lt_prog_compiler_pic_F77=
21134     ;;
21135   *)
21136     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21137     ;;
21138 esac
21139
21140 #
21141 # Check to make sure the static flag actually works.
21142 #
21143 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21144 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21145 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21146 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21147   echo $ECHO_N "(cached) $ECHO_C" >&6
21148 else
21149   lt_prog_compiler_static_works_F77=no
21150    save_LDFLAGS="$LDFLAGS"
21151    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21152    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21153    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21154      # The linker can only warn and ignore the option if not recognized
21155      # So say no if there are warnings
21156      if test -s conftest.err; then
21157        # Append any errors to the config.log.
21158        cat conftest.err 1>&5
21159        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21160        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21161        if diff conftest.exp conftest.er2 >/dev/null; then
21162          lt_prog_compiler_static_works_F77=yes
21163        fi
21164      else
21165        lt_prog_compiler_static_works_F77=yes
21166      fi
21167    fi
21168    $rm conftest*
21169    LDFLAGS="$save_LDFLAGS"
21170
21171 fi
21172 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21173 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21174
21175 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21176     :
21177 else
21178     lt_prog_compiler_static_F77=
21179 fi
21180
21181
21182 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21183 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21184 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21185   echo $ECHO_N "(cached) $ECHO_C" >&6
21186 else
21187   lt_cv_prog_compiler_c_o_F77=no
21188    $rm -r conftest 2>/dev/null
21189    mkdir conftest
21190    cd conftest
21191    mkdir out
21192    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21193
21194    lt_compiler_flag="-o out/conftest2.$ac_objext"
21195    # Insert the option either (1) after the last *FLAGS variable, or
21196    # (2) before a word containing "conftest.", or (3) at the end.
21197    # Note that $ac_compile itself does not contain backslashes and begins
21198    # with a dollar sign (not a hyphen), so the echo should work correctly.
21199    lt_compile=`echo "$ac_compile" | $SED \
21200    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21201    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21202    -e 's:$: $lt_compiler_flag:'`
21203    (eval echo "\"\$as_me:21203: $lt_compile\"" >&5)
21204    (eval "$lt_compile" 2>out/conftest.err)
21205    ac_status=$?
21206    cat out/conftest.err >&5
21207    echo "$as_me:21207: \$? = $ac_status" >&5
21208    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21209    then
21210      # The compiler can only warn and ignore the option if not recognized
21211      # So say no if there are warnings
21212      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21213      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21214      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21215        lt_cv_prog_compiler_c_o_F77=yes
21216      fi
21217    fi
21218    chmod u+w . 2>&5
21219    $rm conftest*
21220    # SGI C++ compiler will create directory out/ii_files/ for
21221    # template instantiation
21222    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21223    $rm out/* && rmdir out
21224    cd ..
21225    rmdir conftest
21226    $rm conftest*
21227
21228 fi
21229 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21230 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21231
21232
21233 hard_links="nottested"
21234 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21235   # do not overwrite the value of need_locks provided by the user
21236   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21237 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21238   hard_links=yes
21239   $rm conftest*
21240   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21241   touch conftest.a
21242   ln conftest.a conftest.b 2>&5 || hard_links=no
21243   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21244   { echo "$as_me:$LINENO: result: $hard_links" >&5
21245 echo "${ECHO_T}$hard_links" >&6; }
21246   if test "$hard_links" = no; then
21247     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21248 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21249     need_locks=warn
21250   fi
21251 else
21252   need_locks=no
21253 fi
21254
21255 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21256 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21257
21258   runpath_var=
21259   allow_undefined_flag_F77=
21260   enable_shared_with_static_runtimes_F77=no
21261   archive_cmds_F77=
21262   archive_expsym_cmds_F77=
21263   old_archive_From_new_cmds_F77=
21264   old_archive_from_expsyms_cmds_F77=
21265   export_dynamic_flag_spec_F77=
21266   whole_archive_flag_spec_F77=
21267   thread_safe_flag_spec_F77=
21268   hardcode_libdir_flag_spec_F77=
21269   hardcode_libdir_flag_spec_ld_F77=
21270   hardcode_libdir_separator_F77=
21271   hardcode_direct_F77=no
21272   hardcode_minus_L_F77=no
21273   hardcode_shlibpath_var_F77=unsupported
21274   link_all_deplibs_F77=unknown
21275   hardcode_automatic_F77=no
21276   module_cmds_F77=
21277   module_expsym_cmds_F77=
21278   always_export_symbols_F77=no
21279   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21280   # include_expsyms should be a list of space-separated symbols to be *always*
21281   # included in the symbol list
21282   include_expsyms_F77=
21283   # exclude_expsyms can be an extended regexp of symbols to exclude
21284   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21285   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21286   # as well as any symbol that contains `d'.
21287   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21288   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21289   # platforms (ab)use it in PIC code, but their linkers get confused if
21290   # the symbol is explicitly referenced.  Since portable code cannot
21291   # rely on this symbol name, it's probably fine to never include it in
21292   # preloaded symbol tables.
21293   extract_expsyms_cmds=
21294   # Just being paranoid about ensuring that cc_basename is set.
21295   for cc_temp in $compiler""; do
21296   case $cc_temp in
21297     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21298     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21299     \-*) ;;
21300     *) break;;
21301   esac
21302 done
21303 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21304
21305   case $host_os in
21306   cygwin* | mingw* | pw32*)
21307     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21308     # When not using gcc, we currently assume that we are using
21309     # Microsoft Visual C++.
21310     if test "$GCC" != yes; then
21311       with_gnu_ld=no
21312     fi
21313     ;;
21314   interix*)
21315     # we just hope/assume this is gcc and not c89 (= MSVC++)
21316     with_gnu_ld=yes
21317     ;;
21318   openbsd*)
21319     with_gnu_ld=no
21320     ;;
21321   esac
21322
21323   ld_shlibs_F77=yes
21324   if test "$with_gnu_ld" = yes; then
21325     # If archive_cmds runs LD, not CC, wlarc should be empty
21326     wlarc='${wl}'
21327
21328     # Set some defaults for GNU ld with shared library support. These
21329     # are reset later if shared libraries are not supported. Putting them
21330     # here allows them to be overridden if necessary.
21331     runpath_var=LD_RUN_PATH
21332     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21333     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21334     # ancient GNU ld didn't support --whole-archive et. al.
21335     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21336         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21337       else
21338         whole_archive_flag_spec_F77=
21339     fi
21340     supports_anon_versioning=no
21341     case `$LD -v 2>/dev/null` in
21342       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21343       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21344       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21345       *\ 2.11.*) ;; # other 2.11 versions
21346       *) supports_anon_versioning=yes ;;
21347     esac
21348
21349     # See if GNU ld supports shared libraries.
21350     case $host_os in
21351     aix3* | aix4* | aix5*)
21352       # On AIX/PPC, the GNU linker is very broken
21353       if test "$host_cpu" != ia64; then
21354         ld_shlibs_F77=no
21355         cat <<EOF 1>&2
21356
21357 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21358 *** to be unable to reliably create shared libraries on AIX.
21359 *** Therefore, libtool is disabling shared libraries support.  If you
21360 *** really care for shared libraries, you may want to modify your PATH
21361 *** so that a non-GNU linker is found, and then restart.
21362
21363 EOF
21364       fi
21365       ;;
21366
21367     amigaos*)
21368       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)'
21369       hardcode_libdir_flag_spec_F77='-L$libdir'
21370       hardcode_minus_L_F77=yes
21371
21372       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21373       # that the semantics of dynamic libraries on AmigaOS, at least up
21374       # to version 4, is to share data among multiple programs linked
21375       # with the same dynamic library.  Since this doesn't match the
21376       # behavior of shared libraries on other platforms, we can't use
21377       # them.
21378       ld_shlibs_F77=no
21379       ;;
21380
21381     beos*)
21382       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21383         allow_undefined_flag_F77=unsupported
21384         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21385         # support --undefined.  This deserves some investigation.  FIXME
21386         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21387       else
21388         ld_shlibs_F77=no
21389       fi
21390       ;;
21391
21392     cygwin* | mingw* | pw32*)
21393       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21394       # as there is no search path for DLLs.
21395       hardcode_libdir_flag_spec_F77='-L$libdir'
21396       allow_undefined_flag_F77=unsupported
21397       always_export_symbols_F77=no
21398       enable_shared_with_static_runtimes_F77=yes
21399       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21400
21401       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21402         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21403         # If the export-symbols file already is a .def file (1st line
21404         # is EXPORTS), use it as is; otherwise, prepend...
21405         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21406           cp $export_symbols $output_objdir/$soname.def;
21407         else
21408           echo EXPORTS > $output_objdir/$soname.def;
21409           cat $export_symbols >> $output_objdir/$soname.def;
21410         fi~
21411         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21412       else
21413         ld_shlibs_F77=no
21414       fi
21415       ;;
21416
21417     interix3*)
21418       hardcode_direct_F77=no
21419       hardcode_shlibpath_var_F77=no
21420       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21421       export_dynamic_flag_spec_F77='${wl}-E'
21422       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21423       # Instead, shared libraries are loaded at an image base (0x10000000 by
21424       # default) and relocated if they conflict, which is a slow very memory
21425       # consuming and fragmenting process.  To avoid this, we pick a random,
21426       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21427       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21428       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'
21429       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'
21430       ;;
21431
21432     linux*)
21433       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21434         tmp_addflag=
21435         case $cc_basename,$host_cpu in
21436         pgcc*)                          # Portland Group C compiler
21437           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'
21438           tmp_addflag=' $pic_flag'
21439           ;;
21440         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21441           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'
21442           tmp_addflag=' $pic_flag -Mnomain' ;;
21443         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21444           tmp_addflag=' -i_dynamic' ;;
21445         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21446           tmp_addflag=' -i_dynamic -nofor_main' ;;
21447         ifc* | ifort*)                  # Intel Fortran compiler
21448           tmp_addflag=' -nofor_main' ;;
21449         esac
21450         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21451
21452         if test $supports_anon_versioning = yes; then
21453           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21454   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21455   $echo "local: *; };" >> $output_objdir/$libname.ver~
21456           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21457         fi
21458       else
21459         ld_shlibs_F77=no
21460       fi
21461       ;;
21462
21463     netbsd*)
21464       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21465         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21466         wlarc=
21467       else
21468         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21469         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21470       fi
21471       ;;
21472
21473     solaris*)
21474       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21475         ld_shlibs_F77=no
21476         cat <<EOF 1>&2
21477
21478 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21479 *** create shared libraries on Solaris systems.  Therefore, libtool
21480 *** is disabling shared libraries support.  We urge you to upgrade GNU
21481 *** binutils to release 2.9.1 or newer.  Another option is to modify
21482 *** your PATH or compiler configuration so that the native linker is
21483 *** used, and then restart.
21484
21485 EOF
21486       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21487         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21488         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21489       else
21490         ld_shlibs_F77=no
21491       fi
21492       ;;
21493
21494     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21495       case `$LD -v 2>&1` in
21496         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21497         ld_shlibs_F77=no
21498         cat <<_LT_EOF 1>&2
21499
21500 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21501 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21502 *** is disabling shared libraries support.  We urge you to upgrade GNU
21503 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21504 *** your PATH or compiler configuration so that the native linker is
21505 *** used, and then restart.
21506
21507 _LT_EOF
21508         ;;
21509         *)
21510           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21511             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21512             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21513             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21514           else
21515             ld_shlibs_F77=no
21516           fi
21517         ;;
21518       esac
21519       ;;
21520
21521     sunos4*)
21522       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21523       wlarc=
21524       hardcode_direct_F77=yes
21525       hardcode_shlibpath_var_F77=no
21526       ;;
21527
21528     *)
21529       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21530         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21531         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21532       else
21533         ld_shlibs_F77=no
21534       fi
21535       ;;
21536     esac
21537
21538     if test "$ld_shlibs_F77" = no; then
21539       runpath_var=
21540       hardcode_libdir_flag_spec_F77=
21541       export_dynamic_flag_spec_F77=
21542       whole_archive_flag_spec_F77=
21543     fi
21544   else
21545     # PORTME fill in a description of your system's linker (not GNU ld)
21546     case $host_os in
21547     aix3*)
21548       allow_undefined_flag_F77=unsupported
21549       always_export_symbols_F77=yes
21550       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'
21551       # Note: this linker hardcodes the directories in LIBPATH if there
21552       # are no directories specified by -L.
21553       hardcode_minus_L_F77=yes
21554       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21555         # Neither direct hardcoding nor static linking is supported with a
21556         # broken collect2.
21557         hardcode_direct_F77=unsupported
21558       fi
21559       ;;
21560
21561     aix4* | aix5*)
21562       if test "$host_cpu" = ia64; then
21563         # On IA64, the linker does run time linking by default, so we don't
21564         # have to do anything special.
21565         aix_use_runtimelinking=no
21566         exp_sym_flag='-Bexport'
21567         no_entry_flag=""
21568       else
21569         # If we're using GNU nm, then we don't want the "-C" option.
21570         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21571         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21572           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'
21573         else
21574           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'
21575         fi
21576         aix_use_runtimelinking=no
21577
21578         # Test if we are trying to use run time linking or normal
21579         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21580         # need to do runtime linking.
21581         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21582           for ld_flag in $LDFLAGS; do
21583           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21584             aix_use_runtimelinking=yes
21585             break
21586           fi
21587           done
21588           ;;
21589         esac
21590
21591         exp_sym_flag='-bexport'
21592         no_entry_flag='-bnoentry'
21593       fi
21594
21595       # When large executables or shared objects are built, AIX ld can
21596       # have problems creating the table of contents.  If linking a library
21597       # or program results in "error TOC overflow" add -mminimal-toc to
21598       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21599       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21600
21601       archive_cmds_F77=''
21602       hardcode_direct_F77=yes
21603       hardcode_libdir_separator_F77=':'
21604       link_all_deplibs_F77=yes
21605
21606       if test "$GCC" = yes; then
21607         case $host_os in aix4.[012]|aix4.[012].*)
21608         # We only want to do this on AIX 4.2 and lower, the check
21609         # below for broken collect2 doesn't work under 4.3+
21610           collect2name=`${CC} -print-prog-name=collect2`
21611           if test -f "$collect2name" && \
21612            strings "$collect2name" | grep resolve_lib_name >/dev/null
21613           then
21614           # We have reworked collect2
21615           hardcode_direct_F77=yes
21616           else
21617           # We have old collect2
21618           hardcode_direct_F77=unsupported
21619           # It fails to find uninstalled libraries when the uninstalled
21620           # path is not listed in the libpath.  Setting hardcode_minus_L
21621           # to unsupported forces relinking
21622           hardcode_minus_L_F77=yes
21623           hardcode_libdir_flag_spec_F77='-L$libdir'
21624           hardcode_libdir_separator_F77=
21625           fi
21626           ;;
21627         esac
21628         shared_flag='-shared'
21629         if test "$aix_use_runtimelinking" = yes; then
21630           shared_flag="$shared_flag "'${wl}-G'
21631         fi
21632       else
21633         # not using gcc
21634         if test "$host_cpu" = ia64; then
21635         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21636         # chokes on -Wl,-G. The following line is correct:
21637           shared_flag='-G'
21638         else
21639           if test "$aix_use_runtimelinking" = yes; then
21640             shared_flag='${wl}-G'
21641           else
21642             shared_flag='${wl}-bM:SRE'
21643           fi
21644         fi
21645       fi
21646
21647       # It seems that -bexpall does not export symbols beginning with
21648       # underscore (_), so it is better to generate a list of symbols to export.
21649       always_export_symbols_F77=yes
21650       if test "$aix_use_runtimelinking" = yes; then
21651         # Warning - without using the other runtime loading flags (-brtl),
21652         # -berok will link without error, but may produce a broken library.
21653         allow_undefined_flag_F77='-berok'
21654        # Determine the default libpath from the value encoded in an empty executable.
21655        cat >conftest.$ac_ext <<_ACEOF
21656       program main
21657
21658       end
21659 _ACEOF
21660 rm -f conftest.$ac_objext conftest$ac_exeext
21661 if { (ac_try="$ac_link"
21662 case "(($ac_try" in
21663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664   *) ac_try_echo=$ac_try;;
21665 esac
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667   (eval "$ac_link") 2>conftest.er1
21668   ac_status=$?
21669   grep -v '^ *+' conftest.er1 >conftest.err
21670   rm -f conftest.er1
21671   cat conftest.err >&5
21672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673   (exit $ac_status); } &&
21674          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21675   { (case "(($ac_try" in
21676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677   *) ac_try_echo=$ac_try;;
21678 esac
21679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21680   (eval "$ac_try") 2>&5
21681   ac_status=$?
21682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683   (exit $ac_status); }; } &&
21684          { ac_try='test -s conftest$ac_exeext'
21685   { (case "(($ac_try" in
21686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687   *) ac_try_echo=$ac_try;;
21688 esac
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690   (eval "$ac_try") 2>&5
21691   ac_status=$?
21692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693   (exit $ac_status); }; }; then
21694
21695 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21696 }'`
21697 # Check for a 64-bit object if we didn't find anything.
21698 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; }
21699 }'`; fi
21700 else
21701   echo "$as_me: failed program was:" >&5
21702 sed 's/^/| /' conftest.$ac_ext >&5
21703
21704
21705 fi
21706
21707 rm -f core conftest.err conftest.$ac_objext \
21708       conftest$ac_exeext conftest.$ac_ext
21709 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21710
21711        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21712         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"
21713        else
21714         if test "$host_cpu" = ia64; then
21715           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21716           allow_undefined_flag_F77="-z nodefs"
21717           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"
21718         else
21719          # Determine the default libpath from the value encoded in an empty executable.
21720          cat >conftest.$ac_ext <<_ACEOF
21721       program main
21722
21723       end
21724 _ACEOF
21725 rm -f conftest.$ac_objext conftest$ac_exeext
21726 if { (ac_try="$ac_link"
21727 case "(($ac_try" in
21728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21729   *) ac_try_echo=$ac_try;;
21730 esac
21731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21732   (eval "$ac_link") 2>conftest.er1
21733   ac_status=$?
21734   grep -v '^ *+' conftest.er1 >conftest.err
21735   rm -f conftest.er1
21736   cat conftest.err >&5
21737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738   (exit $ac_status); } &&
21739          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21740   { (case "(($ac_try" in
21741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742   *) ac_try_echo=$ac_try;;
21743 esac
21744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745   (eval "$ac_try") 2>&5
21746   ac_status=$?
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); }; } &&
21749          { ac_try='test -s conftest$ac_exeext'
21750   { (case "(($ac_try" in
21751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752   *) ac_try_echo=$ac_try;;
21753 esac
21754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755   (eval "$ac_try") 2>&5
21756   ac_status=$?
21757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758   (exit $ac_status); }; }; then
21759
21760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21761 }'`
21762 # Check for a 64-bit object if we didn't find anything.
21763 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; }
21764 }'`; fi
21765 else
21766   echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21768
21769
21770 fi
21771
21772 rm -f core conftest.err conftest.$ac_objext \
21773       conftest$ac_exeext conftest.$ac_ext
21774 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21775
21776          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21777           # Warning - without using the other run time loading flags,
21778           # -berok will link without error, but may produce a broken library.
21779           no_undefined_flag_F77=' ${wl}-bernotok'
21780           allow_undefined_flag_F77=' ${wl}-berok'
21781           # Exported symbols can be pulled into shared objects from archives
21782           whole_archive_flag_spec_F77='$convenience'
21783           archive_cmds_need_lc_F77=yes
21784           # This is similar to how AIX traditionally builds its shared libraries.
21785           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'
21786         fi
21787       fi
21788       ;;
21789
21790     amigaos*)
21791       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)'
21792       hardcode_libdir_flag_spec_F77='-L$libdir'
21793       hardcode_minus_L_F77=yes
21794       # see comment about different semantics on the GNU ld section
21795       ld_shlibs_F77=no
21796       ;;
21797
21798     bsdi[45]*)
21799       export_dynamic_flag_spec_F77=-rdynamic
21800       ;;
21801
21802     cygwin* | mingw* | pw32*)
21803       # When not using gcc, we currently assume that we are using
21804       # Microsoft Visual C++.
21805       # hardcode_libdir_flag_spec is actually meaningless, as there is
21806       # no search path for DLLs.
21807       hardcode_libdir_flag_spec_F77=' '
21808       allow_undefined_flag_F77=unsupported
21809       # Tell ltmain to make .lib files, not .a files.
21810       libext=lib
21811       # Tell ltmain to make .dll files, not .so files.
21812       shrext_cmds=".dll"
21813       # FIXME: Setting linknames here is a bad hack.
21814       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21815       # The linker will automatically build a .lib file if we build a DLL.
21816       old_archive_From_new_cmds_F77='true'
21817       # FIXME: Should let the user specify the lib program.
21818       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21819       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21820       enable_shared_with_static_runtimes_F77=yes
21821       ;;
21822
21823     darwin* | rhapsody*)
21824       case $host_os in
21825         rhapsody* | darwin1.[012])
21826          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21827          ;;
21828        *) # Darwin 1.3 on
21829          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21830            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21831          else
21832            case ${MACOSX_DEPLOYMENT_TARGET} in
21833              10.[012])
21834                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21835                ;;
21836              10.*)
21837                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21838                ;;
21839            esac
21840          fi
21841          ;;
21842       esac
21843       archive_cmds_need_lc_F77=no
21844       hardcode_direct_F77=no
21845       hardcode_automatic_F77=yes
21846       hardcode_shlibpath_var_F77=unsupported
21847       whole_archive_flag_spec_F77=''
21848       link_all_deplibs_F77=yes
21849     if test "$GCC" = yes ; then
21850         output_verbose_link_cmd='echo'
21851         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21852       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21853       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21854       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}'
21855       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}'
21856     else
21857       case $cc_basename in
21858         xlc*)
21859          output_verbose_link_cmd='echo'
21860          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21861          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21862           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21863          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}'
21864           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}'
21865           ;;
21866        *)
21867          ld_shlibs_F77=no
21868           ;;
21869       esac
21870     fi
21871       ;;
21872
21873     dgux*)
21874       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21875       hardcode_libdir_flag_spec_F77='-L$libdir'
21876       hardcode_shlibpath_var_F77=no
21877       ;;
21878
21879     freebsd1*)
21880       ld_shlibs_F77=no
21881       ;;
21882
21883     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21884     # support.  Future versions do this automatically, but an explicit c++rt0.o
21885     # does not break anything, and helps significantly (at the cost of a little
21886     # extra space).
21887     freebsd2.2*)
21888       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21889       hardcode_libdir_flag_spec_F77='-R$libdir'
21890       hardcode_direct_F77=yes
21891       hardcode_shlibpath_var_F77=no
21892       ;;
21893
21894     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21895     freebsd2*)
21896       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21897       hardcode_direct_F77=yes
21898       hardcode_minus_L_F77=yes
21899       hardcode_shlibpath_var_F77=no
21900       ;;
21901
21902     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21903     freebsd* | kfreebsd*-gnu | dragonfly*)
21904       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21905       hardcode_libdir_flag_spec_F77='-R$libdir'
21906       hardcode_direct_F77=yes
21907       hardcode_shlibpath_var_F77=no
21908       ;;
21909
21910     hpux9*)
21911       if test "$GCC" = yes; then
21912         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'
21913       else
21914         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'
21915       fi
21916       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21917       hardcode_libdir_separator_F77=:
21918       hardcode_direct_F77=yes
21919
21920       # hardcode_minus_L: Not really in the search PATH,
21921       # but as the default location of the library.
21922       hardcode_minus_L_F77=yes
21923       export_dynamic_flag_spec_F77='${wl}-E'
21924       ;;
21925
21926     hpux10*)
21927       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21928         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21929       else
21930         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21931       fi
21932       if test "$with_gnu_ld" = no; then
21933         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21934         hardcode_libdir_separator_F77=:
21935
21936         hardcode_direct_F77=yes
21937         export_dynamic_flag_spec_F77='${wl}-E'
21938
21939         # hardcode_minus_L: Not really in the search PATH,
21940         # but as the default location of the library.
21941         hardcode_minus_L_F77=yes
21942       fi
21943       ;;
21944
21945     hpux11*)
21946       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21947         case $host_cpu in
21948         hppa*64*)
21949           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21950           ;;
21951         ia64*)
21952           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21953           ;;
21954         *)
21955           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21956           ;;
21957         esac
21958       else
21959         case $host_cpu in
21960         hppa*64*)
21961           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21962           ;;
21963         ia64*)
21964           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21965           ;;
21966         *)
21967           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21968           ;;
21969         esac
21970       fi
21971       if test "$with_gnu_ld" = no; then
21972         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21973         hardcode_libdir_separator_F77=:
21974
21975         case $host_cpu in
21976         hppa*64*|ia64*)
21977           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21978           hardcode_direct_F77=no
21979           hardcode_shlibpath_var_F77=no
21980           ;;
21981         *)
21982           hardcode_direct_F77=yes
21983           export_dynamic_flag_spec_F77='${wl}-E'
21984
21985           # hardcode_minus_L: Not really in the search PATH,
21986           # but as the default location of the library.
21987           hardcode_minus_L_F77=yes
21988           ;;
21989         esac
21990       fi
21991       ;;
21992
21993     irix5* | irix6* | nonstopux*)
21994       if test "$GCC" = yes; then
21995         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'
21996       else
21997         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'
21998         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21999       fi
22000       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22001       hardcode_libdir_separator_F77=:
22002       link_all_deplibs_F77=yes
22003       ;;
22004
22005     netbsd*)
22006       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22007         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22008       else
22009         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22010       fi
22011       hardcode_libdir_flag_spec_F77='-R$libdir'
22012       hardcode_direct_F77=yes
22013       hardcode_shlibpath_var_F77=no
22014       ;;
22015
22016     newsos6)
22017       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22018       hardcode_direct_F77=yes
22019       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22020       hardcode_libdir_separator_F77=:
22021       hardcode_shlibpath_var_F77=no
22022       ;;
22023
22024     openbsd*)
22025       hardcode_direct_F77=yes
22026       hardcode_shlibpath_var_F77=no
22027       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22028         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22029         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22030         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22031         export_dynamic_flag_spec_F77='${wl}-E'
22032       else
22033        case $host_os in
22034          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22035            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22036            hardcode_libdir_flag_spec_F77='-R$libdir'
22037            ;;
22038          *)
22039            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22040            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22041            ;;
22042        esac
22043       fi
22044       ;;
22045
22046     os2*)
22047       hardcode_libdir_flag_spec_F77='-L$libdir'
22048       hardcode_minus_L_F77=yes
22049       allow_undefined_flag_F77=unsupported
22050       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'
22051       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22052       ;;
22053
22054     osf3*)
22055       if test "$GCC" = yes; then
22056         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22057         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'
22058       else
22059         allow_undefined_flag_F77=' -expect_unresolved \*'
22060         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'
22061       fi
22062       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22063       hardcode_libdir_separator_F77=:
22064       ;;
22065
22066     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22067       if test "$GCC" = yes; then
22068         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22069         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'
22070         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22071       else
22072         allow_undefined_flag_F77=' -expect_unresolved \*'
22073         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'
22074         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~
22075         $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'
22076
22077         # Both c and cxx compiler support -rpath directly
22078         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22079       fi
22080       hardcode_libdir_separator_F77=:
22081       ;;
22082
22083     solaris*)
22084       no_undefined_flag_F77=' -z text'
22085       if test "$GCC" = yes; then
22086         wlarc='${wl}'
22087         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22088         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22089           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22090       else
22091         wlarc=''
22092         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22093         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22094         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22095       fi
22096       hardcode_libdir_flag_spec_F77='-R$libdir'
22097       hardcode_shlibpath_var_F77=no
22098       case $host_os in
22099       solaris2.[0-5] | solaris2.[0-5].*) ;;
22100       *)
22101         # The compiler driver will combine linker options so we
22102         # cannot just pass the convience library names through
22103         # without $wl, iff we do not link with $LD.
22104         # Luckily, gcc supports the same syntax we need for Sun Studio.
22105         # Supported since Solaris 2.6 (maybe 2.5.1?)
22106         case $wlarc in
22107         '')
22108           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22109         *)
22110           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' ;;
22111         esac ;;
22112       esac
22113       link_all_deplibs_F77=yes
22114       ;;
22115
22116     sunos4*)
22117       if test "x$host_vendor" = xsequent; then
22118         # Use $CC to link under sequent, because it throws in some extra .o
22119         # files that make .init and .fini sections work.
22120         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22121       else
22122         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22123       fi
22124       hardcode_libdir_flag_spec_F77='-L$libdir'
22125       hardcode_direct_F77=yes
22126       hardcode_minus_L_F77=yes
22127       hardcode_shlibpath_var_F77=no
22128       ;;
22129
22130     sysv4)
22131       case $host_vendor in
22132         sni)
22133           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22134           hardcode_direct_F77=yes # is this really true???
22135         ;;
22136         siemens)
22137           ## LD is ld it makes a PLAMLIB
22138           ## CC just makes a GrossModule.
22139           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22140           reload_cmds_F77='$CC -r -o $output$reload_objs'
22141           hardcode_direct_F77=no
22142         ;;
22143         motorola)
22144           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22145           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22146         ;;
22147       esac
22148       runpath_var='LD_RUN_PATH'
22149       hardcode_shlibpath_var_F77=no
22150       ;;
22151
22152     sysv4.3*)
22153       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22154       hardcode_shlibpath_var_F77=no
22155       export_dynamic_flag_spec_F77='-Bexport'
22156       ;;
22157
22158     sysv4*MP*)
22159       if test -d /usr/nec; then
22160         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22161         hardcode_shlibpath_var_F77=no
22162         runpath_var=LD_RUN_PATH
22163         hardcode_runpath_var=yes
22164         ld_shlibs_F77=yes
22165       fi
22166       ;;
22167
22168     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22169       no_undefined_flag_F77='${wl}-z,text'
22170       archive_cmds_need_lc_F77=no
22171       hardcode_shlibpath_var_F77=no
22172       runpath_var='LD_RUN_PATH'
22173
22174       if test "$GCC" = yes; then
22175         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22176         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22177       else
22178         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22179         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22180       fi
22181       ;;
22182
22183     sysv5* | sco3.2v5* | sco5v6*)
22184       # Note: We can NOT use -z defs as we might desire, because we do not
22185       # link with -lc, and that would cause any symbols used from libc to
22186       # always be unresolved, which means just about no library would
22187       # ever link correctly.  If we're not using GNU ld we use -z text
22188       # though, which does catch some bad symbols but isn't as heavy-handed
22189       # as -z defs.
22190       no_undefined_flag_F77='${wl}-z,text'
22191       allow_undefined_flag_F77='${wl}-z,nodefs'
22192       archive_cmds_need_lc_F77=no
22193       hardcode_shlibpath_var_F77=no
22194       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22195       hardcode_libdir_separator_F77=':'
22196       link_all_deplibs_F77=yes
22197       export_dynamic_flag_spec_F77='${wl}-Bexport'
22198       runpath_var='LD_RUN_PATH'
22199
22200       if test "$GCC" = yes; then
22201         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22202         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22203       else
22204         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22205         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22206       fi
22207       ;;
22208
22209     uts4*)
22210       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22211       hardcode_libdir_flag_spec_F77='-L$libdir'
22212       hardcode_shlibpath_var_F77=no
22213       ;;
22214
22215     *)
22216       ld_shlibs_F77=no
22217       ;;
22218     esac
22219   fi
22220
22221 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22222 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22223 test "$ld_shlibs_F77" = no && can_build_shared=no
22224
22225 #
22226 # Do we need to explicitly link libc?
22227 #
22228 case "x$archive_cmds_need_lc_F77" in
22229 x|xyes)
22230   # Assume -lc should be added
22231   archive_cmds_need_lc_F77=yes
22232
22233   if test "$enable_shared" = yes && test "$GCC" = yes; then
22234     case $archive_cmds_F77 in
22235     *'~'*)
22236       # FIXME: we may have to deal with multi-command sequences.
22237       ;;
22238     '$CC '*)
22239       # Test whether the compiler implicitly links with -lc since on some
22240       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22241       # to ld, don't add -lc before -lgcc.
22242       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22243 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22244       $rm conftest*
22245       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22246
22247       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22248   (eval $ac_compile) 2>&5
22249   ac_status=$?
22250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251   (exit $ac_status); } 2>conftest.err; then
22252         soname=conftest
22253         lib=conftest
22254         libobjs=conftest.$ac_objext
22255         deplibs=
22256         wl=$lt_prog_compiler_wl_F77
22257         pic_flag=$lt_prog_compiler_pic_F77
22258         compiler_flags=-v
22259         linker_flags=-v
22260         verstring=
22261         output_objdir=.
22262         libname=conftest
22263         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22264         allow_undefined_flag_F77=
22265         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22266   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22267   ac_status=$?
22268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269   (exit $ac_status); }
22270         then
22271           archive_cmds_need_lc_F77=no
22272         else
22273           archive_cmds_need_lc_F77=yes
22274         fi
22275         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22276       else
22277         cat conftest.err 1>&5
22278       fi
22279       $rm conftest*
22280       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22281 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22282       ;;
22283     esac
22284   fi
22285   ;;
22286 esac
22287
22288 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22289 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22290 library_names_spec=
22291 libname_spec='lib$name'
22292 soname_spec=
22293 shrext_cmds=".so"
22294 postinstall_cmds=
22295 postuninstall_cmds=
22296 finish_cmds=
22297 finish_eval=
22298 shlibpath_var=
22299 shlibpath_overrides_runpath=unknown
22300 version_type=none
22301 dynamic_linker="$host_os ld.so"
22302 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22303 if test "$GCC" = yes; then
22304   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22305   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22306     # if the path contains ";" then we assume it to be the separator
22307     # otherwise default to the standard path separator (i.e. ":") - it is
22308     # assumed that no part of a normal pathname contains ";" but that should
22309     # okay in the real world where ";" in dirpaths is itself problematic.
22310     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22311   else
22312     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22313   fi
22314 else
22315   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22316 fi
22317 need_lib_prefix=unknown
22318 hardcode_into_libs=no
22319
22320 # when you set need_version to no, make sure it does not cause -set_version
22321 # flags to be left without arguments
22322 need_version=unknown
22323
22324 case $host_os in
22325 aix3*)
22326   version_type=linux
22327   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22328   shlibpath_var=LIBPATH
22329
22330   # AIX 3 has no versioning support, so we append a major version to the name.
22331   soname_spec='${libname}${release}${shared_ext}$major'
22332   ;;
22333
22334 aix4* | aix5*)
22335   version_type=linux
22336   need_lib_prefix=no
22337   need_version=no
22338   hardcode_into_libs=yes
22339   if test "$host_cpu" = ia64; then
22340     # AIX 5 supports IA64
22341     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22342     shlibpath_var=LD_LIBRARY_PATH
22343   else
22344     # With GCC up to 2.95.x, collect2 would create an import file
22345     # for dependence libraries.  The import file would start with
22346     # the line `#! .'.  This would cause the generated library to
22347     # depend on `.', always an invalid library.  This was fixed in
22348     # development snapshots of GCC prior to 3.0.
22349     case $host_os in
22350       aix4 | aix4.[01] | aix4.[01].*)
22351       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22352            echo ' yes '
22353            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22354         :
22355       else
22356         can_build_shared=no
22357       fi
22358       ;;
22359     esac
22360     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22361     # soname into executable. Probably we can add versioning support to
22362     # collect2, so additional links can be useful in future.
22363     if test "$aix_use_runtimelinking" = yes; then
22364       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22365       # instead of lib<name>.a to let people know that these are not
22366       # typical AIX shared libraries.
22367       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22368     else
22369       # We preserve .a as extension for shared libraries through AIX4.2
22370       # and later when we are not doing run time linking.
22371       library_names_spec='${libname}${release}.a $libname.a'
22372       soname_spec='${libname}${release}${shared_ext}$major'
22373     fi
22374     shlibpath_var=LIBPATH
22375   fi
22376   ;;
22377
22378 amigaos*)
22379   library_names_spec='$libname.ixlibrary $libname.a'
22380   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22381   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'
22382   ;;
22383
22384 beos*)
22385   library_names_spec='${libname}${shared_ext}'
22386   dynamic_linker="$host_os ld.so"
22387   shlibpath_var=LIBRARY_PATH
22388   ;;
22389
22390 bsdi[45]*)
22391   version_type=linux
22392   need_version=no
22393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22394   soname_spec='${libname}${release}${shared_ext}$major'
22395   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22396   shlibpath_var=LD_LIBRARY_PATH
22397   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22398   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22399   # the default ld.so.conf also contains /usr/contrib/lib and
22400   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22401   # libtool to hard-code these into programs
22402   ;;
22403
22404 cygwin* | mingw* | pw32*)
22405   version_type=windows
22406   shrext_cmds=".dll"
22407   need_version=no
22408   need_lib_prefix=no
22409
22410   case $GCC,$host_os in
22411   yes,cygwin* | yes,mingw* | yes,pw32*)
22412     library_names_spec='$libname.dll.a'
22413     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22414     postinstall_cmds='base_file=`basename \${file}`~
22415       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22416       dldir=$destdir/`dirname \$dlpath`~
22417       test -d \$dldir || mkdir -p \$dldir~
22418       $install_prog $dir/$dlname \$dldir/$dlname~
22419       chmod a+x \$dldir/$dlname'
22420     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22421       dlpath=$dir/\$dldll~
22422        $rm \$dlpath'
22423     shlibpath_overrides_runpath=yes
22424
22425     case $host_os in
22426     cygwin*)
22427       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22428       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22429       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22430       ;;
22431     mingw*)
22432       # MinGW DLLs use traditional 'lib' prefix
22433       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22434       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22435       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22436         # It is most probably a Windows format PATH printed by
22437         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22438         # path with ; separators, and with drive letters. We can handle the
22439         # drive letters (cygwin fileutils understands them), so leave them,
22440         # especially as we might pass files found there to a mingw objdump,
22441         # which wouldn't understand a cygwinified path. Ahh.
22442         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22443       else
22444         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22445       fi
22446       ;;
22447     pw32*)
22448       # pw32 DLLs use 'pw' prefix rather than 'lib'
22449       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22450       ;;
22451     esac
22452     ;;
22453
22454   *)
22455     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22456     ;;
22457   esac
22458   dynamic_linker='Win32 ld.exe'
22459   # FIXME: first we should search . and the directory the executable is in
22460   shlibpath_var=PATH
22461   ;;
22462
22463 darwin* | rhapsody*)
22464   dynamic_linker="$host_os dyld"
22465   version_type=darwin
22466   need_lib_prefix=no
22467   need_version=no
22468   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22469   soname_spec='${libname}${release}${major}$shared_ext'
22470   shlibpath_overrides_runpath=yes
22471   shlibpath_var=DYLD_LIBRARY_PATH
22472   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22473   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22474   if test "$GCC" = yes; then
22475     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"`
22476   else
22477     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22478   fi
22479   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22480   ;;
22481
22482 dgux*)
22483   version_type=linux
22484   need_lib_prefix=no
22485   need_version=no
22486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22487   soname_spec='${libname}${release}${shared_ext}$major'
22488   shlibpath_var=LD_LIBRARY_PATH
22489   ;;
22490
22491 freebsd1*)
22492   dynamic_linker=no
22493   ;;
22494
22495 kfreebsd*-gnu)
22496   version_type=linux
22497   need_lib_prefix=no
22498   need_version=no
22499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22500   soname_spec='${libname}${release}${shared_ext}$major'
22501   shlibpath_var=LD_LIBRARY_PATH
22502   shlibpath_overrides_runpath=no
22503   hardcode_into_libs=yes
22504   dynamic_linker='GNU ld.so'
22505   ;;
22506
22507 freebsd* | dragonfly*)
22508   # DragonFly does not have aout.  When/if they implement a new
22509   # versioning mechanism, adjust this.
22510   if test -x /usr/bin/objformat; then
22511     objformat=`/usr/bin/objformat`
22512   else
22513     case $host_os in
22514     freebsd[123]*) objformat=aout ;;
22515     *) objformat=elf ;;
22516     esac
22517   fi
22518   version_type=freebsd-$objformat
22519   case $version_type in
22520     freebsd-elf*)
22521       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22522       need_version=no
22523       need_lib_prefix=no
22524       ;;
22525     freebsd-*)
22526       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22527       need_version=yes
22528       ;;
22529   esac
22530   shlibpath_var=LD_LIBRARY_PATH
22531   case $host_os in
22532   freebsd2*)
22533     shlibpath_overrides_runpath=yes
22534     ;;
22535   freebsd3.[01]* | freebsdelf3.[01]*)
22536     shlibpath_overrides_runpath=yes
22537     hardcode_into_libs=yes
22538     ;;
22539   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22540   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22541     shlibpath_overrides_runpath=no
22542     hardcode_into_libs=yes
22543     ;;
22544   freebsd*) # from 4.6 on
22545     shlibpath_overrides_runpath=yes
22546     hardcode_into_libs=yes
22547     ;;
22548   esac
22549   ;;
22550
22551 gnu*)
22552   version_type=linux
22553   need_lib_prefix=no
22554   need_version=no
22555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22556   soname_spec='${libname}${release}${shared_ext}$major'
22557   shlibpath_var=LD_LIBRARY_PATH
22558   hardcode_into_libs=yes
22559   ;;
22560
22561 hpux9* | hpux10* | hpux11*)
22562   # Give a soname corresponding to the major version so that dld.sl refuses to
22563   # link against other versions.
22564   version_type=sunos
22565   need_lib_prefix=no
22566   need_version=no
22567   case $host_cpu in
22568   ia64*)
22569     shrext_cmds='.so'
22570     hardcode_into_libs=yes
22571     dynamic_linker="$host_os dld.so"
22572     shlibpath_var=LD_LIBRARY_PATH
22573     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22575     soname_spec='${libname}${release}${shared_ext}$major'
22576     if test "X$HPUX_IA64_MODE" = X32; then
22577       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22578     else
22579       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22580     fi
22581     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22582     ;;
22583    hppa*64*)
22584      shrext_cmds='.sl'
22585      hardcode_into_libs=yes
22586      dynamic_linker="$host_os dld.sl"
22587      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22588      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22589      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22590      soname_spec='${libname}${release}${shared_ext}$major'
22591      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22592      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22593      ;;
22594    *)
22595     shrext_cmds='.sl'
22596     dynamic_linker="$host_os dld.sl"
22597     shlibpath_var=SHLIB_PATH
22598     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22599     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22600     soname_spec='${libname}${release}${shared_ext}$major'
22601     ;;
22602   esac
22603   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22604   postinstall_cmds='chmod 555 $lib'
22605   ;;
22606
22607 interix3*)
22608   version_type=linux
22609   need_lib_prefix=no
22610   need_version=no
22611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22612   soname_spec='${libname}${release}${shared_ext}$major'
22613   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22614   shlibpath_var=LD_LIBRARY_PATH
22615   shlibpath_overrides_runpath=no
22616   hardcode_into_libs=yes
22617   ;;
22618
22619 irix5* | irix6* | nonstopux*)
22620   case $host_os in
22621     nonstopux*) version_type=nonstopux ;;
22622     *)
22623         if test "$lt_cv_prog_gnu_ld" = yes; then
22624                 version_type=linux
22625         else
22626                 version_type=irix
22627         fi ;;
22628   esac
22629   need_lib_prefix=no
22630   need_version=no
22631   soname_spec='${libname}${release}${shared_ext}$major'
22632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22633   case $host_os in
22634   irix5* | nonstopux*)
22635     libsuff= shlibsuff=
22636     ;;
22637   *)
22638     case $LD in # libtool.m4 will add one of these switches to LD
22639     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22640       libsuff= shlibsuff= libmagic=32-bit;;
22641     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22642       libsuff=32 shlibsuff=N32 libmagic=N32;;
22643     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22644       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22645     *) libsuff= shlibsuff= libmagic=never-match;;
22646     esac
22647     ;;
22648   esac
22649   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22650   shlibpath_overrides_runpath=no
22651   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22652   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22653   hardcode_into_libs=yes
22654   ;;
22655
22656 # No shared lib support for Linux oldld, aout, or coff.
22657 linux*oldld* | linux*aout* | linux*coff*)
22658   dynamic_linker=no
22659   ;;
22660
22661 # This must be Linux ELF.
22662 linux*)
22663   version_type=linux
22664   need_lib_prefix=no
22665   need_version=no
22666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22667   soname_spec='${libname}${release}${shared_ext}$major'
22668   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22669   shlibpath_var=LD_LIBRARY_PATH
22670   shlibpath_overrides_runpath=no
22671   # This implies no fast_install, which is unacceptable.
22672   # Some rework will be needed to allow for fast_install
22673   # before this can be enabled.
22674   hardcode_into_libs=yes
22675
22676   # Append ld.so.conf contents to the search path
22677   if test -f /etc/ld.so.conf; then
22678     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' ' '`
22679     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22680   fi
22681
22682   # We used to test for /lib/ld.so.1 and disable shared libraries on
22683   # powerpc, because MkLinux only supported shared libraries with the
22684   # GNU dynamic linker.  Since this was broken with cross compilers,
22685   # most powerpc-linux boxes support dynamic linking these days and
22686   # people can always --disable-shared, the test was removed, and we
22687   # assume the GNU/Linux dynamic linker is in use.
22688   dynamic_linker='GNU/Linux ld.so'
22689   ;;
22690
22691 knetbsd*-gnu)
22692   version_type=linux
22693   need_lib_prefix=no
22694   need_version=no
22695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22696   soname_spec='${libname}${release}${shared_ext}$major'
22697   shlibpath_var=LD_LIBRARY_PATH
22698   shlibpath_overrides_runpath=no
22699   hardcode_into_libs=yes
22700   dynamic_linker='GNU ld.so'
22701   ;;
22702
22703 netbsd*)
22704   version_type=sunos
22705   need_lib_prefix=no
22706   need_version=no
22707   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22708     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22709     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22710     dynamic_linker='NetBSD (a.out) ld.so'
22711   else
22712     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22713     soname_spec='${libname}${release}${shared_ext}$major'
22714     dynamic_linker='NetBSD ld.elf_so'
22715   fi
22716   shlibpath_var=LD_LIBRARY_PATH
22717   shlibpath_overrides_runpath=yes
22718   hardcode_into_libs=yes
22719   ;;
22720
22721 newsos6)
22722   version_type=linux
22723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22724   shlibpath_var=LD_LIBRARY_PATH
22725   shlibpath_overrides_runpath=yes
22726   ;;
22727
22728 nto-qnx*)
22729   version_type=linux
22730   need_lib_prefix=no
22731   need_version=no
22732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22733   soname_spec='${libname}${release}${shared_ext}$major'
22734   shlibpath_var=LD_LIBRARY_PATH
22735   shlibpath_overrides_runpath=yes
22736   ;;
22737
22738 openbsd*)
22739   version_type=sunos
22740   sys_lib_dlsearch_path_spec="/usr/lib"
22741   need_lib_prefix=no
22742   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22743   case $host_os in
22744     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22745     *)                         need_version=no  ;;
22746   esac
22747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22748   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22749   shlibpath_var=LD_LIBRARY_PATH
22750   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22751     case $host_os in
22752       openbsd2.[89] | openbsd2.[89].*)
22753         shlibpath_overrides_runpath=no
22754         ;;
22755       *)
22756         shlibpath_overrides_runpath=yes
22757         ;;
22758       esac
22759   else
22760     shlibpath_overrides_runpath=yes
22761   fi
22762   ;;
22763
22764 os2*)
22765   libname_spec='$name'
22766   shrext_cmds=".dll"
22767   need_lib_prefix=no
22768   library_names_spec='$libname${shared_ext} $libname.a'
22769   dynamic_linker='OS/2 ld.exe'
22770   shlibpath_var=LIBPATH
22771   ;;
22772
22773 osf3* | osf4* | osf5*)
22774   version_type=osf
22775   need_lib_prefix=no
22776   need_version=no
22777   soname_spec='${libname}${release}${shared_ext}$major'
22778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22779   shlibpath_var=LD_LIBRARY_PATH
22780   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22781   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22782   ;;
22783
22784 solaris*)
22785   version_type=linux
22786   need_lib_prefix=no
22787   need_version=no
22788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22789   soname_spec='${libname}${release}${shared_ext}$major'
22790   shlibpath_var=LD_LIBRARY_PATH
22791   shlibpath_overrides_runpath=yes
22792   hardcode_into_libs=yes
22793   # ldd complains unless libraries are executable
22794   postinstall_cmds='chmod +x $lib'
22795   ;;
22796
22797 sunos4*)
22798   version_type=sunos
22799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22800   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22801   shlibpath_var=LD_LIBRARY_PATH
22802   shlibpath_overrides_runpath=yes
22803   if test "$with_gnu_ld" = yes; then
22804     need_lib_prefix=no
22805   fi
22806   need_version=yes
22807   ;;
22808
22809 sysv4 | sysv4.3*)
22810   version_type=linux
22811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22812   soname_spec='${libname}${release}${shared_ext}$major'
22813   shlibpath_var=LD_LIBRARY_PATH
22814   case $host_vendor in
22815     sni)
22816       shlibpath_overrides_runpath=no
22817       need_lib_prefix=no
22818       export_dynamic_flag_spec='${wl}-Blargedynsym'
22819       runpath_var=LD_RUN_PATH
22820       ;;
22821     siemens)
22822       need_lib_prefix=no
22823       ;;
22824     motorola)
22825       need_lib_prefix=no
22826       need_version=no
22827       shlibpath_overrides_runpath=no
22828       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22829       ;;
22830   esac
22831   ;;
22832
22833 sysv4*MP*)
22834   if test -d /usr/nec ;then
22835     version_type=linux
22836     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22837     soname_spec='$libname${shared_ext}.$major'
22838     shlibpath_var=LD_LIBRARY_PATH
22839   fi
22840   ;;
22841
22842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22843   version_type=freebsd-elf
22844   need_lib_prefix=no
22845   need_version=no
22846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22847   soname_spec='${libname}${release}${shared_ext}$major'
22848   shlibpath_var=LD_LIBRARY_PATH
22849   hardcode_into_libs=yes
22850   if test "$with_gnu_ld" = yes; then
22851     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22852     shlibpath_overrides_runpath=no
22853   else
22854     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22855     shlibpath_overrides_runpath=yes
22856     case $host_os in
22857       sco3.2v5*)
22858         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22859         ;;
22860     esac
22861   fi
22862   sys_lib_dlsearch_path_spec='/usr/lib'
22863   ;;
22864
22865 uts4*)
22866   version_type=linux
22867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22868   soname_spec='${libname}${release}${shared_ext}$major'
22869   shlibpath_var=LD_LIBRARY_PATH
22870   ;;
22871
22872 *)
22873   dynamic_linker=no
22874   ;;
22875 esac
22876 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22877 echo "${ECHO_T}$dynamic_linker" >&6; }
22878 test "$dynamic_linker" = no && can_build_shared=no
22879
22880 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22881 if test "$GCC" = yes; then
22882   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22883 fi
22884
22885 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22886 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22887 hardcode_action_F77=
22888 if test -n "$hardcode_libdir_flag_spec_F77" || \
22889    test -n "$runpath_var_F77" || \
22890    test "X$hardcode_automatic_F77" = "Xyes" ; then
22891
22892   # We can hardcode non-existant directories.
22893   if test "$hardcode_direct_F77" != no &&
22894      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22895      # have to relink, otherwise we might link with an installed library
22896      # when we should be linking with a yet-to-be-installed one
22897      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22898      test "$hardcode_minus_L_F77" != no; then
22899     # Linking always hardcodes the temporary library directory.
22900     hardcode_action_F77=relink
22901   else
22902     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22903     hardcode_action_F77=immediate
22904   fi
22905 else
22906   # We cannot hardcode anything, or else we can only hardcode existing
22907   # directories.
22908   hardcode_action_F77=unsupported
22909 fi
22910 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22911 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22912
22913 if test "$hardcode_action_F77" = relink; then
22914   # Fast installation is not supported
22915   enable_fast_install=no
22916 elif test "$shlibpath_overrides_runpath" = yes ||
22917      test "$enable_shared" = no; then
22918   # Fast installation is not necessary
22919   enable_fast_install=needless
22920 fi
22921
22922
22923 # The else clause should only fire when bootstrapping the
22924 # libtool distribution, otherwise you forgot to ship ltmain.sh
22925 # with your package, and you will get complaints that there are
22926 # no rules to generate ltmain.sh.
22927 if test -f "$ltmain"; then
22928   # See if we are running on zsh, and set the options which allow our commands through
22929   # without removal of \ escapes.
22930   if test -n "${ZSH_VERSION+set}" ; then
22931     setopt NO_GLOB_SUBST
22932   fi
22933   # Now quote all the things that may contain metacharacters while being
22934   # careful not to overquote the AC_SUBSTed values.  We take copies of the
22935   # variables and quote the copies for generation of the libtool script.
22936   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22937     SED SHELL STRIP \
22938     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22939     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22940     deplibs_check_method reload_flag reload_cmds need_locks \
22941     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22942     lt_cv_sys_global_symbol_to_c_name_address \
22943     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22944     old_postinstall_cmds old_postuninstall_cmds \
22945     compiler_F77 \
22946     CC_F77 \
22947     LD_F77 \
22948     lt_prog_compiler_wl_F77 \
22949     lt_prog_compiler_pic_F77 \
22950     lt_prog_compiler_static_F77 \
22951     lt_prog_compiler_no_builtin_flag_F77 \
22952     export_dynamic_flag_spec_F77 \
22953     thread_safe_flag_spec_F77 \
22954     whole_archive_flag_spec_F77 \
22955     enable_shared_with_static_runtimes_F77 \
22956     old_archive_cmds_F77 \
22957     old_archive_from_new_cmds_F77 \
22958     predep_objects_F77 \
22959     postdep_objects_F77 \
22960     predeps_F77 \
22961     postdeps_F77 \
22962     compiler_lib_search_path_F77 \
22963     archive_cmds_F77 \
22964     archive_expsym_cmds_F77 \
22965     postinstall_cmds_F77 \
22966     postuninstall_cmds_F77 \
22967     old_archive_from_expsyms_cmds_F77 \
22968     allow_undefined_flag_F77 \
22969     no_undefined_flag_F77 \
22970     export_symbols_cmds_F77 \
22971     hardcode_libdir_flag_spec_F77 \
22972     hardcode_libdir_flag_spec_ld_F77 \
22973     hardcode_libdir_separator_F77 \
22974     hardcode_automatic_F77 \
22975     module_cmds_F77 \
22976     module_expsym_cmds_F77 \
22977     lt_cv_prog_compiler_c_o_F77 \
22978     exclude_expsyms_F77 \
22979     include_expsyms_F77; do
22980
22981     case $var in
22982     old_archive_cmds_F77 | \
22983     old_archive_from_new_cmds_F77 | \
22984     archive_cmds_F77 | \
22985     archive_expsym_cmds_F77 | \
22986     module_cmds_F77 | \
22987     module_expsym_cmds_F77 | \
22988     old_archive_from_expsyms_cmds_F77 | \
22989     export_symbols_cmds_F77 | \
22990     extract_expsyms_cmds | reload_cmds | finish_cmds | \
22991     postinstall_cmds | postuninstall_cmds | \
22992     old_postinstall_cmds | old_postuninstall_cmds | \
22993     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22994       # Double-quote double-evaled strings.
22995       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22996       ;;
22997     *)
22998       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22999       ;;
23000     esac
23001   done
23002
23003   case $lt_echo in
23004   *'\$0 --fallback-echo"')
23005     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23006     ;;
23007   esac
23008
23009 cfgfile="$ofile"
23010
23011   cat <<__EOF__ >> "$cfgfile"
23012 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23013
23014 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23015
23016 # Shell to use when invoking shell scripts.
23017 SHELL=$lt_SHELL
23018
23019 # Whether or not to build shared libraries.
23020 build_libtool_libs=$enable_shared
23021
23022 # Whether or not to build static libraries.
23023 build_old_libs=$enable_static
23024
23025 # Whether or not to add -lc for building shared libraries.
23026 build_libtool_need_lc=$archive_cmds_need_lc_F77
23027
23028 # Whether or not to disallow shared libs when runtime libs are static
23029 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23030
23031 # Whether or not to optimize for fast installation.
23032 fast_install=$enable_fast_install
23033
23034 # The host system.
23035 host_alias=$host_alias
23036 host=$host
23037 host_os=$host_os
23038
23039 # The build system.
23040 build_alias=$build_alias
23041 build=$build
23042 build_os=$build_os
23043
23044 # An echo program that does not interpret backslashes.
23045 echo=$lt_echo
23046
23047 # The archiver.
23048 AR=$lt_AR
23049 AR_FLAGS=$lt_AR_FLAGS
23050
23051 # A C compiler.
23052 LTCC=$lt_LTCC
23053
23054 # LTCC compiler flags.
23055 LTCFLAGS=$lt_LTCFLAGS
23056
23057 # A language-specific compiler.
23058 CC=$lt_compiler_F77
23059
23060 # Is the compiler the GNU C compiler?
23061 with_gcc=$GCC_F77
23062
23063 # An ERE matcher.
23064 EGREP=$lt_EGREP
23065
23066 # The linker used to build libraries.
23067 LD=$lt_LD_F77
23068
23069 # Whether we need hard or soft links.
23070 LN_S=$lt_LN_S
23071
23072 # A BSD-compatible nm program.
23073 NM=$lt_NM
23074
23075 # A symbol stripping program
23076 STRIP=$lt_STRIP
23077
23078 # Used to examine libraries when file_magic_cmd begins "file"
23079 MAGIC_CMD=$MAGIC_CMD
23080
23081 # Used on cygwin: DLL creation program.
23082 DLLTOOL="$DLLTOOL"
23083
23084 # Used on cygwin: object dumper.
23085 OBJDUMP="$OBJDUMP"
23086
23087 # Used on cygwin: assembler.
23088 AS="$AS"
23089
23090 # The name of the directory that contains temporary libtool files.
23091 objdir=$objdir
23092
23093 # How to create reloadable object files.
23094 reload_flag=$lt_reload_flag
23095 reload_cmds=$lt_reload_cmds
23096
23097 # How to pass a linker flag through the compiler.
23098 wl=$lt_lt_prog_compiler_wl_F77
23099
23100 # Object file suffix (normally "o").
23101 objext="$ac_objext"
23102
23103 # Old archive suffix (normally "a").
23104 libext="$libext"
23105
23106 # Shared library suffix (normally ".so").
23107 shrext_cmds='$shrext_cmds'
23108
23109 # Executable file suffix (normally "").
23110 exeext="$exeext"
23111
23112 # Additional compiler flags for building library objects.
23113 pic_flag=$lt_lt_prog_compiler_pic_F77
23114 pic_mode=$pic_mode
23115
23116 # What is the maximum length of a command?
23117 max_cmd_len=$lt_cv_sys_max_cmd_len
23118
23119 # Does compiler simultaneously support -c and -o options?
23120 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23121
23122 # Must we lock files when doing compilation?
23123 need_locks=$lt_need_locks
23124
23125 # Do we need the lib prefix for modules?
23126 need_lib_prefix=$need_lib_prefix
23127
23128 # Do we need a version for libraries?
23129 need_version=$need_version
23130
23131 # Whether dlopen is supported.
23132 dlopen_support=$enable_dlopen
23133
23134 # Whether dlopen of programs is supported.
23135 dlopen_self=$enable_dlopen_self
23136
23137 # Whether dlopen of statically linked programs is supported.
23138 dlopen_self_static=$enable_dlopen_self_static
23139
23140 # Compiler flag to prevent dynamic linking.
23141 link_static_flag=$lt_lt_prog_compiler_static_F77
23142
23143 # Compiler flag to turn off builtin functions.
23144 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23145
23146 # Compiler flag to allow reflexive dlopens.
23147 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23148
23149 # Compiler flag to generate shared objects directly from archives.
23150 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23151
23152 # Compiler flag to generate thread-safe objects.
23153 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23154
23155 # Library versioning type.
23156 version_type=$version_type
23157
23158 # Format of library name prefix.
23159 libname_spec=$lt_libname_spec
23160
23161 # List of archive names.  First name is the real one, the rest are links.
23162 # The last name is the one that the linker finds with -lNAME.
23163 library_names_spec=$lt_library_names_spec
23164
23165 # The coded name of the library, if different from the real name.
23166 soname_spec=$lt_soname_spec
23167
23168 # Commands used to build and install an old-style archive.
23169 RANLIB=$lt_RANLIB
23170 old_archive_cmds=$lt_old_archive_cmds_F77
23171 old_postinstall_cmds=$lt_old_postinstall_cmds
23172 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23173
23174 # Create an old-style archive from a shared archive.
23175 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23176
23177 # Create a temporary old-style archive to link instead of a shared archive.
23178 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23179
23180 # Commands used to build and install a shared archive.
23181 archive_cmds=$lt_archive_cmds_F77
23182 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23183 postinstall_cmds=$lt_postinstall_cmds
23184 postuninstall_cmds=$lt_postuninstall_cmds
23185
23186 # Commands used to build a loadable module (assumed same as above if empty)
23187 module_cmds=$lt_module_cmds_F77
23188 module_expsym_cmds=$lt_module_expsym_cmds_F77
23189
23190 # Commands to strip libraries.
23191 old_striplib=$lt_old_striplib
23192 striplib=$lt_striplib
23193
23194 # Dependencies to place before the objects being linked to create a
23195 # shared library.
23196 predep_objects=$lt_predep_objects_F77
23197
23198 # Dependencies to place after the objects being linked to create a
23199 # shared library.
23200 postdep_objects=$lt_postdep_objects_F77
23201
23202 # Dependencies to place before the objects being linked to create a
23203 # shared library.
23204 predeps=$lt_predeps_F77
23205
23206 # Dependencies to place after the objects being linked to create a
23207 # shared library.
23208 postdeps=$lt_postdeps_F77
23209
23210 # The library search path used internally by the compiler when linking
23211 # a shared library.
23212 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23213
23214 # Method to check whether dependent libraries are shared objects.
23215 deplibs_check_method=$lt_deplibs_check_method
23216
23217 # Command to use when deplibs_check_method == file_magic.
23218 file_magic_cmd=$lt_file_magic_cmd
23219
23220 # Flag that allows shared libraries with undefined symbols to be built.
23221 allow_undefined_flag=$lt_allow_undefined_flag_F77
23222
23223 # Flag that forces no undefined symbols.
23224 no_undefined_flag=$lt_no_undefined_flag_F77
23225
23226 # Commands used to finish a libtool library installation in a directory.
23227 finish_cmds=$lt_finish_cmds
23228
23229 # Same as above, but a single script fragment to be evaled but not shown.
23230 finish_eval=$lt_finish_eval
23231
23232 # Take the output of nm and produce a listing of raw symbols and C names.
23233 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23234
23235 # Transform the output of nm in a proper C declaration
23236 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23237
23238 # Transform the output of nm in a C name address pair
23239 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23240
23241 # This is the shared library runtime path variable.
23242 runpath_var=$runpath_var
23243
23244 # This is the shared library path variable.
23245 shlibpath_var=$shlibpath_var
23246
23247 # Is shlibpath searched before the hard-coded library search path?
23248 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23249
23250 # How to hardcode a shared library path into an executable.
23251 hardcode_action=$hardcode_action_F77
23252
23253 # Whether we should hardcode library paths into libraries.
23254 hardcode_into_libs=$hardcode_into_libs
23255
23256 # Flag to hardcode \$libdir into a binary during linking.
23257 # This must work even if \$libdir does not exist.
23258 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23259
23260 # If ld is used when linking, flag to hardcode \$libdir into
23261 # a binary during linking. This must work even if \$libdir does
23262 # not exist.
23263 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23264
23265 # Whether we need a single -rpath flag with a separated argument.
23266 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23267
23268 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23269 # resulting binary.
23270 hardcode_direct=$hardcode_direct_F77
23271
23272 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23273 # resulting binary.
23274 hardcode_minus_L=$hardcode_minus_L_F77
23275
23276 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23277 # the resulting binary.
23278 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23279
23280 # Set to yes if building a shared library automatically hardcodes DIR into the library
23281 # and all subsequent libraries and executables linked against it.
23282 hardcode_automatic=$hardcode_automatic_F77
23283
23284 # Variables whose values should be saved in libtool wrapper scripts and
23285 # restored at relink time.
23286 variables_saved_for_relink="$variables_saved_for_relink"
23287
23288 # Whether libtool must link a program against all its dependency libraries.
23289 link_all_deplibs=$link_all_deplibs_F77
23290
23291 # Compile-time system search path for libraries
23292 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23293
23294 # Run-time system search path for libraries
23295 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23296
23297 # Fix the shell variable \$srcfile for the compiler.
23298 fix_srcfile_path="$fix_srcfile_path_F77"
23299
23300 # Set to yes if exported symbols are required.
23301 always_export_symbols=$always_export_symbols_F77
23302
23303 # The commands to list exported symbols.
23304 export_symbols_cmds=$lt_export_symbols_cmds_F77
23305
23306 # The commands to extract the exported symbol list from a shared archive.
23307 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23308
23309 # Symbols that should not be listed in the preloaded symbols.
23310 exclude_expsyms=$lt_exclude_expsyms_F77
23311
23312 # Symbols that must always be exported.
23313 include_expsyms=$lt_include_expsyms_F77
23314
23315 # ### END LIBTOOL TAG CONFIG: $tagname
23316
23317 __EOF__
23318
23319
23320 else
23321   # If there is no Makefile yet, we rely on a make rule to execute
23322   # `config.status --recheck' to rerun these tests and create the
23323   # libtool script then.
23324   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23325   if test -f "$ltmain_in"; then
23326     test -f Makefile && make "$ltmain"
23327   fi
23328 fi
23329
23330
23331 ac_ext=c
23332 ac_cpp='$CPP $CPPFLAGS'
23333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23336
23337 CC="$lt_save_CC"
23338
23339         else
23340           tagname=""
23341         fi
23342         ;;
23343
23344       GCJ)
23345         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23346           ac_ext=c
23347 ac_cpp='$CPP $CPPFLAGS'
23348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23351
23352
23353 # Source file extension for Java test sources.
23354 ac_ext=java
23355
23356 # Object file extension for compiled Java test sources.
23357 objext=o
23358 objext_GCJ=$objext
23359
23360 # Code to be used in simple compile tests
23361 lt_simple_compile_test_code="class foo {}\n"
23362
23363 # Code to be used in simple link tests
23364 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23365
23366 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23367
23368 # If no C compiler was specified, use CC.
23369 LTCC=${LTCC-"$CC"}
23370
23371 # If no C compiler flags were specified, use CFLAGS.
23372 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23373
23374 # Allow CC to be a program name with arguments.
23375 compiler=$CC
23376
23377
23378 # save warnings/boilerplate of simple test code
23379 ac_outfile=conftest.$ac_objext
23380 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23381 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23382 _lt_compiler_boilerplate=`cat conftest.err`
23383 $rm conftest*
23384
23385 ac_outfile=conftest.$ac_objext
23386 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23387 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23388 _lt_linker_boilerplate=`cat conftest.err`
23389 $rm conftest*
23390
23391
23392 # Allow CC to be a program name with arguments.
23393 lt_save_CC="$CC"
23394 CC=${GCJ-"gcj"}
23395 compiler=$CC
23396 compiler_GCJ=$CC
23397 for cc_temp in $compiler""; do
23398   case $cc_temp in
23399     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23400     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23401     \-*) ;;
23402     *) break;;
23403   esac
23404 done
23405 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23406
23407
23408 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23409 archive_cmds_need_lc_GCJ=no
23410
23411 old_archive_cmds_GCJ=$old_archive_cmds
23412
23413
23414 lt_prog_compiler_no_builtin_flag_GCJ=
23415
23416 if test "$GCC" = yes; then
23417   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23418
23419
23420 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23421 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23422 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23423   echo $ECHO_N "(cached) $ECHO_C" >&6
23424 else
23425   lt_cv_prog_compiler_rtti_exceptions=no
23426   ac_outfile=conftest.$ac_objext
23427    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23428    lt_compiler_flag="-fno-rtti -fno-exceptions"
23429    # Insert the option either (1) after the last *FLAGS variable, or
23430    # (2) before a word containing "conftest.", or (3) at the end.
23431    # Note that $ac_compile itself does not contain backslashes and begins
23432    # with a dollar sign (not a hyphen), so the echo should work correctly.
23433    # The option is referenced via a variable to avoid confusing sed.
23434    lt_compile=`echo "$ac_compile" | $SED \
23435    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23436    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23437    -e 's:$: $lt_compiler_flag:'`
23438    (eval echo "\"\$as_me:23438: $lt_compile\"" >&5)
23439    (eval "$lt_compile" 2>conftest.err)
23440    ac_status=$?
23441    cat conftest.err >&5
23442    echo "$as_me:23442: \$? = $ac_status" >&5
23443    if (exit $ac_status) && test -s "$ac_outfile"; then
23444      # The compiler can only warn and ignore the option if not recognized
23445      # So say no if there are warnings other than the usual output.
23446      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23447      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23448      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23449        lt_cv_prog_compiler_rtti_exceptions=yes
23450      fi
23451    fi
23452    $rm conftest*
23453
23454 fi
23455 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23456 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23457
23458 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23459     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23460 else
23461     :
23462 fi
23463
23464 fi
23465
23466 lt_prog_compiler_wl_GCJ=
23467 lt_prog_compiler_pic_GCJ=
23468 lt_prog_compiler_static_GCJ=
23469
23470 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23471 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23472
23473   if test "$GCC" = yes; then
23474     lt_prog_compiler_wl_GCJ='-Wl,'
23475     lt_prog_compiler_static_GCJ='-static'
23476
23477     case $host_os in
23478       aix*)
23479       # All AIX code is PIC.
23480       if test "$host_cpu" = ia64; then
23481         # AIX 5 now supports IA64 processor
23482         lt_prog_compiler_static_GCJ='-Bstatic'
23483       fi
23484       ;;
23485
23486     amigaos*)
23487       # FIXME: we need at least 68020 code to build shared libraries, but
23488       # adding the `-m68020' flag to GCC prevents building anything better,
23489       # like `-m68040'.
23490       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23491       ;;
23492
23493     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23494       # PIC is the default for these OSes.
23495       ;;
23496
23497     mingw* | pw32* | os2*)
23498       # This hack is so that the source file can tell whether it is being
23499       # built for inclusion in a dll (and should export symbols for example).
23500       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23501       ;;
23502
23503     darwin* | rhapsody*)
23504       # PIC is the default on this platform
23505       # Common symbols not allowed in MH_DYLIB files
23506       lt_prog_compiler_pic_GCJ='-fno-common'
23507       ;;
23508
23509     interix3*)
23510       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23511       # Instead, we relocate shared libraries at runtime.
23512       ;;
23513
23514     msdosdjgpp*)
23515       # Just because we use GCC doesn't mean we suddenly get shared libraries
23516       # on systems that don't support them.
23517       lt_prog_compiler_can_build_shared_GCJ=no
23518       enable_shared=no
23519       ;;
23520
23521     sysv4*MP*)
23522       if test -d /usr/nec; then
23523         lt_prog_compiler_pic_GCJ=-Kconform_pic
23524       fi
23525       ;;
23526
23527     hpux*)
23528       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23529       # not for PA HP-UX.
23530       case $host_cpu in
23531       hppa*64*|ia64*)
23532         # +Z the default
23533         ;;
23534       *)
23535         lt_prog_compiler_pic_GCJ='-fPIC'
23536         ;;
23537       esac
23538       ;;
23539
23540     *)
23541       lt_prog_compiler_pic_GCJ='-fPIC'
23542       ;;
23543     esac
23544   else
23545     # PORTME Check for flag to pass linker flags through the system compiler.
23546     case $host_os in
23547     aix*)
23548       lt_prog_compiler_wl_GCJ='-Wl,'
23549       if test "$host_cpu" = ia64; then
23550         # AIX 5 now supports IA64 processor
23551         lt_prog_compiler_static_GCJ='-Bstatic'
23552       else
23553         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23554       fi
23555       ;;
23556       darwin*)
23557         # PIC is the default on this platform
23558         # Common symbols not allowed in MH_DYLIB files
23559        case $cc_basename in
23560          xlc*)
23561          lt_prog_compiler_pic_GCJ='-qnocommon'
23562          lt_prog_compiler_wl_GCJ='-Wl,'
23563          ;;
23564        esac
23565        ;;
23566
23567     mingw* | pw32* | os2*)
23568       # This hack is so that the source file can tell whether it is being
23569       # built for inclusion in a dll (and should export symbols for example).
23570       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23571       ;;
23572
23573     hpux9* | hpux10* | hpux11*)
23574       lt_prog_compiler_wl_GCJ='-Wl,'
23575       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23576       # not for PA HP-UX.
23577       case $host_cpu in
23578       hppa*64*|ia64*)
23579         # +Z the default
23580         ;;
23581       *)
23582         lt_prog_compiler_pic_GCJ='+Z'
23583         ;;
23584       esac
23585       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23586       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23587       ;;
23588
23589     irix5* | irix6* | nonstopux*)
23590       lt_prog_compiler_wl_GCJ='-Wl,'
23591       # PIC (with -KPIC) is the default.
23592       lt_prog_compiler_static_GCJ='-non_shared'
23593       ;;
23594
23595     newsos6)
23596       lt_prog_compiler_pic_GCJ='-KPIC'
23597       lt_prog_compiler_static_GCJ='-Bstatic'
23598       ;;
23599
23600     linux*)
23601       case $cc_basename in
23602       icc* | ecc*)
23603         lt_prog_compiler_wl_GCJ='-Wl,'
23604         lt_prog_compiler_pic_GCJ='-KPIC'
23605         lt_prog_compiler_static_GCJ='-static'
23606         ;;
23607       pgcc* | pgf77* | pgf90* | pgf95*)
23608         # Portland Group compilers (*not* the Pentium gcc compiler,
23609         # which looks to be a dead project)
23610         lt_prog_compiler_wl_GCJ='-Wl,'
23611         lt_prog_compiler_pic_GCJ='-fpic'
23612         lt_prog_compiler_static_GCJ='-Bstatic'
23613         ;;
23614       ccc*)
23615         lt_prog_compiler_wl_GCJ='-Wl,'
23616         # All Alpha code is PIC.
23617         lt_prog_compiler_static_GCJ='-non_shared'
23618         ;;
23619       esac
23620       ;;
23621
23622     osf3* | osf4* | osf5*)
23623       lt_prog_compiler_wl_GCJ='-Wl,'
23624       # All OSF/1 code is PIC.
23625       lt_prog_compiler_static_GCJ='-non_shared'
23626       ;;
23627
23628     solaris*)
23629       lt_prog_compiler_pic_GCJ='-KPIC'
23630       lt_prog_compiler_static_GCJ='-Bstatic'
23631       case $cc_basename in
23632       f77* | f90* | f95*)
23633         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23634       *)
23635         lt_prog_compiler_wl_GCJ='-Wl,';;
23636       esac
23637       ;;
23638
23639     sunos4*)
23640       lt_prog_compiler_wl_GCJ='-Qoption ld '
23641       lt_prog_compiler_pic_GCJ='-PIC'
23642       lt_prog_compiler_static_GCJ='-Bstatic'
23643       ;;
23644
23645     sysv4 | sysv4.2uw2* | sysv4.3*)
23646       lt_prog_compiler_wl_GCJ='-Wl,'
23647       lt_prog_compiler_pic_GCJ='-KPIC'
23648       lt_prog_compiler_static_GCJ='-Bstatic'
23649       ;;
23650
23651     sysv4*MP*)
23652       if test -d /usr/nec ;then
23653         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23654         lt_prog_compiler_static_GCJ='-Bstatic'
23655       fi
23656       ;;
23657
23658     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23659       lt_prog_compiler_wl_GCJ='-Wl,'
23660       lt_prog_compiler_pic_GCJ='-KPIC'
23661       lt_prog_compiler_static_GCJ='-Bstatic'
23662       ;;
23663
23664     unicos*)
23665       lt_prog_compiler_wl_GCJ='-Wl,'
23666       lt_prog_compiler_can_build_shared_GCJ=no
23667       ;;
23668
23669     uts4*)
23670       lt_prog_compiler_pic_GCJ='-pic'
23671       lt_prog_compiler_static_GCJ='-Bstatic'
23672       ;;
23673
23674     *)
23675       lt_prog_compiler_can_build_shared_GCJ=no
23676       ;;
23677     esac
23678   fi
23679
23680 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23681 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23682
23683 #
23684 # Check to make sure the PIC flag actually works.
23685 #
23686 if test -n "$lt_prog_compiler_pic_GCJ"; then
23687
23688 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23689 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23690 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23691   echo $ECHO_N "(cached) $ECHO_C" >&6
23692 else
23693   lt_prog_compiler_pic_works_GCJ=no
23694   ac_outfile=conftest.$ac_objext
23695    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23696    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23697    # Insert the option either (1) after the last *FLAGS variable, or
23698    # (2) before a word containing "conftest.", or (3) at the end.
23699    # Note that $ac_compile itself does not contain backslashes and begins
23700    # with a dollar sign (not a hyphen), so the echo should work correctly.
23701    # The option is referenced via a variable to avoid confusing sed.
23702    lt_compile=`echo "$ac_compile" | $SED \
23703    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23704    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23705    -e 's:$: $lt_compiler_flag:'`
23706    (eval echo "\"\$as_me:23706: $lt_compile\"" >&5)
23707    (eval "$lt_compile" 2>conftest.err)
23708    ac_status=$?
23709    cat conftest.err >&5
23710    echo "$as_me:23710: \$? = $ac_status" >&5
23711    if (exit $ac_status) && test -s "$ac_outfile"; then
23712      # The compiler can only warn and ignore the option if not recognized
23713      # So say no if there are warnings other than the usual output.
23714      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23715      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23716      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23717        lt_prog_compiler_pic_works_GCJ=yes
23718      fi
23719    fi
23720    $rm conftest*
23721
23722 fi
23723 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23724 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23725
23726 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23727     case $lt_prog_compiler_pic_GCJ in
23728      "" | " "*) ;;
23729      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23730      esac
23731 else
23732     lt_prog_compiler_pic_GCJ=
23733      lt_prog_compiler_can_build_shared_GCJ=no
23734 fi
23735
23736 fi
23737 case $host_os in
23738   # For platforms which do not support PIC, -DPIC is meaningless:
23739   *djgpp*)
23740     lt_prog_compiler_pic_GCJ=
23741     ;;
23742   *)
23743     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23744     ;;
23745 esac
23746
23747 #
23748 # Check to make sure the static flag actually works.
23749 #
23750 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23751 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23752 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23753 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23754   echo $ECHO_N "(cached) $ECHO_C" >&6
23755 else
23756   lt_prog_compiler_static_works_GCJ=no
23757    save_LDFLAGS="$LDFLAGS"
23758    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23759    printf "$lt_simple_link_test_code" > conftest.$ac_ext
23760    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23761      # The linker can only warn and ignore the option if not recognized
23762      # So say no if there are warnings
23763      if test -s conftest.err; then
23764        # Append any errors to the config.log.
23765        cat conftest.err 1>&5
23766        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23767        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23768        if diff conftest.exp conftest.er2 >/dev/null; then
23769          lt_prog_compiler_static_works_GCJ=yes
23770        fi
23771      else
23772        lt_prog_compiler_static_works_GCJ=yes
23773      fi
23774    fi
23775    $rm conftest*
23776    LDFLAGS="$save_LDFLAGS"
23777
23778 fi
23779 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23780 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23781
23782 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23783     :
23784 else
23785     lt_prog_compiler_static_GCJ=
23786 fi
23787
23788
23789 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23790 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23791 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23792   echo $ECHO_N "(cached) $ECHO_C" >&6
23793 else
23794   lt_cv_prog_compiler_c_o_GCJ=no
23795    $rm -r conftest 2>/dev/null
23796    mkdir conftest
23797    cd conftest
23798    mkdir out
23799    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23800
23801    lt_compiler_flag="-o out/conftest2.$ac_objext"
23802    # Insert the option either (1) after the last *FLAGS variable, or
23803    # (2) before a word containing "conftest.", or (3) at the end.
23804    # Note that $ac_compile itself does not contain backslashes and begins
23805    # with a dollar sign (not a hyphen), so the echo should work correctly.
23806    lt_compile=`echo "$ac_compile" | $SED \
23807    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23808    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23809    -e 's:$: $lt_compiler_flag:'`
23810    (eval echo "\"\$as_me:23810: $lt_compile\"" >&5)
23811    (eval "$lt_compile" 2>out/conftest.err)
23812    ac_status=$?
23813    cat out/conftest.err >&5
23814    echo "$as_me:23814: \$? = $ac_status" >&5
23815    if (exit $ac_status) && test -s out/conftest2.$ac_objext
23816    then
23817      # The compiler can only warn and ignore the option if not recognized
23818      # So say no if there are warnings
23819      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23820      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23821      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23822        lt_cv_prog_compiler_c_o_GCJ=yes
23823      fi
23824    fi
23825    chmod u+w . 2>&5
23826    $rm conftest*
23827    # SGI C++ compiler will create directory out/ii_files/ for
23828    # template instantiation
23829    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23830    $rm out/* && rmdir out
23831    cd ..
23832    rmdir conftest
23833    $rm conftest*
23834
23835 fi
23836 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23837 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23838
23839
23840 hard_links="nottested"
23841 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23842   # do not overwrite the value of need_locks provided by the user
23843   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23844 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23845   hard_links=yes
23846   $rm conftest*
23847   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23848   touch conftest.a
23849   ln conftest.a conftest.b 2>&5 || hard_links=no
23850   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23851   { echo "$as_me:$LINENO: result: $hard_links" >&5
23852 echo "${ECHO_T}$hard_links" >&6; }
23853   if test "$hard_links" = no; then
23854     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23855 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23856     need_locks=warn
23857   fi
23858 else
23859   need_locks=no
23860 fi
23861
23862 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23863 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23864
23865   runpath_var=
23866   allow_undefined_flag_GCJ=
23867   enable_shared_with_static_runtimes_GCJ=no
23868   archive_cmds_GCJ=
23869   archive_expsym_cmds_GCJ=
23870   old_archive_From_new_cmds_GCJ=
23871   old_archive_from_expsyms_cmds_GCJ=
23872   export_dynamic_flag_spec_GCJ=
23873   whole_archive_flag_spec_GCJ=
23874   thread_safe_flag_spec_GCJ=
23875   hardcode_libdir_flag_spec_GCJ=
23876   hardcode_libdir_flag_spec_ld_GCJ=
23877   hardcode_libdir_separator_GCJ=
23878   hardcode_direct_GCJ=no
23879   hardcode_minus_L_GCJ=no
23880   hardcode_shlibpath_var_GCJ=unsupported
23881   link_all_deplibs_GCJ=unknown
23882   hardcode_automatic_GCJ=no
23883   module_cmds_GCJ=
23884   module_expsym_cmds_GCJ=
23885   always_export_symbols_GCJ=no
23886   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23887   # include_expsyms should be a list of space-separated symbols to be *always*
23888   # included in the symbol list
23889   include_expsyms_GCJ=
23890   # exclude_expsyms can be an extended regexp of symbols to exclude
23891   # it will be wrapped by ` (' and `)$', so one must not match beginning or
23892   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23893   # as well as any symbol that contains `d'.
23894   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23895   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23896   # platforms (ab)use it in PIC code, but their linkers get confused if
23897   # the symbol is explicitly referenced.  Since portable code cannot
23898   # rely on this symbol name, it's probably fine to never include it in
23899   # preloaded symbol tables.
23900   extract_expsyms_cmds=
23901   # Just being paranoid about ensuring that cc_basename is set.
23902   for cc_temp in $compiler""; do
23903   case $cc_temp in
23904     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23905     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23906     \-*) ;;
23907     *) break;;
23908   esac
23909 done
23910 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23911
23912   case $host_os in
23913   cygwin* | mingw* | pw32*)
23914     # FIXME: the MSVC++ port hasn't been tested in a loooong time
23915     # When not using gcc, we currently assume that we are using
23916     # Microsoft Visual C++.
23917     if test "$GCC" != yes; then
23918       with_gnu_ld=no
23919     fi
23920     ;;
23921   interix*)
23922     # we just hope/assume this is gcc and not c89 (= MSVC++)
23923     with_gnu_ld=yes
23924     ;;
23925   openbsd*)
23926     with_gnu_ld=no
23927     ;;
23928   esac
23929
23930   ld_shlibs_GCJ=yes
23931   if test "$with_gnu_ld" = yes; then
23932     # If archive_cmds runs LD, not CC, wlarc should be empty
23933     wlarc='${wl}'
23934
23935     # Set some defaults for GNU ld with shared library support. These
23936     # are reset later if shared libraries are not supported. Putting them
23937     # here allows them to be overridden if necessary.
23938     runpath_var=LD_RUN_PATH
23939     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23940     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23941     # ancient GNU ld didn't support --whole-archive et. al.
23942     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23943         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23944       else
23945         whole_archive_flag_spec_GCJ=
23946     fi
23947     supports_anon_versioning=no
23948     case `$LD -v 2>/dev/null` in
23949       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23950       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23951       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23952       *\ 2.11.*) ;; # other 2.11 versions
23953       *) supports_anon_versioning=yes ;;
23954     esac
23955
23956     # See if GNU ld supports shared libraries.
23957     case $host_os in
23958     aix3* | aix4* | aix5*)
23959       # On AIX/PPC, the GNU linker is very broken
23960       if test "$host_cpu" != ia64; then
23961         ld_shlibs_GCJ=no
23962         cat <<EOF 1>&2
23963
23964 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23965 *** to be unable to reliably create shared libraries on AIX.
23966 *** Therefore, libtool is disabling shared libraries support.  If you
23967 *** really care for shared libraries, you may want to modify your PATH
23968 *** so that a non-GNU linker is found, and then restart.
23969
23970 EOF
23971       fi
23972       ;;
23973
23974     amigaos*)
23975       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)'
23976       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23977       hardcode_minus_L_GCJ=yes
23978
23979       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23980       # that the semantics of dynamic libraries on AmigaOS, at least up
23981       # to version 4, is to share data among multiple programs linked
23982       # with the same dynamic library.  Since this doesn't match the
23983       # behavior of shared libraries on other platforms, we can't use
23984       # them.
23985       ld_shlibs_GCJ=no
23986       ;;
23987
23988     beos*)
23989       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23990         allow_undefined_flag_GCJ=unsupported
23991         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23992         # support --undefined.  This deserves some investigation.  FIXME
23993         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23994       else
23995         ld_shlibs_GCJ=no
23996       fi
23997       ;;
23998
23999     cygwin* | mingw* | pw32*)
24000       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24001       # as there is no search path for DLLs.
24002       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24003       allow_undefined_flag_GCJ=unsupported
24004       always_export_symbols_GCJ=no
24005       enable_shared_with_static_runtimes_GCJ=yes
24006       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24007
24008       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24009         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24010         # If the export-symbols file already is a .def file (1st line
24011         # is EXPORTS), use it as is; otherwise, prepend...
24012         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24013           cp $export_symbols $output_objdir/$soname.def;
24014         else
24015           echo EXPORTS > $output_objdir/$soname.def;
24016           cat $export_symbols >> $output_objdir/$soname.def;
24017         fi~
24018         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24019       else
24020         ld_shlibs_GCJ=no
24021       fi
24022       ;;
24023
24024     interix3*)
24025       hardcode_direct_GCJ=no
24026       hardcode_shlibpath_var_GCJ=no
24027       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24028       export_dynamic_flag_spec_GCJ='${wl}-E'
24029       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24030       # Instead, shared libraries are loaded at an image base (0x10000000 by
24031       # default) and relocated if they conflict, which is a slow very memory
24032       # consuming and fragmenting process.  To avoid this, we pick a random,
24033       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24034       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24035       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'
24036       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'
24037       ;;
24038
24039     linux*)
24040       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24041         tmp_addflag=
24042         case $cc_basename,$host_cpu in
24043         pgcc*)                          # Portland Group C compiler
24044           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'
24045           tmp_addflag=' $pic_flag'
24046           ;;
24047         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24048           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'
24049           tmp_addflag=' $pic_flag -Mnomain' ;;
24050         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24051           tmp_addflag=' -i_dynamic' ;;
24052         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24053           tmp_addflag=' -i_dynamic -nofor_main' ;;
24054         ifc* | ifort*)                  # Intel Fortran compiler
24055           tmp_addflag=' -nofor_main' ;;
24056         esac
24057         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24058
24059         if test $supports_anon_versioning = yes; then
24060           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24061   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24062   $echo "local: *; };" >> $output_objdir/$libname.ver~
24063           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24064         fi
24065       else
24066         ld_shlibs_GCJ=no
24067       fi
24068       ;;
24069
24070     netbsd*)
24071       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24072         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24073         wlarc=
24074       else
24075         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24076         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24077       fi
24078       ;;
24079
24080     solaris*)
24081       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24082         ld_shlibs_GCJ=no
24083         cat <<EOF 1>&2
24084
24085 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24086 *** create shared libraries on Solaris systems.  Therefore, libtool
24087 *** is disabling shared libraries support.  We urge you to upgrade GNU
24088 *** binutils to release 2.9.1 or newer.  Another option is to modify
24089 *** your PATH or compiler configuration so that the native linker is
24090 *** used, and then restart.
24091
24092 EOF
24093       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24094         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24095         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24096       else
24097         ld_shlibs_GCJ=no
24098       fi
24099       ;;
24100
24101     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24102       case `$LD -v 2>&1` in
24103         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24104         ld_shlibs_GCJ=no
24105         cat <<_LT_EOF 1>&2
24106
24107 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24108 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24109 *** is disabling shared libraries support.  We urge you to upgrade GNU
24110 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24111 *** your PATH or compiler configuration so that the native linker is
24112 *** used, and then restart.
24113
24114 _LT_EOF
24115         ;;
24116         *)
24117           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24118             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24119             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24120             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24121           else
24122             ld_shlibs_GCJ=no
24123           fi
24124         ;;
24125       esac
24126       ;;
24127
24128     sunos4*)
24129       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24130       wlarc=
24131       hardcode_direct_GCJ=yes
24132       hardcode_shlibpath_var_GCJ=no
24133       ;;
24134
24135     *)
24136       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24137         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24138         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24139       else
24140         ld_shlibs_GCJ=no
24141       fi
24142       ;;
24143     esac
24144
24145     if test "$ld_shlibs_GCJ" = no; then
24146       runpath_var=
24147       hardcode_libdir_flag_spec_GCJ=
24148       export_dynamic_flag_spec_GCJ=
24149       whole_archive_flag_spec_GCJ=
24150     fi
24151   else
24152     # PORTME fill in a description of your system's linker (not GNU ld)
24153     case $host_os in
24154     aix3*)
24155       allow_undefined_flag_GCJ=unsupported
24156       always_export_symbols_GCJ=yes
24157       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'
24158       # Note: this linker hardcodes the directories in LIBPATH if there
24159       # are no directories specified by -L.
24160       hardcode_minus_L_GCJ=yes
24161       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24162         # Neither direct hardcoding nor static linking is supported with a
24163         # broken collect2.
24164         hardcode_direct_GCJ=unsupported
24165       fi
24166       ;;
24167
24168     aix4* | aix5*)
24169       if test "$host_cpu" = ia64; then
24170         # On IA64, the linker does run time linking by default, so we don't
24171         # have to do anything special.
24172         aix_use_runtimelinking=no
24173         exp_sym_flag='-Bexport'
24174         no_entry_flag=""
24175       else
24176         # If we're using GNU nm, then we don't want the "-C" option.
24177         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24178         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24179           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'
24180         else
24181           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'
24182         fi
24183         aix_use_runtimelinking=no
24184
24185         # Test if we are trying to use run time linking or normal
24186         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24187         # need to do runtime linking.
24188         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24189           for ld_flag in $LDFLAGS; do
24190           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24191             aix_use_runtimelinking=yes
24192             break
24193           fi
24194           done
24195           ;;
24196         esac
24197
24198         exp_sym_flag='-bexport'
24199         no_entry_flag='-bnoentry'
24200       fi
24201
24202       # When large executables or shared objects are built, AIX ld can
24203       # have problems creating the table of contents.  If linking a library
24204       # or program results in "error TOC overflow" add -mminimal-toc to
24205       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24206       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24207
24208       archive_cmds_GCJ=''
24209       hardcode_direct_GCJ=yes
24210       hardcode_libdir_separator_GCJ=':'
24211       link_all_deplibs_GCJ=yes
24212
24213       if test "$GCC" = yes; then
24214         case $host_os in aix4.[012]|aix4.[012].*)
24215         # We only want to do this on AIX 4.2 and lower, the check
24216         # below for broken collect2 doesn't work under 4.3+
24217           collect2name=`${CC} -print-prog-name=collect2`
24218           if test -f "$collect2name" && \
24219            strings "$collect2name" | grep resolve_lib_name >/dev/null
24220           then
24221           # We have reworked collect2
24222           hardcode_direct_GCJ=yes
24223           else
24224           # We have old collect2
24225           hardcode_direct_GCJ=unsupported
24226           # It fails to find uninstalled libraries when the uninstalled
24227           # path is not listed in the libpath.  Setting hardcode_minus_L
24228           # to unsupported forces relinking
24229           hardcode_minus_L_GCJ=yes
24230           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24231           hardcode_libdir_separator_GCJ=
24232           fi
24233           ;;
24234         esac
24235         shared_flag='-shared'
24236         if test "$aix_use_runtimelinking" = yes; then
24237           shared_flag="$shared_flag "'${wl}-G'
24238         fi
24239       else
24240         # not using gcc
24241         if test "$host_cpu" = ia64; then
24242         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24243         # chokes on -Wl,-G. The following line is correct:
24244           shared_flag='-G'
24245         else
24246           if test "$aix_use_runtimelinking" = yes; then
24247             shared_flag='${wl}-G'
24248           else
24249             shared_flag='${wl}-bM:SRE'
24250           fi
24251         fi
24252       fi
24253
24254       # It seems that -bexpall does not export symbols beginning with
24255       # underscore (_), so it is better to generate a list of symbols to export.
24256       always_export_symbols_GCJ=yes
24257       if test "$aix_use_runtimelinking" = yes; then
24258         # Warning - without using the other runtime loading flags (-brtl),
24259         # -berok will link without error, but may produce a broken library.
24260         allow_undefined_flag_GCJ='-berok'
24261        # Determine the default libpath from the value encoded in an empty executable.
24262        cat >conftest.$ac_ext <<_ACEOF
24263 /* confdefs.h.  */
24264 _ACEOF
24265 cat confdefs.h >>conftest.$ac_ext
24266 cat >>conftest.$ac_ext <<_ACEOF
24267 /* end confdefs.h.  */
24268
24269 int
24270 main ()
24271 {
24272
24273   ;
24274   return 0;
24275 }
24276 _ACEOF
24277 rm -f conftest.$ac_objext conftest$ac_exeext
24278 if { (ac_try="$ac_link"
24279 case "(($ac_try" in
24280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24281   *) ac_try_echo=$ac_try;;
24282 esac
24283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24284   (eval "$ac_link") 2>conftest.er1
24285   ac_status=$?
24286   grep -v '^ *+' conftest.er1 >conftest.err
24287   rm -f conftest.er1
24288   cat conftest.err >&5
24289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290   (exit $ac_status); } &&
24291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24292   { (case "(($ac_try" in
24293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294   *) ac_try_echo=$ac_try;;
24295 esac
24296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297   (eval "$ac_try") 2>&5
24298   ac_status=$?
24299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300   (exit $ac_status); }; } &&
24301          { ac_try='test -s conftest$ac_exeext'
24302   { (case "(($ac_try" in
24303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24304   *) ac_try_echo=$ac_try;;
24305 esac
24306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24307   (eval "$ac_try") 2>&5
24308   ac_status=$?
24309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310   (exit $ac_status); }; }; then
24311
24312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24313 }'`
24314 # Check for a 64-bit object if we didn't find anything.
24315 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; }
24316 }'`; fi
24317 else
24318   echo "$as_me: failed program was:" >&5
24319 sed 's/^/| /' conftest.$ac_ext >&5
24320
24321
24322 fi
24323
24324 rm -f core conftest.err conftest.$ac_objext \
24325       conftest$ac_exeext conftest.$ac_ext
24326 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24327
24328        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24329         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"
24330        else
24331         if test "$host_cpu" = ia64; then
24332           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24333           allow_undefined_flag_GCJ="-z nodefs"
24334           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"
24335         else
24336          # Determine the default libpath from the value encoded in an empty executable.
24337          cat >conftest.$ac_ext <<_ACEOF
24338 /* confdefs.h.  */
24339 _ACEOF
24340 cat confdefs.h >>conftest.$ac_ext
24341 cat >>conftest.$ac_ext <<_ACEOF
24342 /* end confdefs.h.  */
24343
24344 int
24345 main ()
24346 {
24347
24348   ;
24349   return 0;
24350 }
24351 _ACEOF
24352 rm -f conftest.$ac_objext conftest$ac_exeext
24353 if { (ac_try="$ac_link"
24354 case "(($ac_try" in
24355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24356   *) ac_try_echo=$ac_try;;
24357 esac
24358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24359   (eval "$ac_link") 2>conftest.er1
24360   ac_status=$?
24361   grep -v '^ *+' conftest.er1 >conftest.err
24362   rm -f conftest.er1
24363   cat conftest.err >&5
24364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365   (exit $ac_status); } &&
24366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24367   { (case "(($ac_try" in
24368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369   *) ac_try_echo=$ac_try;;
24370 esac
24371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24372   (eval "$ac_try") 2>&5
24373   ac_status=$?
24374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375   (exit $ac_status); }; } &&
24376          { ac_try='test -s conftest$ac_exeext'
24377   { (case "(($ac_try" in
24378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24379   *) ac_try_echo=$ac_try;;
24380 esac
24381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24382   (eval "$ac_try") 2>&5
24383   ac_status=$?
24384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385   (exit $ac_status); }; }; then
24386
24387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24388 }'`
24389 # Check for a 64-bit object if we didn't find anything.
24390 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; }
24391 }'`; fi
24392 else
24393   echo "$as_me: failed program was:" >&5
24394 sed 's/^/| /' conftest.$ac_ext >&5
24395
24396
24397 fi
24398
24399 rm -f core conftest.err conftest.$ac_objext \
24400       conftest$ac_exeext conftest.$ac_ext
24401 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24402
24403          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24404           # Warning - without using the other run time loading flags,
24405           # -berok will link without error, but may produce a broken library.
24406           no_undefined_flag_GCJ=' ${wl}-bernotok'
24407           allow_undefined_flag_GCJ=' ${wl}-berok'
24408           # Exported symbols can be pulled into shared objects from archives
24409           whole_archive_flag_spec_GCJ='$convenience'
24410           archive_cmds_need_lc_GCJ=yes
24411           # This is similar to how AIX traditionally builds its shared libraries.
24412           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'
24413         fi
24414       fi
24415       ;;
24416
24417     amigaos*)
24418       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)'
24419       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24420       hardcode_minus_L_GCJ=yes
24421       # see comment about different semantics on the GNU ld section
24422       ld_shlibs_GCJ=no
24423       ;;
24424
24425     bsdi[45]*)
24426       export_dynamic_flag_spec_GCJ=-rdynamic
24427       ;;
24428
24429     cygwin* | mingw* | pw32*)
24430       # When not using gcc, we currently assume that we are using
24431       # Microsoft Visual C++.
24432       # hardcode_libdir_flag_spec is actually meaningless, as there is
24433       # no search path for DLLs.
24434       hardcode_libdir_flag_spec_GCJ=' '
24435       allow_undefined_flag_GCJ=unsupported
24436       # Tell ltmain to make .lib files, not .a files.
24437       libext=lib
24438       # Tell ltmain to make .dll files, not .so files.
24439       shrext_cmds=".dll"
24440       # FIXME: Setting linknames here is a bad hack.
24441       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24442       # The linker will automatically build a .lib file if we build a DLL.
24443       old_archive_From_new_cmds_GCJ='true'
24444       # FIXME: Should let the user specify the lib program.
24445       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24446       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24447       enable_shared_with_static_runtimes_GCJ=yes
24448       ;;
24449
24450     darwin* | rhapsody*)
24451       case $host_os in
24452         rhapsody* | darwin1.[012])
24453          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24454          ;;
24455        *) # Darwin 1.3 on
24456          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24457            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24458          else
24459            case ${MACOSX_DEPLOYMENT_TARGET} in
24460              10.[012])
24461                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24462                ;;
24463              10.*)
24464                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24465                ;;
24466            esac
24467          fi
24468          ;;
24469       esac
24470       archive_cmds_need_lc_GCJ=no
24471       hardcode_direct_GCJ=no
24472       hardcode_automatic_GCJ=yes
24473       hardcode_shlibpath_var_GCJ=unsupported
24474       whole_archive_flag_spec_GCJ=''
24475       link_all_deplibs_GCJ=yes
24476     if test "$GCC" = yes ; then
24477         output_verbose_link_cmd='echo'
24478         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24479       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24480       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24481       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}'
24482       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}'
24483     else
24484       case $cc_basename in
24485         xlc*)
24486          output_verbose_link_cmd='echo'
24487          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24488          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24489           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24490          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}'
24491           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}'
24492           ;;
24493        *)
24494          ld_shlibs_GCJ=no
24495           ;;
24496       esac
24497     fi
24498       ;;
24499
24500     dgux*)
24501       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24502       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24503       hardcode_shlibpath_var_GCJ=no
24504       ;;
24505
24506     freebsd1*)
24507       ld_shlibs_GCJ=no
24508       ;;
24509
24510     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24511     # support.  Future versions do this automatically, but an explicit c++rt0.o
24512     # does not break anything, and helps significantly (at the cost of a little
24513     # extra space).
24514     freebsd2.2*)
24515       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24516       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24517       hardcode_direct_GCJ=yes
24518       hardcode_shlibpath_var_GCJ=no
24519       ;;
24520
24521     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24522     freebsd2*)
24523       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24524       hardcode_direct_GCJ=yes
24525       hardcode_minus_L_GCJ=yes
24526       hardcode_shlibpath_var_GCJ=no
24527       ;;
24528
24529     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24530     freebsd* | kfreebsd*-gnu | dragonfly*)
24531       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24532       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24533       hardcode_direct_GCJ=yes
24534       hardcode_shlibpath_var_GCJ=no
24535       ;;
24536
24537     hpux9*)
24538       if test "$GCC" = yes; then
24539         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'
24540       else
24541         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'
24542       fi
24543       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24544       hardcode_libdir_separator_GCJ=:
24545       hardcode_direct_GCJ=yes
24546
24547       # hardcode_minus_L: Not really in the search PATH,
24548       # but as the default location of the library.
24549       hardcode_minus_L_GCJ=yes
24550       export_dynamic_flag_spec_GCJ='${wl}-E'
24551       ;;
24552
24553     hpux10*)
24554       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24555         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24556       else
24557         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24558       fi
24559       if test "$with_gnu_ld" = no; then
24560         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24561         hardcode_libdir_separator_GCJ=:
24562
24563         hardcode_direct_GCJ=yes
24564         export_dynamic_flag_spec_GCJ='${wl}-E'
24565
24566         # hardcode_minus_L: Not really in the search PATH,
24567         # but as the default location of the library.
24568         hardcode_minus_L_GCJ=yes
24569       fi
24570       ;;
24571
24572     hpux11*)
24573       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24574         case $host_cpu in
24575         hppa*64*)
24576           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24577           ;;
24578         ia64*)
24579           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24580           ;;
24581         *)
24582           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24583           ;;
24584         esac
24585       else
24586         case $host_cpu in
24587         hppa*64*)
24588           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24589           ;;
24590         ia64*)
24591           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24592           ;;
24593         *)
24594           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24595           ;;
24596         esac
24597       fi
24598       if test "$with_gnu_ld" = no; then
24599         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24600         hardcode_libdir_separator_GCJ=:
24601
24602         case $host_cpu in
24603         hppa*64*|ia64*)
24604           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24605           hardcode_direct_GCJ=no
24606           hardcode_shlibpath_var_GCJ=no
24607           ;;
24608         *)
24609           hardcode_direct_GCJ=yes
24610           export_dynamic_flag_spec_GCJ='${wl}-E'
24611
24612           # hardcode_minus_L: Not really in the search PATH,
24613           # but as the default location of the library.
24614           hardcode_minus_L_GCJ=yes
24615           ;;
24616         esac
24617       fi
24618       ;;
24619
24620     irix5* | irix6* | nonstopux*)
24621       if test "$GCC" = yes; then
24622         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'
24623       else
24624         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'
24625         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24626       fi
24627       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24628       hardcode_libdir_separator_GCJ=:
24629       link_all_deplibs_GCJ=yes
24630       ;;
24631
24632     netbsd*)
24633       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24634         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24635       else
24636         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24637       fi
24638       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24639       hardcode_direct_GCJ=yes
24640       hardcode_shlibpath_var_GCJ=no
24641       ;;
24642
24643     newsos6)
24644       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24645       hardcode_direct_GCJ=yes
24646       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24647       hardcode_libdir_separator_GCJ=:
24648       hardcode_shlibpath_var_GCJ=no
24649       ;;
24650
24651     openbsd*)
24652       hardcode_direct_GCJ=yes
24653       hardcode_shlibpath_var_GCJ=no
24654       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24655         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24656         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24657         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24658         export_dynamic_flag_spec_GCJ='${wl}-E'
24659       else
24660        case $host_os in
24661          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24662            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24663            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24664            ;;
24665          *)
24666            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24667            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24668            ;;
24669        esac
24670       fi
24671       ;;
24672
24673     os2*)
24674       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24675       hardcode_minus_L_GCJ=yes
24676       allow_undefined_flag_GCJ=unsupported
24677       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'
24678       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24679       ;;
24680
24681     osf3*)
24682       if test "$GCC" = yes; then
24683         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24684         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'
24685       else
24686         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24687         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'
24688       fi
24689       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24690       hardcode_libdir_separator_GCJ=:
24691       ;;
24692
24693     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24694       if test "$GCC" = yes; then
24695         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24696         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'
24697         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24698       else
24699         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24700         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'
24701         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~
24702         $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'
24703
24704         # Both c and cxx compiler support -rpath directly
24705         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24706       fi
24707       hardcode_libdir_separator_GCJ=:
24708       ;;
24709
24710     solaris*)
24711       no_undefined_flag_GCJ=' -z text'
24712       if test "$GCC" = yes; then
24713         wlarc='${wl}'
24714         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24715         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24716           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24717       else
24718         wlarc=''
24719         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24720         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24721         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24722       fi
24723       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24724       hardcode_shlibpath_var_GCJ=no
24725       case $host_os in
24726       solaris2.[0-5] | solaris2.[0-5].*) ;;
24727       *)
24728         # The compiler driver will combine linker options so we
24729         # cannot just pass the convience library names through
24730         # without $wl, iff we do not link with $LD.
24731         # Luckily, gcc supports the same syntax we need for Sun Studio.
24732         # Supported since Solaris 2.6 (maybe 2.5.1?)
24733         case $wlarc in
24734         '')
24735           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24736         *)
24737           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' ;;
24738         esac ;;
24739       esac
24740       link_all_deplibs_GCJ=yes
24741       ;;
24742
24743     sunos4*)
24744       if test "x$host_vendor" = xsequent; then
24745         # Use $CC to link under sequent, because it throws in some extra .o
24746         # files that make .init and .fini sections work.
24747         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24748       else
24749         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24750       fi
24751       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24752       hardcode_direct_GCJ=yes
24753       hardcode_minus_L_GCJ=yes
24754       hardcode_shlibpath_var_GCJ=no
24755       ;;
24756
24757     sysv4)
24758       case $host_vendor in
24759         sni)
24760           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24761           hardcode_direct_GCJ=yes # is this really true???
24762         ;;
24763         siemens)
24764           ## LD is ld it makes a PLAMLIB
24765           ## CC just makes a GrossModule.
24766           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24767           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24768           hardcode_direct_GCJ=no
24769         ;;
24770         motorola)
24771           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24772           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24773         ;;
24774       esac
24775       runpath_var='LD_RUN_PATH'
24776       hardcode_shlibpath_var_GCJ=no
24777       ;;
24778
24779     sysv4.3*)
24780       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24781       hardcode_shlibpath_var_GCJ=no
24782       export_dynamic_flag_spec_GCJ='-Bexport'
24783       ;;
24784
24785     sysv4*MP*)
24786       if test -d /usr/nec; then
24787         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24788         hardcode_shlibpath_var_GCJ=no
24789         runpath_var=LD_RUN_PATH
24790         hardcode_runpath_var=yes
24791         ld_shlibs_GCJ=yes
24792       fi
24793       ;;
24794
24795     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24796       no_undefined_flag_GCJ='${wl}-z,text'
24797       archive_cmds_need_lc_GCJ=no
24798       hardcode_shlibpath_var_GCJ=no
24799       runpath_var='LD_RUN_PATH'
24800
24801       if test "$GCC" = yes; then
24802         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24803         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24804       else
24805         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24806         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24807       fi
24808       ;;
24809
24810     sysv5* | sco3.2v5* | sco5v6*)
24811       # Note: We can NOT use -z defs as we might desire, because we do not
24812       # link with -lc, and that would cause any symbols used from libc to
24813       # always be unresolved, which means just about no library would
24814       # ever link correctly.  If we're not using GNU ld we use -z text
24815       # though, which does catch some bad symbols but isn't as heavy-handed
24816       # as -z defs.
24817       no_undefined_flag_GCJ='${wl}-z,text'
24818       allow_undefined_flag_GCJ='${wl}-z,nodefs'
24819       archive_cmds_need_lc_GCJ=no
24820       hardcode_shlibpath_var_GCJ=no
24821       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24822       hardcode_libdir_separator_GCJ=':'
24823       link_all_deplibs_GCJ=yes
24824       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24825       runpath_var='LD_RUN_PATH'
24826
24827       if test "$GCC" = yes; then
24828         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24829         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24830       else
24831         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24832         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24833       fi
24834       ;;
24835
24836     uts4*)
24837       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24838       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24839       hardcode_shlibpath_var_GCJ=no
24840       ;;
24841
24842     *)
24843       ld_shlibs_GCJ=no
24844       ;;
24845     esac
24846   fi
24847
24848 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24849 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24850 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24851
24852 #
24853 # Do we need to explicitly link libc?
24854 #
24855 case "x$archive_cmds_need_lc_GCJ" in
24856 x|xyes)
24857   # Assume -lc should be added
24858   archive_cmds_need_lc_GCJ=yes
24859
24860   if test "$enable_shared" = yes && test "$GCC" = yes; then
24861     case $archive_cmds_GCJ in
24862     *'~'*)
24863       # FIXME: we may have to deal with multi-command sequences.
24864       ;;
24865     '$CC '*)
24866       # Test whether the compiler implicitly links with -lc since on some
24867       # systems, -lgcc has to come before -lc. If gcc already passes -lc
24868       # to ld, don't add -lc before -lgcc.
24869       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24870 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24871       $rm conftest*
24872       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24873
24874       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24875   (eval $ac_compile) 2>&5
24876   ac_status=$?
24877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878   (exit $ac_status); } 2>conftest.err; then
24879         soname=conftest
24880         lib=conftest
24881         libobjs=conftest.$ac_objext
24882         deplibs=
24883         wl=$lt_prog_compiler_wl_GCJ
24884         pic_flag=$lt_prog_compiler_pic_GCJ
24885         compiler_flags=-v
24886         linker_flags=-v
24887         verstring=
24888         output_objdir=.
24889         libname=conftest
24890         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24891         allow_undefined_flag_GCJ=
24892         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24893   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24894   ac_status=$?
24895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896   (exit $ac_status); }
24897         then
24898           archive_cmds_need_lc_GCJ=no
24899         else
24900           archive_cmds_need_lc_GCJ=yes
24901         fi
24902         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24903       else
24904         cat conftest.err 1>&5
24905       fi
24906       $rm conftest*
24907       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24908 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24909       ;;
24910     esac
24911   fi
24912   ;;
24913 esac
24914
24915 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24916 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24917 library_names_spec=
24918 libname_spec='lib$name'
24919 soname_spec=
24920 shrext_cmds=".so"
24921 postinstall_cmds=
24922 postuninstall_cmds=
24923 finish_cmds=
24924 finish_eval=
24925 shlibpath_var=
24926 shlibpath_overrides_runpath=unknown
24927 version_type=none
24928 dynamic_linker="$host_os ld.so"
24929 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24930 if test "$GCC" = yes; then
24931   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24932   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24933     # if the path contains ";" then we assume it to be the separator
24934     # otherwise default to the standard path separator (i.e. ":") - it is
24935     # assumed that no part of a normal pathname contains ";" but that should
24936     # okay in the real world where ";" in dirpaths is itself problematic.
24937     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24938   else
24939     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24940   fi
24941 else
24942   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24943 fi
24944 need_lib_prefix=unknown
24945 hardcode_into_libs=no
24946
24947 # when you set need_version to no, make sure it does not cause -set_version
24948 # flags to be left without arguments
24949 need_version=unknown
24950
24951 case $host_os in
24952 aix3*)
24953   version_type=linux
24954   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24955   shlibpath_var=LIBPATH
24956
24957   # AIX 3 has no versioning support, so we append a major version to the name.
24958   soname_spec='${libname}${release}${shared_ext}$major'
24959   ;;
24960
24961 aix4* | aix5*)
24962   version_type=linux
24963   need_lib_prefix=no
24964   need_version=no
24965   hardcode_into_libs=yes
24966   if test "$host_cpu" = ia64; then
24967     # AIX 5 supports IA64
24968     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24969     shlibpath_var=LD_LIBRARY_PATH
24970   else
24971     # With GCC up to 2.95.x, collect2 would create an import file
24972     # for dependence libraries.  The import file would start with
24973     # the line `#! .'.  This would cause the generated library to
24974     # depend on `.', always an invalid library.  This was fixed in
24975     # development snapshots of GCC prior to 3.0.
24976     case $host_os in
24977       aix4 | aix4.[01] | aix4.[01].*)
24978       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24979            echo ' yes '
24980            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24981         :
24982       else
24983         can_build_shared=no
24984       fi
24985       ;;
24986     esac
24987     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24988     # soname into executable. Probably we can add versioning support to
24989     # collect2, so additional links can be useful in future.
24990     if test "$aix_use_runtimelinking" = yes; then
24991       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24992       # instead of lib<name>.a to let people know that these are not
24993       # typical AIX shared libraries.
24994       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24995     else
24996       # We preserve .a as extension for shared libraries through AIX4.2
24997       # and later when we are not doing run time linking.
24998       library_names_spec='${libname}${release}.a $libname.a'
24999       soname_spec='${libname}${release}${shared_ext}$major'
25000     fi
25001     shlibpath_var=LIBPATH
25002   fi
25003   ;;
25004
25005 amigaos*)
25006   library_names_spec='$libname.ixlibrary $libname.a'
25007   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25008   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'
25009   ;;
25010
25011 beos*)
25012   library_names_spec='${libname}${shared_ext}'
25013   dynamic_linker="$host_os ld.so"
25014   shlibpath_var=LIBRARY_PATH
25015   ;;
25016
25017 bsdi[45]*)
25018   version_type=linux
25019   need_version=no
25020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25021   soname_spec='${libname}${release}${shared_ext}$major'
25022   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25023   shlibpath_var=LD_LIBRARY_PATH
25024   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25025   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25026   # the default ld.so.conf also contains /usr/contrib/lib and
25027   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25028   # libtool to hard-code these into programs
25029   ;;
25030
25031 cygwin* | mingw* | pw32*)
25032   version_type=windows
25033   shrext_cmds=".dll"
25034   need_version=no
25035   need_lib_prefix=no
25036
25037   case $GCC,$host_os in
25038   yes,cygwin* | yes,mingw* | yes,pw32*)
25039     library_names_spec='$libname.dll.a'
25040     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25041     postinstall_cmds='base_file=`basename \${file}`~
25042       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25043       dldir=$destdir/`dirname \$dlpath`~
25044       test -d \$dldir || mkdir -p \$dldir~
25045       $install_prog $dir/$dlname \$dldir/$dlname~
25046       chmod a+x \$dldir/$dlname'
25047     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25048       dlpath=$dir/\$dldll~
25049        $rm \$dlpath'
25050     shlibpath_overrides_runpath=yes
25051
25052     case $host_os in
25053     cygwin*)
25054       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25055       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25056       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25057       ;;
25058     mingw*)
25059       # MinGW DLLs use traditional 'lib' prefix
25060       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25061       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25062       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25063         # It is most probably a Windows format PATH printed by
25064         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25065         # path with ; separators, and with drive letters. We can handle the
25066         # drive letters (cygwin fileutils understands them), so leave them,
25067         # especially as we might pass files found there to a mingw objdump,
25068         # which wouldn't understand a cygwinified path. Ahh.
25069         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25070       else
25071         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25072       fi
25073       ;;
25074     pw32*)
25075       # pw32 DLLs use 'pw' prefix rather than 'lib'
25076       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25077       ;;
25078     esac
25079     ;;
25080
25081   *)
25082     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25083     ;;
25084   esac
25085   dynamic_linker='Win32 ld.exe'
25086   # FIXME: first we should search . and the directory the executable is in
25087   shlibpath_var=PATH
25088   ;;
25089
25090 darwin* | rhapsody*)
25091   dynamic_linker="$host_os dyld"
25092   version_type=darwin
25093   need_lib_prefix=no
25094   need_version=no
25095   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25096   soname_spec='${libname}${release}${major}$shared_ext'
25097   shlibpath_overrides_runpath=yes
25098   shlibpath_var=DYLD_LIBRARY_PATH
25099   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25100   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25101   if test "$GCC" = yes; then
25102     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"`
25103   else
25104     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25105   fi
25106   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25107   ;;
25108
25109 dgux*)
25110   version_type=linux
25111   need_lib_prefix=no
25112   need_version=no
25113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25114   soname_spec='${libname}${release}${shared_ext}$major'
25115   shlibpath_var=LD_LIBRARY_PATH
25116   ;;
25117
25118 freebsd1*)
25119   dynamic_linker=no
25120   ;;
25121
25122 kfreebsd*-gnu)
25123   version_type=linux
25124   need_lib_prefix=no
25125   need_version=no
25126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25127   soname_spec='${libname}${release}${shared_ext}$major'
25128   shlibpath_var=LD_LIBRARY_PATH
25129   shlibpath_overrides_runpath=no
25130   hardcode_into_libs=yes
25131   dynamic_linker='GNU ld.so'
25132   ;;
25133
25134 freebsd* | dragonfly*)
25135   # DragonFly does not have aout.  When/if they implement a new
25136   # versioning mechanism, adjust this.
25137   if test -x /usr/bin/objformat; then
25138     objformat=`/usr/bin/objformat`
25139   else
25140     case $host_os in
25141     freebsd[123]*) objformat=aout ;;
25142     *) objformat=elf ;;
25143     esac
25144   fi
25145   version_type=freebsd-$objformat
25146   case $version_type in
25147     freebsd-elf*)
25148       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25149       need_version=no
25150       need_lib_prefix=no
25151       ;;
25152     freebsd-*)
25153       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25154       need_version=yes
25155       ;;
25156   esac
25157   shlibpath_var=LD_LIBRARY_PATH
25158   case $host_os in
25159   freebsd2*)
25160     shlibpath_overrides_runpath=yes
25161     ;;
25162   freebsd3.[01]* | freebsdelf3.[01]*)
25163     shlibpath_overrides_runpath=yes
25164     hardcode_into_libs=yes
25165     ;;
25166   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25167   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25168     shlibpath_overrides_runpath=no
25169     hardcode_into_libs=yes
25170     ;;
25171   freebsd*) # from 4.6 on
25172     shlibpath_overrides_runpath=yes
25173     hardcode_into_libs=yes
25174     ;;
25175   esac
25176   ;;
25177
25178 gnu*)
25179   version_type=linux
25180   need_lib_prefix=no
25181   need_version=no
25182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25183   soname_spec='${libname}${release}${shared_ext}$major'
25184   shlibpath_var=LD_LIBRARY_PATH
25185   hardcode_into_libs=yes
25186   ;;
25187
25188 hpux9* | hpux10* | hpux11*)
25189   # Give a soname corresponding to the major version so that dld.sl refuses to
25190   # link against other versions.
25191   version_type=sunos
25192   need_lib_prefix=no
25193   need_version=no
25194   case $host_cpu in
25195   ia64*)
25196     shrext_cmds='.so'
25197     hardcode_into_libs=yes
25198     dynamic_linker="$host_os dld.so"
25199     shlibpath_var=LD_LIBRARY_PATH
25200     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25201     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25202     soname_spec='${libname}${release}${shared_ext}$major'
25203     if test "X$HPUX_IA64_MODE" = X32; then
25204       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25205     else
25206       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25207     fi
25208     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25209     ;;
25210    hppa*64*)
25211      shrext_cmds='.sl'
25212      hardcode_into_libs=yes
25213      dynamic_linker="$host_os dld.sl"
25214      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25215      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25216      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25217      soname_spec='${libname}${release}${shared_ext}$major'
25218      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25219      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25220      ;;
25221    *)
25222     shrext_cmds='.sl'
25223     dynamic_linker="$host_os dld.sl"
25224     shlibpath_var=SHLIB_PATH
25225     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25226     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25227     soname_spec='${libname}${release}${shared_ext}$major'
25228     ;;
25229   esac
25230   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25231   postinstall_cmds='chmod 555 $lib'
25232   ;;
25233
25234 interix3*)
25235   version_type=linux
25236   need_lib_prefix=no
25237   need_version=no
25238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25239   soname_spec='${libname}${release}${shared_ext}$major'
25240   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25241   shlibpath_var=LD_LIBRARY_PATH
25242   shlibpath_overrides_runpath=no
25243   hardcode_into_libs=yes
25244   ;;
25245
25246 irix5* | irix6* | nonstopux*)
25247   case $host_os in
25248     nonstopux*) version_type=nonstopux ;;
25249     *)
25250         if test "$lt_cv_prog_gnu_ld" = yes; then
25251                 version_type=linux
25252         else
25253                 version_type=irix
25254         fi ;;
25255   esac
25256   need_lib_prefix=no
25257   need_version=no
25258   soname_spec='${libname}${release}${shared_ext}$major'
25259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25260   case $host_os in
25261   irix5* | nonstopux*)
25262     libsuff= shlibsuff=
25263     ;;
25264   *)
25265     case $LD in # libtool.m4 will add one of these switches to LD
25266     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25267       libsuff= shlibsuff= libmagic=32-bit;;
25268     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25269       libsuff=32 shlibsuff=N32 libmagic=N32;;
25270     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25271       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25272     *) libsuff= shlibsuff= libmagic=never-match;;
25273     esac
25274     ;;
25275   esac
25276   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25277   shlibpath_overrides_runpath=no
25278   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25279   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25280   hardcode_into_libs=yes
25281   ;;
25282
25283 # No shared lib support for Linux oldld, aout, or coff.
25284 linux*oldld* | linux*aout* | linux*coff*)
25285   dynamic_linker=no
25286   ;;
25287
25288 # This must be Linux ELF.
25289 linux*)
25290   version_type=linux
25291   need_lib_prefix=no
25292   need_version=no
25293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25294   soname_spec='${libname}${release}${shared_ext}$major'
25295   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25296   shlibpath_var=LD_LIBRARY_PATH
25297   shlibpath_overrides_runpath=no
25298   # This implies no fast_install, which is unacceptable.
25299   # Some rework will be needed to allow for fast_install
25300   # before this can be enabled.
25301   hardcode_into_libs=yes
25302
25303   # Append ld.so.conf contents to the search path
25304   if test -f /etc/ld.so.conf; then
25305     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' ' '`
25306     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25307   fi
25308
25309   # We used to test for /lib/ld.so.1 and disable shared libraries on
25310   # powerpc, because MkLinux only supported shared libraries with the
25311   # GNU dynamic linker.  Since this was broken with cross compilers,
25312   # most powerpc-linux boxes support dynamic linking these days and
25313   # people can always --disable-shared, the test was removed, and we
25314   # assume the GNU/Linux dynamic linker is in use.
25315   dynamic_linker='GNU/Linux ld.so'
25316   ;;
25317
25318 knetbsd*-gnu)
25319   version_type=linux
25320   need_lib_prefix=no
25321   need_version=no
25322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25323   soname_spec='${libname}${release}${shared_ext}$major'
25324   shlibpath_var=LD_LIBRARY_PATH
25325   shlibpath_overrides_runpath=no
25326   hardcode_into_libs=yes
25327   dynamic_linker='GNU ld.so'
25328   ;;
25329
25330 netbsd*)
25331   version_type=sunos
25332   need_lib_prefix=no
25333   need_version=no
25334   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25335     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25336     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25337     dynamic_linker='NetBSD (a.out) ld.so'
25338   else
25339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25340     soname_spec='${libname}${release}${shared_ext}$major'
25341     dynamic_linker='NetBSD ld.elf_so'
25342   fi
25343   shlibpath_var=LD_LIBRARY_PATH
25344   shlibpath_overrides_runpath=yes
25345   hardcode_into_libs=yes
25346   ;;
25347
25348 newsos6)
25349   version_type=linux
25350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25351   shlibpath_var=LD_LIBRARY_PATH
25352   shlibpath_overrides_runpath=yes
25353   ;;
25354
25355 nto-qnx*)
25356   version_type=linux
25357   need_lib_prefix=no
25358   need_version=no
25359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25360   soname_spec='${libname}${release}${shared_ext}$major'
25361   shlibpath_var=LD_LIBRARY_PATH
25362   shlibpath_overrides_runpath=yes
25363   ;;
25364
25365 openbsd*)
25366   version_type=sunos
25367   sys_lib_dlsearch_path_spec="/usr/lib"
25368   need_lib_prefix=no
25369   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25370   case $host_os in
25371     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25372     *)                         need_version=no  ;;
25373   esac
25374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25375   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25376   shlibpath_var=LD_LIBRARY_PATH
25377   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25378     case $host_os in
25379       openbsd2.[89] | openbsd2.[89].*)
25380         shlibpath_overrides_runpath=no
25381         ;;
25382       *)
25383         shlibpath_overrides_runpath=yes
25384         ;;
25385       esac
25386   else
25387     shlibpath_overrides_runpath=yes
25388   fi
25389   ;;
25390
25391 os2*)
25392   libname_spec='$name'
25393   shrext_cmds=".dll"
25394   need_lib_prefix=no
25395   library_names_spec='$libname${shared_ext} $libname.a'
25396   dynamic_linker='OS/2 ld.exe'
25397   shlibpath_var=LIBPATH
25398   ;;
25399
25400 osf3* | osf4* | osf5*)
25401   version_type=osf
25402   need_lib_prefix=no
25403   need_version=no
25404   soname_spec='${libname}${release}${shared_ext}$major'
25405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25406   shlibpath_var=LD_LIBRARY_PATH
25407   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25408   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25409   ;;
25410
25411 solaris*)
25412   version_type=linux
25413   need_lib_prefix=no
25414   need_version=no
25415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25416   soname_spec='${libname}${release}${shared_ext}$major'
25417   shlibpath_var=LD_LIBRARY_PATH
25418   shlibpath_overrides_runpath=yes
25419   hardcode_into_libs=yes
25420   # ldd complains unless libraries are executable
25421   postinstall_cmds='chmod +x $lib'
25422   ;;
25423
25424 sunos4*)
25425   version_type=sunos
25426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25427   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25428   shlibpath_var=LD_LIBRARY_PATH
25429   shlibpath_overrides_runpath=yes
25430   if test "$with_gnu_ld" = yes; then
25431     need_lib_prefix=no
25432   fi
25433   need_version=yes
25434   ;;
25435
25436 sysv4 | sysv4.3*)
25437   version_type=linux
25438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25439   soname_spec='${libname}${release}${shared_ext}$major'
25440   shlibpath_var=LD_LIBRARY_PATH
25441   case $host_vendor in
25442     sni)
25443       shlibpath_overrides_runpath=no
25444       need_lib_prefix=no
25445       export_dynamic_flag_spec='${wl}-Blargedynsym'
25446       runpath_var=LD_RUN_PATH
25447       ;;
25448     siemens)
25449       need_lib_prefix=no
25450       ;;
25451     motorola)
25452       need_lib_prefix=no
25453       need_version=no
25454       shlibpath_overrides_runpath=no
25455       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25456       ;;
25457   esac
25458   ;;
25459
25460 sysv4*MP*)
25461   if test -d /usr/nec ;then
25462     version_type=linux
25463     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25464     soname_spec='$libname${shared_ext}.$major'
25465     shlibpath_var=LD_LIBRARY_PATH
25466   fi
25467   ;;
25468
25469 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25470   version_type=freebsd-elf
25471   need_lib_prefix=no
25472   need_version=no
25473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25474   soname_spec='${libname}${release}${shared_ext}$major'
25475   shlibpath_var=LD_LIBRARY_PATH
25476   hardcode_into_libs=yes
25477   if test "$with_gnu_ld" = yes; then
25478     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25479     shlibpath_overrides_runpath=no
25480   else
25481     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25482     shlibpath_overrides_runpath=yes
25483     case $host_os in
25484       sco3.2v5*)
25485         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25486         ;;
25487     esac
25488   fi
25489   sys_lib_dlsearch_path_spec='/usr/lib'
25490   ;;
25491
25492 uts4*)
25493   version_type=linux
25494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25495   soname_spec='${libname}${release}${shared_ext}$major'
25496   shlibpath_var=LD_LIBRARY_PATH
25497   ;;
25498
25499 *)
25500   dynamic_linker=no
25501   ;;
25502 esac
25503 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25504 echo "${ECHO_T}$dynamic_linker" >&6; }
25505 test "$dynamic_linker" = no && can_build_shared=no
25506
25507 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25508 if test "$GCC" = yes; then
25509   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25510 fi
25511
25512 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25513 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25514 hardcode_action_GCJ=
25515 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25516    test -n "$runpath_var_GCJ" || \
25517    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25518
25519   # We can hardcode non-existant directories.
25520   if test "$hardcode_direct_GCJ" != no &&
25521      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25522      # have to relink, otherwise we might link with an installed library
25523      # when we should be linking with a yet-to-be-installed one
25524      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25525      test "$hardcode_minus_L_GCJ" != no; then
25526     # Linking always hardcodes the temporary library directory.
25527     hardcode_action_GCJ=relink
25528   else
25529     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25530     hardcode_action_GCJ=immediate
25531   fi
25532 else
25533   # We cannot hardcode anything, or else we can only hardcode existing
25534   # directories.
25535   hardcode_action_GCJ=unsupported
25536 fi
25537 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25538 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25539
25540 if test "$hardcode_action_GCJ" = relink; then
25541   # Fast installation is not supported
25542   enable_fast_install=no
25543 elif test "$shlibpath_overrides_runpath" = yes ||
25544      test "$enable_shared" = no; then
25545   # Fast installation is not necessary
25546   enable_fast_install=needless
25547 fi
25548
25549
25550 # The else clause should only fire when bootstrapping the
25551 # libtool distribution, otherwise you forgot to ship ltmain.sh
25552 # with your package, and you will get complaints that there are
25553 # no rules to generate ltmain.sh.
25554 if test -f "$ltmain"; then
25555   # See if we are running on zsh, and set the options which allow our commands through
25556   # without removal of \ escapes.
25557   if test -n "${ZSH_VERSION+set}" ; then
25558     setopt NO_GLOB_SUBST
25559   fi
25560   # Now quote all the things that may contain metacharacters while being
25561   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25562   # variables and quote the copies for generation of the libtool script.
25563   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25564     SED SHELL STRIP \
25565     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25566     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25567     deplibs_check_method reload_flag reload_cmds need_locks \
25568     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25569     lt_cv_sys_global_symbol_to_c_name_address \
25570     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25571     old_postinstall_cmds old_postuninstall_cmds \
25572     compiler_GCJ \
25573     CC_GCJ \
25574     LD_GCJ \
25575     lt_prog_compiler_wl_GCJ \
25576     lt_prog_compiler_pic_GCJ \
25577     lt_prog_compiler_static_GCJ \
25578     lt_prog_compiler_no_builtin_flag_GCJ \
25579     export_dynamic_flag_spec_GCJ \
25580     thread_safe_flag_spec_GCJ \
25581     whole_archive_flag_spec_GCJ \
25582     enable_shared_with_static_runtimes_GCJ \
25583     old_archive_cmds_GCJ \
25584     old_archive_from_new_cmds_GCJ \
25585     predep_objects_GCJ \
25586     postdep_objects_GCJ \
25587     predeps_GCJ \
25588     postdeps_GCJ \
25589     compiler_lib_search_path_GCJ \
25590     archive_cmds_GCJ \
25591     archive_expsym_cmds_GCJ \
25592     postinstall_cmds_GCJ \
25593     postuninstall_cmds_GCJ \
25594     old_archive_from_expsyms_cmds_GCJ \
25595     allow_undefined_flag_GCJ \
25596     no_undefined_flag_GCJ \
25597     export_symbols_cmds_GCJ \
25598     hardcode_libdir_flag_spec_GCJ \
25599     hardcode_libdir_flag_spec_ld_GCJ \
25600     hardcode_libdir_separator_GCJ \
25601     hardcode_automatic_GCJ \
25602     module_cmds_GCJ \
25603     module_expsym_cmds_GCJ \
25604     lt_cv_prog_compiler_c_o_GCJ \
25605     exclude_expsyms_GCJ \
25606     include_expsyms_GCJ; do
25607
25608     case $var in
25609     old_archive_cmds_GCJ | \
25610     old_archive_from_new_cmds_GCJ | \
25611     archive_cmds_GCJ | \
25612     archive_expsym_cmds_GCJ | \
25613     module_cmds_GCJ | \
25614     module_expsym_cmds_GCJ | \
25615     old_archive_from_expsyms_cmds_GCJ | \
25616     export_symbols_cmds_GCJ | \
25617     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25618     postinstall_cmds | postuninstall_cmds | \
25619     old_postinstall_cmds | old_postuninstall_cmds | \
25620     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25621       # Double-quote double-evaled strings.
25622       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25623       ;;
25624     *)
25625       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25626       ;;
25627     esac
25628   done
25629
25630   case $lt_echo in
25631   *'\$0 --fallback-echo"')
25632     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25633     ;;
25634   esac
25635
25636 cfgfile="$ofile"
25637
25638   cat <<__EOF__ >> "$cfgfile"
25639 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25640
25641 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25642
25643 # Shell to use when invoking shell scripts.
25644 SHELL=$lt_SHELL
25645
25646 # Whether or not to build shared libraries.
25647 build_libtool_libs=$enable_shared
25648
25649 # Whether or not to build static libraries.
25650 build_old_libs=$enable_static
25651
25652 # Whether or not to add -lc for building shared libraries.
25653 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25654
25655 # Whether or not to disallow shared libs when runtime libs are static
25656 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25657
25658 # Whether or not to optimize for fast installation.
25659 fast_install=$enable_fast_install
25660
25661 # The host system.
25662 host_alias=$host_alias
25663 host=$host
25664 host_os=$host_os
25665
25666 # The build system.
25667 build_alias=$build_alias
25668 build=$build
25669 build_os=$build_os
25670
25671 # An echo program that does not interpret backslashes.
25672 echo=$lt_echo
25673
25674 # The archiver.
25675 AR=$lt_AR
25676 AR_FLAGS=$lt_AR_FLAGS
25677
25678 # A C compiler.
25679 LTCC=$lt_LTCC
25680
25681 # LTCC compiler flags.
25682 LTCFLAGS=$lt_LTCFLAGS
25683
25684 # A language-specific compiler.
25685 CC=$lt_compiler_GCJ
25686
25687 # Is the compiler the GNU C compiler?
25688 with_gcc=$GCC_GCJ
25689
25690 # An ERE matcher.
25691 EGREP=$lt_EGREP
25692
25693 # The linker used to build libraries.
25694 LD=$lt_LD_GCJ
25695
25696 # Whether we need hard or soft links.
25697 LN_S=$lt_LN_S
25698
25699 # A BSD-compatible nm program.
25700 NM=$lt_NM
25701
25702 # A symbol stripping program
25703 STRIP=$lt_STRIP
25704
25705 # Used to examine libraries when file_magic_cmd begins "file"
25706 MAGIC_CMD=$MAGIC_CMD
25707
25708 # Used on cygwin: DLL creation program.
25709 DLLTOOL="$DLLTOOL"
25710
25711 # Used on cygwin: object dumper.
25712 OBJDUMP="$OBJDUMP"
25713
25714 # Used on cygwin: assembler.
25715 AS="$AS"
25716
25717 # The name of the directory that contains temporary libtool files.
25718 objdir=$objdir
25719
25720 # How to create reloadable object files.
25721 reload_flag=$lt_reload_flag
25722 reload_cmds=$lt_reload_cmds
25723
25724 # How to pass a linker flag through the compiler.
25725 wl=$lt_lt_prog_compiler_wl_GCJ
25726
25727 # Object file suffix (normally "o").
25728 objext="$ac_objext"
25729
25730 # Old archive suffix (normally "a").
25731 libext="$libext"
25732
25733 # Shared library suffix (normally ".so").
25734 shrext_cmds='$shrext_cmds'
25735
25736 # Executable file suffix (normally "").
25737 exeext="$exeext"
25738
25739 # Additional compiler flags for building library objects.
25740 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25741 pic_mode=$pic_mode
25742
25743 # What is the maximum length of a command?
25744 max_cmd_len=$lt_cv_sys_max_cmd_len
25745
25746 # Does compiler simultaneously support -c and -o options?
25747 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25748
25749 # Must we lock files when doing compilation?
25750 need_locks=$lt_need_locks
25751
25752 # Do we need the lib prefix for modules?
25753 need_lib_prefix=$need_lib_prefix
25754
25755 # Do we need a version for libraries?
25756 need_version=$need_version
25757
25758 # Whether dlopen is supported.
25759 dlopen_support=$enable_dlopen
25760
25761 # Whether dlopen of programs is supported.
25762 dlopen_self=$enable_dlopen_self
25763
25764 # Whether dlopen of statically linked programs is supported.
25765 dlopen_self_static=$enable_dlopen_self_static
25766
25767 # Compiler flag to prevent dynamic linking.
25768 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25769
25770 # Compiler flag to turn off builtin functions.
25771 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25772
25773 # Compiler flag to allow reflexive dlopens.
25774 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25775
25776 # Compiler flag to generate shared objects directly from archives.
25777 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25778
25779 # Compiler flag to generate thread-safe objects.
25780 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25781
25782 # Library versioning type.
25783 version_type=$version_type
25784
25785 # Format of library name prefix.
25786 libname_spec=$lt_libname_spec
25787
25788 # List of archive names.  First name is the real one, the rest are links.
25789 # The last name is the one that the linker finds with -lNAME.
25790 library_names_spec=$lt_library_names_spec
25791
25792 # The coded name of the library, if different from the real name.
25793 soname_spec=$lt_soname_spec
25794
25795 # Commands used to build and install an old-style archive.
25796 RANLIB=$lt_RANLIB
25797 old_archive_cmds=$lt_old_archive_cmds_GCJ
25798 old_postinstall_cmds=$lt_old_postinstall_cmds
25799 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25800
25801 # Create an old-style archive from a shared archive.
25802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25803
25804 # Create a temporary old-style archive to link instead of a shared archive.
25805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25806
25807 # Commands used to build and install a shared archive.
25808 archive_cmds=$lt_archive_cmds_GCJ
25809 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25810 postinstall_cmds=$lt_postinstall_cmds
25811 postuninstall_cmds=$lt_postuninstall_cmds
25812
25813 # Commands used to build a loadable module (assumed same as above if empty)
25814 module_cmds=$lt_module_cmds_GCJ
25815 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25816
25817 # Commands to strip libraries.
25818 old_striplib=$lt_old_striplib
25819 striplib=$lt_striplib
25820
25821 # Dependencies to place before the objects being linked to create a
25822 # shared library.
25823 predep_objects=$lt_predep_objects_GCJ
25824
25825 # Dependencies to place after the objects being linked to create a
25826 # shared library.
25827 postdep_objects=$lt_postdep_objects_GCJ
25828
25829 # Dependencies to place before the objects being linked to create a
25830 # shared library.
25831 predeps=$lt_predeps_GCJ
25832
25833 # Dependencies to place after the objects being linked to create a
25834 # shared library.
25835 postdeps=$lt_postdeps_GCJ
25836
25837 # The library search path used internally by the compiler when linking
25838 # a shared library.
25839 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25840
25841 # Method to check whether dependent libraries are shared objects.
25842 deplibs_check_method=$lt_deplibs_check_method
25843
25844 # Command to use when deplibs_check_method == file_magic.
25845 file_magic_cmd=$lt_file_magic_cmd
25846
25847 # Flag that allows shared libraries with undefined symbols to be built.
25848 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25849
25850 # Flag that forces no undefined symbols.
25851 no_undefined_flag=$lt_no_undefined_flag_GCJ
25852
25853 # Commands used to finish a libtool library installation in a directory.
25854 finish_cmds=$lt_finish_cmds
25855
25856 # Same as above, but a single script fragment to be evaled but not shown.
25857 finish_eval=$lt_finish_eval
25858
25859 # Take the output of nm and produce a listing of raw symbols and C names.
25860 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25861
25862 # Transform the output of nm in a proper C declaration
25863 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25864
25865 # Transform the output of nm in a C name address pair
25866 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25867
25868 # This is the shared library runtime path variable.
25869 runpath_var=$runpath_var
25870
25871 # This is the shared library path variable.
25872 shlibpath_var=$shlibpath_var
25873
25874 # Is shlibpath searched before the hard-coded library search path?
25875 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25876
25877 # How to hardcode a shared library path into an executable.
25878 hardcode_action=$hardcode_action_GCJ
25879
25880 # Whether we should hardcode library paths into libraries.
25881 hardcode_into_libs=$hardcode_into_libs
25882
25883 # Flag to hardcode \$libdir into a binary during linking.
25884 # This must work even if \$libdir does not exist.
25885 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25886
25887 # If ld is used when linking, flag to hardcode \$libdir into
25888 # a binary during linking. This must work even if \$libdir does
25889 # not exist.
25890 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25891
25892 # Whether we need a single -rpath flag with a separated argument.
25893 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25894
25895 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25896 # resulting binary.
25897 hardcode_direct=$hardcode_direct_GCJ
25898
25899 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25900 # resulting binary.
25901 hardcode_minus_L=$hardcode_minus_L_GCJ
25902
25903 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25904 # the resulting binary.
25905 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25906
25907 # Set to yes if building a shared library automatically hardcodes DIR into the library
25908 # and all subsequent libraries and executables linked against it.
25909 hardcode_automatic=$hardcode_automatic_GCJ
25910
25911 # Variables whose values should be saved in libtool wrapper scripts and
25912 # restored at relink time.
25913 variables_saved_for_relink="$variables_saved_for_relink"
25914
25915 # Whether libtool must link a program against all its dependency libraries.
25916 link_all_deplibs=$link_all_deplibs_GCJ
25917
25918 # Compile-time system search path for libraries
25919 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25920
25921 # Run-time system search path for libraries
25922 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25923
25924 # Fix the shell variable \$srcfile for the compiler.
25925 fix_srcfile_path="$fix_srcfile_path_GCJ"
25926
25927 # Set to yes if exported symbols are required.
25928 always_export_symbols=$always_export_symbols_GCJ
25929
25930 # The commands to list exported symbols.
25931 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25932
25933 # The commands to extract the exported symbol list from a shared archive.
25934 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25935
25936 # Symbols that should not be listed in the preloaded symbols.
25937 exclude_expsyms=$lt_exclude_expsyms_GCJ
25938
25939 # Symbols that must always be exported.
25940 include_expsyms=$lt_include_expsyms_GCJ
25941
25942 # ### END LIBTOOL TAG CONFIG: $tagname
25943
25944 __EOF__
25945
25946
25947 else
25948   # If there is no Makefile yet, we rely on a make rule to execute
25949   # `config.status --recheck' to rerun these tests and create the
25950   # libtool script then.
25951   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25952   if test -f "$ltmain_in"; then
25953     test -f Makefile && make "$ltmain"
25954   fi
25955 fi
25956
25957
25958 ac_ext=c
25959 ac_cpp='$CPP $CPPFLAGS'
25960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25963
25964 CC="$lt_save_CC"
25965
25966         else
25967           tagname=""
25968         fi
25969         ;;
25970
25971       RC)
25972         ac_ext=c
25973 ac_cpp='$CPP $CPPFLAGS'
25974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25977
25978
25979 # Source file extension for RC test sources.
25980 ac_ext=rc
25981
25982 # Object file extension for compiled RC test sources.
25983 objext=o
25984 objext_RC=$objext
25985
25986 # Code to be used in simple compile tests
25987 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25988
25989 # Code to be used in simple link tests
25990 lt_simple_link_test_code="$lt_simple_compile_test_code"
25991
25992 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25993
25994 # If no C compiler was specified, use CC.
25995 LTCC=${LTCC-"$CC"}
25996
25997 # If no C compiler flags were specified, use CFLAGS.
25998 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25999
26000 # Allow CC to be a program name with arguments.
26001 compiler=$CC
26002
26003
26004 # save warnings/boilerplate of simple test code
26005 ac_outfile=conftest.$ac_objext
26006 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26007 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26008 _lt_compiler_boilerplate=`cat conftest.err`
26009 $rm conftest*
26010
26011 ac_outfile=conftest.$ac_objext
26012 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26013 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26014 _lt_linker_boilerplate=`cat conftest.err`
26015 $rm conftest*
26016
26017
26018 # Allow CC to be a program name with arguments.
26019 lt_save_CC="$CC"
26020 CC=${RC-"windres"}
26021 compiler=$CC
26022 compiler_RC=$CC
26023 for cc_temp in $compiler""; do
26024   case $cc_temp in
26025     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26026     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26027     \-*) ;;
26028     *) break;;
26029   esac
26030 done
26031 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26032
26033 lt_cv_prog_compiler_c_o_RC=yes
26034
26035 # The else clause should only fire when bootstrapping the
26036 # libtool distribution, otherwise you forgot to ship ltmain.sh
26037 # with your package, and you will get complaints that there are
26038 # no rules to generate ltmain.sh.
26039 if test -f "$ltmain"; then
26040   # See if we are running on zsh, and set the options which allow our commands through
26041   # without removal of \ escapes.
26042   if test -n "${ZSH_VERSION+set}" ; then
26043     setopt NO_GLOB_SUBST
26044   fi
26045   # Now quote all the things that may contain metacharacters while being
26046   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26047   # variables and quote the copies for generation of the libtool script.
26048   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26049     SED SHELL STRIP \
26050     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26051     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26052     deplibs_check_method reload_flag reload_cmds need_locks \
26053     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26054     lt_cv_sys_global_symbol_to_c_name_address \
26055     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26056     old_postinstall_cmds old_postuninstall_cmds \
26057     compiler_RC \
26058     CC_RC \
26059     LD_RC \
26060     lt_prog_compiler_wl_RC \
26061     lt_prog_compiler_pic_RC \
26062     lt_prog_compiler_static_RC \
26063     lt_prog_compiler_no_builtin_flag_RC \
26064     export_dynamic_flag_spec_RC \
26065     thread_safe_flag_spec_RC \
26066     whole_archive_flag_spec_RC \
26067     enable_shared_with_static_runtimes_RC \
26068     old_archive_cmds_RC \
26069     old_archive_from_new_cmds_RC \
26070     predep_objects_RC \
26071     postdep_objects_RC \
26072     predeps_RC \
26073     postdeps_RC \
26074     compiler_lib_search_path_RC \
26075     archive_cmds_RC \
26076     archive_expsym_cmds_RC \
26077     postinstall_cmds_RC \
26078     postuninstall_cmds_RC \
26079     old_archive_from_expsyms_cmds_RC \
26080     allow_undefined_flag_RC \
26081     no_undefined_flag_RC \
26082     export_symbols_cmds_RC \
26083     hardcode_libdir_flag_spec_RC \
26084     hardcode_libdir_flag_spec_ld_RC \
26085     hardcode_libdir_separator_RC \
26086     hardcode_automatic_RC \
26087     module_cmds_RC \
26088     module_expsym_cmds_RC \
26089     lt_cv_prog_compiler_c_o_RC \
26090     exclude_expsyms_RC \
26091     include_expsyms_RC; do
26092
26093     case $var in
26094     old_archive_cmds_RC | \
26095     old_archive_from_new_cmds_RC | \
26096     archive_cmds_RC | \
26097     archive_expsym_cmds_RC | \
26098     module_cmds_RC | \
26099     module_expsym_cmds_RC | \
26100     old_archive_from_expsyms_cmds_RC | \
26101     export_symbols_cmds_RC | \
26102     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26103     postinstall_cmds | postuninstall_cmds | \
26104     old_postinstall_cmds | old_postuninstall_cmds | \
26105     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26106       # Double-quote double-evaled strings.
26107       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26108       ;;
26109     *)
26110       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26111       ;;
26112     esac
26113   done
26114
26115   case $lt_echo in
26116   *'\$0 --fallback-echo"')
26117     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26118     ;;
26119   esac
26120
26121 cfgfile="$ofile"
26122
26123   cat <<__EOF__ >> "$cfgfile"
26124 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26125
26126 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26127
26128 # Shell to use when invoking shell scripts.
26129 SHELL=$lt_SHELL
26130
26131 # Whether or not to build shared libraries.
26132 build_libtool_libs=$enable_shared
26133
26134 # Whether or not to build static libraries.
26135 build_old_libs=$enable_static
26136
26137 # Whether or not to add -lc for building shared libraries.
26138 build_libtool_need_lc=$archive_cmds_need_lc_RC
26139
26140 # Whether or not to disallow shared libs when runtime libs are static
26141 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26142
26143 # Whether or not to optimize for fast installation.
26144 fast_install=$enable_fast_install
26145
26146 # The host system.
26147 host_alias=$host_alias
26148 host=$host
26149 host_os=$host_os
26150
26151 # The build system.
26152 build_alias=$build_alias
26153 build=$build
26154 build_os=$build_os
26155
26156 # An echo program that does not interpret backslashes.
26157 echo=$lt_echo
26158
26159 # The archiver.
26160 AR=$lt_AR
26161 AR_FLAGS=$lt_AR_FLAGS
26162
26163 # A C compiler.
26164 LTCC=$lt_LTCC
26165
26166 # LTCC compiler flags.
26167 LTCFLAGS=$lt_LTCFLAGS
26168
26169 # A language-specific compiler.
26170 CC=$lt_compiler_RC
26171
26172 # Is the compiler the GNU C compiler?
26173 with_gcc=$GCC_RC
26174
26175 # An ERE matcher.
26176 EGREP=$lt_EGREP
26177
26178 # The linker used to build libraries.
26179 LD=$lt_LD_RC
26180
26181 # Whether we need hard or soft links.
26182 LN_S=$lt_LN_S
26183
26184 # A BSD-compatible nm program.
26185 NM=$lt_NM
26186
26187 # A symbol stripping program
26188 STRIP=$lt_STRIP
26189
26190 # Used to examine libraries when file_magic_cmd begins "file"
26191 MAGIC_CMD=$MAGIC_CMD
26192
26193 # Used on cygwin: DLL creation program.
26194 DLLTOOL="$DLLTOOL"
26195
26196 # Used on cygwin: object dumper.
26197 OBJDUMP="$OBJDUMP"
26198
26199 # Used on cygwin: assembler.
26200 AS="$AS"
26201
26202 # The name of the directory that contains temporary libtool files.
26203 objdir=$objdir
26204
26205 # How to create reloadable object files.
26206 reload_flag=$lt_reload_flag
26207 reload_cmds=$lt_reload_cmds
26208
26209 # How to pass a linker flag through the compiler.
26210 wl=$lt_lt_prog_compiler_wl_RC
26211
26212 # Object file suffix (normally "o").
26213 objext="$ac_objext"
26214
26215 # Old archive suffix (normally "a").
26216 libext="$libext"
26217
26218 # Shared library suffix (normally ".so").
26219 shrext_cmds='$shrext_cmds'
26220
26221 # Executable file suffix (normally "").
26222 exeext="$exeext"
26223
26224 # Additional compiler flags for building library objects.
26225 pic_flag=$lt_lt_prog_compiler_pic_RC
26226 pic_mode=$pic_mode
26227
26228 # What is the maximum length of a command?
26229 max_cmd_len=$lt_cv_sys_max_cmd_len
26230
26231 # Does compiler simultaneously support -c and -o options?
26232 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26233
26234 # Must we lock files when doing compilation?
26235 need_locks=$lt_need_locks
26236
26237 # Do we need the lib prefix for modules?
26238 need_lib_prefix=$need_lib_prefix
26239
26240 # Do we need a version for libraries?
26241 need_version=$need_version
26242
26243 # Whether dlopen is supported.
26244 dlopen_support=$enable_dlopen
26245
26246 # Whether dlopen of programs is supported.
26247 dlopen_self=$enable_dlopen_self
26248
26249 # Whether dlopen of statically linked programs is supported.
26250 dlopen_self_static=$enable_dlopen_self_static
26251
26252 # Compiler flag to prevent dynamic linking.
26253 link_static_flag=$lt_lt_prog_compiler_static_RC
26254
26255 # Compiler flag to turn off builtin functions.
26256 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26257
26258 # Compiler flag to allow reflexive dlopens.
26259 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26260
26261 # Compiler flag to generate shared objects directly from archives.
26262 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26263
26264 # Compiler flag to generate thread-safe objects.
26265 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26266
26267 # Library versioning type.
26268 version_type=$version_type
26269
26270 # Format of library name prefix.
26271 libname_spec=$lt_libname_spec
26272
26273 # List of archive names.  First name is the real one, the rest are links.
26274 # The last name is the one that the linker finds with -lNAME.
26275 library_names_spec=$lt_library_names_spec
26276
26277 # The coded name of the library, if different from the real name.
26278 soname_spec=$lt_soname_spec
26279
26280 # Commands used to build and install an old-style archive.
26281 RANLIB=$lt_RANLIB
26282 old_archive_cmds=$lt_old_archive_cmds_RC
26283 old_postinstall_cmds=$lt_old_postinstall_cmds
26284 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26285
26286 # Create an old-style archive from a shared archive.
26287 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26288
26289 # Create a temporary old-style archive to link instead of a shared archive.
26290 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26291
26292 # Commands used to build and install a shared archive.
26293 archive_cmds=$lt_archive_cmds_RC
26294 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26295 postinstall_cmds=$lt_postinstall_cmds
26296 postuninstall_cmds=$lt_postuninstall_cmds
26297
26298 # Commands used to build a loadable module (assumed same as above if empty)
26299 module_cmds=$lt_module_cmds_RC
26300 module_expsym_cmds=$lt_module_expsym_cmds_RC
26301
26302 # Commands to strip libraries.
26303 old_striplib=$lt_old_striplib
26304 striplib=$lt_striplib
26305
26306 # Dependencies to place before the objects being linked to create a
26307 # shared library.
26308 predep_objects=$lt_predep_objects_RC
26309
26310 # Dependencies to place after the objects being linked to create a
26311 # shared library.
26312 postdep_objects=$lt_postdep_objects_RC
26313
26314 # Dependencies to place before the objects being linked to create a
26315 # shared library.
26316 predeps=$lt_predeps_RC
26317
26318 # Dependencies to place after the objects being linked to create a
26319 # shared library.
26320 postdeps=$lt_postdeps_RC
26321
26322 # The library search path used internally by the compiler when linking
26323 # a shared library.
26324 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26325
26326 # Method to check whether dependent libraries are shared objects.
26327 deplibs_check_method=$lt_deplibs_check_method
26328
26329 # Command to use when deplibs_check_method == file_magic.
26330 file_magic_cmd=$lt_file_magic_cmd
26331
26332 # Flag that allows shared libraries with undefined symbols to be built.
26333 allow_undefined_flag=$lt_allow_undefined_flag_RC
26334
26335 # Flag that forces no undefined symbols.
26336 no_undefined_flag=$lt_no_undefined_flag_RC
26337
26338 # Commands used to finish a libtool library installation in a directory.
26339 finish_cmds=$lt_finish_cmds
26340
26341 # Same as above, but a single script fragment to be evaled but not shown.
26342 finish_eval=$lt_finish_eval
26343
26344 # Take the output of nm and produce a listing of raw symbols and C names.
26345 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26346
26347 # Transform the output of nm in a proper C declaration
26348 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26349
26350 # Transform the output of nm in a C name address pair
26351 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26352
26353 # This is the shared library runtime path variable.
26354 runpath_var=$runpath_var
26355
26356 # This is the shared library path variable.
26357 shlibpath_var=$shlibpath_var
26358
26359 # Is shlibpath searched before the hard-coded library search path?
26360 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26361
26362 # How to hardcode a shared library path into an executable.
26363 hardcode_action=$hardcode_action_RC
26364
26365 # Whether we should hardcode library paths into libraries.
26366 hardcode_into_libs=$hardcode_into_libs
26367
26368 # Flag to hardcode \$libdir into a binary during linking.
26369 # This must work even if \$libdir does not exist.
26370 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26371
26372 # If ld is used when linking, flag to hardcode \$libdir into
26373 # a binary during linking. This must work even if \$libdir does
26374 # not exist.
26375 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26376
26377 # Whether we need a single -rpath flag with a separated argument.
26378 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26379
26380 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26381 # resulting binary.
26382 hardcode_direct=$hardcode_direct_RC
26383
26384 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26385 # resulting binary.
26386 hardcode_minus_L=$hardcode_minus_L_RC
26387
26388 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26389 # the resulting binary.
26390 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26391
26392 # Set to yes if building a shared library automatically hardcodes DIR into the library
26393 # and all subsequent libraries and executables linked against it.
26394 hardcode_automatic=$hardcode_automatic_RC
26395
26396 # Variables whose values should be saved in libtool wrapper scripts and
26397 # restored at relink time.
26398 variables_saved_for_relink="$variables_saved_for_relink"
26399
26400 # Whether libtool must link a program against all its dependency libraries.
26401 link_all_deplibs=$link_all_deplibs_RC
26402
26403 # Compile-time system search path for libraries
26404 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26405
26406 # Run-time system search path for libraries
26407 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26408
26409 # Fix the shell variable \$srcfile for the compiler.
26410 fix_srcfile_path="$fix_srcfile_path_RC"
26411
26412 # Set to yes if exported symbols are required.
26413 always_export_symbols=$always_export_symbols_RC
26414
26415 # The commands to list exported symbols.
26416 export_symbols_cmds=$lt_export_symbols_cmds_RC
26417
26418 # The commands to extract the exported symbol list from a shared archive.
26419 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26420
26421 # Symbols that should not be listed in the preloaded symbols.
26422 exclude_expsyms=$lt_exclude_expsyms_RC
26423
26424 # Symbols that must always be exported.
26425 include_expsyms=$lt_include_expsyms_RC
26426
26427 # ### END LIBTOOL TAG CONFIG: $tagname
26428
26429 __EOF__
26430
26431
26432 else
26433   # If there is no Makefile yet, we rely on a make rule to execute
26434   # `config.status --recheck' to rerun these tests and create the
26435   # libtool script then.
26436   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26437   if test -f "$ltmain_in"; then
26438     test -f Makefile && make "$ltmain"
26439   fi
26440 fi
26441
26442
26443 ac_ext=c
26444 ac_cpp='$CPP $CPPFLAGS'
26445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26448
26449 CC="$lt_save_CC"
26450
26451         ;;
26452
26453       *)
26454         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26455 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26456    { (exit 1); exit 1; }; }
26457         ;;
26458       esac
26459
26460       # Append the new tag name to the list of available tags.
26461       if test -n "$tagname" ; then
26462       available_tags="$available_tags $tagname"
26463     fi
26464     fi
26465   done
26466   IFS="$lt_save_ifs"
26467
26468   # Now substitute the updated list of available tags.
26469   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26470     mv "${ofile}T" "$ofile"
26471     chmod +x "$ofile"
26472   else
26473     rm -f "${ofile}T"
26474     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26475 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26476    { (exit 1); exit 1; }; }
26477   fi
26478 fi
26479
26480
26481
26482 # This can be used to rebuild libtool when needed
26483 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26484
26485 # Always use our own libtool.
26486 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26487
26488 # Prevent multiple expansion
26489
26490
26491
26492
26493
26494
26495
26496
26497
26498
26499
26500
26501
26502
26503
26504
26505
26506
26507
26508
26509
26510 if test "$lt_cv_dlopen_self" = "yes" ; then
26511
26512 cat >>confdefs.h <<\_ACEOF
26513 #define CAN_DLOPEN_SELF 1
26514 _ACEOF
26515
26516 fi
26517
26518 etags_version=`$ETAGS --version 2>&1`
26519 case "$etags_version" in
26520         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26521         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26522         *) ETAGSFLAGS="" ;;
26523 esac
26524 ETAGSFLAGS=$ETAGSFLAGS
26525
26526
26527 if test "$WITH_LLVMGCCDIR" = "default" ; then
26528   LLVMGCC="llvm-gcc${EXEEXT}"
26529   LLVMGXX="llvm-g++${EXEEXT}"
26530   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26531 set dummy $LLVMGCC; ac_word=$2
26532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26534 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26535   echo $ECHO_N "(cached) $ECHO_C" >&6
26536 else
26537   case $LLVMGCC in
26538   [\\/]* | ?:[\\/]*)
26539   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26540   ;;
26541   *)
26542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26543 for as_dir in $PATH
26544 do
26545   IFS=$as_save_IFS
26546   test -z "$as_dir" && as_dir=.
26547   for ac_exec_ext in '' $ac_executable_extensions; do
26548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26549     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26551     break 2
26552   fi
26553 done
26554 done
26555 IFS=$as_save_IFS
26556
26557   ;;
26558 esac
26559 fi
26560 LLVMGCC=$ac_cv_path_LLVMGCC
26561 if test -n "$LLVMGCC"; then
26562   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26563 echo "${ECHO_T}$LLVMGCC" >&6; }
26564 else
26565   { echo "$as_me:$LINENO: result: no" >&5
26566 echo "${ECHO_T}no" >&6; }
26567 fi
26568
26569
26570   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26571 set dummy $LLVMGXX; ac_word=$2
26572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26574 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26575   echo $ECHO_N "(cached) $ECHO_C" >&6
26576 else
26577   case $LLVMGXX in
26578   [\\/]* | ?:[\\/]*)
26579   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26580   ;;
26581   *)
26582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26583 for as_dir in $PATH
26584 do
26585   IFS=$as_save_IFS
26586   test -z "$as_dir" && as_dir=.
26587   for ac_exec_ext in '' $ac_executable_extensions; do
26588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26589     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26591     break 2
26592   fi
26593 done
26594 done
26595 IFS=$as_save_IFS
26596
26597   ;;
26598 esac
26599 fi
26600 LLVMGXX=$ac_cv_path_LLVMGXX
26601 if test -n "$LLVMGXX"; then
26602   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26603 echo "${ECHO_T}$LLVMGXX" >&6; }
26604 else
26605   { echo "$as_me:$LINENO: result: no" >&5
26606 echo "${ECHO_T}no" >&6; }
26607 fi
26608
26609
26610 else
26611   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26612   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26613   LLVMGCC=$LLVMGCC
26614
26615   LLVMGXX=$LLVMGXX
26616
26617 fi
26618
26619 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26620 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26621
26622 ICC=no
26623 IXX=no
26624 case $CC in
26625   icc*|icpc*)
26626     ICC=yes
26627     IXX=yes
26628     ;;
26629    *)
26630     ;;
26631 esac
26632
26633 if test "$GCC" != "yes" && test "$ICC" != "yes"
26634 then
26635   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26636 echo "$as_me: error: gcc|icc required but not found" >&2;}
26637    { (exit 1); exit 1; }; }
26638 fi
26639
26640 if test "$GXX" != "yes" && test "$IXX" != "yes"
26641 then
26642   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26643 echo "$as_me: error: g++|icc required but not found" >&2;}
26644    { (exit 1); exit 1; }; }
26645 fi
26646
26647 if test "$GCC" = "yes"
26648 then
26649   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26650   if test "$gccmajor" -lt "3"
26651   then
26652     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26653 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26654    { (exit 1); exit 1; }; }
26655   fi
26656 fi
26657
26658 if test -z "$llvm_cv_gnu_make_command"
26659 then
26660   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26661 echo "$as_me: error: GNU Make required but not found" >&2;}
26662    { (exit 1); exit 1; }; }
26663 fi
26664
26665 { echo "$as_me:$LINENO: result: ok" >&5
26666 echo "${ECHO_T}ok" >&6; }
26667
26668
26669
26670 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26671 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26672 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26673   echo $ECHO_N "(cached) $ECHO_C" >&6
26674 else
26675   ac_check_lib_save_LIBS=$LIBS
26676 LIBS="-lelf  $LIBS"
26677 cat >conftest.$ac_ext <<_ACEOF
26678 /* confdefs.h.  */
26679 _ACEOF
26680 cat confdefs.h >>conftest.$ac_ext
26681 cat >>conftest.$ac_ext <<_ACEOF
26682 /* end confdefs.h.  */
26683
26684 /* Override any GCC internal prototype to avoid an error.
26685    Use char because int might match the return type of a GCC
26686    builtin and then its argument prototype would still apply.  */
26687 #ifdef __cplusplus
26688 extern "C"
26689 #endif
26690 char elf_begin ();
26691 int
26692 main ()
26693 {
26694 return elf_begin ();
26695   ;
26696   return 0;
26697 }
26698 _ACEOF
26699 rm -f conftest.$ac_objext conftest$ac_exeext
26700 if { (ac_try="$ac_link"
26701 case "(($ac_try" in
26702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26703   *) ac_try_echo=$ac_try;;
26704 esac
26705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26706   (eval "$ac_link") 2>conftest.er1
26707   ac_status=$?
26708   grep -v '^ *+' conftest.er1 >conftest.err
26709   rm -f conftest.er1
26710   cat conftest.err >&5
26711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712   (exit $ac_status); } &&
26713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26714   { (case "(($ac_try" in
26715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26716   *) ac_try_echo=$ac_try;;
26717 esac
26718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26719   (eval "$ac_try") 2>&5
26720   ac_status=$?
26721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722   (exit $ac_status); }; } &&
26723          { ac_try='test -s conftest$ac_exeext'
26724   { (case "(($ac_try" in
26725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26726   *) ac_try_echo=$ac_try;;
26727 esac
26728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26729   (eval "$ac_try") 2>&5
26730   ac_status=$?
26731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732   (exit $ac_status); }; }; then
26733   ac_cv_lib_elf_elf_begin=yes
26734 else
26735   echo "$as_me: failed program was:" >&5
26736 sed 's/^/| /' conftest.$ac_ext >&5
26737
26738         ac_cv_lib_elf_elf_begin=no
26739 fi
26740
26741 rm -f core conftest.err conftest.$ac_objext \
26742       conftest$ac_exeext conftest.$ac_ext
26743 LIBS=$ac_check_lib_save_LIBS
26744 fi
26745 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26746 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26747 if test $ac_cv_lib_elf_elf_begin = yes; then
26748   cat >>confdefs.h <<_ACEOF
26749 #define HAVE_LIBELF 1
26750 _ACEOF
26751
26752   LIBS="-lelf $LIBS"
26753
26754 fi
26755
26756
26757 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26758 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26759 if test "${ac_cv_lib_m_sin+set}" = set; then
26760   echo $ECHO_N "(cached) $ECHO_C" >&6
26761 else
26762   ac_check_lib_save_LIBS=$LIBS
26763 LIBS="-lm  $LIBS"
26764 cat >conftest.$ac_ext <<_ACEOF
26765 /* confdefs.h.  */
26766 _ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h.  */
26770
26771 /* Override any GCC internal prototype to avoid an error.
26772    Use char because int might match the return type of a GCC
26773    builtin and then its argument prototype would still apply.  */
26774 #ifdef __cplusplus
26775 extern "C"
26776 #endif
26777 char sin ();
26778 int
26779 main ()
26780 {
26781 return sin ();
26782   ;
26783   return 0;
26784 }
26785 _ACEOF
26786 rm -f conftest.$ac_objext conftest$ac_exeext
26787 if { (ac_try="$ac_link"
26788 case "(($ac_try" in
26789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26790   *) ac_try_echo=$ac_try;;
26791 esac
26792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26793   (eval "$ac_link") 2>conftest.er1
26794   ac_status=$?
26795   grep -v '^ *+' conftest.er1 >conftest.err
26796   rm -f conftest.er1
26797   cat conftest.err >&5
26798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799   (exit $ac_status); } &&
26800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26801   { (case "(($ac_try" in
26802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26803   *) ac_try_echo=$ac_try;;
26804 esac
26805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26806   (eval "$ac_try") 2>&5
26807   ac_status=$?
26808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809   (exit $ac_status); }; } &&
26810          { ac_try='test -s conftest$ac_exeext'
26811   { (case "(($ac_try" in
26812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26813   *) ac_try_echo=$ac_try;;
26814 esac
26815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26816   (eval "$ac_try") 2>&5
26817   ac_status=$?
26818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819   (exit $ac_status); }; }; then
26820   ac_cv_lib_m_sin=yes
26821 else
26822   echo "$as_me: failed program was:" >&5
26823 sed 's/^/| /' conftest.$ac_ext >&5
26824
26825         ac_cv_lib_m_sin=no
26826 fi
26827
26828 rm -f core conftest.err conftest.$ac_objext \
26829       conftest$ac_exeext conftest.$ac_ext
26830 LIBS=$ac_check_lib_save_LIBS
26831 fi
26832 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26833 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26834 if test $ac_cv_lib_m_sin = yes; then
26835   cat >>confdefs.h <<_ACEOF
26836 #define HAVE_LIBM 1
26837 _ACEOF
26838
26839   LIBS="-lm $LIBS"
26840
26841 fi
26842
26843 if test "$llvm_cv_os_type" == "MingW" ; then
26844
26845 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26846 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26847 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26848   echo $ECHO_N "(cached) $ECHO_C" >&6
26849 else
26850   ac_check_lib_save_LIBS=$LIBS
26851 LIBS="-limagehlp  $LIBS"
26852 cat >conftest.$ac_ext <<_ACEOF
26853 /* confdefs.h.  */
26854 _ACEOF
26855 cat confdefs.h >>conftest.$ac_ext
26856 cat >>conftest.$ac_ext <<_ACEOF
26857 /* end confdefs.h.  */
26858
26859
26860 int
26861 main ()
26862 {
26863 return main ();
26864   ;
26865   return 0;
26866 }
26867 _ACEOF
26868 rm -f conftest.$ac_objext conftest$ac_exeext
26869 if { (ac_try="$ac_link"
26870 case "(($ac_try" in
26871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26872   *) ac_try_echo=$ac_try;;
26873 esac
26874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26875   (eval "$ac_link") 2>conftest.er1
26876   ac_status=$?
26877   grep -v '^ *+' conftest.er1 >conftest.err
26878   rm -f conftest.er1
26879   cat conftest.err >&5
26880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881   (exit $ac_status); } &&
26882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26883   { (case "(($ac_try" in
26884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26885   *) ac_try_echo=$ac_try;;
26886 esac
26887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26888   (eval "$ac_try") 2>&5
26889   ac_status=$?
26890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891   (exit $ac_status); }; } &&
26892          { ac_try='test -s conftest$ac_exeext'
26893   { (case "(($ac_try" in
26894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26895   *) ac_try_echo=$ac_try;;
26896 esac
26897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26898   (eval "$ac_try") 2>&5
26899   ac_status=$?
26900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26901   (exit $ac_status); }; }; then
26902   ac_cv_lib_imagehlp_main=yes
26903 else
26904   echo "$as_me: failed program was:" >&5
26905 sed 's/^/| /' conftest.$ac_ext >&5
26906
26907         ac_cv_lib_imagehlp_main=no
26908 fi
26909
26910 rm -f core conftest.err conftest.$ac_objext \
26911       conftest$ac_exeext conftest.$ac_ext
26912 LIBS=$ac_check_lib_save_LIBS
26913 fi
26914 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26915 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26916 if test $ac_cv_lib_imagehlp_main = yes; then
26917   cat >>confdefs.h <<_ACEOF
26918 #define HAVE_LIBIMAGEHLP 1
26919 _ACEOF
26920
26921   LIBS="-limagehlp $LIBS"
26922
26923 fi
26924
26925
26926 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26927 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26928 if test "${ac_cv_lib_psapi_main+set}" = set; then
26929   echo $ECHO_N "(cached) $ECHO_C" >&6
26930 else
26931   ac_check_lib_save_LIBS=$LIBS
26932 LIBS="-lpsapi  $LIBS"
26933 cat >conftest.$ac_ext <<_ACEOF
26934 /* confdefs.h.  */
26935 _ACEOF
26936 cat confdefs.h >>conftest.$ac_ext
26937 cat >>conftest.$ac_ext <<_ACEOF
26938 /* end confdefs.h.  */
26939
26940
26941 int
26942 main ()
26943 {
26944 return main ();
26945   ;
26946   return 0;
26947 }
26948 _ACEOF
26949 rm -f conftest.$ac_objext conftest$ac_exeext
26950 if { (ac_try="$ac_link"
26951 case "(($ac_try" in
26952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953   *) ac_try_echo=$ac_try;;
26954 esac
26955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26956   (eval "$ac_link") 2>conftest.er1
26957   ac_status=$?
26958   grep -v '^ *+' conftest.er1 >conftest.err
26959   rm -f conftest.er1
26960   cat conftest.err >&5
26961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962   (exit $ac_status); } &&
26963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26964   { (case "(($ac_try" in
26965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26966   *) ac_try_echo=$ac_try;;
26967 esac
26968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26969   (eval "$ac_try") 2>&5
26970   ac_status=$?
26971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972   (exit $ac_status); }; } &&
26973          { ac_try='test -s conftest$ac_exeext'
26974   { (case "(($ac_try" in
26975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26976   *) ac_try_echo=$ac_try;;
26977 esac
26978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26979   (eval "$ac_try") 2>&5
26980   ac_status=$?
26981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982   (exit $ac_status); }; }; then
26983   ac_cv_lib_psapi_main=yes
26984 else
26985   echo "$as_me: failed program was:" >&5
26986 sed 's/^/| /' conftest.$ac_ext >&5
26987
26988         ac_cv_lib_psapi_main=no
26989 fi
26990
26991 rm -f core conftest.err conftest.$ac_objext \
26992       conftest$ac_exeext conftest.$ac_ext
26993 LIBS=$ac_check_lib_save_LIBS
26994 fi
26995 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26996 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
26997 if test $ac_cv_lib_psapi_main = yes; then
26998   cat >>confdefs.h <<_ACEOF
26999 #define HAVE_LIBPSAPI 1
27000 _ACEOF
27001
27002   LIBS="-lpsapi $LIBS"
27003
27004 fi
27005
27006 fi
27007
27008 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27009 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27010 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27011   echo $ECHO_N "(cached) $ECHO_C" >&6
27012 else
27013   ac_func_search_save_LIBS=$LIBS
27014 cat >conftest.$ac_ext <<_ACEOF
27015 /* confdefs.h.  */
27016 _ACEOF
27017 cat confdefs.h >>conftest.$ac_ext
27018 cat >>conftest.$ac_ext <<_ACEOF
27019 /* end confdefs.h.  */
27020
27021 /* Override any GCC internal prototype to avoid an error.
27022    Use char because int might match the return type of a GCC
27023    builtin and then its argument prototype would still apply.  */
27024 #ifdef __cplusplus
27025 extern "C"
27026 #endif
27027 char lt_dlopen ();
27028 int
27029 main ()
27030 {
27031 return lt_dlopen ();
27032   ;
27033   return 0;
27034 }
27035 _ACEOF
27036 for ac_lib in '' ltdl; do
27037   if test -z "$ac_lib"; then
27038     ac_res="none required"
27039   else
27040     ac_res=-l$ac_lib
27041     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27042   fi
27043   rm -f conftest.$ac_objext conftest$ac_exeext
27044 if { (ac_try="$ac_link"
27045 case "(($ac_try" in
27046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27047   *) ac_try_echo=$ac_try;;
27048 esac
27049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27050   (eval "$ac_link") 2>conftest.er1
27051   ac_status=$?
27052   grep -v '^ *+' conftest.er1 >conftest.err
27053   rm -f conftest.er1
27054   cat conftest.err >&5
27055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056   (exit $ac_status); } &&
27057          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27058   { (case "(($ac_try" in
27059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27060   *) ac_try_echo=$ac_try;;
27061 esac
27062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27063   (eval "$ac_try") 2>&5
27064   ac_status=$?
27065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066   (exit $ac_status); }; } &&
27067          { ac_try='test -s conftest$ac_exeext'
27068   { (case "(($ac_try" in
27069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27070   *) ac_try_echo=$ac_try;;
27071 esac
27072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27073   (eval "$ac_try") 2>&5
27074   ac_status=$?
27075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076   (exit $ac_status); }; }; then
27077   ac_cv_search_lt_dlopen=$ac_res
27078 else
27079   echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27081
27082
27083 fi
27084
27085 rm -f core conftest.err conftest.$ac_objext \
27086       conftest$ac_exeext
27087   if test "${ac_cv_search_lt_dlopen+set}" = set; then
27088   break
27089 fi
27090 done
27091 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27092   :
27093 else
27094   ac_cv_search_lt_dlopen=no
27095 fi
27096 rm conftest.$ac_ext
27097 LIBS=$ac_func_search_save_LIBS
27098 fi
27099 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27100 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27101 ac_res=$ac_cv_search_lt_dlopen
27102 if test "$ac_res" != no; then
27103   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27104
27105 cat >>confdefs.h <<\_ACEOF
27106 #define HAVE_LT_DLOPEN 1
27107 _ACEOF
27108
27109 else
27110   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27111                            not be available" >&5
27112 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27113                            not be available" >&2;}
27114 fi
27115
27116
27117 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27118 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27119 if test "${ac_cv_search_dlopen+set}" = set; then
27120   echo $ECHO_N "(cached) $ECHO_C" >&6
27121 else
27122   ac_func_search_save_LIBS=$LIBS
27123 cat >conftest.$ac_ext <<_ACEOF
27124 /* confdefs.h.  */
27125 _ACEOF
27126 cat confdefs.h >>conftest.$ac_ext
27127 cat >>conftest.$ac_ext <<_ACEOF
27128 /* end confdefs.h.  */
27129
27130 /* Override any GCC internal prototype to avoid an error.
27131    Use char because int might match the return type of a GCC
27132    builtin and then its argument prototype would still apply.  */
27133 #ifdef __cplusplus
27134 extern "C"
27135 #endif
27136 char dlopen ();
27137 int
27138 main ()
27139 {
27140 return dlopen ();
27141   ;
27142   return 0;
27143 }
27144 _ACEOF
27145 for ac_lib in '' dl; do
27146   if test -z "$ac_lib"; then
27147     ac_res="none required"
27148   else
27149     ac_res=-l$ac_lib
27150     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27151   fi
27152   rm -f conftest.$ac_objext conftest$ac_exeext
27153 if { (ac_try="$ac_link"
27154 case "(($ac_try" in
27155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27156   *) ac_try_echo=$ac_try;;
27157 esac
27158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27159   (eval "$ac_link") 2>conftest.er1
27160   ac_status=$?
27161   grep -v '^ *+' conftest.er1 >conftest.err
27162   rm -f conftest.er1
27163   cat conftest.err >&5
27164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165   (exit $ac_status); } &&
27166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27167   { (case "(($ac_try" in
27168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27169   *) ac_try_echo=$ac_try;;
27170 esac
27171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27172   (eval "$ac_try") 2>&5
27173   ac_status=$?
27174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175   (exit $ac_status); }; } &&
27176          { ac_try='test -s conftest$ac_exeext'
27177   { (case "(($ac_try" in
27178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27179   *) ac_try_echo=$ac_try;;
27180 esac
27181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27182   (eval "$ac_try") 2>&5
27183   ac_status=$?
27184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185   (exit $ac_status); }; }; then
27186   ac_cv_search_dlopen=$ac_res
27187 else
27188   echo "$as_me: failed program was:" >&5
27189 sed 's/^/| /' conftest.$ac_ext >&5
27190
27191
27192 fi
27193
27194 rm -f core conftest.err conftest.$ac_objext \
27195       conftest$ac_exeext
27196   if test "${ac_cv_search_dlopen+set}" = set; then
27197   break
27198 fi
27199 done
27200 if test "${ac_cv_search_dlopen+set}" = set; then
27201   :
27202 else
27203   ac_cv_search_dlopen=no
27204 fi
27205 rm conftest.$ac_ext
27206 LIBS=$ac_func_search_save_LIBS
27207 fi
27208 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27209 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27210 ac_res=$ac_cv_search_dlopen
27211 if test "$ac_res" != no; then
27212   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27213
27214 cat >>confdefs.h <<\_ACEOF
27215 #define HAVE_DLOPEN 1
27216 _ACEOF
27217
27218 else
27219   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27220 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27221 fi
27222
27223
27224 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27225 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27226 if test "${ac_cv_search_mallinfo+set}" = set; then
27227   echo $ECHO_N "(cached) $ECHO_C" >&6
27228 else
27229   ac_func_search_save_LIBS=$LIBS
27230 cat >conftest.$ac_ext <<_ACEOF
27231 /* confdefs.h.  */
27232 _ACEOF
27233 cat confdefs.h >>conftest.$ac_ext
27234 cat >>conftest.$ac_ext <<_ACEOF
27235 /* end confdefs.h.  */
27236
27237 /* Override any GCC internal prototype to avoid an error.
27238    Use char because int might match the return type of a GCC
27239    builtin and then its argument prototype would still apply.  */
27240 #ifdef __cplusplus
27241 extern "C"
27242 #endif
27243 char mallinfo ();
27244 int
27245 main ()
27246 {
27247 return mallinfo ();
27248   ;
27249   return 0;
27250 }
27251 _ACEOF
27252 for ac_lib in '' malloc; do
27253   if test -z "$ac_lib"; then
27254     ac_res="none required"
27255   else
27256     ac_res=-l$ac_lib
27257     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27258   fi
27259   rm -f conftest.$ac_objext conftest$ac_exeext
27260 if { (ac_try="$ac_link"
27261 case "(($ac_try" in
27262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27263   *) ac_try_echo=$ac_try;;
27264 esac
27265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27266   (eval "$ac_link") 2>conftest.er1
27267   ac_status=$?
27268   grep -v '^ *+' conftest.er1 >conftest.err
27269   rm -f conftest.er1
27270   cat conftest.err >&5
27271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272   (exit $ac_status); } &&
27273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27274   { (case "(($ac_try" in
27275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27276   *) ac_try_echo=$ac_try;;
27277 esac
27278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27279   (eval "$ac_try") 2>&5
27280   ac_status=$?
27281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282   (exit $ac_status); }; } &&
27283          { ac_try='test -s conftest$ac_exeext'
27284   { (case "(($ac_try" in
27285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27286   *) ac_try_echo=$ac_try;;
27287 esac
27288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27289   (eval "$ac_try") 2>&5
27290   ac_status=$?
27291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292   (exit $ac_status); }; }; then
27293   ac_cv_search_mallinfo=$ac_res
27294 else
27295   echo "$as_me: failed program was:" >&5
27296 sed 's/^/| /' conftest.$ac_ext >&5
27297
27298
27299 fi
27300
27301 rm -f core conftest.err conftest.$ac_objext \
27302       conftest$ac_exeext
27303   if test "${ac_cv_search_mallinfo+set}" = set; then
27304   break
27305 fi
27306 done
27307 if test "${ac_cv_search_mallinfo+set}" = set; then
27308   :
27309 else
27310   ac_cv_search_mallinfo=no
27311 fi
27312 rm conftest.$ac_ext
27313 LIBS=$ac_func_search_save_LIBS
27314 fi
27315 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27316 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27317 ac_res=$ac_cv_search_mallinfo
27318 if test "$ac_res" != no; then
27319   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27320
27321 cat >>confdefs.h <<\_ACEOF
27322 #define HAVE_MALLINFO 1
27323 _ACEOF
27324
27325 fi
27326
27327
27328 if test "$ENABLE_THREADS" -eq 1 ; then
27329
27330 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27331 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27332 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27333   echo $ECHO_N "(cached) $ECHO_C" >&6
27334 else
27335   ac_check_lib_save_LIBS=$LIBS
27336 LIBS="-lpthread  $LIBS"
27337 cat >conftest.$ac_ext <<_ACEOF
27338 /* confdefs.h.  */
27339 _ACEOF
27340 cat confdefs.h >>conftest.$ac_ext
27341 cat >>conftest.$ac_ext <<_ACEOF
27342 /* end confdefs.h.  */
27343
27344 /* Override any GCC internal prototype to avoid an error.
27345    Use char because int might match the return type of a GCC
27346    builtin and then its argument prototype would still apply.  */
27347 #ifdef __cplusplus
27348 extern "C"
27349 #endif
27350 char pthread_mutex_init ();
27351 int
27352 main ()
27353 {
27354 return pthread_mutex_init ();
27355   ;
27356   return 0;
27357 }
27358 _ACEOF
27359 rm -f conftest.$ac_objext conftest$ac_exeext
27360 if { (ac_try="$ac_link"
27361 case "(($ac_try" in
27362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27363   *) ac_try_echo=$ac_try;;
27364 esac
27365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27366   (eval "$ac_link") 2>conftest.er1
27367   ac_status=$?
27368   grep -v '^ *+' conftest.er1 >conftest.err
27369   rm -f conftest.er1
27370   cat conftest.err >&5
27371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372   (exit $ac_status); } &&
27373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27374   { (case "(($ac_try" in
27375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376   *) ac_try_echo=$ac_try;;
27377 esac
27378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379   (eval "$ac_try") 2>&5
27380   ac_status=$?
27381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382   (exit $ac_status); }; } &&
27383          { ac_try='test -s conftest$ac_exeext'
27384   { (case "(($ac_try" in
27385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27386   *) ac_try_echo=$ac_try;;
27387 esac
27388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27389   (eval "$ac_try") 2>&5
27390   ac_status=$?
27391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392   (exit $ac_status); }; }; then
27393   ac_cv_lib_pthread_pthread_mutex_init=yes
27394 else
27395   echo "$as_me: failed program was:" >&5
27396 sed 's/^/| /' conftest.$ac_ext >&5
27397
27398         ac_cv_lib_pthread_pthread_mutex_init=no
27399 fi
27400
27401 rm -f core conftest.err conftest.$ac_objext \
27402       conftest$ac_exeext conftest.$ac_ext
27403 LIBS=$ac_check_lib_save_LIBS
27404 fi
27405 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27406 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27407 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27408   cat >>confdefs.h <<_ACEOF
27409 #define HAVE_LIBPTHREAD 1
27410 _ACEOF
27411
27412   LIBS="-lpthread $LIBS"
27413
27414 fi
27415
27416   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27417 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27418 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27419   echo $ECHO_N "(cached) $ECHO_C" >&6
27420 else
27421   ac_func_search_save_LIBS=$LIBS
27422 cat >conftest.$ac_ext <<_ACEOF
27423 /* confdefs.h.  */
27424 _ACEOF
27425 cat confdefs.h >>conftest.$ac_ext
27426 cat >>conftest.$ac_ext <<_ACEOF
27427 /* end confdefs.h.  */
27428
27429 /* Override any GCC internal prototype to avoid an error.
27430    Use char because int might match the return type of a GCC
27431    builtin and then its argument prototype would still apply.  */
27432 #ifdef __cplusplus
27433 extern "C"
27434 #endif
27435 char pthread_mutex_lock ();
27436 int
27437 main ()
27438 {
27439 return pthread_mutex_lock ();
27440   ;
27441   return 0;
27442 }
27443 _ACEOF
27444 for ac_lib in '' pthread; do
27445   if test -z "$ac_lib"; then
27446     ac_res="none required"
27447   else
27448     ac_res=-l$ac_lib
27449     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27450   fi
27451   rm -f conftest.$ac_objext conftest$ac_exeext
27452 if { (ac_try="$ac_link"
27453 case "(($ac_try" in
27454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27455   *) ac_try_echo=$ac_try;;
27456 esac
27457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27458   (eval "$ac_link") 2>conftest.er1
27459   ac_status=$?
27460   grep -v '^ *+' conftest.er1 >conftest.err
27461   rm -f conftest.er1
27462   cat conftest.err >&5
27463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464   (exit $ac_status); } &&
27465          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27466   { (case "(($ac_try" in
27467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27468   *) ac_try_echo=$ac_try;;
27469 esac
27470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27471   (eval "$ac_try") 2>&5
27472   ac_status=$?
27473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474   (exit $ac_status); }; } &&
27475          { ac_try='test -s conftest$ac_exeext'
27476   { (case "(($ac_try" in
27477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27478   *) ac_try_echo=$ac_try;;
27479 esac
27480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27481   (eval "$ac_try") 2>&5
27482   ac_status=$?
27483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484   (exit $ac_status); }; }; then
27485   ac_cv_search_pthread_mutex_lock=$ac_res
27486 else
27487   echo "$as_me: failed program was:" >&5
27488 sed 's/^/| /' conftest.$ac_ext >&5
27489
27490
27491 fi
27492
27493 rm -f core conftest.err conftest.$ac_objext \
27494       conftest$ac_exeext
27495   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27496   break
27497 fi
27498 done
27499 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27500   :
27501 else
27502   ac_cv_search_pthread_mutex_lock=no
27503 fi
27504 rm conftest.$ac_ext
27505 LIBS=$ac_func_search_save_LIBS
27506 fi
27507 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27508 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27509 ac_res=$ac_cv_search_pthread_mutex_lock
27510 if test "$ac_res" != no; then
27511   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27512
27513 cat >>confdefs.h <<\_ACEOF
27514 #define HAVE_PTHREAD_MUTEX_LOCK 1
27515 _ACEOF
27516
27517 fi
27518
27519 fi
27520
27521
27522
27523
27524
27525
27526
27527 ac_header_dirent=no
27528 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27529   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27530 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27531 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27533   echo $ECHO_N "(cached) $ECHO_C" >&6
27534 else
27535   cat >conftest.$ac_ext <<_ACEOF
27536 /* confdefs.h.  */
27537 _ACEOF
27538 cat confdefs.h >>conftest.$ac_ext
27539 cat >>conftest.$ac_ext <<_ACEOF
27540 /* end confdefs.h.  */
27541 #include <sys/types.h>
27542 #include <$ac_hdr>
27543
27544 int
27545 main ()
27546 {
27547 if ((DIR *) 0)
27548 return 0;
27549   ;
27550   return 0;
27551 }
27552 _ACEOF
27553 rm -f conftest.$ac_objext
27554 if { (ac_try="$ac_compile"
27555 case "(($ac_try" in
27556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27557   *) ac_try_echo=$ac_try;;
27558 esac
27559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27560   (eval "$ac_compile") 2>conftest.er1
27561   ac_status=$?
27562   grep -v '^ *+' conftest.er1 >conftest.err
27563   rm -f conftest.er1
27564   cat conftest.err >&5
27565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566   (exit $ac_status); } &&
27567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27568   { (case "(($ac_try" in
27569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570   *) ac_try_echo=$ac_try;;
27571 esac
27572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573   (eval "$ac_try") 2>&5
27574   ac_status=$?
27575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576   (exit $ac_status); }; } &&
27577          { ac_try='test -s conftest.$ac_objext'
27578   { (case "(($ac_try" in
27579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27580   *) ac_try_echo=$ac_try;;
27581 esac
27582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27583   (eval "$ac_try") 2>&5
27584   ac_status=$?
27585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586   (exit $ac_status); }; }; then
27587   eval "$as_ac_Header=yes"
27588 else
27589   echo "$as_me: failed program was:" >&5
27590 sed 's/^/| /' conftest.$ac_ext >&5
27591
27592         eval "$as_ac_Header=no"
27593 fi
27594
27595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27596 fi
27597 ac_res=`eval echo '${'$as_ac_Header'}'`
27598                { echo "$as_me:$LINENO: result: $ac_res" >&5
27599 echo "${ECHO_T}$ac_res" >&6; }
27600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27601   cat >>confdefs.h <<_ACEOF
27602 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27603 _ACEOF
27604
27605 ac_header_dirent=$ac_hdr; break
27606 fi
27607
27608 done
27609 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27610 if test $ac_header_dirent = dirent.h; then
27611   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27612 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27613 if test "${ac_cv_search_opendir+set}" = set; then
27614   echo $ECHO_N "(cached) $ECHO_C" >&6
27615 else
27616   ac_func_search_save_LIBS=$LIBS
27617 cat >conftest.$ac_ext <<_ACEOF
27618 /* confdefs.h.  */
27619 _ACEOF
27620 cat confdefs.h >>conftest.$ac_ext
27621 cat >>conftest.$ac_ext <<_ACEOF
27622 /* end confdefs.h.  */
27623
27624 /* Override any GCC internal prototype to avoid an error.
27625    Use char because int might match the return type of a GCC
27626    builtin and then its argument prototype would still apply.  */
27627 #ifdef __cplusplus
27628 extern "C"
27629 #endif
27630 char opendir ();
27631 int
27632 main ()
27633 {
27634 return opendir ();
27635   ;
27636   return 0;
27637 }
27638 _ACEOF
27639 for ac_lib in '' dir; do
27640   if test -z "$ac_lib"; then
27641     ac_res="none required"
27642   else
27643     ac_res=-l$ac_lib
27644     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27645   fi
27646   rm -f conftest.$ac_objext conftest$ac_exeext
27647 if { (ac_try="$ac_link"
27648 case "(($ac_try" in
27649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650   *) ac_try_echo=$ac_try;;
27651 esac
27652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653   (eval "$ac_link") 2>conftest.er1
27654   ac_status=$?
27655   grep -v '^ *+' conftest.er1 >conftest.err
27656   rm -f conftest.er1
27657   cat conftest.err >&5
27658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659   (exit $ac_status); } &&
27660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27661   { (case "(($ac_try" in
27662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663   *) ac_try_echo=$ac_try;;
27664 esac
27665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666   (eval "$ac_try") 2>&5
27667   ac_status=$?
27668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669   (exit $ac_status); }; } &&
27670          { ac_try='test -s conftest$ac_exeext'
27671   { (case "(($ac_try" in
27672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27673   *) ac_try_echo=$ac_try;;
27674 esac
27675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27676   (eval "$ac_try") 2>&5
27677   ac_status=$?
27678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679   (exit $ac_status); }; }; then
27680   ac_cv_search_opendir=$ac_res
27681 else
27682   echo "$as_me: failed program was:" >&5
27683 sed 's/^/| /' conftest.$ac_ext >&5
27684
27685
27686 fi
27687
27688 rm -f core conftest.err conftest.$ac_objext \
27689       conftest$ac_exeext
27690   if test "${ac_cv_search_opendir+set}" = set; then
27691   break
27692 fi
27693 done
27694 if test "${ac_cv_search_opendir+set}" = set; then
27695   :
27696 else
27697   ac_cv_search_opendir=no
27698 fi
27699 rm conftest.$ac_ext
27700 LIBS=$ac_func_search_save_LIBS
27701 fi
27702 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27703 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27704 ac_res=$ac_cv_search_opendir
27705 if test "$ac_res" != no; then
27706   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27707
27708 fi
27709
27710 else
27711   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27712 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27713 if test "${ac_cv_search_opendir+set}" = set; then
27714   echo $ECHO_N "(cached) $ECHO_C" >&6
27715 else
27716   ac_func_search_save_LIBS=$LIBS
27717 cat >conftest.$ac_ext <<_ACEOF
27718 /* confdefs.h.  */
27719 _ACEOF
27720 cat confdefs.h >>conftest.$ac_ext
27721 cat >>conftest.$ac_ext <<_ACEOF
27722 /* end confdefs.h.  */
27723
27724 /* Override any GCC internal prototype to avoid an error.
27725    Use char because int might match the return type of a GCC
27726    builtin and then its argument prototype would still apply.  */
27727 #ifdef __cplusplus
27728 extern "C"
27729 #endif
27730 char opendir ();
27731 int
27732 main ()
27733 {
27734 return opendir ();
27735   ;
27736   return 0;
27737 }
27738 _ACEOF
27739 for ac_lib in '' x; do
27740   if test -z "$ac_lib"; then
27741     ac_res="none required"
27742   else
27743     ac_res=-l$ac_lib
27744     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27745   fi
27746   rm -f conftest.$ac_objext conftest$ac_exeext
27747 if { (ac_try="$ac_link"
27748 case "(($ac_try" in
27749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27750   *) ac_try_echo=$ac_try;;
27751 esac
27752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27753   (eval "$ac_link") 2>conftest.er1
27754   ac_status=$?
27755   grep -v '^ *+' conftest.er1 >conftest.err
27756   rm -f conftest.er1
27757   cat conftest.err >&5
27758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759   (exit $ac_status); } &&
27760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27761   { (case "(($ac_try" in
27762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763   *) ac_try_echo=$ac_try;;
27764 esac
27765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27766   (eval "$ac_try") 2>&5
27767   ac_status=$?
27768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769   (exit $ac_status); }; } &&
27770          { ac_try='test -s conftest$ac_exeext'
27771   { (case "(($ac_try" in
27772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27773   *) ac_try_echo=$ac_try;;
27774 esac
27775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27776   (eval "$ac_try") 2>&5
27777   ac_status=$?
27778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779   (exit $ac_status); }; }; then
27780   ac_cv_search_opendir=$ac_res
27781 else
27782   echo "$as_me: failed program was:" >&5
27783 sed 's/^/| /' conftest.$ac_ext >&5
27784
27785
27786 fi
27787
27788 rm -f core conftest.err conftest.$ac_objext \
27789       conftest$ac_exeext
27790   if test "${ac_cv_search_opendir+set}" = set; then
27791   break
27792 fi
27793 done
27794 if test "${ac_cv_search_opendir+set}" = set; then
27795   :
27796 else
27797   ac_cv_search_opendir=no
27798 fi
27799 rm conftest.$ac_ext
27800 LIBS=$ac_func_search_save_LIBS
27801 fi
27802 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27803 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27804 ac_res=$ac_cv_search_opendir
27805 if test "$ac_res" != no; then
27806   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27807
27808 fi
27809
27810 fi
27811
27812 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27813 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27814 if test "${ac_cv_header_mmap_anon+set}" = set; then
27815   echo $ECHO_N "(cached) $ECHO_C" >&6
27816 else
27817    ac_ext=c
27818 ac_cpp='$CPP $CPPFLAGS'
27819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27822
27823   cat >conftest.$ac_ext <<_ACEOF
27824 /* confdefs.h.  */
27825 _ACEOF
27826 cat confdefs.h >>conftest.$ac_ext
27827 cat >>conftest.$ac_ext <<_ACEOF
27828 /* end confdefs.h.  */
27829 #include <sys/mman.h>
27830 #include <unistd.h>
27831 #include <fcntl.h>
27832 int
27833 main ()
27834 {
27835 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27836   ;
27837   return 0;
27838 }
27839 _ACEOF
27840 rm -f conftest.$ac_objext
27841 if { (ac_try="$ac_compile"
27842 case "(($ac_try" in
27843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27844   *) ac_try_echo=$ac_try;;
27845 esac
27846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27847   (eval "$ac_compile") 2>conftest.er1
27848   ac_status=$?
27849   grep -v '^ *+' conftest.er1 >conftest.err
27850   rm -f conftest.er1
27851   cat conftest.err >&5
27852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853   (exit $ac_status); } &&
27854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27855   { (case "(($ac_try" in
27856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857   *) ac_try_echo=$ac_try;;
27858 esac
27859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27860   (eval "$ac_try") 2>&5
27861   ac_status=$?
27862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863   (exit $ac_status); }; } &&
27864          { ac_try='test -s conftest.$ac_objext'
27865   { (case "(($ac_try" in
27866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27867   *) ac_try_echo=$ac_try;;
27868 esac
27869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27870   (eval "$ac_try") 2>&5
27871   ac_status=$?
27872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27873   (exit $ac_status); }; }; then
27874   ac_cv_header_mmap_anon=yes
27875 else
27876   echo "$as_me: failed program was:" >&5
27877 sed 's/^/| /' conftest.$ac_ext >&5
27878
27879         ac_cv_header_mmap_anon=no
27880 fi
27881
27882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27883   ac_ext=c
27884 ac_cpp='$CPP $CPPFLAGS'
27885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27888
27889
27890 fi
27891 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27892 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27893 if test "$ac_cv_header_mmap_anon" = yes; then
27894
27895 cat >>confdefs.h <<\_ACEOF
27896 #define HAVE_MMAP_ANONYMOUS 1
27897 _ACEOF
27898
27899 fi
27900
27901 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27902 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27903 if test "${ac_cv_header_stat_broken+set}" = set; then
27904   echo $ECHO_N "(cached) $ECHO_C" >&6
27905 else
27906   cat >conftest.$ac_ext <<_ACEOF
27907 /* confdefs.h.  */
27908 _ACEOF
27909 cat confdefs.h >>conftest.$ac_ext
27910 cat >>conftest.$ac_ext <<_ACEOF
27911 /* end confdefs.h.  */
27912 #include <sys/types.h>
27913 #include <sys/stat.h>
27914
27915 #if defined S_ISBLK && defined S_IFDIR
27916 # if S_ISBLK (S_IFDIR)
27917 You lose.
27918 # endif
27919 #endif
27920
27921 #if defined S_ISBLK && defined S_IFCHR
27922 # if S_ISBLK (S_IFCHR)
27923 You lose.
27924 # endif
27925 #endif
27926
27927 #if defined S_ISLNK && defined S_IFREG
27928 # if S_ISLNK (S_IFREG)
27929 You lose.
27930 # endif
27931 #endif
27932
27933 #if defined S_ISSOCK && defined S_IFREG
27934 # if S_ISSOCK (S_IFREG)
27935 You lose.
27936 # endif
27937 #endif
27938
27939 _ACEOF
27940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27941   $EGREP "You lose" >/dev/null 2>&1; then
27942   ac_cv_header_stat_broken=yes
27943 else
27944   ac_cv_header_stat_broken=no
27945 fi
27946 rm -f conftest*
27947
27948 fi
27949 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27950 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27951 if test $ac_cv_header_stat_broken = yes; then
27952
27953 cat >>confdefs.h <<\_ACEOF
27954 #define STAT_MACROS_BROKEN 1
27955 _ACEOF
27956
27957 fi
27958
27959 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27960 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
27961 if test "${ac_cv_header_stdc+set}" = set; then
27962   echo $ECHO_N "(cached) $ECHO_C" >&6
27963 else
27964   cat >conftest.$ac_ext <<_ACEOF
27965 /* confdefs.h.  */
27966 _ACEOF
27967 cat confdefs.h >>conftest.$ac_ext
27968 cat >>conftest.$ac_ext <<_ACEOF
27969 /* end confdefs.h.  */
27970 #include <stdlib.h>
27971 #include <stdarg.h>
27972 #include <string.h>
27973 #include <float.h>
27974
27975 int
27976 main ()
27977 {
27978
27979   ;
27980   return 0;
27981 }
27982 _ACEOF
27983 rm -f conftest.$ac_objext
27984 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27991   ac_status=$?
27992   grep -v '^ *+' conftest.er1 >conftest.err
27993   rm -f conftest.er1
27994   cat conftest.err >&5
27995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996   (exit $ac_status); } &&
27997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27998   { (case "(($ac_try" in
27999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28000   *) ac_try_echo=$ac_try;;
28001 esac
28002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28003   (eval "$ac_try") 2>&5
28004   ac_status=$?
28005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006   (exit $ac_status); }; } &&
28007          { ac_try='test -s conftest.$ac_objext'
28008   { (case "(($ac_try" in
28009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28010   *) ac_try_echo=$ac_try;;
28011 esac
28012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28013   (eval "$ac_try") 2>&5
28014   ac_status=$?
28015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28016   (exit $ac_status); }; }; then
28017   ac_cv_header_stdc=yes
28018 else
28019   echo "$as_me: failed program was:" >&5
28020 sed 's/^/| /' conftest.$ac_ext >&5
28021
28022         ac_cv_header_stdc=no
28023 fi
28024
28025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28026
28027 if test $ac_cv_header_stdc = yes; then
28028   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28029   cat >conftest.$ac_ext <<_ACEOF
28030 /* confdefs.h.  */
28031 _ACEOF
28032 cat confdefs.h >>conftest.$ac_ext
28033 cat >>conftest.$ac_ext <<_ACEOF
28034 /* end confdefs.h.  */
28035 #include <string.h>
28036
28037 _ACEOF
28038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28039   $EGREP "memchr" >/dev/null 2>&1; then
28040   :
28041 else
28042   ac_cv_header_stdc=no
28043 fi
28044 rm -f conftest*
28045
28046 fi
28047
28048 if test $ac_cv_header_stdc = yes; then
28049   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28050   cat >conftest.$ac_ext <<_ACEOF
28051 /* confdefs.h.  */
28052 _ACEOF
28053 cat confdefs.h >>conftest.$ac_ext
28054 cat >>conftest.$ac_ext <<_ACEOF
28055 /* end confdefs.h.  */
28056 #include <stdlib.h>
28057
28058 _ACEOF
28059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28060   $EGREP "free" >/dev/null 2>&1; then
28061   :
28062 else
28063   ac_cv_header_stdc=no
28064 fi
28065 rm -f conftest*
28066
28067 fi
28068
28069 if test $ac_cv_header_stdc = yes; then
28070   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28071   if test "$cross_compiling" = yes; then
28072   :
28073 else
28074   cat >conftest.$ac_ext <<_ACEOF
28075 /* confdefs.h.  */
28076 _ACEOF
28077 cat confdefs.h >>conftest.$ac_ext
28078 cat >>conftest.$ac_ext <<_ACEOF
28079 /* end confdefs.h.  */
28080 #include <ctype.h>
28081 #include <stdlib.h>
28082 #if ((' ' & 0x0FF) == 0x020)
28083 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28084 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28085 #else
28086 # define ISLOWER(c) \
28087                    (('a' <= (c) && (c) <= 'i') \
28088                      || ('j' <= (c) && (c) <= 'r') \
28089                      || ('s' <= (c) && (c) <= 'z'))
28090 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28091 #endif
28092
28093 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28094 int
28095 main ()
28096 {
28097   int i;
28098   for (i = 0; i < 256; i++)
28099     if (XOR (islower (i), ISLOWER (i))
28100         || toupper (i) != TOUPPER (i))
28101       return 2;
28102   return 0;
28103 }
28104 _ACEOF
28105 rm -f conftest$ac_exeext
28106 if { (ac_try="$ac_link"
28107 case "(($ac_try" in
28108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28109   *) ac_try_echo=$ac_try;;
28110 esac
28111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28112   (eval "$ac_link") 2>&5
28113   ac_status=$?
28114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28116   { (case "(($ac_try" in
28117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28118   *) ac_try_echo=$ac_try;;
28119 esac
28120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28121   (eval "$ac_try") 2>&5
28122   ac_status=$?
28123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124   (exit $ac_status); }; }; then
28125   :
28126 else
28127   echo "$as_me: program exited with status $ac_status" >&5
28128 echo "$as_me: failed program was:" >&5
28129 sed 's/^/| /' conftest.$ac_ext >&5
28130
28131 ( exit $ac_status )
28132 ac_cv_header_stdc=no
28133 fi
28134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28135 fi
28136
28137
28138 fi
28139 fi
28140 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28141 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28142 if test $ac_cv_header_stdc = yes; then
28143
28144 cat >>confdefs.h <<\_ACEOF
28145 #define STDC_HEADERS 1
28146 _ACEOF
28147
28148 fi
28149
28150 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28151 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28152 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28153   echo $ECHO_N "(cached) $ECHO_C" >&6
28154 else
28155   cat >conftest.$ac_ext <<_ACEOF
28156 /* confdefs.h.  */
28157 _ACEOF
28158 cat confdefs.h >>conftest.$ac_ext
28159 cat >>conftest.$ac_ext <<_ACEOF
28160 /* end confdefs.h.  */
28161 #include <sys/types.h>
28162 #include <sys/wait.h>
28163 #ifndef WEXITSTATUS
28164 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28165 #endif
28166 #ifndef WIFEXITED
28167 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28168 #endif
28169
28170 int
28171 main ()
28172 {
28173   int s;
28174   wait (&s);
28175   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28176   ;
28177   return 0;
28178 }
28179 _ACEOF
28180 rm -f conftest.$ac_objext
28181 if { (ac_try="$ac_compile"
28182 case "(($ac_try" in
28183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28184   *) ac_try_echo=$ac_try;;
28185 esac
28186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28187   (eval "$ac_compile") 2>conftest.er1
28188   ac_status=$?
28189   grep -v '^ *+' conftest.er1 >conftest.err
28190   rm -f conftest.er1
28191   cat conftest.err >&5
28192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193   (exit $ac_status); } &&
28194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28195   { (case "(($ac_try" in
28196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28197   *) ac_try_echo=$ac_try;;
28198 esac
28199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28200   (eval "$ac_try") 2>&5
28201   ac_status=$?
28202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203   (exit $ac_status); }; } &&
28204          { ac_try='test -s conftest.$ac_objext'
28205   { (case "(($ac_try" in
28206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28207   *) ac_try_echo=$ac_try;;
28208 esac
28209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28210   (eval "$ac_try") 2>&5
28211   ac_status=$?
28212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213   (exit $ac_status); }; }; then
28214   ac_cv_header_sys_wait_h=yes
28215 else
28216   echo "$as_me: failed program was:" >&5
28217 sed 's/^/| /' conftest.$ac_ext >&5
28218
28219         ac_cv_header_sys_wait_h=no
28220 fi
28221
28222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28223 fi
28224 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28225 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28226 if test $ac_cv_header_sys_wait_h = yes; then
28227
28228 cat >>confdefs.h <<\_ACEOF
28229 #define HAVE_SYS_WAIT_H 1
28230 _ACEOF
28231
28232 fi
28233
28234 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28235 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28236 if test "${ac_cv_header_time+set}" = set; then
28237   echo $ECHO_N "(cached) $ECHO_C" >&6
28238 else
28239   cat >conftest.$ac_ext <<_ACEOF
28240 /* confdefs.h.  */
28241 _ACEOF
28242 cat confdefs.h >>conftest.$ac_ext
28243 cat >>conftest.$ac_ext <<_ACEOF
28244 /* end confdefs.h.  */
28245 #include <sys/types.h>
28246 #include <sys/time.h>
28247 #include <time.h>
28248
28249 int
28250 main ()
28251 {
28252 if ((struct tm *) 0)
28253 return 0;
28254   ;
28255   return 0;
28256 }
28257 _ACEOF
28258 rm -f conftest.$ac_objext
28259 if { (ac_try="$ac_compile"
28260 case "(($ac_try" in
28261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28262   *) ac_try_echo=$ac_try;;
28263 esac
28264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28265   (eval "$ac_compile") 2>conftest.er1
28266   ac_status=$?
28267   grep -v '^ *+' conftest.er1 >conftest.err
28268   rm -f conftest.er1
28269   cat conftest.err >&5
28270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271   (exit $ac_status); } &&
28272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28273   { (case "(($ac_try" in
28274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28275   *) ac_try_echo=$ac_try;;
28276 esac
28277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28278   (eval "$ac_try") 2>&5
28279   ac_status=$?
28280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281   (exit $ac_status); }; } &&
28282          { ac_try='test -s conftest.$ac_objext'
28283   { (case "(($ac_try" in
28284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28285   *) ac_try_echo=$ac_try;;
28286 esac
28287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28288   (eval "$ac_try") 2>&5
28289   ac_status=$?
28290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291   (exit $ac_status); }; }; then
28292   ac_cv_header_time=yes
28293 else
28294   echo "$as_me: failed program was:" >&5
28295 sed 's/^/| /' conftest.$ac_ext >&5
28296
28297         ac_cv_header_time=no
28298 fi
28299
28300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28301 fi
28302 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28303 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28304 if test $ac_cv_header_time = yes; then
28305
28306 cat >>confdefs.h <<\_ACEOF
28307 #define TIME_WITH_SYS_TIME 1
28308 _ACEOF
28309
28310 fi
28311
28312
28313
28314
28315
28316
28317
28318
28319 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28320 do
28321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28323   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28326   echo $ECHO_N "(cached) $ECHO_C" >&6
28327 fi
28328 ac_res=`eval echo '${'$as_ac_Header'}'`
28329                { echo "$as_me:$LINENO: result: $ac_res" >&5
28330 echo "${ECHO_T}$ac_res" >&6; }
28331 else
28332   # Is the header compilable?
28333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28335 cat >conftest.$ac_ext <<_ACEOF
28336 /* confdefs.h.  */
28337 _ACEOF
28338 cat confdefs.h >>conftest.$ac_ext
28339 cat >>conftest.$ac_ext <<_ACEOF
28340 /* end confdefs.h.  */
28341 $ac_includes_default
28342 #include <$ac_header>
28343 _ACEOF
28344 rm -f conftest.$ac_objext
28345 if { (ac_try="$ac_compile"
28346 case "(($ac_try" in
28347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28348   *) ac_try_echo=$ac_try;;
28349 esac
28350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28351   (eval "$ac_compile") 2>conftest.er1
28352   ac_status=$?
28353   grep -v '^ *+' conftest.er1 >conftest.err
28354   rm -f conftest.er1
28355   cat conftest.err >&5
28356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357   (exit $ac_status); } &&
28358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28359   { (case "(($ac_try" in
28360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28361   *) ac_try_echo=$ac_try;;
28362 esac
28363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28364   (eval "$ac_try") 2>&5
28365   ac_status=$?
28366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367   (exit $ac_status); }; } &&
28368          { ac_try='test -s conftest.$ac_objext'
28369   { (case "(($ac_try" in
28370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28371   *) ac_try_echo=$ac_try;;
28372 esac
28373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28374   (eval "$ac_try") 2>&5
28375   ac_status=$?
28376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377   (exit $ac_status); }; }; then
28378   ac_header_compiler=yes
28379 else
28380   echo "$as_me: failed program was:" >&5
28381 sed 's/^/| /' conftest.$ac_ext >&5
28382
28383         ac_header_compiler=no
28384 fi
28385
28386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28388 echo "${ECHO_T}$ac_header_compiler" >&6; }
28389
28390 # Is the header present?
28391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28393 cat >conftest.$ac_ext <<_ACEOF
28394 /* confdefs.h.  */
28395 _ACEOF
28396 cat confdefs.h >>conftest.$ac_ext
28397 cat >>conftest.$ac_ext <<_ACEOF
28398 /* end confdefs.h.  */
28399 #include <$ac_header>
28400 _ACEOF
28401 if { (ac_try="$ac_cpp conftest.$ac_ext"
28402 case "(($ac_try" in
28403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28404   *) ac_try_echo=$ac_try;;
28405 esac
28406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28408   ac_status=$?
28409   grep -v '^ *+' conftest.er1 >conftest.err
28410   rm -f conftest.er1
28411   cat conftest.err >&5
28412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413   (exit $ac_status); } >/dev/null; then
28414   if test -s conftest.err; then
28415     ac_cpp_err=$ac_c_preproc_warn_flag
28416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28417   else
28418     ac_cpp_err=
28419   fi
28420 else
28421   ac_cpp_err=yes
28422 fi
28423 if test -z "$ac_cpp_err"; then
28424   ac_header_preproc=yes
28425 else
28426   echo "$as_me: failed program was:" >&5
28427 sed 's/^/| /' conftest.$ac_ext >&5
28428
28429   ac_header_preproc=no
28430 fi
28431
28432 rm -f conftest.err conftest.$ac_ext
28433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28434 echo "${ECHO_T}$ac_header_preproc" >&6; }
28435
28436 # So?  What about this header?
28437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28438   yes:no: )
28439     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28443     ac_header_preproc=yes
28444     ;;
28445   no:yes:* )
28446     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28448     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28449 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28450     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28452     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28453 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28456     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28458     ( cat <<\_ASBOX
28459 ## ----------------------------------- ##
28460 ## Report this to llvmbugs@cs.uiuc.edu ##
28461 ## ----------------------------------- ##
28462 _ASBOX
28463      ) | sed "s/^/$as_me: WARNING:     /" >&2
28464     ;;
28465 esac
28466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28469   echo $ECHO_N "(cached) $ECHO_C" >&6
28470 else
28471   eval "$as_ac_Header=\$ac_header_preproc"
28472 fi
28473 ac_res=`eval echo '${'$as_ac_Header'}'`
28474                { echo "$as_me:$LINENO: result: $ac_res" >&5
28475 echo "${ECHO_T}$ac_res" >&6; }
28476
28477 fi
28478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28479   cat >>confdefs.h <<_ACEOF
28480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28481 _ACEOF
28482
28483 fi
28484
28485 done
28486
28487
28488
28489
28490
28491
28492
28493 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28494 do
28495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28497   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28500   echo $ECHO_N "(cached) $ECHO_C" >&6
28501 fi
28502 ac_res=`eval echo '${'$as_ac_Header'}'`
28503                { echo "$as_me:$LINENO: result: $ac_res" >&5
28504 echo "${ECHO_T}$ac_res" >&6; }
28505 else
28506   # Is the header compilable?
28507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28509 cat >conftest.$ac_ext <<_ACEOF
28510 /* confdefs.h.  */
28511 _ACEOF
28512 cat confdefs.h >>conftest.$ac_ext
28513 cat >>conftest.$ac_ext <<_ACEOF
28514 /* end confdefs.h.  */
28515 $ac_includes_default
28516 #include <$ac_header>
28517 _ACEOF
28518 rm -f conftest.$ac_objext
28519 if { (ac_try="$ac_compile"
28520 case "(($ac_try" in
28521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28522   *) ac_try_echo=$ac_try;;
28523 esac
28524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28525   (eval "$ac_compile") 2>conftest.er1
28526   ac_status=$?
28527   grep -v '^ *+' conftest.er1 >conftest.err
28528   rm -f conftest.er1
28529   cat conftest.err >&5
28530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531   (exit $ac_status); } &&
28532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28533   { (case "(($ac_try" in
28534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28535   *) ac_try_echo=$ac_try;;
28536 esac
28537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28538   (eval "$ac_try") 2>&5
28539   ac_status=$?
28540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541   (exit $ac_status); }; } &&
28542          { ac_try='test -s conftest.$ac_objext'
28543   { (case "(($ac_try" in
28544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28545   *) ac_try_echo=$ac_try;;
28546 esac
28547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28548   (eval "$ac_try") 2>&5
28549   ac_status=$?
28550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551   (exit $ac_status); }; }; then
28552   ac_header_compiler=yes
28553 else
28554   echo "$as_me: failed program was:" >&5
28555 sed 's/^/| /' conftest.$ac_ext >&5
28556
28557         ac_header_compiler=no
28558 fi
28559
28560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28562 echo "${ECHO_T}$ac_header_compiler" >&6; }
28563
28564 # Is the header present?
28565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28567 cat >conftest.$ac_ext <<_ACEOF
28568 /* confdefs.h.  */
28569 _ACEOF
28570 cat confdefs.h >>conftest.$ac_ext
28571 cat >>conftest.$ac_ext <<_ACEOF
28572 /* end confdefs.h.  */
28573 #include <$ac_header>
28574 _ACEOF
28575 if { (ac_try="$ac_cpp conftest.$ac_ext"
28576 case "(($ac_try" in
28577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28578   *) ac_try_echo=$ac_try;;
28579 esac
28580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28581   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28582   ac_status=$?
28583   grep -v '^ *+' conftest.er1 >conftest.err
28584   rm -f conftest.er1
28585   cat conftest.err >&5
28586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28587   (exit $ac_status); } >/dev/null; then
28588   if test -s conftest.err; then
28589     ac_cpp_err=$ac_c_preproc_warn_flag
28590     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28591   else
28592     ac_cpp_err=
28593   fi
28594 else
28595   ac_cpp_err=yes
28596 fi
28597 if test -z "$ac_cpp_err"; then
28598   ac_header_preproc=yes
28599 else
28600   echo "$as_me: failed program was:" >&5
28601 sed 's/^/| /' conftest.$ac_ext >&5
28602
28603   ac_header_preproc=no
28604 fi
28605
28606 rm -f conftest.err conftest.$ac_ext
28607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28608 echo "${ECHO_T}$ac_header_preproc" >&6; }
28609
28610 # So?  What about this header?
28611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28612   yes:no: )
28613     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28617     ac_header_preproc=yes
28618     ;;
28619   no:yes:* )
28620     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28622     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28623 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28624     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28626     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28627 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28628     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28630     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28632     ( cat <<\_ASBOX
28633 ## ----------------------------------- ##
28634 ## Report this to llvmbugs@cs.uiuc.edu ##
28635 ## ----------------------------------- ##
28636 _ASBOX
28637      ) | sed "s/^/$as_me: WARNING:     /" >&2
28638     ;;
28639 esac
28640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28643   echo $ECHO_N "(cached) $ECHO_C" >&6
28644 else
28645   eval "$as_ac_Header=\$ac_header_preproc"
28646 fi
28647 ac_res=`eval echo '${'$as_ac_Header'}'`
28648                { echo "$as_me:$LINENO: result: $ac_res" >&5
28649 echo "${ECHO_T}$ac_res" >&6; }
28650
28651 fi
28652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28653   cat >>confdefs.h <<_ACEOF
28654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28655 _ACEOF
28656
28657 fi
28658
28659 done
28660
28661
28662
28663
28664
28665
28666 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28667 do
28668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28670   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28673   echo $ECHO_N "(cached) $ECHO_C" >&6
28674 fi
28675 ac_res=`eval echo '${'$as_ac_Header'}'`
28676                { echo "$as_me:$LINENO: result: $ac_res" >&5
28677 echo "${ECHO_T}$ac_res" >&6; }
28678 else
28679   # Is the header compilable?
28680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28682 cat >conftest.$ac_ext <<_ACEOF
28683 /* confdefs.h.  */
28684 _ACEOF
28685 cat confdefs.h >>conftest.$ac_ext
28686 cat >>conftest.$ac_ext <<_ACEOF
28687 /* end confdefs.h.  */
28688 $ac_includes_default
28689 #include <$ac_header>
28690 _ACEOF
28691 rm -f conftest.$ac_objext
28692 if { (ac_try="$ac_compile"
28693 case "(($ac_try" in
28694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28695   *) ac_try_echo=$ac_try;;
28696 esac
28697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28698   (eval "$ac_compile") 2>conftest.er1
28699   ac_status=$?
28700   grep -v '^ *+' conftest.er1 >conftest.err
28701   rm -f conftest.er1
28702   cat conftest.err >&5
28703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704   (exit $ac_status); } &&
28705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28706   { (case "(($ac_try" in
28707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708   *) ac_try_echo=$ac_try;;
28709 esac
28710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711   (eval "$ac_try") 2>&5
28712   ac_status=$?
28713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714   (exit $ac_status); }; } &&
28715          { ac_try='test -s conftest.$ac_objext'
28716   { (case "(($ac_try" in
28717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28718   *) ac_try_echo=$ac_try;;
28719 esac
28720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28721   (eval "$ac_try") 2>&5
28722   ac_status=$?
28723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724   (exit $ac_status); }; }; then
28725   ac_header_compiler=yes
28726 else
28727   echo "$as_me: failed program was:" >&5
28728 sed 's/^/| /' conftest.$ac_ext >&5
28729
28730         ac_header_compiler=no
28731 fi
28732
28733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28735 echo "${ECHO_T}$ac_header_compiler" >&6; }
28736
28737 # Is the header present?
28738 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28740 cat >conftest.$ac_ext <<_ACEOF
28741 /* confdefs.h.  */
28742 _ACEOF
28743 cat confdefs.h >>conftest.$ac_ext
28744 cat >>conftest.$ac_ext <<_ACEOF
28745 /* end confdefs.h.  */
28746 #include <$ac_header>
28747 _ACEOF
28748 if { (ac_try="$ac_cpp conftest.$ac_ext"
28749 case "(($ac_try" in
28750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28751   *) ac_try_echo=$ac_try;;
28752 esac
28753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28754   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28755   ac_status=$?
28756   grep -v '^ *+' conftest.er1 >conftest.err
28757   rm -f conftest.er1
28758   cat conftest.err >&5
28759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760   (exit $ac_status); } >/dev/null; then
28761   if test -s conftest.err; then
28762     ac_cpp_err=$ac_c_preproc_warn_flag
28763     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28764   else
28765     ac_cpp_err=
28766   fi
28767 else
28768   ac_cpp_err=yes
28769 fi
28770 if test -z "$ac_cpp_err"; then
28771   ac_header_preproc=yes
28772 else
28773   echo "$as_me: failed program was:" >&5
28774 sed 's/^/| /' conftest.$ac_ext >&5
28775
28776   ac_header_preproc=no
28777 fi
28778
28779 rm -f conftest.err conftest.$ac_ext
28780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28781 echo "${ECHO_T}$ac_header_preproc" >&6; }
28782
28783 # So?  What about this header?
28784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28785   yes:no: )
28786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28790     ac_header_preproc=yes
28791     ;;
28792   no:yes:* )
28793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28795     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28796 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28797     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28799     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28800 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28803     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28805     ( cat <<\_ASBOX
28806 ## ----------------------------------- ##
28807 ## Report this to llvmbugs@cs.uiuc.edu ##
28808 ## ----------------------------------- ##
28809 _ASBOX
28810      ) | sed "s/^/$as_me: WARNING:     /" >&2
28811     ;;
28812 esac
28813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28816   echo $ECHO_N "(cached) $ECHO_C" >&6
28817 else
28818   eval "$as_ac_Header=\$ac_header_preproc"
28819 fi
28820 ac_res=`eval echo '${'$as_ac_Header'}'`
28821                { echo "$as_me:$LINENO: result: $ac_res" >&5
28822 echo "${ECHO_T}$ac_res" >&6; }
28823
28824 fi
28825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28826   cat >>confdefs.h <<_ACEOF
28827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28828 _ACEOF
28829
28830 fi
28831
28832 done
28833
28834
28835
28836 for ac_header in sys/types.h malloc/malloc.h
28837 do
28838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28840   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28843   echo $ECHO_N "(cached) $ECHO_C" >&6
28844 fi
28845 ac_res=`eval echo '${'$as_ac_Header'}'`
28846                { echo "$as_me:$LINENO: result: $ac_res" >&5
28847 echo "${ECHO_T}$ac_res" >&6; }
28848 else
28849   # Is the header compilable?
28850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28852 cat >conftest.$ac_ext <<_ACEOF
28853 /* confdefs.h.  */
28854 _ACEOF
28855 cat confdefs.h >>conftest.$ac_ext
28856 cat >>conftest.$ac_ext <<_ACEOF
28857 /* end confdefs.h.  */
28858 $ac_includes_default
28859 #include <$ac_header>
28860 _ACEOF
28861 rm -f conftest.$ac_objext
28862 if { (ac_try="$ac_compile"
28863 case "(($ac_try" in
28864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865   *) ac_try_echo=$ac_try;;
28866 esac
28867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28868   (eval "$ac_compile") 2>conftest.er1
28869   ac_status=$?
28870   grep -v '^ *+' conftest.er1 >conftest.err
28871   rm -f conftest.er1
28872   cat conftest.err >&5
28873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874   (exit $ac_status); } &&
28875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28876   { (case "(($ac_try" in
28877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28878   *) ac_try_echo=$ac_try;;
28879 esac
28880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28881   (eval "$ac_try") 2>&5
28882   ac_status=$?
28883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884   (exit $ac_status); }; } &&
28885          { ac_try='test -s conftest.$ac_objext'
28886   { (case "(($ac_try" in
28887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28888   *) ac_try_echo=$ac_try;;
28889 esac
28890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28891   (eval "$ac_try") 2>&5
28892   ac_status=$?
28893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894   (exit $ac_status); }; }; then
28895   ac_header_compiler=yes
28896 else
28897   echo "$as_me: failed program was:" >&5
28898 sed 's/^/| /' conftest.$ac_ext >&5
28899
28900         ac_header_compiler=no
28901 fi
28902
28903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28905 echo "${ECHO_T}$ac_header_compiler" >&6; }
28906
28907 # Is the header present?
28908 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28910 cat >conftest.$ac_ext <<_ACEOF
28911 /* confdefs.h.  */
28912 _ACEOF
28913 cat confdefs.h >>conftest.$ac_ext
28914 cat >>conftest.$ac_ext <<_ACEOF
28915 /* end confdefs.h.  */
28916 #include <$ac_header>
28917 _ACEOF
28918 if { (ac_try="$ac_cpp conftest.$ac_ext"
28919 case "(($ac_try" in
28920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28921   *) ac_try_echo=$ac_try;;
28922 esac
28923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28924   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28925   ac_status=$?
28926   grep -v '^ *+' conftest.er1 >conftest.err
28927   rm -f conftest.er1
28928   cat conftest.err >&5
28929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930   (exit $ac_status); } >/dev/null; then
28931   if test -s conftest.err; then
28932     ac_cpp_err=$ac_c_preproc_warn_flag
28933     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28934   else
28935     ac_cpp_err=
28936   fi
28937 else
28938   ac_cpp_err=yes
28939 fi
28940 if test -z "$ac_cpp_err"; then
28941   ac_header_preproc=yes
28942 else
28943   echo "$as_me: failed program was:" >&5
28944 sed 's/^/| /' conftest.$ac_ext >&5
28945
28946   ac_header_preproc=no
28947 fi
28948
28949 rm -f conftest.err conftest.$ac_ext
28950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28951 echo "${ECHO_T}$ac_header_preproc" >&6; }
28952
28953 # So?  What about this header?
28954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28955   yes:no: )
28956     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28957 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28959 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28960     ac_header_preproc=yes
28961     ;;
28962   no:yes:* )
28963     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28964 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28965     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28966 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28967     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28968 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28969     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28970 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28971     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28973     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28974 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28975     ( cat <<\_ASBOX
28976 ## ----------------------------------- ##
28977 ## Report this to llvmbugs@cs.uiuc.edu ##
28978 ## ----------------------------------- ##
28979 _ASBOX
28980      ) | sed "s/^/$as_me: WARNING:     /" >&2
28981     ;;
28982 esac
28983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28986   echo $ECHO_N "(cached) $ECHO_C" >&6
28987 else
28988   eval "$as_ac_Header=\$ac_header_preproc"
28989 fi
28990 ac_res=`eval echo '${'$as_ac_Header'}'`
28991                { echo "$as_me:$LINENO: result: $ac_res" >&5
28992 echo "${ECHO_T}$ac_res" >&6; }
28993
28994 fi
28995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28996   cat >>confdefs.h <<_ACEOF
28997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28998 _ACEOF
28999
29000 fi
29001
29002 done
29003
29004 if test "$ENABLE_THREADS" -eq 1 ; then
29005
29006 for ac_header in pthread.h
29007 do
29008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29010   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29013   echo $ECHO_N "(cached) $ECHO_C" >&6
29014 fi
29015 ac_res=`eval echo '${'$as_ac_Header'}'`
29016                { echo "$as_me:$LINENO: result: $ac_res" >&5
29017 echo "${ECHO_T}$ac_res" >&6; }
29018 else
29019   # Is the header compilable?
29020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29022 cat >conftest.$ac_ext <<_ACEOF
29023 /* confdefs.h.  */
29024 _ACEOF
29025 cat confdefs.h >>conftest.$ac_ext
29026 cat >>conftest.$ac_ext <<_ACEOF
29027 /* end confdefs.h.  */
29028 $ac_includes_default
29029 #include <$ac_header>
29030 _ACEOF
29031 rm -f conftest.$ac_objext
29032 if { (ac_try="$ac_compile"
29033 case "(($ac_try" in
29034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29035   *) ac_try_echo=$ac_try;;
29036 esac
29037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29038   (eval "$ac_compile") 2>conftest.er1
29039   ac_status=$?
29040   grep -v '^ *+' conftest.er1 >conftest.err
29041   rm -f conftest.er1
29042   cat conftest.err >&5
29043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044   (exit $ac_status); } &&
29045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29046   { (case "(($ac_try" in
29047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29048   *) ac_try_echo=$ac_try;;
29049 esac
29050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29051   (eval "$ac_try") 2>&5
29052   ac_status=$?
29053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054   (exit $ac_status); }; } &&
29055          { ac_try='test -s conftest.$ac_objext'
29056   { (case "(($ac_try" in
29057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29058   *) ac_try_echo=$ac_try;;
29059 esac
29060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29061   (eval "$ac_try") 2>&5
29062   ac_status=$?
29063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064   (exit $ac_status); }; }; then
29065   ac_header_compiler=yes
29066 else
29067   echo "$as_me: failed program was:" >&5
29068 sed 's/^/| /' conftest.$ac_ext >&5
29069
29070         ac_header_compiler=no
29071 fi
29072
29073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29075 echo "${ECHO_T}$ac_header_compiler" >&6; }
29076
29077 # Is the header present?
29078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29080 cat >conftest.$ac_ext <<_ACEOF
29081 /* confdefs.h.  */
29082 _ACEOF
29083 cat confdefs.h >>conftest.$ac_ext
29084 cat >>conftest.$ac_ext <<_ACEOF
29085 /* end confdefs.h.  */
29086 #include <$ac_header>
29087 _ACEOF
29088 if { (ac_try="$ac_cpp conftest.$ac_ext"
29089 case "(($ac_try" in
29090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091   *) ac_try_echo=$ac_try;;
29092 esac
29093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29095   ac_status=$?
29096   grep -v '^ *+' conftest.er1 >conftest.err
29097   rm -f conftest.er1
29098   cat conftest.err >&5
29099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100   (exit $ac_status); } >/dev/null; then
29101   if test -s conftest.err; then
29102     ac_cpp_err=$ac_c_preproc_warn_flag
29103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29104   else
29105     ac_cpp_err=
29106   fi
29107 else
29108   ac_cpp_err=yes
29109 fi
29110 if test -z "$ac_cpp_err"; then
29111   ac_header_preproc=yes
29112 else
29113   echo "$as_me: failed program was:" >&5
29114 sed 's/^/| /' conftest.$ac_ext >&5
29115
29116   ac_header_preproc=no
29117 fi
29118
29119 rm -f conftest.err conftest.$ac_ext
29120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29121 echo "${ECHO_T}$ac_header_preproc" >&6; }
29122
29123 # So?  What about this header?
29124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29125   yes:no: )
29126     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29130     ac_header_preproc=yes
29131     ;;
29132   no:yes:* )
29133     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29135     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29136 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29137     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29139     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29140 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29143     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29145     ( cat <<\_ASBOX
29146 ## ----------------------------------- ##
29147 ## Report this to llvmbugs@cs.uiuc.edu ##
29148 ## ----------------------------------- ##
29149 _ASBOX
29150      ) | sed "s/^/$as_me: WARNING:     /" >&2
29151     ;;
29152 esac
29153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29156   echo $ECHO_N "(cached) $ECHO_C" >&6
29157 else
29158   eval "$as_ac_Header=\$ac_header_preproc"
29159 fi
29160 ac_res=`eval echo '${'$as_ac_Header'}'`
29161                { echo "$as_me:$LINENO: result: $ac_res" >&5
29162 echo "${ECHO_T}$ac_res" >&6; }
29163
29164 fi
29165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29166   cat >>confdefs.h <<_ACEOF
29167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29168 _ACEOF
29169
29170 fi
29171
29172 done
29173
29174 fi
29175
29176
29177 { echo "$as_me:$LINENO: checking for pid_t" >&5
29178 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29179 if test "${ac_cv_type_pid_t+set}" = set; then
29180   echo $ECHO_N "(cached) $ECHO_C" >&6
29181 else
29182   cat >conftest.$ac_ext <<_ACEOF
29183 /* confdefs.h.  */
29184 _ACEOF
29185 cat confdefs.h >>conftest.$ac_ext
29186 cat >>conftest.$ac_ext <<_ACEOF
29187 /* end confdefs.h.  */
29188 $ac_includes_default
29189 typedef pid_t ac__type_new_;
29190 int
29191 main ()
29192 {
29193 if ((ac__type_new_ *) 0)
29194   return 0;
29195 if (sizeof (ac__type_new_))
29196   return 0;
29197   ;
29198   return 0;
29199 }
29200 _ACEOF
29201 rm -f conftest.$ac_objext
29202 if { (ac_try="$ac_compile"
29203 case "(($ac_try" in
29204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29205   *) ac_try_echo=$ac_try;;
29206 esac
29207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29208   (eval "$ac_compile") 2>conftest.er1
29209   ac_status=$?
29210   grep -v '^ *+' conftest.er1 >conftest.err
29211   rm -f conftest.er1
29212   cat conftest.err >&5
29213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214   (exit $ac_status); } &&
29215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29216   { (case "(($ac_try" in
29217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29218   *) ac_try_echo=$ac_try;;
29219 esac
29220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29221   (eval "$ac_try") 2>&5
29222   ac_status=$?
29223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224   (exit $ac_status); }; } &&
29225          { ac_try='test -s conftest.$ac_objext'
29226   { (case "(($ac_try" in
29227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228   *) ac_try_echo=$ac_try;;
29229 esac
29230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231   (eval "$ac_try") 2>&5
29232   ac_status=$?
29233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234   (exit $ac_status); }; }; then
29235   ac_cv_type_pid_t=yes
29236 else
29237   echo "$as_me: failed program was:" >&5
29238 sed 's/^/| /' conftest.$ac_ext >&5
29239
29240         ac_cv_type_pid_t=no
29241 fi
29242
29243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29244 fi
29245 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29246 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29247 if test $ac_cv_type_pid_t = yes; then
29248   :
29249 else
29250
29251 cat >>confdefs.h <<_ACEOF
29252 #define pid_t int
29253 _ACEOF
29254
29255 fi
29256
29257 { echo "$as_me:$LINENO: checking for size_t" >&5
29258 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29259 if test "${ac_cv_type_size_t+set}" = set; then
29260   echo $ECHO_N "(cached) $ECHO_C" >&6
29261 else
29262   cat >conftest.$ac_ext <<_ACEOF
29263 /* confdefs.h.  */
29264 _ACEOF
29265 cat confdefs.h >>conftest.$ac_ext
29266 cat >>conftest.$ac_ext <<_ACEOF
29267 /* end confdefs.h.  */
29268 $ac_includes_default
29269 typedef size_t ac__type_new_;
29270 int
29271 main ()
29272 {
29273 if ((ac__type_new_ *) 0)
29274   return 0;
29275 if (sizeof (ac__type_new_))
29276   return 0;
29277   ;
29278   return 0;
29279 }
29280 _ACEOF
29281 rm -f conftest.$ac_objext
29282 if { (ac_try="$ac_compile"
29283 case "(($ac_try" in
29284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29285   *) ac_try_echo=$ac_try;;
29286 esac
29287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29288   (eval "$ac_compile") 2>conftest.er1
29289   ac_status=$?
29290   grep -v '^ *+' conftest.er1 >conftest.err
29291   rm -f conftest.er1
29292   cat conftest.err >&5
29293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294   (exit $ac_status); } &&
29295          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29296   { (case "(($ac_try" in
29297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29298   *) ac_try_echo=$ac_try;;
29299 esac
29300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29301   (eval "$ac_try") 2>&5
29302   ac_status=$?
29303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304   (exit $ac_status); }; } &&
29305          { ac_try='test -s conftest.$ac_objext'
29306   { (case "(($ac_try" in
29307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29308   *) ac_try_echo=$ac_try;;
29309 esac
29310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29311   (eval "$ac_try") 2>&5
29312   ac_status=$?
29313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314   (exit $ac_status); }; }; then
29315   ac_cv_type_size_t=yes
29316 else
29317   echo "$as_me: failed program was:" >&5
29318 sed 's/^/| /' conftest.$ac_ext >&5
29319
29320         ac_cv_type_size_t=no
29321 fi
29322
29323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29324 fi
29325 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29326 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29327 if test $ac_cv_type_size_t = yes; then
29328   :
29329 else
29330
29331 cat >>confdefs.h <<_ACEOF
29332 #define size_t unsigned int
29333 _ACEOF
29334
29335 fi
29336
29337 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29338 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29339 if test "${ac_cv_type_signal+set}" = set; then
29340   echo $ECHO_N "(cached) $ECHO_C" >&6
29341 else
29342   cat >conftest.$ac_ext <<_ACEOF
29343 /* confdefs.h.  */
29344 _ACEOF
29345 cat confdefs.h >>conftest.$ac_ext
29346 cat >>conftest.$ac_ext <<_ACEOF
29347 /* end confdefs.h.  */
29348 #include <sys/types.h>
29349 #include <signal.h>
29350
29351 int
29352 main ()
29353 {
29354 return *(signal (0, 0)) (0) == 1;
29355   ;
29356   return 0;
29357 }
29358 _ACEOF
29359 rm -f conftest.$ac_objext
29360 if { (ac_try="$ac_compile"
29361 case "(($ac_try" in
29362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29363   *) ac_try_echo=$ac_try;;
29364 esac
29365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29366   (eval "$ac_compile") 2>conftest.er1
29367   ac_status=$?
29368   grep -v '^ *+' conftest.er1 >conftest.err
29369   rm -f conftest.er1
29370   cat conftest.err >&5
29371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372   (exit $ac_status); } &&
29373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29374   { (case "(($ac_try" in
29375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29376   *) ac_try_echo=$ac_try;;
29377 esac
29378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29379   (eval "$ac_try") 2>&5
29380   ac_status=$?
29381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382   (exit $ac_status); }; } &&
29383          { ac_try='test -s conftest.$ac_objext'
29384   { (case "(($ac_try" in
29385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29386   *) ac_try_echo=$ac_try;;
29387 esac
29388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29389   (eval "$ac_try") 2>&5
29390   ac_status=$?
29391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392   (exit $ac_status); }; }; then
29393   ac_cv_type_signal=int
29394 else
29395   echo "$as_me: failed program was:" >&5
29396 sed 's/^/| /' conftest.$ac_ext >&5
29397
29398         ac_cv_type_signal=void
29399 fi
29400
29401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29402 fi
29403 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29404 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29405
29406 cat >>confdefs.h <<_ACEOF
29407 #define RETSIGTYPE $ac_cv_type_signal
29408 _ACEOF
29409
29410
29411 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29412 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29413 if test "${ac_cv_struct_tm+set}" = set; then
29414   echo $ECHO_N "(cached) $ECHO_C" >&6
29415 else
29416   cat >conftest.$ac_ext <<_ACEOF
29417 /* confdefs.h.  */
29418 _ACEOF
29419 cat confdefs.h >>conftest.$ac_ext
29420 cat >>conftest.$ac_ext <<_ACEOF
29421 /* end confdefs.h.  */
29422 #include <sys/types.h>
29423 #include <time.h>
29424
29425 int
29426 main ()
29427 {
29428 struct tm *tp; tp->tm_sec;
29429   ;
29430   return 0;
29431 }
29432 _ACEOF
29433 rm -f conftest.$ac_objext
29434 if { (ac_try="$ac_compile"
29435 case "(($ac_try" in
29436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29437   *) ac_try_echo=$ac_try;;
29438 esac
29439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29440   (eval "$ac_compile") 2>conftest.er1
29441   ac_status=$?
29442   grep -v '^ *+' conftest.er1 >conftest.err
29443   rm -f conftest.er1
29444   cat conftest.err >&5
29445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29446   (exit $ac_status); } &&
29447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29448   { (case "(($ac_try" in
29449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29450   *) ac_try_echo=$ac_try;;
29451 esac
29452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29453   (eval "$ac_try") 2>&5
29454   ac_status=$?
29455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456   (exit $ac_status); }; } &&
29457          { ac_try='test -s conftest.$ac_objext'
29458   { (case "(($ac_try" in
29459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29460   *) ac_try_echo=$ac_try;;
29461 esac
29462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29463   (eval "$ac_try") 2>&5
29464   ac_status=$?
29465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466   (exit $ac_status); }; }; then
29467   ac_cv_struct_tm=time.h
29468 else
29469   echo "$as_me: failed program was:" >&5
29470 sed 's/^/| /' conftest.$ac_ext >&5
29471
29472         ac_cv_struct_tm=sys/time.h
29473 fi
29474
29475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29476 fi
29477 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29478 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29479 if test $ac_cv_struct_tm = sys/time.h; then
29480
29481 cat >>confdefs.h <<\_ACEOF
29482 #define TM_IN_SYS_TIME 1
29483 _ACEOF
29484
29485 fi
29486
29487 { echo "$as_me:$LINENO: checking for int64_t" >&5
29488 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29489 if test "${ac_cv_type_int64_t+set}" = set; then
29490   echo $ECHO_N "(cached) $ECHO_C" >&6
29491 else
29492   cat >conftest.$ac_ext <<_ACEOF
29493 /* confdefs.h.  */
29494 _ACEOF
29495 cat confdefs.h >>conftest.$ac_ext
29496 cat >>conftest.$ac_ext <<_ACEOF
29497 /* end confdefs.h.  */
29498 $ac_includes_default
29499 typedef int64_t ac__type_new_;
29500 int
29501 main ()
29502 {
29503 if ((ac__type_new_ *) 0)
29504   return 0;
29505 if (sizeof (ac__type_new_))
29506   return 0;
29507   ;
29508   return 0;
29509 }
29510 _ACEOF
29511 rm -f conftest.$ac_objext
29512 if { (ac_try="$ac_compile"
29513 case "(($ac_try" in
29514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29515   *) ac_try_echo=$ac_try;;
29516 esac
29517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29518   (eval "$ac_compile") 2>conftest.er1
29519   ac_status=$?
29520   grep -v '^ *+' conftest.er1 >conftest.err
29521   rm -f conftest.er1
29522   cat conftest.err >&5
29523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29524   (exit $ac_status); } &&
29525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29526   { (case "(($ac_try" in
29527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29528   *) ac_try_echo=$ac_try;;
29529 esac
29530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29531   (eval "$ac_try") 2>&5
29532   ac_status=$?
29533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534   (exit $ac_status); }; } &&
29535          { ac_try='test -s conftest.$ac_objext'
29536   { (case "(($ac_try" in
29537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29538   *) ac_try_echo=$ac_try;;
29539 esac
29540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29541   (eval "$ac_try") 2>&5
29542   ac_status=$?
29543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544   (exit $ac_status); }; }; then
29545   ac_cv_type_int64_t=yes
29546 else
29547   echo "$as_me: failed program was:" >&5
29548 sed 's/^/| /' conftest.$ac_ext >&5
29549
29550         ac_cv_type_int64_t=no
29551 fi
29552
29553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29554 fi
29555 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29556 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29557 if test $ac_cv_type_int64_t = yes; then
29558
29559 cat >>confdefs.h <<_ACEOF
29560 #define HAVE_INT64_T 1
29561 _ACEOF
29562
29563
29564 else
29565   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29566 echo "$as_me: error: Type int64_t required but not found" >&2;}
29567    { (exit 1); exit 1; }; }
29568 fi
29569
29570 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29571 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29572 if test "${ac_cv_type_uint64_t+set}" = set; then
29573   echo $ECHO_N "(cached) $ECHO_C" >&6
29574 else
29575   cat >conftest.$ac_ext <<_ACEOF
29576 /* confdefs.h.  */
29577 _ACEOF
29578 cat confdefs.h >>conftest.$ac_ext
29579 cat >>conftest.$ac_ext <<_ACEOF
29580 /* end confdefs.h.  */
29581 $ac_includes_default
29582 typedef uint64_t ac__type_new_;
29583 int
29584 main ()
29585 {
29586 if ((ac__type_new_ *) 0)
29587   return 0;
29588 if (sizeof (ac__type_new_))
29589   return 0;
29590   ;
29591   return 0;
29592 }
29593 _ACEOF
29594 rm -f conftest.$ac_objext
29595 if { (ac_try="$ac_compile"
29596 case "(($ac_try" in
29597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29598   *) ac_try_echo=$ac_try;;
29599 esac
29600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29601   (eval "$ac_compile") 2>conftest.er1
29602   ac_status=$?
29603   grep -v '^ *+' conftest.er1 >conftest.err
29604   rm -f conftest.er1
29605   cat conftest.err >&5
29606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29607   (exit $ac_status); } &&
29608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
29615   ac_status=$?
29616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617   (exit $ac_status); }; } &&
29618          { ac_try='test -s conftest.$ac_objext'
29619   { (case "(($ac_try" in
29620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29621   *) ac_try_echo=$ac_try;;
29622 esac
29623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29624   (eval "$ac_try") 2>&5
29625   ac_status=$?
29626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627   (exit $ac_status); }; }; then
29628   ac_cv_type_uint64_t=yes
29629 else
29630   echo "$as_me: failed program was:" >&5
29631 sed 's/^/| /' conftest.$ac_ext >&5
29632
29633         ac_cv_type_uint64_t=no
29634 fi
29635
29636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29637 fi
29638 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29639 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29640 if test $ac_cv_type_uint64_t = yes; then
29641
29642 cat >>confdefs.h <<_ACEOF
29643 #define HAVE_UINT64_T 1
29644 _ACEOF
29645
29646
29647 else
29648   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29649 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29650 if test "${ac_cv_type_u_int64_t+set}" = set; then
29651   echo $ECHO_N "(cached) $ECHO_C" >&6
29652 else
29653   cat >conftest.$ac_ext <<_ACEOF
29654 /* confdefs.h.  */
29655 _ACEOF
29656 cat confdefs.h >>conftest.$ac_ext
29657 cat >>conftest.$ac_ext <<_ACEOF
29658 /* end confdefs.h.  */
29659 $ac_includes_default
29660 typedef u_int64_t ac__type_new_;
29661 int
29662 main ()
29663 {
29664 if ((ac__type_new_ *) 0)
29665   return 0;
29666 if (sizeof (ac__type_new_))
29667   return 0;
29668   ;
29669   return 0;
29670 }
29671 _ACEOF
29672 rm -f conftest.$ac_objext
29673 if { (ac_try="$ac_compile"
29674 case "(($ac_try" in
29675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29676   *) ac_try_echo=$ac_try;;
29677 esac
29678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29679   (eval "$ac_compile") 2>conftest.er1
29680   ac_status=$?
29681   grep -v '^ *+' conftest.er1 >conftest.err
29682   rm -f conftest.er1
29683   cat conftest.err >&5
29684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685   (exit $ac_status); } &&
29686          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29687   { (case "(($ac_try" in
29688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689   *) ac_try_echo=$ac_try;;
29690 esac
29691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29692   (eval "$ac_try") 2>&5
29693   ac_status=$?
29694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695   (exit $ac_status); }; } &&
29696          { ac_try='test -s conftest.$ac_objext'
29697   { (case "(($ac_try" in
29698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29699   *) ac_try_echo=$ac_try;;
29700 esac
29701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29702   (eval "$ac_try") 2>&5
29703   ac_status=$?
29704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705   (exit $ac_status); }; }; then
29706   ac_cv_type_u_int64_t=yes
29707 else
29708   echo "$as_me: failed program was:" >&5
29709 sed 's/^/| /' conftest.$ac_ext >&5
29710
29711         ac_cv_type_u_int64_t=no
29712 fi
29713
29714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29715 fi
29716 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29717 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29718 if test $ac_cv_type_u_int64_t = yes; then
29719
29720 cat >>confdefs.h <<_ACEOF
29721 #define HAVE_U_INT64_T 1
29722 _ACEOF
29723
29724
29725 else
29726   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29727 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29728    { (exit 1); exit 1; }; }
29729 fi
29730
29731 fi
29732
29733
29734
29735
29736
29737
29738
29739
29740
29741
29742 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
29743 do
29744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29745 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29747 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29748   echo $ECHO_N "(cached) $ECHO_C" >&6
29749 else
29750   cat >conftest.$ac_ext <<_ACEOF
29751 /* confdefs.h.  */
29752 _ACEOF
29753 cat confdefs.h >>conftest.$ac_ext
29754 cat >>conftest.$ac_ext <<_ACEOF
29755 /* end confdefs.h.  */
29756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29758 #define $ac_func innocuous_$ac_func
29759
29760 /* System header to define __stub macros and hopefully few prototypes,
29761     which can conflict with char $ac_func (); below.
29762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29763     <limits.h> exists even on freestanding compilers.  */
29764
29765 #ifdef __STDC__
29766 # include <limits.h>
29767 #else
29768 # include <assert.h>
29769 #endif
29770
29771 #undef $ac_func
29772
29773 /* Override any GCC internal prototype to avoid an error.
29774    Use char because int might match the return type of a GCC
29775    builtin and then its argument prototype would still apply.  */
29776 #ifdef __cplusplus
29777 extern "C"
29778 #endif
29779 char $ac_func ();
29780 /* The GNU C library defines this for functions which it implements
29781     to always fail with ENOSYS.  Some functions are actually named
29782     something starting with __ and the normal name is an alias.  */
29783 #if defined __stub_$ac_func || defined __stub___$ac_func
29784 choke me
29785 #endif
29786
29787 int
29788 main ()
29789 {
29790 return $ac_func ();
29791   ;
29792   return 0;
29793 }
29794 _ACEOF
29795 rm -f conftest.$ac_objext conftest$ac_exeext
29796 if { (ac_try="$ac_link"
29797 case "(($ac_try" in
29798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799   *) ac_try_echo=$ac_try;;
29800 esac
29801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29802   (eval "$ac_link") 2>conftest.er1
29803   ac_status=$?
29804   grep -v '^ *+' conftest.er1 >conftest.err
29805   rm -f conftest.er1
29806   cat conftest.err >&5
29807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808   (exit $ac_status); } &&
29809          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29810   { (case "(($ac_try" in
29811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29812   *) ac_try_echo=$ac_try;;
29813 esac
29814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815   (eval "$ac_try") 2>&5
29816   ac_status=$?
29817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818   (exit $ac_status); }; } &&
29819          { ac_try='test -s conftest$ac_exeext'
29820   { (case "(($ac_try" in
29821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29822   *) ac_try_echo=$ac_try;;
29823 esac
29824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29825   (eval "$ac_try") 2>&5
29826   ac_status=$?
29827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828   (exit $ac_status); }; }; then
29829   eval "$as_ac_var=yes"
29830 else
29831   echo "$as_me: failed program was:" >&5
29832 sed 's/^/| /' conftest.$ac_ext >&5
29833
29834         eval "$as_ac_var=no"
29835 fi
29836
29837 rm -f core conftest.err conftest.$ac_objext \
29838       conftest$ac_exeext conftest.$ac_ext
29839 fi
29840 ac_res=`eval echo '${'$as_ac_var'}'`
29841                { echo "$as_me:$LINENO: result: $ac_res" >&5
29842 echo "${ECHO_T}$ac_res" >&6; }
29843 if test `eval echo '${'$as_ac_var'}'` = yes; then
29844   cat >>confdefs.h <<_ACEOF
29845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29846 _ACEOF
29847
29848 fi
29849 done
29850
29851
29852
29853
29854
29855
29856
29857 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29858 do
29859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29860 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29863   echo $ECHO_N "(cached) $ECHO_C" >&6
29864 else
29865   cat >conftest.$ac_ext <<_ACEOF
29866 /* confdefs.h.  */
29867 _ACEOF
29868 cat confdefs.h >>conftest.$ac_ext
29869 cat >>conftest.$ac_ext <<_ACEOF
29870 /* end confdefs.h.  */
29871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29873 #define $ac_func innocuous_$ac_func
29874
29875 /* System header to define __stub macros and hopefully few prototypes,
29876     which can conflict with char $ac_func (); below.
29877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29878     <limits.h> exists even on freestanding compilers.  */
29879
29880 #ifdef __STDC__
29881 # include <limits.h>
29882 #else
29883 # include <assert.h>
29884 #endif
29885
29886 #undef $ac_func
29887
29888 /* Override any GCC internal prototype to avoid an error.
29889    Use char because int might match the return type of a GCC
29890    builtin and then its argument prototype would still apply.  */
29891 #ifdef __cplusplus
29892 extern "C"
29893 #endif
29894 char $ac_func ();
29895 /* The GNU C library defines this for functions which it implements
29896     to always fail with ENOSYS.  Some functions are actually named
29897     something starting with __ and the normal name is an alias.  */
29898 #if defined __stub_$ac_func || defined __stub___$ac_func
29899 choke me
29900 #endif
29901
29902 int
29903 main ()
29904 {
29905 return $ac_func ();
29906   ;
29907   return 0;
29908 }
29909 _ACEOF
29910 rm -f conftest.$ac_objext conftest$ac_exeext
29911 if { (ac_try="$ac_link"
29912 case "(($ac_try" in
29913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29914   *) ac_try_echo=$ac_try;;
29915 esac
29916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29917   (eval "$ac_link") 2>conftest.er1
29918   ac_status=$?
29919   grep -v '^ *+' conftest.er1 >conftest.err
29920   rm -f conftest.er1
29921   cat conftest.err >&5
29922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923   (exit $ac_status); } &&
29924          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29925   { (case "(($ac_try" in
29926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29927   *) ac_try_echo=$ac_try;;
29928 esac
29929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29930   (eval "$ac_try") 2>&5
29931   ac_status=$?
29932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933   (exit $ac_status); }; } &&
29934          { ac_try='test -s conftest$ac_exeext'
29935   { (case "(($ac_try" in
29936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29937   *) ac_try_echo=$ac_try;;
29938 esac
29939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29940   (eval "$ac_try") 2>&5
29941   ac_status=$?
29942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943   (exit $ac_status); }; }; then
29944   eval "$as_ac_var=yes"
29945 else
29946   echo "$as_me: failed program was:" >&5
29947 sed 's/^/| /' conftest.$ac_ext >&5
29948
29949         eval "$as_ac_var=no"
29950 fi
29951
29952 rm -f core conftest.err conftest.$ac_objext \
29953       conftest$ac_exeext conftest.$ac_ext
29954 fi
29955 ac_res=`eval echo '${'$as_ac_var'}'`
29956                { echo "$as_me:$LINENO: result: $ac_res" >&5
29957 echo "${ECHO_T}$ac_res" >&6; }
29958 if test `eval echo '${'$as_ac_var'}'` = yes; then
29959   cat >>confdefs.h <<_ACEOF
29960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29961 _ACEOF
29962
29963 fi
29964 done
29965
29966
29967
29968
29969
29970
29971
29972
29973 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
29974 do
29975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29979   echo $ECHO_N "(cached) $ECHO_C" >&6
29980 else
29981   cat >conftest.$ac_ext <<_ACEOF
29982 /* confdefs.h.  */
29983 _ACEOF
29984 cat confdefs.h >>conftest.$ac_ext
29985 cat >>conftest.$ac_ext <<_ACEOF
29986 /* end confdefs.h.  */
29987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29988    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29989 #define $ac_func innocuous_$ac_func
29990
29991 /* System header to define __stub macros and hopefully few prototypes,
29992     which can conflict with char $ac_func (); below.
29993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29994     <limits.h> exists even on freestanding compilers.  */
29995
29996 #ifdef __STDC__
29997 # include <limits.h>
29998 #else
29999 # include <assert.h>
30000 #endif
30001
30002 #undef $ac_func
30003
30004 /* Override any GCC internal prototype to avoid an error.
30005    Use char because int might match the return type of a GCC
30006    builtin and then its argument prototype would still apply.  */
30007 #ifdef __cplusplus
30008 extern "C"
30009 #endif
30010 char $ac_func ();
30011 /* The GNU C library defines this for functions which it implements
30012     to always fail with ENOSYS.  Some functions are actually named
30013     something starting with __ and the normal name is an alias.  */
30014 #if defined __stub_$ac_func || defined __stub___$ac_func
30015 choke me
30016 #endif
30017
30018 int
30019 main ()
30020 {
30021 return $ac_func ();
30022   ;
30023   return 0;
30024 }
30025 _ACEOF
30026 rm -f conftest.$ac_objext conftest$ac_exeext
30027 if { (ac_try="$ac_link"
30028 case "(($ac_try" in
30029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030   *) ac_try_echo=$ac_try;;
30031 esac
30032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30033   (eval "$ac_link") 2>conftest.er1
30034   ac_status=$?
30035   grep -v '^ *+' conftest.er1 >conftest.err
30036   rm -f conftest.er1
30037   cat conftest.err >&5
30038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039   (exit $ac_status); } &&
30040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30041   { (case "(($ac_try" in
30042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30043   *) ac_try_echo=$ac_try;;
30044 esac
30045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30046   (eval "$ac_try") 2>&5
30047   ac_status=$?
30048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049   (exit $ac_status); }; } &&
30050          { ac_try='test -s conftest$ac_exeext'
30051   { (case "(($ac_try" in
30052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30053   *) ac_try_echo=$ac_try;;
30054 esac
30055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30056   (eval "$ac_try") 2>&5
30057   ac_status=$?
30058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059   (exit $ac_status); }; }; then
30060   eval "$as_ac_var=yes"
30061 else
30062   echo "$as_me: failed program was:" >&5
30063 sed 's/^/| /' conftest.$ac_ext >&5
30064
30065         eval "$as_ac_var=no"
30066 fi
30067
30068 rm -f core conftest.err conftest.$ac_objext \
30069       conftest$ac_exeext conftest.$ac_ext
30070 fi
30071 ac_res=`eval echo '${'$as_ac_var'}'`
30072                { echo "$as_me:$LINENO: result: $ac_res" >&5
30073 echo "${ECHO_T}$ac_res" >&6; }
30074 if test `eval echo '${'$as_ac_var'}'` = yes; then
30075   cat >>confdefs.h <<_ACEOF
30076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30077 _ACEOF
30078
30079 fi
30080 done
30081
30082
30083
30084
30085
30086 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30087 do
30088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30089 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30092   echo $ECHO_N "(cached) $ECHO_C" >&6
30093 else
30094   cat >conftest.$ac_ext <<_ACEOF
30095 /* confdefs.h.  */
30096 _ACEOF
30097 cat confdefs.h >>conftest.$ac_ext
30098 cat >>conftest.$ac_ext <<_ACEOF
30099 /* end confdefs.h.  */
30100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30101    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30102 #define $ac_func innocuous_$ac_func
30103
30104 /* System header to define __stub macros and hopefully few prototypes,
30105     which can conflict with char $ac_func (); below.
30106     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30107     <limits.h> exists even on freestanding compilers.  */
30108
30109 #ifdef __STDC__
30110 # include <limits.h>
30111 #else
30112 # include <assert.h>
30113 #endif
30114
30115 #undef $ac_func
30116
30117 /* Override any GCC internal prototype to avoid an error.
30118    Use char because int might match the return type of a GCC
30119    builtin and then its argument prototype would still apply.  */
30120 #ifdef __cplusplus
30121 extern "C"
30122 #endif
30123 char $ac_func ();
30124 /* The GNU C library defines this for functions which it implements
30125     to always fail with ENOSYS.  Some functions are actually named
30126     something starting with __ and the normal name is an alias.  */
30127 #if defined __stub_$ac_func || defined __stub___$ac_func
30128 choke me
30129 #endif
30130
30131 int
30132 main ()
30133 {
30134 return $ac_func ();
30135   ;
30136   return 0;
30137 }
30138 _ACEOF
30139 rm -f conftest.$ac_objext conftest$ac_exeext
30140 if { (ac_try="$ac_link"
30141 case "(($ac_try" in
30142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30143   *) ac_try_echo=$ac_try;;
30144 esac
30145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30146   (eval "$ac_link") 2>conftest.er1
30147   ac_status=$?
30148   grep -v '^ *+' conftest.er1 >conftest.err
30149   rm -f conftest.er1
30150   cat conftest.err >&5
30151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30152   (exit $ac_status); } &&
30153          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30154   { (case "(($ac_try" in
30155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30156   *) ac_try_echo=$ac_try;;
30157 esac
30158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30159   (eval "$ac_try") 2>&5
30160   ac_status=$?
30161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30162   (exit $ac_status); }; } &&
30163          { ac_try='test -s conftest$ac_exeext'
30164   { (case "(($ac_try" in
30165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30166   *) ac_try_echo=$ac_try;;
30167 esac
30168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30169   (eval "$ac_try") 2>&5
30170   ac_status=$?
30171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172   (exit $ac_status); }; }; then
30173   eval "$as_ac_var=yes"
30174 else
30175   echo "$as_me: failed program was:" >&5
30176 sed 's/^/| /' conftest.$ac_ext >&5
30177
30178         eval "$as_ac_var=no"
30179 fi
30180
30181 rm -f core conftest.err conftest.$ac_objext \
30182       conftest$ac_exeext conftest.$ac_ext
30183 fi
30184 ac_res=`eval echo '${'$as_ac_var'}'`
30185                { echo "$as_me:$LINENO: result: $ac_res" >&5
30186 echo "${ECHO_T}$ac_res" >&6; }
30187 if test `eval echo '${'$as_ac_var'}'` = yes; then
30188   cat >>confdefs.h <<_ACEOF
30189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30190 _ACEOF
30191
30192 fi
30193 done
30194
30195
30196
30197
30198
30199
30200
30201 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
30202 do
30203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30207   echo $ECHO_N "(cached) $ECHO_C" >&6
30208 else
30209   cat >conftest.$ac_ext <<_ACEOF
30210 /* confdefs.h.  */
30211 _ACEOF
30212 cat confdefs.h >>conftest.$ac_ext
30213 cat >>conftest.$ac_ext <<_ACEOF
30214 /* end confdefs.h.  */
30215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30217 #define $ac_func innocuous_$ac_func
30218
30219 /* System header to define __stub macros and hopefully few prototypes,
30220     which can conflict with char $ac_func (); below.
30221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30222     <limits.h> exists even on freestanding compilers.  */
30223
30224 #ifdef __STDC__
30225 # include <limits.h>
30226 #else
30227 # include <assert.h>
30228 #endif
30229
30230 #undef $ac_func
30231
30232 /* Override any GCC internal prototype to avoid an error.
30233    Use char because int might match the return type of a GCC
30234    builtin and then its argument prototype would still apply.  */
30235 #ifdef __cplusplus
30236 extern "C"
30237 #endif
30238 char $ac_func ();
30239 /* The GNU C library defines this for functions which it implements
30240     to always fail with ENOSYS.  Some functions are actually named
30241     something starting with __ and the normal name is an alias.  */
30242 #if defined __stub_$ac_func || defined __stub___$ac_func
30243 choke me
30244 #endif
30245
30246 int
30247 main ()
30248 {
30249 return $ac_func ();
30250   ;
30251   return 0;
30252 }
30253 _ACEOF
30254 rm -f conftest.$ac_objext conftest$ac_exeext
30255 if { (ac_try="$ac_link"
30256 case "(($ac_try" in
30257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30258   *) ac_try_echo=$ac_try;;
30259 esac
30260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30261   (eval "$ac_link") 2>conftest.er1
30262   ac_status=$?
30263   grep -v '^ *+' conftest.er1 >conftest.err
30264   rm -f conftest.er1
30265   cat conftest.err >&5
30266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267   (exit $ac_status); } &&
30268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30269   { (case "(($ac_try" in
30270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30271   *) ac_try_echo=$ac_try;;
30272 esac
30273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30274   (eval "$ac_try") 2>&5
30275   ac_status=$?
30276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277   (exit $ac_status); }; } &&
30278          { ac_try='test -s conftest$ac_exeext'
30279   { (case "(($ac_try" in
30280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281   *) ac_try_echo=$ac_try;;
30282 esac
30283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284   (eval "$ac_try") 2>&5
30285   ac_status=$?
30286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287   (exit $ac_status); }; }; then
30288   eval "$as_ac_var=yes"
30289 else
30290   echo "$as_me: failed program was:" >&5
30291 sed 's/^/| /' conftest.$ac_ext >&5
30292
30293         eval "$as_ac_var=no"
30294 fi
30295
30296 rm -f core conftest.err conftest.$ac_objext \
30297       conftest$ac_exeext conftest.$ac_ext
30298 fi
30299 ac_res=`eval echo '${'$as_ac_var'}'`
30300                { echo "$as_me:$LINENO: result: $ac_res" >&5
30301 echo "${ECHO_T}$ac_res" >&6; }
30302 if test `eval echo '${'$as_ac_var'}'` = yes; then
30303   cat >>confdefs.h <<_ACEOF
30304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30305 _ACEOF
30306
30307 fi
30308 done
30309
30310 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30311 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30312 if test "${llvm_cv_c_printf_a+set}" = set; then
30313   echo $ECHO_N "(cached) $ECHO_C" >&6
30314 else
30315   ac_ext=c
30316 ac_cpp='$CPP $CPPFLAGS'
30317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30320
30321  if test "$cross_compiling" = yes; then
30322   llvmac_cv_c_printf_a=no
30323 else
30324   cat >conftest.$ac_ext <<_ACEOF
30325
30326   /* confdefs.h.  */
30327 _ACEOF
30328 cat confdefs.h >>conftest.$ac_ext
30329 cat >>conftest.$ac_ext <<_ACEOF
30330 /* end confdefs.h.  */
30331
30332 #include <stdio.h>
30333 #include <stdlib.h>
30334
30335 int
30336 main ()
30337 {
30338
30339 volatile double A, B;
30340 char Buffer[100];
30341 A = 1;
30342 A /= 10.0;
30343 sprintf(Buffer, "%a", A);
30344 B = atof(Buffer);
30345 if (A != B)
30346   return (1);
30347 if (A != 0x1.999999999999ap-4)
30348   return (1);
30349 return (0);
30350   ;
30351   return 0;
30352 }
30353 _ACEOF
30354 rm -f conftest$ac_exeext
30355 if { (ac_try="$ac_link"
30356 case "(($ac_try" in
30357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30358   *) ac_try_echo=$ac_try;;
30359 esac
30360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30361   (eval "$ac_link") 2>&5
30362   ac_status=$?
30363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30365   { (case "(($ac_try" in
30366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30367   *) ac_try_echo=$ac_try;;
30368 esac
30369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30370   (eval "$ac_try") 2>&5
30371   ac_status=$?
30372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373   (exit $ac_status); }; }; then
30374   llvm_cv_c_printf_a=yes
30375 else
30376   echo "$as_me: program exited with status $ac_status" >&5
30377 echo "$as_me: failed program was:" >&5
30378 sed 's/^/| /' conftest.$ac_ext >&5
30379
30380 ( exit $ac_status )
30381 llvmac_cv_c_printf_a=no
30382 fi
30383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30384 fi
30385
30386
30387  ac_ext=c
30388 ac_cpp='$CPP $CPPFLAGS'
30389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30392
30393 fi
30394 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30395 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30396  if test "$llvm_cv_c_printf_a" = "yes"; then
30397
30398 cat >>confdefs.h <<\_ACEOF
30399 #define HAVE_PRINTF_A 1
30400 _ACEOF
30401
30402  fi
30403
30404 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30405 # for constant arguments.  Useless!
30406 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30407 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30408 if test "${ac_cv_working_alloca_h+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 #include <alloca.h>
30418 int
30419 main ()
30420 {
30421 char *p = (char *) alloca (2 * sizeof (int));
30422                           if (p) return 0;
30423   ;
30424   return 0;
30425 }
30426 _ACEOF
30427 rm -f conftest.$ac_objext conftest$ac_exeext
30428 if { (ac_try="$ac_link"
30429 case "(($ac_try" in
30430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30431   *) ac_try_echo=$ac_try;;
30432 esac
30433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30434   (eval "$ac_link") 2>conftest.er1
30435   ac_status=$?
30436   grep -v '^ *+' conftest.er1 >conftest.err
30437   rm -f conftest.er1
30438   cat conftest.err >&5
30439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440   (exit $ac_status); } &&
30441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30442   { (case "(($ac_try" in
30443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30444   *) ac_try_echo=$ac_try;;
30445 esac
30446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30447   (eval "$ac_try") 2>&5
30448   ac_status=$?
30449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450   (exit $ac_status); }; } &&
30451          { ac_try='test -s conftest$ac_exeext'
30452   { (case "(($ac_try" in
30453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30454   *) ac_try_echo=$ac_try;;
30455 esac
30456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30457   (eval "$ac_try") 2>&5
30458   ac_status=$?
30459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460   (exit $ac_status); }; }; then
30461   ac_cv_working_alloca_h=yes
30462 else
30463   echo "$as_me: failed program was:" >&5
30464 sed 's/^/| /' conftest.$ac_ext >&5
30465
30466         ac_cv_working_alloca_h=no
30467 fi
30468
30469 rm -f core conftest.err conftest.$ac_objext \
30470       conftest$ac_exeext conftest.$ac_ext
30471 fi
30472 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30473 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30474 if test $ac_cv_working_alloca_h = yes; then
30475
30476 cat >>confdefs.h <<\_ACEOF
30477 #define HAVE_ALLOCA_H 1
30478 _ACEOF
30479
30480 fi
30481
30482 { echo "$as_me:$LINENO: checking for alloca" >&5
30483 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30484 if test "${ac_cv_func_alloca_works+set}" = set; then
30485   echo $ECHO_N "(cached) $ECHO_C" >&6
30486 else
30487   cat >conftest.$ac_ext <<_ACEOF
30488 /* confdefs.h.  */
30489 _ACEOF
30490 cat confdefs.h >>conftest.$ac_ext
30491 cat >>conftest.$ac_ext <<_ACEOF
30492 /* end confdefs.h.  */
30493 #ifdef __GNUC__
30494 # define alloca __builtin_alloca
30495 #else
30496 # ifdef _MSC_VER
30497 #  include <malloc.h>
30498 #  define alloca _alloca
30499 # else
30500 #  if HAVE_ALLOCA_H
30501 #   include <alloca.h>
30502 #  else
30503 #   ifdef _AIX
30504  #pragma alloca
30505 #   else
30506 #    ifndef alloca /* predefined by HP cc +Olibcalls */
30507 char *alloca ();
30508 #    endif
30509 #   endif
30510 #  endif
30511 # endif
30512 #endif
30513
30514 int
30515 main ()
30516 {
30517 char *p = (char *) alloca (1);
30518                                     if (p) return 0;
30519   ;
30520   return 0;
30521 }
30522 _ACEOF
30523 rm -f conftest.$ac_objext conftest$ac_exeext
30524 if { (ac_try="$ac_link"
30525 case "(($ac_try" in
30526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30527   *) ac_try_echo=$ac_try;;
30528 esac
30529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30530   (eval "$ac_link") 2>conftest.er1
30531   ac_status=$?
30532   grep -v '^ *+' conftest.er1 >conftest.err
30533   rm -f conftest.er1
30534   cat conftest.err >&5
30535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536   (exit $ac_status); } &&
30537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30538   { (case "(($ac_try" in
30539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30540   *) ac_try_echo=$ac_try;;
30541 esac
30542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30543   (eval "$ac_try") 2>&5
30544   ac_status=$?
30545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546   (exit $ac_status); }; } &&
30547          { ac_try='test -s conftest$ac_exeext'
30548   { (case "(($ac_try" in
30549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30550   *) ac_try_echo=$ac_try;;
30551 esac
30552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30553   (eval "$ac_try") 2>&5
30554   ac_status=$?
30555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556   (exit $ac_status); }; }; then
30557   ac_cv_func_alloca_works=yes
30558 else
30559   echo "$as_me: failed program was:" >&5
30560 sed 's/^/| /' conftest.$ac_ext >&5
30561
30562         ac_cv_func_alloca_works=no
30563 fi
30564
30565 rm -f core conftest.err conftest.$ac_objext \
30566       conftest$ac_exeext conftest.$ac_ext
30567 fi
30568 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30569 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30570
30571 if test $ac_cv_func_alloca_works = yes; then
30572
30573 cat >>confdefs.h <<\_ACEOF
30574 #define HAVE_ALLOCA 1
30575 _ACEOF
30576
30577 else
30578   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30579 # that cause trouble.  Some versions do not even contain alloca or
30580 # contain a buggy version.  If you still want to use their alloca,
30581 # use ar to extract alloca.o from them instead of compiling alloca.c.
30582
30583 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30584
30585 cat >>confdefs.h <<\_ACEOF
30586 #define C_ALLOCA 1
30587 _ACEOF
30588
30589
30590 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30591 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30592 if test "${ac_cv_os_cray+set}" = set; then
30593   echo $ECHO_N "(cached) $ECHO_C" >&6
30594 else
30595   cat >conftest.$ac_ext <<_ACEOF
30596 /* confdefs.h.  */
30597 _ACEOF
30598 cat confdefs.h >>conftest.$ac_ext
30599 cat >>conftest.$ac_ext <<_ACEOF
30600 /* end confdefs.h.  */
30601 #if defined CRAY && ! defined CRAY2
30602 webecray
30603 #else
30604 wenotbecray
30605 #endif
30606
30607 _ACEOF
30608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30609   $EGREP "webecray" >/dev/null 2>&1; then
30610   ac_cv_os_cray=yes
30611 else
30612   ac_cv_os_cray=no
30613 fi
30614 rm -f conftest*
30615
30616 fi
30617 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30618 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30619 if test $ac_cv_os_cray = yes; then
30620   for ac_func in _getb67 GETB67 getb67; do
30621     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30622 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30625   echo $ECHO_N "(cached) $ECHO_C" >&6
30626 else
30627   cat >conftest.$ac_ext <<_ACEOF
30628 /* confdefs.h.  */
30629 _ACEOF
30630 cat confdefs.h >>conftest.$ac_ext
30631 cat >>conftest.$ac_ext <<_ACEOF
30632 /* end confdefs.h.  */
30633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30635 #define $ac_func innocuous_$ac_func
30636
30637 /* System header to define __stub macros and hopefully few prototypes,
30638     which can conflict with char $ac_func (); below.
30639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30640     <limits.h> exists even on freestanding compilers.  */
30641
30642 #ifdef __STDC__
30643 # include <limits.h>
30644 #else
30645 # include <assert.h>
30646 #endif
30647
30648 #undef $ac_func
30649
30650 /* Override any GCC internal prototype to avoid an error.
30651    Use char because int might match the return type of a GCC
30652    builtin and then its argument prototype would still apply.  */
30653 #ifdef __cplusplus
30654 extern "C"
30655 #endif
30656 char $ac_func ();
30657 /* The GNU C library defines this for functions which it implements
30658     to always fail with ENOSYS.  Some functions are actually named
30659     something starting with __ and the normal name is an alias.  */
30660 #if defined __stub_$ac_func || defined __stub___$ac_func
30661 choke me
30662 #endif
30663
30664 int
30665 main ()
30666 {
30667 return $ac_func ();
30668   ;
30669   return 0;
30670 }
30671 _ACEOF
30672 rm -f conftest.$ac_objext conftest$ac_exeext
30673 if { (ac_try="$ac_link"
30674 case "(($ac_try" in
30675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30676   *) ac_try_echo=$ac_try;;
30677 esac
30678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30679   (eval "$ac_link") 2>conftest.er1
30680   ac_status=$?
30681   grep -v '^ *+' conftest.er1 >conftest.err
30682   rm -f conftest.er1
30683   cat conftest.err >&5
30684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685   (exit $ac_status); } &&
30686          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30687   { (case "(($ac_try" in
30688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30689   *) ac_try_echo=$ac_try;;
30690 esac
30691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30692   (eval "$ac_try") 2>&5
30693   ac_status=$?
30694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695   (exit $ac_status); }; } &&
30696          { ac_try='test -s conftest$ac_exeext'
30697   { (case "(($ac_try" in
30698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30699   *) ac_try_echo=$ac_try;;
30700 esac
30701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30702   (eval "$ac_try") 2>&5
30703   ac_status=$?
30704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705   (exit $ac_status); }; }; then
30706   eval "$as_ac_var=yes"
30707 else
30708   echo "$as_me: failed program was:" >&5
30709 sed 's/^/| /' conftest.$ac_ext >&5
30710
30711         eval "$as_ac_var=no"
30712 fi
30713
30714 rm -f core conftest.err conftest.$ac_objext \
30715       conftest$ac_exeext conftest.$ac_ext
30716 fi
30717 ac_res=`eval echo '${'$as_ac_var'}'`
30718                { echo "$as_me:$LINENO: result: $ac_res" >&5
30719 echo "${ECHO_T}$ac_res" >&6; }
30720 if test `eval echo '${'$as_ac_var'}'` = yes; then
30721
30722 cat >>confdefs.h <<_ACEOF
30723 #define CRAY_STACKSEG_END $ac_func
30724 _ACEOF
30725
30726     break
30727 fi
30728
30729   done
30730 fi
30731
30732 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30733 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30734 if test "${ac_cv_c_stack_direction+set}" = set; then
30735   echo $ECHO_N "(cached) $ECHO_C" >&6
30736 else
30737   if test "$cross_compiling" = yes; then
30738   ac_cv_c_stack_direction=0
30739 else
30740   cat >conftest.$ac_ext <<_ACEOF
30741 /* confdefs.h.  */
30742 _ACEOF
30743 cat confdefs.h >>conftest.$ac_ext
30744 cat >>conftest.$ac_ext <<_ACEOF
30745 /* end confdefs.h.  */
30746 $ac_includes_default
30747 int
30748 find_stack_direction ()
30749 {
30750   static char *addr = 0;
30751   auto char dummy;
30752   if (addr == 0)
30753     {
30754       addr = &dummy;
30755       return find_stack_direction ();
30756     }
30757   else
30758     return (&dummy > addr) ? 1 : -1;
30759 }
30760
30761 int
30762 main ()
30763 {
30764   return find_stack_direction () < 0;
30765 }
30766 _ACEOF
30767 rm -f conftest$ac_exeext
30768 if { (ac_try="$ac_link"
30769 case "(($ac_try" in
30770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30771   *) ac_try_echo=$ac_try;;
30772 esac
30773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30774   (eval "$ac_link") 2>&5
30775   ac_status=$?
30776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30778   { (case "(($ac_try" in
30779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30780   *) ac_try_echo=$ac_try;;
30781 esac
30782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30783   (eval "$ac_try") 2>&5
30784   ac_status=$?
30785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786   (exit $ac_status); }; }; then
30787   ac_cv_c_stack_direction=1
30788 else
30789   echo "$as_me: program exited with status $ac_status" >&5
30790 echo "$as_me: failed program was:" >&5
30791 sed 's/^/| /' conftest.$ac_ext >&5
30792
30793 ( exit $ac_status )
30794 ac_cv_c_stack_direction=-1
30795 fi
30796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30797 fi
30798
30799
30800 fi
30801 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30802 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30803
30804 cat >>confdefs.h <<_ACEOF
30805 #define STACK_DIRECTION $ac_cv_c_stack_direction
30806 _ACEOF
30807
30808
30809 fi
30810
30811
30812 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30813 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30814 if test "${ac_cv_func_rand48+set}" = set; then
30815   echo $ECHO_N "(cached) $ECHO_C" >&6
30816 else
30817   ac_ext=cpp
30818 ac_cpp='$CXXCPP $CPPFLAGS'
30819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30822
30823    cat >conftest.$ac_ext <<_ACEOF
30824 /* confdefs.h.  */
30825 _ACEOF
30826 cat confdefs.h >>conftest.$ac_ext
30827 cat >>conftest.$ac_ext <<_ACEOF
30828 /* end confdefs.h.  */
30829 #include <stdlib.h>
30830 int
30831 main ()
30832 {
30833 srand48(0);lrand48();drand48();
30834   ;
30835   return 0;
30836 }
30837 _ACEOF
30838 rm -f conftest.$ac_objext
30839 if { (ac_try="$ac_compile"
30840 case "(($ac_try" in
30841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30842   *) ac_try_echo=$ac_try;;
30843 esac
30844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30845   (eval "$ac_compile") 2>conftest.er1
30846   ac_status=$?
30847   grep -v '^ *+' conftest.er1 >conftest.err
30848   rm -f conftest.er1
30849   cat conftest.err >&5
30850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851   (exit $ac_status); } &&
30852          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30853   { (case "(($ac_try" in
30854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30855   *) ac_try_echo=$ac_try;;
30856 esac
30857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30858   (eval "$ac_try") 2>&5
30859   ac_status=$?
30860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861   (exit $ac_status); }; } &&
30862          { ac_try='test -s conftest.$ac_objext'
30863   { (case "(($ac_try" in
30864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30865   *) ac_try_echo=$ac_try;;
30866 esac
30867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30868   (eval "$ac_try") 2>&5
30869   ac_status=$?
30870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30871   (exit $ac_status); }; }; then
30872   ac_cv_func_rand48=yes
30873 else
30874   echo "$as_me: failed program was:" >&5
30875 sed 's/^/| /' conftest.$ac_ext >&5
30876
30877         ac_cv_func_rand48=no
30878 fi
30879
30880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30881   ac_ext=c
30882 ac_cpp='$CPP $CPPFLAGS'
30883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30886
30887 fi
30888 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30889 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
30890
30891 if test "$ac_cv_func_rand48" = "yes" ; then
30892
30893 cat >>confdefs.h <<\_ACEOF
30894 #define HAVE_RAND48 1
30895 _ACEOF
30896
30897 fi
30898
30899
30900 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30901 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
30902 if test "${ac_cv_cxx_namespaces+set}" = set; then
30903   echo $ECHO_N "(cached) $ECHO_C" >&6
30904 else
30905   ac_ext=cpp
30906 ac_cpp='$CXXCPP $CPPFLAGS'
30907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30910
30911  cat >conftest.$ac_ext <<_ACEOF
30912 /* confdefs.h.  */
30913 _ACEOF
30914 cat confdefs.h >>conftest.$ac_ext
30915 cat >>conftest.$ac_ext <<_ACEOF
30916 /* end confdefs.h.  */
30917 namespace Outer { namespace Inner { int i = 0; }}
30918 int
30919 main ()
30920 {
30921 using namespace Outer::Inner; return i;
30922   ;
30923   return 0;
30924 }
30925 _ACEOF
30926 rm -f conftest.$ac_objext
30927 if { (ac_try="$ac_compile"
30928 case "(($ac_try" in
30929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30930   *) ac_try_echo=$ac_try;;
30931 esac
30932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30933   (eval "$ac_compile") 2>conftest.er1
30934   ac_status=$?
30935   grep -v '^ *+' conftest.er1 >conftest.err
30936   rm -f conftest.er1
30937   cat conftest.err >&5
30938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939   (exit $ac_status); } &&
30940          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30941   { (case "(($ac_try" in
30942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30943   *) ac_try_echo=$ac_try;;
30944 esac
30945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30946   (eval "$ac_try") 2>&5
30947   ac_status=$?
30948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949   (exit $ac_status); }; } &&
30950          { ac_try='test -s conftest.$ac_objext'
30951   { (case "(($ac_try" in
30952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953   *) ac_try_echo=$ac_try;;
30954 esac
30955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956   (eval "$ac_try") 2>&5
30957   ac_status=$?
30958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959   (exit $ac_status); }; }; then
30960   ac_cv_cxx_namespaces=yes
30961 else
30962   echo "$as_me: failed program was:" >&5
30963 sed 's/^/| /' conftest.$ac_ext >&5
30964
30965         ac_cv_cxx_namespaces=no
30966 fi
30967
30968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30969  ac_ext=c
30970 ac_cpp='$CPP $CPPFLAGS'
30971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30974
30975
30976 fi
30977 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
30978 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
30979 if test "$ac_cv_cxx_namespaces" = yes; then
30980
30981 cat >>confdefs.h <<\_ACEOF
30982 #define HAVE_NAMESPACES
30983 _ACEOF
30984
30985 fi
30986
30987 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
30988 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
30989 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
30990   echo $ECHO_N "(cached) $ECHO_C" >&6
30991 else
30992
30993   ac_ext=cpp
30994 ac_cpp='$CXXCPP $CPPFLAGS'
30995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30998
30999   cat >conftest.$ac_ext <<_ACEOF
31000 /* confdefs.h.  */
31001 _ACEOF
31002 cat confdefs.h >>conftest.$ac_ext
31003 cat >>conftest.$ac_ext <<_ACEOF
31004 /* end confdefs.h.  */
31005 #include <ext/hash_map>
31006 #ifdef HAVE_NAMESPACES
31007 using namespace std;
31008 #endif
31009 int
31010 main ()
31011 {
31012 hash_map<int, int> t;
31013   ;
31014   return 0;
31015 }
31016 _ACEOF
31017 rm -f conftest.$ac_objext
31018 if { (ac_try="$ac_compile"
31019 case "(($ac_try" in
31020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31021   *) ac_try_echo=$ac_try;;
31022 esac
31023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31024   (eval "$ac_compile") 2>conftest.er1
31025   ac_status=$?
31026   grep -v '^ *+' conftest.er1 >conftest.err
31027   rm -f conftest.er1
31028   cat conftest.err >&5
31029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030   (exit $ac_status); } &&
31031          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31032   { (case "(($ac_try" in
31033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31034   *) ac_try_echo=$ac_try;;
31035 esac
31036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31037   (eval "$ac_try") 2>&5
31038   ac_status=$?
31039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31040   (exit $ac_status); }; } &&
31041          { ac_try='test -s conftest.$ac_objext'
31042   { (case "(($ac_try" in
31043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31044   *) ac_try_echo=$ac_try;;
31045 esac
31046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31047   (eval "$ac_try") 2>&5
31048   ac_status=$?
31049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31050   (exit $ac_status); }; }; then
31051   ac_cv_cxx_have_std_ext_hash_map=yes
31052 else
31053   echo "$as_me: failed program was:" >&5
31054 sed 's/^/| /' conftest.$ac_ext >&5
31055
31056         ac_cv_cxx_have_std_ext_hash_map=no
31057 fi
31058
31059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31060   ac_ext=c
31061 ac_cpp='$CPP $CPPFLAGS'
31062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31065
31066 fi
31067 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31068 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31069  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31070  then
31071
31072 cat >>confdefs.h <<\_ACEOF
31073 #define HAVE_STD_EXT_HASH_MAP 1
31074 _ACEOF
31075
31076  else
31077
31078 cat >>confdefs.h <<\_ACEOF
31079 #define HAVE_STD_EXT_HASH_MAP 0
31080 _ACEOF
31081
31082  fi
31083
31084  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31085 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31086 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31087   echo $ECHO_N "(cached) $ECHO_C" >&6
31088 else
31089
31090   ac_ext=cpp
31091 ac_cpp='$CXXCPP $CPPFLAGS'
31092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31095
31096   cat >conftest.$ac_ext <<_ACEOF
31097 /* confdefs.h.  */
31098 _ACEOF
31099 cat confdefs.h >>conftest.$ac_ext
31100 cat >>conftest.$ac_ext <<_ACEOF
31101 /* end confdefs.h.  */
31102 #include <ext/hash_map>
31103 #ifdef HAVE_NAMESPACES
31104 using namespace __gnu_cxx;
31105 #endif
31106 int
31107 main ()
31108 {
31109 hash_map<int,int> t;
31110   ;
31111   return 0;
31112 }
31113 _ACEOF
31114 rm -f conftest.$ac_objext
31115 if { (ac_try="$ac_compile"
31116 case "(($ac_try" in
31117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31118   *) ac_try_echo=$ac_try;;
31119 esac
31120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31121   (eval "$ac_compile") 2>conftest.er1
31122   ac_status=$?
31123   grep -v '^ *+' conftest.er1 >conftest.err
31124   rm -f conftest.er1
31125   cat conftest.err >&5
31126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127   (exit $ac_status); } &&
31128          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31129   { (case "(($ac_try" in
31130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31131   *) ac_try_echo=$ac_try;;
31132 esac
31133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31134   (eval "$ac_try") 2>&5
31135   ac_status=$?
31136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137   (exit $ac_status); }; } &&
31138          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31145   ac_status=$?
31146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147   (exit $ac_status); }; }; then
31148   ac_cv_cxx_have_gnu_ext_hash_map=yes
31149 else
31150   echo "$as_me: failed program was:" >&5
31151 sed 's/^/| /' conftest.$ac_ext >&5
31152
31153         ac_cv_cxx_have_gnu_ext_hash_map=no
31154 fi
31155
31156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31157   ac_ext=c
31158 ac_cpp='$CPP $CPPFLAGS'
31159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31162
31163 fi
31164 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31165 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31166  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31167  then
31168
31169 cat >>confdefs.h <<\_ACEOF
31170 #define HAVE_GNU_EXT_HASH_MAP 1
31171 _ACEOF
31172
31173  else
31174
31175 cat >>confdefs.h <<\_ACEOF
31176 #define HAVE_GNU_EXT_HASH_MAP 0
31177 _ACEOF
31178
31179  fi
31180
31181  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31182 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31183 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31184   echo $ECHO_N "(cached) $ECHO_C" >&6
31185 else
31186
31187   ac_ext=cpp
31188 ac_cpp='$CXXCPP $CPPFLAGS'
31189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31192
31193   cat >conftest.$ac_ext <<_ACEOF
31194 /* confdefs.h.  */
31195 _ACEOF
31196 cat confdefs.h >>conftest.$ac_ext
31197 cat >>conftest.$ac_ext <<_ACEOF
31198 /* end confdefs.h.  */
31199 #include <hash_map>
31200 int
31201 main ()
31202 {
31203 hash_map<int,int> t;
31204   ;
31205   return 0;
31206 }
31207 _ACEOF
31208 rm -f conftest.$ac_objext
31209 if { (ac_try="$ac_compile"
31210 case "(($ac_try" in
31211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31212   *) ac_try_echo=$ac_try;;
31213 esac
31214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31215   (eval "$ac_compile") 2>conftest.er1
31216   ac_status=$?
31217   grep -v '^ *+' conftest.er1 >conftest.err
31218   rm -f conftest.er1
31219   cat conftest.err >&5
31220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221   (exit $ac_status); } &&
31222          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31223   { (case "(($ac_try" in
31224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31225   *) ac_try_echo=$ac_try;;
31226 esac
31227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31228   (eval "$ac_try") 2>&5
31229   ac_status=$?
31230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231   (exit $ac_status); }; } &&
31232          { ac_try='test -s conftest.$ac_objext'
31233   { (case "(($ac_try" in
31234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31235   *) ac_try_echo=$ac_try;;
31236 esac
31237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31238   (eval "$ac_try") 2>&5
31239   ac_status=$?
31240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31241   (exit $ac_status); }; }; then
31242   ac_cv_cxx_have_global_hash_map=yes
31243 else
31244   echo "$as_me: failed program was:" >&5
31245 sed 's/^/| /' conftest.$ac_ext >&5
31246
31247         ac_cv_cxx_have_global_hash_map=no
31248 fi
31249
31250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31251   ac_ext=c
31252 ac_cpp='$CPP $CPPFLAGS'
31253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31256
31257 fi
31258 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31259 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31260  if test "$ac_cv_cxx_have_global_hash_map" = yes
31261  then
31262
31263 cat >>confdefs.h <<\_ACEOF
31264 #define HAVE_GLOBAL_HASH_MAP 1
31265 _ACEOF
31266
31267  else
31268
31269 cat >>confdefs.h <<\_ACEOF
31270 #define HAVE_GLOBAL_HASH_MAP 0
31271 _ACEOF
31272
31273  fi
31274
31275 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31276 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31277 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31278   echo $ECHO_N "(cached) $ECHO_C" >&6
31279 else
31280
31281   ac_ext=cpp
31282 ac_cpp='$CXXCPP $CPPFLAGS'
31283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31286
31287   cat >conftest.$ac_ext <<_ACEOF
31288 /* confdefs.h.  */
31289 _ACEOF
31290 cat confdefs.h >>conftest.$ac_ext
31291 cat >>conftest.$ac_ext <<_ACEOF
31292 /* end confdefs.h.  */
31293 #include <ext/hash_set>
31294 #ifdef HAVE_NAMESPACES
31295 using namespace std;
31296 #endif
31297 int
31298 main ()
31299 {
31300 hash_set<int> t;
31301   ;
31302   return 0;
31303 }
31304 _ACEOF
31305 rm -f conftest.$ac_objext
31306 if { (ac_try="$ac_compile"
31307 case "(($ac_try" in
31308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31309   *) ac_try_echo=$ac_try;;
31310 esac
31311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31312   (eval "$ac_compile") 2>conftest.er1
31313   ac_status=$?
31314   grep -v '^ *+' conftest.er1 >conftest.err
31315   rm -f conftest.er1
31316   cat conftest.err >&5
31317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318   (exit $ac_status); } &&
31319          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31320   { (case "(($ac_try" in
31321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31322   *) ac_try_echo=$ac_try;;
31323 esac
31324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31325   (eval "$ac_try") 2>&5
31326   ac_status=$?
31327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328   (exit $ac_status); }; } &&
31329          { ac_try='test -s conftest.$ac_objext'
31330   { (case "(($ac_try" in
31331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31332   *) ac_try_echo=$ac_try;;
31333 esac
31334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31335   (eval "$ac_try") 2>&5
31336   ac_status=$?
31337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338   (exit $ac_status); }; }; then
31339   ac_cv_cxx_have_std_ext_hash_set=yes
31340 else
31341   echo "$as_me: failed program was:" >&5
31342 sed 's/^/| /' conftest.$ac_ext >&5
31343
31344         ac_cv_cxx_have_std_ext_hash_set=no
31345 fi
31346
31347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31348   ac_ext=c
31349 ac_cpp='$CPP $CPPFLAGS'
31350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31353
31354 fi
31355 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31356 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31357  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31358  then
31359
31360 cat >>confdefs.h <<\_ACEOF
31361 #define HAVE_STD_EXT_HASH_SET 1
31362 _ACEOF
31363
31364  else
31365
31366 cat >>confdefs.h <<\_ACEOF
31367 #define HAVE_STD_EXT_HASH_SET 0
31368 _ACEOF
31369
31370  fi
31371
31372  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31373 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31374 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31375   echo $ECHO_N "(cached) $ECHO_C" >&6
31376 else
31377
31378   ac_ext=cpp
31379 ac_cpp='$CXXCPP $CPPFLAGS'
31380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31383
31384   cat >conftest.$ac_ext <<_ACEOF
31385 /* confdefs.h.  */
31386 _ACEOF
31387 cat confdefs.h >>conftest.$ac_ext
31388 cat >>conftest.$ac_ext <<_ACEOF
31389 /* end confdefs.h.  */
31390 #include <ext/hash_set>
31391 #ifdef HAVE_NAMESPACES
31392 using namespace __gnu_cxx;
31393 #endif
31394 int
31395 main ()
31396 {
31397 hash_set<int> t;
31398   ;
31399   return 0;
31400 }
31401 _ACEOF
31402 rm -f conftest.$ac_objext
31403 if { (ac_try="$ac_compile"
31404 case "(($ac_try" in
31405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31406   *) ac_try_echo=$ac_try;;
31407 esac
31408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31409   (eval "$ac_compile") 2>conftest.er1
31410   ac_status=$?
31411   grep -v '^ *+' conftest.er1 >conftest.err
31412   rm -f conftest.er1
31413   cat conftest.err >&5
31414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31415   (exit $ac_status); } &&
31416          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31417   { (case "(($ac_try" in
31418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31419   *) ac_try_echo=$ac_try;;
31420 esac
31421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31422   (eval "$ac_try") 2>&5
31423   ac_status=$?
31424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31425   (exit $ac_status); }; } &&
31426          { ac_try='test -s conftest.$ac_objext'
31427   { (case "(($ac_try" in
31428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31429   *) ac_try_echo=$ac_try;;
31430 esac
31431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31432   (eval "$ac_try") 2>&5
31433   ac_status=$?
31434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435   (exit $ac_status); }; }; then
31436   ac_cv_cxx_have_gnu_ext_hash_set=yes
31437 else
31438   echo "$as_me: failed program was:" >&5
31439 sed 's/^/| /' conftest.$ac_ext >&5
31440
31441         ac_cv_cxx_have_gnu_ext_hash_set=no
31442 fi
31443
31444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31445   ac_ext=c
31446 ac_cpp='$CPP $CPPFLAGS'
31447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31450
31451 fi
31452 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31453 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31454  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31455  then
31456
31457 cat >>confdefs.h <<\_ACEOF
31458 #define HAVE_GNU_EXT_HASH_SET 1
31459 _ACEOF
31460
31461  else
31462
31463 cat >>confdefs.h <<\_ACEOF
31464 #define HAVE_GNU_EXT_HASH_SET 0
31465 _ACEOF
31466
31467  fi
31468
31469  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31470 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31471 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31472   echo $ECHO_N "(cached) $ECHO_C" >&6
31473 else
31474
31475   ac_ext=cpp
31476 ac_cpp='$CXXCPP $CPPFLAGS'
31477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31480
31481   cat >conftest.$ac_ext <<_ACEOF
31482 /* confdefs.h.  */
31483 _ACEOF
31484 cat confdefs.h >>conftest.$ac_ext
31485 cat >>conftest.$ac_ext <<_ACEOF
31486 /* end confdefs.h.  */
31487 #include <hash_set>
31488 int
31489 main ()
31490 {
31491 hash_set<int> t; return 0;
31492   ;
31493   return 0;
31494 }
31495 _ACEOF
31496 rm -f conftest.$ac_objext
31497 if { (ac_try="$ac_compile"
31498 case "(($ac_try" in
31499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31500   *) ac_try_echo=$ac_try;;
31501 esac
31502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31503   (eval "$ac_compile") 2>conftest.er1
31504   ac_status=$?
31505   grep -v '^ *+' conftest.er1 >conftest.err
31506   rm -f conftest.er1
31507   cat conftest.err >&5
31508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31509   (exit $ac_status); } &&
31510          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31511   { (case "(($ac_try" in
31512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31513   *) ac_try_echo=$ac_try;;
31514 esac
31515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31516   (eval "$ac_try") 2>&5
31517   ac_status=$?
31518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519   (exit $ac_status); }; } &&
31520          { ac_try='test -s conftest.$ac_objext'
31521   { (case "(($ac_try" in
31522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31523   *) ac_try_echo=$ac_try;;
31524 esac
31525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31526   (eval "$ac_try") 2>&5
31527   ac_status=$?
31528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529   (exit $ac_status); }; }; then
31530   ac_cv_cxx_have_global_hash_set=yes
31531 else
31532   echo "$as_me: failed program was:" >&5
31533 sed 's/^/| /' conftest.$ac_ext >&5
31534
31535         ac_cv_cxx_have_global_hash_set=no
31536 fi
31537
31538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31539   ac_ext=c
31540 ac_cpp='$CPP $CPPFLAGS'
31541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31544
31545 fi
31546 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31547 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31548  if test "$ac_cv_cxx_have_global_hash_set" = yes
31549  then
31550
31551 cat >>confdefs.h <<\_ACEOF
31552 #define HAVE_GLOBAL_HASH_SET 1
31553 _ACEOF
31554
31555  else
31556
31557 cat >>confdefs.h <<\_ACEOF
31558 #define HAVE_GLOBAL_HASH_SET 0
31559 _ACEOF
31560
31561  fi
31562
31563 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31564 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31565 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31566   echo $ECHO_N "(cached) $ECHO_C" >&6
31567 else
31568
31569   ac_ext=cpp
31570 ac_cpp='$CXXCPP $CPPFLAGS'
31571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31574
31575   cat >conftest.$ac_ext <<_ACEOF
31576 /* confdefs.h.  */
31577 _ACEOF
31578 cat confdefs.h >>conftest.$ac_ext
31579 cat >>conftest.$ac_ext <<_ACEOF
31580 /* end confdefs.h.  */
31581 #include <iterator>
31582 #ifdef HAVE_NAMESPACES
31583 using namespace std;
31584 #endif
31585 int
31586 main ()
31587 {
31588 iterator<int,int,int> t; return 0;
31589   ;
31590   return 0;
31591 }
31592 _ACEOF
31593 rm -f conftest.$ac_objext
31594 if { (ac_try="$ac_compile"
31595 case "(($ac_try" in
31596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31597   *) ac_try_echo=$ac_try;;
31598 esac
31599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31600   (eval "$ac_compile") 2>conftest.er1
31601   ac_status=$?
31602   grep -v '^ *+' conftest.er1 >conftest.err
31603   rm -f conftest.er1
31604   cat conftest.err >&5
31605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606   (exit $ac_status); } &&
31607          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31608   { (case "(($ac_try" in
31609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31610   *) ac_try_echo=$ac_try;;
31611 esac
31612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31613   (eval "$ac_try") 2>&5
31614   ac_status=$?
31615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616   (exit $ac_status); }; } &&
31617          { ac_try='test -s conftest.$ac_objext'
31618   { (case "(($ac_try" in
31619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31620   *) ac_try_echo=$ac_try;;
31621 esac
31622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31623   (eval "$ac_try") 2>&5
31624   ac_status=$?
31625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626   (exit $ac_status); }; }; then
31627   ac_cv_cxx_have_std_iterator=yes
31628 else
31629   echo "$as_me: failed program was:" >&5
31630 sed 's/^/| /' conftest.$ac_ext >&5
31631
31632         ac_cv_cxx_have_std_iterator=no
31633 fi
31634
31635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31636   ac_ext=c
31637 ac_cpp='$CPP $CPPFLAGS'
31638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31641
31642
31643 fi
31644 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31645 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
31646 if test "$ac_cv_cxx_have_std_iterator" = yes
31647 then
31648
31649 cat >>confdefs.h <<\_ACEOF
31650 #define HAVE_STD_ITERATOR 1
31651 _ACEOF
31652
31653 else
31654
31655 cat >>confdefs.h <<\_ACEOF
31656 #define HAVE_STD_ITERATOR 0
31657 _ACEOF
31658
31659 fi
31660
31661 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31662 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
31663 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31664   echo $ECHO_N "(cached) $ECHO_C" >&6
31665 else
31666
31667   ac_ext=cpp
31668 ac_cpp='$CXXCPP $CPPFLAGS'
31669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31672
31673   cat >conftest.$ac_ext <<_ACEOF
31674 /* confdefs.h.  */
31675 _ACEOF
31676 cat confdefs.h >>conftest.$ac_ext
31677 cat >>conftest.$ac_ext <<_ACEOF
31678 /* end confdefs.h.  */
31679 #include <iterator>
31680 #ifdef HAVE_NAMESPACES
31681 using namespace std;
31682 #endif
31683 int
31684 main ()
31685 {
31686 bidirectional_iterator<int,int> t; return 0;
31687   ;
31688   return 0;
31689 }
31690 _ACEOF
31691 rm -f conftest.$ac_objext
31692 if { (ac_try="$ac_compile"
31693 case "(($ac_try" in
31694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31695   *) ac_try_echo=$ac_try;;
31696 esac
31697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31698   (eval "$ac_compile") 2>conftest.er1
31699   ac_status=$?
31700   grep -v '^ *+' conftest.er1 >conftest.err
31701   rm -f conftest.er1
31702   cat conftest.err >&5
31703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31704   (exit $ac_status); } &&
31705          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31706   { (case "(($ac_try" in
31707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31708   *) ac_try_echo=$ac_try;;
31709 esac
31710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31711   (eval "$ac_try") 2>&5
31712   ac_status=$?
31713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714   (exit $ac_status); }; } &&
31715          { ac_try='test -s conftest.$ac_objext'
31716   { (case "(($ac_try" in
31717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31718   *) ac_try_echo=$ac_try;;
31719 esac
31720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31721   (eval "$ac_try") 2>&5
31722   ac_status=$?
31723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724   (exit $ac_status); }; }; then
31725   ac_cv_cxx_have_bi_iterator=yes
31726 else
31727   echo "$as_me: failed program was:" >&5
31728 sed 's/^/| /' conftest.$ac_ext >&5
31729
31730         ac_cv_cxx_have_bi_iterator=no
31731 fi
31732
31733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31734   ac_ext=c
31735 ac_cpp='$CPP $CPPFLAGS'
31736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31739
31740
31741 fi
31742 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31743 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
31744 if test "$ac_cv_cxx_have_bi_iterator" = yes
31745 then
31746
31747 cat >>confdefs.h <<\_ACEOF
31748 #define HAVE_BI_ITERATOR 1
31749 _ACEOF
31750
31751 else
31752
31753 cat >>confdefs.h <<\_ACEOF
31754 #define HAVE_BI_ITERATOR 0
31755 _ACEOF
31756
31757 fi
31758
31759 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31760 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
31761 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31762   echo $ECHO_N "(cached) $ECHO_C" >&6
31763 else
31764
31765   ac_ext=cpp
31766 ac_cpp='$CXXCPP $CPPFLAGS'
31767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31770
31771   cat >conftest.$ac_ext <<_ACEOF
31772 /* confdefs.h.  */
31773 _ACEOF
31774 cat confdefs.h >>conftest.$ac_ext
31775 cat >>conftest.$ac_ext <<_ACEOF
31776 /* end confdefs.h.  */
31777 #include <iterator>
31778 #ifdef HAVE_NAMESPACES
31779 using namespace std;
31780 #endif
31781 int
31782 main ()
31783 {
31784 forward_iterator<int,int> t; return 0;
31785   ;
31786   return 0;
31787 }
31788 _ACEOF
31789 rm -f conftest.$ac_objext
31790 if { (ac_try="$ac_compile"
31791 case "(($ac_try" in
31792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31793   *) ac_try_echo=$ac_try;;
31794 esac
31795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31796   (eval "$ac_compile") 2>conftest.er1
31797   ac_status=$?
31798   grep -v '^ *+' conftest.er1 >conftest.err
31799   rm -f conftest.er1
31800   cat conftest.err >&5
31801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31802   (exit $ac_status); } &&
31803          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31804   { (case "(($ac_try" in
31805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31806   *) ac_try_echo=$ac_try;;
31807 esac
31808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31809   (eval "$ac_try") 2>&5
31810   ac_status=$?
31811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812   (exit $ac_status); }; } &&
31813          { ac_try='test -s conftest.$ac_objext'
31814   { (case "(($ac_try" in
31815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31816   *) ac_try_echo=$ac_try;;
31817 esac
31818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31819   (eval "$ac_try") 2>&5
31820   ac_status=$?
31821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822   (exit $ac_status); }; }; then
31823   ac_cv_cxx_have_fwd_iterator=yes
31824 else
31825   echo "$as_me: failed program was:" >&5
31826 sed 's/^/| /' conftest.$ac_ext >&5
31827
31828         ac_cv_cxx_have_fwd_iterator=no
31829 fi
31830
31831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31832   ac_ext=c
31833 ac_cpp='$CPP $CPPFLAGS'
31834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31837
31838
31839 fi
31840 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31841 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
31842 if test "$ac_cv_cxx_have_fwd_iterator" = yes
31843 then
31844
31845 cat >>confdefs.h <<\_ACEOF
31846 #define HAVE_FWD_ITERATOR 1
31847 _ACEOF
31848
31849 else
31850
31851 cat >>confdefs.h <<\_ACEOF
31852 #define HAVE_FWD_ITERATOR 0
31853 _ACEOF
31854
31855 fi
31856
31857
31858 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31859 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
31860 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31861   echo $ECHO_N "(cached) $ECHO_C" >&6
31862 else
31863   ac_ext=cpp
31864 ac_cpp='$CXXCPP $CPPFLAGS'
31865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31868
31869    cat >conftest.$ac_ext <<_ACEOF
31870 /* confdefs.h.  */
31871 _ACEOF
31872 cat confdefs.h >>conftest.$ac_ext
31873 cat >>conftest.$ac_ext <<_ACEOF
31874 /* end confdefs.h.  */
31875 #include <math.h>
31876 int
31877 main ()
31878 {
31879 float f; isnan(f);
31880   ;
31881   return 0;
31882 }
31883 _ACEOF
31884 rm -f conftest.$ac_objext
31885 if { (ac_try="$ac_compile"
31886 case "(($ac_try" in
31887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31888   *) ac_try_echo=$ac_try;;
31889 esac
31890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31891   (eval "$ac_compile") 2>conftest.er1
31892   ac_status=$?
31893   grep -v '^ *+' conftest.er1 >conftest.err
31894   rm -f conftest.er1
31895   cat conftest.err >&5
31896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897   (exit $ac_status); } &&
31898          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31899   { (case "(($ac_try" in
31900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31901   *) ac_try_echo=$ac_try;;
31902 esac
31903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31904   (eval "$ac_try") 2>&5
31905   ac_status=$?
31906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907   (exit $ac_status); }; } &&
31908          { ac_try='test -s conftest.$ac_objext'
31909   { (case "(($ac_try" in
31910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31911   *) ac_try_echo=$ac_try;;
31912 esac
31913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31914   (eval "$ac_try") 2>&5
31915   ac_status=$?
31916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917   (exit $ac_status); }; }; then
31918   ac_cv_func_isnan_in_math_h=yes
31919 else
31920   echo "$as_me: failed program was:" >&5
31921 sed 's/^/| /' conftest.$ac_ext >&5
31922
31923         ac_cv_func_isnan_in_math_h=no
31924 fi
31925
31926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31927   ac_ext=c
31928 ac_cpp='$CPP $CPPFLAGS'
31929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31932
31933 fi
31934 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
31935 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
31936
31937
31938 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
31939
31940 cat >>confdefs.h <<\_ACEOF
31941 #define HAVE_ISNAN_IN_MATH_H 1
31942 _ACEOF
31943
31944 fi
31945
31946 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
31947 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
31948 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
31949   echo $ECHO_N "(cached) $ECHO_C" >&6
31950 else
31951   ac_ext=cpp
31952 ac_cpp='$CXXCPP $CPPFLAGS'
31953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31956
31957    cat >conftest.$ac_ext <<_ACEOF
31958 /* confdefs.h.  */
31959 _ACEOF
31960 cat confdefs.h >>conftest.$ac_ext
31961 cat >>conftest.$ac_ext <<_ACEOF
31962 /* end confdefs.h.  */
31963 #include <cmath>
31964 int
31965 main ()
31966 {
31967 float f; isnan(f);
31968   ;
31969   return 0;
31970 }
31971 _ACEOF
31972 rm -f conftest.$ac_objext
31973 if { (ac_try="$ac_compile"
31974 case "(($ac_try" in
31975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31976   *) ac_try_echo=$ac_try;;
31977 esac
31978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31979   (eval "$ac_compile") 2>conftest.er1
31980   ac_status=$?
31981   grep -v '^ *+' conftest.er1 >conftest.err
31982   rm -f conftest.er1
31983   cat conftest.err >&5
31984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985   (exit $ac_status); } &&
31986          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31987   { (case "(($ac_try" in
31988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31989   *) ac_try_echo=$ac_try;;
31990 esac
31991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31992   (eval "$ac_try") 2>&5
31993   ac_status=$?
31994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995   (exit $ac_status); }; } &&
31996          { ac_try='test -s conftest.$ac_objext'
31997   { (case "(($ac_try" in
31998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31999   *) ac_try_echo=$ac_try;;
32000 esac
32001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32002   (eval "$ac_try") 2>&5
32003   ac_status=$?
32004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005   (exit $ac_status); }; }; then
32006   ac_cv_func_isnan_in_cmath=yes
32007 else
32008   echo "$as_me: failed program was:" >&5
32009 sed 's/^/| /' conftest.$ac_ext >&5
32010
32011         ac_cv_func_isnan_in_cmath=no
32012 fi
32013
32014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32015   ac_ext=c
32016 ac_cpp='$CPP $CPPFLAGS'
32017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32020
32021 fi
32022 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32023 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32024
32025 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32026
32027 cat >>confdefs.h <<\_ACEOF
32028 #define HAVE_ISNAN_IN_CMATH 1
32029 _ACEOF
32030
32031 fi
32032
32033 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32034 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32035 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32036   echo $ECHO_N "(cached) $ECHO_C" >&6
32037 else
32038   ac_ext=cpp
32039 ac_cpp='$CXXCPP $CPPFLAGS'
32040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32043
32044    cat >conftest.$ac_ext <<_ACEOF
32045 /* confdefs.h.  */
32046 _ACEOF
32047 cat confdefs.h >>conftest.$ac_ext
32048 cat >>conftest.$ac_ext <<_ACEOF
32049 /* end confdefs.h.  */
32050 #include <cmath>
32051 int
32052 main ()
32053 {
32054 float f; std::isnan(f);
32055   ;
32056   return 0;
32057 }
32058 _ACEOF
32059 rm -f conftest.$ac_objext
32060 if { (ac_try="$ac_compile"
32061 case "(($ac_try" in
32062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32063   *) ac_try_echo=$ac_try;;
32064 esac
32065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32066   (eval "$ac_compile") 2>conftest.er1
32067   ac_status=$?
32068   grep -v '^ *+' conftest.er1 >conftest.err
32069   rm -f conftest.er1
32070   cat conftest.err >&5
32071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072   (exit $ac_status); } &&
32073          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32074   { (case "(($ac_try" in
32075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32076   *) ac_try_echo=$ac_try;;
32077 esac
32078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32079   (eval "$ac_try") 2>&5
32080   ac_status=$?
32081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32082   (exit $ac_status); }; } &&
32083          { ac_try='test -s conftest.$ac_objext'
32084   { (case "(($ac_try" in
32085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32086   *) ac_try_echo=$ac_try;;
32087 esac
32088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32089   (eval "$ac_try") 2>&5
32090   ac_status=$?
32091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32092   (exit $ac_status); }; }; then
32093   ac_cv_func_std_isnan_in_cmath=yes
32094 else
32095   echo "$as_me: failed program was:" >&5
32096 sed 's/^/| /' conftest.$ac_ext >&5
32097
32098         ac_cv_func_std_isnan_in_cmath=no
32099 fi
32100
32101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32102   ac_ext=c
32103 ac_cpp='$CPP $CPPFLAGS'
32104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32107
32108 fi
32109 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32110 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32111
32112 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32113
32114 cat >>confdefs.h <<\_ACEOF
32115 #define HAVE_STD_ISNAN_IN_CMATH 1
32116 _ACEOF
32117
32118 fi
32119
32120
32121 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32122 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32123 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32124   echo $ECHO_N "(cached) $ECHO_C" >&6
32125 else
32126   ac_ext=cpp
32127 ac_cpp='$CXXCPP $CPPFLAGS'
32128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32131
32132    cat >conftest.$ac_ext <<_ACEOF
32133 /* confdefs.h.  */
32134 _ACEOF
32135 cat confdefs.h >>conftest.$ac_ext
32136 cat >>conftest.$ac_ext <<_ACEOF
32137 /* end confdefs.h.  */
32138 #include <math.h>
32139 int
32140 main ()
32141 {
32142 float f; isinf(f);
32143   ;
32144   return 0;
32145 }
32146 _ACEOF
32147 rm -f conftest.$ac_objext
32148 if { (ac_try="$ac_compile"
32149 case "(($ac_try" in
32150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32151   *) ac_try_echo=$ac_try;;
32152 esac
32153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32154   (eval "$ac_compile") 2>conftest.er1
32155   ac_status=$?
32156   grep -v '^ *+' conftest.er1 >conftest.err
32157   rm -f conftest.er1
32158   cat conftest.err >&5
32159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160   (exit $ac_status); } &&
32161          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32162   { (case "(($ac_try" in
32163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32164   *) ac_try_echo=$ac_try;;
32165 esac
32166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32167   (eval "$ac_try") 2>&5
32168   ac_status=$?
32169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170   (exit $ac_status); }; } &&
32171          { ac_try='test -s conftest.$ac_objext'
32172   { (case "(($ac_try" in
32173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32174   *) ac_try_echo=$ac_try;;
32175 esac
32176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32177   (eval "$ac_try") 2>&5
32178   ac_status=$?
32179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32180   (exit $ac_status); }; }; then
32181   ac_cv_func_isinf_in_math_h=yes
32182 else
32183   echo "$as_me: failed program was:" >&5
32184 sed 's/^/| /' conftest.$ac_ext >&5
32185
32186         ac_cv_func_isinf_in_math_h=no
32187 fi
32188
32189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32190   ac_ext=c
32191 ac_cpp='$CPP $CPPFLAGS'
32192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32195
32196 fi
32197 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32198 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32199
32200 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32201
32202 cat >>confdefs.h <<\_ACEOF
32203 #define HAVE_ISINF_IN_MATH_H 1
32204 _ACEOF
32205
32206 fi
32207
32208 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32209 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32210 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32211   echo $ECHO_N "(cached) $ECHO_C" >&6
32212 else
32213   ac_ext=cpp
32214 ac_cpp='$CXXCPP $CPPFLAGS'
32215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32218
32219    cat >conftest.$ac_ext <<_ACEOF
32220 /* confdefs.h.  */
32221 _ACEOF
32222 cat confdefs.h >>conftest.$ac_ext
32223 cat >>conftest.$ac_ext <<_ACEOF
32224 /* end confdefs.h.  */
32225 #include <cmath>
32226 int
32227 main ()
32228 {
32229 float f; isinf(f);
32230   ;
32231   return 0;
32232 }
32233 _ACEOF
32234 rm -f conftest.$ac_objext
32235 if { (ac_try="$ac_compile"
32236 case "(($ac_try" in
32237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32238   *) ac_try_echo=$ac_try;;
32239 esac
32240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32241   (eval "$ac_compile") 2>conftest.er1
32242   ac_status=$?
32243   grep -v '^ *+' conftest.er1 >conftest.err
32244   rm -f conftest.er1
32245   cat conftest.err >&5
32246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247   (exit $ac_status); } &&
32248          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32249   { (case "(($ac_try" in
32250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32251   *) ac_try_echo=$ac_try;;
32252 esac
32253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32254   (eval "$ac_try") 2>&5
32255   ac_status=$?
32256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257   (exit $ac_status); }; } &&
32258          { ac_try='test -s conftest.$ac_objext'
32259   { (case "(($ac_try" in
32260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32261   *) ac_try_echo=$ac_try;;
32262 esac
32263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32264   (eval "$ac_try") 2>&5
32265   ac_status=$?
32266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267   (exit $ac_status); }; }; then
32268   ac_cv_func_isinf_in_cmath=yes
32269 else
32270   echo "$as_me: failed program was:" >&5
32271 sed 's/^/| /' conftest.$ac_ext >&5
32272
32273         ac_cv_func_isinf_in_cmath=no
32274 fi
32275
32276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32277   ac_ext=c
32278 ac_cpp='$CPP $CPPFLAGS'
32279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32282
32283 fi
32284 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32285 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32286
32287 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32288
32289 cat >>confdefs.h <<\_ACEOF
32290 #define HAVE_ISINF_IN_CMATH 1
32291 _ACEOF
32292
32293 fi
32294
32295 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32296 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32297 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32298   echo $ECHO_N "(cached) $ECHO_C" >&6
32299 else
32300   ac_ext=cpp
32301 ac_cpp='$CXXCPP $CPPFLAGS'
32302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32305
32306    cat >conftest.$ac_ext <<_ACEOF
32307 /* confdefs.h.  */
32308 _ACEOF
32309 cat confdefs.h >>conftest.$ac_ext
32310 cat >>conftest.$ac_ext <<_ACEOF
32311 /* end confdefs.h.  */
32312 #include <cmath>
32313 int
32314 main ()
32315 {
32316 float f; std::isinf(f)}
32317   ;
32318   return 0;
32319 }
32320 _ACEOF
32321 rm -f conftest.$ac_objext
32322 if { (ac_try="$ac_compile"
32323 case "(($ac_try" in
32324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32325   *) ac_try_echo=$ac_try;;
32326 esac
32327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32328   (eval "$ac_compile") 2>conftest.er1
32329   ac_status=$?
32330   grep -v '^ *+' conftest.er1 >conftest.err
32331   rm -f conftest.er1
32332   cat conftest.err >&5
32333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334   (exit $ac_status); } &&
32335          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32336   { (case "(($ac_try" in
32337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32338   *) ac_try_echo=$ac_try;;
32339 esac
32340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32341   (eval "$ac_try") 2>&5
32342   ac_status=$?
32343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32344   (exit $ac_status); }; } &&
32345          { ac_try='test -s conftest.$ac_objext'
32346   { (case "(($ac_try" in
32347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32348   *) ac_try_echo=$ac_try;;
32349 esac
32350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32351   (eval "$ac_try") 2>&5
32352   ac_status=$?
32353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354   (exit $ac_status); }; }; then
32355   ac_cv_func_std_isinf_in_cmath=yes
32356 else
32357   echo "$as_me: failed program was:" >&5
32358 sed 's/^/| /' conftest.$ac_ext >&5
32359
32360         ac_cv_func_std_isinf_in_cmath=no
32361 fi
32362
32363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32364   ac_ext=c
32365 ac_cpp='$CPP $CPPFLAGS'
32366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32369
32370 fi
32371 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32372 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32373
32374 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32375
32376 cat >>confdefs.h <<\_ACEOF
32377 #define HAVE_STD_ISINF_IN_CMATH 1
32378 _ACEOF
32379
32380 fi
32381
32382 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32383 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32384 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32385   echo $ECHO_N "(cached) $ECHO_C" >&6
32386 else
32387   ac_ext=cpp
32388 ac_cpp='$CXXCPP $CPPFLAGS'
32389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32392
32393    cat >conftest.$ac_ext <<_ACEOF
32394 /* confdefs.h.  */
32395 _ACEOF
32396 cat confdefs.h >>conftest.$ac_ext
32397 cat >>conftest.$ac_ext <<_ACEOF
32398 /* end confdefs.h.  */
32399 #include <ieeefp.h>
32400 int
32401 main ()
32402 {
32403 float f; finite(f);
32404   ;
32405   return 0;
32406 }
32407 _ACEOF
32408 rm -f conftest.$ac_objext
32409 if { (ac_try="$ac_compile"
32410 case "(($ac_try" in
32411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32412   *) ac_try_echo=$ac_try;;
32413 esac
32414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32415   (eval "$ac_compile") 2>conftest.er1
32416   ac_status=$?
32417   grep -v '^ *+' conftest.er1 >conftest.err
32418   rm -f conftest.er1
32419   cat conftest.err >&5
32420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32421   (exit $ac_status); } &&
32422          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32423   { (case "(($ac_try" in
32424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32425   *) ac_try_echo=$ac_try;;
32426 esac
32427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32428   (eval "$ac_try") 2>&5
32429   ac_status=$?
32430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32431   (exit $ac_status); }; } &&
32432          { ac_try='test -s conftest.$ac_objext'
32433   { (case "(($ac_try" in
32434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32435   *) ac_try_echo=$ac_try;;
32436 esac
32437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32438   (eval "$ac_try") 2>&5
32439   ac_status=$?
32440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32441   (exit $ac_status); }; }; then
32442   ac_cv_func_finite_in_ieeefp_h=yes
32443 else
32444   echo "$as_me: failed program was:" >&5
32445 sed 's/^/| /' conftest.$ac_ext >&5
32446
32447         ac_cv_func_finite_in_ieeefp_h=no
32448 fi
32449
32450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32451   ac_ext=c
32452 ac_cpp='$CPP $CPPFLAGS'
32453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32456
32457 fi
32458 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32459 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32460
32461 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32462
32463 cat >>confdefs.h <<\_ACEOF
32464 #define HAVE_FINITE_IN_IEEEFP_H 1
32465 _ACEOF
32466
32467 fi
32468
32469
32470
32471
32472
32473 for ac_header in stdlib.h unistd.h
32474 do
32475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32477   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32480   echo $ECHO_N "(cached) $ECHO_C" >&6
32481 fi
32482 ac_res=`eval echo '${'$as_ac_Header'}'`
32483                { echo "$as_me:$LINENO: result: $ac_res" >&5
32484 echo "${ECHO_T}$ac_res" >&6; }
32485 else
32486   # Is the header compilable?
32487 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32489 cat >conftest.$ac_ext <<_ACEOF
32490 /* confdefs.h.  */
32491 _ACEOF
32492 cat confdefs.h >>conftest.$ac_ext
32493 cat >>conftest.$ac_ext <<_ACEOF
32494 /* end confdefs.h.  */
32495 $ac_includes_default
32496 #include <$ac_header>
32497 _ACEOF
32498 rm -f conftest.$ac_objext
32499 if { (ac_try="$ac_compile"
32500 case "(($ac_try" in
32501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32502   *) ac_try_echo=$ac_try;;
32503 esac
32504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32505   (eval "$ac_compile") 2>conftest.er1
32506   ac_status=$?
32507   grep -v '^ *+' conftest.er1 >conftest.err
32508   rm -f conftest.er1
32509   cat conftest.err >&5
32510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511   (exit $ac_status); } &&
32512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32513   { (case "(($ac_try" in
32514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32515   *) ac_try_echo=$ac_try;;
32516 esac
32517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32518   (eval "$ac_try") 2>&5
32519   ac_status=$?
32520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32521   (exit $ac_status); }; } &&
32522          { ac_try='test -s conftest.$ac_objext'
32523   { (case "(($ac_try" in
32524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32525   *) ac_try_echo=$ac_try;;
32526 esac
32527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32528   (eval "$ac_try") 2>&5
32529   ac_status=$?
32530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32531   (exit $ac_status); }; }; then
32532   ac_header_compiler=yes
32533 else
32534   echo "$as_me: failed program was:" >&5
32535 sed 's/^/| /' conftest.$ac_ext >&5
32536
32537         ac_header_compiler=no
32538 fi
32539
32540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32542 echo "${ECHO_T}$ac_header_compiler" >&6; }
32543
32544 # Is the header present?
32545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32547 cat >conftest.$ac_ext <<_ACEOF
32548 /* confdefs.h.  */
32549 _ACEOF
32550 cat confdefs.h >>conftest.$ac_ext
32551 cat >>conftest.$ac_ext <<_ACEOF
32552 /* end confdefs.h.  */
32553 #include <$ac_header>
32554 _ACEOF
32555 if { (ac_try="$ac_cpp conftest.$ac_ext"
32556 case "(($ac_try" in
32557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32558   *) ac_try_echo=$ac_try;;
32559 esac
32560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32562   ac_status=$?
32563   grep -v '^ *+' conftest.er1 >conftest.err
32564   rm -f conftest.er1
32565   cat conftest.err >&5
32566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567   (exit $ac_status); } >/dev/null; then
32568   if test -s conftest.err; then
32569     ac_cpp_err=$ac_c_preproc_warn_flag
32570     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32571   else
32572     ac_cpp_err=
32573   fi
32574 else
32575   ac_cpp_err=yes
32576 fi
32577 if test -z "$ac_cpp_err"; then
32578   ac_header_preproc=yes
32579 else
32580   echo "$as_me: failed program was:" >&5
32581 sed 's/^/| /' conftest.$ac_ext >&5
32582
32583   ac_header_preproc=no
32584 fi
32585
32586 rm -f conftest.err conftest.$ac_ext
32587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32588 echo "${ECHO_T}$ac_header_preproc" >&6; }
32589
32590 # So?  What about this header?
32591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32592   yes:no: )
32593     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32595     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32597     ac_header_preproc=yes
32598     ;;
32599   no:yes:* )
32600     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32602     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32603 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32604     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32606     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32607 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32610     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32612     ( cat <<\_ASBOX
32613 ## ----------------------------------- ##
32614 ## Report this to llvmbugs@cs.uiuc.edu ##
32615 ## ----------------------------------- ##
32616 _ASBOX
32617      ) | sed "s/^/$as_me: WARNING:     /" >&2
32618     ;;
32619 esac
32620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32623   echo $ECHO_N "(cached) $ECHO_C" >&6
32624 else
32625   eval "$as_ac_Header=\$ac_header_preproc"
32626 fi
32627 ac_res=`eval echo '${'$as_ac_Header'}'`
32628                { echo "$as_me:$LINENO: result: $ac_res" >&5
32629 echo "${ECHO_T}$ac_res" >&6; }
32630
32631 fi
32632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32633   cat >>confdefs.h <<_ACEOF
32634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32635 _ACEOF
32636
32637 fi
32638
32639 done
32640
32641
32642 for ac_func in getpagesize
32643 do
32644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32645 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32648   echo $ECHO_N "(cached) $ECHO_C" >&6
32649 else
32650   cat >conftest.$ac_ext <<_ACEOF
32651 /* confdefs.h.  */
32652 _ACEOF
32653 cat confdefs.h >>conftest.$ac_ext
32654 cat >>conftest.$ac_ext <<_ACEOF
32655 /* end confdefs.h.  */
32656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32657    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32658 #define $ac_func innocuous_$ac_func
32659
32660 /* System header to define __stub macros and hopefully few prototypes,
32661     which can conflict with char $ac_func (); below.
32662     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32663     <limits.h> exists even on freestanding compilers.  */
32664
32665 #ifdef __STDC__
32666 # include <limits.h>
32667 #else
32668 # include <assert.h>
32669 #endif
32670
32671 #undef $ac_func
32672
32673 /* Override any GCC internal prototype to avoid an error.
32674    Use char because int might match the return type of a GCC
32675    builtin and then its argument prototype would still apply.  */
32676 #ifdef __cplusplus
32677 extern "C"
32678 #endif
32679 char $ac_func ();
32680 /* The GNU C library defines this for functions which it implements
32681     to always fail with ENOSYS.  Some functions are actually named
32682     something starting with __ and the normal name is an alias.  */
32683 #if defined __stub_$ac_func || defined __stub___$ac_func
32684 choke me
32685 #endif
32686
32687 int
32688 main ()
32689 {
32690 return $ac_func ();
32691   ;
32692   return 0;
32693 }
32694 _ACEOF
32695 rm -f conftest.$ac_objext conftest$ac_exeext
32696 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
32703   ac_status=$?
32704   grep -v '^ *+' conftest.er1 >conftest.err
32705   rm -f conftest.er1
32706   cat conftest.err >&5
32707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708   (exit $ac_status); } &&
32709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32710   { (case "(($ac_try" in
32711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32712   *) ac_try_echo=$ac_try;;
32713 esac
32714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32715   (eval "$ac_try") 2>&5
32716   ac_status=$?
32717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32718   (exit $ac_status); }; } &&
32719          { ac_try='test -s conftest$ac_exeext'
32720   { (case "(($ac_try" in
32721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32722   *) ac_try_echo=$ac_try;;
32723 esac
32724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32725   (eval "$ac_try") 2>&5
32726   ac_status=$?
32727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728   (exit $ac_status); }; }; then
32729   eval "$as_ac_var=yes"
32730 else
32731   echo "$as_me: failed program was:" >&5
32732 sed 's/^/| /' conftest.$ac_ext >&5
32733
32734         eval "$as_ac_var=no"
32735 fi
32736
32737 rm -f core conftest.err conftest.$ac_objext \
32738       conftest$ac_exeext conftest.$ac_ext
32739 fi
32740 ac_res=`eval echo '${'$as_ac_var'}'`
32741                { echo "$as_me:$LINENO: result: $ac_res" >&5
32742 echo "${ECHO_T}$ac_res" >&6; }
32743 if test `eval echo '${'$as_ac_var'}'` = yes; then
32744   cat >>confdefs.h <<_ACEOF
32745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32746 _ACEOF
32747
32748 fi
32749 done
32750
32751 { echo "$as_me:$LINENO: checking for working mmap" >&5
32752 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
32753 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32754   echo $ECHO_N "(cached) $ECHO_C" >&6
32755 else
32756   if test "$cross_compiling" = yes; then
32757   ac_cv_func_mmap_fixed_mapped=no
32758 else
32759   cat >conftest.$ac_ext <<_ACEOF
32760 /* confdefs.h.  */
32761 _ACEOF
32762 cat confdefs.h >>conftest.$ac_ext
32763 cat >>conftest.$ac_ext <<_ACEOF
32764 /* end confdefs.h.  */
32765 $ac_includes_default
32766 /* malloc might have been renamed as rpl_malloc. */
32767 #undef malloc
32768
32769 /* Thanks to Mike Haertel and Jim Avera for this test.
32770    Here is a matrix of mmap possibilities:
32771         mmap private not fixed
32772         mmap private fixed at somewhere currently unmapped
32773         mmap private fixed at somewhere already mapped
32774         mmap shared not fixed
32775         mmap shared fixed at somewhere currently unmapped
32776         mmap shared fixed at somewhere already mapped
32777    For private mappings, we should verify that changes cannot be read()
32778    back from the file, nor mmap's back from the file at a different
32779    address.  (There have been systems where private was not correctly
32780    implemented like the infamous i386 svr4.0, and systems where the
32781    VM page cache was not coherent with the file system buffer cache
32782    like early versions of FreeBSD and possibly contemporary NetBSD.)
32783    For shared mappings, we should conversely verify that changes get
32784    propagated back to all the places they're supposed to be.
32785
32786    Grep wants private fixed already mapped.
32787    The main things grep needs to know about mmap are:
32788    * does it exist and is it safe to write into the mmap'd area
32789    * how to use it (BSD variants)  */
32790
32791 #include <fcntl.h>
32792 #include <sys/mman.h>
32793
32794 #if !STDC_HEADERS && !HAVE_STDLIB_H
32795 char *malloc ();
32796 #endif
32797
32798 /* This mess was copied from the GNU getpagesize.h.  */
32799 #if !HAVE_GETPAGESIZE
32800 /* Assume that all systems that can run configure have sys/param.h.  */
32801 # if !HAVE_SYS_PARAM_H
32802 #  define HAVE_SYS_PARAM_H 1
32803 # endif
32804
32805 # ifdef _SC_PAGESIZE
32806 #  define getpagesize() sysconf(_SC_PAGESIZE)
32807 # else /* no _SC_PAGESIZE */
32808 #  if HAVE_SYS_PARAM_H
32809 #   include <sys/param.h>
32810 #   ifdef EXEC_PAGESIZE
32811 #    define getpagesize() EXEC_PAGESIZE
32812 #   else /* no EXEC_PAGESIZE */
32813 #    ifdef NBPG
32814 #     define getpagesize() NBPG * CLSIZE
32815 #     ifndef CLSIZE
32816 #      define CLSIZE 1
32817 #     endif /* no CLSIZE */
32818 #    else /* no NBPG */
32819 #     ifdef NBPC
32820 #      define getpagesize() NBPC
32821 #     else /* no NBPC */
32822 #      ifdef PAGESIZE
32823 #       define getpagesize() PAGESIZE
32824 #      endif /* PAGESIZE */
32825 #     endif /* no NBPC */
32826 #    endif /* no NBPG */
32827 #   endif /* no EXEC_PAGESIZE */
32828 #  else /* no HAVE_SYS_PARAM_H */
32829 #   define getpagesize() 8192   /* punt totally */
32830 #  endif /* no HAVE_SYS_PARAM_H */
32831 # endif /* no _SC_PAGESIZE */
32832
32833 #endif /* no HAVE_GETPAGESIZE */
32834
32835 int
32836 main ()
32837 {
32838   char *data, *data2, *data3;
32839   int i, pagesize;
32840   int fd;
32841
32842   pagesize = getpagesize ();
32843
32844   /* First, make a file with some known garbage in it. */
32845   data = (char *) malloc (pagesize);
32846   if (!data)
32847     return 1;
32848   for (i = 0; i < pagesize; ++i)
32849     *(data + i) = rand ();
32850   umask (0);
32851   fd = creat ("conftest.mmap", 0600);
32852   if (fd < 0)
32853     return 1;
32854   if (write (fd, data, pagesize) != pagesize)
32855     return 1;
32856   close (fd);
32857
32858   /* Next, try to mmap the file at a fixed address which already has
32859      something else allocated at it.  If we can, also make sure that
32860      we see the same garbage.  */
32861   fd = open ("conftest.mmap", O_RDWR);
32862   if (fd < 0)
32863     return 1;
32864   data2 = (char *) malloc (2 * pagesize);
32865   if (!data2)
32866     return 1;
32867   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
32868   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
32869                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
32870     return 1;
32871   for (i = 0; i < pagesize; ++i)
32872     if (*(data + i) != *(data2 + i))
32873       return 1;
32874
32875   /* Finally, make sure that changes to the mapped area do not
32876      percolate back to the file as seen by read().  (This is a bug on
32877      some variants of i386 svr4.0.)  */
32878   for (i = 0; i < pagesize; ++i)
32879     *(data2 + i) = *(data2 + i) + 1;
32880   data3 = (char *) malloc (pagesize);
32881   if (!data3)
32882     return 1;
32883   if (read (fd, data3, pagesize) != pagesize)
32884     return 1;
32885   for (i = 0; i < pagesize; ++i)
32886     if (*(data + i) != *(data3 + i))
32887       return 1;
32888   close (fd);
32889   return 0;
32890 }
32891 _ACEOF
32892 rm -f conftest$ac_exeext
32893 if { (ac_try="$ac_link"
32894 case "(($ac_try" in
32895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32896   *) ac_try_echo=$ac_try;;
32897 esac
32898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32899   (eval "$ac_link") 2>&5
32900   ac_status=$?
32901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32903   { (case "(($ac_try" in
32904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32905   *) ac_try_echo=$ac_try;;
32906 esac
32907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32908   (eval "$ac_try") 2>&5
32909   ac_status=$?
32910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32911   (exit $ac_status); }; }; then
32912   ac_cv_func_mmap_fixed_mapped=yes
32913 else
32914   echo "$as_me: program exited with status $ac_status" >&5
32915 echo "$as_me: failed program was:" >&5
32916 sed 's/^/| /' conftest.$ac_ext >&5
32917
32918 ( exit $ac_status )
32919 ac_cv_func_mmap_fixed_mapped=no
32920 fi
32921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32922 fi
32923
32924
32925 fi
32926 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
32927 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
32928 if test $ac_cv_func_mmap_fixed_mapped = yes; then
32929
32930 cat >>confdefs.h <<\_ACEOF
32931 #define HAVE_MMAP 1
32932 _ACEOF
32933
32934 fi
32935 rm -f conftest.mmap
32936
32937 { echo "$as_me:$LINENO: checking for mmap of files" >&5
32938 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
32939 if test "${ac_cv_func_mmap_file+set}" = set; then
32940   echo $ECHO_N "(cached) $ECHO_C" >&6
32941 else
32942    ac_ext=c
32943 ac_cpp='$CPP $CPPFLAGS'
32944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32947
32948   if test "$cross_compiling" = yes; then
32949   ac_cv_func_mmap_file=no
32950 else
32951   cat >conftest.$ac_ext <<_ACEOF
32952
32953     /* confdefs.h.  */
32954 _ACEOF
32955 cat confdefs.h >>conftest.$ac_ext
32956 cat >>conftest.$ac_ext <<_ACEOF
32957 /* end confdefs.h.  */
32958
32959 #include <sys/types.h>
32960 #include <sys/mman.h>
32961 #include <fcntl.h>
32962
32963 int
32964 main ()
32965 {
32966
32967   int fd;
32968   fd = creat ("foo",0777);
32969   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
32970   unlink ("foo");
32971   return (fd != (int) MAP_FAILED);
32972   ;
32973   return 0;
32974 }
32975 _ACEOF
32976 rm -f conftest$ac_exeext
32977 if { (ac_try="$ac_link"
32978 case "(($ac_try" in
32979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32980   *) ac_try_echo=$ac_try;;
32981 esac
32982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32983   (eval "$ac_link") 2>&5
32984   ac_status=$?
32985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32987   { (case "(($ac_try" in
32988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32989   *) ac_try_echo=$ac_try;;
32990 esac
32991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32992   (eval "$ac_try") 2>&5
32993   ac_status=$?
32994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32995   (exit $ac_status); }; }; then
32996   ac_cv_func_mmap_file=yes
32997 else
32998   echo "$as_me: program exited with status $ac_status" >&5
32999 echo "$as_me: failed program was:" >&5
33000 sed 's/^/| /' conftest.$ac_ext >&5
33001
33002 ( exit $ac_status )
33003 ac_cv_func_mmap_file=no
33004 fi
33005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33006 fi
33007
33008
33009   ac_ext=c
33010 ac_cpp='$CPP $CPPFLAGS'
33011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33014
33015
33016 fi
33017 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33018 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33019 if test "$ac_cv_func_mmap_file" = yes; then
33020
33021 cat >>confdefs.h <<\_ACEOF
33022 #define HAVE_MMAP_FILE
33023 _ACEOF
33024
33025    MMAP_FILE=yes
33026
33027 fi
33028
33029 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33030 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33031 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33032   echo $ECHO_N "(cached) $ECHO_C" >&6
33033 else
33034   if test "$llvm_cv_os_type" = "Interix" ; then
33035    ac_cv_need_dev_zero_for_mmap=yes
33036  else
33037    ac_cv_need_dev_zero_for_mmap=no
33038  fi
33039
33040 fi
33041 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33042 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33043 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33044
33045 cat >>confdefs.h <<\_ACEOF
33046 #define NEED_DEV_ZERO_FOR_MMAP 1
33047 _ACEOF
33048
33049 fi
33050 { echo "$as_me:$LINENO: checking for mprotect" >&5
33051 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
33052 if test "${ac_cv_func_mprotect+set}" = set; then
33053   echo $ECHO_N "(cached) $ECHO_C" >&6
33054 else
33055   cat >conftest.$ac_ext <<_ACEOF
33056 /* confdefs.h.  */
33057 _ACEOF
33058 cat confdefs.h >>conftest.$ac_ext
33059 cat >>conftest.$ac_ext <<_ACEOF
33060 /* end confdefs.h.  */
33061 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33063 #define mprotect innocuous_mprotect
33064
33065 /* System header to define __stub macros and hopefully few prototypes,
33066     which can conflict with char mprotect (); below.
33067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33068     <limits.h> exists even on freestanding compilers.  */
33069
33070 #ifdef __STDC__
33071 # include <limits.h>
33072 #else
33073 # include <assert.h>
33074 #endif
33075
33076 #undef mprotect
33077
33078 /* Override any GCC internal prototype to avoid an error.
33079    Use char because int might match the return type of a GCC
33080    builtin and then its argument prototype would still apply.  */
33081 #ifdef __cplusplus
33082 extern "C"
33083 #endif
33084 char mprotect ();
33085 /* The GNU C library defines this for functions which it implements
33086     to always fail with ENOSYS.  Some functions are actually named
33087     something starting with __ and the normal name is an alias.  */
33088 #if defined __stub_mprotect || defined __stub___mprotect
33089 choke me
33090 #endif
33091
33092 int
33093 main ()
33094 {
33095 return mprotect ();
33096   ;
33097   return 0;
33098 }
33099 _ACEOF
33100 rm -f conftest.$ac_objext conftest$ac_exeext
33101 if { (ac_try="$ac_link"
33102 case "(($ac_try" in
33103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33104   *) ac_try_echo=$ac_try;;
33105 esac
33106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33107   (eval "$ac_link") 2>conftest.er1
33108   ac_status=$?
33109   grep -v '^ *+' conftest.er1 >conftest.err
33110   rm -f conftest.er1
33111   cat conftest.err >&5
33112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33113   (exit $ac_status); } &&
33114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33115   { (case "(($ac_try" in
33116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33117   *) ac_try_echo=$ac_try;;
33118 esac
33119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33120   (eval "$ac_try") 2>&5
33121   ac_status=$?
33122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33123   (exit $ac_status); }; } &&
33124          { ac_try='test -s conftest$ac_exeext'
33125   { (case "(($ac_try" in
33126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33127   *) ac_try_echo=$ac_try;;
33128 esac
33129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33130   (eval "$ac_try") 2>&5
33131   ac_status=$?
33132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33133   (exit $ac_status); }; }; then
33134   ac_cv_func_mprotect=yes
33135 else
33136   echo "$as_me: failed program was:" >&5
33137 sed 's/^/| /' conftest.$ac_ext >&5
33138
33139         ac_cv_func_mprotect=no
33140 fi
33141
33142 rm -f core conftest.err conftest.$ac_objext \
33143       conftest$ac_exeext conftest.$ac_ext
33144 fi
33145 { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33146 echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
33147 if test $ac_cv_func_mprotect = yes; then
33148   :
33149 else
33150   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33151 echo "$as_me: error: Function mprotect() required but not found" >&2;}
33152    { (exit 1); exit 1; }; }
33153 fi
33154
33155
33156 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33157 then
33158   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33159 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33160 fi
33161 if test "$ac_cv_func_mmap_file" = "no"
33162 then
33163   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33164 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33165 fi
33166
33167
33168 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33169 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33170 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33171   echo $ECHO_N "(cached) $ECHO_C" >&6
33172 else
33173   llvm_cv_llvmgcc_sanity="no"
33174 if test -x "$LLVMGCC" ; then
33175   cp /dev/null conftest.c
33176   "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
33177   if test $? -eq 0 ; then
33178     llvm_cv_llvmgcc_sanity="yes"
33179   fi
33180   rm conftest.c
33181 fi
33182 fi
33183 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33184 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33185
33186 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33187   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33188   LLVMCC1=$llvmcc1path
33189
33190   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33191   LLVMCC1PLUS=$llvmcc1pluspath
33192
33193   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33194   LLVMGCCDIR=$llvmgccdir
33195
33196   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33197   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33198   LLVMGCC_VERSION=$llvmgccversion
33199
33200   LLVMGCC_MAJVERS=$llvmgccmajvers
33201
33202 fi
33203
33204 SHLIBEXT=$libltdl_cv_shlibext
33205
33206
33207 # Translate the various configuration directories and other basic
33208 # information into substitutions that will end up in Makefile.config.in
33209 # that these configured values can be used by the makefiles
33210 if test "${prefix}" == "NONE" ; then
33211   prefix="/usr/local"
33212 fi
33213 eval LLVM_PREFIX="${prefix}";
33214 eval LLVM_BINDIR="${prefix}/bin";
33215 eval LLVM_LIBDIR="${prefix}/lib";
33216 eval LLVM_DATADIR="${prefix}/share/llvm";
33217 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33218 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33219 eval LLVM_INCLUDEDIR="${prefix}/include";
33220 eval LLVM_INFODIR="${prefix}/info";
33221 eval LLVM_MANDIR="${prefix}/man";
33222 LLVM_CONFIGTIME=`date`
33223
33224
33225
33226
33227
33228
33229
33230
33231
33232
33233
33234 # Place the various directores into the config.h file as #defines so that we
33235 # can know about the installation paths within LLVM.
33236
33237 cat >>confdefs.h <<_ACEOF
33238 #define LLVM_PREFIX "$LLVM_PREFIX"
33239 _ACEOF
33240
33241
33242 cat >>confdefs.h <<_ACEOF
33243 #define LLVM_BINDIR "$LLVM_BINDIR"
33244 _ACEOF
33245
33246
33247 cat >>confdefs.h <<_ACEOF
33248 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33249 _ACEOF
33250
33251
33252 cat >>confdefs.h <<_ACEOF
33253 #define LLVM_DATADIR "$LLVM_DATADIR"
33254 _ACEOF
33255
33256
33257 cat >>confdefs.h <<_ACEOF
33258 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33259 _ACEOF
33260
33261
33262 cat >>confdefs.h <<_ACEOF
33263 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33264 _ACEOF
33265
33266
33267 cat >>confdefs.h <<_ACEOF
33268 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33269 _ACEOF
33270
33271
33272 cat >>confdefs.h <<_ACEOF
33273 #define LLVM_INFODIR "$LLVM_INFODIR"
33274 _ACEOF
33275
33276
33277 cat >>confdefs.h <<_ACEOF
33278 #define LLVM_MANDIR "$LLVM_MANDIR"
33279 _ACEOF
33280
33281
33282 cat >>confdefs.h <<_ACEOF
33283 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33284 _ACEOF
33285
33286
33287
33288 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33289
33290 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33291
33292 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33293
33294 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33295
33296 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33297
33298
33299 ac_config_files="$ac_config_files Makefile.config"
33300
33301
33302 ac_config_files="$ac_config_files llvm.spec"
33303
33304
33305 ac_config_files="$ac_config_files docs/doxygen.cfg"
33306
33307
33308 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33309
33310
33311 ac_config_commands="$ac_config_commands setup"
33312
33313 ac_config_commands="$ac_config_commands Makefile"
33314
33315
33316 ac_config_commands="$ac_config_commands Makefile.common"
33317
33318
33319 ac_config_commands="$ac_config_commands examples/Makefile"
33320
33321
33322 ac_config_commands="$ac_config_commands lib/Makefile"
33323
33324
33325 ac_config_commands="$ac_config_commands runtime/Makefile"
33326
33327
33328 ac_config_commands="$ac_config_commands test/Makefile"
33329
33330
33331 ac_config_commands="$ac_config_commands test/Makefile.tests"
33332
33333
33334 ac_config_commands="$ac_config_commands tools/Makefile"
33335
33336
33337 ac_config_commands="$ac_config_commands utils/Makefile"
33338
33339
33340 ac_config_commands="$ac_config_commands projects/Makefile"
33341
33342
33343
33344 cat >confcache <<\_ACEOF
33345 # This file is a shell script that caches the results of configure
33346 # tests run on this system so they can be shared between configure
33347 # scripts and configure runs, see configure's option --config-cache.
33348 # It is not useful on other systems.  If it contains results you don't
33349 # want to keep, you may remove or edit it.
33350 #
33351 # config.status only pays attention to the cache file if you give it
33352 # the --recheck option to rerun configure.
33353 #
33354 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33355 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33356 # following values.
33357
33358 _ACEOF
33359
33360 # The following way of writing the cache mishandles newlines in values,
33361 # but we know of no workaround that is simple, portable, and efficient.
33362 # So, we kill variables containing newlines.
33363 # Ultrix sh set writes to stderr and can't be redirected directly,
33364 # and sets the high bit in the cache file unless we assign to the vars.
33365 (
33366   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33367     eval ac_val=\$$ac_var
33368     case $ac_val in #(
33369     *${as_nl}*)
33370       case $ac_var in #(
33371       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33372 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33373       esac
33374       case $ac_var in #(
33375       _ | IFS | as_nl) ;; #(
33376       *) $as_unset $ac_var ;;
33377       esac ;;
33378     esac
33379   done
33380
33381   (set) 2>&1 |
33382     case $as_nl`(ac_space=' '; set) 2>&1` in #(
33383     *${as_nl}ac_space=\ *)
33384       # `set' does not quote correctly, so add quotes (double-quote
33385       # substitution turns \\\\ into \\, and sed turns \\ into \).
33386       sed -n \
33387         "s/'/'\\\\''/g;
33388           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33389       ;; #(
33390     *)
33391       # `set' quotes correctly as required by POSIX, so do not add quotes.
33392       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33393       ;;
33394     esac |
33395     sort
33396 ) |
33397   sed '
33398      /^ac_cv_env_/b end
33399      t clear
33400      :clear
33401      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33402      t end
33403      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33404      :end' >>confcache
33405 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33406   if test -w "$cache_file"; then
33407     test "x$cache_file" != "x/dev/null" &&
33408       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33409 echo "$as_me: updating cache $cache_file" >&6;}
33410     cat confcache >$cache_file
33411   else
33412     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33413 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33414   fi
33415 fi
33416 rm -f confcache
33417
33418 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33419 # Let make expand exec_prefix.
33420 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33421
33422 DEFS=-DHAVE_CONFIG_H
33423
33424 ac_libobjs=
33425 ac_ltlibobjs=
33426 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33427   # 1. Remove the extension, and $U if already installed.
33428   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33429   ac_i=`echo "$ac_i" | sed "$ac_script"`
33430   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33431   #    will be set to the directory where LIBOBJS objects are built.
33432   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33433   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33434 done
33435 LIBOBJS=$ac_libobjs
33436
33437 LTLIBOBJS=$ac_ltlibobjs
33438
33439
33440 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33441   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33442 Usually this means the macro was only invoked conditionally." >&5
33443 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33444 Usually this means the macro was only invoked conditionally." >&2;}
33445    { (exit 1); exit 1; }; }
33446 fi
33447 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33448   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33449 Usually this means the macro was only invoked conditionally." >&5
33450 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33451 Usually this means the macro was only invoked conditionally." >&2;}
33452    { (exit 1); exit 1; }; }
33453 fi
33454
33455 : ${CONFIG_STATUS=./config.status}
33456 ac_clean_files_save=$ac_clean_files
33457 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33458 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33459 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33460 cat >$CONFIG_STATUS <<_ACEOF
33461 #! $SHELL
33462 # Generated by $as_me.
33463 # Run this file to recreate the current configuration.
33464 # Compiler output produced by configure, useful for debugging
33465 # configure, is in config.log if it exists.
33466
33467 debug=false
33468 ac_cs_recheck=false
33469 ac_cs_silent=false
33470 SHELL=\${CONFIG_SHELL-$SHELL}
33471 _ACEOF
33472
33473 cat >>$CONFIG_STATUS <<\_ACEOF
33474 ## --------------------- ##
33475 ## M4sh Initialization.  ##
33476 ## --------------------- ##
33477
33478 # Be Bourne compatible
33479 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33480   emulate sh
33481   NULLCMD=:
33482   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33483   # is contrary to our usage.  Disable this feature.
33484   alias -g '${1+"$@"}'='"$@"'
33485   setopt NO_GLOB_SUBST
33486 else
33487   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33488 fi
33489 BIN_SH=xpg4; export BIN_SH # for Tru64
33490 DUALCASE=1; export DUALCASE # for MKS sh
33491
33492
33493 # PATH needs CR
33494 # Avoid depending upon Character Ranges.
33495 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33496 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33497 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33498 as_cr_digits='0123456789'
33499 as_cr_alnum=$as_cr_Letters$as_cr_digits
33500
33501 # The user is always right.
33502 if test "${PATH_SEPARATOR+set}" != set; then
33503   echo "#! /bin/sh" >conf$$.sh
33504   echo  "exit 0"   >>conf$$.sh
33505   chmod +x conf$$.sh
33506   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33507     PATH_SEPARATOR=';'
33508   else
33509     PATH_SEPARATOR=:
33510   fi
33511   rm -f conf$$.sh
33512 fi
33513
33514 # Support unset when possible.
33515 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33516   as_unset=unset
33517 else
33518   as_unset=false
33519 fi
33520
33521
33522 # IFS
33523 # We need space, tab and new line, in precisely that order.  Quoting is
33524 # there to prevent editors from complaining about space-tab.
33525 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33526 # splitting by setting IFS to empty value.)
33527 as_nl='
33528 '
33529 IFS=" ""        $as_nl"
33530
33531 # Find who we are.  Look in the path if we contain no directory separator.
33532 case $0 in
33533   *[\\/]* ) as_myself=$0 ;;
33534   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33535 for as_dir in $PATH
33536 do
33537   IFS=$as_save_IFS
33538   test -z "$as_dir" && as_dir=.
33539   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33540 done
33541 IFS=$as_save_IFS
33542
33543      ;;
33544 esac
33545 # We did not find ourselves, most probably we were run as `sh COMMAND'
33546 # in which case we are not to be found in the path.
33547 if test "x$as_myself" = x; then
33548   as_myself=$0
33549 fi
33550 if test ! -f "$as_myself"; then
33551   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33552   { (exit 1); exit 1; }
33553 fi
33554
33555 # Work around bugs in pre-3.0 UWIN ksh.
33556 for as_var in ENV MAIL MAILPATH
33557 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33558 done
33559 PS1='$ '
33560 PS2='> '
33561 PS4='+ '
33562
33563 # NLS nuisances.
33564 for as_var in \
33565   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33566   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33567   LC_TELEPHONE LC_TIME
33568 do
33569   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33570     eval $as_var=C; export $as_var
33571   else
33572     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33573   fi
33574 done
33575
33576 # Required to use basename.
33577 if expr a : '\(a\)' >/dev/null 2>&1 &&
33578    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33579   as_expr=expr
33580 else
33581   as_expr=false
33582 fi
33583
33584 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33585   as_basename=basename
33586 else
33587   as_basename=false
33588 fi
33589
33590
33591 # Name of the executable.
33592 as_me=`$as_basename -- "$0" ||
33593 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33594          X"$0" : 'X\(//\)$' \| \
33595          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33596 echo X/"$0" |
33597     sed '/^.*\/\([^/][^/]*\)\/*$/{
33598             s//\1/
33599             q
33600           }
33601           /^X\/\(\/\/\)$/{
33602             s//\1/
33603             q
33604           }
33605           /^X\/\(\/\).*/{
33606             s//\1/
33607             q
33608           }
33609           s/.*/./; q'`
33610
33611 # CDPATH.
33612 $as_unset CDPATH
33613
33614
33615
33616   as_lineno_1=$LINENO
33617   as_lineno_2=$LINENO
33618   test "x$as_lineno_1" != "x$as_lineno_2" &&
33619   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33620
33621   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33622   # uniformly replaced by the line number.  The first 'sed' inserts a
33623   # line-number line after each line using $LINENO; the second 'sed'
33624   # does the real work.  The second script uses 'N' to pair each
33625   # line-number line with the line containing $LINENO, and appends
33626   # trailing '-' during substitution so that $LINENO is not a special
33627   # case at line end.
33628   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33629   # scripts with optimization help from Paolo Bonzini.  Blame Lee
33630   # E. McMahon (1931-1989) for sed's syntax.  :-)
33631   sed -n '
33632     p
33633     /[$]LINENO/=
33634   ' <$as_myself |
33635     sed '
33636       s/[$]LINENO.*/&-/
33637       t lineno
33638       b
33639       :lineno
33640       N
33641       :loop
33642       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33643       t loop
33644       s/-\n.*//
33645     ' >$as_me.lineno &&
33646   chmod +x "$as_me.lineno" ||
33647     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33648    { (exit 1); exit 1; }; }
33649
33650   # Don't try to exec as it changes $[0], causing all sort of problems
33651   # (the dirname of $[0] is not the place where we might find the
33652   # original and so on.  Autoconf is especially sensitive to this).
33653   . "./$as_me.lineno"
33654   # Exit status is that of the last command.
33655   exit
33656 }
33657
33658
33659 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33660   as_dirname=dirname
33661 else
33662   as_dirname=false
33663 fi
33664
33665 ECHO_C= ECHO_N= ECHO_T=
33666 case `echo -n x` in
33667 -n*)
33668   case `echo 'x\c'` in
33669   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
33670   *)   ECHO_C='\c';;
33671   esac;;
33672 *)
33673   ECHO_N='-n';;
33674 esac
33675
33676 if expr a : '\(a\)' >/dev/null 2>&1 &&
33677    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33678   as_expr=expr
33679 else
33680   as_expr=false
33681 fi
33682
33683 rm -f conf$$ conf$$.exe conf$$.file
33684 if test -d conf$$.dir; then
33685   rm -f conf$$.dir/conf$$.file
33686 else
33687   rm -f conf$$.dir
33688   mkdir conf$$.dir
33689 fi
33690 echo >conf$$.file
33691 if ln -s conf$$.file conf$$ 2>/dev/null; then
33692   as_ln_s='ln -s'
33693   # ... but there are two gotchas:
33694   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33695   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33696   # In both cases, we have to default to `cp -p'.
33697   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33698     as_ln_s='cp -p'
33699 elif ln conf$$.file conf$$ 2>/dev/null; then
33700   as_ln_s=ln
33701 else
33702   as_ln_s='cp -p'
33703 fi
33704 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33705 rmdir conf$$.dir 2>/dev/null
33706
33707 if mkdir -p . 2>/dev/null; then
33708   as_mkdir_p=:
33709 else
33710   test -d ./-p && rmdir ./-p
33711   as_mkdir_p=false
33712 fi
33713
33714 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
33715 # systems may use methods other than mode bits to determine executability.
33716 cat >conf$$.file <<_ASEOF
33717 #! /bin/sh
33718 exit 0
33719 _ASEOF
33720 chmod +x conf$$.file
33721 if test -x conf$$.file >/dev/null 2>&1; then
33722   as_executable_p="test -x"
33723 else
33724   as_executable_p=:
33725 fi
33726 rm -f conf$$.file
33727
33728 # Sed expression to map a string onto a valid CPP name.
33729 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33730
33731 # Sed expression to map a string onto a valid variable name.
33732 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33733
33734
33735 exec 6>&1
33736
33737 # Save the log message, to keep $[0] and so on meaningful, and to
33738 # report actual input values of CONFIG_FILES etc. instead of their
33739 # values after options handling.
33740 ac_log="
33741 This file was extended by llvm $as_me 1.9cvs, which was
33742 generated by GNU Autoconf 2.60.  Invocation command line was
33743
33744   CONFIG_FILES    = $CONFIG_FILES
33745   CONFIG_HEADERS  = $CONFIG_HEADERS
33746   CONFIG_LINKS    = $CONFIG_LINKS
33747   CONFIG_COMMANDS = $CONFIG_COMMANDS
33748   $ $0 $@
33749
33750 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33751 "
33752
33753 _ACEOF
33754
33755 cat >>$CONFIG_STATUS <<_ACEOF
33756 # Files that config.status was made for.
33757 config_files="$ac_config_files"
33758 config_headers="$ac_config_headers"
33759 config_commands="$ac_config_commands"
33760
33761 _ACEOF
33762
33763 cat >>$CONFIG_STATUS <<\_ACEOF
33764 ac_cs_usage="\
33765 \`$as_me' instantiates files from templates according to the
33766 current configuration.
33767
33768 Usage: $0 [OPTIONS] [FILE]...
33769
33770   -h, --help       print this help, then exit
33771   -V, --version    print version number, then exit
33772   -q, --quiet      do not print progress messages
33773   -d, --debug      don't remove temporary files
33774       --recheck    update $as_me by reconfiguring in the same conditions
33775   --file=FILE[:TEMPLATE]
33776                    instantiate the configuration file FILE
33777   --header=FILE[:TEMPLATE]
33778                    instantiate the configuration header FILE
33779
33780 Configuration files:
33781 $config_files
33782
33783 Configuration headers:
33784 $config_headers
33785
33786 Configuration commands:
33787 $config_commands
33788
33789 Report bugs to <bug-autoconf@gnu.org>."
33790
33791 _ACEOF
33792 cat >>$CONFIG_STATUS <<_ACEOF
33793 ac_cs_version="\\
33794 llvm config.status 1.9cvs
33795 configured by $0, generated by GNU Autoconf 2.60,
33796   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33797
33798 Copyright (C) 2006 Free Software Foundation, Inc.
33799 This config.status script is free software; the Free Software Foundation
33800 gives unlimited permission to copy, distribute and modify it."
33801
33802 ac_pwd='$ac_pwd'
33803 srcdir='$srcdir'
33804 INSTALL='$INSTALL'
33805 _ACEOF
33806
33807 cat >>$CONFIG_STATUS <<\_ACEOF
33808 # If no file are specified by the user, then we need to provide default
33809 # value.  By we need to know if files were specified by the user.
33810 ac_need_defaults=:
33811 while test $# != 0
33812 do
33813   case $1 in
33814   --*=*)
33815     ac_option=`expr "X$1" : 'X\([^=]*\)='`
33816     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33817     ac_shift=:
33818     ;;
33819   *)
33820     ac_option=$1
33821     ac_optarg=$2
33822     ac_shift=shift
33823     ;;
33824   esac
33825
33826   case $ac_option in
33827   # Handling of the options.
33828   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33829     ac_cs_recheck=: ;;
33830   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33831     echo "$ac_cs_version"; exit ;;
33832   --debug | --debu | --deb | --de | --d | -d )
33833     debug=: ;;
33834   --file | --fil | --fi | --f )
33835     $ac_shift
33836     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33837     ac_need_defaults=false;;
33838   --header | --heade | --head | --hea )
33839     $ac_shift
33840     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33841     ac_need_defaults=false;;
33842   --he | --h)
33843     # Conflict between --help and --header
33844     { echo "$as_me: error: ambiguous option: $1
33845 Try \`$0 --help' for more information." >&2
33846    { (exit 1); exit 1; }; };;
33847   --help | --hel | -h )
33848     echo "$ac_cs_usage"; exit ;;
33849   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33850   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33851     ac_cs_silent=: ;;
33852
33853   # This is an error.
33854   -*) { echo "$as_me: error: unrecognized option: $1
33855 Try \`$0 --help' for more information." >&2
33856    { (exit 1); exit 1; }; } ;;
33857
33858   *) ac_config_targets="$ac_config_targets $1"
33859      ac_need_defaults=false ;;
33860
33861   esac
33862   shift
33863 done
33864
33865 ac_configure_extra_args=
33866
33867 if $ac_cs_silent; then
33868   exec 6>/dev/null
33869   ac_configure_extra_args="$ac_configure_extra_args --silent"
33870 fi
33871
33872 _ACEOF
33873 cat >>$CONFIG_STATUS <<_ACEOF
33874 if \$ac_cs_recheck; then
33875   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33876   CONFIG_SHELL=$SHELL
33877   export CONFIG_SHELL
33878   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33879 fi
33880
33881 _ACEOF
33882 cat >>$CONFIG_STATUS <<\_ACEOF
33883 exec 5>>config.log
33884 {
33885   echo
33886   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33887 ## Running $as_me. ##
33888 _ASBOX
33889   echo "$ac_log"
33890 } >&5
33891
33892 _ACEOF
33893 cat >>$CONFIG_STATUS <<_ACEOF
33894 #
33895 # INIT-COMMANDS
33896 #
33897 llvm_src="${srcdir}"
33898
33899 _ACEOF
33900
33901 cat >>$CONFIG_STATUS <<\_ACEOF
33902
33903 # Handling of arguments.
33904 for ac_config_target in $ac_config_targets
33905 do
33906   case $ac_config_target in
33907     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
33908     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
33909     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
33910     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
33911     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
33912     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
33913     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
33914     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
33915     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
33916     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
33917     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
33918     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
33919     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
33920     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
33921     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
33922     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
33923     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
33924     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
33925     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
33926     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
33927
33928   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33929 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33930    { (exit 1); exit 1; }; };;
33931   esac
33932 done
33933
33934
33935 # If the user did not use the arguments to specify the items to instantiate,
33936 # then the envvar interface is used.  Set only those that are not.
33937 # We use the long form for the default assignment because of an extremely
33938 # bizarre bug on SunOS 4.1.3.
33939 if $ac_need_defaults; then
33940   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33941   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33942   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33943 fi
33944
33945 # Have a temporary directory for convenience.  Make it in the build tree
33946 # simply because there is no reason against having it here, and in addition,
33947 # creating and moving files from /tmp can sometimes cause problems.
33948 # Hook for its removal unless debugging.
33949 # Note that there is a small window in which the directory will not be cleaned:
33950 # after its creation but before its name has been assigned to `$tmp'.
33951 $debug ||
33952 {
33953   tmp=
33954   trap 'exit_status=$?
33955   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33956 ' 0
33957   trap '{ (exit 1); exit 1; }' 1 2 13 15
33958 }
33959 # Create a (secure) tmp directory for tmp files.
33960
33961 {
33962   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33963   test -n "$tmp" && test -d "$tmp"
33964 }  ||
33965 {
33966   tmp=./conf$$-$RANDOM
33967   (umask 077 && mkdir "$tmp")
33968 } ||
33969 {
33970    echo "$me: cannot create a temporary directory in ." >&2
33971    { (exit 1); exit 1; }
33972 }
33973
33974 #
33975 # Set up the sed scripts for CONFIG_FILES section.
33976 #
33977
33978 # No need to generate the scripts if there are no CONFIG_FILES.
33979 # This happens for instance when ./config.status config.h
33980 if test -n "$CONFIG_FILES"; then
33981
33982 _ACEOF
33983
33984
33985
33986 ac_delim='%!_!# '
33987 for ac_last_try in false false false false false :; do
33988   cat >conf$$subs.sed <<_ACEOF
33989 SHELL!$SHELL$ac_delim
33990 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
33991 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
33992 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
33993 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
33994 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
33995 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
33996 exec_prefix!$exec_prefix$ac_delim
33997 prefix!$prefix$ac_delim
33998 program_transform_name!$program_transform_name$ac_delim
33999 bindir!$bindir$ac_delim
34000 sbindir!$sbindir$ac_delim
34001 libexecdir!$libexecdir$ac_delim
34002 datarootdir!$datarootdir$ac_delim
34003 datadir!$datadir$ac_delim
34004 sysconfdir!$sysconfdir$ac_delim
34005 sharedstatedir!$sharedstatedir$ac_delim
34006 localstatedir!$localstatedir$ac_delim
34007 includedir!$includedir$ac_delim
34008 oldincludedir!$oldincludedir$ac_delim
34009 docdir!$docdir$ac_delim
34010 infodir!$infodir$ac_delim
34011 htmldir!$htmldir$ac_delim
34012 dvidir!$dvidir$ac_delim
34013 pdfdir!$pdfdir$ac_delim
34014 psdir!$psdir$ac_delim
34015 libdir!$libdir$ac_delim
34016 localedir!$localedir$ac_delim
34017 mandir!$mandir$ac_delim
34018 DEFS!$DEFS$ac_delim
34019 ECHO_C!$ECHO_C$ac_delim
34020 ECHO_N!$ECHO_N$ac_delim
34021 ECHO_T!$ECHO_T$ac_delim
34022 LIBS!$LIBS$ac_delim
34023 build_alias!$build_alias$ac_delim
34024 host_alias!$host_alias$ac_delim
34025 target_alias!$target_alias$ac_delim
34026 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34027 subdirs!$subdirs$ac_delim
34028 build!$build$ac_delim
34029 build_cpu!$build_cpu$ac_delim
34030 build_vendor!$build_vendor$ac_delim
34031 build_os!$build_os$ac_delim
34032 host!$host$ac_delim
34033 host_cpu!$host_cpu$ac_delim
34034 host_vendor!$host_vendor$ac_delim
34035 host_os!$host_os$ac_delim
34036 target!$target$ac_delim
34037 target_cpu!$target_cpu$ac_delim
34038 target_vendor!$target_vendor$ac_delim
34039 target_os!$target_os$ac_delim
34040 OS!$OS$ac_delim
34041 LINKALL!$LINKALL$ac_delim
34042 NOLINKALL!$NOLINKALL$ac_delim
34043 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34044 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34045 ARCH!$ARCH$ac_delim
34046 ENDIAN!$ENDIAN$ac_delim
34047 CC!$CC$ac_delim
34048 CFLAGS!$CFLAGS$ac_delim
34049 LDFLAGS!$LDFLAGS$ac_delim
34050 CPPFLAGS!$CPPFLAGS$ac_delim
34051 ac_ct_CC!$ac_ct_CC$ac_delim
34052 EXEEXT!$EXEEXT$ac_delim
34053 OBJEXT!$OBJEXT$ac_delim
34054 CPP!$CPP$ac_delim
34055 GREP!$GREP$ac_delim
34056 EGREP!$EGREP$ac_delim
34057 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34058 BUILD_CC!$BUILD_CC$ac_delim
34059 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34060 CVSBUILD!$CVSBUILD$ac_delim
34061 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34062 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34063 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34064 JIT!$JIT$ac_delim
34065 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34066 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34067 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34068 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34069 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34070 CXX!$CXX$ac_delim
34071 CXXFLAGS!$CXXFLAGS$ac_delim
34072 ac_ct_CXX!$ac_ct_CXX$ac_delim
34073 LEX!$LEX$ac_delim
34074 LEXLIB!$LEXLIB$ac_delim
34075 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34076 FLEX!$FLEX$ac_delim
34077 YACC!$YACC$ac_delim
34078 YFLAGS!$YFLAGS$ac_delim
34079 BISON!$BISON$ac_delim
34080 NM!$NM$ac_delim
34081 ifGNUmake!$ifGNUmake$ac_delim
34082 LN_S!$LN_S$ac_delim
34083 CMP!$CMP$ac_delim
34084 CP!$CP$ac_delim
34085 DATE!$DATE$ac_delim
34086 _ACEOF
34087
34088   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34089     break
34090   elif $ac_last_try; then
34091     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34092 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34093    { (exit 1); exit 1; }; }
34094   else
34095     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34096   fi
34097 done
34098
34099 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34100 if test -n "$ac_eof"; then
34101   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34102   ac_eof=`expr $ac_eof + 1`
34103 fi
34104
34105 cat >>$CONFIG_STATUS <<_ACEOF
34106 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34108 _ACEOF
34109 sed '
34110 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34111 s/^/s,@/; s/!/@,|#_!!_#|/
34112 :n
34113 t n
34114 s/'"$ac_delim"'$/,g/; t
34115 s/$/\\/; p
34116 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34117 ' >>$CONFIG_STATUS <conf$$subs.sed
34118 rm -f conf$$subs.sed
34119 cat >>$CONFIG_STATUS <<_ACEOF
34120 CEOF$ac_eof
34121 _ACEOF
34122
34123
34124 ac_delim='%!_!# '
34125 for ac_last_try in false false false false false :; do
34126   cat >conf$$subs.sed <<_ACEOF
34127 FIND!$FIND$ac_delim
34128 MKDIR!$MKDIR$ac_delim
34129 MV!$MV$ac_delim
34130 RANLIB!$RANLIB$ac_delim
34131 RM!$RM$ac_delim
34132 SED!$SED$ac_delim
34133 TAR!$TAR$ac_delim
34134 BINPWD!$BINPWD$ac_delim
34135 GRAPHVIZ!$GRAPHVIZ$ac_delim
34136 DOT!$DOT$ac_delim
34137 GV!$GV$ac_delim
34138 DOTTY!$DOTTY$ac_delim
34139 PERL!$PERL$ac_delim
34140 HAVE_PERL!$HAVE_PERL$ac_delim
34141 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34142 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34143 INSTALL_DATA!$INSTALL_DATA$ac_delim
34144 BZIP2!$BZIP2$ac_delim
34145 DOXYGEN!$DOXYGEN$ac_delim
34146 GROFF!$GROFF$ac_delim
34147 GZIP!$GZIP$ac_delim
34148 POD2HTML!$POD2HTML$ac_delim
34149 POD2MAN!$POD2MAN$ac_delim
34150 RUNTEST!$RUNTEST$ac_delim
34151 TCLSH!$TCLSH$ac_delim
34152 ZIP!$ZIP$ac_delim
34153 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34154 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34155 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34156 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34157 LIBADD_DL!$LIBADD_DL$ac_delim
34158 ECHO!$ECHO$ac_delim
34159 AR!$AR$ac_delim
34160 STRIP!$STRIP$ac_delim
34161 CXXCPP!$CXXCPP$ac_delim
34162 F77!$F77$ac_delim
34163 FFLAGS!$FFLAGS$ac_delim
34164 ac_ct_F77!$ac_ct_F77$ac_delim
34165 LIBTOOL!$LIBTOOL$ac_delim
34166 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34167 LLVMGCC!$LLVMGCC$ac_delim
34168 LLVMGXX!$LLVMGXX$ac_delim
34169 ALLOCA!$ALLOCA$ac_delim
34170 MMAP_FILE!$MMAP_FILE$ac_delim
34171 LLVMCC1!$LLVMCC1$ac_delim
34172 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34173 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34174 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34175 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34176 SHLIBEXT!$SHLIBEXT$ac_delim
34177 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34178 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34179 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34180 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34181 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34182 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34183 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34184 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34185 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34186 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34187 LIBOBJS!$LIBOBJS$ac_delim
34188 LTLIBOBJS!$LTLIBOBJS$ac_delim
34189 _ACEOF
34190
34191   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then
34192     break
34193   elif $ac_last_try; then
34194     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34195 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34196    { (exit 1); exit 1; }; }
34197   else
34198     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34199   fi
34200 done
34201
34202 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34203 if test -n "$ac_eof"; then
34204   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34205   ac_eof=`expr $ac_eof + 1`
34206 fi
34207
34208 cat >>$CONFIG_STATUS <<_ACEOF
34209 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34211 _ACEOF
34212 sed '
34213 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34214 s/^/s,@/; s/!/@,|#_!!_#|/
34215 :n
34216 t n
34217 s/'"$ac_delim"'$/,g/; t
34218 s/$/\\/; p
34219 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34220 ' >>$CONFIG_STATUS <conf$$subs.sed
34221 rm -f conf$$subs.sed
34222 cat >>$CONFIG_STATUS <<_ACEOF
34223 :end
34224 s/|#_!!_#|//g
34225 CEOF$ac_eof
34226 _ACEOF
34227
34228
34229 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34230 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34231 # trailing colons and then remove the whole line if VPATH becomes empty
34232 # (actually we leave an empty line to preserve line numbers).
34233 if test "x$srcdir" = x.; then
34234   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34235 s/:*\$(srcdir):*/:/
34236 s/:*\${srcdir}:*/:/
34237 s/:*@srcdir@:*/:/
34238 s/^\([^=]*=[     ]*\):*/\1/
34239 s/:*$//
34240 s/^[^=]*=[       ]*$//
34241 }'
34242 fi
34243
34244 cat >>$CONFIG_STATUS <<\_ACEOF
34245 fi # test -n "$CONFIG_FILES"
34246
34247
34248 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
34249 do
34250   case $ac_tag in
34251   :[FHLC]) ac_mode=$ac_tag; continue;;
34252   esac
34253   case $ac_mode$ac_tag in
34254   :[FHL]*:*);;
34255   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34256 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34257    { (exit 1); exit 1; }; };;
34258   :[FH]-) ac_tag=-:-;;
34259   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34260   esac
34261   ac_save_IFS=$IFS
34262   IFS=:
34263   set x $ac_tag
34264   IFS=$ac_save_IFS
34265   shift
34266   ac_file=$1
34267   shift
34268
34269   case $ac_mode in
34270   :L) ac_source=$1;;
34271   :[FH])
34272     ac_file_inputs=
34273     for ac_f
34274     do
34275       case $ac_f in
34276       -) ac_f="$tmp/stdin";;
34277       *) # Look for the file first in the build tree, then in the source tree
34278          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34279          # because $ac_f cannot contain `:'.
34280          test -f "$ac_f" ||
34281            case $ac_f in
34282            [\\/$]*) false;;
34283            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34284            esac ||
34285            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34286 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34287    { (exit 1); exit 1; }; };;
34288       esac
34289       ac_file_inputs="$ac_file_inputs $ac_f"
34290     done
34291
34292     # Let's still pretend it is `configure' which instantiates (i.e., don't
34293     # use $as_me), people would be surprised to read:
34294     #    /* config.h.  Generated by config.status.  */
34295     configure_input="Generated from "`IFS=:
34296           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34297     if test x"$ac_file" != x-; then
34298       configure_input="$ac_file.  $configure_input"
34299       { echo "$as_me:$LINENO: creating $ac_file" >&5
34300 echo "$as_me: creating $ac_file" >&6;}
34301     fi
34302
34303     case $ac_tag in
34304     *:-:* | *:-) cat >"$tmp/stdin";;
34305     esac
34306     ;;
34307   esac
34308
34309   ac_dir=`$as_dirname -- "$ac_file" ||
34310 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34311          X"$ac_file" : 'X\(//\)[^/]' \| \
34312          X"$ac_file" : 'X\(//\)$' \| \
34313          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34314 echo X"$ac_file" |
34315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34316             s//\1/
34317             q
34318           }
34319           /^X\(\/\/\)[^/].*/{
34320             s//\1/
34321             q
34322           }
34323           /^X\(\/\/\)$/{
34324             s//\1/
34325             q
34326           }
34327           /^X\(\/\).*/{
34328             s//\1/
34329             q
34330           }
34331           s/.*/./; q'`
34332   { as_dir="$ac_dir"
34333   case $as_dir in #(
34334   -*) as_dir=./$as_dir;;
34335   esac
34336   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34337     as_dirs=
34338     while :; do
34339       case $as_dir in #(
34340       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34341       *) as_qdir=$as_dir;;
34342       esac
34343       as_dirs="'$as_qdir' $as_dirs"
34344       as_dir=`$as_dirname -- "$as_dir" ||
34345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34346          X"$as_dir" : 'X\(//\)[^/]' \| \
34347          X"$as_dir" : 'X\(//\)$' \| \
34348          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34349 echo X"$as_dir" |
34350     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34351             s//\1/
34352             q
34353           }
34354           /^X\(\/\/\)[^/].*/{
34355             s//\1/
34356             q
34357           }
34358           /^X\(\/\/\)$/{
34359             s//\1/
34360             q
34361           }
34362           /^X\(\/\).*/{
34363             s//\1/
34364             q
34365           }
34366           s/.*/./; q'`
34367       test -d "$as_dir" && break
34368     done
34369     test -z "$as_dirs" || eval "mkdir $as_dirs"
34370   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34371 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34372    { (exit 1); exit 1; }; }; }
34373   ac_builddir=.
34374
34375 case "$ac_dir" in
34376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34377 *)
34378   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34379   # A ".." for each directory in $ac_dir_suffix.
34380   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34381   case $ac_top_builddir_sub in
34382   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34383   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34384   esac ;;
34385 esac
34386 ac_abs_top_builddir=$ac_pwd
34387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34388 # for backward compatibility:
34389 ac_top_builddir=$ac_top_build_prefix
34390
34391 case $srcdir in
34392   .)  # We are building in place.
34393     ac_srcdir=.
34394     ac_top_srcdir=$ac_top_builddir_sub
34395     ac_abs_top_srcdir=$ac_pwd ;;
34396   [\\/]* | ?:[\\/]* )  # Absolute name.
34397     ac_srcdir=$srcdir$ac_dir_suffix;
34398     ac_top_srcdir=$srcdir
34399     ac_abs_top_srcdir=$srcdir ;;
34400   *) # Relative name.
34401     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34402     ac_top_srcdir=$ac_top_build_prefix$srcdir
34403     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34404 esac
34405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34406
34407
34408   case $ac_mode in
34409   :F)
34410   #
34411   # CONFIG_FILE
34412   #
34413
34414   case $INSTALL in
34415   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34416   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34417   esac
34418 _ACEOF
34419
34420 cat >>$CONFIG_STATUS <<\_ACEOF
34421 # If the template does not know about datarootdir, expand it.
34422 # FIXME: This hack should be removed a few years after 2.60.
34423 ac_datarootdir_hack=; ac_datarootdir_seen=
34424
34425 case `sed -n '/datarootdir/ {
34426   p
34427   q
34428 }
34429 /@datadir@/p
34430 /@docdir@/p
34431 /@infodir@/p
34432 /@localedir@/p
34433 /@mandir@/p
34434 ' $ac_file_inputs` in
34435 *datarootdir*) ac_datarootdir_seen=yes;;
34436 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34437   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34438 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34439 _ACEOF
34440 cat >>$CONFIG_STATUS <<_ACEOF
34441   ac_datarootdir_hack='
34442   s&@datadir@&$datadir&g
34443   s&@docdir@&$docdir&g
34444   s&@infodir@&$infodir&g
34445   s&@localedir@&$localedir&g
34446   s&@mandir@&$mandir&g
34447     s&\\\${datarootdir}&$datarootdir&g' ;;
34448 esac
34449 _ACEOF
34450
34451 # Neutralize VPATH when `$srcdir' = `.'.
34452 # Shell code in configure.ac might set extrasub.
34453 # FIXME: do we really want to maintain this feature?
34454 cat >>$CONFIG_STATUS <<_ACEOF
34455   sed "$ac_vpsub
34456 $extrasub
34457 _ACEOF
34458 cat >>$CONFIG_STATUS <<\_ACEOF
34459 :t
34460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34461 s&@configure_input@&$configure_input&;t t
34462 s&@top_builddir@&$ac_top_builddir_sub&;t t
34463 s&@srcdir@&$ac_srcdir&;t t
34464 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34465 s&@top_srcdir@&$ac_top_srcdir&;t t
34466 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34467 s&@builddir@&$ac_builddir&;t t
34468 s&@abs_builddir@&$ac_abs_builddir&;t t
34469 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34470 s&@INSTALL@&$ac_INSTALL&;t t
34471 $ac_datarootdir_hack
34472 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34473
34474 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34475   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34476   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34477   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34478 which seems to be undefined.  Please make sure it is defined." >&5
34479 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34480 which seems to be undefined.  Please make sure it is defined." >&2;}
34481
34482   rm -f "$tmp/stdin"
34483   case $ac_file in
34484   -) cat "$tmp/out"; rm -f "$tmp/out";;
34485   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34486   esac
34487  ;;
34488   :H)
34489   #
34490   # CONFIG_HEADER
34491   #
34492 _ACEOF
34493
34494 # Transform confdefs.h into a sed script `conftest.defines', that
34495 # substitutes the proper values into config.h.in to produce config.h.
34496 rm -f conftest.defines conftest.tail
34497 # First, append a space to every undef/define line, to ease matching.
34498 echo 's/$/ /' >conftest.defines
34499 # Then, protect against being on the right side of a sed subst, or in
34500 # an unquoted here document, in config.status.  If some macros were
34501 # called several times there might be several #defines for the same
34502 # symbol, which is useless.  But do not sort them, since the last
34503 # AC_DEFINE must be honored.
34504 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34505 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34506 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34507 # PARAMS is the parameter list in the macro definition--in most cases, it's
34508 # just an empty string.
34509 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
34510 ac_dB='\\)[      (].*,\\1define\\2'
34511 ac_dC=' '
34512 ac_dD=' ,'
34513
34514 uniq confdefs.h |
34515   sed -n '
34516         t rset
34517         :rset
34518         s/^[     ]*#[    ]*define[       ][      ]*//
34519         t ok
34520         d
34521         :ok
34522         s/[\\&,]/\\&/g
34523         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34524         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34525   ' >>conftest.defines
34526
34527 # Remove the space that was appended to ease matching.
34528 # Then replace #undef with comments.  This is necessary, for
34529 # example, in the case of _POSIX_SOURCE, which is predefined and required
34530 # on some systems where configure will not decide to define it.
34531 # (The regexp can be short, since the line contains either #define or #undef.)
34532 echo 's/ $//
34533 s,^[     #]*u.*,/* & */,' >>conftest.defines
34534
34535 # Break up conftest.defines:
34536 ac_max_sed_lines=50
34537
34538 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34539 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34540 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34541 # et cetera.
34542 ac_in='$ac_file_inputs'
34543 ac_out='"$tmp/out1"'
34544 ac_nxt='"$tmp/out2"'
34545
34546 while :
34547 do
34548   # Write a here document:
34549     cat >>$CONFIG_STATUS <<_ACEOF
34550     # First, check the format of the line:
34551     cat >"\$tmp/defines.sed" <<\\CEOF
34552 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
34553 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
34554 b
34555 :def
34556 _ACEOF
34557   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34558   echo 'CEOF
34559     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34560   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34561   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34562   grep . conftest.tail >/dev/null || break
34563   rm -f conftest.defines
34564   mv conftest.tail conftest.defines
34565 done
34566 rm -f conftest.defines conftest.tail
34567
34568 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34569 cat >>$CONFIG_STATUS <<\_ACEOF
34570   if test x"$ac_file" != x-; then
34571     echo "/* $configure_input  */" >"$tmp/config.h"
34572     cat "$ac_result" >>"$tmp/config.h"
34573     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34574       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34575 echo "$as_me: $ac_file is unchanged" >&6;}
34576     else
34577       rm -f $ac_file
34578       mv "$tmp/config.h" $ac_file
34579     fi
34580   else
34581     echo "/* $configure_input  */"
34582     cat "$ac_result"
34583   fi
34584   rm -f "$tmp/out12"
34585  ;;
34586
34587   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34588 echo "$as_me: executing $ac_file commands" >&6;}
34589  ;;
34590   esac
34591
34592
34593   case $ac_file$ac_mode in
34594     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34595    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34596     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34597    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34598     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34599    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34600     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34601    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34602     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34603    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34604     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34605    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34606     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34607    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34608     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34609    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34610     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34611    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34612     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34613    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34614
34615   esac
34616 done # for ac_tag
34617
34618
34619 { (exit 0); exit 0; }
34620 _ACEOF
34621 chmod +x $CONFIG_STATUS
34622 ac_clean_files=$ac_clean_files_save
34623
34624
34625 # configure is writing to config.log, and then calls config.status.
34626 # config.status does its own redirection, appending to config.log.
34627 # Unfortunately, on DOS this fails, as config.log is still kept open
34628 # by configure, so config.status won't be able to write to it; its
34629 # output is simply discarded.  So we exec the FD to /dev/null,
34630 # effectively closing config.log, so it can be properly (re)opened and
34631 # appended to by config.status.  When coming back to configure, we
34632 # need to make the FD available again.
34633 if test "$no_create" != yes; then
34634   ac_cs_success=:
34635   ac_config_status_args=
34636   test "$silent" = yes &&
34637     ac_config_status_args="$ac_config_status_args --quiet"
34638   exec 5>/dev/null
34639   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34640   exec 5>>config.log
34641   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34642   # would make configure fail if this is the last instruction.
34643   $ac_cs_success || { (exit 1); exit 1; }
34644 fi
34645
34646 #
34647 # CONFIG_SUBDIRS section.
34648 #
34649 if test "$no_recursion" != yes; then
34650
34651   # Remove --cache-file and --srcdir arguments so they do not pile up.
34652   ac_sub_configure_args=
34653   ac_prev=
34654   eval "set x $ac_configure_args"
34655   shift
34656   for ac_arg
34657   do
34658     if test -n "$ac_prev"; then
34659       ac_prev=
34660       continue
34661     fi
34662     case $ac_arg in
34663     -cache-file | --cache-file | --cache-fil | --cache-fi \
34664     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34665       ac_prev=cache_file ;;
34666     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34667     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34668     | --c=*)
34669       ;;
34670     --config-cache | -C)
34671       ;;
34672     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34673       ac_prev=srcdir ;;
34674     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34675       ;;
34676     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34677       ac_prev=prefix ;;
34678     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34679       ;;
34680     *)
34681       case $ac_arg in
34682       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34683       esac
34684       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34685     esac
34686   done
34687
34688   # Always prepend --prefix to ensure using the same prefix
34689   # in subdir configurations.
34690   ac_arg="--prefix=$prefix"
34691   case $ac_arg in
34692   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34693   esac
34694   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34695
34696   ac_popdir=`pwd`
34697   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34698
34699     # Do not complain, so a configure script can configure whichever
34700     # parts of a large source tree are present.
34701     test -d "$srcdir/$ac_dir" || continue
34702
34703     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34704     echo "$as_me:$LINENO: $ac_msg" >&5
34705     echo "$ac_msg" >&6
34706     { as_dir="$ac_dir"
34707   case $as_dir in #(
34708   -*) as_dir=./$as_dir;;
34709   esac
34710   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34711     as_dirs=
34712     while :; do
34713       case $as_dir in #(
34714       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34715       *) as_qdir=$as_dir;;
34716       esac
34717       as_dirs="'$as_qdir' $as_dirs"
34718       as_dir=`$as_dirname -- "$as_dir" ||
34719 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34720          X"$as_dir" : 'X\(//\)[^/]' \| \
34721          X"$as_dir" : 'X\(//\)$' \| \
34722          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34723 echo X"$as_dir" |
34724     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34725             s//\1/
34726             q
34727           }
34728           /^X\(\/\/\)[^/].*/{
34729             s//\1/
34730             q
34731           }
34732           /^X\(\/\/\)$/{
34733             s//\1/
34734             q
34735           }
34736           /^X\(\/\).*/{
34737             s//\1/
34738             q
34739           }
34740           s/.*/./; q'`
34741       test -d "$as_dir" && break
34742     done
34743     test -z "$as_dirs" || eval "mkdir $as_dirs"
34744   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34745 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34746    { (exit 1); exit 1; }; }; }
34747     ac_builddir=.
34748
34749 case "$ac_dir" in
34750 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34751 *)
34752   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34753   # A ".." for each directory in $ac_dir_suffix.
34754   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34755   case $ac_top_builddir_sub in
34756   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34757   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34758   esac ;;
34759 esac
34760 ac_abs_top_builddir=$ac_pwd
34761 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34762 # for backward compatibility:
34763 ac_top_builddir=$ac_top_build_prefix
34764
34765 case $srcdir in
34766   .)  # We are building in place.
34767     ac_srcdir=.
34768     ac_top_srcdir=$ac_top_builddir_sub
34769     ac_abs_top_srcdir=$ac_pwd ;;
34770   [\\/]* | ?:[\\/]* )  # Absolute name.
34771     ac_srcdir=$srcdir$ac_dir_suffix;
34772     ac_top_srcdir=$srcdir
34773     ac_abs_top_srcdir=$srcdir ;;
34774   *) # Relative name.
34775     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34776     ac_top_srcdir=$ac_top_build_prefix$srcdir
34777     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34778 esac
34779 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34780
34781
34782     cd "$ac_dir"
34783
34784     # Check for guested configure; otherwise get Cygnus style configure.
34785     if test -f "$ac_srcdir/configure.gnu"; then
34786       ac_sub_configure=$ac_srcdir/configure.gnu
34787     elif test -f "$ac_srcdir/configure"; then
34788       ac_sub_configure=$ac_srcdir/configure
34789     elif test -f "$ac_srcdir/configure.in"; then
34790       # This should be Cygnus configure.
34791       ac_sub_configure=$ac_aux_dir/configure
34792     else
34793       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34794 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34795       ac_sub_configure=
34796     fi
34797
34798     # The recursion is here.
34799     if test -n "$ac_sub_configure"; then
34800       # Make the cache file name correct relative to the subdirectory.
34801       case $cache_file in
34802       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34803       *) # Relative name.
34804         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34805       esac
34806
34807       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34808 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34809       # The eval makes quoting arguments work.
34810       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34811            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34812         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34813 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34814    { (exit 1); exit 1; }; }
34815     fi
34816
34817     cd "$ac_popdir"
34818   done
34819 fi
34820
34821
34822 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
34823  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
34824 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
34825  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
34826 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
34827  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
34828 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
34829  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
34830 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
34831  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
34832 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
34833 fi