blob: 8f70ccd606d807463ccaa8b32bf7e78a06bf84e7 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004#
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#
Tanya Lattnerf4644302008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Tanya Lattner3fa4a442009-01-22 05:17:59 +000017# Be Bourne compatible
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018if 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
25else
Tanya Lattner3fa4a442009-01-22 05:17:59 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027fi
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if 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
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
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.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
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.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if 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; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for 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
107do
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
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo 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
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$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 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000223do
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
232done
233IFS=$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
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000240# Be Bourne compatible
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000241if 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
248else
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000250fi
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000260# Be Bourne compatible
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000261if 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
268else
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000270fi
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $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
334fi
335
336fi
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+"$@"}
346fi
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; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$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
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `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';;
479esac
480
481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
495echo >conf$$.file
496if 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'
504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517fi
518
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000519# 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.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000528else
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000529 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000530fi
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000531rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000532
533# Sed expression to map a string onto a valid CPP name.
534as_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.
537as_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.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
571$*
572EOF
573 exit 0
574fi
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
580if test -z "$ECHO"; then
581if 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
592fi
593
594if 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 :
598else
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
678fi
679fi
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.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
690
691tagnames=${tagnames+${tagnames},}CXX
692
693tagnames=${tagnames+${tagnames},}F77
694
695exec 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.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
706ac_clean_files=
707ac_config_libobj_dir=.
708LIBOBJS=
709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
715# Identity of this package.
716PACKAGE_NAME='llvm'
717PACKAGE_TARNAME='-llvm-'
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000718PACKAGE_VERSION='2.6svn'
719PACKAGE_STRING='llvm 2.6svn'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722ac_unique_file="lib/VMCore/Module.cpp"
723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000726#if HAVE_SYS_TYPES_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000727# include <sys/types.h>
728#endif
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000729#if HAVE_SYS_STAT_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000730# include <sys/stat.h>
731#endif
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000732#if STDC_HEADERS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000736# if HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000737# include <stdlib.h>
738# endif
739#endif
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000746#if HAVE_STRINGS_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000747# include <strings.h>
748#endif
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000749#if HAVE_INTTYPES_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000750# include <inttypes.h>
751#endif
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000752#if HAVE_STDINT_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000753# include <stdint.h>
754#endif
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000755#if HAVE_UNISTD_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000756# include <unistd.h>
757#endif"
758
759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
Bill Wendling025cce52009-03-12 04:10:09 +0000815ARCH
816ENDIAN
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
Jim Grosbache4c032e2008-10-02 22:56:44 +0000830BUILD_CXX
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000831CVSBUILD
832ENABLE_OPTIMIZED
833DISABLE_ASSERTIONS
834ENABLE_EXPENSIVE_CHECKS
835EXPENSIVE_CHECKS
836DEBUG_RUNTIME
837JIT
838TARGET_HAS_JIT
839ENABLE_DOXYGEN
840ENABLE_THREADS
841ENABLE_PIC
842TARGETS_TO_BUILD
843ENABLE_CBE_PRINTF_A
844EXTRA_OPTIONS
Nick Lewyckyf9c14662009-02-03 07:10:30 +0000845BINUTILS_INCDIR
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000846CXX
847CXXFLAGS
848ac_ct_CXX
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000849NM
850ifGNUmake
851LN_S
852CMP
853CP
854DATE
855FIND
856MKDIR
857MV
858RANLIB
859RM
860SED
861TAR
862BINPWD
863GRAPHVIZ
864DOT
865GV
866DOTTY
867PERL
868HAVE_PERL
869INSTALL_PROGRAM
870INSTALL_SCRIPT
871INSTALL_DATA
872BZIP2
873DOXYGEN
874GROFF
875GZIP
876POD2HTML
877POD2MAN
878RUNTEST
879TCLSH
880ZIP
Gordon Henriksen4ac92092007-09-18 12:27:13 +0000881OCAMLC
882OCAMLOPT
Gordon Henriksen38eefac2007-09-20 16:48:18 +0000883OCAMLDEP
Gordon Henriksen8af51f62008-03-10 15:49:38 +0000884OCAMLDOC
Edwin Török20176752008-10-22 09:56:27 +0000885GAS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000886INSTALL_LTDL_TRUE
887INSTALL_LTDL_FALSE
888CONVENIENCE_LTDL_TRUE
889CONVENIENCE_LTDL_FALSE
890LIBADD_DL
891ECHO
892AR
893STRIP
894CXXCPP
895F77
896FFLAGS
897ac_ct_F77
898LIBTOOL
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000899LLVMGCC
900LLVMGXX
901USE_UDIS86
902HAVE_PTHREAD
903HUGE_VAL_SANITY
904ALLOCA
905MMAP_FILE
906LLVMCC1
907LLVMCC1PLUS
908LLVMGCCDIR
909LLVMGCCLIBEXEC
910LLVMGCC_VERSION
911LLVMGCC_MAJVERS
912LLVMGCC_LANGS
913SHLIBEXT
914LLVM_PREFIX
915LLVM_BINDIR
916LLVM_LIBDIR
917LLVM_DATADIR
918LLVM_DOCSDIR
919LLVM_ETCDIR
920LLVM_INCLUDEDIR
921LLVM_INFODIR
922LLVM_MANDIR
923LLVM_CONFIGTIME
Gordon Henriksen016ec472007-10-02 09:50:32 +0000924BINDINGS_TO_BUILD
925ALL_BINDINGS
Gordon Henriksen058a4c62007-10-02 16:42:22 +0000926OCAML_LIBDIR
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +0000927ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +0000928RPATH
Nick Lewycky6eab6652009-03-05 08:20:44 +0000929RDYNAMIC
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000930LIBOBJS
931LTLIBOBJS'
932ac_subst_files=''
933 ac_precious_vars='build_alias
934host_alias
935target_alias
936CC
937CFLAGS
938LDFLAGS
939CPPFLAGS
940CPP
941CXX
942CXXFLAGS
943CCC
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000944CXXCPP
945F77
946FFLAGS'
947ac_subdirs_all='projects/sample
948projects/privbracket
949projects/llvm-stacker
950projects/llvm-test
Matthijs Kooijman0b8be862008-06-24 13:01:57 +0000951projects/test-suite
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000952projects/llvm-reopt
953projects/llvm-gcc
954projects/llvm-java
955projects/llvm-tv
956projects/llvm-poolalloc
957projects/poolalloc
958projects/llvm-kernel'
959
960# Initialize some variables set by options.
961ac_init_help=
962ac_init_version=false
963# The variables have the same names as the options, with
964# dashes changed to underlines.
965cache_file=/dev/null
966exec_prefix=NONE
967no_create=
968no_recursion=
969prefix=NONE
970program_prefix=NONE
971program_suffix=NONE
972program_transform_name=s,x,x,
973silent=
974site=
975srcdir=
976verbose=
977x_includes=NONE
978x_libraries=NONE
979
980# Installation directory options.
981# These are left unexpanded so users can "make install exec_prefix=/foo"
982# and all the variables that are supposed to be based on exec_prefix
983# by default will actually change.
984# Use braces instead of parens because sh, perl, etc. also accept them.
985# (The list follows the same order as the GNU Coding Standards.)
986bindir='${exec_prefix}/bin'
987sbindir='${exec_prefix}/sbin'
988libexecdir='${exec_prefix}/libexec'
989datarootdir='${prefix}/share'
990datadir='${datarootdir}'
991sysconfdir='${prefix}/etc'
992sharedstatedir='${prefix}/com'
993localstatedir='${prefix}/var'
994includedir='${prefix}/include'
995oldincludedir='/usr/include'
996docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
997infodir='${datarootdir}/info'
998htmldir='${docdir}'
999dvidir='${docdir}'
1000pdfdir='${docdir}'
1001psdir='${docdir}'
1002libdir='${exec_prefix}/lib'
1003localedir='${datarootdir}/locale'
1004mandir='${datarootdir}/man'
1005
1006ac_prev=
1007ac_dashdash=
1008for ac_option
1009do
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\$ac_option
1013 ac_prev=
1014 continue
1015 fi
1016
1017 case $ac_option in
1018 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019 *) ac_optarg=yes ;;
1020 esac
1021
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1023
1024 case $ac_dashdash$ac_option in
1025 --)
1026 ac_dashdash=yes ;;
1027
1028 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029 ac_prev=bindir ;;
1030 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031 bindir=$ac_optarg ;;
1032
1033 -build | --build | --buil | --bui | --bu)
1034 ac_prev=build_alias ;;
1035 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036 build_alias=$ac_optarg ;;
1037
1038 -cache-file | --cache-file | --cache-fil | --cache-fi \
1039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040 ac_prev=cache_file ;;
1041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043 cache_file=$ac_optarg ;;
1044
1045 --config-cache | -C)
1046 cache_file=config.cache ;;
1047
1048 -datadir | --datadir | --datadi | --datad)
1049 ac_prev=datadir ;;
1050 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051 datadir=$ac_optarg ;;
1052
1053 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054 | --dataroo | --dataro | --datar)
1055 ac_prev=datarootdir ;;
1056 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058 datarootdir=$ac_optarg ;;
1059
1060 -disable-* | --disable-*)
1061 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001063 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001064 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1065 { (exit 1); exit 1; }; }
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001066 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001067 eval enable_$ac_feature=no ;;
1068
1069 -docdir | --docdir | --docdi | --doc | --do)
1070 ac_prev=docdir ;;
1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072 docdir=$ac_optarg ;;
1073
1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075 ac_prev=dvidir ;;
1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077 dvidir=$ac_optarg ;;
1078
1079 -enable-* | --enable-*)
1080 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001082 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001083 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084 { (exit 1); exit 1; }; }
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001085 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001086 eval enable_$ac_feature=\$ac_optarg ;;
1087
1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090 | --exec | --exe | --ex)
1091 ac_prev=exec_prefix ;;
1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094 | --exec=* | --exe=* | --ex=*)
1095 exec_prefix=$ac_optarg ;;
1096
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1099 with_gas=yes ;;
1100
1101 -help | --help | --hel | --he | -h)
1102 ac_init_help=long ;;
1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104 ac_init_help=recursive ;;
1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106 ac_init_help=short ;;
1107
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1112
1113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114 ac_prev=htmldir ;;
1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116 | --ht=*)
1117 htmldir=$ac_optarg ;;
1118
1119 -includedir | --includedir | --includedi | --included | --include \
1120 | --includ | --inclu | --incl | --inc)
1121 ac_prev=includedir ;;
1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123 | --includ=* | --inclu=* | --incl=* | --inc=*)
1124 includedir=$ac_optarg ;;
1125
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 ac_prev=infodir ;;
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1130
1131 -libdir | --libdir | --libdi | --libd)
1132 ac_prev=libdir ;;
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1135
1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137 | --libexe | --libex | --libe)
1138 ac_prev=libexecdir ;;
1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140 | --libexe=* | --libex=* | --libe=*)
1141 libexecdir=$ac_optarg ;;
1142
1143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1147
1148 -localstatedir | --localstatedir | --localstatedi | --localstated \
1149 | --localstate | --localstat | --localsta | --localst | --locals)
1150 ac_prev=localstatedir ;;
1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153 localstatedir=$ac_optarg ;;
1154
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 ac_prev=mandir ;;
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1159
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1162 with_fp=no ;;
1163
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1166 no_create=yes ;;
1167
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 no_recursion=yes ;;
1171
1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174 | --oldin | --oldi | --old | --ol | --o)
1175 ac_prev=oldincludedir ;;
1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179 oldincludedir=$ac_optarg ;;
1180
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 ac_prev=prefix ;;
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1185
1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187 | --program-pre | --program-pr | --program-p)
1188 ac_prev=program_prefix ;;
1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191 program_prefix=$ac_optarg ;;
1192
1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194 | --program-suf | --program-su | --program-s)
1195 ac_prev=program_suffix ;;
1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198 program_suffix=$ac_optarg ;;
1199
1200 -program-transform-name | --program-transform-name \
1201 | --program-transform-nam | --program-transform-na \
1202 | --program-transform-n | --program-transform- \
1203 | --program-transform | --program-transfor \
1204 | --program-transfo | --program-transf \
1205 | --program-trans | --program-tran \
1206 | --progr-tra | --program-tr | --program-t)
1207 ac_prev=program_transform_name ;;
1208 -program-transform-name=* | --program-transform-name=* \
1209 | --program-transform-nam=* | --program-transform-na=* \
1210 | --program-transform-n=* | --program-transform-=* \
1211 | --program-transform=* | --program-transfor=* \
1212 | --program-transfo=* | --program-transf=* \
1213 | --program-trans=* | --program-tran=* \
1214 | --progr-tra=* | --program-tr=* | --program-t=*)
1215 program_transform_name=$ac_optarg ;;
1216
1217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 ac_prev=pdfdir ;;
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1221
1222 -psdir | --psdir | --psdi | --psd | --ps)
1223 ac_prev=psdir ;;
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225 psdir=$ac_optarg ;;
1226
1227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1229 silent=yes ;;
1230
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 ac_prev=sbindir ;;
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 | --sbi=* | --sb=*)
1235 sbindir=$ac_optarg ;;
1236
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1240 | --sha | --sh)
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 | --sha=* | --sh=*)
1246 sharedstatedir=$ac_optarg ;;
1247
1248 -site | --site | --sit)
1249 ac_prev=site ;;
1250 -site=* | --site=* | --sit=*)
1251 site=$ac_optarg ;;
1252
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 ac_prev=srcdir ;;
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1257
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1264
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1269
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 verbose=yes ;;
1272
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1275
1276 -with-* | --with-*)
1277 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001279 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001280 { echo "$as_me: error: invalid package name: $ac_package" >&2
1281 { (exit 1); exit 1; }; }
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001282 ac_package=`echo $ac_package| sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001283 eval with_$ac_package=\$ac_optarg ;;
1284
1285 -without-* | --without-*)
1286 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001288 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001289 { echo "$as_me: error: invalid package name: $ac_package" >&2
1290 { (exit 1); exit 1; }; }
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001291 ac_package=`echo $ac_package | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001292 eval with_$ac_package=no ;;
1293
1294 --x)
1295 # Obsolete; use --with-x.
1296 with_x=yes ;;
1297
1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299 | --x-incl | --x-inc | --x-in | --x-i)
1300 ac_prev=x_includes ;;
1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303 x_includes=$ac_optarg ;;
1304
1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307 ac_prev=x_libraries ;;
1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310 x_libraries=$ac_optarg ;;
1311
1312 -*) { echo "$as_me: error: unrecognized option: $ac_option
1313Try \`$0 --help' for more information." >&2
1314 { (exit 1); exit 1; }; }
1315 ;;
1316
1317 *=*)
1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1321 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1322 { (exit 1); exit 1; }; }
1323 eval $ac_envvar=\$ac_optarg
1324 export $ac_envvar ;;
1325
1326 *)
1327 # FIXME: should be removed in autoconf 3.0.
1328 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1332 ;;
1333
1334 esac
1335done
1336
1337if test -n "$ac_prev"; then
1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339 { echo "$as_me: error: missing argument to $ac_option" >&2
1340 { (exit 1); exit 1; }; }
1341fi
1342
1343# Be sure to have absolute directory names.
1344for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345 datadir sysconfdir sharedstatedir localstatedir includedir \
1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347 libdir localedir mandir
1348do
1349 eval ac_val=\$$ac_var
1350 case $ac_val in
1351 [\\/$]* | ?:[\\/]* ) continue;;
1352 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353 esac
1354 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1355 { (exit 1); exit 1; }; }
1356done
1357
1358# There might be people who depend on the old broken behavior: `$host'
1359# used to hold the argument of --host etc.
1360# FIXME: To remove some day.
1361build=$build_alias
1362host=$host_alias
1363target=$target_alias
1364
1365# FIXME: To remove some day.
1366if test "x$host_alias" != x; then
1367 if test "x$build_alias" = x; then
1368 cross_compiling=maybe
1369 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1370 If a cross compiler is detected then cross compile mode will be used." >&2
1371 elif test "x$build_alias" != "x$host_alias"; then
1372 cross_compiling=yes
1373 fi
1374fi
1375
1376ac_tool_prefix=
1377test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378
1379test "$silent" = yes && exec 6>/dev/null
1380
1381
1382ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383ac_ls_di=`ls -di .` &&
1384ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385 { echo "$as_me: error: Working directory cannot be determined" >&2
1386 { (exit 1); exit 1; }; }
1387test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388 { echo "$as_me: error: pwd does not report name of working directory" >&2
1389 { (exit 1); exit 1; }; }
1390
1391
1392# Find the source files, if location was not specified.
1393if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$0" ||
1397$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$0" : 'X\(//\)[^/]' \| \
1399 X"$0" : 'X\(//\)$' \| \
1400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1401echo X"$0" |
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)[^/].*/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)$/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\).*/{
1415 s//\1/
1416 q
1417 }
1418 s/.*/./; q'`
1419 srcdir=$ac_confdir
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 srcdir=..
1422 fi
1423else
1424 ac_srcdir_defaulted=no
1425fi
1426if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1429 { (exit 1); exit 1; }; }
1430fi
1431ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432ac_abs_confdir=`(
1433 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1434 { (exit 1); exit 1; }; }
1435 pwd)`
1436# When building in place, set srcdir=.
1437if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 srcdir=.
1439fi
1440# Remove unnecessary trailing slashes from srcdir.
1441# Double slashes in file names in object file debugging info
1442# mess up M-x gdb in Emacs.
1443case $srcdir in
1444*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445esac
1446for ac_var in $ac_precious_vars; do
1447 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_${ac_var}_value=\$${ac_var}
1449 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451done
1452
1453#
1454# Report the --help message.
1455#
1456if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1459 cat <<_ACEOF
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001460\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001461
1462Usage: $0 [OPTION]... [VAR=VALUE]...
1463
1464To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465VAR=VALUE. See below for descriptions of some of the useful variables.
1466
1467Defaults for the options are specified in brackets.
1468
1469Configuration:
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479
1480Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
1482 [$ac_default_prefix]
1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1484 [PREFIX]
1485
1486By default, \`make install' will install all the files in
1487\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489for instance \`--prefix=\$HOME'.
1490
1491For better control, use the options below.
1492
1493Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1513_ACEOF
1514
1515 cat <<\_ACEOF
1516
1517System types:
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1520 --target=TARGET configure for building compilers for TARGET [HOST]
1521_ACEOF
1522fi
1523
1524if test -n "$ac_init_help"; then
1525 case $ac_init_help in
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001526 short | recursive ) echo "Configuration of llvm 2.6svn:";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001527 esac
1528 cat <<\_ACEOF
1529
1530Optional Features:
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1533 --enable-optimized
1534 --enable-assertions
1535 --enable-expensive-checks
1536
1537 --enable-debug-runtime
1538 --enable-jit Enable Just In Time Compiling (default is YES)
1539 --enable-doxygen Build doxygen documentation (default is NO)
1540 --enable-threads Use threads if available (default is YES)
1541 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky6512b232009-02-19 06:18:56 +00001542 is YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001543 --enable-targets Build specific host targets:
1544 all,host-only,{target-name} (default=all)
1545 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1546 %a (default is YES)
Gordon Henriksen016ec472007-10-02 09:50:32 +00001547 --enable-bindings Build specific language bindings:
1548 all,auto,none,{binding-name} (default=auto)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001549 --enable-ltdl-install install libltdl
1550 --enable-shared[=PKGS] build shared libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001551 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001552 --enable-static[=PKGS] build static libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001553 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001554 --enable-fast-install[=PKGS]
1555 optimize for fast installation
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001556 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001557 --disable-libtool-lock avoid locking (might break parallel builds)
1558
1559Optional Packages:
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1562 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1563 searches PATH)
Devang Pateld84ba7b2007-12-04 22:54:47 +00001564 --with-llvmgcc Specify location of llvm-gcc driver (default
1565 searches PATH)
1566 --with-llvmgxx Specify location of llvm-g++ driver (default
1567 searches PATH)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001568 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksen058a4c62007-10-02 16:42:22 +00001569 --with-ocaml-libdir Specify install location for ocaml bindings (default
1570 is stdlib)
Nick Lewyckyf9c14662009-02-03 07:10:30 +00001571 --with-binutils-include Specify path to binutils/include/ containing
1572 plugin-api.h file for gold plugin.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001573 --with-tclinclude directory where tcl headers are
1574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1575 --with-pic try to use only PIC/non-PIC objects [default=use
1576 both]
1577 --with-tags[=TAGS] include additional configurations [automatic]
1578 --with-udis86=<path> Use udis86 external x86 disassembler library
1579
1580Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
1587 CPP C preprocessor
1588 CXX C++ compiler command
1589 CXXFLAGS C++ compiler flags
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001590 CXXCPP C++ preprocessor
1591 F77 Fortran 77 compiler command
1592 FFLAGS Fortran 77 compiler flags
1593
1594Use these variables to override the choices made by `configure' or to help
1595it to find libraries and programs with nonstandard names/locations.
1596
1597Report bugs to <llvmbugs@cs.uiuc.edu>.
1598_ACEOF
1599ac_status=$?
1600fi
1601
1602if test "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
1604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1605 test -d "$ac_dir" || continue
1606 ac_builddir=.
1607
1608case "$ac_dir" in
1609.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610*)
1611 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 esac ;;
1618esac
1619ac_abs_top_builddir=$ac_pwd
1620ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621# for backward compatibility:
1622ac_top_builddir=$ac_top_build_prefix
1623
1624case $srcdir in
1625 .) # We are building in place.
1626 ac_srcdir=.
1627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
1630 ac_srcdir=$srcdir$ac_dir_suffix;
1631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1633 *) # Relative name.
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637esac
1638ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure" --help=recursive
1648 else
1649 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 fi || ac_status=$?
1651 cd "$ac_pwd" || { ac_status=$?; break; }
1652 done
1653fi
1654
1655test -n "$ac_init_help" && exit $ac_status
1656if $ac_init_version; then
1657 cat <<\_ACEOF
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001658llvm configure 2.6svn
1659generated by GNU Autoconf 2.60
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001660
1661Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16622002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1663This configure script is free software; the Free Software Foundation
1664gives unlimited permission to copy, distribute and modify it.
1665
Tanya Lattnerf4644302008-01-17 05:57:22 +00001666Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001667_ACEOF
1668 exit
1669fi
1670cat >config.log <<_ACEOF
1671This file contains any messages produced by compilers while
1672running configure, to aid debugging if configure makes a mistake.
1673
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001674It was created by llvm $as_me 2.6svn, which was
1675generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001676
1677 $ $0 $@
1678
1679_ACEOF
1680exec 5>>config.log
1681{
1682cat <<_ASUNAME
1683## --------- ##
1684## Platform. ##
1685## --------- ##
1686
1687hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1688uname -m = `(uname -m) 2>/dev/null || echo unknown`
1689uname -r = `(uname -r) 2>/dev/null || echo unknown`
1690uname -s = `(uname -s) 2>/dev/null || echo unknown`
1691uname -v = `(uname -v) 2>/dev/null || echo unknown`
1692
1693/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1694/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1695
1696/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1697/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1698/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1699/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1700/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1701/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1702/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1703
1704_ASUNAME
1705
1706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707for as_dir in $PATH
1708do
1709 IFS=$as_save_IFS
1710 test -z "$as_dir" && as_dir=.
1711 echo "PATH: $as_dir"
1712done
1713IFS=$as_save_IFS
1714
1715} >&5
1716
1717cat >&5 <<_ACEOF
1718
1719
1720## ----------- ##
1721## Core tests. ##
1722## ----------- ##
1723
1724_ACEOF
1725
1726
1727# Keep a trace of the command line.
1728# Strip out --no-create and --no-recursion so they do not pile up.
1729# Strip out --silent because we don't want to record it for future runs.
1730# Also quote any args containing shell meta-characters.
1731# Make two passes to allow for proper duplicate-argument suppression.
1732ac_configure_args=
1733ac_configure_args0=
1734ac_configure_args1=
1735ac_must_keep_next=false
1736for ac_pass in 1 2
1737do
1738 for ac_arg
1739 do
1740 case $ac_arg in
1741 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1743 | -silent | --silent | --silen | --sile | --sil)
1744 continue ;;
1745 *\'*)
1746 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1747 esac
1748 case $ac_pass in
1749 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1750 2)
1751 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1752 if test $ac_must_keep_next = true; then
1753 ac_must_keep_next=false # Got value, back to normal.
1754 else
1755 case $ac_arg in
1756 *=* | --config-cache | -C | -disable-* | --disable-* \
1757 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1758 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1759 | -with-* | --with-* | -without-* | --without-* | --x)
1760 case "$ac_configure_args0 " in
1761 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1762 esac
1763 ;;
1764 -* ) ac_must_keep_next=true ;;
1765 esac
1766 fi
1767 ac_configure_args="$ac_configure_args '$ac_arg'"
1768 ;;
1769 esac
1770 done
1771done
1772$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1773$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1774
1775# When interrupted or exit'd, cleanup temporary files, and complete
1776# config.log. We remove comments because anyway the quotes in there
1777# would cause problems or look ugly.
1778# WARNING: Use '\'' to represent an apostrophe within the trap.
1779# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1780trap 'exit_status=$?
1781 # Save into config.log some information that might help in debugging.
1782 {
1783 echo
1784
1785 cat <<\_ASBOX
1786## ---------------- ##
1787## Cache variables. ##
1788## ---------------- ##
1789_ASBOX
1790 echo
1791 # The following way of writing the cache mishandles newlines in values,
1792(
1793 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1794 eval ac_val=\$$ac_var
1795 case $ac_val in #(
1796 *${as_nl}*)
1797 case $ac_var in #(
1798 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1799echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1800 esac
1801 case $ac_var in #(
1802 _ | IFS | as_nl) ;; #(
1803 *) $as_unset $ac_var ;;
1804 esac ;;
1805 esac
1806 done
1807 (set) 2>&1 |
1808 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1809 *${as_nl}ac_space=\ *)
1810 sed -n \
1811 "s/'\''/'\''\\\\'\'''\''/g;
1812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1813 ;; #(
1814 *)
1815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1816 ;;
1817 esac |
1818 sort
1819)
1820 echo
1821
1822 cat <<\_ASBOX
1823## ----------------- ##
1824## Output variables. ##
1825## ----------------- ##
1826_ASBOX
1827 echo
1828 for ac_var in $ac_subst_vars
1829 do
1830 eval ac_val=\$$ac_var
1831 case $ac_val in
1832 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833 esac
1834 echo "$ac_var='\''$ac_val'\''"
1835 done | sort
1836 echo
1837
1838 if test -n "$ac_subst_files"; then
1839 cat <<\_ASBOX
1840## ------------------- ##
1841## File substitutions. ##
1842## ------------------- ##
1843_ASBOX
1844 echo
1845 for ac_var in $ac_subst_files
1846 do
1847 eval ac_val=\$$ac_var
1848 case $ac_val in
1849 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1850 esac
1851 echo "$ac_var='\''$ac_val'\''"
1852 done | sort
1853 echo
1854 fi
1855
1856 if test -s confdefs.h; then
1857 cat <<\_ASBOX
1858## ----------- ##
1859## confdefs.h. ##
1860## ----------- ##
1861_ASBOX
1862 echo
1863 cat confdefs.h
1864 echo
1865 fi
1866 test "$ac_signal" != 0 &&
1867 echo "$as_me: caught signal $ac_signal"
1868 echo "$as_me: exit $exit_status"
1869 } >&5
1870 rm -f core *.core core.conftest.* &&
1871 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1872 exit $exit_status
1873' 0
1874for ac_signal in 1 2 13 15; do
1875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1876done
1877ac_signal=0
1878
1879# confdefs.h avoids OS command line length limits that DEFS can exceed.
1880rm -f -r conftest* confdefs.h
1881
1882# Predefined preprocessor variables.
1883
1884cat >>confdefs.h <<_ACEOF
1885#define PACKAGE_NAME "$PACKAGE_NAME"
1886_ACEOF
1887
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1891_ACEOF
1892
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_VERSION "$PACKAGE_VERSION"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_STRING "$PACKAGE_STRING"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1906_ACEOF
1907
1908
1909# Let the site file select an alternate cache file if it wants to.
1910# Prefer explicitly selected file to automatically selected ones.
1911if test -n "$CONFIG_SITE"; then
1912 set x "$CONFIG_SITE"
1913elif test "x$prefix" != xNONE; then
1914 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1915else
1916 set x "$ac_default_prefix/share/config.site" \
1917 "$ac_default_prefix/etc/config.site"
1918fi
1919shift
1920for ac_site_file
1921do
1922 if test -r "$ac_site_file"; then
1923 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1924echo "$as_me: loading site script $ac_site_file" >&6;}
1925 sed 's/^/| /' "$ac_site_file" >&5
1926 . "$ac_site_file"
1927 fi
1928done
1929
1930if test -r "$cache_file"; then
1931 # Some versions of bash will fail to source /dev/null (special
1932 # files actually), so we avoid doing that.
1933 if test -f "$cache_file"; then
1934 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1935echo "$as_me: loading cache $cache_file" >&6;}
1936 case $cache_file in
1937 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1938 *) . "./$cache_file";;
1939 esac
1940 fi
1941else
1942 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1943echo "$as_me: creating cache $cache_file" >&6;}
1944 >$cache_file
1945fi
1946
1947# Check that the precious variables saved in the cache have kept the same
1948# value.
1949ac_cache_corrupted=false
1950for ac_var in $ac_precious_vars; do
1951 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952 eval ac_new_set=\$ac_env_${ac_var}_set
1953 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954 eval ac_new_val=\$ac_env_${ac_var}_value
1955 case $ac_old_set,$ac_new_set in
1956 set,)
1957 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959 ac_cache_corrupted=: ;;
1960 ,set)
1961 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1964 ,);;
1965 *)
1966 if test "x$ac_old_val" != "x$ac_new_val"; then
1967 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1968echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1969 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1970echo "$as_me: former value: $ac_old_val" >&2;}
1971 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1972echo "$as_me: current value: $ac_new_val" >&2;}
1973 ac_cache_corrupted=:
1974 fi;;
1975 esac
1976 # Pass precious variables to config.status.
1977 if test "$ac_new_set" = set; then
1978 case $ac_new_val in
1979 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1980 *) ac_arg=$ac_var=$ac_new_val ;;
1981 esac
1982 case " $ac_configure_args " in
1983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1984 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1985 esac
1986 fi
1987done
1988if $ac_cache_corrupted; then
1989 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1990echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1991 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1992echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1993 { (exit 1); exit 1; }; }
1994fi
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020ac_ext=c
2021ac_cpp='$CPP $CPPFLAGS'
2022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025
2026
2027
Tanya Lattnerf4644302008-01-17 05:57:22 +00002028LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002029
2030
2031
2032
2033
2034
2035
2036ac_aux_dir=
2037for ac_dir in autoconf "$srcdir"/autoconf; do
2038 if test -f "$ac_dir/install-sh"; then
2039 ac_aux_dir=$ac_dir
2040 ac_install_sh="$ac_aux_dir/install-sh -c"
2041 break
2042 elif test -f "$ac_dir/install.sh"; then
2043 ac_aux_dir=$ac_dir
2044 ac_install_sh="$ac_aux_dir/install.sh -c"
2045 break
2046 elif test -f "$ac_dir/shtool"; then
2047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/shtool install -c"
2049 break
2050 fi
2051done
2052if test -z "$ac_aux_dir"; then
2053 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2054echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2055 { (exit 1); exit 1; }; }
2056fi
2057
2058# These three variables are undocumented and unsupported,
2059# and are intended to be withdrawn in a future Autoconf release.
2060# They can cause serious problems if a builder's source tree is in a directory
2061# whose full name contains unusual characters.
2062ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2063ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2064ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2065
2066
2067
2068if test ${srcdir} != "." ; then
2069 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2070 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2071echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2072 { (exit 1); exit 1; }; }
2073 fi
2074fi
2075
2076for i in `ls ${srcdir}/projects`
2077do
2078 if test -d ${srcdir}/projects/${i} ; then
2079 case ${i} in
2080 CVS) ;;
2081 sample) subdirs="$subdirs projects/sample"
2082 ;;
2083 privbracket) subdirs="$subdirs projects/privbracket"
2084 ;;
2085 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2086 ;;
Tanya Lattneree1742c2008-06-24 17:49:13 +00002087 # llvm-test is the old name of the test-suite, kept here for backwards
2088 # compatibility
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002089 llvm-test) subdirs="$subdirs projects/llvm-test"
2090 ;;
Matthijs Kooijman0b8be862008-06-24 13:01:57 +00002091 test-suite) subdirs="$subdirs projects/test-suite"
2092 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002093 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2094;;
2095 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2096 ;;
2097 llvm-java) subdirs="$subdirs projects/llvm-java"
2098 ;;
2099 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2100 ;;
2101 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2102 ;;
Reid Spencer59c09b32007-07-30 20:13:24 +00002103 poolalloc) subdirs="$subdirs projects/poolalloc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002104 ;;
2105 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2106 ;;
2107 *)
2108 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2109echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2110 ;;
2111 esac
2112 fi
2113done
2114
2115
2116# Make sure we can run config.sub.
2117$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2118 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2119echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2120 { (exit 1); exit 1; }; }
2121
2122{ echo "$as_me:$LINENO: checking build system type" >&5
2123echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2124if test "${ac_cv_build+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126else
2127 ac_build_alias=$build_alias
2128test "x$ac_build_alias" = x &&
2129 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2130test "x$ac_build_alias" = x &&
2131 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2132echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2133 { (exit 1); exit 1; }; }
2134ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2135 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2136echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2137 { (exit 1); exit 1; }; }
2138
2139fi
2140{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2141echo "${ECHO_T}$ac_cv_build" >&6; }
2142case $ac_cv_build in
2143*-*-*) ;;
2144*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2145echo "$as_me: error: invalid value of canonical build" >&2;}
2146 { (exit 1); exit 1; }; };;
2147esac
2148build=$ac_cv_build
2149ac_save_IFS=$IFS; IFS='-'
2150set x $ac_cv_build
2151shift
2152build_cpu=$1
2153build_vendor=$2
2154shift; shift
2155# Remember, the first character of IFS is used to create $*,
2156# except with old shells:
2157build_os=$*
2158IFS=$ac_save_IFS
2159case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2160
2161
2162{ echo "$as_me:$LINENO: checking host system type" >&5
2163echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2164if test "${ac_cv_host+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166else
2167 if test "x$host_alias" = x; then
2168 ac_cv_host=$ac_cv_build
2169else
2170 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2171 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2172echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2173 { (exit 1); exit 1; }; }
2174fi
2175
2176fi
2177{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2178echo "${ECHO_T}$ac_cv_host" >&6; }
2179case $ac_cv_host in
2180*-*-*) ;;
2181*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2182echo "$as_me: error: invalid value of canonical host" >&2;}
2183 { (exit 1); exit 1; }; };;
2184esac
2185host=$ac_cv_host
2186ac_save_IFS=$IFS; IFS='-'
2187set x $ac_cv_host
2188shift
2189host_cpu=$1
2190host_vendor=$2
2191shift; shift
2192# Remember, the first character of IFS is used to create $*,
2193# except with old shells:
2194host_os=$*
2195IFS=$ac_save_IFS
2196case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2197
2198
2199{ echo "$as_me:$LINENO: checking target system type" >&5
2200echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2201if test "${ac_cv_target+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203else
2204 if test "x$target_alias" = x; then
2205 ac_cv_target=$ac_cv_host
2206else
2207 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2208 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2209echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2210 { (exit 1); exit 1; }; }
2211fi
2212
2213fi
2214{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2215echo "${ECHO_T}$ac_cv_target" >&6; }
2216case $ac_cv_target in
2217*-*-*) ;;
2218*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2219echo "$as_me: error: invalid value of canonical target" >&2;}
2220 { (exit 1); exit 1; }; };;
2221esac
2222target=$ac_cv_target
2223ac_save_IFS=$IFS; IFS='-'
2224set x $ac_cv_target
2225shift
2226target_cpu=$1
2227target_vendor=$2
2228shift; shift
2229# Remember, the first character of IFS is used to create $*,
2230# except with old shells:
2231target_os=$*
2232IFS=$ac_save_IFS
2233case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2234
2235
2236# The aliases save the names the user supplied, while $host etc.
2237# will get canonicalized.
2238test -n "$target_alias" &&
2239 test "$program_prefix$program_suffix$program_transform_name" = \
2240 NONENONEs,x,x, &&
2241 program_prefix=${target_alias}-
2242
2243{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2244echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2245if test "${llvm_cv_os_type+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247else
2248 case $host in
2249 *-*-aix*)
2250 llvm_cv_link_all_option="-Wl,--whole-archive"
2251 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2252 llvm_cv_os_type="AIX"
2253 llvm_cv_platform_type="Unix" ;;
2254 *-*-irix*)
2255 llvm_cv_link_all_option="-Wl,--whole-archive"
2256 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2257 llvm_cv_os_type="IRIX"
2258 llvm_cv_platform_type="Unix" ;;
2259 *-*-cygwin*)
2260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262 llvm_cv_os_type="Cygwin"
2263 llvm_cv_platform_type="Unix" ;;
2264 *-*-darwin*)
2265 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattnerf0ddba82008-02-05 19:43:53 +00002266 llvm_cv_no_link_all_option="-Wl,-noall_load"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002267 llvm_cv_os_type="Darwin"
2268 llvm_cv_platform_type="Unix" ;;
2269 *-*-freebsd*)
2270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272 llvm_cv_os_type="FreeBSD"
2273 llvm_cv_platform_type="Unix" ;;
2274 *-*-openbsd*)
2275 llvm_cv_link_all_option="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2277 llvm_cv_os_type="OpenBSD"
2278 llvm_cv_platform_type="Unix" ;;
2279 *-*-netbsd*)
2280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282 llvm_cv_os_type="NetBSD"
2283 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijman331217d2008-06-26 10:36:58 +00002284 *-*-dragonfly*)
2285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287 llvm_cv_os_type="DragonFly"
2288 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002289 *-*-hpux*)
2290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292 llvm_cv_os_type="HP-UX"
2293 llvm_cv_platform_type="Unix" ;;
2294 *-*-interix*)
2295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297 llvm_cv_os_type="Interix"
2298 llvm_cv_platform_type="Unix" ;;
2299 *-*-linux*)
2300 llvm_cv_link_all_option="-Wl,--whole-archive"
2301 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2302 llvm_cv_os_type="Linux"
2303 llvm_cv_platform_type="Unix" ;;
2304 *-*-solaris*)
2305 llvm_cv_link_all_option="-Wl,-z,allextract"
2306 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2307 llvm_cv_os_type="SunOS"
2308 llvm_cv_platform_type="Unix" ;;
2309 *-*-win32*)
2310 llvm_cv_link_all_option="-Wl,--whole-archive"
2311 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2312 llvm_cv_os_type="Win32"
2313 llvm_cv_platform_type="Win32" ;;
2314 *-*-mingw*)
2315 llvm_cv_link_all_option="-Wl,--whole-archive"
2316 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2317 llvm_cv_os_type="MingW"
2318 llvm_cv_platform_type="Win32" ;;
2319 *)
2320 llvm_cv_link_all_option=""
2321 llvm_cv_no_link_all_option=""
2322 llvm_cv_os_type="Unknown"
2323 llvm_cv_platform_type="Unknown" ;;
2324esac
2325fi
2326{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2327echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2328
2329if test "$llvm_cv_os_type" = "Unknown" ; then
2330 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2331echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2332 { (exit 1); exit 1; }; }
2333fi
2334
2335OS=$llvm_cv_os_type
2336
2337
2338LINKALL=$llvm_cv_link_all_option
2339
2340NOLINKALL=$llvm_cv_no_link_all_option
2341
2342
2343case $llvm_cv_platform_type in
2344 Unix)
2345
2346cat >>confdefs.h <<\_ACEOF
2347#define LLVM_ON_UNIX 1
2348_ACEOF
2349
2350 LLVM_ON_UNIX=1
2351
2352 LLVM_ON_WIN32=0
2353
2354 ;;
2355 Win32)
2356
2357cat >>confdefs.h <<\_ACEOF
2358#define LLVM_ON_WIN32 1
2359_ACEOF
2360
2361 LLVM_ON_UNIX=0
2362
2363 LLVM_ON_WIN32=1
2364
2365 ;;
2366esac
2367
2368{ echo "$as_me:$LINENO: checking target architecture" >&5
2369echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2370if test "${llvm_cv_target_arch+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2372else
2373 case $target in
2374 i?86-*) llvm_cv_target_arch="x86" ;;
2375 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2376 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2377 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2378 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2379 ia64-*) llvm_cv_target_arch="IA64" ;;
2380 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00002381 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00002382 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00002383 xcore-*) llvm_cv_target_arch="XCore" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002384 *) llvm_cv_target_arch="Unknown" ;;
2385esac
2386fi
2387{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2388echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2389
2390if test "$llvm_cv_target_arch" = "Unknown" ; then
2391 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2392echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2393fi
2394
Bill Wendling025cce52009-03-12 04:10:09 +00002395ARCH=$llvm_cv_target_arch
2396
2397
2398ac_ext=c
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002399ac_cpp='$CPP $CPPFLAGS'
2400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402ac_compiler_gnu=$ac_cv_c_compiler_gnu
2403if test -n "$ac_tool_prefix"; then
2404 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2405set dummy ${ac_tool_prefix}gcc; ac_word=$2
2406{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2408if test "${ac_cv_prog_CC+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2410else
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC="$CC" # Let the user override the test.
2413else
2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415for as_dir in $PATH
2416do
2417 IFS=$as_save_IFS
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00002420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002421 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 break 2
2424 fi
2425done
2426done
2427IFS=$as_save_IFS
2428
2429fi
2430fi
2431CC=$ac_cv_prog_CC
2432if test -n "$CC"; then
2433 { echo "$as_me:$LINENO: result: $CC" >&5
2434echo "${ECHO_T}$CC" >&6; }
2435else
2436 { echo "$as_me:$LINENO: result: no" >&5
2437echo "${ECHO_T}no" >&6; }
2438fi
2439
2440
2441fi
2442if test -z "$ac_cv_prog_CC"; then
2443 ac_ct_CC=$CC
2444 # Extract the first word of "gcc", so it can be a program name with args.
2445set dummy gcc; ac_word=$2
2446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2450else
2451 if test -n "$ac_ct_CC"; then
2452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2453else
2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
2459 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00002460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002461 ac_cv_prog_ac_ct_CC="gcc"
2462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 break 2
2464 fi
2465done
2466done
2467IFS=$as_save_IFS
2468
2469fi
2470fi
2471ac_ct_CC=$ac_cv_prog_ac_ct_CC
2472if test -n "$ac_ct_CC"; then
2473 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2474echo "${ECHO_T}$ac_ct_CC" >&6; }
2475else
2476 { echo "$as_me:$LINENO: result: no" >&5
2477echo "${ECHO_T}no" >&6; }
2478fi
2479
2480 if test "x$ac_ct_CC" = x; then
2481 CC=""
2482 else
2483 case $cross_compiling:$ac_tool_warned in
2484yes:)
2485{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2486whose name does not start with the host triplet. If you think this
2487configuration is useful to you, please write to autoconf@gnu.org." >&5
2488echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2489whose name does not start with the host triplet. If you think this
2490configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2491ac_tool_warned=yes ;;
2492esac
2493 CC=$ac_ct_CC
2494 fi
2495else
2496 CC="$ac_cv_prog_CC"
2497fi
2498
2499if test -z "$CC"; then
2500 if test -n "$ac_tool_prefix"; then
2501 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2502set dummy ${ac_tool_prefix}cc; ac_word=$2
2503{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2505if test "${ac_cv_prog_CC+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507else
2508 if test -n "$CC"; then
2509 ac_cv_prog_CC="$CC" # Let the user override the test.
2510else
2511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00002517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002518 ac_cv_prog_CC="${ac_tool_prefix}cc"
2519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 break 2
2521 fi
2522done
2523done
2524IFS=$as_save_IFS
2525
2526fi
2527fi
2528CC=$ac_cv_prog_CC
2529if test -n "$CC"; then
2530 { echo "$as_me:$LINENO: result: $CC" >&5
2531echo "${ECHO_T}$CC" >&6; }
2532else
2533 { echo "$as_me:$LINENO: result: no" >&5
2534echo "${ECHO_T}no" >&6; }
2535fi
2536
2537
2538 fi
2539fi
2540if test -z "$CC"; then
2541 # Extract the first word of "cc", so it can be a program name with args.
2542set dummy cc; ac_word=$2
2543{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2545if test "${ac_cv_prog_CC+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2547else
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC="$CC" # Let the user override the test.
2550else
2551 ac_prog_rejected=no
2552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553for as_dir in $PATH
2554do
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00002558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002559 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2560 ac_prog_rejected=yes
2561 continue
2562 fi
2563 ac_cv_prog_CC="cc"
2564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 break 2
2566 fi
2567done
2568done
2569IFS=$as_save_IFS
2570
2571if test $ac_prog_rejected = yes; then
2572 # We found a bogon in the path, so make sure we never use it.
2573 set dummy $ac_cv_prog_CC
2574 shift
2575 if test $# != 0; then
2576 # We chose a different compiler from the bogus one.
2577 # However, it has the same basename, so the bogon will be chosen
2578 # first if we set CC to just the basename; use the full file name.
2579 shift
2580 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2581 fi
2582fi
2583fi
2584fi
2585CC=$ac_cv_prog_CC
2586if test -n "$CC"; then
2587 { echo "$as_me:$LINENO: result: $CC" >&5
2588echo "${ECHO_T}$CC" >&6; }
2589else
2590 { echo "$as_me:$LINENO: result: no" >&5
2591echo "${ECHO_T}no" >&6; }
2592fi
2593
2594
2595fi
2596if test -z "$CC"; then
2597 if test -n "$ac_tool_prefix"; then
2598 for ac_prog in cl.exe
2599 do
2600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2601set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604if test "${ac_cv_prog_CC+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2606else
2607 if test -n "$CC"; then
2608 ac_cv_prog_CC="$CC" # Let the user override the test.
2609else
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00002616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002617 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2620 fi
2621done
2622done
2623IFS=$as_save_IFS
2624
2625fi
2626fi
2627CC=$ac_cv_prog_CC
2628if test -n "$CC"; then
2629 { echo "$as_me:$LINENO: result: $CC" >&5
2630echo "${ECHO_T}$CC" >&6; }
2631else
2632 { echo "$as_me:$LINENO: result: no" >&5
2633echo "${ECHO_T}no" >&6; }
2634fi
2635
2636
2637 test -n "$CC" && break
2638 done
2639fi
2640if test -z "$CC"; then
2641 ac_ct_CC=$CC
2642 for ac_prog in cl.exe
2643do
2644 # Extract the first word of "$ac_prog", so it can be a program name with args.
2645set dummy $ac_prog; ac_word=$2
2646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2648if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2650else
2651 if test -n "$ac_ct_CC"; then
2652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2653else
2654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655for as_dir in $PATH
2656do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00002660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002661 ac_cv_prog_ac_ct_CC="$ac_prog"
2662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2664 fi
2665done
2666done
2667IFS=$as_save_IFS
2668
2669fi
2670fi
2671ac_ct_CC=$ac_cv_prog_ac_ct_CC
2672if test -n "$ac_ct_CC"; then
2673 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2674echo "${ECHO_T}$ac_ct_CC" >&6; }
2675else
2676 { echo "$as_me:$LINENO: result: no" >&5
2677echo "${ECHO_T}no" >&6; }
2678fi
2679
2680
2681 test -n "$ac_ct_CC" && break
2682done
2683
2684 if test "x$ac_ct_CC" = x; then
2685 CC=""
2686 else
2687 case $cross_compiling:$ac_tool_warned in
2688yes:)
2689{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2690whose name does not start with the host triplet. If you think this
2691configuration is useful to you, please write to autoconf@gnu.org." >&5
2692echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2693whose name does not start with the host triplet. If you think this
2694configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2695ac_tool_warned=yes ;;
2696esac
2697 CC=$ac_ct_CC
2698 fi
2699fi
2700
2701fi
2702
2703
2704test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2705See \`config.log' for more details." >&5
2706echo "$as_me: error: no acceptable C compiler found in \$PATH
2707See \`config.log' for more details." >&2;}
2708 { (exit 1); exit 1; }; }
2709
2710# Provide some information about the compiler.
2711echo "$as_me:$LINENO: checking for C compiler version" >&5
2712ac_compiler=`set X $ac_compile; echo $2`
2713{ (ac_try="$ac_compiler --version >&5"
2714case "(($ac_try" in
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2717esac
2718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_compiler --version >&5") 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }
2723{ (ac_try="$ac_compiler -v >&5"
2724case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727esac
2728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_compiler -v >&5") 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }
2733{ (ac_try="$ac_compiler -V >&5"
2734case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737esac
2738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compiler -V >&5") 2>&5
2740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }
2743
2744cat >conftest.$ac_ext <<_ACEOF
2745/* confdefs.h. */
2746_ACEOF
2747cat confdefs.h >>conftest.$ac_ext
2748cat >>conftest.$ac_ext <<_ACEOF
2749/* end confdefs.h. */
2750
2751int
2752main ()
2753{
2754
2755 ;
2756 return 0;
2757}
2758_ACEOF
2759ac_clean_files_save=$ac_clean_files
2760ac_clean_files="$ac_clean_files a.out a.exe b.out"
2761# Try to create an executable without -o first, disregard a.out.
2762# It will help us diagnose broken compilers, and finding out an intuition
2763# of exeext.
2764{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2765echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2766ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2767#
2768# List of possible output files, starting from the most likely.
2769# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2770# only as a last resort. b.out is created by i960 compilers.
2771ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2772#
2773# The IRIX 6 linker writes into existing files which may not be
2774# executable, retaining their permissions. Remove them first so a
2775# subsequent execution test works.
2776ac_rmfiles=
2777for ac_file in $ac_files
2778do
2779 case $ac_file in
2780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2781 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2782 esac
2783done
2784rm -f $ac_rmfiles
2785
2786if { (ac_try="$ac_link_default"
2787case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790esac
2791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_link_default") 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; then
2796 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2797# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2798# in a Makefile. We should not override ac_cv_exeext if it was cached,
2799# so that the user can short-circuit this test for compilers unknown to
2800# Autoconf.
Tanya Lattner3fa4a442009-01-22 05:17:59 +00002801for ac_file in $ac_files
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002802do
2803 test -f "$ac_file" || continue
2804 case $ac_file in
2805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2806 ;;
2807 [ab].out )
2808 # We found the default executable, but exeext='' is most
2809 # certainly right.
2810 break;;
2811 *.* )
2812 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2813 then :; else
2814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2815 fi
2816 # We set ac_cv_exeext here because the later test for it is not
2817 # safe: cross compilers may not add the suffix if given an `-o'
2818 # argument, so we may need to know it at that point already.
2819 # Even if this section looks crufty: it has the advantage of
2820 # actually working.
2821 break;;
2822 * )
2823 break;;
2824 esac
2825done
2826test "$ac_cv_exeext" = no && ac_cv_exeext=
2827
2828else
2829 echo "$as_me: failed program was:" >&5
2830sed 's/^/| /' conftest.$ac_ext >&5
2831
2832{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2833See \`config.log' for more details." >&5
2834echo "$as_me: error: C compiler cannot create executables
2835See \`config.log' for more details." >&2;}
2836 { (exit 77); exit 77; }; }
2837fi
2838
2839ac_exeext=$ac_cv_exeext
Tanya Lattner3fa4a442009-01-22 05:17:59 +00002840{ echo "$as_me:$LINENO: result: $ac_file" >&5
2841echo "${ECHO_T}$ac_file" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002842
2843# Check that the compiler produces executables we can run. If not, either
2844# the compiler is broken, or we cross compile.
2845{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2846echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2847# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2848# If not cross compiling, check that we can run a simple program.
2849if test "$cross_compiling" != yes; then
2850 if { ac_try='./$ac_file'
2851 { (case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854esac
2855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856 (eval "$ac_try") 2>&5
2857 ac_status=$?
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2860 cross_compiling=no
2861 else
2862 if test "$cross_compiling" = maybe; then
2863 cross_compiling=yes
2864 else
2865 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2866If you meant to cross compile, use \`--host'.
2867See \`config.log' for more details." >&5
2868echo "$as_me: error: cannot run C compiled programs.
2869If you meant to cross compile, use \`--host'.
2870See \`config.log' for more details." >&2;}
2871 { (exit 1); exit 1; }; }
2872 fi
2873 fi
2874fi
2875{ echo "$as_me:$LINENO: result: yes" >&5
2876echo "${ECHO_T}yes" >&6; }
2877
2878rm -f a.out a.exe conftest$ac_cv_exeext b.out
2879ac_clean_files=$ac_clean_files_save
2880# Check that the compiler produces executables we can run. If not, either
2881# the compiler is broken, or we cross compile.
2882{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2883echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2884{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2885echo "${ECHO_T}$cross_compiling" >&6; }
2886
2887{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2888echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2889if { (ac_try="$ac_link"
2890case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893esac
2894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_link") 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; then
2899 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2900# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2901# work properly (i.e., refer to `conftest.exe'), while it won't with
2902# `rm'.
2903for ac_file in conftest.exe conftest conftest.*; do
2904 test -f "$ac_file" || continue
2905 case $ac_file in
2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2907 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2908 break;;
2909 * ) break;;
2910 esac
2911done
2912else
2913 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2914See \`config.log' for more details." >&5
2915echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2916See \`config.log' for more details." >&2;}
2917 { (exit 1); exit 1; }; }
2918fi
2919
2920rm -f conftest$ac_cv_exeext
2921{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2922echo "${ECHO_T}$ac_cv_exeext" >&6; }
2923
2924rm -f conftest.$ac_ext
2925EXEEXT=$ac_cv_exeext
2926ac_exeext=$EXEEXT
2927{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2928echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2929if test "${ac_cv_objext+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2931else
2932 cat >conftest.$ac_ext <<_ACEOF
2933/* confdefs.h. */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h. */
2938
2939int
2940main ()
2941{
2942
2943 ;
2944 return 0;
2945}
2946_ACEOF
2947rm -f conftest.o conftest.obj
2948if { (ac_try="$ac_compile"
2949case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952esac
2953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_compile") 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; then
2958 for ac_file in conftest.o conftest.obj conftest.*; do
2959 test -f "$ac_file" || continue;
2960 case $ac_file in
2961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2962 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2963 break;;
2964 esac
2965done
2966else
2967 echo "$as_me: failed program was:" >&5
2968sed 's/^/| /' conftest.$ac_ext >&5
2969
2970{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2971See \`config.log' for more details." >&5
2972echo "$as_me: error: cannot compute suffix of object files: cannot compile
2973See \`config.log' for more details." >&2;}
2974 { (exit 1); exit 1; }; }
2975fi
2976
2977rm -f conftest.$ac_cv_objext conftest.$ac_ext
2978fi
2979{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2980echo "${ECHO_T}$ac_cv_objext" >&6; }
2981OBJEXT=$ac_cv_objext
2982ac_objext=$OBJEXT
2983{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2984echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2985if test "${ac_cv_c_compiler_gnu+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2987else
2988 cat >conftest.$ac_ext <<_ACEOF
2989/* confdefs.h. */
2990_ACEOF
2991cat confdefs.h >>conftest.$ac_ext
2992cat >>conftest.$ac_ext <<_ACEOF
2993/* end confdefs.h. */
2994
2995int
2996main ()
2997{
2998#ifndef __GNUC__
2999 choke me
3000#endif
3001
3002 ;
3003 return 0;
3004}
3005_ACEOF
3006rm -f conftest.$ac_objext
3007if { (ac_try="$ac_compile"
3008case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011esac
3012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compile") 2>conftest.er1
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003019 (exit $ac_status); } &&
3020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3021 { (case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024esac
3025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_try") 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; } &&
3030 { ac_try='test -s conftest.$ac_objext'
3031 { (case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034esac
3035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_try") 2>&5
3037 ac_status=$?
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003040 ac_compiler_gnu=yes
3041else
3042 echo "$as_me: failed program was:" >&5
3043sed 's/^/| /' conftest.$ac_ext >&5
3044
3045 ac_compiler_gnu=no
3046fi
3047
3048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049ac_cv_c_compiler_gnu=$ac_compiler_gnu
3050
3051fi
3052{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3053echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3054GCC=`test $ac_compiler_gnu = yes && echo yes`
3055ac_test_CFLAGS=${CFLAGS+set}
3056ac_save_CFLAGS=$CFLAGS
3057{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3058echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3059if test "${ac_cv_prog_cc_g+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3061else
3062 ac_save_c_werror_flag=$ac_c_werror_flag
3063 ac_c_werror_flag=yes
3064 ac_cv_prog_cc_g=no
3065 CFLAGS="-g"
3066 cat >conftest.$ac_ext <<_ACEOF
3067/* confdefs.h. */
3068_ACEOF
3069cat confdefs.h >>conftest.$ac_ext
3070cat >>conftest.$ac_ext <<_ACEOF
3071/* end confdefs.h. */
3072
3073int
3074main ()
3075{
3076
3077 ;
3078 return 0;
3079}
3080_ACEOF
3081rm -f conftest.$ac_objext
3082if { (ac_try="$ac_compile"
3083case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086esac
3087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3089 ac_status=$?
3090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003094 (exit $ac_status); } &&
3095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3096 { (case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099esac
3100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_try") 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109esac
3110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_try") 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003115 ac_cv_prog_cc_g=yes
3116else
3117 echo "$as_me: failed program was:" >&5
3118sed 's/^/| /' conftest.$ac_ext >&5
3119
3120 CFLAGS=""
3121 cat >conftest.$ac_ext <<_ACEOF
3122/* confdefs.h. */
3123_ACEOF
3124cat confdefs.h >>conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
3126/* end confdefs.h. */
3127
3128int
3129main ()
3130{
3131
3132 ;
3133 return 0;
3134}
3135_ACEOF
3136rm -f conftest.$ac_objext
3137if { (ac_try="$ac_compile"
3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3144 ac_status=$?
3145 grep -v '^ *+' conftest.er1 >conftest.err
3146 rm -f conftest.er1
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154esac
3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
3165eval "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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003170 :
3171else
3172 echo "$as_me: failed program was:" >&5
3173sed 's/^/| /' conftest.$ac_ext >&5
3174
3175 ac_c_werror_flag=$ac_save_c_werror_flag
3176 CFLAGS="-g"
3177 cat >conftest.$ac_ext <<_ACEOF
3178/* confdefs.h. */
3179_ACEOF
3180cat confdefs.h >>conftest.$ac_ext
3181cat >>conftest.$ac_ext <<_ACEOF
3182/* end confdefs.h. */
3183
3184int
3185main ()
3186{
3187
3188 ;
3189 return 0;
3190}
3191_ACEOF
3192rm -f conftest.$ac_objext
3193if { (ac_try="$ac_compile"
3194case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197esac
3198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_compile") 2>conftest.er1
3200 ac_status=$?
3201 grep -v '^ *+' conftest.er1 >conftest.err
3202 rm -f conftest.er1
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003205 (exit $ac_status); } &&
3206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3207 { (case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210esac
3211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212 (eval "$ac_try") 2>&5
3213 ac_status=$?
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; } &&
3216 { ac_try='test -s conftest.$ac_objext'
3217 { (case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3220esac
3221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222 (eval "$ac_try") 2>&5
3223 ac_status=$?
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003226 ac_cv_prog_cc_g=yes
3227else
3228 echo "$as_me: failed program was:" >&5
3229sed 's/^/| /' conftest.$ac_ext >&5
3230
3231
3232fi
3233
3234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235fi
3236
3237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238fi
3239
3240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_c_werror_flag=$ac_save_c_werror_flag
3242fi
3243{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3244echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3245if test "$ac_test_CFLAGS" = set; then
3246 CFLAGS=$ac_save_CFLAGS
3247elif test $ac_cv_prog_cc_g = yes; then
3248 if test "$GCC" = yes; then
3249 CFLAGS="-g -O2"
3250 else
3251 CFLAGS="-g"
3252 fi
3253else
3254 if test "$GCC" = yes; then
3255 CFLAGS="-O2"
3256 else
3257 CFLAGS=
3258 fi
3259fi
3260{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3261echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3262if test "${ac_cv_prog_cc_c89+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264else
3265 ac_cv_prog_cc_c89=no
3266ac_save_CC=$CC
3267cat >conftest.$ac_ext <<_ACEOF
3268/* confdefs.h. */
3269_ACEOF
3270cat confdefs.h >>conftest.$ac_ext
3271cat >>conftest.$ac_ext <<_ACEOF
3272/* end confdefs.h. */
3273#include <stdarg.h>
3274#include <stdio.h>
3275#include <sys/types.h>
3276#include <sys/stat.h>
3277/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3278struct buf { int x; };
3279FILE * (*rcsopen) (struct buf *, struct stat *, int);
3280static char *e (p, i)
3281 char **p;
3282 int i;
3283{
3284 return p[i];
3285}
3286static char *f (char * (*g) (char **, int), char **p, ...)
3287{
3288 char *s;
3289 va_list v;
3290 va_start (v,p);
3291 s = g (p, va_arg (v,int));
3292 va_end (v);
3293 return s;
3294}
3295
3296/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3297 function prototypes and stuff, but not '\xHH' hex character constants.
3298 These don't provoke an error unfortunately, instead are silently treated
3299 as 'x'. The following induces an error, until -std is added to get
3300 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3301 array size at least. It's necessary to write '\x00'==0 to get something
3302 that's true only with -std. */
3303int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3304
3305/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3306 inside strings and character constants. */
3307#define FOO(x) 'x'
3308int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3309
3310int test (int i, double x);
3311struct s1 {int (*f) (int a);};
3312struct s2 {int (*f) (double a);};
3313int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3314int argc;
3315char **argv;
3316int
3317main ()
3318{
3319return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3320 ;
3321 return 0;
3322}
3323_ACEOF
3324for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3325 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3326do
3327 CC="$ac_save_CC $ac_arg"
3328 rm -f conftest.$ac_objext
3329if { (ac_try="$ac_compile"
3330case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333esac
3334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_compile") 2>conftest.er1
3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003341 (exit $ac_status); } &&
3342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3343 { (case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346esac
3347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_try") 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356esac
3357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_try") 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003362 ac_cv_prog_cc_c89=$ac_arg
3363else
3364 echo "$as_me: failed program was:" >&5
3365sed 's/^/| /' conftest.$ac_ext >&5
3366
3367
3368fi
3369
3370rm -f core conftest.err conftest.$ac_objext
3371 test "x$ac_cv_prog_cc_c89" != "xno" && break
3372done
3373rm -f conftest.$ac_ext
3374CC=$ac_save_CC
3375
3376fi
3377# AC_CACHE_VAL
3378case "x$ac_cv_prog_cc_c89" in
3379 x)
3380 { echo "$as_me:$LINENO: result: none needed" >&5
3381echo "${ECHO_T}none needed" >&6; } ;;
3382 xno)
3383 { echo "$as_me:$LINENO: result: unsupported" >&5
3384echo "${ECHO_T}unsupported" >&6; } ;;
3385 *)
3386 CC="$CC $ac_cv_prog_cc_c89"
3387 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3388echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3389esac
3390
3391
3392ac_ext=c
3393ac_cpp='$CPP $CPPFLAGS'
3394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397
3398
3399ac_ext=c
3400ac_cpp='$CPP $CPPFLAGS'
3401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3405echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3406# On Suns, sometimes $CPP names a directory.
3407if test -n "$CPP" && test -d "$CPP"; then
3408 CPP=
3409fi
3410if test -z "$CPP"; then
3411 if test "${ac_cv_prog_CPP+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414 # Double quotes because CPP needs to be expanded
3415 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3416 do
3417 ac_preproc_ok=false
3418for ac_c_preproc_warn_flag in '' yes
3419do
3420 # Use a header file that comes with gcc, so configuring glibc
3421 # with a fresh cross-compiler works.
3422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423 # <limits.h> exists even on freestanding compilers.
3424 # On the NeXT, cc -E runs the code through the compiler's parser,
3425 # not just through cpp. "Syntax error" is here to catch this case.
3426 cat >conftest.$ac_ext <<_ACEOF
3427/* confdefs.h. */
3428_ACEOF
3429cat confdefs.h >>conftest.$ac_ext
3430cat >>conftest.$ac_ext <<_ACEOF
3431/* end confdefs.h. */
3432#ifdef __STDC__
3433# include <limits.h>
3434#else
3435# include <assert.h>
3436#endif
3437 Syntax error
3438_ACEOF
3439if { (ac_try="$ac_cpp conftest.$ac_ext"
3440case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443esac
3444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003451 (exit $ac_status); } >/dev/null; then
3452 if test -s conftest.err; then
3453 ac_cpp_err=$ac_c_preproc_warn_flag
3454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455 else
3456 ac_cpp_err=
3457 fi
3458else
3459 ac_cpp_err=yes
3460fi
3461if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003462 :
3463else
3464 echo "$as_me: failed program was:" >&5
3465sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 # Broken: fails on valid input.
3468continue
3469fi
3470
3471rm -f conftest.err conftest.$ac_ext
3472
3473 # OK, works on sane cases. Now check whether nonexistent headers
3474 # can be detected and how.
3475 cat >conftest.$ac_ext <<_ACEOF
3476/* confdefs.h. */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h. */
3481#include <ac_nonexistent.h>
3482_ACEOF
3483if { (ac_try="$ac_cpp conftest.$ac_ext"
3484case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487esac
3488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3490 ac_status=$?
3491 grep -v '^ *+' conftest.er1 >conftest.err
3492 rm -f conftest.er1
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003495 (exit $ac_status); } >/dev/null; then
3496 if test -s conftest.err; then
3497 ac_cpp_err=$ac_c_preproc_warn_flag
3498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3499 else
3500 ac_cpp_err=
3501 fi
3502else
3503 ac_cpp_err=yes
3504fi
3505if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003506 # Broken: success on invalid input.
3507continue
3508else
3509 echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
3512 # Passes both tests.
3513ac_preproc_ok=:
3514break
3515fi
3516
3517rm -f conftest.err conftest.$ac_ext
3518
3519done
3520# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3521rm -f conftest.err conftest.$ac_ext
3522if $ac_preproc_ok; then
3523 break
3524fi
3525
3526 done
3527 ac_cv_prog_CPP=$CPP
3528
3529fi
3530 CPP=$ac_cv_prog_CPP
3531else
3532 ac_cv_prog_CPP=$CPP
3533fi
3534{ echo "$as_me:$LINENO: result: $CPP" >&5
3535echo "${ECHO_T}$CPP" >&6; }
3536ac_preproc_ok=false
3537for ac_c_preproc_warn_flag in '' yes
3538do
3539 # Use a header file that comes with gcc, so configuring glibc
3540 # with a fresh cross-compiler works.
3541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3542 # <limits.h> exists even on freestanding compilers.
3543 # On the NeXT, cc -E runs the code through the compiler's parser,
3544 # not just through cpp. "Syntax error" is here to catch this case.
3545 cat >conftest.$ac_ext <<_ACEOF
3546/* confdefs.h. */
3547_ACEOF
3548cat confdefs.h >>conftest.$ac_ext
3549cat >>conftest.$ac_ext <<_ACEOF
3550/* end confdefs.h. */
3551#ifdef __STDC__
3552# include <limits.h>
3553#else
3554# include <assert.h>
3555#endif
3556 Syntax error
3557_ACEOF
3558if { (ac_try="$ac_cpp conftest.$ac_ext"
3559case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562esac
3563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003570 (exit $ac_status); } >/dev/null; then
3571 if test -s conftest.err; then
3572 ac_cpp_err=$ac_c_preproc_warn_flag
3573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3574 else
3575 ac_cpp_err=
3576 fi
3577else
3578 ac_cpp_err=yes
3579fi
3580if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003581 :
3582else
3583 echo "$as_me: failed program was:" >&5
3584sed 's/^/| /' conftest.$ac_ext >&5
3585
3586 # Broken: fails on valid input.
3587continue
3588fi
3589
3590rm -f conftest.err conftest.$ac_ext
3591
3592 # OK, works on sane cases. Now check whether nonexistent headers
3593 # can be detected and how.
3594 cat >conftest.$ac_ext <<_ACEOF
3595/* confdefs.h. */
3596_ACEOF
3597cat confdefs.h >>conftest.$ac_ext
3598cat >>conftest.$ac_ext <<_ACEOF
3599/* end confdefs.h. */
3600#include <ac_nonexistent.h>
3601_ACEOF
3602if { (ac_try="$ac_cpp conftest.$ac_ext"
3603case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606esac
3607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3609 ac_status=$?
3610 grep -v '^ *+' conftest.er1 >conftest.err
3611 rm -f conftest.er1
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003614 (exit $ac_status); } >/dev/null; then
3615 if test -s conftest.err; then
3616 ac_cpp_err=$ac_c_preproc_warn_flag
3617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3618 else
3619 ac_cpp_err=
3620 fi
3621else
3622 ac_cpp_err=yes
3623fi
3624if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003625 # Broken: success on invalid input.
3626continue
3627else
3628 echo "$as_me: failed program was:" >&5
3629sed 's/^/| /' conftest.$ac_ext >&5
3630
3631 # Passes both tests.
3632ac_preproc_ok=:
3633break
3634fi
3635
3636rm -f conftest.err conftest.$ac_ext
3637
3638done
3639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3640rm -f conftest.err conftest.$ac_ext
3641if $ac_preproc_ok; then
3642 :
3643else
3644 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3645See \`config.log' for more details." >&5
3646echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3647See \`config.log' for more details." >&2;}
3648 { (exit 1); exit 1; }; }
3649fi
3650
3651ac_ext=c
3652ac_cpp='$CPP $CPPFLAGS'
3653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656
3657
3658{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3659echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3660if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662else
3663 # Extract the first word of "grep ggrep" to use in msg output
3664if test -z "$GREP"; then
3665set dummy grep ggrep; ac_prog_name=$2
3666if test "${ac_cv_path_GREP+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668else
3669 ac_path_GREP_found=false
3670# Loop through the user's path and test for each of PROGNAME-LIST
3671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3673do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_prog in grep ggrep; do
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003679 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003680 # Check for GNU ac_path_GREP and select it if it is found.
3681 # Check for GNU $ac_path_GREP
3682case `"$ac_path_GREP" --version 2>&1` in
3683*GNU*)
3684 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3685*)
3686 ac_count=0
3687 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3688 while :
3689 do
3690 cat "conftest.in" "conftest.in" >"conftest.tmp"
3691 mv "conftest.tmp" "conftest.in"
3692 cp "conftest.in" "conftest.nl"
3693 echo 'GREP' >> "conftest.nl"
3694 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3696 ac_count=`expr $ac_count + 1`
3697 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3698 # Best one so far, save it but keep looking for a better one
3699 ac_cv_path_GREP="$ac_path_GREP"
3700 ac_path_GREP_max=$ac_count
3701 fi
3702 # 10*(2^10) chars as input seems more than enough
3703 test $ac_count -gt 10 && break
3704 done
3705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3706esac
3707
3708
3709 $ac_path_GREP_found && break 3
3710 done
3711done
3712
3713done
3714IFS=$as_save_IFS
3715
3716
3717fi
3718
3719GREP="$ac_cv_path_GREP"
3720if test -z "$GREP"; then
3721 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3722echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3723 { (exit 1); exit 1; }; }
3724fi
3725
3726else
3727 ac_cv_path_GREP=$GREP
3728fi
3729
3730
3731fi
3732{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3733echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3734 GREP="$ac_cv_path_GREP"
3735
3736
3737{ echo "$as_me:$LINENO: checking for egrep" >&5
3738echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3739if test "${ac_cv_path_EGREP+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741else
3742 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3743 then ac_cv_path_EGREP="$GREP -E"
3744 else
3745 # Extract the first word of "egrep" to use in msg output
3746if test -z "$EGREP"; then
3747set dummy egrep; ac_prog_name=$2
3748if test "${ac_cv_path_EGREP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750else
3751 ac_path_EGREP_found=false
3752# Loop through the user's path and test for each of PROGNAME-LIST
3753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3755do
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_prog in egrep; do
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003761 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003762 # Check for GNU ac_path_EGREP and select it if it is found.
3763 # Check for GNU $ac_path_EGREP
3764case `"$ac_path_EGREP" --version 2>&1` in
3765*GNU*)
3766 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3767*)
3768 ac_count=0
3769 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3770 while :
3771 do
3772 cat "conftest.in" "conftest.in" >"conftest.tmp"
3773 mv "conftest.tmp" "conftest.in"
3774 cp "conftest.in" "conftest.nl"
3775 echo 'EGREP' >> "conftest.nl"
3776 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3778 ac_count=`expr $ac_count + 1`
3779 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3780 # Best one so far, save it but keep looking for a better one
3781 ac_cv_path_EGREP="$ac_path_EGREP"
3782 ac_path_EGREP_max=$ac_count
3783 fi
3784 # 10*(2^10) chars as input seems more than enough
3785 test $ac_count -gt 10 && break
3786 done
3787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3788esac
3789
3790
3791 $ac_path_EGREP_found && break 3
3792 done
3793done
3794
3795done
3796IFS=$as_save_IFS
3797
3798
3799fi
3800
3801EGREP="$ac_cv_path_EGREP"
3802if test -z "$EGREP"; then
3803 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3804echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3805 { (exit 1); exit 1; }; }
3806fi
3807
3808else
3809 ac_cv_path_EGREP=$EGREP
3810fi
3811
3812
3813 fi
3814fi
3815{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3816echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3817 EGREP="$ac_cv_path_EGREP"
3818
3819
3820{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3821echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3822if test "${ac_cv_header_stdc+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
3825 cat >conftest.$ac_ext <<_ACEOF
3826/* confdefs.h. */
3827_ACEOF
3828cat confdefs.h >>conftest.$ac_ext
3829cat >>conftest.$ac_ext <<_ACEOF
3830/* end confdefs.h. */
3831#include <stdlib.h>
3832#include <stdarg.h>
3833#include <string.h>
3834#include <float.h>
3835
3836int
3837main ()
3838{
3839
3840 ;
3841 return 0;
3842}
3843_ACEOF
3844rm -f conftest.$ac_objext
3845if { (ac_try="$ac_compile"
3846case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849esac
3850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_compile") 2>conftest.er1
3852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003857 (exit $ac_status); } &&
3858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3859 { (case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862esac
3863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864 (eval "$ac_try") 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; } &&
3868 { ac_try='test -s conftest.$ac_objext'
3869 { (case "(($ac_try" in
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3872esac
3873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874 (eval "$ac_try") 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003878 ac_cv_header_stdc=yes
3879else
3880 echo "$as_me: failed program was:" >&5
3881sed 's/^/| /' conftest.$ac_ext >&5
3882
3883 ac_cv_header_stdc=no
3884fi
3885
3886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887
3888if test $ac_cv_header_stdc = yes; then
3889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3890 cat >conftest.$ac_ext <<_ACEOF
3891/* confdefs.h. */
3892_ACEOF
3893cat confdefs.h >>conftest.$ac_ext
3894cat >>conftest.$ac_ext <<_ACEOF
3895/* end confdefs.h. */
3896#include <string.h>
3897
3898_ACEOF
3899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3900 $EGREP "memchr" >/dev/null 2>&1; then
3901 :
3902else
3903 ac_cv_header_stdc=no
3904fi
3905rm -f conftest*
3906
3907fi
3908
3909if test $ac_cv_header_stdc = yes; then
3910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3911 cat >conftest.$ac_ext <<_ACEOF
3912/* confdefs.h. */
3913_ACEOF
3914cat confdefs.h >>conftest.$ac_ext
3915cat >>conftest.$ac_ext <<_ACEOF
3916/* end confdefs.h. */
3917#include <stdlib.h>
3918
3919_ACEOF
3920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3921 $EGREP "free" >/dev/null 2>&1; then
3922 :
3923else
3924 ac_cv_header_stdc=no
3925fi
3926rm -f conftest*
3927
3928fi
3929
3930if test $ac_cv_header_stdc = yes; then
3931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3932 if test "$cross_compiling" = yes; then
3933 :
3934else
3935 cat >conftest.$ac_ext <<_ACEOF
3936/* confdefs.h. */
3937_ACEOF
3938cat confdefs.h >>conftest.$ac_ext
3939cat >>conftest.$ac_ext <<_ACEOF
3940/* end confdefs.h. */
3941#include <ctype.h>
3942#include <stdlib.h>
3943#if ((' ' & 0x0FF) == 0x020)
3944# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3945# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3946#else
3947# define ISLOWER(c) \
3948 (('a' <= (c) && (c) <= 'i') \
3949 || ('j' <= (c) && (c) <= 'r') \
3950 || ('s' <= (c) && (c) <= 'z'))
3951# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3952#endif
3953
3954#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3955int
3956main ()
3957{
3958 int i;
3959 for (i = 0; i < 256; i++)
3960 if (XOR (islower (i), ISLOWER (i))
3961 || toupper (i) != TOUPPER (i))
3962 return 2;
3963 return 0;
3964}
3965_ACEOF
3966rm -f conftest$ac_exeext
3967if { (ac_try="$ac_link"
3968case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971esac
3972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973 (eval "$ac_link") 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3977 { (case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980esac
3981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982 (eval "$ac_try") 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3986 :
3987else
3988 echo "$as_me: program exited with status $ac_status" >&5
3989echo "$as_me: failed program was:" >&5
3990sed 's/^/| /' conftest.$ac_ext >&5
3991
3992( exit $ac_status )
3993ac_cv_header_stdc=no
3994fi
3995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3996fi
3997
3998
3999fi
4000fi
4001{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4002echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4003if test $ac_cv_header_stdc = yes; then
4004
4005cat >>confdefs.h <<\_ACEOF
4006#define STDC_HEADERS 1
4007_ACEOF
4008
4009fi
4010
4011# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4022 inttypes.h stdint.h unistd.h
4023do
4024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4025{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029else
4030 cat >conftest.$ac_ext <<_ACEOF
4031/* confdefs.h. */
4032_ACEOF
4033cat confdefs.h >>conftest.$ac_ext
4034cat >>conftest.$ac_ext <<_ACEOF
4035/* end confdefs.h. */
4036$ac_includes_default
4037
4038#include <$ac_header>
4039_ACEOF
4040rm -f conftest.$ac_objext
4041if { (ac_try="$ac_compile"
4042case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045esac
4046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047 (eval "$ac_compile") 2>conftest.er1
4048 ac_status=$?
4049 grep -v '^ *+' conftest.er1 >conftest.err
4050 rm -f conftest.er1
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004053 (exit $ac_status); } &&
4054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4055 { (case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4058esac
4059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_try") 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; } &&
4064 { ac_try='test -s conftest.$ac_objext'
4065 { (case "(($ac_try" in
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4068esac
4069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070 (eval "$ac_try") 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004074 eval "$as_ac_Header=yes"
4075else
4076 echo "$as_me: failed program was:" >&5
4077sed 's/^/| /' conftest.$ac_ext >&5
4078
4079 eval "$as_ac_Header=no"
4080fi
4081
4082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083fi
4084ac_res=`eval echo '${'$as_ac_Header'}'`
4085 { echo "$as_me:$LINENO: result: $ac_res" >&5
4086echo "${ECHO_T}$ac_res" >&6; }
4087if test `eval echo '${'$as_ac_Header'}'` = yes; then
4088 cat >>confdefs.h <<_ACEOF
4089#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4090_ACEOF
4091
4092fi
4093
4094done
4095
4096
4097{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4098echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4099if test "${ac_cv_c_bigendian+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101else
4102 # See if sys/param.h defines the BYTE_ORDER macro.
4103cat >conftest.$ac_ext <<_ACEOF
4104/* confdefs.h. */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h. */
4109#include <sys/types.h>
4110#include <sys/param.h>
4111
4112int
4113main ()
4114{
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004115#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004116 bogus endian macros
4117#endif
4118
4119 ;
4120 return 0;
4121}
4122_ACEOF
4123rm -f conftest.$ac_objext
4124if { (ac_try="$ac_compile"
4125case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128esac
4129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_compile") 2>conftest.er1
4131 ac_status=$?
4132 grep -v '^ *+' conftest.er1 >conftest.err
4133 rm -f conftest.er1
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004136 (exit $ac_status); } &&
4137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4138 { (case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141esac
4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_try") 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; } &&
4147 { ac_try='test -s conftest.$ac_objext'
4148 { (case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4151esac
4152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153 (eval "$ac_try") 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004157 # It does; now see whether it defined to BIG_ENDIAN or not.
4158cat >conftest.$ac_ext <<_ACEOF
4159/* confdefs.h. */
4160_ACEOF
4161cat confdefs.h >>conftest.$ac_ext
4162cat >>conftest.$ac_ext <<_ACEOF
4163/* end confdefs.h. */
4164#include <sys/types.h>
4165#include <sys/param.h>
4166
4167int
4168main ()
4169{
4170#if BYTE_ORDER != BIG_ENDIAN
4171 not big endian
4172#endif
4173
4174 ;
4175 return 0;
4176}
4177_ACEOF
4178rm -f conftest.$ac_objext
4179if { (ac_try="$ac_compile"
4180case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183esac
4184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_compile") 2>conftest.er1
4186 ac_status=$?
4187 grep -v '^ *+' conftest.er1 >conftest.err
4188 rm -f conftest.er1
4189 cat conftest.err >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004191 (exit $ac_status); } &&
4192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4193 { (case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196esac
4197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_try") 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest.$ac_objext'
4203 { (case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206esac
4207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208 (eval "$ac_try") 2>&5
4209 ac_status=$?
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004212 ac_cv_c_bigendian=yes
4213else
4214 echo "$as_me: failed program was:" >&5
4215sed 's/^/| /' conftest.$ac_ext >&5
4216
4217 ac_cv_c_bigendian=no
4218fi
4219
4220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221else
4222 echo "$as_me: failed program was:" >&5
4223sed 's/^/| /' conftest.$ac_ext >&5
4224
4225 # It does not; compile a test program.
4226if test "$cross_compiling" = yes; then
4227 # try to guess the endianness by grepping values into an object file
4228 ac_cv_c_bigendian=unknown
4229 cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h. */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
4234/* end confdefs.h. */
4235short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4236short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4237void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4238short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4239short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4240void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4241int
4242main ()
4243{
4244 _ascii (); _ebcdic ();
4245 ;
4246 return 0;
4247}
4248_ACEOF
4249rm -f conftest.$ac_objext
4250if { (ac_try="$ac_compile"
4251case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254esac
4255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_compile") 2>conftest.er1
4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264 { (case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267esac
4268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_try") 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; } &&
4273 { ac_try='test -s conftest.$ac_objext'
4274 { (case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277esac
4278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_try") 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004283 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4284 ac_cv_c_bigendian=yes
4285fi
4286if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4287 if test "$ac_cv_c_bigendian" = unknown; then
4288 ac_cv_c_bigendian=no
4289 else
4290 # finding both strings is unlikely to happen, but who knows?
4291 ac_cv_c_bigendian=unknown
4292 fi
4293fi
4294else
4295 echo "$as_me: failed program was:" >&5
4296sed 's/^/| /' conftest.$ac_ext >&5
4297
4298
4299fi
4300
4301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302else
4303 cat >conftest.$ac_ext <<_ACEOF
4304/* confdefs.h. */
4305_ACEOF
4306cat confdefs.h >>conftest.$ac_ext
4307cat >>conftest.$ac_ext <<_ACEOF
4308/* end confdefs.h. */
4309$ac_includes_default
4310int
4311main ()
4312{
4313
4314 /* Are we little or big endian? From Harbison&Steele. */
4315 union
4316 {
4317 long int l;
4318 char c[sizeof (long int)];
4319 } u;
4320 u.l = 1;
4321 return u.c[sizeof (long int) - 1] == 1;
4322
4323 ;
4324 return 0;
4325}
4326_ACEOF
4327rm -f conftest$ac_exeext
4328if { (ac_try="$ac_link"
4329case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332esac
4333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_link") 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4338 { (case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4341esac
4342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_try") 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_c_bigendian=no
4348else
4349 echo "$as_me: program exited with status $ac_status" >&5
4350echo "$as_me: failed program was:" >&5
4351sed 's/^/| /' conftest.$ac_ext >&5
4352
4353( exit $ac_status )
4354ac_cv_c_bigendian=yes
4355fi
4356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4357fi
4358
4359
4360fi
4361
4362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363fi
4364{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4365echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4366case $ac_cv_c_bigendian in
4367 yes)
4368 ENDIAN=big
4369 ;;
4370 no)
4371 ENDIAN=little
4372 ;;
4373 *)
4374 { { echo "$as_me:$LINENO: error: unknown endianness
4375presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4376echo "$as_me: error: unknown endianness
4377presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4378 { (exit 1); exit 1; }; } ;;
4379esac
4380
4381
4382if test "$cross_compiling" = yes; then
4383 LLVM_CROSS_COMPILING=1
4384
4385
4386{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4387echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4388if test "${ac_cv_build_exeext+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390else
4391 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4392 ac_cv_build_exeext=.exe
4393else
4394 ac_build_prefix=${build_alias}-
4395
4396 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4397set dummy ${ac_build_prefix}gcc; ac_word=$2
4398{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4400if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403 if test -n "$BUILD_CC"; then
4404 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4405else
4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004413 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4416 fi
4417done
4418done
4419IFS=$as_save_IFS
4420
4421fi
4422fi
4423BUILD_CC=$ac_cv_prog_BUILD_CC
4424if test -n "$BUILD_CC"; then
4425 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4426echo "${ECHO_T}$BUILD_CC" >&6; }
4427else
4428 { echo "$as_me:$LINENO: result: no" >&5
4429echo "${ECHO_T}no" >&6; }
4430fi
4431
4432
4433 if test -z "$BUILD_CC"; then
4434 # Extract the first word of "gcc", so it can be a program name with args.
4435set dummy gcc; ac_word=$2
4436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441 if test -n "$BUILD_CC"; then
4442 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4443else
4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004451 ac_cv_prog_BUILD_CC="gcc"
4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 break 2
4454 fi
4455done
4456done
4457IFS=$as_save_IFS
4458
4459fi
4460fi
4461BUILD_CC=$ac_cv_prog_BUILD_CC
4462if test -n "$BUILD_CC"; then
4463 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4464echo "${ECHO_T}$BUILD_CC" >&6; }
4465else
4466 { echo "$as_me:$LINENO: result: no" >&5
4467echo "${ECHO_T}no" >&6; }
4468fi
4469
4470
4471 if test -z "$BUILD_CC"; then
4472 # Extract the first word of "cc", so it can be a program name with args.
4473set dummy cc; ac_word=$2
4474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478else
4479 if test -n "$BUILD_CC"; then
4480 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4481else
4482 ac_prog_rejected=no
4483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH
4485do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4491 ac_prog_rejected=yes
4492 continue
4493 fi
4494 ac_cv_prog_BUILD_CC="cc"
4495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
4497 fi
4498done
4499done
4500IFS=$as_save_IFS
4501
4502if test $ac_prog_rejected = yes; then
4503 # We found a bogon in the path, so make sure we never use it.
4504 set dummy $ac_cv_prog_BUILD_CC
4505 shift
4506 if test $# != 0; then
4507 # We chose a different compiler from the bogus one.
4508 # However, it has the same basename, so the bogon will be chosen
4509 # first if we set BUILD_CC to just the basename; use the full file name.
4510 shift
4511 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4512 fi
4513fi
4514fi
4515fi
4516BUILD_CC=$ac_cv_prog_BUILD_CC
4517if test -n "$BUILD_CC"; then
4518 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4519echo "${ECHO_T}$BUILD_CC" >&6; }
4520else
4521 { echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6; }
4523fi
4524
4525
4526 fi
4527 fi
4528 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4529echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4530 { (exit 1); exit 1; }; }
4531 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4532 rm -f conftest*
4533 echo 'int main () { return 0; }' > conftest.$ac_ext
4534 ac_cv_build_exeext=
4535 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4536 (eval $ac_build_link) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; then
4540 for file in conftest.*; do
4541 case $file in
Jim Grosbach3d5fca22008-09-26 17:27:58 +00004542 *.c | *.o | *.obj | *.dSYM) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004543 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4544 esac
4545 done
4546 else
4547 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4548echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4549 { (exit 1); exit 1; }; }
4550 fi
4551 rm -f conftest*
4552 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4553fi
4554fi
4555
4556BUILD_EXEEXT=""
4557test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4558{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4559echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4560ac_build_exeext=$BUILD_EXEEXT
4561
Jim Grosbache4c032e2008-10-02 22:56:44 +00004562 ac_build_prefix=${build_alias}-
4563 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4564set dummy ${ac_build_prefix}g++; ac_word=$2
4565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4567if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4569else
4570 if test -n "$BUILD_CXX"; then
4571 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4572else
4573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574for as_dir in $PATH
4575do
4576 IFS=$as_save_IFS
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbache4c032e2008-10-02 22:56:44 +00004580 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 break 2
4583 fi
4584done
4585done
4586IFS=$as_save_IFS
4587
4588fi
4589fi
4590BUILD_CXX=$ac_cv_prog_BUILD_CXX
4591if test -n "$BUILD_CXX"; then
4592 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4593echo "${ECHO_T}$BUILD_CXX" >&6; }
4594else
4595 { echo "$as_me:$LINENO: result: no" >&5
4596echo "${ECHO_T}no" >&6; }
4597fi
4598
4599
4600 if test -z "$BUILD_CXX"; then
4601 # Extract the first word of "g++", so it can be a program name with args.
4602set dummy g++; ac_word=$2
4603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4605if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607else
4608 if test -n "$BUILD_CXX"; then
4609 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4610else
4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbache4c032e2008-10-02 22:56:44 +00004618 ac_cv_prog_BUILD_CXX="g++"
4619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4621 fi
4622done
4623done
4624IFS=$as_save_IFS
4625
4626fi
4627fi
4628BUILD_CXX=$ac_cv_prog_BUILD_CXX
4629if test -n "$BUILD_CXX"; then
4630 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4631echo "${ECHO_T}$BUILD_CXX" >&6; }
4632else
4633 { echo "$as_me:$LINENO: result: no" >&5
4634echo "${ECHO_T}no" >&6; }
4635fi
4636
4637
4638 if test -z "$BUILD_CXX"; then
4639 # Extract the first word of "c++", so it can be a program name with args.
4640set dummy c++; ac_word=$2
4641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4645else
4646 if test -n "$BUILD_CXX"; then
4647 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4648else
4649 ac_prog_rejected=no
4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH
4652do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbache4c032e2008-10-02 22:56:44 +00004657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4658 ac_prog_rejected=yes
4659 continue
4660 fi
4661 ac_cv_prog_BUILD_CXX="c++"
4662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665done
4666done
4667IFS=$as_save_IFS
4668
4669if test $ac_prog_rejected = yes; then
4670 # We found a bogon in the path, so make sure we never use it.
4671 set dummy $ac_cv_prog_BUILD_CXX
4672 shift
4673 if test $# != 0; then
4674 # We chose a different compiler from the bogus one.
4675 # However, it has the same basename, so the bogon will be chosen
4676 # first if we set BUILD_CXX to just the basename; use the full file name.
4677 shift
4678 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4679 fi
4680fi
4681fi
4682fi
4683BUILD_CXX=$ac_cv_prog_BUILD_CXX
4684if test -n "$BUILD_CXX"; then
4685 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4686echo "${ECHO_T}$BUILD_CXX" >&6; }
4687else
4688 { echo "$as_me:$LINENO: result: no" >&5
4689echo "${ECHO_T}no" >&6; }
4690fi
4691
4692
4693 fi
4694 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004695else
4696 LLVM_CROSS_COMPILING=0
4697
4698fi
4699
Nick Lewycky45f0f822009-04-10 05:18:27 +00004700if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004701 cvsbuild="yes"
4702 optimize="no"
4703 CVSBUILD=CVSBUILD=1
4704
4705else
4706 cvsbuild="no"
4707 optimize="yes"
4708fi
4709
4710
4711# Check whether --enable-optimized was given.
4712if test "${enable_optimized+set}" = set; then
4713 enableval=$enable_optimized;
4714else
4715 enableval=$optimize
4716fi
4717
4718if test ${enableval} = "no" ; then
4719 ENABLE_OPTIMIZED=
4720
4721else
4722 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4723
4724fi
4725
4726# Check whether --enable-assertions was given.
4727if test "${enable_assertions+set}" = set; then
4728 enableval=$enable_assertions;
4729else
4730 enableval="yes"
4731fi
4732
4733if test ${enableval} = "yes" ; then
4734 DISABLE_ASSERTIONS=
4735
4736else
4737 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4738
4739fi
4740
4741# Check whether --enable-expensive-checks was given.
4742if test "${enable_expensive_checks+set}" = set; then
4743 enableval=$enable_expensive_checks;
4744else
4745 enableval="no"
4746fi
4747
4748if test ${enableval} = "yes" ; then
4749 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4750
4751 EXPENSIVE_CHECKS=yes
4752
4753else
4754 ENABLE_EXPENSIVE_CHECKS=
4755
4756 EXPENSIVE_CHECKS=no
4757
4758fi
4759
4760# Check whether --enable-debug-runtime was given.
4761if test "${enable_debug_runtime+set}" = set; then
4762 enableval=$enable_debug_runtime;
4763else
4764 enableval=no
4765fi
4766
4767if test ${enableval} = "no" ; then
4768 DEBUG_RUNTIME=
4769
4770else
4771 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4772
4773fi
4774
4775# Check whether --enable-jit was given.
4776if test "${enable_jit+set}" = set; then
4777 enableval=$enable_jit;
4778else
4779 enableval=default
4780fi
4781
4782if test ${enableval} = "no"
4783then
4784 JIT=
4785
4786else
4787 case "$llvm_cv_target_arch" in
4788 x86) TARGET_HAS_JIT=1
4789 ;;
4790 Sparc) TARGET_HAS_JIT=0
4791 ;;
4792 PowerPC) TARGET_HAS_JIT=1
4793 ;;
4794 x86_64) TARGET_HAS_JIT=1
4795 ;;
4796 Alpha) TARGET_HAS_JIT=1
4797 ;;
4798 IA64) TARGET_HAS_JIT=0
4799 ;;
4800 ARM) TARGET_HAS_JIT=0
4801 ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004802 Mips) TARGET_HAS_JIT=0
4803 ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00004804 PIC16) TARGET_HAS_JIT=0
4805 ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00004806 XCore) TARGET_HAS_JIT=0
4807 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004808 *) TARGET_HAS_JIT=0
4809 ;;
4810 esac
4811fi
4812
4813# Check whether --enable-doxygen was given.
4814if test "${enable_doxygen+set}" = set; then
4815 enableval=$enable_doxygen;
4816else
4817 enableval=default
4818fi
4819
4820case "$enableval" in
4821 yes) ENABLE_DOXYGEN=1
4822 ;;
4823 no) ENABLE_DOXYGEN=0
4824 ;;
4825 default) ENABLE_DOXYGEN=0
4826 ;;
4827 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4828echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4829 { (exit 1); exit 1; }; } ;;
4830esac
4831
4832# Check whether --enable-threads was given.
4833if test "${enable_threads+set}" = set; then
4834 enableval=$enable_threads;
4835else
4836 enableval=default
4837fi
4838
4839case "$enableval" in
4840 yes) ENABLE_THREADS=1
4841 ;;
4842 no) ENABLE_THREADS=0
4843 ;;
4844 default) ENABLE_THREADS=1
4845 ;;
4846 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4847echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4848 { (exit 1); exit 1; }; } ;;
4849esac
4850
4851cat >>confdefs.h <<_ACEOF
4852#define ENABLE_THREADS $ENABLE_THREADS
4853_ACEOF
4854
4855
4856# Check whether --enable-pic was given.
4857if test "${enable_pic+set}" = set; then
4858 enableval=$enable_pic;
4859else
4860 enableval=default
4861fi
4862
4863case "$enableval" in
4864 yes) ENABLE_PIC=1
4865 ;;
4866 no) ENABLE_PIC=0
4867 ;;
Nick Lewycky6512b232009-02-19 06:18:56 +00004868 default) ENABLE_PIC=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004869 ;;
4870 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4871echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4872 { (exit 1); exit 1; }; } ;;
4873esac
4874
4875cat >>confdefs.h <<_ACEOF
4876#define ENABLE_PIC $ENABLE_PIC
4877_ACEOF
4878
4879
4880TARGETS_TO_BUILD=""
4881# Check whether --enable-targets was given.
4882if test "${enable_targets+set}" = set; then
4883 enableval=$enable_targets;
4884else
4885 enableval=all
4886fi
4887
4888case "$enableval" in
Richard Osborneab8167a2008-11-07 10:59:00 +00004889 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004890 host-only)
4891 case "$llvm_cv_target_arch" in
4892 x86) TARGETS_TO_BUILD="X86" ;;
4893 x86_64) TARGETS_TO_BUILD="X86" ;;
4894 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4895 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4896 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4897 IA64) TARGETS_TO_BUILD="IA64" ;;
4898 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004899 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michelbf31f8b2007-12-05 21:24:02 +00004900 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Gupta3e918f22008-05-14 08:03:23 +00004901 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00004902 XCore) TARGETS_TO_BUILD="XCore" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004903 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4904echo "$as_me: error: Can not set target to build" >&2;}
4905 { (exit 1); exit 1; }; } ;;
4906 esac
4907 ;;
4908 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4909 case "$a_target" in
4910 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4911 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4912 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4913 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4914 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4915 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4916 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004917 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michelbf31f8b2007-12-05 21:24:02 +00004918 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Gupta3e918f22008-05-14 08:03:23 +00004919 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00004920 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Nate Begeman5eb39882007-12-13 01:18:52 +00004921 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4922 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner2c67d0d2008-05-10 04:20:38 +00004923 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004924 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4925echo "$as_me: error: Unrecognized target $a_target" >&2;}
4926 { (exit 1); exit 1; }; } ;;
4927 esac
4928 done
4929 ;;
4930esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004931TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4932
4933
4934# Check whether --enable-cbe-printf-a was given.
4935if test "${enable_cbe_printf_a+set}" = set; then
4936 enableval=$enable_cbe_printf_a;
4937else
4938 enableval=default
4939fi
4940
4941case "$enableval" in
4942 yes) ENABLE_CBE_PRINTF_A=1
4943 ;;
4944 no) ENABLE_CBE_PRINTF_A=0
4945 ;;
4946 default) ENABLE_CBE_PRINTF_A=1
4947 ;;
4948 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4949echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4950 { (exit 1); exit 1; }; } ;;
4951esac
4952
4953cat >>confdefs.h <<_ACEOF
4954#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4955_ACEOF
4956
4957
4958
4959# Check whether --with-llvmgccdir was given.
4960if test "${with_llvmgccdir+set}" = set; then
4961 withval=$with_llvmgccdir;
4962else
4963 withval=default
4964fi
4965
4966case "$withval" in
4967 default) WITH_LLVMGCCDIR=default ;;
4968 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4969 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4970echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4971 { (exit 1); exit 1; }; } ;;
4972esac
4973
4974
Devang Pateld84ba7b2007-12-04 22:54:47 +00004975# Check whether --with-llvmgcc was given.
4976if test "${with_llvmgcc+set}" = set; then
4977 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4978 WITH_LLVMGCCDIR=""
4979fi
4980
4981
4982
4983# Check whether --with-llvmgxx was given.
4984if test "${with_llvmgxx+set}" = set; then
4985 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4986 WITH_LLVMGCCDIR=""
4987fi
4988
4989
4990if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4991 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4992echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4993 { (exit 1); exit 1; }; };
4994fi
4995
4996if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4997 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4998echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4999 { (exit 1); exit 1; }; };
5000fi
5001
5002
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005003# Check whether --with-extra-options was given.
5004if test "${with_extra_options+set}" = set; then
5005 withval=$with_extra_options;
5006else
5007 withval=default
5008fi
5009
5010case "$withval" in
5011 default) EXTRA_OPTIONS= ;;
5012 *) EXTRA_OPTIONS=$withval ;;
5013esac
5014EXTRA_OPTIONS=$EXTRA_OPTIONS
5015
5016
Gordon Henriksen016ec472007-10-02 09:50:32 +00005017# Check whether --enable-bindings was given.
5018if test "${enable_bindings+set}" = set; then
5019 enableval=$enable_bindings;
5020else
5021 enableval=default
5022fi
5023
5024BINDINGS_TO_BUILD=""
5025case "$enableval" in
Gordon Henriksen2949f502007-10-02 10:14:42 +00005026 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00005027 all ) BINDINGS_TO_BUILD="ocaml" ;;
5028 none | no) BINDINGS_TO_BUILD="" ;;
5029 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5030 case "$a_binding" in
5031 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5032 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5033echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5034 { (exit 1); exit 1; }; } ;;
5035 esac
5036 done
5037 ;;
5038esac
5039
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005040
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005041# Check whether --with-ocaml-libdir was given.
5042if test "${with_ocaml_libdir+set}" = set; then
5043 withval=$with_ocaml_libdir;
5044else
5045 withval=auto
5046fi
5047
5048case "$withval" in
5049 auto) with_ocaml_libdir="$withval" ;;
5050 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5051 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5052echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5053 { (exit 1); exit 1; }; } ;;
5054esac
5055
5056
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005057# Check whether --with-binutils-include was given.
5058if test "${with_binutils_include+set}" = set; then
5059 withval=$with_binutils_include;
5060else
5061 withval=default
5062fi
5063
5064case "$withval" in
5065 default) WITH_BINUTILS_INCDIR=default ;;
5066 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5067 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5068echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5069 { (exit 1); exit 1; }; } ;;
5070esac
5071if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5072 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5073
5074 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5075 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5076 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5077echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5078 { (exit 1); exit 1; }; };
5079 fi
5080fi
5081
5082
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005083ac_ext=c
5084ac_cpp='$CPP $CPPFLAGS'
5085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5089echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5090# On Suns, sometimes $CPP names a directory.
5091if test -n "$CPP" && test -d "$CPP"; then
5092 CPP=
5093fi
5094if test -z "$CPP"; then
5095 if test "${ac_cv_prog_CPP+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097else
5098 # Double quotes because CPP needs to be expanded
5099 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5100 do
5101 ac_preproc_ok=false
5102for ac_c_preproc_warn_flag in '' yes
5103do
5104 # Use a header file that comes with gcc, so configuring glibc
5105 # with a fresh cross-compiler works.
5106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5107 # <limits.h> exists even on freestanding compilers.
5108 # On the NeXT, cc -E runs the code through the compiler's parser,
5109 # not just through cpp. "Syntax error" is here to catch this case.
5110 cat >conftest.$ac_ext <<_ACEOF
5111/* confdefs.h. */
5112_ACEOF
5113cat confdefs.h >>conftest.$ac_ext
5114cat >>conftest.$ac_ext <<_ACEOF
5115/* end confdefs.h. */
5116#ifdef __STDC__
5117# include <limits.h>
5118#else
5119# include <assert.h>
5120#endif
5121 Syntax error
5122_ACEOF
5123if { (ac_try="$ac_cpp conftest.$ac_ext"
5124case "(($ac_try" in
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5127esac
5128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005135 (exit $ac_status); } >/dev/null; then
5136 if test -s conftest.err; then
5137 ac_cpp_err=$ac_c_preproc_warn_flag
5138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5139 else
5140 ac_cpp_err=
5141 fi
5142else
5143 ac_cpp_err=yes
5144fi
5145if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005146 :
5147else
5148 echo "$as_me: failed program was:" >&5
5149sed 's/^/| /' conftest.$ac_ext >&5
5150
5151 # Broken: fails on valid input.
5152continue
5153fi
5154
5155rm -f conftest.err conftest.$ac_ext
5156
5157 # OK, works on sane cases. Now check whether nonexistent headers
5158 # can be detected and how.
5159 cat >conftest.$ac_ext <<_ACEOF
5160/* confdefs.h. */
5161_ACEOF
5162cat confdefs.h >>conftest.$ac_ext
5163cat >>conftest.$ac_ext <<_ACEOF
5164/* end confdefs.h. */
5165#include <ac_nonexistent.h>
5166_ACEOF
5167if { (ac_try="$ac_cpp conftest.$ac_ext"
5168case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5171esac
5172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5174 ac_status=$?
5175 grep -v '^ *+' conftest.er1 >conftest.err
5176 rm -f conftest.er1
5177 cat conftest.err >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005179 (exit $ac_status); } >/dev/null; then
5180 if test -s conftest.err; then
5181 ac_cpp_err=$ac_c_preproc_warn_flag
5182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5183 else
5184 ac_cpp_err=
5185 fi
5186else
5187 ac_cpp_err=yes
5188fi
5189if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005190 # Broken: success on invalid input.
5191continue
5192else
5193 echo "$as_me: failed program was:" >&5
5194sed 's/^/| /' conftest.$ac_ext >&5
5195
5196 # Passes both tests.
5197ac_preproc_ok=:
5198break
5199fi
5200
5201rm -f conftest.err conftest.$ac_ext
5202
5203done
5204# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5205rm -f conftest.err conftest.$ac_ext
5206if $ac_preproc_ok; then
5207 break
5208fi
5209
5210 done
5211 ac_cv_prog_CPP=$CPP
5212
5213fi
5214 CPP=$ac_cv_prog_CPP
5215else
5216 ac_cv_prog_CPP=$CPP
5217fi
5218{ echo "$as_me:$LINENO: result: $CPP" >&5
5219echo "${ECHO_T}$CPP" >&6; }
5220ac_preproc_ok=false
5221for ac_c_preproc_warn_flag in '' yes
5222do
5223 # Use a header file that comes with gcc, so configuring glibc
5224 # with a fresh cross-compiler works.
5225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5226 # <limits.h> exists even on freestanding compilers.
5227 # On the NeXT, cc -E runs the code through the compiler's parser,
5228 # not just through cpp. "Syntax error" is here to catch this case.
5229 cat >conftest.$ac_ext <<_ACEOF
5230/* confdefs.h. */
5231_ACEOF
5232cat confdefs.h >>conftest.$ac_ext
5233cat >>conftest.$ac_ext <<_ACEOF
5234/* end confdefs.h. */
5235#ifdef __STDC__
5236# include <limits.h>
5237#else
5238# include <assert.h>
5239#endif
5240 Syntax error
5241_ACEOF
5242if { (ac_try="$ac_cpp conftest.$ac_ext"
5243case "(($ac_try" in
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5246esac
5247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5249 ac_status=$?
5250 grep -v '^ *+' conftest.er1 >conftest.err
5251 rm -f conftest.er1
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005254 (exit $ac_status); } >/dev/null; then
5255 if test -s conftest.err; then
5256 ac_cpp_err=$ac_c_preproc_warn_flag
5257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5258 else
5259 ac_cpp_err=
5260 fi
5261else
5262 ac_cpp_err=yes
5263fi
5264if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005265 :
5266else
5267 echo "$as_me: failed program was:" >&5
5268sed 's/^/| /' conftest.$ac_ext >&5
5269
5270 # Broken: fails on valid input.
5271continue
5272fi
5273
5274rm -f conftest.err conftest.$ac_ext
5275
5276 # OK, works on sane cases. Now check whether nonexistent headers
5277 # can be detected and how.
5278 cat >conftest.$ac_ext <<_ACEOF
5279/* confdefs.h. */
5280_ACEOF
5281cat confdefs.h >>conftest.$ac_ext
5282cat >>conftest.$ac_ext <<_ACEOF
5283/* end confdefs.h. */
5284#include <ac_nonexistent.h>
5285_ACEOF
5286if { (ac_try="$ac_cpp conftest.$ac_ext"
5287case "(($ac_try" in
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5290esac
5291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5293 ac_status=$?
5294 grep -v '^ *+' conftest.er1 >conftest.err
5295 rm -f conftest.er1
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005298 (exit $ac_status); } >/dev/null; then
5299 if test -s conftest.err; then
5300 ac_cpp_err=$ac_c_preproc_warn_flag
5301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5302 else
5303 ac_cpp_err=
5304 fi
5305else
5306 ac_cpp_err=yes
5307fi
5308if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005309 # Broken: success on invalid input.
5310continue
5311else
5312 echo "$as_me: failed program was:" >&5
5313sed 's/^/| /' conftest.$ac_ext >&5
5314
5315 # Passes both tests.
5316ac_preproc_ok=:
5317break
5318fi
5319
5320rm -f conftest.err conftest.$ac_ext
5321
5322done
5323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5324rm -f conftest.err conftest.$ac_ext
5325if $ac_preproc_ok; then
5326 :
5327else
5328 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5329See \`config.log' for more details." >&5
5330echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5331See \`config.log' for more details." >&2;}
5332 { (exit 1); exit 1; }; }
5333fi
5334
5335ac_ext=c
5336ac_cpp='$CPP $CPPFLAGS'
5337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5339ac_compiler_gnu=$ac_cv_c_compiler_gnu
5340
5341ac_ext=c
5342ac_cpp='$CPP $CPPFLAGS'
5343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346if test -n "$ac_tool_prefix"; then
5347 for ac_prog in gcc
5348 do
5349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5350set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5351{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5353if test "${ac_cv_prog_CC+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355else
5356 if test -n "$CC"; then
5357 ac_cv_prog_CC="$CC" # Let the user override the test.
5358else
5359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360for as_dir in $PATH
5361do
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005366 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5369 fi
5370done
5371done
5372IFS=$as_save_IFS
5373
5374fi
5375fi
5376CC=$ac_cv_prog_CC
5377if test -n "$CC"; then
5378 { echo "$as_me:$LINENO: result: $CC" >&5
5379echo "${ECHO_T}$CC" >&6; }
5380else
5381 { echo "$as_me:$LINENO: result: no" >&5
5382echo "${ECHO_T}no" >&6; }
5383fi
5384
5385
5386 test -n "$CC" && break
5387 done
5388fi
5389if test -z "$CC"; then
5390 ac_ct_CC=$CC
5391 for ac_prog in gcc
5392do
5393 # Extract the first word of "$ac_prog", so it can be a program name with args.
5394set dummy $ac_prog; ac_word=$2
5395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5397if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5399else
5400 if test -n "$ac_ct_CC"; then
5401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5402else
5403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404for as_dir in $PATH
5405do
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005410 ac_cv_prog_ac_ct_CC="$ac_prog"
5411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2
5413 fi
5414done
5415done
5416IFS=$as_save_IFS
5417
5418fi
5419fi
5420ac_ct_CC=$ac_cv_prog_ac_ct_CC
5421if test -n "$ac_ct_CC"; then
5422 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5423echo "${ECHO_T}$ac_ct_CC" >&6; }
5424else
5425 { echo "$as_me:$LINENO: result: no" >&5
5426echo "${ECHO_T}no" >&6; }
5427fi
5428
5429
5430 test -n "$ac_ct_CC" && break
5431done
5432
5433 if test "x$ac_ct_CC" = x; then
5434 CC=""
5435 else
5436 case $cross_compiling:$ac_tool_warned in
5437yes:)
5438{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5439whose name does not start with the host triplet. If you think this
5440configuration is useful to you, please write to autoconf@gnu.org." >&5
5441echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5442whose name does not start with the host triplet. If you think this
5443configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5444ac_tool_warned=yes ;;
5445esac
5446 CC=$ac_ct_CC
5447 fi
5448fi
5449
5450
5451test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5452See \`config.log' for more details." >&5
5453echo "$as_me: error: no acceptable C compiler found in \$PATH
5454See \`config.log' for more details." >&2;}
5455 { (exit 1); exit 1; }; }
5456
5457# Provide some information about the compiler.
5458echo "$as_me:$LINENO: checking for C compiler version" >&5
5459ac_compiler=`set X $ac_compile; echo $2`
5460{ (ac_try="$ac_compiler --version >&5"
5461case "(($ac_try" in
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5464esac
5465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_compiler --version >&5") 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }
5470{ (ac_try="$ac_compiler -v >&5"
5471case "(($ac_try" in
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5474esac
5475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_compiler -v >&5") 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }
5480{ (ac_try="$ac_compiler -V >&5"
5481case "(($ac_try" in
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5484esac
5485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_compiler -V >&5") 2>&5
5487 ac_status=$?
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }
5490
5491{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5492echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5493if test "${ac_cv_c_compiler_gnu+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5495else
5496 cat >conftest.$ac_ext <<_ACEOF
5497/* confdefs.h. */
5498_ACEOF
5499cat confdefs.h >>conftest.$ac_ext
5500cat >>conftest.$ac_ext <<_ACEOF
5501/* end confdefs.h. */
5502
5503int
5504main ()
5505{
5506#ifndef __GNUC__
5507 choke me
5508#endif
5509
5510 ;
5511 return 0;
5512}
5513_ACEOF
5514rm -f conftest.$ac_objext
5515if { (ac_try="$ac_compile"
5516case "(($ac_try" in
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5519esac
5520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_compile") 2>conftest.er1
5522 ac_status=$?
5523 grep -v '^ *+' conftest.er1 >conftest.err
5524 rm -f conftest.er1
5525 cat conftest.err >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005527 (exit $ac_status); } &&
5528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5529 { (case "(($ac_try" in
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5532esac
5533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534 (eval "$ac_try") 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; } &&
5538 { ac_try='test -s conftest.$ac_objext'
5539 { (case "(($ac_try" in
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5542esac
5543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544 (eval "$ac_try") 2>&5
5545 ac_status=$?
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005548 ac_compiler_gnu=yes
5549else
5550 echo "$as_me: failed program was:" >&5
5551sed 's/^/| /' conftest.$ac_ext >&5
5552
5553 ac_compiler_gnu=no
5554fi
5555
5556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557ac_cv_c_compiler_gnu=$ac_compiler_gnu
5558
5559fi
5560{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5561echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5562GCC=`test $ac_compiler_gnu = yes && echo yes`
5563ac_test_CFLAGS=${CFLAGS+set}
5564ac_save_CFLAGS=$CFLAGS
5565{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5566echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5567if test "${ac_cv_prog_cc_g+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569else
5570 ac_save_c_werror_flag=$ac_c_werror_flag
5571 ac_c_werror_flag=yes
5572 ac_cv_prog_cc_g=no
5573 CFLAGS="-g"
5574 cat >conftest.$ac_ext <<_ACEOF
5575/* confdefs.h. */
5576_ACEOF
5577cat confdefs.h >>conftest.$ac_ext
5578cat >>conftest.$ac_ext <<_ACEOF
5579/* end confdefs.h. */
5580
5581int
5582main ()
5583{
5584
5585 ;
5586 return 0;
5587}
5588_ACEOF
5589rm -f conftest.$ac_objext
5590if { (ac_try="$ac_compile"
5591case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5594esac
5595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_compile") 2>conftest.er1
5597 ac_status=$?
5598 grep -v '^ *+' conftest.er1 >conftest.err
5599 rm -f conftest.er1
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005602 (exit $ac_status); } &&
5603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5604 { (case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607esac
5608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_try") 2>&5
5610 ac_status=$?
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; } &&
5613 { ac_try='test -s conftest.$ac_objext'
5614 { (case "(($ac_try" in
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5617esac
5618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619 (eval "$ac_try") 2>&5
5620 ac_status=$?
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005623 ac_cv_prog_cc_g=yes
5624else
5625 echo "$as_me: failed program was:" >&5
5626sed 's/^/| /' conftest.$ac_ext >&5
5627
5628 CFLAGS=""
5629 cat >conftest.$ac_ext <<_ACEOF
5630/* confdefs.h. */
5631_ACEOF
5632cat confdefs.h >>conftest.$ac_ext
5633cat >>conftest.$ac_ext <<_ACEOF
5634/* end confdefs.h. */
5635
5636int
5637main ()
5638{
5639
5640 ;
5641 return 0;
5642}
5643_ACEOF
5644rm -f conftest.$ac_objext
5645if { (ac_try="$ac_compile"
5646case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649esac
5650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_compile") 2>conftest.er1
5652 ac_status=$?
5653 grep -v '^ *+' conftest.er1 >conftest.err
5654 rm -f conftest.er1
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005657 (exit $ac_status); } &&
5658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5659 { (case "(($ac_try" in
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5662esac
5663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664 (eval "$ac_try") 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try='test -s conftest.$ac_objext'
5669 { (case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672esac
5673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_try") 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005678 :
5679else
5680 echo "$as_me: failed program was:" >&5
5681sed 's/^/| /' conftest.$ac_ext >&5
5682
5683 ac_c_werror_flag=$ac_save_c_werror_flag
5684 CFLAGS="-g"
5685 cat >conftest.$ac_ext <<_ACEOF
5686/* confdefs.h. */
5687_ACEOF
5688cat confdefs.h >>conftest.$ac_ext
5689cat >>conftest.$ac_ext <<_ACEOF
5690/* end confdefs.h. */
5691
5692int
5693main ()
5694{
5695
5696 ;
5697 return 0;
5698}
5699_ACEOF
5700rm -f conftest.$ac_objext
5701if { (ac_try="$ac_compile"
5702case "(($ac_try" in
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5705esac
5706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_compile") 2>conftest.er1
5708 ac_status=$?
5709 grep -v '^ *+' conftest.er1 >conftest.err
5710 rm -f conftest.er1
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005713 (exit $ac_status); } &&
5714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5715 { (case "(($ac_try" in
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5718esac
5719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_try") 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; } &&
5724 { ac_try='test -s conftest.$ac_objext'
5725 { (case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5728esac
5729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_try") 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005734 ac_cv_prog_cc_g=yes
5735else
5736 echo "$as_me: failed program was:" >&5
5737sed 's/^/| /' conftest.$ac_ext >&5
5738
5739
5740fi
5741
5742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743fi
5744
5745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746fi
5747
5748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 ac_c_werror_flag=$ac_save_c_werror_flag
5750fi
5751{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5752echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5753if test "$ac_test_CFLAGS" = set; then
5754 CFLAGS=$ac_save_CFLAGS
5755elif test $ac_cv_prog_cc_g = yes; then
5756 if test "$GCC" = yes; then
5757 CFLAGS="-g -O2"
5758 else
5759 CFLAGS="-g"
5760 fi
5761else
5762 if test "$GCC" = yes; then
5763 CFLAGS="-O2"
5764 else
5765 CFLAGS=
5766 fi
5767fi
5768{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5769echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5770if test "${ac_cv_prog_cc_c89+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772else
5773 ac_cv_prog_cc_c89=no
5774ac_save_CC=$CC
5775cat >conftest.$ac_ext <<_ACEOF
5776/* confdefs.h. */
5777_ACEOF
5778cat confdefs.h >>conftest.$ac_ext
5779cat >>conftest.$ac_ext <<_ACEOF
5780/* end confdefs.h. */
5781#include <stdarg.h>
5782#include <stdio.h>
5783#include <sys/types.h>
5784#include <sys/stat.h>
5785/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5786struct buf { int x; };
5787FILE * (*rcsopen) (struct buf *, struct stat *, int);
5788static char *e (p, i)
5789 char **p;
5790 int i;
5791{
5792 return p[i];
5793}
5794static char *f (char * (*g) (char **, int), char **p, ...)
5795{
5796 char *s;
5797 va_list v;
5798 va_start (v,p);
5799 s = g (p, va_arg (v,int));
5800 va_end (v);
5801 return s;
5802}
5803
5804/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5805 function prototypes and stuff, but not '\xHH' hex character constants.
5806 These don't provoke an error unfortunately, instead are silently treated
5807 as 'x'. The following induces an error, until -std is added to get
5808 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5809 array size at least. It's necessary to write '\x00'==0 to get something
5810 that's true only with -std. */
5811int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5812
5813/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5814 inside strings and character constants. */
5815#define FOO(x) 'x'
5816int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5817
5818int test (int i, double x);
5819struct s1 {int (*f) (int a);};
5820struct s2 {int (*f) (double a);};
5821int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5822int argc;
5823char **argv;
5824int
5825main ()
5826{
5827return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5828 ;
5829 return 0;
5830}
5831_ACEOF
5832for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5833 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5834do
5835 CC="$ac_save_CC $ac_arg"
5836 rm -f conftest.$ac_objext
5837if { (ac_try="$ac_compile"
5838case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841esac
5842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_compile") 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005849 (exit $ac_status); } &&
5850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5851 { (case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854esac
5855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_try") 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; } &&
5860 { ac_try='test -s conftest.$ac_objext'
5861 { (case "(($ac_try" in
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5864esac
5865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_try") 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005870 ac_cv_prog_cc_c89=$ac_arg
5871else
5872 echo "$as_me: failed program was:" >&5
5873sed 's/^/| /' conftest.$ac_ext >&5
5874
5875
5876fi
5877
5878rm -f core conftest.err conftest.$ac_objext
5879 test "x$ac_cv_prog_cc_c89" != "xno" && break
5880done
5881rm -f conftest.$ac_ext
5882CC=$ac_save_CC
5883
5884fi
5885# AC_CACHE_VAL
5886case "x$ac_cv_prog_cc_c89" in
5887 x)
5888 { echo "$as_me:$LINENO: result: none needed" >&5
5889echo "${ECHO_T}none needed" >&6; } ;;
5890 xno)
5891 { echo "$as_me:$LINENO: result: unsupported" >&5
5892echo "${ECHO_T}unsupported" >&6; } ;;
5893 *)
5894 CC="$CC $ac_cv_prog_cc_c89"
5895 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5896echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5897esac
5898
5899
5900ac_ext=c
5901ac_cpp='$CPP $CPPFLAGS'
5902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904ac_compiler_gnu=$ac_cv_c_compiler_gnu
5905
5906ac_ext=cpp
5907ac_cpp='$CXXCPP $CPPFLAGS'
5908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5911if test -z "$CXX"; then
5912 if test -n "$CCC"; then
5913 CXX=$CCC
5914 else
5915 if test -n "$ac_tool_prefix"; then
5916 for ac_prog in g++
5917 do
5918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5919set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5920{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922if test "${ac_cv_prog_CXX+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5924else
5925 if test -n "$CXX"; then
5926 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5927else
5928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929for as_dir in $PATH
5930do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005935 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 break 2
5938 fi
5939done
5940done
5941IFS=$as_save_IFS
5942
5943fi
5944fi
5945CXX=$ac_cv_prog_CXX
5946if test -n "$CXX"; then
5947 { echo "$as_me:$LINENO: result: $CXX" >&5
5948echo "${ECHO_T}$CXX" >&6; }
5949else
5950 { echo "$as_me:$LINENO: result: no" >&5
5951echo "${ECHO_T}no" >&6; }
5952fi
5953
5954
5955 test -n "$CXX" && break
5956 done
5957fi
5958if test -z "$CXX"; then
5959 ac_ct_CXX=$CXX
5960 for ac_prog in g++
5961do
5962 # Extract the first word of "$ac_prog", so it can be a program name with args.
5963set dummy $ac_prog; ac_word=$2
5964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5966if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969 if test -n "$ac_ct_CXX"; then
5970 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5971else
5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH
5974do
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005979 ac_cv_prog_ac_ct_CXX="$ac_prog"
5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 break 2
5982 fi
5983done
5984done
5985IFS=$as_save_IFS
5986
5987fi
5988fi
5989ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5990if test -n "$ac_ct_CXX"; then
5991 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5992echo "${ECHO_T}$ac_ct_CXX" >&6; }
5993else
5994 { echo "$as_me:$LINENO: result: no" >&5
5995echo "${ECHO_T}no" >&6; }
5996fi
5997
5998
5999 test -n "$ac_ct_CXX" && break
6000done
6001
6002 if test "x$ac_ct_CXX" = x; then
6003 CXX="g++"
6004 else
6005 case $cross_compiling:$ac_tool_warned in
6006yes:)
6007{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6008whose name does not start with the host triplet. If you think this
6009configuration is useful to you, please write to autoconf@gnu.org." >&5
6010echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6011whose name does not start with the host triplet. If you think this
6012configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6013ac_tool_warned=yes ;;
6014esac
6015 CXX=$ac_ct_CXX
6016 fi
6017fi
6018
6019 fi
6020fi
6021# Provide some information about the compiler.
6022echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6023ac_compiler=`set X $ac_compile; echo $2`
6024{ (ac_try="$ac_compiler --version >&5"
6025case "(($ac_try" in
6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027 *) ac_try_echo=$ac_try;;
6028esac
6029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030 (eval "$ac_compiler --version >&5") 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }
6034{ (ac_try="$ac_compiler -v >&5"
6035case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6038esac
6039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_compiler -v >&5") 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }
6044{ (ac_try="$ac_compiler -V >&5"
6045case "(($ac_try" in
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6048esac
6049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_compiler -V >&5") 2>&5
6051 ac_status=$?
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }
6054
6055{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6056echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6057if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059else
6060 cat >conftest.$ac_ext <<_ACEOF
6061/* confdefs.h. */
6062_ACEOF
6063cat confdefs.h >>conftest.$ac_ext
6064cat >>conftest.$ac_ext <<_ACEOF
6065/* end confdefs.h. */
6066
6067int
6068main ()
6069{
6070#ifndef __GNUC__
6071 choke me
6072#endif
6073
6074 ;
6075 return 0;
6076}
6077_ACEOF
6078rm -f conftest.$ac_objext
6079if { (ac_try="$ac_compile"
6080case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083esac
6084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_compile") 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006091 (exit $ac_status); } &&
6092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6093 { (case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096esac
6097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_try") 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
6102 { ac_try='test -s conftest.$ac_objext'
6103 { (case "(($ac_try" in
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6106esac
6107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_try") 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006112 ac_compiler_gnu=yes
6113else
6114 echo "$as_me: failed program was:" >&5
6115sed 's/^/| /' conftest.$ac_ext >&5
6116
6117 ac_compiler_gnu=no
6118fi
6119
6120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6122
6123fi
6124{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6125echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6126GXX=`test $ac_compiler_gnu = yes && echo yes`
6127ac_test_CXXFLAGS=${CXXFLAGS+set}
6128ac_save_CXXFLAGS=$CXXFLAGS
6129{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6130echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6131if test "${ac_cv_prog_cxx_g+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6133else
6134 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6135 ac_cxx_werror_flag=yes
6136 ac_cv_prog_cxx_g=no
6137 CXXFLAGS="-g"
6138 cat >conftest.$ac_ext <<_ACEOF
6139/* confdefs.h. */
6140_ACEOF
6141cat confdefs.h >>conftest.$ac_ext
6142cat >>conftest.$ac_ext <<_ACEOF
6143/* end confdefs.h. */
6144
6145int
6146main ()
6147{
6148
6149 ;
6150 return 0;
6151}
6152_ACEOF
6153rm -f conftest.$ac_objext
6154if { (ac_try="$ac_compile"
6155case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6158esac
6159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_compile") 2>conftest.er1
6161 ac_status=$?
6162 grep -v '^ *+' conftest.er1 >conftest.err
6163 rm -f conftest.er1
6164 cat conftest.err >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006166 (exit $ac_status); } &&
6167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6168 { (case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6171esac
6172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_try") 2>&5
6174 ac_status=$?
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; } &&
6177 { ac_try='test -s conftest.$ac_objext'
6178 { (case "(($ac_try" in
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6181esac
6182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183 (eval "$ac_try") 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006187 ac_cv_prog_cxx_g=yes
6188else
6189 echo "$as_me: failed program was:" >&5
6190sed 's/^/| /' conftest.$ac_ext >&5
6191
6192 CXXFLAGS=""
6193 cat >conftest.$ac_ext <<_ACEOF
6194/* confdefs.h. */
6195_ACEOF
6196cat confdefs.h >>conftest.$ac_ext
6197cat >>conftest.$ac_ext <<_ACEOF
6198/* end confdefs.h. */
6199
6200int
6201main ()
6202{
6203
6204 ;
6205 return 0;
6206}
6207_ACEOF
6208rm -f conftest.$ac_objext
6209if { (ac_try="$ac_compile"
6210case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6213esac
6214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_compile") 2>conftest.er1
6216 ac_status=$?
6217 grep -v '^ *+' conftest.er1 >conftest.err
6218 rm -f conftest.er1
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006221 (exit $ac_status); } &&
6222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6223 { (case "(($ac_try" in
6224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225 *) ac_try_echo=$ac_try;;
6226esac
6227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228 (eval "$ac_try") 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try='test -s conftest.$ac_objext'
6233 { (case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6236esac
6237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238 (eval "$ac_try") 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006242 :
6243else
6244 echo "$as_me: failed program was:" >&5
6245sed 's/^/| /' conftest.$ac_ext >&5
6246
6247 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6248 CXXFLAGS="-g"
6249 cat >conftest.$ac_ext <<_ACEOF
6250/* confdefs.h. */
6251_ACEOF
6252cat confdefs.h >>conftest.$ac_ext
6253cat >>conftest.$ac_ext <<_ACEOF
6254/* end confdefs.h. */
6255
6256int
6257main ()
6258{
6259
6260 ;
6261 return 0;
6262}
6263_ACEOF
6264rm -f conftest.$ac_objext
6265if { (ac_try="$ac_compile"
6266case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6269esac
6270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_compile") 2>conftest.er1
6272 ac_status=$?
6273 grep -v '^ *+' conftest.er1 >conftest.err
6274 rm -f conftest.er1
6275 cat conftest.err >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006277 (exit $ac_status); } &&
6278 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6279 { (case "(($ac_try" in
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6282esac
6283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_try") 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try='test -s conftest.$ac_objext'
6289 { (case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6292esac
6293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_try") 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006298 ac_cv_prog_cxx_g=yes
6299else
6300 echo "$as_me: failed program was:" >&5
6301sed 's/^/| /' conftest.$ac_ext >&5
6302
6303
6304fi
6305
6306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307fi
6308
6309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6310fi
6311
6312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6314fi
6315{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6316echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6317if test "$ac_test_CXXFLAGS" = set; then
6318 CXXFLAGS=$ac_save_CXXFLAGS
6319elif test $ac_cv_prog_cxx_g = yes; then
6320 if test "$GXX" = yes; then
6321 CXXFLAGS="-g -O2"
6322 else
6323 CXXFLAGS="-g"
6324 fi
6325else
6326 if test "$GXX" = yes; then
6327 CXXFLAGS="-O2"
6328 else
6329 CXXFLAGS=
6330 fi
6331fi
6332ac_ext=c
6333ac_cpp='$CPP $CPPFLAGS'
6334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336ac_compiler_gnu=$ac_cv_c_compiler_gnu
6337
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006338
6339{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6340echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6341if test "${lt_cv_path_NM+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343else
6344 if test -n "$NM"; then
6345 # Let the user override the test.
6346 lt_cv_path_NM="$NM"
6347else
6348 lt_nm_to_check="${ac_tool_prefix}nm"
6349 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6350 lt_nm_to_check="$lt_nm_to_check nm"
6351 fi
6352 for lt_tmp_nm in $lt_nm_to_check; do
6353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6354 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6355 IFS="$lt_save_ifs"
6356 test -z "$ac_dir" && ac_dir=.
6357 tmp_nm="$ac_dir/$lt_tmp_nm"
6358 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6359 # Check to see if the nm accepts a BSD-compat flag.
6360 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6361 # nm: unknown option "B" ignored
6362 # Tru64's nm complains that /dev/null is an invalid object file
6363 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6364 */dev/null* | *'Invalid file or object type'*)
6365 lt_cv_path_NM="$tmp_nm -B"
6366 break
6367 ;;
6368 *)
6369 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6370 */dev/null*)
6371 lt_cv_path_NM="$tmp_nm -p"
6372 break
6373 ;;
6374 *)
6375 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6376 continue # so that we can try to find one that supports BSD flags
6377 ;;
6378 esac
6379 ;;
6380 esac
6381 fi
6382 done
6383 IFS="$lt_save_ifs"
6384 done
6385 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6386fi
6387fi
6388{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6389echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6390NM="$lt_cv_path_NM"
6391
6392
6393
6394{ echo "$as_me:$LINENO: checking for GNU make" >&5
6395echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6396if test "${llvm_cv_gnu_make_command+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398else
6399 llvm_cv_gnu_make_command=''
6400 for a in "$MAKE" make gmake gnumake ; do
6401 if test -z "$a" ; then continue ; fi ;
6402 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6403 then
6404 llvm_cv_gnu_make_command=$a ;
6405 break;
6406 fi
6407 done
6408fi
6409{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6410echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6411 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6412 ifGNUmake='' ;
6413 else
6414 ifGNUmake='#' ;
6415 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6416echo "${ECHO_T}\"Not found\"" >&6; };
6417 fi
6418
6419
6420{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6421echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6422LN_S=$as_ln_s
6423if test "$LN_S" = "ln -s"; then
6424 { echo "$as_me:$LINENO: result: yes" >&5
6425echo "${ECHO_T}yes" >&6; }
6426else
6427 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6428echo "${ECHO_T}no, using $LN_S" >&6; }
6429fi
6430
6431# Extract the first word of "cmp", so it can be a program name with args.
6432set dummy cmp; ac_word=$2
6433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6435if test "${ac_cv_path_CMP+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6437else
6438 case $CMP in
6439 [\\/]* | ?:[\\/]*)
6440 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6441 ;;
6442 *)
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444for as_dir in $PATH
6445do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006450 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6453 fi
6454done
6455done
6456IFS=$as_save_IFS
6457
6458 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6459 ;;
6460esac
6461fi
6462CMP=$ac_cv_path_CMP
6463if test -n "$CMP"; then
6464 { echo "$as_me:$LINENO: result: $CMP" >&5
6465echo "${ECHO_T}$CMP" >&6; }
6466else
6467 { echo "$as_me:$LINENO: result: no" >&5
6468echo "${ECHO_T}no" >&6; }
6469fi
6470
6471
6472# Extract the first word of "cp", so it can be a program name with args.
6473set dummy cp; ac_word=$2
6474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6476if test "${ac_cv_path_CP+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478else
6479 case $CP in
6480 [\\/]* | ?:[\\/]*)
6481 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6482 ;;
6483 *)
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485for as_dir in $PATH
6486do
6487 IFS=$as_save_IFS
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006491 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 break 2
6494 fi
6495done
6496done
6497IFS=$as_save_IFS
6498
6499 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6500 ;;
6501esac
6502fi
6503CP=$ac_cv_path_CP
6504if test -n "$CP"; then
6505 { echo "$as_me:$LINENO: result: $CP" >&5
6506echo "${ECHO_T}$CP" >&6; }
6507else
6508 { echo "$as_me:$LINENO: result: no" >&5
6509echo "${ECHO_T}no" >&6; }
6510fi
6511
6512
6513# Extract the first word of "date", so it can be a program name with args.
6514set dummy date; ac_word=$2
6515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6517if test "${ac_cv_path_DATE+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519else
6520 case $DATE in
6521 [\\/]* | ?:[\\/]*)
6522 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6523 ;;
6524 *)
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526for as_dir in $PATH
6527do
6528 IFS=$as_save_IFS
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006532 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 break 2
6535 fi
6536done
6537done
6538IFS=$as_save_IFS
6539
6540 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6541 ;;
6542esac
6543fi
6544DATE=$ac_cv_path_DATE
6545if test -n "$DATE"; then
6546 { echo "$as_me:$LINENO: result: $DATE" >&5
6547echo "${ECHO_T}$DATE" >&6; }
6548else
6549 { echo "$as_me:$LINENO: result: no" >&5
6550echo "${ECHO_T}no" >&6; }
6551fi
6552
6553
6554# Extract the first word of "find", so it can be a program name with args.
6555set dummy find; ac_word=$2
6556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6558if test "${ac_cv_path_FIND+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6560else
6561 case $FIND in
6562 [\\/]* | ?:[\\/]*)
6563 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6564 ;;
6565 *)
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567for as_dir in $PATH
6568do
6569 IFS=$as_save_IFS
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006573 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 break 2
6576 fi
6577done
6578done
6579IFS=$as_save_IFS
6580
6581 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6582 ;;
6583esac
6584fi
6585FIND=$ac_cv_path_FIND
6586if test -n "$FIND"; then
6587 { echo "$as_me:$LINENO: result: $FIND" >&5
6588echo "${ECHO_T}$FIND" >&6; }
6589else
6590 { echo "$as_me:$LINENO: result: no" >&5
6591echo "${ECHO_T}no" >&6; }
6592fi
6593
6594
6595# Extract the first word of "grep", so it can be a program name with args.
6596set dummy grep; ac_word=$2
6597{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6599if test "${ac_cv_path_GREP+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6601else
6602 case $GREP in
6603 [\\/]* | ?:[\\/]*)
6604 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6605 ;;
6606 *)
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608for as_dir in $PATH
6609do
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006614 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6617 fi
6618done
6619done
6620IFS=$as_save_IFS
6621
6622 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6623 ;;
6624esac
6625fi
6626GREP=$ac_cv_path_GREP
6627if test -n "$GREP"; then
6628 { echo "$as_me:$LINENO: result: $GREP" >&5
6629echo "${ECHO_T}$GREP" >&6; }
6630else
6631 { echo "$as_me:$LINENO: result: no" >&5
6632echo "${ECHO_T}no" >&6; }
6633fi
6634
6635
6636# Extract the first word of "mkdir", so it can be a program name with args.
6637set dummy mkdir; ac_word=$2
6638{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640if test "${ac_cv_path_MKDIR+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642else
6643 case $MKDIR in
6644 [\\/]* | ?:[\\/]*)
6645 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6646 ;;
6647 *)
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649for as_dir in $PATH
6650do
6651 IFS=$as_save_IFS
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006655 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 break 2
6658 fi
6659done
6660done
6661IFS=$as_save_IFS
6662
6663 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6664 ;;
6665esac
6666fi
6667MKDIR=$ac_cv_path_MKDIR
6668if test -n "$MKDIR"; then
6669 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6670echo "${ECHO_T}$MKDIR" >&6; }
6671else
6672 { echo "$as_me:$LINENO: result: no" >&5
6673echo "${ECHO_T}no" >&6; }
6674fi
6675
6676
6677# Extract the first word of "mv", so it can be a program name with args.
6678set dummy mv; ac_word=$2
6679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681if test "${ac_cv_path_MV+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683else
6684 case $MV in
6685 [\\/]* | ?:[\\/]*)
6686 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6687 ;;
6688 *)
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690for as_dir in $PATH
6691do
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006696 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 break 2
6699 fi
6700done
6701done
6702IFS=$as_save_IFS
6703
6704 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6705 ;;
6706esac
6707fi
6708MV=$ac_cv_path_MV
6709if test -n "$MV"; then
6710 { echo "$as_me:$LINENO: result: $MV" >&5
6711echo "${ECHO_T}$MV" >&6; }
6712else
6713 { echo "$as_me:$LINENO: result: no" >&5
6714echo "${ECHO_T}no" >&6; }
6715fi
6716
6717
6718if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6720set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6721{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723if test "${ac_cv_prog_RANLIB+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725else
6726 if test -n "$RANLIB"; then
6727 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6728else
6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006736 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740done
6741done
6742IFS=$as_save_IFS
6743
6744fi
6745fi
6746RANLIB=$ac_cv_prog_RANLIB
6747if test -n "$RANLIB"; then
6748 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6749echo "${ECHO_T}$RANLIB" >&6; }
6750else
6751 { echo "$as_me:$LINENO: result: no" >&5
6752echo "${ECHO_T}no" >&6; }
6753fi
6754
6755
6756fi
6757if test -z "$ac_cv_prog_RANLIB"; then
6758 ac_ct_RANLIB=$RANLIB
6759 # Extract the first word of "ranlib", so it can be a program name with args.
6760set dummy ranlib; ac_word=$2
6761{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6765else
6766 if test -n "$ac_ct_RANLIB"; then
6767 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6768else
6769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006776 ac_cv_prog_ac_ct_RANLIB="ranlib"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780done
6781done
6782IFS=$as_save_IFS
6783
6784fi
6785fi
6786ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6787if test -n "$ac_ct_RANLIB"; then
6788 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6789echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6790else
6791 { echo "$as_me:$LINENO: result: no" >&5
6792echo "${ECHO_T}no" >&6; }
6793fi
6794
6795 if test "x$ac_ct_RANLIB" = x; then
6796 RANLIB=":"
6797 else
6798 case $cross_compiling:$ac_tool_warned in
6799yes:)
6800{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6801whose name does not start with the host triplet. If you think this
6802configuration is useful to you, please write to autoconf@gnu.org." >&5
6803echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6804whose name does not start with the host triplet. If you think this
6805configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6806ac_tool_warned=yes ;;
6807esac
6808 RANLIB=$ac_ct_RANLIB
6809 fi
6810else
6811 RANLIB="$ac_cv_prog_RANLIB"
6812fi
6813
6814# Extract the first word of "rm", so it can be a program name with args.
6815set dummy rm; ac_word=$2
6816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818if test "${ac_cv_path_RM+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820else
6821 case $RM in
6822 [\\/]* | ?:[\\/]*)
6823 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6824 ;;
6825 *)
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827for as_dir in $PATH
6828do
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006833 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6836 fi
6837done
6838done
6839IFS=$as_save_IFS
6840
6841 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6842 ;;
6843esac
6844fi
6845RM=$ac_cv_path_RM
6846if test -n "$RM"; then
6847 { echo "$as_me:$LINENO: result: $RM" >&5
6848echo "${ECHO_T}$RM" >&6; }
6849else
6850 { echo "$as_me:$LINENO: result: no" >&5
6851echo "${ECHO_T}no" >&6; }
6852fi
6853
6854
6855# Extract the first word of "sed", so it can be a program name with args.
6856set dummy sed; ac_word=$2
6857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859if test "${ac_cv_path_SED+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861else
6862 case $SED in
6863 [\\/]* | ?:[\\/]*)
6864 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6865 ;;
6866 *)
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006874 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878done
6879done
6880IFS=$as_save_IFS
6881
6882 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6883 ;;
6884esac
6885fi
6886SED=$ac_cv_path_SED
6887if test -n "$SED"; then
6888 { echo "$as_me:$LINENO: result: $SED" >&5
6889echo "${ECHO_T}$SED" >&6; }
6890else
6891 { echo "$as_me:$LINENO: result: no" >&5
6892echo "${ECHO_T}no" >&6; }
6893fi
6894
6895
6896# Extract the first word of "tar", so it can be a program name with args.
6897set dummy tar; ac_word=$2
6898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6900if test "${ac_cv_path_TAR+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6902else
6903 case $TAR in
6904 [\\/]* | ?:[\\/]*)
6905 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6906 ;;
6907 *)
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909for as_dir in $PATH
6910do
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006915 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6918 fi
6919done
6920done
6921IFS=$as_save_IFS
6922
6923 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6924 ;;
6925esac
6926fi
6927TAR=$ac_cv_path_TAR
6928if test -n "$TAR"; then
6929 { echo "$as_me:$LINENO: result: $TAR" >&5
6930echo "${ECHO_T}$TAR" >&6; }
6931else
6932 { echo "$as_me:$LINENO: result: no" >&5
6933echo "${ECHO_T}no" >&6; }
6934fi
6935
6936
6937# Extract the first word of "pwd", so it can be a program name with args.
6938set dummy pwd; ac_word=$2
6939{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6941if test "${ac_cv_path_BINPWD+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6943else
6944 case $BINPWD in
6945 [\\/]* | ?:[\\/]*)
6946 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6947 ;;
6948 *)
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006956 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960done
6961done
6962IFS=$as_save_IFS
6963
6964 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6965 ;;
6966esac
6967fi
6968BINPWD=$ac_cv_path_BINPWD
6969if test -n "$BINPWD"; then
6970 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6971echo "${ECHO_T}$BINPWD" >&6; }
6972else
6973 { echo "$as_me:$LINENO: result: no" >&5
6974echo "${ECHO_T}no" >&6; }
6975fi
6976
6977
6978
6979# Extract the first word of "Graphviz", so it can be a program name with args.
6980set dummy Graphviz; ac_word=$2
6981{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985else
6986 case $GRAPHVIZ in
6987 [\\/]* | ?:[\\/]*)
6988 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6989 ;;
6990 *)
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006998 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7001 fi
7002done
7003done
7004IFS=$as_save_IFS
7005
7006 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7007 ;;
7008esac
7009fi
7010GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7011if test -n "$GRAPHVIZ"; then
7012 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7013echo "${ECHO_T}$GRAPHVIZ" >&6; }
7014else
7015 { echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6; }
7017fi
7018
7019
7020if test "$GRAPHVIZ" != "echo Graphviz" ; then
7021
7022cat >>confdefs.h <<\_ACEOF
7023#define HAVE_GRAPHVIZ 1
7024_ACEOF
7025
7026 if test "$llvm_cv_os_type" = "MingW" ; then
7027 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7028 fi
7029
7030cat >>confdefs.h <<_ACEOF
7031#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7032_ACEOF
7033
7034fi
7035# Extract the first word of "dot", so it can be a program name with args.
7036set dummy dot; ac_word=$2
7037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7039if test "${ac_cv_path_DOT+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7041else
7042 case $DOT in
7043 [\\/]* | ?:[\\/]*)
7044 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7045 ;;
7046 *)
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048for as_dir in $PATH
7049do
7050 IFS=$as_save_IFS
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007054 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 break 2
7057 fi
7058done
7059done
7060IFS=$as_save_IFS
7061
7062 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7063 ;;
7064esac
7065fi
7066DOT=$ac_cv_path_DOT
7067if test -n "$DOT"; then
7068 { echo "$as_me:$LINENO: result: $DOT" >&5
7069echo "${ECHO_T}$DOT" >&6; }
7070else
7071 { echo "$as_me:$LINENO: result: no" >&5
7072echo "${ECHO_T}no" >&6; }
7073fi
7074
7075
7076if test "$DOT" != "echo dot" ; then
7077
7078cat >>confdefs.h <<\_ACEOF
7079#define HAVE_DOT 1
7080_ACEOF
7081
7082 if test "$llvm_cv_os_type" = "MingW" ; then
7083 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7084 fi
7085
7086cat >>confdefs.h <<_ACEOF
7087#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7088_ACEOF
7089
7090fi
7091for ac_prog in gv gsview32
7092do
7093 # Extract the first word of "$ac_prog", so it can be a program name with args.
7094set dummy $ac_prog; ac_word=$2
7095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097if test "${ac_cv_path_GV+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099else
7100 case $GV in
7101 [\\/]* | ?:[\\/]*)
7102 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7103 ;;
7104 *)
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007112 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 break 2
7115 fi
7116done
7117done
7118IFS=$as_save_IFS
7119
7120 ;;
7121esac
7122fi
7123GV=$ac_cv_path_GV
7124if test -n "$GV"; then
7125 { echo "$as_me:$LINENO: result: $GV" >&5
7126echo "${ECHO_T}$GV" >&6; }
7127else
7128 { echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6; }
7130fi
7131
7132
7133 test -n "$GV" && break
7134done
7135test -n "$GV" || GV="echo gv"
7136
7137if test "$GV" != "echo gv" ; then
7138
7139cat >>confdefs.h <<\_ACEOF
7140#define HAVE_GV 1
7141_ACEOF
7142
7143 if test "$llvm_cv_os_type" = "MingW" ; then
7144 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7145 fi
7146
7147cat >>confdefs.h <<_ACEOF
7148#define LLVM_PATH_GV "$GV${EXEEXT}"
7149_ACEOF
7150
7151fi
7152# Extract the first word of "dotty", so it can be a program name with args.
7153set dummy dotty; ac_word=$2
7154{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7156if test "${ac_cv_path_DOTTY+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158else
7159 case $DOTTY in
7160 [\\/]* | ?:[\\/]*)
7161 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7162 ;;
7163 *)
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165for as_dir in $PATH
7166do
7167 IFS=$as_save_IFS
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007171 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 break 2
7174 fi
7175done
7176done
7177IFS=$as_save_IFS
7178
7179 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7180 ;;
7181esac
7182fi
7183DOTTY=$ac_cv_path_DOTTY
7184if test -n "$DOTTY"; then
7185 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7186echo "${ECHO_T}$DOTTY" >&6; }
7187else
7188 { echo "$as_me:$LINENO: result: no" >&5
7189echo "${ECHO_T}no" >&6; }
7190fi
7191
7192
7193if test "$DOTTY" != "echo dotty" ; then
7194
7195cat >>confdefs.h <<\_ACEOF
7196#define HAVE_DOTTY 1
7197_ACEOF
7198
7199 if test "$llvm_cv_os_type" = "MingW" ; then
7200 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7201 fi
7202
7203cat >>confdefs.h <<_ACEOF
7204#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7205_ACEOF
7206
7207fi
7208
7209
7210# Extract the first word of "perl", so it can be a program name with args.
7211set dummy perl; ac_word=$2
7212{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7214if test "${ac_cv_path_PERL+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7216else
7217 case $PERL in
7218 [\\/]* | ?:[\\/]*)
7219 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7220 ;;
7221 *)
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223for as_dir in $PATH
7224do
7225 IFS=$as_save_IFS
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007229 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 break 2
7232 fi
7233done
7234done
7235IFS=$as_save_IFS
7236
7237 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7238 ;;
7239esac
7240fi
7241PERL=$ac_cv_path_PERL
7242if test -n "$PERL"; then
7243 { echo "$as_me:$LINENO: result: $PERL" >&5
7244echo "${ECHO_T}$PERL" >&6; }
7245else
7246 { echo "$as_me:$LINENO: result: no" >&5
7247echo "${ECHO_T}no" >&6; }
7248fi
7249
7250
7251if test "$PERL" != "none"; then
7252 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7253echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7254 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7255 { echo "$as_me:$LINENO: result: yes" >&5
7256echo "${ECHO_T}yes" >&6; }
7257 else
7258 PERL=none
7259 { echo "$as_me:$LINENO: result: not found" >&5
7260echo "${ECHO_T}not found" >&6; }
7261 fi
7262fi
7263
7264
7265if test x"$PERL" = xnone; then
7266 HAVE_PERL=0
7267
7268 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7269echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7270 { (exit 1); exit 1; }; }
7271else
7272 HAVE_PERL=1
7273
7274fi
7275
7276# Find a good install program. We prefer a C program (faster),
7277# so one script is as good as another. But avoid the broken or
7278# incompatible versions:
7279# SysV /etc/install, /usr/sbin/install
7280# SunOS /usr/etc/install
7281# IRIX /sbin/install
7282# AIX /bin/install
7283# AmigaOS /C/install, which installs bootblocks on floppy discs
7284# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7285# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7286# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7287# OS/2's system install, which has a completely different semantic
7288# ./install, which can be erroneously created by make from ./install.sh.
7289{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7290echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7291if test -z "$INSTALL"; then
7292if test "${ac_cv_path_install+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296for as_dir in $PATH
7297do
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 # Account for people who put trailing slashes in PATH elements.
7301case $as_dir/ in
7302 ./ | .// | /cC/* | \
7303 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7304 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7305 /usr/ucb/* ) ;;
7306 *)
7307 # OSF1 and SCO ODT 3.0 have their own names for install.
7308 # Don't use installbsd from OSF since it installs stuff as root
7309 # by default.
7310 for ac_prog in ginstall scoinst install; do
7311 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007312 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007313 if test $ac_prog = install &&
7314 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7315 # AIX install. It has an incompatible calling convention.
7316 :
7317 elif test $ac_prog = install &&
7318 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7319 # program-specific install script used by HP pwplus--don't use.
7320 :
7321 else
7322 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7323 break 3
7324 fi
7325 fi
7326 done
7327 done
7328 ;;
7329esac
7330done
7331IFS=$as_save_IFS
7332
7333
7334fi
7335 if test "${ac_cv_path_install+set}" = set; then
7336 INSTALL=$ac_cv_path_install
7337 else
7338 # As a last resort, use the slow shell script. Don't cache a
7339 # value for INSTALL within a source directory, because that will
7340 # break other packages using the cache if that directory is
7341 # removed, or if the value is a relative name.
7342 INSTALL=$ac_install_sh
7343 fi
7344fi
7345{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7346echo "${ECHO_T}$INSTALL" >&6; }
7347
7348# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7349# It thinks the first close brace ends the variable substitution.
7350test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7351
7352test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7353
7354test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7355
7356
7357# Extract the first word of "bzip2", so it can be a program name with args.
7358set dummy bzip2; ac_word=$2
7359{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361if test "${ac_cv_path_BZIP2+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363else
7364 case $BZIP2 in
7365 [\\/]* | ?:[\\/]*)
7366 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7367 ;;
7368 *)
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372 IFS=$as_save_IFS
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007376 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 break 2
7379 fi
7380done
7381done
7382IFS=$as_save_IFS
7383
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007384 ;;
7385esac
7386fi
7387BZIP2=$ac_cv_path_BZIP2
7388if test -n "$BZIP2"; then
7389 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7390echo "${ECHO_T}$BZIP2" >&6; }
7391else
7392 { echo "$as_me:$LINENO: result: no" >&5
7393echo "${ECHO_T}no" >&6; }
7394fi
7395
7396
7397# Extract the first word of "doxygen", so it can be a program name with args.
7398set dummy doxygen; ac_word=$2
7399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7401if test "${ac_cv_path_DOXYGEN+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7403else
7404 case $DOXYGEN in
7405 [\\/]* | ?:[\\/]*)
7406 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7407 ;;
7408 *)
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410for as_dir in $PATH
7411do
7412 IFS=$as_save_IFS
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007416 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 break 2
7419 fi
7420done
7421done
7422IFS=$as_save_IFS
7423
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007424 ;;
7425esac
7426fi
7427DOXYGEN=$ac_cv_path_DOXYGEN
7428if test -n "$DOXYGEN"; then
7429 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7430echo "${ECHO_T}$DOXYGEN" >&6; }
7431else
7432 { echo "$as_me:$LINENO: result: no" >&5
7433echo "${ECHO_T}no" >&6; }
7434fi
7435
7436
7437# Extract the first word of "groff", so it can be a program name with args.
7438set dummy groff; ac_word=$2
7439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441if test "${ac_cv_path_GROFF+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443else
7444 case $GROFF in
7445 [\\/]* | ?:[\\/]*)
7446 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7447 ;;
7448 *)
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450for as_dir in $PATH
7451do
7452 IFS=$as_save_IFS
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007456 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 break 2
7459 fi
7460done
7461done
7462IFS=$as_save_IFS
7463
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007464 ;;
7465esac
7466fi
7467GROFF=$ac_cv_path_GROFF
7468if test -n "$GROFF"; then
7469 { echo "$as_me:$LINENO: result: $GROFF" >&5
7470echo "${ECHO_T}$GROFF" >&6; }
7471else
7472 { echo "$as_me:$LINENO: result: no" >&5
7473echo "${ECHO_T}no" >&6; }
7474fi
7475
7476
7477# Extract the first word of "gzip", so it can be a program name with args.
7478set dummy gzip; ac_word=$2
7479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7481if test "${ac_cv_path_GZIP+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483else
7484 case $GZIP in
7485 [\\/]* | ?:[\\/]*)
7486 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7487 ;;
7488 *)
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490for as_dir in $PATH
7491do
7492 IFS=$as_save_IFS
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007496 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 break 2
7499 fi
7500done
7501done
7502IFS=$as_save_IFS
7503
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007504 ;;
7505esac
7506fi
7507GZIP=$ac_cv_path_GZIP
7508if test -n "$GZIP"; then
7509 { echo "$as_me:$LINENO: result: $GZIP" >&5
7510echo "${ECHO_T}$GZIP" >&6; }
7511else
7512 { echo "$as_me:$LINENO: result: no" >&5
7513echo "${ECHO_T}no" >&6; }
7514fi
7515
7516
7517# Extract the first word of "pod2html", so it can be a program name with args.
7518set dummy pod2html; ac_word=$2
7519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7521if test "${ac_cv_path_POD2HTML+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523else
7524 case $POD2HTML in
7525 [\\/]* | ?:[\\/]*)
7526 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7527 ;;
7528 *)
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530for as_dir in $PATH
7531do
7532 IFS=$as_save_IFS
7533 test -z "$as_dir" && as_dir=.
7534 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007536 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 break 2
7539 fi
7540done
7541done
7542IFS=$as_save_IFS
7543
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007544 ;;
7545esac
7546fi
7547POD2HTML=$ac_cv_path_POD2HTML
7548if test -n "$POD2HTML"; then
7549 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7550echo "${ECHO_T}$POD2HTML" >&6; }
7551else
7552 { echo "$as_me:$LINENO: result: no" >&5
7553echo "${ECHO_T}no" >&6; }
7554fi
7555
7556
7557# Extract the first word of "pod2man", so it can be a program name with args.
7558set dummy pod2man; ac_word=$2
7559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7561if test "${ac_cv_path_POD2MAN+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7563else
7564 case $POD2MAN in
7565 [\\/]* | ?:[\\/]*)
7566 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7567 ;;
7568 *)
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570for as_dir in $PATH
7571do
7572 IFS=$as_save_IFS
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007576 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 break 2
7579 fi
7580done
7581done
7582IFS=$as_save_IFS
7583
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007584 ;;
7585esac
7586fi
7587POD2MAN=$ac_cv_path_POD2MAN
7588if test -n "$POD2MAN"; then
7589 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7590echo "${ECHO_T}$POD2MAN" >&6; }
7591else
7592 { echo "$as_me:$LINENO: result: no" >&5
7593echo "${ECHO_T}no" >&6; }
7594fi
7595
7596
7597# Extract the first word of "runtest", so it can be a program name with args.
7598set dummy runtest; ac_word=$2
7599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601if test "${ac_cv_path_RUNTEST+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7603else
7604 case $RUNTEST in
7605 [\\/]* | ?:[\\/]*)
7606 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7607 ;;
7608 *)
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH
7611do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007616 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7619 fi
7620done
7621done
7622IFS=$as_save_IFS
7623
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007624 ;;
7625esac
7626fi
7627RUNTEST=$ac_cv_path_RUNTEST
7628if test -n "$RUNTEST"; then
7629 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7630echo "${ECHO_T}$RUNTEST" >&6; }
7631else
7632 { echo "$as_me:$LINENO: result: no" >&5
7633echo "${ECHO_T}no" >&6; }
7634fi
7635
7636
7637
7638no_itcl=true
7639{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7640echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7641
7642# Check whether --with-tclinclude was given.
7643if test "${with_tclinclude+set}" = set; then
7644 withval=$with_tclinclude; with_tclinclude=${withval}
7645else
7646 with_tclinclude=''
7647fi
7648
7649if test "${ac_cv_path_tclsh+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651else
7652
7653if test x"${with_tclinclude}" != x ; then
7654 if test -f ${with_tclinclude}/tclsh ; then
7655 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7656 elif test -f ${with_tclinclude}/src/tclsh ; then
7657 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7658 else
7659 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7660echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7661 { (exit 1); exit 1; }; }
7662 fi
7663fi
7664
7665if test x"${ac_cv_path_tclsh}" = x ; then
7666 { echo "$as_me:$LINENO: result: none" >&5
7667echo "${ECHO_T}none" >&6; }
7668 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
7669do
7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
7671set dummy $ac_prog; ac_word=$2
7672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674if test "${ac_cv_path_TCLSH+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676else
7677 case $TCLSH in
7678 [\\/]* | ?:[\\/]*)
7679 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7680 ;;
7681 *)
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683for as_dir in $PATH
7684do
7685 IFS=$as_save_IFS
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007689 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 break 2
7692 fi
7693done
7694done
7695IFS=$as_save_IFS
7696
7697 ;;
7698esac
7699fi
7700TCLSH=$ac_cv_path_TCLSH
7701if test -n "$TCLSH"; then
7702 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7703echo "${ECHO_T}$TCLSH" >&6; }
7704else
7705 { echo "$as_me:$LINENO: result: no" >&5
7706echo "${ECHO_T}no" >&6; }
7707fi
7708
7709
7710 test -n "$TCLSH" && break
7711done
7712
7713 if test x"${TCLSH}" = x ; then
7714 ac_cv_path_tclsh='';
7715 else
7716 ac_cv_path_tclsh="${TCLSH}";
7717 fi
7718else
7719 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7720echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7721 TCLSH="${ac_cv_path_tclsh}"
7722
7723fi
7724
7725fi
7726
7727# Extract the first word of "zip", so it can be a program name with args.
7728set dummy zip; ac_word=$2
7729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7731if test "${ac_cv_path_ZIP+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7733else
7734 case $ZIP in
7735 [\\/]* | ?:[\\/]*)
7736 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7737 ;;
7738 *)
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007746 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 break 2
7749 fi
7750done
7751done
7752IFS=$as_save_IFS
7753
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007754 ;;
7755esac
7756fi
7757ZIP=$ac_cv_path_ZIP
7758if test -n "$ZIP"; then
7759 { echo "$as_me:$LINENO: result: $ZIP" >&5
7760echo "${ECHO_T}$ZIP" >&6; }
7761else
7762 { echo "$as_me:$LINENO: result: no" >&5
7763echo "${ECHO_T}no" >&6; }
7764fi
7765
7766
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00007767for ac_prog in ocamlc
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007768do
7769 # Extract the first word of "$ac_prog", so it can be a program name with args.
7770set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7773if test "${ac_cv_path_OCAMLC+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7775else
7776 case $OCAMLC in
7777 [\\/]* | ?:[\\/]*)
7778 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7779 ;;
7780 *)
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782for as_dir in $PATH
7783do
7784 IFS=$as_save_IFS
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007788 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 break 2
7791 fi
7792done
7793done
7794IFS=$as_save_IFS
7795
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007796 ;;
7797esac
7798fi
7799OCAMLC=$ac_cv_path_OCAMLC
7800if test -n "$OCAMLC"; then
7801 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7802echo "${ECHO_T}$OCAMLC" >&6; }
7803else
7804 { echo "$as_me:$LINENO: result: no" >&5
7805echo "${ECHO_T}no" >&6; }
7806fi
7807
7808
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007809 test -n "$OCAMLC" && break
7810done
7811
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00007812for ac_prog in ocamlopt
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007813do
7814 # Extract the first word of "$ac_prog", so it can be a program name with args.
7815set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7818if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7820else
7821 case $OCAMLOPT in
7822 [\\/]* | ?:[\\/]*)
7823 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7824 ;;
7825 *)
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827for as_dir in $PATH
7828do
7829 IFS=$as_save_IFS
7830 test -z "$as_dir" && as_dir=.
7831 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007833 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 break 2
7836 fi
7837done
7838done
7839IFS=$as_save_IFS
7840
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007841 ;;
7842esac
7843fi
7844OCAMLOPT=$ac_cv_path_OCAMLOPT
7845if test -n "$OCAMLOPT"; then
7846 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7847echo "${ECHO_T}$OCAMLOPT" >&6; }
7848else
7849 { echo "$as_me:$LINENO: result: no" >&5
7850echo "${ECHO_T}no" >&6; }
7851fi
7852
7853
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007854 test -n "$OCAMLOPT" && break
7855done
7856
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00007857for ac_prog in ocamldep
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007858do
7859 # Extract the first word of "$ac_prog", so it can be a program name with args.
7860set dummy $ac_prog; ac_word=$2
Gordon Henriksen38eefac2007-09-20 16:48:18 +00007861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7863if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865else
7866 case $OCAMLDEP in
7867 [\\/]* | ?:[\\/]*)
7868 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7869 ;;
7870 *)
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen38eefac2007-09-20 16:48:18 +00007878 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882done
7883done
7884IFS=$as_save_IFS
7885
Gordon Henriksen38eefac2007-09-20 16:48:18 +00007886 ;;
7887esac
7888fi
7889OCAMLDEP=$ac_cv_path_OCAMLDEP
7890if test -n "$OCAMLDEP"; then
7891 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7892echo "${ECHO_T}$OCAMLDEP" >&6; }
7893else
7894 { echo "$as_me:$LINENO: result: no" >&5
7895echo "${ECHO_T}no" >&6; }
7896fi
7897
7898
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007899 test -n "$OCAMLDEP" && break
7900done
7901
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00007902for ac_prog in ocamldoc
Gordon Henriksen8af51f62008-03-10 15:49:38 +00007903do
7904 # Extract the first word of "$ac_prog", so it can be a program name with args.
7905set dummy $ac_prog; ac_word=$2
7906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7908if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910else
7911 case $OCAMLDOC in
7912 [\\/]* | ?:[\\/]*)
7913 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7914 ;;
7915 *)
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917for as_dir in $PATH
7918do
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen8af51f62008-03-10 15:49:38 +00007923 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 break 2
7926 fi
7927done
7928done
7929IFS=$as_save_IFS
7930
7931 ;;
7932esac
7933fi
7934OCAMLDOC=$ac_cv_path_OCAMLDOC
7935if test -n "$OCAMLDOC"; then
7936 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7937echo "${ECHO_T}$OCAMLDOC" >&6; }
7938else
7939 { echo "$as_me:$LINENO: result: no" >&5
7940echo "${ECHO_T}no" >&6; }
7941fi
7942
7943
7944 test -n "$OCAMLDOC" && break
7945done
7946
Edwin Török20176752008-10-22 09:56:27 +00007947for ac_prog in gas as
7948do
7949 # Extract the first word of "$ac_prog", so it can be a program name with args.
7950set dummy $ac_prog; ac_word=$2
7951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7953if test "${ac_cv_path_GAS+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955else
7956 case $GAS in
7957 [\\/]* | ?:[\\/]*)
7958 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7959 ;;
7960 *)
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962for as_dir in $PATH
7963do
7964 IFS=$as_save_IFS
7965 test -z "$as_dir" && as_dir=.
7966 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Edwin Török20176752008-10-22 09:56:27 +00007968 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 break 2
7971 fi
7972done
7973done
7974IFS=$as_save_IFS
7975
7976 ;;
7977esac
7978fi
7979GAS=$ac_cv_path_GAS
7980if test -n "$GAS"; then
7981 { echo "$as_me:$LINENO: result: $GAS" >&5
7982echo "${ECHO_T}$GAS" >&6; }
7983else
7984 { echo "$as_me:$LINENO: result: no" >&5
7985echo "${ECHO_T}no" >&6; }
7986fi
7987
7988
7989 test -n "$GAS" && break
7990done
7991
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007992
7993{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7994echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7995if test "${llvm_cv_link_use_r+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7997else
7998 ac_ext=c
7999ac_cpp='$CPP $CPPFLAGS'
8000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8002ac_compiler_gnu=$ac_cv_c_compiler_gnu
8003
8004 oldcflags="$CFLAGS"
8005 CFLAGS="$CFLAGS -Wl,-R."
8006 cat >conftest.$ac_ext <<_ACEOF
8007/* confdefs.h. */
8008_ACEOF
8009cat confdefs.h >>conftest.$ac_ext
8010cat >>conftest.$ac_ext <<_ACEOF
8011/* end confdefs.h. */
8012
8013int
8014main ()
8015{
8016int main() { return 0; }
8017 ;
8018 return 0;
8019}
8020_ACEOF
8021rm -f conftest.$ac_objext conftest$ac_exeext
8022if { (ac_try="$ac_link"
8023case "(($ac_try" in
8024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025 *) ac_try_echo=$ac_try;;
8026esac
8027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8028 (eval "$ac_link") 2>conftest.er1
8029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008034 (exit $ac_status); } &&
8035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8036 { (case "(($ac_try" in
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8039esac
8040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_try") 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; } &&
8045 { ac_try='test -s conftest$ac_exeext'
8046 { (case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049esac
8050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_try") 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008055 llvm_cv_link_use_r=yes
8056else
8057 echo "$as_me: failed program was:" >&5
8058sed 's/^/| /' conftest.$ac_ext >&5
8059
8060 llvm_cv_link_use_r=no
8061fi
8062
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008063rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008064 conftest$ac_exeext conftest.$ac_ext
8065 CFLAGS="$oldcflags"
8066 ac_ext=c
8067ac_cpp='$CPP $CPPFLAGS'
8068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8070ac_compiler_gnu=$ac_cv_c_compiler_gnu
8071
8072
8073fi
8074{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8075echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8076if test "$llvm_cv_link_use_r" = yes ; then
8077
8078cat >>confdefs.h <<\_ACEOF
8079#define HAVE_LINK_R 1
8080_ACEOF
8081
8082 fi
8083
8084
Nick Lewycky6eab6652009-03-05 08:20:44 +00008085{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8086echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8087if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8089else
8090 ac_ext=c
8091ac_cpp='$CPP $CPPFLAGS'
8092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8094ac_compiler_gnu=$ac_cv_c_compiler_gnu
8095
8096 oldcflags="$CFLAGS"
8097 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8098 cat >conftest.$ac_ext <<_ACEOF
8099/* confdefs.h. */
8100_ACEOF
8101cat confdefs.h >>conftest.$ac_ext
8102cat >>conftest.$ac_ext <<_ACEOF
8103/* end confdefs.h. */
8104
8105int
8106main ()
8107{
8108int main() { return 0; }
8109 ;
8110 return 0;
8111}
8112_ACEOF
8113rm -f conftest.$ac_objext conftest$ac_exeext
8114if { (ac_try="$ac_link"
8115case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8118esac
8119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_link") 2>conftest.er1
8121 ac_status=$?
8122 grep -v '^ *+' conftest.er1 >conftest.err
8123 rm -f conftest.er1
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } &&
8127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8128 { (case "(($ac_try" in
8129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130 *) ac_try_echo=$ac_try;;
8131esac
8132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133 (eval "$ac_try") 2>&5
8134 ac_status=$?
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); }; } &&
8137 { ac_try='test -s conftest$ac_exeext'
8138 { (case "(($ac_try" in
8139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8140 *) ac_try_echo=$ac_try;;
8141esac
8142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8143 (eval "$ac_try") 2>&5
8144 ac_status=$?
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; }; then
8147 llvm_cv_link_use_export_dynamic=yes
8148else
8149 echo "$as_me: failed program was:" >&5
8150sed 's/^/| /' conftest.$ac_ext >&5
8151
8152 llvm_cv_link_use_export_dynamic=no
8153fi
8154
8155rm -f core conftest.err conftest.$ac_objext \
8156 conftest$ac_exeext conftest.$ac_ext
8157 CFLAGS="$oldcflags"
8158 ac_ext=c
8159ac_cpp='$CPP $CPPFLAGS'
8160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8162ac_compiler_gnu=$ac_cv_c_compiler_gnu
8163
8164
8165fi
8166{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8167echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8168if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8169
8170cat >>confdefs.h <<\_ACEOF
8171#define HAVE_LINK_EXPORT_DYNAMIC 1
8172_ACEOF
8173
8174 fi
8175
8176
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008177
8178
8179{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8180echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8181if test "${ac_cv_c_const+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8183else
8184 cat >conftest.$ac_ext <<_ACEOF
8185/* confdefs.h. */
8186_ACEOF
8187cat confdefs.h >>conftest.$ac_ext
8188cat >>conftest.$ac_ext <<_ACEOF
8189/* end confdefs.h. */
8190
8191int
8192main ()
8193{
8194/* FIXME: Include the comments suggested by Paul. */
8195#ifndef __cplusplus
8196 /* Ultrix mips cc rejects this. */
8197 typedef int charset[2];
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008198 const charset x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008199 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008200 char const *const *ccp;
8201 char **p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008202 /* NEC SVR4.0.2 mips cc rejects this. */
8203 struct point {int x, y;};
8204 static struct point const zero = {0,0};
8205 /* AIX XL C 1.02.0.0 rejects this.
8206 It does not let you subtract one const X* pointer from another in
8207 an arm of an if-expression whose if-part is not a constant
8208 expression */
8209 const char *g = "string";
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008210 ccp = &g + (g ? g-g : 0);
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008211 /* HPUX 7.0 cc rejects these. */
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008212 ++ccp;
8213 p = (char**) ccp;
8214 ccp = (char const *const *) p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008215 { /* SCO 3.2v4 cc rejects this. */
8216 char *t;
8217 char const *s = 0 ? (char *) 0 : (char const *) 0;
8218
8219 *t++ = 0;
8220 if (s) return 0;
8221 }
8222 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8223 int x[] = {25, 17};
8224 const int *foo = &x[0];
8225 ++foo;
8226 }
8227 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8228 typedef const int *iptr;
8229 iptr p = 0;
8230 ++p;
8231 }
8232 { /* AIX XL C 1.02.0.0 rejects this saying
8233 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8234 struct s { int j; const int *ap[3]; };
8235 struct s *b; b->j = 5;
8236 }
8237 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8238 const int foo = 10;
8239 if (!foo) return 0;
8240 }
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008241 return !x[0] && !zero.x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008242#endif
8243
8244 ;
8245 return 0;
8246}
8247_ACEOF
8248rm -f conftest.$ac_objext
8249if { (ac_try="$ac_compile"
8250case "(($ac_try" in
8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8253esac
8254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255 (eval "$ac_compile") 2>conftest.er1
8256 ac_status=$?
8257 grep -v '^ *+' conftest.er1 >conftest.err
8258 rm -f conftest.er1
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008261 (exit $ac_status); } &&
8262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8263 { (case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8266esac
8267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_try") 2>&5
8269 ac_status=$?
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; } &&
8272 { ac_try='test -s conftest.$ac_objext'
8273 { (case "(($ac_try" in
8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275 *) ac_try_echo=$ac_try;;
8276esac
8277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8278 (eval "$ac_try") 2>&5
8279 ac_status=$?
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008282 ac_cv_c_const=yes
8283else
8284 echo "$as_me: failed program was:" >&5
8285sed 's/^/| /' conftest.$ac_ext >&5
8286
8287 ac_cv_c_const=no
8288fi
8289
8290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8291fi
8292{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8293echo "${ECHO_T}$ac_cv_c_const" >&6; }
8294if test $ac_cv_c_const = no; then
8295
8296cat >>confdefs.h <<\_ACEOF
8297#define const
8298_ACEOF
8299
8300fi
8301
8302
8303
8304
8305
8306
8307ac_header_dirent=no
8308for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8309 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8310{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8311echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8314else
8315 cat >conftest.$ac_ext <<_ACEOF
8316/* confdefs.h. */
8317_ACEOF
8318cat confdefs.h >>conftest.$ac_ext
8319cat >>conftest.$ac_ext <<_ACEOF
8320/* end confdefs.h. */
8321#include <sys/types.h>
8322#include <$ac_hdr>
8323
8324int
8325main ()
8326{
8327if ((DIR *) 0)
8328return 0;
8329 ;
8330 return 0;
8331}
8332_ACEOF
8333rm -f conftest.$ac_objext
8334if { (ac_try="$ac_compile"
8335case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338esac
8339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_compile") 2>conftest.er1
8341 ac_status=$?
8342 grep -v '^ *+' conftest.er1 >conftest.err
8343 rm -f conftest.er1
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008346 (exit $ac_status); } &&
8347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8348 { (case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8351esac
8352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_try") 2>&5
8354 ac_status=$?
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try='test -s conftest.$ac_objext'
8358 { (case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361esac
8362eval "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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008367 eval "$as_ac_Header=yes"
8368else
8369 echo "$as_me: failed program was:" >&5
8370sed 's/^/| /' conftest.$ac_ext >&5
8371
8372 eval "$as_ac_Header=no"
8373fi
8374
8375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376fi
8377ac_res=`eval echo '${'$as_ac_Header'}'`
8378 { echo "$as_me:$LINENO: result: $ac_res" >&5
8379echo "${ECHO_T}$ac_res" >&6; }
8380if test `eval echo '${'$as_ac_Header'}'` = yes; then
8381 cat >>confdefs.h <<_ACEOF
8382#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8383_ACEOF
8384
8385ac_header_dirent=$ac_hdr; break
8386fi
8387
8388done
8389# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8390if test $ac_header_dirent = dirent.h; then
8391 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8392echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8393if test "${ac_cv_search_opendir+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8395else
8396 ac_func_search_save_LIBS=$LIBS
8397cat >conftest.$ac_ext <<_ACEOF
8398/* confdefs.h. */
8399_ACEOF
8400cat confdefs.h >>conftest.$ac_ext
8401cat >>conftest.$ac_ext <<_ACEOF
8402/* end confdefs.h. */
8403
8404/* Override any GCC internal prototype to avoid an error.
8405 Use char because int might match the return type of a GCC
8406 builtin and then its argument prototype would still apply. */
8407#ifdef __cplusplus
8408extern "C"
8409#endif
8410char opendir ();
8411int
8412main ()
8413{
8414return opendir ();
8415 ;
8416 return 0;
8417}
8418_ACEOF
8419for ac_lib in '' dir; do
8420 if test -z "$ac_lib"; then
8421 ac_res="none required"
8422 else
8423 ac_res=-l$ac_lib
8424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8425 fi
8426 rm -f conftest.$ac_objext conftest$ac_exeext
8427if { (ac_try="$ac_link"
8428case "(($ac_try" in
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8431esac
8432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433 (eval "$ac_link") 2>conftest.er1
8434 ac_status=$?
8435 grep -v '^ *+' conftest.er1 >conftest.err
8436 rm -f conftest.er1
8437 cat conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008439 (exit $ac_status); } &&
8440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8441 { (case "(($ac_try" in
8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8444esac
8445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446 (eval "$ac_try") 2>&5
8447 ac_status=$?
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; } &&
8450 { ac_try='test -s conftest$ac_exeext'
8451 { (case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8454esac
8455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_try") 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008460 ac_cv_search_opendir=$ac_res
8461else
8462 echo "$as_me: failed program was:" >&5
8463sed 's/^/| /' conftest.$ac_ext >&5
8464
8465
8466fi
8467
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008468rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008469 conftest$ac_exeext
8470 if test "${ac_cv_search_opendir+set}" = set; then
8471 break
8472fi
8473done
8474if test "${ac_cv_search_opendir+set}" = set; then
8475 :
8476else
8477 ac_cv_search_opendir=no
8478fi
8479rm conftest.$ac_ext
8480LIBS=$ac_func_search_save_LIBS
8481fi
8482{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8483echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8484ac_res=$ac_cv_search_opendir
8485if test "$ac_res" != no; then
8486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8487
8488fi
8489
8490else
8491 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8492echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8493if test "${ac_cv_search_opendir+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8495else
8496 ac_func_search_save_LIBS=$LIBS
8497cat >conftest.$ac_ext <<_ACEOF
8498/* confdefs.h. */
8499_ACEOF
8500cat confdefs.h >>conftest.$ac_ext
8501cat >>conftest.$ac_ext <<_ACEOF
8502/* end confdefs.h. */
8503
8504/* Override any GCC internal prototype to avoid an error.
8505 Use char because int might match the return type of a GCC
8506 builtin and then its argument prototype would still apply. */
8507#ifdef __cplusplus
8508extern "C"
8509#endif
8510char opendir ();
8511int
8512main ()
8513{
8514return opendir ();
8515 ;
8516 return 0;
8517}
8518_ACEOF
8519for ac_lib in '' x; do
8520 if test -z "$ac_lib"; then
8521 ac_res="none required"
8522 else
8523 ac_res=-l$ac_lib
8524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8525 fi
8526 rm -f conftest.$ac_objext conftest$ac_exeext
8527if { (ac_try="$ac_link"
8528case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531esac
8532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_link") 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008539 (exit $ac_status); } &&
8540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8541 { (case "(($ac_try" in
8542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543 *) ac_try_echo=$ac_try;;
8544esac
8545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546 (eval "$ac_try") 2>&5
8547 ac_status=$?
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; } &&
8550 { ac_try='test -s conftest$ac_exeext'
8551 { (case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8554esac
8555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_try") 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008560 ac_cv_search_opendir=$ac_res
8561else
8562 echo "$as_me: failed program was:" >&5
8563sed 's/^/| /' conftest.$ac_ext >&5
8564
8565
8566fi
8567
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008568rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008569 conftest$ac_exeext
8570 if test "${ac_cv_search_opendir+set}" = set; then
8571 break
8572fi
8573done
8574if test "${ac_cv_search_opendir+set}" = set; then
8575 :
8576else
8577 ac_cv_search_opendir=no
8578fi
8579rm conftest.$ac_ext
8580LIBS=$ac_func_search_save_LIBS
8581fi
8582{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8583echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8584ac_res=$ac_cv_search_opendir
8585if test "$ac_res" != no; then
8586 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8587
8588fi
8589
8590fi
8591
8592
8593for ac_header in dlfcn.h
8594do
8595as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8599if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8601fi
8602ac_res=`eval echo '${'$as_ac_Header'}'`
8603 { echo "$as_me:$LINENO: result: $ac_res" >&5
8604echo "${ECHO_T}$ac_res" >&6; }
8605else
8606 # Is the header compilable?
8607{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8608echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8609cat >conftest.$ac_ext <<_ACEOF
8610/* confdefs.h. */
8611_ACEOF
8612cat confdefs.h >>conftest.$ac_ext
8613cat >>conftest.$ac_ext <<_ACEOF
8614/* end confdefs.h. */
8615$ac_includes_default
8616#include <$ac_header>
8617_ACEOF
8618rm -f conftest.$ac_objext
8619if { (ac_try="$ac_compile"
8620case "(($ac_try" in
8621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622 *) ac_try_echo=$ac_try;;
8623esac
8624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625 (eval "$ac_compile") 2>conftest.er1
8626 ac_status=$?
8627 grep -v '^ *+' conftest.er1 >conftest.err
8628 rm -f conftest.er1
8629 cat conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008631 (exit $ac_status); } &&
8632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8633 { (case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636esac
8637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_try") 2>&5
8639 ac_status=$?
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; } &&
8642 { ac_try='test -s conftest.$ac_objext'
8643 { (case "(($ac_try" in
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8646esac
8647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_try") 2>&5
8649 ac_status=$?
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008652 ac_header_compiler=yes
8653else
8654 echo "$as_me: failed program was:" >&5
8655sed 's/^/| /' conftest.$ac_ext >&5
8656
8657 ac_header_compiler=no
8658fi
8659
8660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8662echo "${ECHO_T}$ac_header_compiler" >&6; }
8663
8664# Is the header present?
8665{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8666echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8667cat >conftest.$ac_ext <<_ACEOF
8668/* confdefs.h. */
8669_ACEOF
8670cat confdefs.h >>conftest.$ac_ext
8671cat >>conftest.$ac_ext <<_ACEOF
8672/* end confdefs.h. */
8673#include <$ac_header>
8674_ACEOF
8675if { (ac_try="$ac_cpp conftest.$ac_ext"
8676case "(($ac_try" in
8677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8679esac
8680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8682 ac_status=$?
8683 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008687 (exit $ac_status); } >/dev/null; then
8688 if test -s conftest.err; then
8689 ac_cpp_err=$ac_c_preproc_warn_flag
8690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8691 else
8692 ac_cpp_err=
8693 fi
8694else
8695 ac_cpp_err=yes
8696fi
8697if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008698 ac_header_preproc=yes
8699else
8700 echo "$as_me: failed program was:" >&5
8701sed 's/^/| /' conftest.$ac_ext >&5
8702
8703 ac_header_preproc=no
8704fi
8705
8706rm -f conftest.err conftest.$ac_ext
8707{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8708echo "${ECHO_T}$ac_header_preproc" >&6; }
8709
8710# So? What about this header?
8711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8712 yes:no: )
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8714echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8716echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8717 ac_header_preproc=yes
8718 ;;
8719 no:yes:* )
8720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8723echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8725echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8727echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8729echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8731echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8732 ( cat <<\_ASBOX
8733## ----------------------------------- ##
8734## Report this to llvmbugs@cs.uiuc.edu ##
8735## ----------------------------------- ##
8736_ASBOX
8737 ) | sed "s/^/$as_me: WARNING: /" >&2
8738 ;;
8739esac
8740{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744else
8745 eval "$as_ac_Header=\$ac_header_preproc"
8746fi
8747ac_res=`eval echo '${'$as_ac_Header'}'`
8748 { echo "$as_me:$LINENO: result: $ac_res" >&5
8749echo "${ECHO_T}$ac_res" >&6; }
8750
8751fi
8752if test `eval echo '${'$as_ac_Header'}'` = yes; then
8753 cat >>confdefs.h <<_ACEOF
8754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8755_ACEOF
8756
8757fi
8758
8759done
8760
8761# Check whether --enable-ltdl-install was given.
8762if test "${enable_ltdl_install+set}" = set; then
8763 enableval=$enable_ltdl_install;
8764fi
8765
8766
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008767
8768
8769if test x"${enable_ltdl_install-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008770 INSTALL_LTDL_TRUE=
8771 INSTALL_LTDL_FALSE='#'
8772else
8773 INSTALL_LTDL_TRUE='#'
8774 INSTALL_LTDL_FALSE=
8775fi
8776
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008777
8778
8779if test x"${enable_ltdl_convenience-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008780 CONVENIENCE_LTDL_TRUE=
8781 CONVENIENCE_LTDL_FALSE='#'
8782else
8783 CONVENIENCE_LTDL_TRUE='#'
8784 CONVENIENCE_LTDL_FALSE=
8785fi
8786
8787
8788{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8789echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8790library_names_spec=
8791libname_spec='lib$name'
8792soname_spec=
8793shrext_cmds=".so"
8794postinstall_cmds=
8795postuninstall_cmds=
8796finish_cmds=
8797finish_eval=
8798shlibpath_var=
8799shlibpath_overrides_runpath=unknown
8800version_type=none
8801dynamic_linker="$host_os ld.so"
8802sys_lib_dlsearch_path_spec="/lib /usr/lib"
8803if test "$GCC" = yes; then
8804 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8805 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8806 # if the path contains ";" then we assume it to be the separator
8807 # otherwise default to the standard path separator (i.e. ":") - it is
8808 # assumed that no part of a normal pathname contains ";" but that should
8809 # okay in the real world where ";" in dirpaths is itself problematic.
8810 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8811 else
8812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8813 fi
8814else
8815 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8816fi
8817need_lib_prefix=unknown
8818hardcode_into_libs=no
8819
8820# when you set need_version to no, make sure it does not cause -set_version
8821# flags to be left without arguments
8822need_version=unknown
8823
8824case $host_os in
8825aix3*)
8826 version_type=linux
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8828 shlibpath_var=LIBPATH
8829
8830 # AIX 3 has no versioning support, so we append a major version to the name.
8831 soname_spec='${libname}${release}${shared_ext}$major'
8832 ;;
8833
8834aix4* | aix5*)
8835 version_type=linux
8836 need_lib_prefix=no
8837 need_version=no
8838 hardcode_into_libs=yes
8839 if test "$host_cpu" = ia64; then
8840 # AIX 5 supports IA64
8841 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8842 shlibpath_var=LD_LIBRARY_PATH
8843 else
8844 # With GCC up to 2.95.x, collect2 would create an import file
8845 # for dependence libraries. The import file would start with
8846 # the line `#! .'. This would cause the generated library to
8847 # depend on `.', always an invalid library. This was fixed in
8848 # development snapshots of GCC prior to 3.0.
8849 case $host_os in
8850 aix4 | aix4.[01] | aix4.[01].*)
8851 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8852 echo ' yes '
8853 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8854 :
8855 else
8856 can_build_shared=no
8857 fi
8858 ;;
8859 esac
8860 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8861 # soname into executable. Probably we can add versioning support to
8862 # collect2, so additional links can be useful in future.
8863 if test "$aix_use_runtimelinking" = yes; then
8864 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8865 # instead of lib<name>.a to let people know that these are not
8866 # typical AIX shared libraries.
8867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8868 else
8869 # We preserve .a as extension for shared libraries through AIX4.2
8870 # and later when we are not doing run time linking.
8871 library_names_spec='${libname}${release}.a $libname.a'
8872 soname_spec='${libname}${release}${shared_ext}$major'
8873 fi
8874 shlibpath_var=LIBPATH
8875 fi
8876 ;;
8877
8878amigaos*)
8879 library_names_spec='$libname.ixlibrary $libname.a'
8880 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8881 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'
8882 ;;
8883
8884beos*)
8885 library_names_spec='${libname}${shared_ext}'
8886 dynamic_linker="$host_os ld.so"
8887 shlibpath_var=LIBRARY_PATH
8888 ;;
8889
8890bsdi[45]*)
8891 version_type=linux
8892 need_version=no
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8894 soname_spec='${libname}${release}${shared_ext}$major'
8895 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8896 shlibpath_var=LD_LIBRARY_PATH
8897 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8898 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8899 # the default ld.so.conf also contains /usr/contrib/lib and
8900 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8901 # libtool to hard-code these into programs
8902 ;;
8903
8904cygwin* | mingw* | pw32*)
8905 version_type=windows
8906 shrext_cmds=".dll"
8907 need_version=no
8908 need_lib_prefix=no
8909
8910 case $GCC,$host_os in
8911 yes,cygwin* | yes,mingw* | yes,pw32*)
8912 library_names_spec='$libname.dll.a'
8913 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8914 postinstall_cmds='base_file=`basename \${file}`~
8915 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8916 dldir=$destdir/`dirname \$dlpath`~
8917 test -d \$dldir || mkdir -p \$dldir~
8918 $install_prog $dir/$dlname \$dldir/$dlname~
8919 chmod a+x \$dldir/$dlname'
8920 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8921 dlpath=$dir/\$dldll~
8922 $rm \$dlpath'
8923 shlibpath_overrides_runpath=yes
8924
8925 case $host_os in
8926 cygwin*)
8927 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8928 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8929 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8930 ;;
8931 mingw*)
8932 # MinGW DLLs use traditional 'lib' prefix
8933 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8934 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8935 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8936 # It is most probably a Windows format PATH printed by
8937 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8938 # path with ; separators, and with drive letters. We can handle the
8939 # drive letters (cygwin fileutils understands them), so leave them,
8940 # especially as we might pass files found there to a mingw objdump,
8941 # which wouldn't understand a cygwinified path. Ahh.
8942 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8943 else
8944 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8945 fi
8946 ;;
8947 pw32*)
8948 # pw32 DLLs use 'pw' prefix rather than 'lib'
8949 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8950 ;;
8951 esac
8952 ;;
8953
8954 *)
8955 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8956 ;;
8957 esac
8958 dynamic_linker='Win32 ld.exe'
8959 # FIXME: first we should search . and the directory the executable is in
8960 shlibpath_var=PATH
8961 ;;
8962
8963darwin* | rhapsody*)
8964 dynamic_linker="$host_os dyld"
8965 version_type=darwin
8966 need_lib_prefix=no
8967 need_version=no
8968 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8969 soname_spec='${libname}${release}${major}$shared_ext'
8970 shlibpath_overrides_runpath=yes
8971 shlibpath_var=DYLD_LIBRARY_PATH
8972 shrext_cmds='.dylib'
8973 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8974 if test "$GCC" = yes; then
8975 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"`
8976 else
8977 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8978 fi
8979 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8980 ;;
8981
8982dgux*)
8983 version_type=linux
8984 need_lib_prefix=no
8985 need_version=no
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 ;;
8990
8991freebsd1*)
8992 dynamic_linker=no
8993 ;;
8994
8995kfreebsd*-gnu)
8996 version_type=linux
8997 need_lib_prefix=no
8998 need_version=no
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 shlibpath_var=LD_LIBRARY_PATH
9002 shlibpath_overrides_runpath=no
9003 hardcode_into_libs=yes
9004 dynamic_linker='GNU ld.so'
9005 ;;
9006
9007freebsd* | dragonfly*)
9008 # DragonFly does not have aout. When/if they implement a new
9009 # versioning mechanism, adjust this.
9010 if test -x /usr/bin/objformat; then
9011 objformat=`/usr/bin/objformat`
9012 else
9013 case $host_os in
9014 freebsd[123]*) objformat=aout ;;
9015 *) objformat=elf ;;
9016 esac
9017 fi
9018 version_type=freebsd-$objformat
9019 case $version_type in
9020 freebsd-elf*)
9021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9022 need_version=no
9023 need_lib_prefix=no
9024 ;;
9025 freebsd-*)
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9027 need_version=yes
9028 ;;
9029 esac
9030 shlibpath_var=LD_LIBRARY_PATH
9031 case $host_os in
9032 freebsd2*)
9033 shlibpath_overrides_runpath=yes
9034 ;;
9035 freebsd3.[01]* | freebsdelf3.[01]*)
9036 shlibpath_overrides_runpath=yes
9037 hardcode_into_libs=yes
9038 ;;
9039 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9040 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9041 shlibpath_overrides_runpath=no
9042 hardcode_into_libs=yes
9043 ;;
9044 freebsd*) # from 4.6 on
9045 shlibpath_overrides_runpath=yes
9046 hardcode_into_libs=yes
9047 ;;
9048 esac
9049 ;;
9050
9051gnu*)
9052 version_type=linux
9053 need_lib_prefix=no
9054 need_version=no
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 hardcode_into_libs=yes
9059 ;;
9060
9061hpux9* | hpux10* | hpux11*)
9062 # Give a soname corresponding to the major version so that dld.sl refuses to
9063 # link against other versions.
9064 version_type=sunos
9065 need_lib_prefix=no
9066 need_version=no
9067 case $host_cpu in
9068 ia64*)
9069 shrext_cmds='.so'
9070 hardcode_into_libs=yes
9071 dynamic_linker="$host_os dld.so"
9072 shlibpath_var=LD_LIBRARY_PATH
9073 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 if test "X$HPUX_IA64_MODE" = X32; then
9077 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9078 else
9079 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9080 fi
9081 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9082 ;;
9083 hppa*64*)
9084 shrext_cmds='.sl'
9085 hardcode_into_libs=yes
9086 dynamic_linker="$host_os dld.sl"
9087 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9093 ;;
9094 *)
9095 shrext_cmds='.sl'
9096 dynamic_linker="$host_os dld.sl"
9097 shlibpath_var=SHLIB_PATH
9098 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 ;;
9102 esac
9103 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9104 postinstall_cmds='chmod 555 $lib'
9105 ;;
9106
9107interix3*)
9108 version_type=linux
9109 need_lib_prefix=no
9110 need_version=no
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9112 soname_spec='${libname}${release}${shared_ext}$major'
9113 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9114 shlibpath_var=LD_LIBRARY_PATH
9115 shlibpath_overrides_runpath=no
9116 hardcode_into_libs=yes
9117 ;;
9118
9119irix5* | irix6* | nonstopux*)
9120 case $host_os in
9121 nonstopux*) version_type=nonstopux ;;
9122 *)
9123 if test "$lt_cv_prog_gnu_ld" = yes; then
9124 version_type=linux
9125 else
9126 version_type=irix
9127 fi ;;
9128 esac
9129 need_lib_prefix=no
9130 need_version=no
9131 soname_spec='${libname}${release}${shared_ext}$major'
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9133 case $host_os in
9134 irix5* | nonstopux*)
9135 libsuff= shlibsuff=
9136 ;;
9137 *)
9138 case $LD in # libtool.m4 will add one of these switches to LD
9139 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9140 libsuff= shlibsuff= libmagic=32-bit;;
9141 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9142 libsuff=32 shlibsuff=N32 libmagic=N32;;
9143 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9144 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9145 *) libsuff= shlibsuff= libmagic=never-match;;
9146 esac
9147 ;;
9148 esac
9149 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9150 shlibpath_overrides_runpath=no
9151 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9152 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9153 hardcode_into_libs=yes
9154 ;;
9155
9156# No shared lib support for Linux oldld, aout, or coff.
9157linux*oldld* | linux*aout* | linux*coff*)
9158 dynamic_linker=no
9159 ;;
9160
9161# This must be Linux ELF.
9162linux*)
9163 version_type=linux
9164 need_lib_prefix=no
9165 need_version=no
9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9167 soname_spec='${libname}${release}${shared_ext}$major'
9168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9169 shlibpath_var=LD_LIBRARY_PATH
9170 shlibpath_overrides_runpath=no
9171 # This implies no fast_install, which is unacceptable.
9172 # Some rework will be needed to allow for fast_install
9173 # before this can be enabled.
9174 hardcode_into_libs=yes
9175
9176 # Append ld.so.conf contents to the search path
9177 if test -f /etc/ld.so.conf; then
9178 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' ' '`
9179 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9180 fi
9181
9182 # We used to test for /lib/ld.so.1 and disable shared libraries on
9183 # powerpc, because MkLinux only supported shared libraries with the
9184 # GNU dynamic linker. Since this was broken with cross compilers,
9185 # most powerpc-linux boxes support dynamic linking these days and
9186 # people can always --disable-shared, the test was removed, and we
9187 # assume the GNU/Linux dynamic linker is in use.
9188 dynamic_linker='GNU/Linux ld.so'
9189 ;;
9190
9191knetbsd*-gnu)
9192 version_type=linux
9193 need_lib_prefix=no
9194 need_version=no
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 shlibpath_var=LD_LIBRARY_PATH
9198 shlibpath_overrides_runpath=no
9199 hardcode_into_libs=yes
9200 dynamic_linker='GNU ld.so'
9201 ;;
9202
9203netbsd*)
9204 version_type=sunos
9205 need_lib_prefix=no
9206 need_version=no
9207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9210 dynamic_linker='NetBSD (a.out) ld.so'
9211 else
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 dynamic_linker='NetBSD ld.elf_so'
9215 fi
9216 shlibpath_var=LD_LIBRARY_PATH
9217 shlibpath_overrides_runpath=yes
9218 hardcode_into_libs=yes
9219 ;;
9220
9221newsos6)
9222 version_type=linux
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224 shlibpath_var=LD_LIBRARY_PATH
9225 shlibpath_overrides_runpath=yes
9226 ;;
9227
9228nto-qnx*)
9229 version_type=linux
9230 need_lib_prefix=no
9231 need_version=no
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 soname_spec='${libname}${release}${shared_ext}$major'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 shlibpath_overrides_runpath=yes
9236 ;;
9237
9238openbsd*)
9239 version_type=sunos
9240 sys_lib_dlsearch_path_spec="/usr/lib"
9241 need_lib_prefix=no
9242 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9243 case $host_os in
9244 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9245 *) need_version=no ;;
9246 esac
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9249 shlibpath_var=LD_LIBRARY_PATH
9250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9251 case $host_os in
9252 openbsd2.[89] | openbsd2.[89].*)
9253 shlibpath_overrides_runpath=no
9254 ;;
9255 *)
9256 shlibpath_overrides_runpath=yes
9257 ;;
9258 esac
9259 else
9260 shlibpath_overrides_runpath=yes
9261 fi
9262 ;;
9263
9264os2*)
9265 libname_spec='$name'
9266 shrext_cmds=".dll"
9267 need_lib_prefix=no
9268 library_names_spec='$libname${shared_ext} $libname.a'
9269 dynamic_linker='OS/2 ld.exe'
9270 shlibpath_var=LIBPATH
9271 ;;
9272
9273osf3* | osf4* | osf5*)
9274 version_type=osf
9275 need_lib_prefix=no
9276 need_version=no
9277 soname_spec='${libname}${release}${shared_ext}$major'
9278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9279 shlibpath_var=LD_LIBRARY_PATH
9280 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9281 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9282 ;;
9283
9284solaris*)
9285 version_type=linux
9286 need_lib_prefix=no
9287 need_version=no
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 shlibpath_overrides_runpath=yes
9292 hardcode_into_libs=yes
9293 # ldd complains unless libraries are executable
9294 postinstall_cmds='chmod +x $lib'
9295 ;;
9296
9297sunos4*)
9298 version_type=sunos
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9301 shlibpath_var=LD_LIBRARY_PATH
9302 shlibpath_overrides_runpath=yes
9303 if test "$with_gnu_ld" = yes; then
9304 need_lib_prefix=no
9305 fi
9306 need_version=yes
9307 ;;
9308
9309sysv4 | sysv4.3*)
9310 version_type=linux
9311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312 soname_spec='${libname}${release}${shared_ext}$major'
9313 shlibpath_var=LD_LIBRARY_PATH
9314 case $host_vendor in
9315 sni)
9316 shlibpath_overrides_runpath=no
9317 need_lib_prefix=no
9318 export_dynamic_flag_spec='${wl}-Blargedynsym'
9319 runpath_var=LD_RUN_PATH
9320 ;;
9321 siemens)
9322 need_lib_prefix=no
9323 ;;
9324 motorola)
9325 need_lib_prefix=no
9326 need_version=no
9327 shlibpath_overrides_runpath=no
9328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9329 ;;
9330 esac
9331 ;;
9332
9333sysv4*MP*)
9334 if test -d /usr/nec ;then
9335 version_type=linux
9336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9337 soname_spec='$libname${shared_ext}.$major'
9338 shlibpath_var=LD_LIBRARY_PATH
9339 fi
9340 ;;
9341
9342sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9343 version_type=freebsd-elf
9344 need_lib_prefix=no
9345 need_version=no
9346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9347 soname_spec='${libname}${release}${shared_ext}$major'
9348 shlibpath_var=LD_LIBRARY_PATH
9349 hardcode_into_libs=yes
9350 if test "$with_gnu_ld" = yes; then
9351 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9352 shlibpath_overrides_runpath=no
9353 else
9354 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9355 shlibpath_overrides_runpath=yes
9356 case $host_os in
9357 sco3.2v5*)
9358 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9359 ;;
9360 esac
9361 fi
9362 sys_lib_dlsearch_path_spec='/usr/lib'
9363 ;;
9364
9365uts4*)
9366 version_type=linux
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368 soname_spec='${libname}${release}${shared_ext}$major'
9369 shlibpath_var=LD_LIBRARY_PATH
9370 ;;
9371
9372*)
9373 dynamic_linker=no
9374 ;;
9375esac
9376{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9377echo "${ECHO_T}$dynamic_linker" >&6; }
9378test "$dynamic_linker" = no && can_build_shared=no
9379
9380variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9381if test "$GCC" = yes; then
9382 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9383fi
9384
9385
9386{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9387echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9388if test "${libltdl_cv_shlibext+set}" = set; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9390else
9391
9392module=yes
9393eval libltdl_cv_shlibext=$shrext_cmds
9394
9395fi
9396{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9397echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9398if test -n "$libltdl_cv_shlibext"; then
9399
9400cat >>confdefs.h <<_ACEOF
9401#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9402_ACEOF
9403
9404fi
9405
9406
9407{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9408echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9409if test "${libltdl_cv_shlibpath_var+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9411else
9412 libltdl_cv_shlibpath_var="$shlibpath_var"
9413fi
9414{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9415echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9416if test -n "$libltdl_cv_shlibpath_var"; then
9417
9418cat >>confdefs.h <<_ACEOF
9419#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9420_ACEOF
9421
9422fi
9423
9424
9425{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9426echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9427if test "${libltdl_cv_sys_search_path+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9429else
9430 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9431fi
9432{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9433echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9434if test -n "$libltdl_cv_sys_search_path"; then
9435 sys_search_path=
9436 for dir in $libltdl_cv_sys_search_path; do
9437 if test -z "$sys_search_path"; then
9438 sys_search_path="$dir"
9439 else
9440 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9441 fi
9442 done
9443
9444cat >>confdefs.h <<_ACEOF
9445#define LTDL_SYSSEARCHPATH "$sys_search_path"
9446_ACEOF
9447
9448fi
9449
9450{ echo "$as_me:$LINENO: checking for objdir" >&5
9451echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9452if test "${libltdl_cv_objdir+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9454else
9455 libltdl_cv_objdir="$objdir"
9456 if test -n "$objdir"; then
9457 :
9458 else
9459 rm -f .libs 2>/dev/null
9460 mkdir .libs 2>/dev/null
9461 if test -d .libs; then
9462 libltdl_cv_objdir=.libs
9463 else
9464 # MS-DOS does not allow filenames that begin with a dot.
9465 libltdl_cv_objdir=_libs
9466 fi
9467 rmdir .libs 2>/dev/null
9468 fi
9469
9470fi
9471{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9472echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9473
9474cat >>confdefs.h <<_ACEOF
9475#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9476_ACEOF
9477
9478
9479
9480
9481
9482
9483# Check for command to grab the raw symbol name followed by C symbol from nm.
9484{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9485echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9486if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9488else
9489
9490# These are sane defaults that work on at least a few old systems.
9491# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9492
9493# Character class describing NM global symbol codes.
9494symcode='[BCDEGRST]'
9495
9496# Regexp to match symbols that can be accessed directly from C.
9497sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9498
9499# Transform an extracted symbol line into a proper C declaration
9500lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9501
9502# Transform an extracted symbol line into symbol name and symbol address
9503lt_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'"
9504
9505# Define system-specific variables.
9506case $host_os in
9507aix*)
9508 symcode='[BCDT]'
9509 ;;
9510cygwin* | mingw* | pw32*)
9511 symcode='[ABCDGISTW]'
9512 ;;
9513hpux*) # Its linker distinguishes data from code symbols
9514 if test "$host_cpu" = ia64; then
9515 symcode='[ABCDEGRST]'
9516 fi
9517 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9518 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'"
9519 ;;
9520linux*)
9521 if test "$host_cpu" = ia64; then
9522 symcode='[ABCDGIRSTW]'
9523 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9524 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'"
9525 fi
9526 ;;
9527irix* | nonstopux*)
9528 symcode='[BCDEGRST]'
9529 ;;
9530osf*)
9531 symcode='[BCDEGQRST]'
9532 ;;
9533solaris*)
9534 symcode='[BDRT]'
9535 ;;
9536sco3.2v5*)
9537 symcode='[DT]'
9538 ;;
9539sysv4.2uw2*)
9540 symcode='[DT]'
9541 ;;
9542sysv5* | sco5v6* | unixware* | OpenUNIX*)
9543 symcode='[ABDT]'
9544 ;;
9545sysv4)
9546 symcode='[DFNSTU]'
9547 ;;
9548esac
9549
9550# Handle CRLF in mingw tool chain
9551opt_cr=
9552case $build_os in
9553mingw*)
9554 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9555 ;;
9556esac
9557
9558# If we're using GNU nm, then use its standard symbol codes.
9559case `$NM -V 2>&1` in
9560*GNU* | *'with BFD'*)
9561 symcode='[ABCDGIRSTW]' ;;
9562esac
9563
9564# Try without a prefix undercore, then with it.
9565for ac_symprfx in "" "_"; do
9566
9567 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9568 symxfrm="\\1 $ac_symprfx\\2 \\2"
9569
9570 # Write the raw and C identifiers.
9571 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9572
9573 # Check to see that the pipe works correctly.
9574 pipe_works=no
9575
9576 rm -f conftest*
9577 cat > conftest.$ac_ext <<EOF
9578#ifdef __cplusplus
9579extern "C" {
9580#endif
9581char nm_test_var;
9582void nm_test_func(){}
9583#ifdef __cplusplus
9584}
9585#endif
9586int main(){nm_test_var='a';nm_test_func();return(0);}
9587EOF
9588
9589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9590 (eval $ac_compile) 2>&5
9591 ac_status=$?
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; then
9594 # Now try to grab the symbols.
9595 nlist=conftest.nm
9596 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9597 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } && test -s "$nlist"; then
9601 # Try sorting and uniquifying the output.
9602 if sort "$nlist" | uniq > "$nlist"T; then
9603 mv -f "$nlist"T "$nlist"
9604 else
9605 rm -f "$nlist"T
9606 fi
9607
9608 # Make sure that we snagged all the symbols we need.
9609 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9610 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9611 cat <<EOF > conftest.$ac_ext
9612#ifdef __cplusplus
9613extern "C" {
9614#endif
9615
9616EOF
9617 # Now generate the symbol file.
9618 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9619
9620 cat <<EOF >> conftest.$ac_ext
9621#if defined (__STDC__) && __STDC__
9622# define lt_ptr_t void *
9623#else
9624# define lt_ptr_t char *
9625# define const
9626#endif
9627
9628/* The mapping between symbol names and symbols. */
9629const struct {
9630 const char *name;
9631 lt_ptr_t address;
9632}
9633lt_preloaded_symbols[] =
9634{
9635EOF
9636 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9637 cat <<\EOF >> conftest.$ac_ext
9638 {0, (lt_ptr_t) 0}
9639};
9640
9641#ifdef __cplusplus
9642}
9643#endif
9644EOF
9645 # Now try linking the two files.
9646 mv conftest.$ac_objext conftstm.$ac_objext
9647 lt_save_LIBS="$LIBS"
9648 lt_save_CFLAGS="$CFLAGS"
9649 LIBS="conftstm.$ac_objext"
9650 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9652 (eval $ac_link) 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9656 pipe_works=yes
9657 fi
9658 LIBS="$lt_save_LIBS"
9659 CFLAGS="$lt_save_CFLAGS"
9660 else
9661 echo "cannot find nm_test_func in $nlist" >&5
9662 fi
9663 else
9664 echo "cannot find nm_test_var in $nlist" >&5
9665 fi
9666 else
9667 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9668 fi
9669 else
9670 echo "$progname: failed program was:" >&5
9671 cat conftest.$ac_ext >&5
9672 fi
9673 rm -f conftest* conftst*
9674
9675 # Do not use the global_symbol_pipe unless it works.
9676 if test "$pipe_works" = yes; then
9677 break
9678 else
9679 lt_cv_sys_global_symbol_pipe=
9680 fi
9681done
9682
9683fi
9684
9685if test -z "$lt_cv_sys_global_symbol_pipe"; then
9686 lt_cv_sys_global_symbol_to_cdecl=
9687fi
9688if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9689 { echo "$as_me:$LINENO: result: failed" >&5
9690echo "${ECHO_T}failed" >&6; }
9691else
9692 { echo "$as_me:$LINENO: result: ok" >&5
9693echo "${ECHO_T}ok" >&6; }
9694fi
9695
9696
9697{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9698echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9699if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9700 echo $ECHO_N "(cached) $ECHO_C" >&6
9701else
9702 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9703 libltdl_cv_preloaded_symbols=yes
9704 else
9705 libltdl_cv_preloaded_symbols=no
9706 fi
9707
9708fi
9709{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9710echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9711if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9712
9713cat >>confdefs.h <<\_ACEOF
9714#define HAVE_PRELOADED_SYMBOLS 1
9715_ACEOF
9716
9717fi
9718
9719LIBADD_DL=
9720
9721ac_ext=c
9722ac_cpp='$CPP $CPPFLAGS'
9723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9725ac_compiler_gnu=$ac_cv_c_compiler_gnu
9726
9727
9728{ echo "$as_me:$LINENO: checking for shl_load" >&5
9729echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9730if test "${ac_cv_func_shl_load+set}" = set; then
9731 echo $ECHO_N "(cached) $ECHO_C" >&6
9732else
9733 cat >conftest.$ac_ext <<_ACEOF
9734/* confdefs.h. */
9735_ACEOF
9736cat confdefs.h >>conftest.$ac_ext
9737cat >>conftest.$ac_ext <<_ACEOF
9738/* end confdefs.h. */
9739/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9741#define shl_load innocuous_shl_load
9742
9743/* System header to define __stub macros and hopefully few prototypes,
9744 which can conflict with char shl_load (); below.
9745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9746 <limits.h> exists even on freestanding compilers. */
9747
9748#ifdef __STDC__
9749# include <limits.h>
9750#else
9751# include <assert.h>
9752#endif
9753
9754#undef shl_load
9755
9756/* Override any GCC internal prototype to avoid an error.
9757 Use char because int might match the return type of a GCC
9758 builtin and then its argument prototype would still apply. */
9759#ifdef __cplusplus
9760extern "C"
9761#endif
9762char shl_load ();
9763/* The GNU C library defines this for functions which it implements
9764 to always fail with ENOSYS. Some functions are actually named
9765 something starting with __ and the normal name is an alias. */
9766#if defined __stub_shl_load || defined __stub___shl_load
9767choke me
9768#endif
9769
9770int
9771main ()
9772{
9773return shl_load ();
9774 ;
9775 return 0;
9776}
9777_ACEOF
9778rm -f conftest.$ac_objext conftest$ac_exeext
9779if { (ac_try="$ac_link"
9780case "(($ac_try" in
9781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782 *) ac_try_echo=$ac_try;;
9783esac
9784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785 (eval "$ac_link") 2>conftest.er1
9786 ac_status=$?
9787 grep -v '^ *+' conftest.er1 >conftest.err
9788 rm -f conftest.er1
9789 cat conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00009791 (exit $ac_status); } &&
9792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9793 { (case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9796esac
9797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_try") 2>&5
9799 ac_status=$?
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; } &&
9802 { ac_try='test -s conftest$ac_exeext'
9803 { (case "(($ac_try" in
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9806esac
9807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808 (eval "$ac_try") 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009812 ac_cv_func_shl_load=yes
9813else
9814 echo "$as_me: failed program was:" >&5
9815sed 's/^/| /' conftest.$ac_ext >&5
9816
9817 ac_cv_func_shl_load=no
9818fi
9819
Tanya Lattner3fa4a442009-01-22 05:17:59 +00009820rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009821 conftest$ac_exeext conftest.$ac_ext
9822fi
9823{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9824echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9825if test $ac_cv_func_shl_load = yes; then
9826
9827cat >>confdefs.h <<\_ACEOF
9828#define HAVE_SHL_LOAD 1
9829_ACEOF
9830
9831else
9832 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9833echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9834if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9836else
9837 ac_check_lib_save_LIBS=$LIBS
9838LIBS="-ldld $LIBS"
9839cat >conftest.$ac_ext <<_ACEOF
9840/* confdefs.h. */
9841_ACEOF
9842cat confdefs.h >>conftest.$ac_ext
9843cat >>conftest.$ac_ext <<_ACEOF
9844/* end confdefs.h. */
9845
9846/* Override any GCC internal prototype to avoid an error.
9847 Use char because int might match the return type of a GCC
9848 builtin and then its argument prototype would still apply. */
9849#ifdef __cplusplus
9850extern "C"
9851#endif
9852char shl_load ();
9853int
9854main ()
9855{
9856return shl_load ();
9857 ;
9858 return 0;
9859}
9860_ACEOF
9861rm -f conftest.$ac_objext conftest$ac_exeext
9862if { (ac_try="$ac_link"
9863case "(($ac_try" in
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9866esac
9867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_link") 2>conftest.er1
9869 ac_status=$?
9870 grep -v '^ *+' conftest.er1 >conftest.err
9871 rm -f conftest.er1
9872 cat conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00009874 (exit $ac_status); } &&
9875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9876 { (case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9879esac
9880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_try") 2>&5
9882 ac_status=$?
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; } &&
9885 { ac_try='test -s conftest$ac_exeext'
9886 { (case "(($ac_try" in
9887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888 *) ac_try_echo=$ac_try;;
9889esac
9890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891 (eval "$ac_try") 2>&5
9892 ac_status=$?
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009895 ac_cv_lib_dld_shl_load=yes
9896else
9897 echo "$as_me: failed program was:" >&5
9898sed 's/^/| /' conftest.$ac_ext >&5
9899
9900 ac_cv_lib_dld_shl_load=no
9901fi
9902
Tanya Lattner3fa4a442009-01-22 05:17:59 +00009903rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009904 conftest$ac_exeext conftest.$ac_ext
9905LIBS=$ac_check_lib_save_LIBS
9906fi
9907{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9908echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9909if test $ac_cv_lib_dld_shl_load = yes; then
9910
9911cat >>confdefs.h <<\_ACEOF
9912#define HAVE_SHL_LOAD 1
9913_ACEOF
9914
9915 LIBADD_DL="$LIBADD_DL -ldld"
9916else
9917 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9918echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9919if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9921else
9922 ac_check_lib_save_LIBS=$LIBS
9923LIBS="-ldl $LIBS"
9924cat >conftest.$ac_ext <<_ACEOF
9925/* confdefs.h. */
9926_ACEOF
9927cat confdefs.h >>conftest.$ac_ext
9928cat >>conftest.$ac_ext <<_ACEOF
9929/* end confdefs.h. */
9930
9931/* Override any GCC internal prototype to avoid an error.
9932 Use char because int might match the return type of a GCC
9933 builtin and then its argument prototype would still apply. */
9934#ifdef __cplusplus
9935extern "C"
9936#endif
9937char dlopen ();
9938int
9939main ()
9940{
9941return dlopen ();
9942 ;
9943 return 0;
9944}
9945_ACEOF
9946rm -f conftest.$ac_objext conftest$ac_exeext
9947if { (ac_try="$ac_link"
9948case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951esac
9952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_link") 2>conftest.er1
9954 ac_status=$?
9955 grep -v '^ *+' conftest.er1 >conftest.err
9956 rm -f conftest.er1
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00009959 (exit $ac_status); } &&
9960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9961 { (case "(($ac_try" in
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9964esac
9965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_try") 2>&5
9967 ac_status=$?
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; } &&
9970 { ac_try='test -s conftest$ac_exeext'
9971 { (case "(($ac_try" in
9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 *) ac_try_echo=$ac_try;;
9974esac
9975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 (eval "$ac_try") 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009980 ac_cv_lib_dl_dlopen=yes
9981else
9982 echo "$as_me: failed program was:" >&5
9983sed 's/^/| /' conftest.$ac_ext >&5
9984
9985 ac_cv_lib_dl_dlopen=no
9986fi
9987
Tanya Lattner3fa4a442009-01-22 05:17:59 +00009988rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009989 conftest$ac_exeext conftest.$ac_ext
9990LIBS=$ac_check_lib_save_LIBS
9991fi
9992{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9993echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9994if test $ac_cv_lib_dl_dlopen = yes; then
9995
9996cat >>confdefs.h <<\_ACEOF
9997#define HAVE_LIBDL 1
9998_ACEOF
9999
10000 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10001else
10002 cat >conftest.$ac_ext <<_ACEOF
10003/* confdefs.h. */
10004_ACEOF
10005cat confdefs.h >>conftest.$ac_ext
10006cat >>conftest.$ac_ext <<_ACEOF
10007/* end confdefs.h. */
10008#if HAVE_DLFCN_H
10009# include <dlfcn.h>
10010#endif
10011
10012int
10013main ()
10014{
10015dlopen(0, 0);
10016 ;
10017 return 0;
10018}
10019_ACEOF
10020rm -f conftest.$ac_objext conftest$ac_exeext
10021if { (ac_try="$ac_link"
10022case "(($ac_try" in
10023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024 *) ac_try_echo=$ac_try;;
10025esac
10026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027 (eval "$ac_link") 2>conftest.er1
10028 ac_status=$?
10029 grep -v '^ *+' conftest.er1 >conftest.err
10030 rm -f conftest.er1
10031 cat conftest.err >&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010033 (exit $ac_status); } &&
10034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10035 { (case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10038esac
10039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_try") 2>&5
10041 ac_status=$?
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; } &&
10044 { ac_try='test -s conftest$ac_exeext'
10045 { (case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048esac
10049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_try") 2>&5
10051 ac_status=$?
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010054
10055cat >>confdefs.h <<\_ACEOF
10056#define HAVE_LIBDL 1
10057_ACEOF
10058 libltdl_cv_func_dlopen="yes"
10059else
10060 echo "$as_me: failed program was:" >&5
10061sed 's/^/| /' conftest.$ac_ext >&5
10062
10063 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10064echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10065if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10067else
10068 ac_check_lib_save_LIBS=$LIBS
10069LIBS="-lsvld $LIBS"
10070cat >conftest.$ac_ext <<_ACEOF
10071/* confdefs.h. */
10072_ACEOF
10073cat confdefs.h >>conftest.$ac_ext
10074cat >>conftest.$ac_ext <<_ACEOF
10075/* end confdefs.h. */
10076
10077/* Override any GCC internal prototype to avoid an error.
10078 Use char because int might match the return type of a GCC
10079 builtin and then its argument prototype would still apply. */
10080#ifdef __cplusplus
10081extern "C"
10082#endif
10083char dlopen ();
10084int
10085main ()
10086{
10087return dlopen ();
10088 ;
10089 return 0;
10090}
10091_ACEOF
10092rm -f conftest.$ac_objext conftest$ac_exeext
10093if { (ac_try="$ac_link"
10094case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10097esac
10098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_link") 2>conftest.er1
10100 ac_status=$?
10101 grep -v '^ *+' conftest.er1 >conftest.err
10102 rm -f conftest.er1
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010105 (exit $ac_status); } &&
10106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10107 { (case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10110esac
10111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_try") 2>&5
10113 ac_status=$?
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; } &&
10116 { ac_try='test -s conftest$ac_exeext'
10117 { (case "(($ac_try" in
10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10120esac
10121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_try") 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010126 ac_cv_lib_svld_dlopen=yes
10127else
10128 echo "$as_me: failed program was:" >&5
10129sed 's/^/| /' conftest.$ac_ext >&5
10130
10131 ac_cv_lib_svld_dlopen=no
10132fi
10133
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010134rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010135 conftest$ac_exeext conftest.$ac_ext
10136LIBS=$ac_check_lib_save_LIBS
10137fi
10138{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10139echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10140if test $ac_cv_lib_svld_dlopen = yes; then
10141
10142cat >>confdefs.h <<\_ACEOF
10143#define HAVE_LIBDL 1
10144_ACEOF
10145
10146 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10147else
10148 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10149echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10150if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10152else
10153 ac_check_lib_save_LIBS=$LIBS
10154LIBS="-ldld $LIBS"
10155cat >conftest.$ac_ext <<_ACEOF
10156/* confdefs.h. */
10157_ACEOF
10158cat confdefs.h >>conftest.$ac_ext
10159cat >>conftest.$ac_ext <<_ACEOF
10160/* end confdefs.h. */
10161
10162/* Override any GCC internal prototype to avoid an error.
10163 Use char because int might match the return type of a GCC
10164 builtin and then its argument prototype would still apply. */
10165#ifdef __cplusplus
10166extern "C"
10167#endif
10168char dld_link ();
10169int
10170main ()
10171{
10172return dld_link ();
10173 ;
10174 return 0;
10175}
10176_ACEOF
10177rm -f conftest.$ac_objext conftest$ac_exeext
10178if { (ac_try="$ac_link"
10179case "(($ac_try" in
10180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181 *) ac_try_echo=$ac_try;;
10182esac
10183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10184 (eval "$ac_link") 2>conftest.er1
10185 ac_status=$?
10186 grep -v '^ *+' conftest.er1 >conftest.err
10187 rm -f conftest.er1
10188 cat conftest.err >&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010190 (exit $ac_status); } &&
10191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10192 { (case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10195esac
10196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197 (eval "$ac_try") 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try='test -s conftest$ac_exeext'
10202 { (case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10205esac
10206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_try") 2>&5
10208 ac_status=$?
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010211 ac_cv_lib_dld_dld_link=yes
10212else
10213 echo "$as_me: failed program was:" >&5
10214sed 's/^/| /' conftest.$ac_ext >&5
10215
10216 ac_cv_lib_dld_dld_link=no
10217fi
10218
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010219rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010220 conftest$ac_exeext conftest.$ac_ext
10221LIBS=$ac_check_lib_save_LIBS
10222fi
10223{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10224echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10225if test $ac_cv_lib_dld_dld_link = yes; then
10226
10227cat >>confdefs.h <<\_ACEOF
10228#define HAVE_DLD 1
10229_ACEOF
10230
10231 LIBADD_DL="$LIBADD_DL -ldld"
10232else
10233 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10234echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10235if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10237else
10238 cat >conftest.$ac_ext <<_ACEOF
10239/* confdefs.h. */
10240_ACEOF
10241cat confdefs.h >>conftest.$ac_ext
10242cat >>conftest.$ac_ext <<_ACEOF
10243/* end confdefs.h. */
10244/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10246#define _dyld_func_lookup innocuous__dyld_func_lookup
10247
10248/* System header to define __stub macros and hopefully few prototypes,
10249 which can conflict with char _dyld_func_lookup (); below.
10250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10251 <limits.h> exists even on freestanding compilers. */
10252
10253#ifdef __STDC__
10254# include <limits.h>
10255#else
10256# include <assert.h>
10257#endif
10258
10259#undef _dyld_func_lookup
10260
10261/* Override any GCC internal prototype to avoid an error.
10262 Use char because int might match the return type of a GCC
10263 builtin and then its argument prototype would still apply. */
10264#ifdef __cplusplus
10265extern "C"
10266#endif
10267char _dyld_func_lookup ();
10268/* The GNU C library defines this for functions which it implements
10269 to always fail with ENOSYS. Some functions are actually named
10270 something starting with __ and the normal name is an alias. */
10271#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10272choke me
10273#endif
10274
10275int
10276main ()
10277{
10278return _dyld_func_lookup ();
10279 ;
10280 return 0;
10281}
10282_ACEOF
10283rm -f conftest.$ac_objext conftest$ac_exeext
10284if { (ac_try="$ac_link"
10285case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288esac
10289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_link") 2>conftest.er1
10291 ac_status=$?
10292 grep -v '^ *+' conftest.er1 >conftest.err
10293 rm -f conftest.er1
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010296 (exit $ac_status); } &&
10297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10298 { (case "(($ac_try" in
10299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300 *) ac_try_echo=$ac_try;;
10301esac
10302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10303 (eval "$ac_try") 2>&5
10304 ac_status=$?
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; } &&
10307 { ac_try='test -s conftest$ac_exeext'
10308 { (case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10311esac
10312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10313 (eval "$ac_try") 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010317 ac_cv_func__dyld_func_lookup=yes
10318else
10319 echo "$as_me: failed program was:" >&5
10320sed 's/^/| /' conftest.$ac_ext >&5
10321
10322 ac_cv_func__dyld_func_lookup=no
10323fi
10324
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010325rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010326 conftest$ac_exeext conftest.$ac_ext
10327fi
10328{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10329echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10330if test $ac_cv_func__dyld_func_lookup = yes; then
10331
10332cat >>confdefs.h <<\_ACEOF
10333#define HAVE_DYLD 1
10334_ACEOF
10335
10336fi
10337
10338
10339fi
10340
10341
10342fi
10343
10344
10345fi
10346
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010347rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010348 conftest$ac_exeext conftest.$ac_ext
10349
10350fi
10351
10352
10353fi
10354
10355
10356fi
10357
10358
10359if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10360then
10361 lt_save_LIBS="$LIBS"
10362 LIBS="$LIBS $LIBADD_DL"
10363
10364for ac_func in dlerror
10365do
10366as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10367{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10368echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10369if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10371else
10372 cat >conftest.$ac_ext <<_ACEOF
10373/* confdefs.h. */
10374_ACEOF
10375cat confdefs.h >>conftest.$ac_ext
10376cat >>conftest.$ac_ext <<_ACEOF
10377/* end confdefs.h. */
10378/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10380#define $ac_func innocuous_$ac_func
10381
10382/* System header to define __stub macros and hopefully few prototypes,
10383 which can conflict with char $ac_func (); below.
10384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10385 <limits.h> exists even on freestanding compilers. */
10386
10387#ifdef __STDC__
10388# include <limits.h>
10389#else
10390# include <assert.h>
10391#endif
10392
10393#undef $ac_func
10394
10395/* Override any GCC internal prototype to avoid an error.
10396 Use char because int might match the return type of a GCC
10397 builtin and then its argument prototype would still apply. */
10398#ifdef __cplusplus
10399extern "C"
10400#endif
10401char $ac_func ();
10402/* The GNU C library defines this for functions which it implements
10403 to always fail with ENOSYS. Some functions are actually named
10404 something starting with __ and the normal name is an alias. */
10405#if defined __stub_$ac_func || defined __stub___$ac_func
10406choke me
10407#endif
10408
10409int
10410main ()
10411{
10412return $ac_func ();
10413 ;
10414 return 0;
10415}
10416_ACEOF
10417rm -f conftest.$ac_objext conftest$ac_exeext
10418if { (ac_try="$ac_link"
10419case "(($ac_try" in
10420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421 *) ac_try_echo=$ac_try;;
10422esac
10423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_link") 2>conftest.er1
10425 ac_status=$?
10426 grep -v '^ *+' conftest.er1 >conftest.err
10427 rm -f conftest.er1
10428 cat conftest.err >&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010430 (exit $ac_status); } &&
10431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10432 { (case "(($ac_try" in
10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10435esac
10436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 (eval "$ac_try") 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; } &&
10441 { ac_try='test -s conftest$ac_exeext'
10442 { (case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10445esac
10446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447 (eval "$ac_try") 2>&5
10448 ac_status=$?
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010451 eval "$as_ac_var=yes"
10452else
10453 echo "$as_me: failed program was:" >&5
10454sed 's/^/| /' conftest.$ac_ext >&5
10455
10456 eval "$as_ac_var=no"
10457fi
10458
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010459rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010460 conftest$ac_exeext conftest.$ac_ext
10461fi
10462ac_res=`eval echo '${'$as_ac_var'}'`
10463 { echo "$as_me:$LINENO: result: $ac_res" >&5
10464echo "${ECHO_T}$ac_res" >&6; }
10465if test `eval echo '${'$as_ac_var'}'` = yes; then
10466 cat >>confdefs.h <<_ACEOF
10467#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10468_ACEOF
10469
10470fi
10471done
10472
10473 LIBS="$lt_save_LIBS"
10474fi
10475ac_ext=c
10476ac_cpp='$CPP $CPPFLAGS'
10477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10479ac_compiler_gnu=$ac_cv_c_compiler_gnu
10480
10481
10482
10483{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10484echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10485if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10487else
10488 ac_cv_sys_symbol_underscore=no
10489 cat > conftest.$ac_ext <<EOF
10490void nm_test_func(){}
10491int main(){nm_test_func;return 0;}
10492EOF
10493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10494 (eval $ac_compile) 2>&5
10495 ac_status=$?
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; then
10498 # Now try to grab the symbols.
10499 ac_nlist=conftest.nm
10500 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10501 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } && test -s "$ac_nlist"; then
10505 # See whether the symbols have a leading underscore.
10506 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10507 ac_cv_sys_symbol_underscore=yes
10508 else
10509 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10510 :
10511 else
10512 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10513 fi
10514 fi
10515 else
10516 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10517 fi
10518 else
10519 echo "configure: failed program was:" >&5
10520 cat conftest.c >&5
10521 fi
10522 rm -rf conftest*
10523
10524fi
10525{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10526echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10527
10528
10529if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10530 if test x"$libltdl_cv_func_dlopen" = xyes ||
10531 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10532 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10533echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10534if test "${libltdl_cv_need_uscore+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10536else
10537 libltdl_cv_need_uscore=unknown
10538 save_LIBS="$LIBS"
10539 LIBS="$LIBS $LIBADD_DL"
10540 if test "$cross_compiling" = yes; then :
10541 libltdl_cv_need_uscore=cross
10542else
10543 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10544 lt_status=$lt_dlunknown
10545 cat > conftest.$ac_ext <<EOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000010546#line 10546 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010547#include "confdefs.h"
10548
10549#if HAVE_DLFCN_H
10550#include <dlfcn.h>
10551#endif
10552
10553#include <stdio.h>
10554
10555#ifdef RTLD_GLOBAL
10556# define LT_DLGLOBAL RTLD_GLOBAL
10557#else
10558# ifdef DL_GLOBAL
10559# define LT_DLGLOBAL DL_GLOBAL
10560# else
10561# define LT_DLGLOBAL 0
10562# endif
10563#endif
10564
10565/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10566 find out it does not work in some platform. */
10567#ifndef LT_DLLAZY_OR_NOW
10568# ifdef RTLD_LAZY
10569# define LT_DLLAZY_OR_NOW RTLD_LAZY
10570# else
10571# ifdef DL_LAZY
10572# define LT_DLLAZY_OR_NOW DL_LAZY
10573# else
10574# ifdef RTLD_NOW
10575# define LT_DLLAZY_OR_NOW RTLD_NOW
10576# else
10577# ifdef DL_NOW
10578# define LT_DLLAZY_OR_NOW DL_NOW
10579# else
10580# define LT_DLLAZY_OR_NOW 0
10581# endif
10582# endif
10583# endif
10584# endif
10585#endif
10586
10587#ifdef __cplusplus
10588extern "C" void exit (int);
10589#endif
10590
10591void fnord() { int i=42;}
10592int main ()
10593{
10594 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10595 int status = $lt_dlunknown;
10596
10597 if (self)
10598 {
10599 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10600 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10601 /* dlclose (self); */
10602 }
10603 else
10604 puts (dlerror ());
10605
10606 exit (status);
10607}
10608EOF
10609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10610 (eval $ac_link) 2>&5
10611 ac_status=$?
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10614 (./conftest; exit; ) >&5 2>/dev/null
10615 lt_status=$?
10616 case x$lt_status in
10617 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10618 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10619 x$lt_dlunknown|x*) ;;
10620 esac
10621 else :
10622 # compilation failed
10623
10624 fi
10625fi
10626rm -fr conftest*
10627
10628 LIBS="$save_LIBS"
10629
10630fi
10631{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10632echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10633 fi
10634fi
10635
10636if test x"$libltdl_cv_need_uscore" = xyes; then
10637
10638cat >>confdefs.h <<\_ACEOF
10639#define NEED_USCORE 1
10640_ACEOF
10641
10642fi
10643
10644
10645{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10646echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10647if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10648 echo $ECHO_N "(cached) $ECHO_C" >&6
10649else
10650 # PORTME does your system automatically load deplibs for dlopen?
10651 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10652 # For now, we just catch OSes we know something about -- in the
10653 # future, we'll try test this programmatically.
10654 libltdl_cv_sys_dlopen_deplibs=unknown
10655 case "$host_os" in
10656 aix3*|aix4.1.*|aix4.2.*)
10657 # Unknown whether this is true for these versions of AIX, but
10658 # we want this `case' here to explicitly catch those versions.
10659 libltdl_cv_sys_dlopen_deplibs=unknown
10660 ;;
10661 aix[45]*)
10662 libltdl_cv_sys_dlopen_deplibs=yes
10663 ;;
10664 darwin*)
10665 # Assuming the user has installed a libdl from somewhere, this is true
10666 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10667 libltdl_cv_sys_dlopen_deplibs=yes
10668 ;;
10669 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10670 # GNU and its variants, using gnu ld.so (Glibc)
10671 libltdl_cv_sys_dlopen_deplibs=yes
10672 ;;
10673 hpux10*|hpux11*)
10674 libltdl_cv_sys_dlopen_deplibs=yes
10675 ;;
10676 interix*)
10677 libltdl_cv_sys_dlopen_deplibs=yes
10678 ;;
10679 irix[12345]*|irix6.[01]*)
10680 # Catch all versions of IRIX before 6.2, and indicate that we don't
10681 # know how it worked for any of those versions.
10682 libltdl_cv_sys_dlopen_deplibs=unknown
10683 ;;
10684 irix*)
10685 # The case above catches anything before 6.2, and it's known that
10686 # at 6.2 and later dlopen does load deplibs.
10687 libltdl_cv_sys_dlopen_deplibs=yes
10688 ;;
10689 netbsd*)
10690 libltdl_cv_sys_dlopen_deplibs=yes
10691 ;;
10692 openbsd*)
10693 libltdl_cv_sys_dlopen_deplibs=yes
10694 ;;
10695 osf[1234]*)
10696 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10697 # it did *not* use an RPATH in a shared library to find objects the
10698 # library depends on, so we explictly say `no'.
10699 libltdl_cv_sys_dlopen_deplibs=no
10700 ;;
10701 osf5.0|osf5.0a|osf5.1)
10702 # dlopen *does* load deplibs and with the right loader patch applied
10703 # it even uses RPATH in a shared library to search for shared objects
10704 # that the library depends on, but there's no easy way to know if that
10705 # patch is installed. Since this is the case, all we can really
10706 # say is unknown -- it depends on the patch being installed. If
10707 # it is, this changes to `yes'. Without it, it would be `no'.
10708 libltdl_cv_sys_dlopen_deplibs=unknown
10709 ;;
10710 osf*)
10711 # the two cases above should catch all versions of osf <= 5.1. Read
10712 # the comments above for what we know about them.
10713 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10714 # is used to find them so we can finally say `yes'.
10715 libltdl_cv_sys_dlopen_deplibs=yes
10716 ;;
10717 solaris*)
10718 libltdl_cv_sys_dlopen_deplibs=yes
10719 ;;
10720 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10721 libltdl_cv_sys_dlopen_deplibs=yes
10722 ;;
10723 esac
10724
10725fi
10726{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10727echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10728if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10729
10730cat >>confdefs.h <<\_ACEOF
10731#define LTDL_DLOPEN_DEPLIBS 1
10732_ACEOF
10733
10734fi
10735
10736
10737for ac_header in argz.h
10738do
10739as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10740if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10745fi
10746ac_res=`eval echo '${'$as_ac_Header'}'`
10747 { echo "$as_me:$LINENO: result: $ac_res" >&5
10748echo "${ECHO_T}$ac_res" >&6; }
10749else
10750 # Is the header compilable?
10751{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10752echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10753cat >conftest.$ac_ext <<_ACEOF
10754/* confdefs.h. */
10755_ACEOF
10756cat confdefs.h >>conftest.$ac_ext
10757cat >>conftest.$ac_ext <<_ACEOF
10758/* end confdefs.h. */
10759$ac_includes_default
10760#include <$ac_header>
10761_ACEOF
10762rm -f conftest.$ac_objext
10763if { (ac_try="$ac_compile"
10764case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10767esac
10768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_compile") 2>conftest.er1
10770 ac_status=$?
10771 grep -v '^ *+' conftest.er1 >conftest.err
10772 rm -f conftest.er1
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010775 (exit $ac_status); } &&
10776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10777 { (case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10780esac
10781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_try") 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; } &&
10786 { ac_try='test -s conftest.$ac_objext'
10787 { (case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10790esac
10791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_try") 2>&5
10793 ac_status=$?
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010796 ac_header_compiler=yes
10797else
10798 echo "$as_me: failed program was:" >&5
10799sed 's/^/| /' conftest.$ac_ext >&5
10800
10801 ac_header_compiler=no
10802fi
10803
10804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10805{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10806echo "${ECHO_T}$ac_header_compiler" >&6; }
10807
10808# Is the header present?
10809{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10810echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10811cat >conftest.$ac_ext <<_ACEOF
10812/* confdefs.h. */
10813_ACEOF
10814cat confdefs.h >>conftest.$ac_ext
10815cat >>conftest.$ac_ext <<_ACEOF
10816/* end confdefs.h. */
10817#include <$ac_header>
10818_ACEOF
10819if { (ac_try="$ac_cpp conftest.$ac_ext"
10820case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10823esac
10824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10826 ac_status=$?
10827 grep -v '^ *+' conftest.er1 >conftest.err
10828 rm -f conftest.er1
10829 cat conftest.err >&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010831 (exit $ac_status); } >/dev/null; then
10832 if test -s conftest.err; then
10833 ac_cpp_err=$ac_c_preproc_warn_flag
10834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10835 else
10836 ac_cpp_err=
10837 fi
10838else
10839 ac_cpp_err=yes
10840fi
10841if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010842 ac_header_preproc=yes
10843else
10844 echo "$as_me: failed program was:" >&5
10845sed 's/^/| /' conftest.$ac_ext >&5
10846
10847 ac_header_preproc=no
10848fi
10849
10850rm -f conftest.err conftest.$ac_ext
10851{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10852echo "${ECHO_T}$ac_header_preproc" >&6; }
10853
10854# So? What about this header?
10855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10856 yes:no: )
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10858echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10860echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10861 ac_header_preproc=yes
10862 ;;
10863 no:yes:* )
10864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10865echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10867echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10869echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10871echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10873echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10875echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10876 ( cat <<\_ASBOX
10877## ----------------------------------- ##
10878## Report this to llvmbugs@cs.uiuc.edu ##
10879## ----------------------------------- ##
10880_ASBOX
10881 ) | sed "s/^/$as_me: WARNING: /" >&2
10882 ;;
10883esac
10884{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10886if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10887 echo $ECHO_N "(cached) $ECHO_C" >&6
10888else
10889 eval "$as_ac_Header=\$ac_header_preproc"
10890fi
10891ac_res=`eval echo '${'$as_ac_Header'}'`
10892 { echo "$as_me:$LINENO: result: $ac_res" >&5
10893echo "${ECHO_T}$ac_res" >&6; }
10894
10895fi
10896if test `eval echo '${'$as_ac_Header'}'` = yes; then
10897 cat >>confdefs.h <<_ACEOF
10898#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10899_ACEOF
10900
10901fi
10902
10903done
10904
10905
10906{ echo "$as_me:$LINENO: checking for error_t" >&5
10907echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10908if test "${ac_cv_type_error_t+set}" = set; then
10909 echo $ECHO_N "(cached) $ECHO_C" >&6
10910else
10911 cat >conftest.$ac_ext <<_ACEOF
10912/* confdefs.h. */
10913_ACEOF
10914cat confdefs.h >>conftest.$ac_ext
10915cat >>conftest.$ac_ext <<_ACEOF
10916/* end confdefs.h. */
10917#if HAVE_ARGZ_H
10918# include <argz.h>
10919#endif
10920
10921typedef error_t ac__type_new_;
10922int
10923main ()
10924{
10925if ((ac__type_new_ *) 0)
10926 return 0;
10927if (sizeof (ac__type_new_))
10928 return 0;
10929 ;
10930 return 0;
10931}
10932_ACEOF
10933rm -f conftest.$ac_objext
10934if { (ac_try="$ac_compile"
10935case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10938esac
10939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940 (eval "$ac_compile") 2>conftest.er1
10941 ac_status=$?
10942 grep -v '^ *+' conftest.er1 >conftest.err
10943 rm -f conftest.er1
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010946 (exit $ac_status); } &&
10947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10948 { (case "(($ac_try" in
10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10951esac
10952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_try") 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; } &&
10957 { ac_try='test -s conftest.$ac_objext'
10958 { (case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10961esac
10962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_try") 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010967 ac_cv_type_error_t=yes
10968else
10969 echo "$as_me: failed program was:" >&5
10970sed 's/^/| /' conftest.$ac_ext >&5
10971
10972 ac_cv_type_error_t=no
10973fi
10974
10975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10976fi
10977{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10978echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10979if test $ac_cv_type_error_t = yes; then
10980
10981cat >>confdefs.h <<_ACEOF
10982#define HAVE_ERROR_T 1
10983_ACEOF
10984
10985
10986else
10987
10988cat >>confdefs.h <<\_ACEOF
10989#define error_t int
10990_ACEOF
10991
10992fi
10993
10994
10995
10996
10997
10998
10999
11000for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11001do
11002as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11003{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11004echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11005if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11007else
11008 cat >conftest.$ac_ext <<_ACEOF
11009/* confdefs.h. */
11010_ACEOF
11011cat confdefs.h >>conftest.$ac_ext
11012cat >>conftest.$ac_ext <<_ACEOF
11013/* end confdefs.h. */
11014/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11016#define $ac_func innocuous_$ac_func
11017
11018/* System header to define __stub macros and hopefully few prototypes,
11019 which can conflict with char $ac_func (); below.
11020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11021 <limits.h> exists even on freestanding compilers. */
11022
11023#ifdef __STDC__
11024# include <limits.h>
11025#else
11026# include <assert.h>
11027#endif
11028
11029#undef $ac_func
11030
11031/* Override any GCC internal prototype to avoid an error.
11032 Use char because int might match the return type of a GCC
11033 builtin and then its argument prototype would still apply. */
11034#ifdef __cplusplus
11035extern "C"
11036#endif
11037char $ac_func ();
11038/* The GNU C library defines this for functions which it implements
11039 to always fail with ENOSYS. Some functions are actually named
11040 something starting with __ and the normal name is an alias. */
11041#if defined __stub_$ac_func || defined __stub___$ac_func
11042choke me
11043#endif
11044
11045int
11046main ()
11047{
11048return $ac_func ();
11049 ;
11050 return 0;
11051}
11052_ACEOF
11053rm -f conftest.$ac_objext conftest$ac_exeext
11054if { (ac_try="$ac_link"
11055case "(($ac_try" in
11056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057 *) ac_try_echo=$ac_try;;
11058esac
11059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11060 (eval "$ac_link") 2>conftest.er1
11061 ac_status=$?
11062 grep -v '^ *+' conftest.er1 >conftest.err
11063 rm -f conftest.er1
11064 cat conftest.err >&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011066 (exit $ac_status); } &&
11067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11068 { (case "(($ac_try" in
11069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11070 *) ac_try_echo=$ac_try;;
11071esac
11072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11073 (eval "$ac_try") 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; } &&
11077 { ac_try='test -s conftest$ac_exeext'
11078 { (case "(($ac_try" in
11079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080 *) ac_try_echo=$ac_try;;
11081esac
11082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083 (eval "$ac_try") 2>&5
11084 ac_status=$?
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011087 eval "$as_ac_var=yes"
11088else
11089 echo "$as_me: failed program was:" >&5
11090sed 's/^/| /' conftest.$ac_ext >&5
11091
11092 eval "$as_ac_var=no"
11093fi
11094
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011095rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011096 conftest$ac_exeext conftest.$ac_ext
11097fi
11098ac_res=`eval echo '${'$as_ac_var'}'`
11099 { echo "$as_me:$LINENO: result: $ac_res" >&5
11100echo "${ECHO_T}$ac_res" >&6; }
11101if test `eval echo '${'$as_ac_var'}'` = yes; then
11102 cat >>confdefs.h <<_ACEOF
11103#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11104_ACEOF
11105
11106fi
11107done
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11137 stdio.h unistd.h
11138do
11139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11141 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11143if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11145fi
11146ac_res=`eval echo '${'$as_ac_Header'}'`
11147 { echo "$as_me:$LINENO: result: $ac_res" >&5
11148echo "${ECHO_T}$ac_res" >&6; }
11149else
11150 # Is the header compilable?
11151{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11152echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11153cat >conftest.$ac_ext <<_ACEOF
11154/* confdefs.h. */
11155_ACEOF
11156cat confdefs.h >>conftest.$ac_ext
11157cat >>conftest.$ac_ext <<_ACEOF
11158/* end confdefs.h. */
11159$ac_includes_default
11160#include <$ac_header>
11161_ACEOF
11162rm -f conftest.$ac_objext
11163if { (ac_try="$ac_compile"
11164case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11167esac
11168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_compile") 2>conftest.er1
11170 ac_status=$?
11171 grep -v '^ *+' conftest.er1 >conftest.err
11172 rm -f conftest.er1
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011175 (exit $ac_status); } &&
11176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11177 { (case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11180esac
11181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_try") 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try='test -s conftest.$ac_objext'
11187 { (case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11190esac
11191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192 (eval "$ac_try") 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011196 ac_header_compiler=yes
11197else
11198 echo "$as_me: failed program was:" >&5
11199sed 's/^/| /' conftest.$ac_ext >&5
11200
11201 ac_header_compiler=no
11202fi
11203
11204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11205{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11206echo "${ECHO_T}$ac_header_compiler" >&6; }
11207
11208# Is the header present?
11209{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11210echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11211cat >conftest.$ac_ext <<_ACEOF
11212/* confdefs.h. */
11213_ACEOF
11214cat confdefs.h >>conftest.$ac_ext
11215cat >>conftest.$ac_ext <<_ACEOF
11216/* end confdefs.h. */
11217#include <$ac_header>
11218_ACEOF
11219if { (ac_try="$ac_cpp conftest.$ac_ext"
11220case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11223esac
11224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11226 ac_status=$?
11227 grep -v '^ *+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011231 (exit $ac_status); } >/dev/null; then
11232 if test -s conftest.err; then
11233 ac_cpp_err=$ac_c_preproc_warn_flag
11234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11235 else
11236 ac_cpp_err=
11237 fi
11238else
11239 ac_cpp_err=yes
11240fi
11241if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011242 ac_header_preproc=yes
11243else
11244 echo "$as_me: failed program was:" >&5
11245sed 's/^/| /' conftest.$ac_ext >&5
11246
11247 ac_header_preproc=no
11248fi
11249
11250rm -f conftest.err conftest.$ac_ext
11251{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11252echo "${ECHO_T}$ac_header_preproc" >&6; }
11253
11254# So? What about this header?
11255case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11256 yes:no: )
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11258echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11260echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11261 ac_header_preproc=yes
11262 ;;
11263 no:yes:* )
11264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11265echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11267echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11269echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11271echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11273echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11275echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11276 ( cat <<\_ASBOX
11277## ----------------------------------- ##
11278## Report this to llvmbugs@cs.uiuc.edu ##
11279## ----------------------------------- ##
11280_ASBOX
11281 ) | sed "s/^/$as_me: WARNING: /" >&2
11282 ;;
11283esac
11284{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11286if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11288else
11289 eval "$as_ac_Header=\$ac_header_preproc"
11290fi
11291ac_res=`eval echo '${'$as_ac_Header'}'`
11292 { echo "$as_me:$LINENO: result: $ac_res" >&5
11293echo "${ECHO_T}$ac_res" >&6; }
11294
11295fi
11296if test `eval echo '${'$as_ac_Header'}'` = yes; then
11297 cat >>confdefs.h <<_ACEOF
11298#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11299_ACEOF
11300
11301fi
11302
11303done
11304
11305
11306
11307
11308
11309for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11310do
11311as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11314echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11317fi
11318ac_res=`eval echo '${'$as_ac_Header'}'`
11319 { echo "$as_me:$LINENO: result: $ac_res" >&5
11320echo "${ECHO_T}$ac_res" >&6; }
11321else
11322 # Is the header compilable?
11323{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11324echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11325cat >conftest.$ac_ext <<_ACEOF
11326/* confdefs.h. */
11327_ACEOF
11328cat confdefs.h >>conftest.$ac_ext
11329cat >>conftest.$ac_ext <<_ACEOF
11330/* end confdefs.h. */
11331$ac_includes_default
11332#include <$ac_header>
11333_ACEOF
11334rm -f conftest.$ac_objext
11335if { (ac_try="$ac_compile"
11336case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11339esac
11340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_compile") 2>conftest.er1
11342 ac_status=$?
11343 grep -v '^ *+' conftest.er1 >conftest.err
11344 rm -f conftest.er1
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011347 (exit $ac_status); } &&
11348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11349 { (case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11352esac
11353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_try") 2>&5
11355 ac_status=$?
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }; } &&
11358 { ac_try='test -s conftest.$ac_objext'
11359 { (case "(($ac_try" in
11360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11361 *) ac_try_echo=$ac_try;;
11362esac
11363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11364 (eval "$ac_try") 2>&5
11365 ac_status=$?
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011368 ac_header_compiler=yes
11369else
11370 echo "$as_me: failed program was:" >&5
11371sed 's/^/| /' conftest.$ac_ext >&5
11372
11373 ac_header_compiler=no
11374fi
11375
11376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11377{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11378echo "${ECHO_T}$ac_header_compiler" >&6; }
11379
11380# Is the header present?
11381{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11382echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11383cat >conftest.$ac_ext <<_ACEOF
11384/* confdefs.h. */
11385_ACEOF
11386cat confdefs.h >>conftest.$ac_ext
11387cat >>conftest.$ac_ext <<_ACEOF
11388/* end confdefs.h. */
11389#include <$ac_header>
11390_ACEOF
11391if { (ac_try="$ac_cpp conftest.$ac_ext"
11392case "(($ac_try" in
11393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394 *) ac_try_echo=$ac_try;;
11395esac
11396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11398 ac_status=$?
11399 grep -v '^ *+' conftest.er1 >conftest.err
11400 rm -f conftest.er1
11401 cat conftest.err >&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011403 (exit $ac_status); } >/dev/null; then
11404 if test -s conftest.err; then
11405 ac_cpp_err=$ac_c_preproc_warn_flag
11406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11407 else
11408 ac_cpp_err=
11409 fi
11410else
11411 ac_cpp_err=yes
11412fi
11413if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011414 ac_header_preproc=yes
11415else
11416 echo "$as_me: failed program was:" >&5
11417sed 's/^/| /' conftest.$ac_ext >&5
11418
11419 ac_header_preproc=no
11420fi
11421
11422rm -f conftest.err conftest.$ac_ext
11423{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11424echo "${ECHO_T}$ac_header_preproc" >&6; }
11425
11426# So? What about this header?
11427case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11428 yes:no: )
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11430echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11432echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11433 ac_header_preproc=yes
11434 ;;
11435 no:yes:* )
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11437echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11439echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11441echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11443echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11445echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11447echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11448 ( cat <<\_ASBOX
11449## ----------------------------------- ##
11450## Report this to llvmbugs@cs.uiuc.edu ##
11451## ----------------------------------- ##
11452_ASBOX
11453 ) | sed "s/^/$as_me: WARNING: /" >&2
11454 ;;
11455esac
11456{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11460else
11461 eval "$as_ac_Header=\$ac_header_preproc"
11462fi
11463ac_res=`eval echo '${'$as_ac_Header'}'`
11464 { echo "$as_me:$LINENO: result: $ac_res" >&5
11465echo "${ECHO_T}$ac_res" >&6; }
11466
11467fi
11468if test `eval echo '${'$as_ac_Header'}'` = yes; then
11469 cat >>confdefs.h <<_ACEOF
11470#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11471_ACEOF
11472
11473fi
11474
11475done
11476
11477
11478
11479for ac_header in string.h strings.h
11480do
11481as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11485if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11487fi
11488ac_res=`eval echo '${'$as_ac_Header'}'`
11489 { echo "$as_me:$LINENO: result: $ac_res" >&5
11490echo "${ECHO_T}$ac_res" >&6; }
11491else
11492 # Is the header compilable?
11493{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11494echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11495cat >conftest.$ac_ext <<_ACEOF
11496/* confdefs.h. */
11497_ACEOF
11498cat confdefs.h >>conftest.$ac_ext
11499cat >>conftest.$ac_ext <<_ACEOF
11500/* end confdefs.h. */
11501$ac_includes_default
11502#include <$ac_header>
11503_ACEOF
11504rm -f conftest.$ac_objext
11505if { (ac_try="$ac_compile"
11506case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11509esac
11510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_compile") 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011517 (exit $ac_status); } &&
11518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11519 { (case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11522esac
11523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_try") 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; } &&
11528 { ac_try='test -s conftest.$ac_objext'
11529 { (case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11532esac
11533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_try") 2>&5
11535 ac_status=$?
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011538 ac_header_compiler=yes
11539else
11540 echo "$as_me: failed program was:" >&5
11541sed 's/^/| /' conftest.$ac_ext >&5
11542
11543 ac_header_compiler=no
11544fi
11545
11546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11547{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11548echo "${ECHO_T}$ac_header_compiler" >&6; }
11549
11550# Is the header present?
11551{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11552echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11553cat >conftest.$ac_ext <<_ACEOF
11554/* confdefs.h. */
11555_ACEOF
11556cat confdefs.h >>conftest.$ac_ext
11557cat >>conftest.$ac_ext <<_ACEOF
11558/* end confdefs.h. */
11559#include <$ac_header>
11560_ACEOF
11561if { (ac_try="$ac_cpp conftest.$ac_ext"
11562case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11565esac
11566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011573 (exit $ac_status); } >/dev/null; then
11574 if test -s conftest.err; then
11575 ac_cpp_err=$ac_c_preproc_warn_flag
11576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11577 else
11578 ac_cpp_err=
11579 fi
11580else
11581 ac_cpp_err=yes
11582fi
11583if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011584 ac_header_preproc=yes
11585else
11586 echo "$as_me: failed program was:" >&5
11587sed 's/^/| /' conftest.$ac_ext >&5
11588
11589 ac_header_preproc=no
11590fi
11591
11592rm -f conftest.err conftest.$ac_ext
11593{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11594echo "${ECHO_T}$ac_header_preproc" >&6; }
11595
11596# So? What about this header?
11597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11598 yes:no: )
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11600echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11602echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11603 ac_header_preproc=yes
11604 ;;
11605 no:yes:* )
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11607echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11609echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11611echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11613echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11615echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11617echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11618 ( cat <<\_ASBOX
11619## ----------------------------------- ##
11620## Report this to llvmbugs@cs.uiuc.edu ##
11621## ----------------------------------- ##
11622_ASBOX
11623 ) | sed "s/^/$as_me: WARNING: /" >&2
11624 ;;
11625esac
11626{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11630else
11631 eval "$as_ac_Header=\$ac_header_preproc"
11632fi
11633ac_res=`eval echo '${'$as_ac_Header'}'`
11634 { echo "$as_me:$LINENO: result: $ac_res" >&5
11635echo "${ECHO_T}$ac_res" >&6; }
11636
11637fi
11638if test `eval echo '${'$as_ac_Header'}'` = yes; then
11639 cat >>confdefs.h <<_ACEOF
11640#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11641_ACEOF
11642 break
11643fi
11644
11645done
11646
11647
11648
11649
11650for ac_func in strchr index
11651do
11652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11653{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11655if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11657else
11658 cat >conftest.$ac_ext <<_ACEOF
11659/* confdefs.h. */
11660_ACEOF
11661cat confdefs.h >>conftest.$ac_ext
11662cat >>conftest.$ac_ext <<_ACEOF
11663/* end confdefs.h. */
11664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11666#define $ac_func innocuous_$ac_func
11667
11668/* System header to define __stub macros and hopefully few prototypes,
11669 which can conflict with char $ac_func (); below.
11670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671 <limits.h> exists even on freestanding compilers. */
11672
11673#ifdef __STDC__
11674# include <limits.h>
11675#else
11676# include <assert.h>
11677#endif
11678
11679#undef $ac_func
11680
11681/* Override any GCC internal prototype to avoid an error.
11682 Use char because int might match the return type of a GCC
11683 builtin and then its argument prototype would still apply. */
11684#ifdef __cplusplus
11685extern "C"
11686#endif
11687char $ac_func ();
11688/* The GNU C library defines this for functions which it implements
11689 to always fail with ENOSYS. Some functions are actually named
11690 something starting with __ and the normal name is an alias. */
11691#if defined __stub_$ac_func || defined __stub___$ac_func
11692choke me
11693#endif
11694
11695int
11696main ()
11697{
11698return $ac_func ();
11699 ;
11700 return 0;
11701}
11702_ACEOF
11703rm -f conftest.$ac_objext conftest$ac_exeext
11704if { (ac_try="$ac_link"
11705case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11708esac
11709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_link") 2>conftest.er1
11711 ac_status=$?
11712 grep -v '^ *+' conftest.er1 >conftest.err
11713 rm -f conftest.er1
11714 cat conftest.err >&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011716 (exit $ac_status); } &&
11717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11718 { (case "(($ac_try" in
11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720 *) ac_try_echo=$ac_try;;
11721esac
11722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723 (eval "$ac_try") 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; } &&
11727 { ac_try='test -s conftest$ac_exeext'
11728 { (case "(($ac_try" in
11729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730 *) ac_try_echo=$ac_try;;
11731esac
11732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733 (eval "$ac_try") 2>&5
11734 ac_status=$?
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011737 eval "$as_ac_var=yes"
11738else
11739 echo "$as_me: failed program was:" >&5
11740sed 's/^/| /' conftest.$ac_ext >&5
11741
11742 eval "$as_ac_var=no"
11743fi
11744
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011745rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011746 conftest$ac_exeext conftest.$ac_ext
11747fi
11748ac_res=`eval echo '${'$as_ac_var'}'`
11749 { echo "$as_me:$LINENO: result: $ac_res" >&5
11750echo "${ECHO_T}$ac_res" >&6; }
11751if test `eval echo '${'$as_ac_var'}'` = yes; then
11752 cat >>confdefs.h <<_ACEOF
11753#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11754_ACEOF
11755 break
11756fi
11757done
11758
11759
11760
11761for ac_func in strrchr rindex
11762do
11763as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11764{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11765echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11766if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11768else
11769 cat >conftest.$ac_ext <<_ACEOF
11770/* confdefs.h. */
11771_ACEOF
11772cat confdefs.h >>conftest.$ac_ext
11773cat >>conftest.$ac_ext <<_ACEOF
11774/* end confdefs.h. */
11775/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11777#define $ac_func innocuous_$ac_func
11778
11779/* System header to define __stub macros and hopefully few prototypes,
11780 which can conflict with char $ac_func (); below.
11781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11782 <limits.h> exists even on freestanding compilers. */
11783
11784#ifdef __STDC__
11785# include <limits.h>
11786#else
11787# include <assert.h>
11788#endif
11789
11790#undef $ac_func
11791
11792/* Override any GCC internal prototype to avoid an error.
11793 Use char because int might match the return type of a GCC
11794 builtin and then its argument prototype would still apply. */
11795#ifdef __cplusplus
11796extern "C"
11797#endif
11798char $ac_func ();
11799/* The GNU C library defines this for functions which it implements
11800 to always fail with ENOSYS. Some functions are actually named
11801 something starting with __ and the normal name is an alias. */
11802#if defined __stub_$ac_func || defined __stub___$ac_func
11803choke me
11804#endif
11805
11806int
11807main ()
11808{
11809return $ac_func ();
11810 ;
11811 return 0;
11812}
11813_ACEOF
11814rm -f conftest.$ac_objext conftest$ac_exeext
11815if { (ac_try="$ac_link"
11816case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11819esac
11820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_link") 2>conftest.er1
11822 ac_status=$?
11823 grep -v '^ *+' conftest.er1 >conftest.err
11824 rm -f conftest.er1
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011827 (exit $ac_status); } &&
11828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11829 { (case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11832esac
11833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_try") 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; } &&
11838 { ac_try='test -s conftest$ac_exeext'
11839 { (case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11842esac
11843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844 (eval "$ac_try") 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011848 eval "$as_ac_var=yes"
11849else
11850 echo "$as_me: failed program was:" >&5
11851sed 's/^/| /' conftest.$ac_ext >&5
11852
11853 eval "$as_ac_var=no"
11854fi
11855
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011856rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011857 conftest$ac_exeext conftest.$ac_ext
11858fi
11859ac_res=`eval echo '${'$as_ac_var'}'`
11860 { echo "$as_me:$LINENO: result: $ac_res" >&5
11861echo "${ECHO_T}$ac_res" >&6; }
11862if test `eval echo '${'$as_ac_var'}'` = yes; then
11863 cat >>confdefs.h <<_ACEOF
11864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11865_ACEOF
11866 break
11867fi
11868done
11869
11870
11871
11872for ac_func in memcpy bcopy
11873do
11874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11875{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11877if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11878 echo $ECHO_N "(cached) $ECHO_C" >&6
11879else
11880 cat >conftest.$ac_ext <<_ACEOF
11881/* confdefs.h. */
11882_ACEOF
11883cat confdefs.h >>conftest.$ac_ext
11884cat >>conftest.$ac_ext <<_ACEOF
11885/* end confdefs.h. */
11886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11888#define $ac_func innocuous_$ac_func
11889
11890/* System header to define __stub macros and hopefully few prototypes,
11891 which can conflict with char $ac_func (); below.
11892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11893 <limits.h> exists even on freestanding compilers. */
11894
11895#ifdef __STDC__
11896# include <limits.h>
11897#else
11898# include <assert.h>
11899#endif
11900
11901#undef $ac_func
11902
11903/* Override any GCC internal prototype to avoid an error.
11904 Use char because int might match the return type of a GCC
11905 builtin and then its argument prototype would still apply. */
11906#ifdef __cplusplus
11907extern "C"
11908#endif
11909char $ac_func ();
11910/* The GNU C library defines this for functions which it implements
11911 to always fail with ENOSYS. Some functions are actually named
11912 something starting with __ and the normal name is an alias. */
11913#if defined __stub_$ac_func || defined __stub___$ac_func
11914choke me
11915#endif
11916
11917int
11918main ()
11919{
11920return $ac_func ();
11921 ;
11922 return 0;
11923}
11924_ACEOF
11925rm -f conftest.$ac_objext conftest$ac_exeext
11926if { (ac_try="$ac_link"
11927case "(($ac_try" in
11928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929 *) ac_try_echo=$ac_try;;
11930esac
11931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932 (eval "$ac_link") 2>conftest.er1
11933 ac_status=$?
11934 grep -v '^ *+' conftest.er1 >conftest.err
11935 rm -f conftest.er1
11936 cat conftest.err >&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011938 (exit $ac_status); } &&
11939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11940 { (case "(($ac_try" in
11941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942 *) ac_try_echo=$ac_try;;
11943esac
11944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11945 (eval "$ac_try") 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; } &&
11949 { ac_try='test -s conftest$ac_exeext'
11950 { (case "(($ac_try" in
11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952 *) ac_try_echo=$ac_try;;
11953esac
11954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955 (eval "$ac_try") 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011959 eval "$as_ac_var=yes"
11960else
11961 echo "$as_me: failed program was:" >&5
11962sed 's/^/| /' conftest.$ac_ext >&5
11963
11964 eval "$as_ac_var=no"
11965fi
11966
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011967rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011968 conftest$ac_exeext conftest.$ac_ext
11969fi
11970ac_res=`eval echo '${'$as_ac_var'}'`
11971 { echo "$as_me:$LINENO: result: $ac_res" >&5
11972echo "${ECHO_T}$ac_res" >&6; }
11973if test `eval echo '${'$as_ac_var'}'` = yes; then
11974 cat >>confdefs.h <<_ACEOF
11975#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11976_ACEOF
11977 break
11978fi
11979done
11980
11981
11982
11983for ac_func in memmove strcmp
11984do
11985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11986{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11988if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11989 echo $ECHO_N "(cached) $ECHO_C" >&6
11990else
11991 cat >conftest.$ac_ext <<_ACEOF
11992/* confdefs.h. */
11993_ACEOF
11994cat confdefs.h >>conftest.$ac_ext
11995cat >>conftest.$ac_ext <<_ACEOF
11996/* end confdefs.h. */
11997/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11999#define $ac_func innocuous_$ac_func
12000
12001/* System header to define __stub macros and hopefully few prototypes,
12002 which can conflict with char $ac_func (); below.
12003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12004 <limits.h> exists even on freestanding compilers. */
12005
12006#ifdef __STDC__
12007# include <limits.h>
12008#else
12009# include <assert.h>
12010#endif
12011
12012#undef $ac_func
12013
12014/* Override any GCC internal prototype to avoid an error.
12015 Use char because int might match the return type of a GCC
12016 builtin and then its argument prototype would still apply. */
12017#ifdef __cplusplus
12018extern "C"
12019#endif
12020char $ac_func ();
12021/* The GNU C library defines this for functions which it implements
12022 to always fail with ENOSYS. Some functions are actually named
12023 something starting with __ and the normal name is an alias. */
12024#if defined __stub_$ac_func || defined __stub___$ac_func
12025choke me
12026#endif
12027
12028int
12029main ()
12030{
12031return $ac_func ();
12032 ;
12033 return 0;
12034}
12035_ACEOF
12036rm -f conftest.$ac_objext conftest$ac_exeext
12037if { (ac_try="$ac_link"
12038case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12041esac
12042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_link") 2>conftest.er1
12044 ac_status=$?
12045 grep -v '^ *+' conftest.er1 >conftest.err
12046 rm -f conftest.er1
12047 cat conftest.err >&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000012049 (exit $ac_status); } &&
12050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12051 { (case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12054esac
12055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_try") 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; } &&
12060 { ac_try='test -s conftest$ac_exeext'
12061 { (case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12064esac
12065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_try") 2>&5
12067 ac_status=$?
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012070 eval "$as_ac_var=yes"
12071else
12072 echo "$as_me: failed program was:" >&5
12073sed 's/^/| /' conftest.$ac_ext >&5
12074
12075 eval "$as_ac_var=no"
12076fi
12077
Tanya Lattner3fa4a442009-01-22 05:17:59 +000012078rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012079 conftest$ac_exeext conftest.$ac_ext
12080fi
12081ac_res=`eval echo '${'$as_ac_var'}'`
12082 { echo "$as_me:$LINENO: result: $ac_res" >&5
12083echo "${ECHO_T}$ac_res" >&6; }
12084if test `eval echo '${'$as_ac_var'}'` = yes; then
12085 cat >>confdefs.h <<_ACEOF
12086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12087_ACEOF
12088
12089fi
12090done
12091
12092
12093
12094
12095for ac_func in closedir opendir readdir
12096do
12097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12098{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12100if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12102else
12103 cat >conftest.$ac_ext <<_ACEOF
12104/* confdefs.h. */
12105_ACEOF
12106cat confdefs.h >>conftest.$ac_ext
12107cat >>conftest.$ac_ext <<_ACEOF
12108/* end confdefs.h. */
12109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12111#define $ac_func innocuous_$ac_func
12112
12113/* System header to define __stub macros and hopefully few prototypes,
12114 which can conflict with char $ac_func (); below.
12115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12116 <limits.h> exists even on freestanding compilers. */
12117
12118#ifdef __STDC__
12119# include <limits.h>
12120#else
12121# include <assert.h>
12122#endif
12123
12124#undef $ac_func
12125
12126/* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
12129#ifdef __cplusplus
12130extern "C"
12131#endif
12132char $ac_func ();
12133/* The GNU C library defines this for functions which it implements
12134 to always fail with ENOSYS. Some functions are actually named
12135 something starting with __ and the normal name is an alias. */
12136#if defined __stub_$ac_func || defined __stub___$ac_func
12137choke me
12138#endif
12139
12140int
12141main ()
12142{
12143return $ac_func ();
12144 ;
12145 return 0;
12146}
12147_ACEOF
12148rm -f conftest.$ac_objext conftest$ac_exeext
12149if { (ac_try="$ac_link"
12150case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12153esac
12154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155 (eval "$ac_link") 2>conftest.er1
12156 ac_status=$?
12157 grep -v '^ *+' conftest.er1 >conftest.err
12158 rm -f conftest.er1
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000012161 (exit $ac_status); } &&
12162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12163 { (case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12166esac
12167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_try") 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest$ac_exeext'
12173 { (case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12176esac
12177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_try") 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012182 eval "$as_ac_var=yes"
12183else
12184 echo "$as_me: failed program was:" >&5
12185sed 's/^/| /' conftest.$ac_ext >&5
12186
12187 eval "$as_ac_var=no"
12188fi
12189
Tanya Lattner3fa4a442009-01-22 05:17:59 +000012190rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012191 conftest$ac_exeext conftest.$ac_ext
12192fi
12193ac_res=`eval echo '${'$as_ac_var'}'`
12194 { echo "$as_me:$LINENO: result: $ac_res" >&5
12195echo "${ECHO_T}$ac_res" >&6; }
12196if test `eval echo '${'$as_ac_var'}'` = yes; then
12197 cat >>confdefs.h <<_ACEOF
12198#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12199_ACEOF
12200
12201fi
12202done
12203
12204
12205# Check whether --enable-shared was given.
12206if test "${enable_shared+set}" = set; then
12207 enableval=$enable_shared; p=${PACKAGE-default}
12208 case $enableval in
12209 yes) enable_shared=yes ;;
12210 no) enable_shared=no ;;
12211 *)
12212 enable_shared=no
12213 # Look at the argument we got. We use all the common list separators.
12214 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12215 for pkg in $enableval; do
12216 IFS="$lt_save_ifs"
12217 if test "X$pkg" = "X$p"; then
12218 enable_shared=yes
12219 fi
12220 done
12221 IFS="$lt_save_ifs"
12222 ;;
12223 esac
12224else
12225 enable_shared=yes
12226fi
12227
12228
12229# Check whether --enable-static was given.
12230if test "${enable_static+set}" = set; then
12231 enableval=$enable_static; p=${PACKAGE-default}
12232 case $enableval in
12233 yes) enable_static=yes ;;
12234 no) enable_static=no ;;
12235 *)
12236 enable_static=no
12237 # Look at the argument we got. We use all the common list separators.
12238 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12239 for pkg in $enableval; do
12240 IFS="$lt_save_ifs"
12241 if test "X$pkg" = "X$p"; then
12242 enable_static=yes
12243 fi
12244 done
12245 IFS="$lt_save_ifs"
12246 ;;
12247 esac
12248else
12249 enable_static=yes
12250fi
12251
12252
12253# Check whether --enable-fast-install was given.
12254if test "${enable_fast_install+set}" = set; then
12255 enableval=$enable_fast_install; p=${PACKAGE-default}
12256 case $enableval in
12257 yes) enable_fast_install=yes ;;
12258 no) enable_fast_install=no ;;
12259 *)
12260 enable_fast_install=no
12261 # Look at the argument we got. We use all the common list separators.
12262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12263 for pkg in $enableval; do
12264 IFS="$lt_save_ifs"
12265 if test "X$pkg" = "X$p"; then
12266 enable_fast_install=yes
12267 fi
12268 done
12269 IFS="$lt_save_ifs"
12270 ;;
12271 esac
12272else
12273 enable_fast_install=yes
12274fi
12275
12276
12277{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12278echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12279if test "${lt_cv_path_SED+set}" = set; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12281else
12282 # Loop through the user's path and test for sed and gsed.
12283# Then use that list of sed's as ones to test for truncation.
12284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285for as_dir in $PATH
12286do
12287 IFS=$as_save_IFS
12288 test -z "$as_dir" && as_dir=.
12289 for lt_ac_prog in sed gsed; do
12290 for ac_exec_ext in '' $ac_executable_extensions; do
12291 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12292 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12293 fi
12294 done
12295 done
12296done
12297lt_ac_max=0
12298lt_ac_count=0
12299# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12300# along with /bin/sed that truncates output.
12301for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12302 test ! -f $lt_ac_sed && continue
12303 cat /dev/null > conftest.in
12304 lt_ac_count=0
12305 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12306 # Check for GNU sed and select it if it is found.
12307 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12308 lt_cv_path_SED=$lt_ac_sed
12309 break
12310 fi
12311 while true; do
12312 cat conftest.in conftest.in >conftest.tmp
12313 mv conftest.tmp conftest.in
12314 cp conftest.in conftest.nl
12315 echo >>conftest.nl
12316 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12317 cmp -s conftest.out conftest.nl || break
12318 # 10000 chars as input seems more than enough
12319 test $lt_ac_count -gt 10 && break
12320 lt_ac_count=`expr $lt_ac_count + 1`
12321 if test $lt_ac_count -gt $lt_ac_max; then
12322 lt_ac_max=$lt_ac_count
12323 lt_cv_path_SED=$lt_ac_sed
12324 fi
12325 done
12326done
12327
12328fi
12329
12330SED=$lt_cv_path_SED
12331{ echo "$as_me:$LINENO: result: $SED" >&5
12332echo "${ECHO_T}$SED" >&6; }
12333
12334
12335# Check whether --with-gnu-ld was given.
12336if test "${with_gnu_ld+set}" = set; then
12337 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12338else
12339 with_gnu_ld=no
12340fi
12341
12342ac_prog=ld
12343if test "$GCC" = yes; then
12344 # Check if gcc -print-prog-name=ld gives a path.
12345 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12346echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12347 case $host in
12348 *-*-mingw*)
12349 # gcc leaves a trailing carriage return which upsets mingw
12350 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12351 *)
12352 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12353 esac
12354 case $ac_prog in
12355 # Accept absolute paths.
12356 [\\/]* | ?:[\\/]*)
12357 re_direlt='/[^/][^/]*/\.\./'
12358 # Canonicalize the pathname of ld
12359 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12360 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12361 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12362 done
12363 test -z "$LD" && LD="$ac_prog"
12364 ;;
12365 "")
12366 # If it fails, then pretend we aren't using GCC.
12367 ac_prog=ld
12368 ;;
12369 *)
12370 # If it is relative, then search for the first ld in PATH.
12371 with_gnu_ld=unknown
12372 ;;
12373 esac
12374elif test "$with_gnu_ld" = yes; then
12375 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12376echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12377else
12378 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12379echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12380fi
12381if test "${lt_cv_path_LD+set}" = set; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12383else
12384 if test -z "$LD"; then
12385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12386 for ac_dir in $PATH; do
12387 IFS="$lt_save_ifs"
12388 test -z "$ac_dir" && ac_dir=.
12389 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12390 lt_cv_path_LD="$ac_dir/$ac_prog"
12391 # Check to see if the program is GNU ld. I'd rather use --version,
12392 # but apparently some variants of GNU ld only accept -v.
12393 # Break only if it was the GNU/non-GNU ld that we prefer.
12394 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12395 *GNU* | *'with BFD'*)
12396 test "$with_gnu_ld" != no && break
12397 ;;
12398 *)
12399 test "$with_gnu_ld" != yes && break
12400 ;;
12401 esac
12402 fi
12403 done
12404 IFS="$lt_save_ifs"
12405else
12406 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12407fi
12408fi
12409
12410LD="$lt_cv_path_LD"
12411if test -n "$LD"; then
12412 { echo "$as_me:$LINENO: result: $LD" >&5
12413echo "${ECHO_T}$LD" >&6; }
12414else
12415 { echo "$as_me:$LINENO: result: no" >&5
12416echo "${ECHO_T}no" >&6; }
12417fi
12418test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12419echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12420 { (exit 1); exit 1; }; }
12421{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12422echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12423if test "${lt_cv_prog_gnu_ld+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12425else
12426 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12427case `$LD -v 2>&1 </dev/null` in
12428*GNU* | *'with BFD'*)
12429 lt_cv_prog_gnu_ld=yes
12430 ;;
12431*)
12432 lt_cv_prog_gnu_ld=no
12433 ;;
12434esac
12435fi
12436{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12437echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12438with_gnu_ld=$lt_cv_prog_gnu_ld
12439
12440
12441{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12442echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12443if test "${lt_cv_ld_reload_flag+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12445else
12446 lt_cv_ld_reload_flag='-r'
12447fi
12448{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12449echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12450reload_flag=$lt_cv_ld_reload_flag
12451case $reload_flag in
12452"" | " "*) ;;
12453*) reload_flag=" $reload_flag" ;;
12454esac
12455reload_cmds='$LD$reload_flag -o $output$reload_objs'
12456case $host_os in
12457 darwin*)
12458 if test "$GCC" = yes; then
12459 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12460 else
12461 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12462 fi
12463 ;;
12464esac
12465
12466{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12467echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12468if test "${lt_cv_deplibs_check_method+set}" = set; then
12469 echo $ECHO_N "(cached) $ECHO_C" >&6
12470else
12471 lt_cv_file_magic_cmd='$MAGIC_CMD'
12472lt_cv_file_magic_test_file=
12473lt_cv_deplibs_check_method='unknown'
12474# Need to set the preceding variable on all platforms that support
12475# interlibrary dependencies.
12476# 'none' -- dependencies not supported.
12477# `unknown' -- same as none, but documents that we really don't know.
12478# 'pass_all' -- all dependencies passed with no checks.
12479# 'test_compile' -- check by making test program.
12480# 'file_magic [[regex]]' -- check by looking for files in library path
12481# which responds to the $file_magic_cmd with a given extended regex.
12482# If you have `file' or equivalent on your system and you're not sure
12483# whether `pass_all' will *always* work, you probably want this one.
12484
12485case $host_os in
12486aix4* | aix5*)
12487 lt_cv_deplibs_check_method=pass_all
12488 ;;
12489
12490beos*)
12491 lt_cv_deplibs_check_method=pass_all
12492 ;;
12493
12494bsdi[45]*)
12495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12496 lt_cv_file_magic_cmd='/usr/bin/file -L'
12497 lt_cv_file_magic_test_file=/shlib/libc.so
12498 ;;
12499
12500cygwin*)
12501 # func_win32_libid is a shell function defined in ltmain.sh
12502 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12503 lt_cv_file_magic_cmd='func_win32_libid'
12504 ;;
12505
12506mingw* | pw32*)
12507 # Base MSYS/MinGW do not provide the 'file' command needed by
12508 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12509 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12510 lt_cv_file_magic_cmd='$OBJDUMP -f'
12511 ;;
12512
12513darwin* | rhapsody*)
12514 lt_cv_deplibs_check_method=pass_all
12515 ;;
12516
12517freebsd* | kfreebsd*-gnu | dragonfly*)
12518 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12519 case $host_cpu in
12520 i*86 )
12521 # Not sure whether the presence of OpenBSD here was a mistake.
12522 # Let's accept both of them until this is cleared up.
12523 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12524 lt_cv_file_magic_cmd=/usr/bin/file
12525 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12526 ;;
12527 esac
12528 else
12529 lt_cv_deplibs_check_method=pass_all
12530 fi
12531 ;;
12532
12533gnu*)
12534 lt_cv_deplibs_check_method=pass_all
12535 ;;
12536
12537hpux10.20* | hpux11*)
12538 lt_cv_file_magic_cmd=/usr/bin/file
12539 case $host_cpu in
12540 ia64*)
12541 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12542 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12543 ;;
12544 hppa*64*)
12545 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]'
12546 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12547 ;;
12548 *)
12549 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12550 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12551 ;;
12552 esac
12553 ;;
12554
12555interix3*)
12556 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12557 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12558 ;;
12559
12560irix5* | irix6* | nonstopux*)
12561 case $LD in
12562 *-32|*"-32 ") libmagic=32-bit;;
12563 *-n32|*"-n32 ") libmagic=N32;;
12564 *-64|*"-64 ") libmagic=64-bit;;
12565 *) libmagic=never-match;;
12566 esac
12567 lt_cv_deplibs_check_method=pass_all
12568 ;;
12569
12570# This must be Linux ELF.
12571linux*)
12572 lt_cv_deplibs_check_method=pass_all
12573 ;;
12574
12575netbsd*)
12576 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12578 else
12579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12580 fi
12581 ;;
12582
12583newos6*)
12584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12585 lt_cv_file_magic_cmd=/usr/bin/file
12586 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12587 ;;
12588
12589nto-qnx*)
12590 lt_cv_deplibs_check_method=unknown
12591 ;;
12592
12593openbsd*)
12594 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12596 else
12597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12598 fi
12599 ;;
12600
12601osf3* | osf4* | osf5*)
12602 lt_cv_deplibs_check_method=pass_all
12603 ;;
12604
12605solaris*)
12606 lt_cv_deplibs_check_method=pass_all
12607 ;;
12608
12609sysv4 | sysv4.3*)
12610 case $host_vendor in
12611 motorola)
12612 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]'
12613 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12614 ;;
12615 ncr)
12616 lt_cv_deplibs_check_method=pass_all
12617 ;;
12618 sequent)
12619 lt_cv_file_magic_cmd='/bin/file'
12620 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12621 ;;
12622 sni)
12623 lt_cv_file_magic_cmd='/bin/file'
12624 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12625 lt_cv_file_magic_test_file=/lib/libc.so
12626 ;;
12627 siemens)
12628 lt_cv_deplibs_check_method=pass_all
12629 ;;
12630 pc)
12631 lt_cv_deplibs_check_method=pass_all
12632 ;;
12633 esac
12634 ;;
12635
12636sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12637 lt_cv_deplibs_check_method=pass_all
12638 ;;
12639esac
12640
12641fi
12642{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12643echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12644file_magic_cmd=$lt_cv_file_magic_cmd
12645deplibs_check_method=$lt_cv_deplibs_check_method
12646test -z "$deplibs_check_method" && deplibs_check_method=unknown
12647
12648
12649
12650# If no C compiler was specified, use CC.
12651LTCC=${LTCC-"$CC"}
12652
12653# If no C compiler flags were specified, use CFLAGS.
12654LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12655
12656# Allow CC to be a program name with arguments.
12657compiler=$CC
12658
12659# Check whether --enable-libtool-lock was given.
12660if test "${enable_libtool_lock+set}" = set; then
12661 enableval=$enable_libtool_lock;
12662fi
12663
12664test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12665
12666# Some flags need to be propagated to the compiler or linker for good
12667# libtool support.
12668case $host in
12669ia64-*-hpux*)
12670 # Find out which ABI we are using.
12671 echo 'int i;' > conftest.$ac_ext
12672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12673 (eval $ac_compile) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; then
12677 case `/usr/bin/file conftest.$ac_objext` in
12678 *ELF-32*)
12679 HPUX_IA64_MODE="32"
12680 ;;
12681 *ELF-64*)
12682 HPUX_IA64_MODE="64"
12683 ;;
12684 esac
12685 fi
12686 rm -rf conftest*
12687 ;;
12688*-*-irix6*)
12689 # Find out which ABI we are using.
Nick Lewycky6c58a402009-04-13 04:26:27 +000012690 echo '#line 12690 "configure"' > conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12692 (eval $ac_compile) 2>&5
12693 ac_status=$?
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; then
12696 if test "$lt_cv_prog_gnu_ld" = yes; then
12697 case `/usr/bin/file conftest.$ac_objext` in
12698 *32-bit*)
12699 LD="${LD-ld} -melf32bsmip"
12700 ;;
12701 *N32*)
12702 LD="${LD-ld} -melf32bmipn32"
12703 ;;
12704 *64-bit*)
12705 LD="${LD-ld} -melf64bmip"
12706 ;;
12707 esac
12708 else
12709 case `/usr/bin/file conftest.$ac_objext` in
12710 *32-bit*)
12711 LD="${LD-ld} -32"
12712 ;;
12713 *N32*)
12714 LD="${LD-ld} -n32"
12715 ;;
12716 *64-bit*)
12717 LD="${LD-ld} -64"
12718 ;;
12719 esac
12720 fi
12721 fi
12722 rm -rf conftest*
12723 ;;
12724
12725x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12726 # Find out which ABI we are using.
12727 echo 'int i;' > conftest.$ac_ext
12728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729 (eval $ac_compile) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; then
12733 case `/usr/bin/file conftest.o` in
12734 *32-bit*)
12735 case $host in
12736 x86_64-*linux*)
12737 LD="${LD-ld} -m elf_i386"
12738 ;;
12739 ppc64-*linux*|powerpc64-*linux*)
12740 LD="${LD-ld} -m elf32ppclinux"
12741 ;;
12742 s390x-*linux*)
12743 LD="${LD-ld} -m elf_s390"
12744 ;;
12745 sparc64-*linux*)
12746 LD="${LD-ld} -m elf32_sparc"
12747 ;;
12748 esac
12749 ;;
12750 *64-bit*)
12751 case $host in
12752 x86_64-*linux*)
12753 LD="${LD-ld} -m elf_x86_64"
12754 ;;
12755 ppc*-*linux*|powerpc*-*linux*)
12756 LD="${LD-ld} -m elf64ppc"
12757 ;;
12758 s390*-*linux*)
12759 LD="${LD-ld} -m elf64_s390"
12760 ;;
12761 sparc*-*linux*)
12762 LD="${LD-ld} -m elf64_sparc"
12763 ;;
12764 esac
12765 ;;
12766 esac
12767 fi
12768 rm -rf conftest*
12769 ;;
12770
12771*-*-sco3.2v5*)
12772 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12773 SAVE_CFLAGS="$CFLAGS"
12774 CFLAGS="$CFLAGS -belf"
12775 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12776echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12777if test "${lt_cv_cc_needs_belf+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12779else
12780 ac_ext=c
12781ac_cpp='$CPP $CPPFLAGS'
12782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12784ac_compiler_gnu=$ac_cv_c_compiler_gnu
12785
12786 cat >conftest.$ac_ext <<_ACEOF
12787/* confdefs.h. */
12788_ACEOF
12789cat confdefs.h >>conftest.$ac_ext
12790cat >>conftest.$ac_ext <<_ACEOF
12791/* end confdefs.h. */
12792
12793int
12794main ()
12795{
12796
12797 ;
12798 return 0;
12799}
12800_ACEOF
12801rm -f conftest.$ac_objext conftest$ac_exeext
12802if { (ac_try="$ac_link"
12803case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12806esac
12807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_link") 2>conftest.er1
12809 ac_status=$?
12810 grep -v '^ *+' conftest.er1 >conftest.err
12811 rm -f conftest.er1
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000012814 (exit $ac_status); } &&
12815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12816 { (case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12819esac
12820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_try") 2>&5
12822 ac_status=$?
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; } &&
12825 { ac_try='test -s conftest$ac_exeext'
12826 { (case "(($ac_try" in
12827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12828 *) ac_try_echo=$ac_try;;
12829esac
12830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831 (eval "$ac_try") 2>&5
12832 ac_status=$?
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012835 lt_cv_cc_needs_belf=yes
12836else
12837 echo "$as_me: failed program was:" >&5
12838sed 's/^/| /' conftest.$ac_ext >&5
12839
12840 lt_cv_cc_needs_belf=no
12841fi
12842
Tanya Lattner3fa4a442009-01-22 05:17:59 +000012843rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012844 conftest$ac_exeext conftest.$ac_ext
12845 ac_ext=c
12846ac_cpp='$CPP $CPPFLAGS'
12847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12849ac_compiler_gnu=$ac_cv_c_compiler_gnu
12850
12851fi
12852{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12853echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12854 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12855 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12856 CFLAGS="$SAVE_CFLAGS"
12857 fi
12858 ;;
12859sparc*-*solaris*)
12860 # Find out which ABI we are using.
12861 echo 'int i;' > conftest.$ac_ext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12863 (eval $ac_compile) 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; then
12867 case `/usr/bin/file conftest.o` in
12868 *64-bit*)
12869 case $lt_cv_prog_gnu_ld in
12870 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12871 *) LD="${LD-ld} -64" ;;
12872 esac
12873 ;;
12874 esac
12875 fi
12876 rm -rf conftest*
12877 ;;
12878
12879
12880esac
12881
12882need_locks="$enable_libtool_lock"
12883
12884
12885
12886
12887if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12888 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12889 (test "X$CXX" != "Xg++"))) ; then
12890 ac_ext=cpp
12891ac_cpp='$CXXCPP $CPPFLAGS'
12892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12895{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12896echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12897if test -z "$CXXCPP"; then
12898 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12900else
12901 # Double quotes because CXXCPP needs to be expanded
12902 for CXXCPP in "$CXX -E" "/lib/cpp"
12903 do
12904 ac_preproc_ok=false
12905for ac_cxx_preproc_warn_flag in '' yes
12906do
12907 # Use a header file that comes with gcc, so configuring glibc
12908 # with a fresh cross-compiler works.
12909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12910 # <limits.h> exists even on freestanding compilers.
12911 # On the NeXT, cc -E runs the code through the compiler's parser,
12912 # not just through cpp. "Syntax error" is here to catch this case.
12913 cat >conftest.$ac_ext <<_ACEOF
12914/* confdefs.h. */
12915_ACEOF
12916cat confdefs.h >>conftest.$ac_ext
12917cat >>conftest.$ac_ext <<_ACEOF
12918/* end confdefs.h. */
12919#ifdef __STDC__
12920# include <limits.h>
12921#else
12922# include <assert.h>
12923#endif
12924 Syntax error
12925_ACEOF
12926if { (ac_try="$ac_cpp conftest.$ac_ext"
12927case "(($ac_try" in
12928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929 *) ac_try_echo=$ac_try;;
12930esac
12931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12933 ac_status=$?
12934 grep -v '^ *+' conftest.er1 >conftest.err
12935 rm -f conftest.er1
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000012938 (exit $ac_status); } >/dev/null; then
12939 if test -s conftest.err; then
12940 ac_cpp_err=$ac_cxx_preproc_warn_flag
12941 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12942 else
12943 ac_cpp_err=
12944 fi
12945else
12946 ac_cpp_err=yes
12947fi
12948if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012949 :
12950else
12951 echo "$as_me: failed program was:" >&5
12952sed 's/^/| /' conftest.$ac_ext >&5
12953
12954 # Broken: fails on valid input.
12955continue
12956fi
12957
12958rm -f conftest.err conftest.$ac_ext
12959
12960 # OK, works on sane cases. Now check whether nonexistent headers
12961 # can be detected and how.
12962 cat >conftest.$ac_ext <<_ACEOF
12963/* confdefs.h. */
12964_ACEOF
12965cat confdefs.h >>conftest.$ac_ext
12966cat >>conftest.$ac_ext <<_ACEOF
12967/* end confdefs.h. */
12968#include <ac_nonexistent.h>
12969_ACEOF
12970if { (ac_try="$ac_cpp conftest.$ac_ext"
12971case "(($ac_try" in
12972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973 *) ac_try_echo=$ac_try;;
12974esac
12975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12977 ac_status=$?
12978 grep -v '^ *+' conftest.er1 >conftest.err
12979 rm -f conftest.er1
12980 cat conftest.err >&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000012982 (exit $ac_status); } >/dev/null; then
12983 if test -s conftest.err; then
12984 ac_cpp_err=$ac_cxx_preproc_warn_flag
12985 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12986 else
12987 ac_cpp_err=
12988 fi
12989else
12990 ac_cpp_err=yes
12991fi
12992if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012993 # Broken: success on invalid input.
12994continue
12995else
12996 echo "$as_me: failed program was:" >&5
12997sed 's/^/| /' conftest.$ac_ext >&5
12998
12999 # Passes both tests.
13000ac_preproc_ok=:
13001break
13002fi
13003
13004rm -f conftest.err conftest.$ac_ext
13005
13006done
13007# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13008rm -f conftest.err conftest.$ac_ext
13009if $ac_preproc_ok; then
13010 break
13011fi
13012
13013 done
13014 ac_cv_prog_CXXCPP=$CXXCPP
13015
13016fi
13017 CXXCPP=$ac_cv_prog_CXXCPP
13018else
13019 ac_cv_prog_CXXCPP=$CXXCPP
13020fi
13021{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13022echo "${ECHO_T}$CXXCPP" >&6; }
13023ac_preproc_ok=false
13024for ac_cxx_preproc_warn_flag in '' yes
13025do
13026 # Use a header file that comes with gcc, so configuring glibc
13027 # with a fresh cross-compiler works.
13028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13029 # <limits.h> exists even on freestanding compilers.
13030 # On the NeXT, cc -E runs the code through the compiler's parser,
13031 # not just through cpp. "Syntax error" is here to catch this case.
13032 cat >conftest.$ac_ext <<_ACEOF
13033/* confdefs.h. */
13034_ACEOF
13035cat confdefs.h >>conftest.$ac_ext
13036cat >>conftest.$ac_ext <<_ACEOF
13037/* end confdefs.h. */
13038#ifdef __STDC__
13039# include <limits.h>
13040#else
13041# include <assert.h>
13042#endif
13043 Syntax error
13044_ACEOF
13045if { (ac_try="$ac_cpp conftest.$ac_ext"
13046case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13049esac
13050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13052 ac_status=$?
13053 grep -v '^ *+' conftest.er1 >conftest.err
13054 rm -f conftest.er1
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013057 (exit $ac_status); } >/dev/null; then
13058 if test -s conftest.err; then
13059 ac_cpp_err=$ac_cxx_preproc_warn_flag
13060 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13061 else
13062 ac_cpp_err=
13063 fi
13064else
13065 ac_cpp_err=yes
13066fi
13067if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013068 :
13069else
13070 echo "$as_me: failed program was:" >&5
13071sed 's/^/| /' conftest.$ac_ext >&5
13072
13073 # Broken: fails on valid input.
13074continue
13075fi
13076
13077rm -f conftest.err conftest.$ac_ext
13078
13079 # OK, works on sane cases. Now check whether nonexistent headers
13080 # can be detected and how.
13081 cat >conftest.$ac_ext <<_ACEOF
13082/* confdefs.h. */
13083_ACEOF
13084cat confdefs.h >>conftest.$ac_ext
13085cat >>conftest.$ac_ext <<_ACEOF
13086/* end confdefs.h. */
13087#include <ac_nonexistent.h>
13088_ACEOF
13089if { (ac_try="$ac_cpp conftest.$ac_ext"
13090case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13093esac
13094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13096 ac_status=$?
13097 grep -v '^ *+' conftest.er1 >conftest.err
13098 rm -f conftest.er1
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013101 (exit $ac_status); } >/dev/null; then
13102 if test -s conftest.err; then
13103 ac_cpp_err=$ac_cxx_preproc_warn_flag
13104 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13105 else
13106 ac_cpp_err=
13107 fi
13108else
13109 ac_cpp_err=yes
13110fi
13111if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013112 # Broken: success on invalid input.
13113continue
13114else
13115 echo "$as_me: failed program was:" >&5
13116sed 's/^/| /' conftest.$ac_ext >&5
13117
13118 # Passes both tests.
13119ac_preproc_ok=:
13120break
13121fi
13122
13123rm -f conftest.err conftest.$ac_ext
13124
13125done
13126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13127rm -f conftest.err conftest.$ac_ext
13128if $ac_preproc_ok; then
13129 :
13130else
13131 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13132See \`config.log' for more details." >&5
13133echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13134See \`config.log' for more details." >&2;}
13135 { (exit 1); exit 1; }; }
13136fi
13137
13138ac_ext=cpp
13139ac_cpp='$CXXCPP $CPPFLAGS'
13140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13143
13144fi
13145
13146
13147ac_ext=f
13148ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13149ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13150ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13151if test -n "$ac_tool_prefix"; then
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013152 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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013153 do
13154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13155set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13156{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13158if test "${ac_cv_prog_F77+set}" = set; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13160else
13161 if test -n "$F77"; then
13162 ac_cv_prog_F77="$F77" # Let the user override the test.
13163else
13164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165for as_dir in $PATH
13166do
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
13169 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013171 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13173 break 2
13174 fi
13175done
13176done
13177IFS=$as_save_IFS
13178
13179fi
13180fi
13181F77=$ac_cv_prog_F77
13182if test -n "$F77"; then
13183 { echo "$as_me:$LINENO: result: $F77" >&5
13184echo "${ECHO_T}$F77" >&6; }
13185else
13186 { echo "$as_me:$LINENO: result: no" >&5
13187echo "${ECHO_T}no" >&6; }
13188fi
13189
13190
13191 test -n "$F77" && break
13192 done
13193fi
13194if test -z "$F77"; then
13195 ac_ct_F77=$F77
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013196 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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013197do
13198 # Extract the first word of "$ac_prog", so it can be a program name with args.
13199set dummy $ac_prog; ac_word=$2
13200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13202if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13203 echo $ECHO_N "(cached) $ECHO_C" >&6
13204else
13205 if test -n "$ac_ct_F77"; then
13206 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13207else
13208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209for as_dir in $PATH
13210do
13211 IFS=$as_save_IFS
13212 test -z "$as_dir" && as_dir=.
13213 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013215 ac_cv_prog_ac_ct_F77="$ac_prog"
13216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13217 break 2
13218 fi
13219done
13220done
13221IFS=$as_save_IFS
13222
13223fi
13224fi
13225ac_ct_F77=$ac_cv_prog_ac_ct_F77
13226if test -n "$ac_ct_F77"; then
13227 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13228echo "${ECHO_T}$ac_ct_F77" >&6; }
13229else
13230 { echo "$as_me:$LINENO: result: no" >&5
13231echo "${ECHO_T}no" >&6; }
13232fi
13233
13234
13235 test -n "$ac_ct_F77" && break
13236done
13237
13238 if test "x$ac_ct_F77" = x; then
13239 F77=""
13240 else
13241 case $cross_compiling:$ac_tool_warned in
13242yes:)
13243{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13244whose name does not start with the host triplet. If you think this
13245configuration is useful to you, please write to autoconf@gnu.org." >&5
13246echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13247whose name does not start with the host triplet. If you think this
13248configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13249ac_tool_warned=yes ;;
13250esac
13251 F77=$ac_ct_F77
13252 fi
13253fi
13254
13255
13256# Provide some information about the compiler.
13257echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13258ac_compiler=`set X $ac_compile; echo $2`
13259{ (ac_try="$ac_compiler --version >&5"
13260case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13263esac
13264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_compiler --version >&5") 2>&5
13266 ac_status=$?
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }
13269{ (ac_try="$ac_compiler -v >&5"
13270case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13273esac
13274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_compiler -v >&5") 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }
13279{ (ac_try="$ac_compiler -V >&5"
13280case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13283esac
13284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_compiler -V >&5") 2>&5
13286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }
13289rm -f a.out
13290
13291# If we don't use `.F' as extension, the preprocessor is not run on the
13292# input file. (Note that this only needs to work for GNU compilers.)
13293ac_save_ext=$ac_ext
13294ac_ext=F
13295{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13296echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13297if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13298 echo $ECHO_N "(cached) $ECHO_C" >&6
13299else
13300 cat >conftest.$ac_ext <<_ACEOF
13301 program main
13302#ifndef __GNUC__
13303 choke me
13304#endif
13305
13306 end
13307_ACEOF
13308rm -f conftest.$ac_objext
13309if { (ac_try="$ac_compile"
13310case "(($ac_try" in
13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312 *) ac_try_echo=$ac_try;;
13313esac
13314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315 (eval "$ac_compile") 2>conftest.er1
13316 ac_status=$?
13317 grep -v '^ *+' conftest.er1 >conftest.err
13318 rm -f conftest.er1
13319 cat conftest.err >&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013321 (exit $ac_status); } &&
13322 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13323 { (case "(($ac_try" in
13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325 *) ac_try_echo=$ac_try;;
13326esac
13327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328 (eval "$ac_try") 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; } &&
13332 { ac_try='test -s conftest.$ac_objext'
13333 { (case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13336esac
13337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_try") 2>&5
13339 ac_status=$?
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013342 ac_compiler_gnu=yes
13343else
13344 echo "$as_me: failed program was:" >&5
13345sed 's/^/| /' conftest.$ac_ext >&5
13346
13347 ac_compiler_gnu=no
13348fi
13349
13350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13352
13353fi
13354{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13355echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13356ac_ext=$ac_save_ext
13357ac_test_FFLAGS=${FFLAGS+set}
13358ac_save_FFLAGS=$FFLAGS
13359FFLAGS=
13360{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13361echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13362if test "${ac_cv_prog_f77_g+set}" = set; then
13363 echo $ECHO_N "(cached) $ECHO_C" >&6
13364else
13365 FFLAGS=-g
13366cat >conftest.$ac_ext <<_ACEOF
13367 program main
13368
13369 end
13370_ACEOF
13371rm -f conftest.$ac_objext
13372if { (ac_try="$ac_compile"
13373case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376esac
13377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_compile") 2>conftest.er1
13379 ac_status=$?
13380 grep -v '^ *+' conftest.er1 >conftest.err
13381 rm -f conftest.er1
13382 cat conftest.err >&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013384 (exit $ac_status); } &&
13385 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13386 { (case "(($ac_try" in
13387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388 *) ac_try_echo=$ac_try;;
13389esac
13390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13391 (eval "$ac_try") 2>&5
13392 ac_status=$?
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; } &&
13395 { ac_try='test -s conftest.$ac_objext'
13396 { (case "(($ac_try" in
13397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13399esac
13400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401 (eval "$ac_try") 2>&5
13402 ac_status=$?
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013405 ac_cv_prog_f77_g=yes
13406else
13407 echo "$as_me: failed program was:" >&5
13408sed 's/^/| /' conftest.$ac_ext >&5
13409
13410 ac_cv_prog_f77_g=no
13411fi
13412
13413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13414
13415fi
13416{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13417echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13418if test "$ac_test_FFLAGS" = set; then
13419 FFLAGS=$ac_save_FFLAGS
13420elif test $ac_cv_prog_f77_g = yes; then
13421 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13422 FFLAGS="-g -O2"
13423 else
13424 FFLAGS="-g"
13425 fi
13426else
13427 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13428 FFLAGS="-O2"
13429 else
13430 FFLAGS=
13431 fi
13432fi
13433
13434G77=`test $ac_compiler_gnu = yes && echo yes`
13435ac_ext=c
13436ac_cpp='$CPP $CPPFLAGS'
13437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13439ac_compiler_gnu=$ac_cv_c_compiler_gnu
13440
13441
13442
13443# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13444
13445# find the maximum length of command line arguments
13446{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13447echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13448if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13450else
13451 i=0
13452 teststring="ABCD"
13453
13454 case $build_os in
13455 msdosdjgpp*)
13456 # On DJGPP, this test can blow up pretty badly due to problems in libc
13457 # (any single argument exceeding 2000 bytes causes a buffer overrun
13458 # during glob expansion). Even if it were fixed, the result of this
13459 # check would be larger than it should be.
13460 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13461 ;;
13462
13463 gnu*)
13464 # Under GNU Hurd, this test is not required because there is
13465 # no limit to the length of command line arguments.
13466 # Libtool will interpret -1 as no limit whatsoever
13467 lt_cv_sys_max_cmd_len=-1;
13468 ;;
13469
13470 cygwin* | mingw*)
13471 # On Win9x/ME, this test blows up -- it succeeds, but takes
13472 # about 5 minutes as the teststring grows exponentially.
13473 # Worse, since 9x/ME are not pre-emptively multitasking,
13474 # you end up with a "frozen" computer, even though with patience
13475 # the test eventually succeeds (with a max line length of 256k).
13476 # Instead, let's just punt: use the minimum linelength reported by
13477 # all of the supported platforms: 8192 (on NT/2K/XP).
13478 lt_cv_sys_max_cmd_len=8192;
13479 ;;
13480
13481 amigaos*)
13482 # On AmigaOS with pdksh, this test takes hours, literally.
13483 # So we just punt and use a minimum line length of 8192.
13484 lt_cv_sys_max_cmd_len=8192;
13485 ;;
13486
13487 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13488 # This has been around since 386BSD, at least. Likely further.
13489 if test -x /sbin/sysctl; then
13490 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13491 elif test -x /usr/sbin/sysctl; then
13492 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13493 else
13494 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13495 fi
13496 # And add a safety zone
13497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13499 ;;
13500
13501 interix*)
13502 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13503 lt_cv_sys_max_cmd_len=196608
13504 ;;
13505
13506 osf*)
13507 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13508 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13509 # nice to cause kernel panics so lets avoid the loop below.
13510 # First set a reasonable default.
13511 lt_cv_sys_max_cmd_len=16384
13512 #
13513 if test -x /sbin/sysconfig; then
13514 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13515 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13516 esac
13517 fi
13518 ;;
13519 sco3.2v5*)
13520 lt_cv_sys_max_cmd_len=102400
13521 ;;
13522 sysv5* | sco5v6* | sysv4.2uw2*)
13523 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13524 if test -n "$kargmax"; then
13525 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13526 else
13527 lt_cv_sys_max_cmd_len=32768
13528 fi
13529 ;;
13530 *)
13531 # If test is not a shell built-in, we'll probably end up computing a
13532 # maximum length that is only half of the actual maximum length, but
13533 # we can't tell.
13534 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13535 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13536 = "XX$teststring") >/dev/null 2>&1 &&
13537 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13538 lt_cv_sys_max_cmd_len=$new_result &&
13539 test $i != 17 # 1/2 MB should be enough
13540 do
13541 i=`expr $i + 1`
13542 teststring=$teststring$teststring
13543 done
13544 teststring=
13545 # Add a significant safety factor because C++ compilers can tack on massive
13546 # amounts of additional arguments before passing them to the linker.
13547 # It appears as though 1/2 is a usable value.
13548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13549 ;;
13550 esac
13551
13552fi
13553
13554if test -n $lt_cv_sys_max_cmd_len ; then
13555 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13556echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13557else
13558 { echo "$as_me:$LINENO: result: none" >&5
13559echo "${ECHO_T}none" >&6; }
13560fi
13561
13562
13563
13564
13565# Check for command to grab the raw symbol name followed by C symbol from nm.
13566{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13567echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13568if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13570else
13571
13572# These are sane defaults that work on at least a few old systems.
13573# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13574
13575# Character class describing NM global symbol codes.
13576symcode='[BCDEGRST]'
13577
13578# Regexp to match symbols that can be accessed directly from C.
13579sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13580
13581# Transform an extracted symbol line into a proper C declaration
13582lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13583
13584# Transform an extracted symbol line into symbol name and symbol address
13585lt_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'"
13586
13587# Define system-specific variables.
13588case $host_os in
13589aix*)
13590 symcode='[BCDT]'
13591 ;;
13592cygwin* | mingw* | pw32*)
13593 symcode='[ABCDGISTW]'
13594 ;;
13595hpux*) # Its linker distinguishes data from code symbols
13596 if test "$host_cpu" = ia64; then
13597 symcode='[ABCDEGRST]'
13598 fi
13599 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13600 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'"
13601 ;;
13602linux*)
13603 if test "$host_cpu" = ia64; then
13604 symcode='[ABCDGIRSTW]'
13605 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13606 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'"
13607 fi
13608 ;;
13609irix* | nonstopux*)
13610 symcode='[BCDEGRST]'
13611 ;;
13612osf*)
13613 symcode='[BCDEGQRST]'
13614 ;;
13615solaris*)
13616 symcode='[BDRT]'
13617 ;;
13618sco3.2v5*)
13619 symcode='[DT]'
13620 ;;
13621sysv4.2uw2*)
13622 symcode='[DT]'
13623 ;;
13624sysv5* | sco5v6* | unixware* | OpenUNIX*)
13625 symcode='[ABDT]'
13626 ;;
13627sysv4)
13628 symcode='[DFNSTU]'
13629 ;;
13630esac
13631
13632# Handle CRLF in mingw tool chain
13633opt_cr=
13634case $build_os in
13635mingw*)
13636 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13637 ;;
13638esac
13639
13640# If we're using GNU nm, then use its standard symbol codes.
13641case `$NM -V 2>&1` in
13642*GNU* | *'with BFD'*)
13643 symcode='[ABCDGIRSTW]' ;;
13644esac
13645
13646# Try without a prefix undercore, then with it.
13647for ac_symprfx in "" "_"; do
13648
13649 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13650 symxfrm="\\1 $ac_symprfx\\2 \\2"
13651
13652 # Write the raw and C identifiers.
13653 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13654
13655 # Check to see that the pipe works correctly.
13656 pipe_works=no
13657
13658 rm -f conftest*
13659 cat > conftest.$ac_ext <<EOF
13660#ifdef __cplusplus
13661extern "C" {
13662#endif
13663char nm_test_var;
13664void nm_test_func(){}
13665#ifdef __cplusplus
13666}
13667#endif
13668int main(){nm_test_var='a';nm_test_func();return(0);}
13669EOF
13670
13671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13672 (eval $ac_compile) 2>&5
13673 ac_status=$?
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; then
13676 # Now try to grab the symbols.
13677 nlist=conftest.nm
13678 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13679 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } && test -s "$nlist"; then
13683 # Try sorting and uniquifying the output.
13684 if sort "$nlist" | uniq > "$nlist"T; then
13685 mv -f "$nlist"T "$nlist"
13686 else
13687 rm -f "$nlist"T
13688 fi
13689
13690 # Make sure that we snagged all the symbols we need.
13691 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13692 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13693 cat <<EOF > conftest.$ac_ext
13694#ifdef __cplusplus
13695extern "C" {
13696#endif
13697
13698EOF
13699 # Now generate the symbol file.
13700 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13701
13702 cat <<EOF >> conftest.$ac_ext
13703#if defined (__STDC__) && __STDC__
13704# define lt_ptr_t void *
13705#else
13706# define lt_ptr_t char *
13707# define const
13708#endif
13709
13710/* The mapping between symbol names and symbols. */
13711const struct {
13712 const char *name;
13713 lt_ptr_t address;
13714}
13715lt_preloaded_symbols[] =
13716{
13717EOF
13718 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13719 cat <<\EOF >> conftest.$ac_ext
13720 {0, (lt_ptr_t) 0}
13721};
13722
13723#ifdef __cplusplus
13724}
13725#endif
13726EOF
13727 # Now try linking the two files.
13728 mv conftest.$ac_objext conftstm.$ac_objext
13729 lt_save_LIBS="$LIBS"
13730 lt_save_CFLAGS="$CFLAGS"
13731 LIBS="conftstm.$ac_objext"
13732 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13734 (eval $ac_link) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13738 pipe_works=yes
13739 fi
13740 LIBS="$lt_save_LIBS"
13741 CFLAGS="$lt_save_CFLAGS"
13742 else
13743 echo "cannot find nm_test_func in $nlist" >&5
13744 fi
13745 else
13746 echo "cannot find nm_test_var in $nlist" >&5
13747 fi
13748 else
13749 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13750 fi
13751 else
13752 echo "$progname: failed program was:" >&5
13753 cat conftest.$ac_ext >&5
13754 fi
13755 rm -f conftest* conftst*
13756
13757 # Do not use the global_symbol_pipe unless it works.
13758 if test "$pipe_works" = yes; then
13759 break
13760 else
13761 lt_cv_sys_global_symbol_pipe=
13762 fi
13763done
13764
13765fi
13766
13767if test -z "$lt_cv_sys_global_symbol_pipe"; then
13768 lt_cv_sys_global_symbol_to_cdecl=
13769fi
13770if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13771 { echo "$as_me:$LINENO: result: failed" >&5
13772echo "${ECHO_T}failed" >&6; }
13773else
13774 { echo "$as_me:$LINENO: result: ok" >&5
13775echo "${ECHO_T}ok" >&6; }
13776fi
13777
13778{ echo "$as_me:$LINENO: checking for objdir" >&5
13779echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13780if test "${lt_cv_objdir+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13782else
13783 rm -f .libs 2>/dev/null
13784mkdir .libs 2>/dev/null
13785if test -d .libs; then
13786 lt_cv_objdir=.libs
13787else
13788 # MS-DOS does not allow filenames that begin with a dot.
13789 lt_cv_objdir=_libs
13790fi
13791rmdir .libs 2>/dev/null
13792fi
13793{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13794echo "${ECHO_T}$lt_cv_objdir" >&6; }
13795objdir=$lt_cv_objdir
13796
13797
13798
13799
13800
13801case $host_os in
13802aix3*)
13803 # AIX sometimes has problems with the GCC collect2 program. For some
13804 # reason, if we set the COLLECT_NAMES environment variable, the problems
13805 # vanish in a puff of smoke.
13806 if test "X${COLLECT_NAMES+set}" != Xset; then
13807 COLLECT_NAMES=
13808 export COLLECT_NAMES
13809 fi
13810 ;;
13811esac
13812
13813# Sed substitution that helps us do robust quoting. It backslashifies
13814# metacharacters that are still active within double-quoted strings.
13815Xsed='sed -e 1s/^X//'
13816sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13817
13818# Same as above, but do not quote variable references.
13819double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13820
13821# Sed substitution to delay expansion of an escaped shell variable in a
13822# double_quote_subst'ed string.
13823delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13824
13825# Sed substitution to avoid accidental globbing in evaled expressions
13826no_glob_subst='s/\*/\\\*/g'
13827
13828# Constants:
13829rm="rm -f"
13830
13831# Global variables:
13832default_ofile=mklib
13833can_build_shared=yes
13834
13835# All known linkers require a `.a' archive for static linking (except MSVC,
13836# which needs '.lib').
13837libext=a
13838ltmain="$ac_aux_dir/ltmain.sh"
13839ofile="$default_ofile"
13840with_gnu_ld="$lt_cv_prog_gnu_ld"
13841
13842if test -n "$ac_tool_prefix"; then
13843 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13844set dummy ${ac_tool_prefix}ar; ac_word=$2
13845{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13847if test "${ac_cv_prog_AR+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13849else
13850 if test -n "$AR"; then
13851 ac_cv_prog_AR="$AR" # Let the user override the test.
13852else
13853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13854for as_dir in $PATH
13855do
13856 IFS=$as_save_IFS
13857 test -z "$as_dir" && as_dir=.
13858 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013860 ac_cv_prog_AR="${ac_tool_prefix}ar"
13861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13862 break 2
13863 fi
13864done
13865done
13866IFS=$as_save_IFS
13867
13868fi
13869fi
13870AR=$ac_cv_prog_AR
13871if test -n "$AR"; then
13872 { echo "$as_me:$LINENO: result: $AR" >&5
13873echo "${ECHO_T}$AR" >&6; }
13874else
13875 { echo "$as_me:$LINENO: result: no" >&5
13876echo "${ECHO_T}no" >&6; }
13877fi
13878
13879
13880fi
13881if test -z "$ac_cv_prog_AR"; then
13882 ac_ct_AR=$AR
13883 # Extract the first word of "ar", so it can be a program name with args.
13884set dummy ar; ac_word=$2
13885{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13887if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13889else
13890 if test -n "$ac_ct_AR"; then
13891 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13892else
13893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13894for as_dir in $PATH
13895do
13896 IFS=$as_save_IFS
13897 test -z "$as_dir" && as_dir=.
13898 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013900 ac_cv_prog_ac_ct_AR="ar"
13901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13902 break 2
13903 fi
13904done
13905done
13906IFS=$as_save_IFS
13907
13908fi
13909fi
13910ac_ct_AR=$ac_cv_prog_ac_ct_AR
13911if test -n "$ac_ct_AR"; then
13912 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13913echo "${ECHO_T}$ac_ct_AR" >&6; }
13914else
13915 { echo "$as_me:$LINENO: result: no" >&5
13916echo "${ECHO_T}no" >&6; }
13917fi
13918
13919 if test "x$ac_ct_AR" = x; then
13920 AR="false"
13921 else
13922 case $cross_compiling:$ac_tool_warned in
13923yes:)
13924{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13925whose name does not start with the host triplet. If you think this
13926configuration is useful to you, please write to autoconf@gnu.org." >&5
13927echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13928whose name does not start with the host triplet. If you think this
13929configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13930ac_tool_warned=yes ;;
13931esac
13932 AR=$ac_ct_AR
13933 fi
13934else
13935 AR="$ac_cv_prog_AR"
13936fi
13937
13938if test -n "$ac_tool_prefix"; then
13939 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13940set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13941{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13943if test "${ac_cv_prog_RANLIB+set}" = set; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13945else
13946 if test -n "$RANLIB"; then
13947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13948else
13949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13950for as_dir in $PATH
13951do
13952 IFS=$as_save_IFS
13953 test -z "$as_dir" && as_dir=.
13954 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013956 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13958 break 2
13959 fi
13960done
13961done
13962IFS=$as_save_IFS
13963
13964fi
13965fi
13966RANLIB=$ac_cv_prog_RANLIB
13967if test -n "$RANLIB"; then
13968 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13969echo "${ECHO_T}$RANLIB" >&6; }
13970else
13971 { echo "$as_me:$LINENO: result: no" >&5
13972echo "${ECHO_T}no" >&6; }
13973fi
13974
13975
13976fi
13977if test -z "$ac_cv_prog_RANLIB"; then
13978 ac_ct_RANLIB=$RANLIB
13979 # Extract the first word of "ranlib", so it can be a program name with args.
13980set dummy ranlib; ac_word=$2
13981{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13983if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13985else
13986 if test -n "$ac_ct_RANLIB"; then
13987 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13988else
13989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13990for as_dir in $PATH
13991do
13992 IFS=$as_save_IFS
13993 test -z "$as_dir" && as_dir=.
13994 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013996 ac_cv_prog_ac_ct_RANLIB="ranlib"
13997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13998 break 2
13999 fi
14000done
14001done
14002IFS=$as_save_IFS
14003
14004fi
14005fi
14006ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14007if test -n "$ac_ct_RANLIB"; then
14008 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14009echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14010else
14011 { echo "$as_me:$LINENO: result: no" >&5
14012echo "${ECHO_T}no" >&6; }
14013fi
14014
14015 if test "x$ac_ct_RANLIB" = x; then
14016 RANLIB=":"
14017 else
14018 case $cross_compiling:$ac_tool_warned in
14019yes:)
14020{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14021whose name does not start with the host triplet. If you think this
14022configuration is useful to you, please write to autoconf@gnu.org." >&5
14023echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14024whose name does not start with the host triplet. If you think this
14025configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14026ac_tool_warned=yes ;;
14027esac
14028 RANLIB=$ac_ct_RANLIB
14029 fi
14030else
14031 RANLIB="$ac_cv_prog_RANLIB"
14032fi
14033
14034if test -n "$ac_tool_prefix"; then
14035 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14036set dummy ${ac_tool_prefix}strip; ac_word=$2
14037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14039if test "${ac_cv_prog_STRIP+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14041else
14042 if test -n "$STRIP"; then
14043 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14044else
14045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14046for as_dir in $PATH
14047do
14048 IFS=$as_save_IFS
14049 test -z "$as_dir" && as_dir=.
14050 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000014051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014052 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14054 break 2
14055 fi
14056done
14057done
14058IFS=$as_save_IFS
14059
14060fi
14061fi
14062STRIP=$ac_cv_prog_STRIP
14063if test -n "$STRIP"; then
14064 { echo "$as_me:$LINENO: result: $STRIP" >&5
14065echo "${ECHO_T}$STRIP" >&6; }
14066else
14067 { echo "$as_me:$LINENO: result: no" >&5
14068echo "${ECHO_T}no" >&6; }
14069fi
14070
14071
14072fi
14073if test -z "$ac_cv_prog_STRIP"; then
14074 ac_ct_STRIP=$STRIP
14075 # Extract the first word of "strip", so it can be a program name with args.
14076set dummy strip; ac_word=$2
14077{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14079if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14081else
14082 if test -n "$ac_ct_STRIP"; then
14083 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14084else
14085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14086for as_dir in $PATH
14087do
14088 IFS=$as_save_IFS
14089 test -z "$as_dir" && as_dir=.
14090 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000014091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014092 ac_cv_prog_ac_ct_STRIP="strip"
14093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14094 break 2
14095 fi
14096done
14097done
14098IFS=$as_save_IFS
14099
14100fi
14101fi
14102ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14103if test -n "$ac_ct_STRIP"; then
14104 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14105echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14106else
14107 { echo "$as_me:$LINENO: result: no" >&5
14108echo "${ECHO_T}no" >&6; }
14109fi
14110
14111 if test "x$ac_ct_STRIP" = x; then
14112 STRIP=":"
14113 else
14114 case $cross_compiling:$ac_tool_warned in
14115yes:)
14116{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14117whose name does not start with the host triplet. If you think this
14118configuration is useful to you, please write to autoconf@gnu.org." >&5
14119echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14120whose name does not start with the host triplet. If you think this
14121configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14122ac_tool_warned=yes ;;
14123esac
14124 STRIP=$ac_ct_STRIP
14125 fi
14126else
14127 STRIP="$ac_cv_prog_STRIP"
14128fi
14129
14130
14131old_CC="$CC"
14132old_CFLAGS="$CFLAGS"
14133
14134# Set sane defaults for various variables
14135test -z "$AR" && AR=ar
14136test -z "$AR_FLAGS" && AR_FLAGS=cru
14137test -z "$AS" && AS=as
14138test -z "$CC" && CC=cc
14139test -z "$LTCC" && LTCC=$CC
14140test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14141test -z "$DLLTOOL" && DLLTOOL=dlltool
14142test -z "$LD" && LD=ld
14143test -z "$LN_S" && LN_S="ln -s"
14144test -z "$MAGIC_CMD" && MAGIC_CMD=file
14145test -z "$NM" && NM=nm
14146test -z "$SED" && SED=sed
14147test -z "$OBJDUMP" && OBJDUMP=objdump
14148test -z "$RANLIB" && RANLIB=:
14149test -z "$STRIP" && STRIP=:
14150test -z "$ac_objext" && ac_objext=o
14151
14152# Determine commands to create old-style static archives.
14153old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14154old_postinstall_cmds='chmod 644 $oldlib'
14155old_postuninstall_cmds=
14156
14157if test -n "$RANLIB"; then
14158 case $host_os in
14159 openbsd*)
14160 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14161 ;;
14162 *)
14163 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14164 ;;
14165 esac
14166 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14167fi
14168
14169for cc_temp in $compiler""; do
14170 case $cc_temp in
14171 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14172 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14173 \-*) ;;
14174 *) break;;
14175 esac
14176done
14177cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14178
14179
14180# Only perform the check for file, if the check method requires it
14181case $deplibs_check_method in
14182file_magic*)
14183 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14184 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14185echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14186if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14187 echo $ECHO_N "(cached) $ECHO_C" >&6
14188else
14189 case $MAGIC_CMD in
14190[\\/*] | ?:[\\/]*)
14191 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14192 ;;
14193*)
14194 lt_save_MAGIC_CMD="$MAGIC_CMD"
14195 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14196 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14197 for ac_dir in $ac_dummy; do
14198 IFS="$lt_save_ifs"
14199 test -z "$ac_dir" && ac_dir=.
14200 if test -f $ac_dir/${ac_tool_prefix}file; then
14201 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14202 if test -n "$file_magic_test_file"; then
14203 case $deplibs_check_method in
14204 "file_magic "*)
14205 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14206 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14207 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14208 $EGREP "$file_magic_regex" > /dev/null; then
14209 :
14210 else
14211 cat <<EOF 1>&2
14212
14213*** Warning: the command libtool uses to detect shared libraries,
14214*** $file_magic_cmd, produces output that libtool cannot recognize.
14215*** The result is that libtool may fail to recognize shared libraries
14216*** as such. This will affect the creation of libtool libraries that
14217*** depend on shared libraries, but programs linked with such libtool
14218*** libraries will work regardless of this problem. Nevertheless, you
14219*** may want to report the problem to your system manager and/or to
14220*** bug-libtool@gnu.org
14221
14222EOF
14223 fi ;;
14224 esac
14225 fi
14226 break
14227 fi
14228 done
14229 IFS="$lt_save_ifs"
14230 MAGIC_CMD="$lt_save_MAGIC_CMD"
14231 ;;
14232esac
14233fi
14234
14235MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14236if test -n "$MAGIC_CMD"; then
14237 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14238echo "${ECHO_T}$MAGIC_CMD" >&6; }
14239else
14240 { echo "$as_me:$LINENO: result: no" >&5
14241echo "${ECHO_T}no" >&6; }
14242fi
14243
14244if test -z "$lt_cv_path_MAGIC_CMD"; then
14245 if test -n "$ac_tool_prefix"; then
14246 { echo "$as_me:$LINENO: checking for file" >&5
14247echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14248if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14250else
14251 case $MAGIC_CMD in
14252[\\/*] | ?:[\\/]*)
14253 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14254 ;;
14255*)
14256 lt_save_MAGIC_CMD="$MAGIC_CMD"
14257 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14258 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14259 for ac_dir in $ac_dummy; do
14260 IFS="$lt_save_ifs"
14261 test -z "$ac_dir" && ac_dir=.
14262 if test -f $ac_dir/file; then
14263 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14264 if test -n "$file_magic_test_file"; then
14265 case $deplibs_check_method in
14266 "file_magic "*)
14267 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14268 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14269 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14270 $EGREP "$file_magic_regex" > /dev/null; then
14271 :
14272 else
14273 cat <<EOF 1>&2
14274
14275*** Warning: the command libtool uses to detect shared libraries,
14276*** $file_magic_cmd, produces output that libtool cannot recognize.
14277*** The result is that libtool may fail to recognize shared libraries
14278*** as such. This will affect the creation of libtool libraries that
14279*** depend on shared libraries, but programs linked with such libtool
14280*** libraries will work regardless of this problem. Nevertheless, you
14281*** may want to report the problem to your system manager and/or to
14282*** bug-libtool@gnu.org
14283
14284EOF
14285 fi ;;
14286 esac
14287 fi
14288 break
14289 fi
14290 done
14291 IFS="$lt_save_ifs"
14292 MAGIC_CMD="$lt_save_MAGIC_CMD"
14293 ;;
14294esac
14295fi
14296
14297MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14298if test -n "$MAGIC_CMD"; then
14299 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14300echo "${ECHO_T}$MAGIC_CMD" >&6; }
14301else
14302 { echo "$as_me:$LINENO: result: no" >&5
14303echo "${ECHO_T}no" >&6; }
14304fi
14305
14306 else
14307 MAGIC_CMD=:
14308 fi
14309fi
14310
14311 fi
14312 ;;
14313esac
14314
14315enable_dlopen=yes
14316enable_win32_dll=no
14317
14318# Check whether --enable-libtool-lock was given.
14319if test "${enable_libtool_lock+set}" = set; then
14320 enableval=$enable_libtool_lock;
14321fi
14322
14323test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14324
14325
14326# Check whether --with-pic was given.
14327if test "${with_pic+set}" = set; then
14328 withval=$with_pic; pic_mode="$withval"
14329else
14330 pic_mode=default
14331fi
14332
14333test -z "$pic_mode" && pic_mode=default
14334
14335# Use C for the default configuration in the libtool script
14336tagname=
14337lt_save_CC="$CC"
14338ac_ext=c
14339ac_cpp='$CPP $CPPFLAGS'
14340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14342ac_compiler_gnu=$ac_cv_c_compiler_gnu
14343
14344
14345# Source file extension for C test sources.
14346ac_ext=c
14347
14348# Object file extension for compiled C test sources.
14349objext=o
14350objext=$objext
14351
14352# Code to be used in simple compile tests
14353lt_simple_compile_test_code="int some_variable = 0;\n"
14354
14355# Code to be used in simple link tests
14356lt_simple_link_test_code='int main(){return(0);}\n'
14357
14358
14359# If no C compiler was specified, use CC.
14360LTCC=${LTCC-"$CC"}
14361
14362# If no C compiler flags were specified, use CFLAGS.
14363LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14364
14365# Allow CC to be a program name with arguments.
14366compiler=$CC
14367
14368
14369# save warnings/boilerplate of simple test code
14370ac_outfile=conftest.$ac_objext
14371printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14372eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14373_lt_compiler_boilerplate=`cat conftest.err`
14374$rm conftest*
14375
14376ac_outfile=conftest.$ac_objext
14377printf "$lt_simple_link_test_code" >conftest.$ac_ext
14378eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14379_lt_linker_boilerplate=`cat conftest.err`
14380$rm conftest*
14381
14382
14383
14384lt_prog_compiler_no_builtin_flag=
14385
14386if test "$GCC" = yes; then
14387 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14388
14389
14390{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14391echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14392if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14394else
14395 lt_cv_prog_compiler_rtti_exceptions=no
14396 ac_outfile=conftest.$ac_objext
14397 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14398 lt_compiler_flag="-fno-rtti -fno-exceptions"
14399 # Insert the option either (1) after the last *FLAGS variable, or
14400 # (2) before a word containing "conftest.", or (3) at the end.
14401 # Note that $ac_compile itself does not contain backslashes and begins
14402 # with a dollar sign (not a hyphen), so the echo should work correctly.
14403 # The option is referenced via a variable to avoid confusing sed.
14404 lt_compile=`echo "$ac_compile" | $SED \
14405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14407 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky6c58a402009-04-13 04:26:27 +000014408 (eval echo "\"\$as_me:14408: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014409 (eval "$lt_compile" 2>conftest.err)
14410 ac_status=$?
14411 cat conftest.err >&5
Nick Lewycky6c58a402009-04-13 04:26:27 +000014412 echo "$as_me:14412: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014413 if (exit $ac_status) && test -s "$ac_outfile"; then
14414 # The compiler can only warn and ignore the option if not recognized
14415 # So say no if there are warnings other than the usual output.
14416 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14418 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14419 lt_cv_prog_compiler_rtti_exceptions=yes
14420 fi
14421 fi
14422 $rm conftest*
14423
14424fi
14425{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14426echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14427
14428if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14429 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14430else
14431 :
14432fi
14433
14434fi
14435
14436lt_prog_compiler_wl=
14437lt_prog_compiler_pic=
14438lt_prog_compiler_static=
14439
14440{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14441echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14442
14443 if test "$GCC" = yes; then
14444 lt_prog_compiler_wl='-Wl,'
14445 lt_prog_compiler_static='-static'
14446
14447 case $host_os in
14448 aix*)
14449 # All AIX code is PIC.
14450 if test "$host_cpu" = ia64; then
14451 # AIX 5 now supports IA64 processor
14452 lt_prog_compiler_static='-Bstatic'
14453 fi
14454 ;;
14455
14456 amigaos*)
14457 # FIXME: we need at least 68020 code to build shared libraries, but
14458 # adding the `-m68020' flag to GCC prevents building anything better,
14459 # like `-m68040'.
14460 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14461 ;;
14462
14463 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14464 # PIC is the default for these OSes.
14465 ;;
14466
14467 mingw* | pw32* | os2*)
14468 # This hack is so that the source file can tell whether it is being
14469 # built for inclusion in a dll (and should export symbols for example).
14470 lt_prog_compiler_pic='-DDLL_EXPORT'
14471 ;;
14472
14473 darwin* | rhapsody*)
14474 # PIC is the default on this platform
14475 # Common symbols not allowed in MH_DYLIB files
14476 lt_prog_compiler_pic='-fno-common'
14477 ;;
14478
14479 interix3*)
14480 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14481 # Instead, we relocate shared libraries at runtime.
14482 ;;
14483
14484 msdosdjgpp*)
14485 # Just because we use GCC doesn't mean we suddenly get shared libraries
14486 # on systems that don't support them.
14487 lt_prog_compiler_can_build_shared=no
14488 enable_shared=no
14489 ;;
14490
14491 sysv4*MP*)
14492 if test -d /usr/nec; then
14493 lt_prog_compiler_pic=-Kconform_pic
14494 fi
14495 ;;
14496
14497 hpux*)
14498 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14499 # not for PA HP-UX.
14500 case $host_cpu in
14501 hppa*64*|ia64*)
14502 # +Z the default
14503 ;;
14504 *)
14505 lt_prog_compiler_pic='-fPIC'
14506 ;;
14507 esac
14508 ;;
14509
14510 *)
14511 lt_prog_compiler_pic='-fPIC'
14512 ;;
14513 esac
14514 else
14515 # PORTME Check for flag to pass linker flags through the system compiler.
14516 case $host_os in
14517 aix*)
14518 lt_prog_compiler_wl='-Wl,'
14519 if test "$host_cpu" = ia64; then
14520 # AIX 5 now supports IA64 processor
14521 lt_prog_compiler_static='-Bstatic'
14522 else
14523 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14524 fi
14525 ;;
14526 darwin*)
14527 # PIC is the default on this platform
14528 # Common symbols not allowed in MH_DYLIB files
14529 case $cc_basename in
14530 xlc*)
14531 lt_prog_compiler_pic='-qnocommon'
14532 lt_prog_compiler_wl='-Wl,'
14533 ;;
14534 esac
14535 ;;
14536
14537 mingw* | pw32* | os2*)
14538 # This hack is so that the source file can tell whether it is being
14539 # built for inclusion in a dll (and should export symbols for example).
14540 lt_prog_compiler_pic='-DDLL_EXPORT'
14541 ;;
14542
14543 hpux9* | hpux10* | hpux11*)
14544 lt_prog_compiler_wl='-Wl,'
14545 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14546 # not for PA HP-UX.
14547 case $host_cpu in
14548 hppa*64*|ia64*)
14549 # +Z the default
14550 ;;
14551 *)
14552 lt_prog_compiler_pic='+Z'
14553 ;;
14554 esac
14555 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14556 lt_prog_compiler_static='${wl}-a ${wl}archive'
14557 ;;
14558
14559 irix5* | irix6* | nonstopux*)
14560 lt_prog_compiler_wl='-Wl,'
14561 # PIC (with -KPIC) is the default.
14562 lt_prog_compiler_static='-non_shared'
14563 ;;
14564
14565 newsos6)
14566 lt_prog_compiler_pic='-KPIC'
14567 lt_prog_compiler_static='-Bstatic'
14568 ;;
14569
14570 linux*)
14571 case $cc_basename in
14572 icc* | ecc*)
14573 lt_prog_compiler_wl='-Wl,'
14574 lt_prog_compiler_pic='-KPIC'
14575 lt_prog_compiler_static='-static'
14576 ;;
14577 pgcc* | pgf77* | pgf90* | pgf95*)
14578 # Portland Group compilers (*not* the Pentium gcc compiler,
14579 # which looks to be a dead project)
14580 lt_prog_compiler_wl='-Wl,'
14581 lt_prog_compiler_pic='-fpic'
14582 lt_prog_compiler_static='-Bstatic'
14583 ;;
14584 ccc*)
14585 lt_prog_compiler_wl='-Wl,'
14586 # All Alpha code is PIC.
14587 lt_prog_compiler_static='-non_shared'
14588 ;;
14589 esac
14590 ;;
14591
14592 osf3* | osf4* | osf5*)
14593 lt_prog_compiler_wl='-Wl,'
14594 # All OSF/1 code is PIC.
14595 lt_prog_compiler_static='-non_shared'
14596 ;;
14597
14598 solaris*)
14599 lt_prog_compiler_pic='-KPIC'
14600 lt_prog_compiler_static='-Bstatic'
14601 case $cc_basename in
14602 f77* | f90* | f95*)
14603 lt_prog_compiler_wl='-Qoption ld ';;
14604 *)
14605 lt_prog_compiler_wl='-Wl,';;
14606 esac
14607 ;;
14608
14609 sunos4*)
14610 lt_prog_compiler_wl='-Qoption ld '
14611 lt_prog_compiler_pic='-PIC'
14612 lt_prog_compiler_static='-Bstatic'
14613 ;;
14614
14615 sysv4 | sysv4.2uw2* | sysv4.3*)
14616 lt_prog_compiler_wl='-Wl,'
14617 lt_prog_compiler_pic='-KPIC'
14618 lt_prog_compiler_static='-Bstatic'
14619 ;;
14620
14621 sysv4*MP*)
14622 if test -d /usr/nec ;then
14623 lt_prog_compiler_pic='-Kconform_pic'
14624 lt_prog_compiler_static='-Bstatic'
14625 fi
14626 ;;
14627
14628 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14629 lt_prog_compiler_wl='-Wl,'
14630 lt_prog_compiler_pic='-KPIC'
14631 lt_prog_compiler_static='-Bstatic'
14632 ;;
14633
14634 unicos*)
14635 lt_prog_compiler_wl='-Wl,'
14636 lt_prog_compiler_can_build_shared=no
14637 ;;
14638
14639 uts4*)
14640 lt_prog_compiler_pic='-pic'
14641 lt_prog_compiler_static='-Bstatic'
14642 ;;
14643
14644 *)
14645 lt_prog_compiler_can_build_shared=no
14646 ;;
14647 esac
14648 fi
14649
14650{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14651echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14652
14653#
14654# Check to make sure the PIC flag actually works.
14655#
14656if test -n "$lt_prog_compiler_pic"; then
14657
14658{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14659echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14660if test "${lt_prog_compiler_pic_works+set}" = set; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14662else
14663 lt_prog_compiler_pic_works=no
14664 ac_outfile=conftest.$ac_objext
14665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14666 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14667 # Insert the option either (1) after the last *FLAGS variable, or
14668 # (2) before a word containing "conftest.", or (3) at the end.
14669 # Note that $ac_compile itself does not contain backslashes and begins
14670 # with a dollar sign (not a hyphen), so the echo should work correctly.
14671 # The option is referenced via a variable to avoid confusing sed.
14672 lt_compile=`echo "$ac_compile" | $SED \
14673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14675 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky6c58a402009-04-13 04:26:27 +000014676 (eval echo "\"\$as_me:14676: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014677 (eval "$lt_compile" 2>conftest.err)
14678 ac_status=$?
14679 cat conftest.err >&5
Nick Lewycky6c58a402009-04-13 04:26:27 +000014680 echo "$as_me:14680: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014681 if (exit $ac_status) && test -s "$ac_outfile"; then
14682 # The compiler can only warn and ignore the option if not recognized
14683 # So say no if there are warnings other than the usual output.
14684 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14686 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14687 lt_prog_compiler_pic_works=yes
14688 fi
14689 fi
14690 $rm conftest*
14691
14692fi
14693{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14694echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14695
14696if test x"$lt_prog_compiler_pic_works" = xyes; then
14697 case $lt_prog_compiler_pic in
14698 "" | " "*) ;;
14699 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14700 esac
14701else
14702 lt_prog_compiler_pic=
14703 lt_prog_compiler_can_build_shared=no
14704fi
14705
14706fi
14707case $host_os in
14708 # For platforms which do not support PIC, -DPIC is meaningless:
14709 *djgpp*)
14710 lt_prog_compiler_pic=
14711 ;;
14712 *)
14713 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14714 ;;
14715esac
14716
14717#
14718# Check to make sure the static flag actually works.
14719#
14720wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14721{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14722echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14723if test "${lt_prog_compiler_static_works+set}" = set; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14725else
14726 lt_prog_compiler_static_works=no
14727 save_LDFLAGS="$LDFLAGS"
14728 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14729 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14730 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14731 # The linker can only warn and ignore the option if not recognized
14732 # So say no if there are warnings
14733 if test -s conftest.err; then
14734 # Append any errors to the config.log.
14735 cat conftest.err 1>&5
14736 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14738 if diff conftest.exp conftest.er2 >/dev/null; then
14739 lt_prog_compiler_static_works=yes
14740 fi
14741 else
14742 lt_prog_compiler_static_works=yes
14743 fi
14744 fi
14745 $rm conftest*
14746 LDFLAGS="$save_LDFLAGS"
14747
14748fi
14749{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14750echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14751
14752if test x"$lt_prog_compiler_static_works" = xyes; then
14753 :
14754else
14755 lt_prog_compiler_static=
14756fi
14757
14758
14759{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14760echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14761if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14762 echo $ECHO_N "(cached) $ECHO_C" >&6
14763else
14764 lt_cv_prog_compiler_c_o=no
14765 $rm -r conftest 2>/dev/null
14766 mkdir conftest
14767 cd conftest
14768 mkdir out
14769 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14770
14771 lt_compiler_flag="-o out/conftest2.$ac_objext"
14772 # Insert the option either (1) after the last *FLAGS variable, or
14773 # (2) before a word containing "conftest.", or (3) at the end.
14774 # Note that $ac_compile itself does not contain backslashes and begins
14775 # with a dollar sign (not a hyphen), so the echo should work correctly.
14776 lt_compile=`echo "$ac_compile" | $SED \
14777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14779 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky6c58a402009-04-13 04:26:27 +000014780 (eval echo "\"\$as_me:14780: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014781 (eval "$lt_compile" 2>out/conftest.err)
14782 ac_status=$?
14783 cat out/conftest.err >&5
Nick Lewycky6c58a402009-04-13 04:26:27 +000014784 echo "$as_me:14784: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014785 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14786 then
14787 # The compiler can only warn and ignore the option if not recognized
14788 # So say no if there are warnings
14789 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14790 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14791 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14792 lt_cv_prog_compiler_c_o=yes
14793 fi
14794 fi
14795 chmod u+w . 2>&5
14796 $rm conftest*
14797 # SGI C++ compiler will create directory out/ii_files/ for
14798 # template instantiation
14799 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14800 $rm out/* && rmdir out
14801 cd ..
14802 rmdir conftest
14803 $rm conftest*
14804
14805fi
14806{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14807echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14808
14809
14810hard_links="nottested"
14811if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14812 # do not overwrite the value of need_locks provided by the user
14813 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14814echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14815 hard_links=yes
14816 $rm conftest*
14817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14818 touch conftest.a
14819 ln conftest.a conftest.b 2>&5 || hard_links=no
14820 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14821 { echo "$as_me:$LINENO: result: $hard_links" >&5
14822echo "${ECHO_T}$hard_links" >&6; }
14823 if test "$hard_links" = no; then
14824 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14825echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14826 need_locks=warn
14827 fi
14828else
14829 need_locks=no
14830fi
14831
14832{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14833echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14834
14835 runpath_var=
14836 allow_undefined_flag=
14837 enable_shared_with_static_runtimes=no
14838 archive_cmds=
14839 archive_expsym_cmds=
14840 old_archive_From_new_cmds=
14841 old_archive_from_expsyms_cmds=
14842 export_dynamic_flag_spec=
14843 whole_archive_flag_spec=
14844 thread_safe_flag_spec=
14845 hardcode_libdir_flag_spec=
14846 hardcode_libdir_flag_spec_ld=
14847 hardcode_libdir_separator=
14848 hardcode_direct=no
14849 hardcode_minus_L=no
14850 hardcode_shlibpath_var=unsupported
14851 link_all_deplibs=unknown
14852 hardcode_automatic=no
14853 module_cmds=
14854 module_expsym_cmds=
14855 always_export_symbols=no
14856 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14857 # include_expsyms should be a list of space-separated symbols to be *always*
14858 # included in the symbol list
14859 include_expsyms=
14860 # exclude_expsyms can be an extended regexp of symbols to exclude
14861 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14862 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14863 # as well as any symbol that contains `d'.
14864 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14865 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14866 # platforms (ab)use it in PIC code, but their linkers get confused if
14867 # the symbol is explicitly referenced. Since portable code cannot
14868 # rely on this symbol name, it's probably fine to never include it in
14869 # preloaded symbol tables.
14870 extract_expsyms_cmds=
14871 # Just being paranoid about ensuring that cc_basename is set.
14872 for cc_temp in $compiler""; do
14873 case $cc_temp in
14874 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14875 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14876 \-*) ;;
14877 *) break;;
14878 esac
14879done
14880cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14881
14882 case $host_os in
14883 cygwin* | mingw* | pw32*)
14884 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14885 # When not using gcc, we currently assume that we are using
14886 # Microsoft Visual C++.
14887 if test "$GCC" != yes; then
14888 with_gnu_ld=no
14889 fi
14890 ;;
14891 interix*)
14892 # we just hope/assume this is gcc and not c89 (= MSVC++)
14893 with_gnu_ld=yes
14894 ;;
14895 openbsd*)
14896 with_gnu_ld=no
14897 ;;
14898 esac
14899
14900 ld_shlibs=yes
14901 if test "$with_gnu_ld" = yes; then
14902 # If archive_cmds runs LD, not CC, wlarc should be empty
14903 wlarc='${wl}'
14904
14905 # Set some defaults for GNU ld with shared library support. These
14906 # are reset later if shared libraries are not supported. Putting them
14907 # here allows them to be overridden if necessary.
14908 runpath_var=LD_RUN_PATH
14909 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14910 export_dynamic_flag_spec='${wl}--export-dynamic'
14911 # ancient GNU ld didn't support --whole-archive et. al.
14912 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14913 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14914 else
14915 whole_archive_flag_spec=
14916 fi
14917 supports_anon_versioning=no
14918 case `$LD -v 2>/dev/null` in
14919 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14920 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14921 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14922 *\ 2.11.*) ;; # other 2.11 versions
14923 *) supports_anon_versioning=yes ;;
14924 esac
14925
14926 # See if GNU ld supports shared libraries.
14927 case $host_os in
14928 aix3* | aix4* | aix5*)
14929 # On AIX/PPC, the GNU linker is very broken
14930 if test "$host_cpu" != ia64; then
14931 ld_shlibs=no
14932 cat <<EOF 1>&2
14933
14934*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14935*** to be unable to reliably create shared libraries on AIX.
14936*** Therefore, libtool is disabling shared libraries support. If you
14937*** really care for shared libraries, you may want to modify your PATH
14938*** so that a non-GNU linker is found, and then restart.
14939
14940EOF
14941 fi
14942 ;;
14943
14944 amigaos*)
14945 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)'
14946 hardcode_libdir_flag_spec='-L$libdir'
14947 hardcode_minus_L=yes
14948
14949 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14950 # that the semantics of dynamic libraries on AmigaOS, at least up
14951 # to version 4, is to share data among multiple programs linked
14952 # with the same dynamic library. Since this doesn't match the
14953 # behavior of shared libraries on other platforms, we can't use
14954 # them.
14955 ld_shlibs=no
14956 ;;
14957
14958 beos*)
14959 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14960 allow_undefined_flag=unsupported
14961 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14962 # support --undefined. This deserves some investigation. FIXME
14963 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14964 else
14965 ld_shlibs=no
14966 fi
14967 ;;
14968
14969 cygwin* | mingw* | pw32*)
14970 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14971 # as there is no search path for DLLs.
14972 hardcode_libdir_flag_spec='-L$libdir'
14973 allow_undefined_flag=unsupported
14974 always_export_symbols=no
14975 enable_shared_with_static_runtimes=yes
14976 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14977
14978 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14980 # If the export-symbols file already is a .def file (1st line
14981 # is EXPORTS), use it as is; otherwise, prepend...
14982 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14983 cp $export_symbols $output_objdir/$soname.def;
14984 else
14985 echo EXPORTS > $output_objdir/$soname.def;
14986 cat $export_symbols >> $output_objdir/$soname.def;
14987 fi~
14988 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14989 else
14990 ld_shlibs=no
14991 fi
14992 ;;
14993
14994 interix3*)
14995 hardcode_direct=no
14996 hardcode_shlibpath_var=no
14997 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14998 export_dynamic_flag_spec='${wl}-E'
14999 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15000 # Instead, shared libraries are loaded at an image base (0x10000000 by
15001 # default) and relocated if they conflict, which is a slow very memory
15002 # consuming and fragmenting process. To avoid this, we pick a random,
15003 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15004 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15005 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15006 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'
15007 ;;
15008
15009 linux*)
15010 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15011 tmp_addflag=
15012 case $cc_basename,$host_cpu in
15013 pgcc*) # Portland Group C compiler
15014 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'
15015 tmp_addflag=' $pic_flag'
15016 ;;
15017 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15018 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'
15019 tmp_addflag=' $pic_flag -Mnomain' ;;
15020 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15021 tmp_addflag=' -i_dynamic' ;;
15022 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15023 tmp_addflag=' -i_dynamic -nofor_main' ;;
15024 ifc* | ifort*) # Intel Fortran compiler
15025 tmp_addflag=' -nofor_main' ;;
15026 esac
15027 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15028
15029 if test $supports_anon_versioning = yes; then
15030 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15031 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15032 $echo "local: *; };" >> $output_objdir/$libname.ver~
15033 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15034 fi
15035 else
15036 ld_shlibs=no
15037 fi
15038 ;;
15039
15040 netbsd*)
15041 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15042 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15043 wlarc=
15044 else
15045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15046 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15047 fi
15048 ;;
15049
15050 solaris*)
15051 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15052 ld_shlibs=no
15053 cat <<EOF 1>&2
15054
15055*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15056*** create shared libraries on Solaris systems. Therefore, libtool
15057*** is disabling shared libraries support. We urge you to upgrade GNU
15058*** binutils to release 2.9.1 or newer. Another option is to modify
15059*** your PATH or compiler configuration so that the native linker is
15060*** used, and then restart.
15061
15062EOF
15063 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15065 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15066 else
15067 ld_shlibs=no
15068 fi
15069 ;;
15070
15071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15072 case `$LD -v 2>&1` in
15073 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15074 ld_shlibs=no
15075 cat <<_LT_EOF 1>&2
15076
15077*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15078*** reliably create shared libraries on SCO systems. Therefore, libtool
15079*** is disabling shared libraries support. We urge you to upgrade GNU
15080*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15081*** your PATH or compiler configuration so that the native linker is
15082*** used, and then restart.
15083
15084_LT_EOF
15085 ;;
15086 *)
15087 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15088 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15090 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15091 else
15092 ld_shlibs=no
15093 fi
15094 ;;
15095 esac
15096 ;;
15097
15098 sunos4*)
15099 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15100 wlarc=
15101 hardcode_direct=yes
15102 hardcode_shlibpath_var=no
15103 ;;
15104
15105 *)
15106 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15108 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15109 else
15110 ld_shlibs=no
15111 fi
15112 ;;
15113 esac
15114
15115 if test "$ld_shlibs" = no; then
15116 runpath_var=
15117 hardcode_libdir_flag_spec=
15118 export_dynamic_flag_spec=
15119 whole_archive_flag_spec=
15120 fi
15121 else
15122 # PORTME fill in a description of your system's linker (not GNU ld)
15123 case $host_os in
15124 aix3*)
15125 allow_undefined_flag=unsupported
15126 always_export_symbols=yes
15127 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'
15128 # Note: this linker hardcodes the directories in LIBPATH if there
15129 # are no directories specified by -L.
15130 hardcode_minus_L=yes
15131 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15132 # Neither direct hardcoding nor static linking is supported with a
15133 # broken collect2.
15134 hardcode_direct=unsupported
15135 fi
15136 ;;
15137
15138 aix4* | aix5*)
15139 if test "$host_cpu" = ia64; then
15140 # On IA64, the linker does run time linking by default, so we don't
15141 # have to do anything special.
15142 aix_use_runtimelinking=no
15143 exp_sym_flag='-Bexport'
15144 no_entry_flag=""
15145 else
15146 # If we're using GNU nm, then we don't want the "-C" option.
15147 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15148 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15149 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'
15150 else
15151 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'
15152 fi
15153 aix_use_runtimelinking=no
15154
15155 # Test if we are trying to use run time linking or normal
15156 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15157 # need to do runtime linking.
15158 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15159 for ld_flag in $LDFLAGS; do
15160 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15161 aix_use_runtimelinking=yes
15162 break
15163 fi
15164 done
15165 ;;
15166 esac
15167
15168 exp_sym_flag='-bexport'
15169 no_entry_flag='-bnoentry'
15170 fi
15171
15172 # When large executables or shared objects are built, AIX ld can
15173 # have problems creating the table of contents. If linking a library
15174 # or program results in "error TOC overflow" add -mminimal-toc to
15175 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15176 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15177
15178 archive_cmds=''
15179 hardcode_direct=yes
15180 hardcode_libdir_separator=':'
15181 link_all_deplibs=yes
15182
15183 if test "$GCC" = yes; then
15184 case $host_os in aix4.[012]|aix4.[012].*)
15185 # We only want to do this on AIX 4.2 and lower, the check
15186 # below for broken collect2 doesn't work under 4.3+
15187 collect2name=`${CC} -print-prog-name=collect2`
15188 if test -f "$collect2name" && \
15189 strings "$collect2name" | grep resolve_lib_name >/dev/null
15190 then
15191 # We have reworked collect2
15192 hardcode_direct=yes
15193 else
15194 # We have old collect2
15195 hardcode_direct=unsupported
15196 # It fails to find uninstalled libraries when the uninstalled
15197 # path is not listed in the libpath. Setting hardcode_minus_L
15198 # to unsupported forces relinking
15199 hardcode_minus_L=yes
15200 hardcode_libdir_flag_spec='-L$libdir'
15201 hardcode_libdir_separator=
15202 fi
15203 ;;
15204 esac
15205 shared_flag='-shared'
15206 if test "$aix_use_runtimelinking" = yes; then
15207 shared_flag="$shared_flag "'${wl}-G'
15208 fi
15209 else
15210 # not using gcc
15211 if test "$host_cpu" = ia64; then
15212 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15213 # chokes on -Wl,-G. The following line is correct:
15214 shared_flag='-G'
15215 else
15216 if test "$aix_use_runtimelinking" = yes; then
15217 shared_flag='${wl}-G'
15218 else
15219 shared_flag='${wl}-bM:SRE'
15220 fi
15221 fi
15222 fi
15223
15224 # It seems that -bexpall does not export symbols beginning with
15225 # underscore (_), so it is better to generate a list of symbols to export.
15226 always_export_symbols=yes
15227 if test "$aix_use_runtimelinking" = yes; then
15228 # Warning - without using the other runtime loading flags (-brtl),
15229 # -berok will link without error, but may produce a broken library.
15230 allow_undefined_flag='-berok'
15231 # Determine the default libpath from the value encoded in an empty executable.
15232 cat >conftest.$ac_ext <<_ACEOF
15233/* confdefs.h. */
15234_ACEOF
15235cat confdefs.h >>conftest.$ac_ext
15236cat >>conftest.$ac_ext <<_ACEOF
15237/* end confdefs.h. */
15238
15239int
15240main ()
15241{
15242
15243 ;
15244 return 0;
15245}
15246_ACEOF
15247rm -f conftest.$ac_objext conftest$ac_exeext
15248if { (ac_try="$ac_link"
15249case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15252esac
15253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_link") 2>conftest.er1
15255 ac_status=$?
15256 grep -v '^ *+' conftest.er1 >conftest.err
15257 rm -f conftest.er1
15258 cat conftest.err >&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000015260 (exit $ac_status); } &&
15261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15262 { (case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15265esac
15266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_try") 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; } &&
15271 { ac_try='test -s conftest$ac_exeext'
15272 { (case "(($ac_try" in
15273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274 *) ac_try_echo=$ac_try;;
15275esac
15276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_try") 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015281
15282aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15283}'`
15284# Check for a 64-bit object if we didn't find anything.
15285if 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; }
15286}'`; fi
15287else
15288 echo "$as_me: failed program was:" >&5
15289sed 's/^/| /' conftest.$ac_ext >&5
15290
15291
15292fi
15293
Tanya Lattner3fa4a442009-01-22 05:17:59 +000015294rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015295 conftest$ac_exeext conftest.$ac_ext
15296if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15297
15298 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15299 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"
15300 else
15301 if test "$host_cpu" = ia64; then
15302 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15303 allow_undefined_flag="-z nodefs"
15304 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"
15305 else
15306 # Determine the default libpath from the value encoded in an empty executable.
15307 cat >conftest.$ac_ext <<_ACEOF
15308/* confdefs.h. */
15309_ACEOF
15310cat confdefs.h >>conftest.$ac_ext
15311cat >>conftest.$ac_ext <<_ACEOF
15312/* end confdefs.h. */
15313
15314int
15315main ()
15316{
15317
15318 ;
15319 return 0;
15320}
15321_ACEOF
15322rm -f conftest.$ac_objext conftest$ac_exeext
15323if { (ac_try="$ac_link"
15324case "(($ac_try" in
15325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326 *) ac_try_echo=$ac_try;;
15327esac
15328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15329 (eval "$ac_link") 2>conftest.er1
15330 ac_status=$?
15331 grep -v '^ *+' conftest.er1 >conftest.err
15332 rm -f conftest.er1
15333 cat conftest.err >&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000015335 (exit $ac_status); } &&
15336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15337 { (case "(($ac_try" in
15338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339 *) ac_try_echo=$ac_try;;
15340esac
15341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342 (eval "$ac_try") 2>&5
15343 ac_status=$?
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); }; } &&
15346 { ac_try='test -s conftest$ac_exeext'
15347 { (case "(($ac_try" in
15348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15350esac
15351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352 (eval "$ac_try") 2>&5
15353 ac_status=$?
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015356
15357aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15358}'`
15359# Check for a 64-bit object if we didn't find anything.
15360if 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; }
15361}'`; fi
15362else
15363 echo "$as_me: failed program was:" >&5
15364sed 's/^/| /' conftest.$ac_ext >&5
15365
15366
15367fi
15368
Tanya Lattner3fa4a442009-01-22 05:17:59 +000015369rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015370 conftest$ac_exeext conftest.$ac_ext
15371if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15372
15373 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15374 # Warning - without using the other run time loading flags,
15375 # -berok will link without error, but may produce a broken library.
15376 no_undefined_flag=' ${wl}-bernotok'
15377 allow_undefined_flag=' ${wl}-berok'
15378 # Exported symbols can be pulled into shared objects from archives
15379 whole_archive_flag_spec='$convenience'
15380 archive_cmds_need_lc=yes
15381 # This is similar to how AIX traditionally builds its shared libraries.
15382 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'
15383 fi
15384 fi
15385 ;;
15386
15387 amigaos*)
15388 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)'
15389 hardcode_libdir_flag_spec='-L$libdir'
15390 hardcode_minus_L=yes
15391 # see comment about different semantics on the GNU ld section
15392 ld_shlibs=no
15393 ;;
15394
15395 bsdi[45]*)
15396 export_dynamic_flag_spec=-rdynamic
15397 ;;
15398
15399 cygwin* | mingw* | pw32*)
15400 # When not using gcc, we currently assume that we are using
15401 # Microsoft Visual C++.
15402 # hardcode_libdir_flag_spec is actually meaningless, as there is
15403 # no search path for DLLs.
15404 hardcode_libdir_flag_spec=' '
15405 allow_undefined_flag=unsupported
15406 # Tell ltmain to make .lib files, not .a files.
15407 libext=lib
15408 # Tell ltmain to make .dll files, not .so files.
15409 shrext_cmds=".dll"
15410 # FIXME: Setting linknames here is a bad hack.
15411 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15412 # The linker will automatically build a .lib file if we build a DLL.
15413 old_archive_From_new_cmds='true'
15414 # FIXME: Should let the user specify the lib program.
15415 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15416 fix_srcfile_path='`cygpath -w "$srcfile"`'
15417 enable_shared_with_static_runtimes=yes
15418 ;;
15419
15420 darwin* | rhapsody*)
15421 case $host_os in
15422 rhapsody* | darwin1.[012])
15423 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15424 ;;
15425 *) # Darwin 1.3 on
15426 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15427 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15428 else
15429 case ${MACOSX_DEPLOYMENT_TARGET} in
15430 10.[012])
15431 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15432 ;;
15433 10.*)
15434 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15435 ;;
15436 esac
15437 fi
15438 ;;
15439 esac
15440 archive_cmds_need_lc=no
15441 hardcode_direct=no
15442 hardcode_automatic=yes
15443 hardcode_shlibpath_var=unsupported
15444 whole_archive_flag_spec=''
15445 link_all_deplibs=yes
15446 if test "$GCC" = yes ; then
15447 output_verbose_link_cmd='echo'
15448 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15449 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15450 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15451 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}'
15452 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}'
15453 else
15454 case $cc_basename in
15455 xlc*)
15456 output_verbose_link_cmd='echo'
15457 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15458 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15459 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15460 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}'
15461 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}'
15462 ;;
15463 *)
15464 ld_shlibs=no
15465 ;;
15466 esac
15467 fi
15468 ;;
15469
15470 dgux*)
15471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15472 hardcode_libdir_flag_spec='-L$libdir'
15473 hardcode_shlibpath_var=no
15474 ;;
15475
15476 freebsd1*)
15477 ld_shlibs=no
15478 ;;
15479
15480 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15481 # support. Future versions do this automatically, but an explicit c++rt0.o
15482 # does not break anything, and helps significantly (at the cost of a little
15483 # extra space).
15484 freebsd2.2*)
15485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15486 hardcode_libdir_flag_spec='-R$libdir'
15487 hardcode_direct=yes
15488 hardcode_shlibpath_var=no
15489 ;;
15490
15491 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15492 freebsd2*)
15493 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15494 hardcode_direct=yes
15495 hardcode_minus_L=yes
15496 hardcode_shlibpath_var=no
15497 ;;
15498
15499 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15500 freebsd* | kfreebsd*-gnu | dragonfly*)
15501 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15502 hardcode_libdir_flag_spec='-R$libdir'
15503 hardcode_direct=yes
15504 hardcode_shlibpath_var=no
15505 ;;
15506
15507 hpux9*)
15508 if test "$GCC" = yes; then
15509 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'
15510 else
15511 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'
15512 fi
15513 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15514 hardcode_libdir_separator=:
15515 hardcode_direct=yes
15516
15517 # hardcode_minus_L: Not really in the search PATH,
15518 # but as the default location of the library.
15519 hardcode_minus_L=yes
15520 export_dynamic_flag_spec='${wl}-E'
15521 ;;
15522
15523 hpux10*)
15524 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15525 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15526 else
15527 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15528 fi
15529 if test "$with_gnu_ld" = no; then
15530 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15531 hardcode_libdir_separator=:
15532
15533 hardcode_direct=yes
15534 export_dynamic_flag_spec='${wl}-E'
15535
15536 # hardcode_minus_L: Not really in the search PATH,
15537 # but as the default location of the library.
15538 hardcode_minus_L=yes
15539 fi
15540 ;;
15541
15542 hpux11*)
15543 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15544 case $host_cpu in
15545 hppa*64*)
15546 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15547 ;;
15548 ia64*)
15549 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15550 ;;
15551 *)
15552 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15553 ;;
15554 esac
15555 else
15556 case $host_cpu in
15557 hppa*64*)
15558 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15559 ;;
15560 ia64*)
15561 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15562 ;;
15563 *)
15564 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15565 ;;
15566 esac
15567 fi
15568 if test "$with_gnu_ld" = no; then
15569 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15570 hardcode_libdir_separator=:
15571
15572 case $host_cpu in
15573 hppa*64*|ia64*)
15574 hardcode_libdir_flag_spec_ld='+b $libdir'
15575 hardcode_direct=no
15576 hardcode_shlibpath_var=no
15577 ;;
15578 *)
15579 hardcode_direct=yes
15580 export_dynamic_flag_spec='${wl}-E'
15581
15582 # hardcode_minus_L: Not really in the search PATH,
15583 # but as the default location of the library.
15584 hardcode_minus_L=yes
15585 ;;
15586 esac
15587 fi
15588 ;;
15589
15590 irix5* | irix6* | nonstopux*)
15591 if test "$GCC" = yes; then
15592 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'
15593 else
15594 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'
15595 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15596 fi
15597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15598 hardcode_libdir_separator=:
15599 link_all_deplibs=yes
15600 ;;
15601
15602 netbsd*)
15603 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15605 else
15606 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15607 fi
15608 hardcode_libdir_flag_spec='-R$libdir'
15609 hardcode_direct=yes
15610 hardcode_shlibpath_var=no
15611 ;;
15612
15613 newsos6)
15614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15615 hardcode_direct=yes
15616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15617 hardcode_libdir_separator=:
15618 hardcode_shlibpath_var=no
15619 ;;
15620
15621 openbsd*)
15622 hardcode_direct=yes
15623 hardcode_shlibpath_var=no
15624 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15625 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15626 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15627 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15628 export_dynamic_flag_spec='${wl}-E'
15629 else
15630 case $host_os in
15631 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15633 hardcode_libdir_flag_spec='-R$libdir'
15634 ;;
15635 *)
15636 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15637 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15638 ;;
15639 esac
15640 fi
15641 ;;
15642
15643 os2*)
15644 hardcode_libdir_flag_spec='-L$libdir'
15645 hardcode_minus_L=yes
15646 allow_undefined_flag=unsupported
15647 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'
15648 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15649 ;;
15650
15651 osf3*)
15652 if test "$GCC" = yes; then
15653 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15654 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'
15655 else
15656 allow_undefined_flag=' -expect_unresolved \*'
15657 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'
15658 fi
15659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15660 hardcode_libdir_separator=:
15661 ;;
15662
15663 osf4* | osf5*) # as osf3* with the addition of -msym flag
15664 if test "$GCC" = yes; then
15665 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15666 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'
15667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15668 else
15669 allow_undefined_flag=' -expect_unresolved \*'
15670 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'
15671 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15672 $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'
15673
15674 # Both c and cxx compiler support -rpath directly
15675 hardcode_libdir_flag_spec='-rpath $libdir'
15676 fi
15677 hardcode_libdir_separator=:
15678 ;;
15679
15680 solaris*)
15681 no_undefined_flag=' -z text'
15682 if test "$GCC" = yes; then
15683 wlarc='${wl}'
15684 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15685 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15686 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15687 else
15688 wlarc=''
15689 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15690 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15691 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15692 fi
15693 hardcode_libdir_flag_spec='-R$libdir'
15694 hardcode_shlibpath_var=no
15695 case $host_os in
15696 solaris2.[0-5] | solaris2.[0-5].*) ;;
15697 *)
15698 # The compiler driver will combine linker options so we
15699 # cannot just pass the convience library names through
15700 # without $wl, iff we do not link with $LD.
15701 # Luckily, gcc supports the same syntax we need for Sun Studio.
15702 # Supported since Solaris 2.6 (maybe 2.5.1?)
15703 case $wlarc in
15704 '')
15705 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15706 *)
15707 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' ;;
15708 esac ;;
15709 esac
15710 link_all_deplibs=yes
15711 ;;
15712
15713 sunos4*)
15714 if test "x$host_vendor" = xsequent; then
15715 # Use $CC to link under sequent, because it throws in some extra .o
15716 # files that make .init and .fini sections work.
15717 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15718 else
15719 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15720 fi
15721 hardcode_libdir_flag_spec='-L$libdir'
15722 hardcode_direct=yes
15723 hardcode_minus_L=yes
15724 hardcode_shlibpath_var=no
15725 ;;
15726
15727 sysv4)
15728 case $host_vendor in
15729 sni)
15730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15731 hardcode_direct=yes # is this really true???
15732 ;;
15733 siemens)
15734 ## LD is ld it makes a PLAMLIB
15735 ## CC just makes a GrossModule.
15736 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15737 reload_cmds='$CC -r -o $output$reload_objs'
15738 hardcode_direct=no
15739 ;;
15740 motorola)
15741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15742 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15743 ;;
15744 esac
15745 runpath_var='LD_RUN_PATH'
15746 hardcode_shlibpath_var=no
15747 ;;
15748
15749 sysv4.3*)
15750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15751 hardcode_shlibpath_var=no
15752 export_dynamic_flag_spec='-Bexport'
15753 ;;
15754
15755 sysv4*MP*)
15756 if test -d /usr/nec; then
15757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15758 hardcode_shlibpath_var=no
15759 runpath_var=LD_RUN_PATH
15760 hardcode_runpath_var=yes
15761 ld_shlibs=yes
15762 fi
15763 ;;
15764
15765 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15766 no_undefined_flag='${wl}-z,text'
15767 archive_cmds_need_lc=no
15768 hardcode_shlibpath_var=no
15769 runpath_var='LD_RUN_PATH'
15770
15771 if test "$GCC" = yes; then
15772 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15773 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15774 else
15775 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15776 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15777 fi
15778 ;;
15779
15780 sysv5* | sco3.2v5* | sco5v6*)
15781 # Note: We can NOT use -z defs as we might desire, because we do not
15782 # link with -lc, and that would cause any symbols used from libc to
15783 # always be unresolved, which means just about no library would
15784 # ever link correctly. If we're not using GNU ld we use -z text
15785 # though, which does catch some bad symbols but isn't as heavy-handed
15786 # as -z defs.
15787 no_undefined_flag='${wl}-z,text'
15788 allow_undefined_flag='${wl}-z,nodefs'
15789 archive_cmds_need_lc=no
15790 hardcode_shlibpath_var=no
15791 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15792 hardcode_libdir_separator=':'
15793 link_all_deplibs=yes
15794 export_dynamic_flag_spec='${wl}-Bexport'
15795 runpath_var='LD_RUN_PATH'
15796
15797 if test "$GCC" = yes; then
15798 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15799 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15800 else
15801 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15802 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15803 fi
15804 ;;
15805
15806 uts4*)
15807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15808 hardcode_libdir_flag_spec='-L$libdir'
15809 hardcode_shlibpath_var=no
15810 ;;
15811
15812 *)
15813 ld_shlibs=no
15814 ;;
15815 esac
15816 fi
15817
15818{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15819echo "${ECHO_T}$ld_shlibs" >&6; }
15820test "$ld_shlibs" = no && can_build_shared=no
15821
15822#
15823# Do we need to explicitly link libc?
15824#
15825case "x$archive_cmds_need_lc" in
15826x|xyes)
15827 # Assume -lc should be added
15828 archive_cmds_need_lc=yes
15829
15830 if test "$enable_shared" = yes && test "$GCC" = yes; then
15831 case $archive_cmds in
15832 *'~'*)
15833 # FIXME: we may have to deal with multi-command sequences.
15834 ;;
15835 '$CC '*)
15836 # Test whether the compiler implicitly links with -lc since on some
15837 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15838 # to ld, don't add -lc before -lgcc.
15839 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15840echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15841 $rm conftest*
15842 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15843
15844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15845 (eval $ac_compile) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } 2>conftest.err; then
15849 soname=conftest
15850 lib=conftest
15851 libobjs=conftest.$ac_objext
15852 deplibs=
15853 wl=$lt_prog_compiler_wl
15854 pic_flag=$lt_prog_compiler_pic
15855 compiler_flags=-v
15856 linker_flags=-v
15857 verstring=
15858 output_objdir=.
15859 libname=conftest
15860 lt_save_allow_undefined_flag=$allow_undefined_flag
15861 allow_undefined_flag=
15862 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15863 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15864 ac_status=$?
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }
15867 then
15868 archive_cmds_need_lc=no
15869 else
15870 archive_cmds_need_lc=yes
15871 fi
15872 allow_undefined_flag=$lt_save_allow_undefined_flag
15873 else
15874 cat conftest.err 1>&5
15875 fi
15876 $rm conftest*
15877 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15878echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15879 ;;
15880 esac
15881 fi
15882 ;;
15883esac
15884
15885{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15886echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15887library_names_spec=
15888libname_spec='lib$name'
15889soname_spec=
15890shrext_cmds=".so"
15891postinstall_cmds=
15892postuninstall_cmds=
15893finish_cmds=
15894finish_eval=
15895shlibpath_var=
15896shlibpath_overrides_runpath=unknown
15897version_type=none
15898dynamic_linker="$host_os ld.so"
15899sys_lib_dlsearch_path_spec="/lib /usr/lib"
15900if test "$GCC" = yes; then
15901 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15902 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15903 # if the path contains ";" then we assume it to be the separator
15904 # otherwise default to the standard path separator (i.e. ":") - it is
15905 # assumed that no part of a normal pathname contains ";" but that should
15906 # okay in the real world where ";" in dirpaths is itself problematic.
15907 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15908 else
15909 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15910 fi
15911else
15912 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15913fi
15914need_lib_prefix=unknown
15915hardcode_into_libs=no
15916
15917# when you set need_version to no, make sure it does not cause -set_version
15918# flags to be left without arguments
15919need_version=unknown
15920
15921case $host_os in
15922aix3*)
15923 version_type=linux
15924 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15925 shlibpath_var=LIBPATH
15926
15927 # AIX 3 has no versioning support, so we append a major version to the name.
15928 soname_spec='${libname}${release}${shared_ext}$major'
15929 ;;
15930
15931aix4* | aix5*)
15932 version_type=linux
15933 need_lib_prefix=no
15934 need_version=no
15935 hardcode_into_libs=yes
15936 if test "$host_cpu" = ia64; then
15937 # AIX 5 supports IA64
15938 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15939 shlibpath_var=LD_LIBRARY_PATH
15940 else
15941 # With GCC up to 2.95.x, collect2 would create an import file
15942 # for dependence libraries. The import file would start with
15943 # the line `#! .'. This would cause the generated library to
15944 # depend on `.', always an invalid library. This was fixed in
15945 # development snapshots of GCC prior to 3.0.
15946 case $host_os in
15947 aix4 | aix4.[01] | aix4.[01].*)
15948 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15949 echo ' yes '
15950 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15951 :
15952 else
15953 can_build_shared=no
15954 fi
15955 ;;
15956 esac
15957 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15958 # soname into executable. Probably we can add versioning support to
15959 # collect2, so additional links can be useful in future.
15960 if test "$aix_use_runtimelinking" = yes; then
15961 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15962 # instead of lib<name>.a to let people know that these are not
15963 # typical AIX shared libraries.
15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15965 else
15966 # We preserve .a as extension for shared libraries through AIX4.2
15967 # and later when we are not doing run time linking.
15968 library_names_spec='${libname}${release}.a $libname.a'
15969 soname_spec='${libname}${release}${shared_ext}$major'
15970 fi
15971 shlibpath_var=LIBPATH
15972 fi
15973 ;;
15974
15975amigaos*)
15976 library_names_spec='$libname.ixlibrary $libname.a'
15977 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15978 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'
15979 ;;
15980
15981beos*)
15982 library_names_spec='${libname}${shared_ext}'
15983 dynamic_linker="$host_os ld.so"
15984 shlibpath_var=LIBRARY_PATH
15985 ;;
15986
15987bsdi[45]*)
15988 version_type=linux
15989 need_version=no
15990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15991 soname_spec='${libname}${release}${shared_ext}$major'
15992 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15993 shlibpath_var=LD_LIBRARY_PATH
15994 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15995 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15996 # the default ld.so.conf also contains /usr/contrib/lib and
15997 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15998 # libtool to hard-code these into programs
15999 ;;
16000
16001cygwin* | mingw* | pw32*)
16002 version_type=windows
16003 shrext_cmds=".dll"
16004 need_version=no
16005 need_lib_prefix=no
16006
16007 case $GCC,$host_os in
16008 yes,cygwin* | yes,mingw* | yes,pw32*)
16009 library_names_spec='$libname.dll.a'
16010 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16011 postinstall_cmds='base_file=`basename \${file}`~
16012 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16013 dldir=$destdir/`dirname \$dlpath`~
16014 test -d \$dldir || mkdir -p \$dldir~
16015 $install_prog $dir/$dlname \$dldir/$dlname~
16016 chmod a+x \$dldir/$dlname'
16017 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16018 dlpath=$dir/\$dldll~
16019 $rm \$dlpath'
16020 shlibpath_overrides_runpath=yes
16021
16022 case $host_os in
16023 cygwin*)
16024 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16025 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16026 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16027 ;;
16028 mingw*)
16029 # MinGW DLLs use traditional 'lib' prefix
16030 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16031 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16032 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16033 # It is most probably a Windows format PATH printed by
16034 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16035 # path with ; separators, and with drive letters. We can handle the
16036 # drive letters (cygwin fileutils understands them), so leave them,
16037 # especially as we might pass files found there to a mingw objdump,
16038 # which wouldn't understand a cygwinified path. Ahh.
16039 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16040 else
16041 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16042 fi
16043 ;;
16044 pw32*)
16045 # pw32 DLLs use 'pw' prefix rather than 'lib'
16046 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16047 ;;
16048 esac
16049 ;;
16050
16051 *)
16052 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16053 ;;
16054 esac
16055 dynamic_linker='Win32 ld.exe'
16056 # FIXME: first we should search . and the directory the executable is in
16057 shlibpath_var=PATH
16058 ;;
16059
16060darwin* | rhapsody*)
16061 dynamic_linker="$host_os dyld"
16062 version_type=darwin
16063 need_lib_prefix=no
16064 need_version=no
16065 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16066 soname_spec='${libname}${release}${major}$shared_ext'
16067 shlibpath_overrides_runpath=yes
16068 shlibpath_var=DYLD_LIBRARY_PATH
16069 shrext_cmds='.dylib'
16070 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16071 if test "$GCC" = yes; then
16072 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"`
16073 else
16074 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16075 fi
16076 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16077 ;;
16078
16079dgux*)
16080 version_type=linux
16081 need_lib_prefix=no
16082 need_version=no
16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16084 soname_spec='${libname}${release}${shared_ext}$major'
16085 shlibpath_var=LD_LIBRARY_PATH
16086 ;;
16087
16088freebsd1*)
16089 dynamic_linker=no
16090 ;;
16091
16092kfreebsd*-gnu)
16093 version_type=linux
16094 need_lib_prefix=no
16095 need_version=no
16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16097 soname_spec='${libname}${release}${shared_ext}$major'
16098 shlibpath_var=LD_LIBRARY_PATH
16099 shlibpath_overrides_runpath=no
16100 hardcode_into_libs=yes
16101 dynamic_linker='GNU ld.so'
16102 ;;
16103
16104freebsd* | dragonfly*)
16105 # DragonFly does not have aout. When/if they implement a new
16106 # versioning mechanism, adjust this.
16107 if test -x /usr/bin/objformat; then
16108 objformat=`/usr/bin/objformat`
16109 else
16110 case $host_os in
16111 freebsd[123]*) objformat=aout ;;
16112 *) objformat=elf ;;
16113 esac
16114 fi
16115 version_type=freebsd-$objformat
16116 case $version_type in
16117 freebsd-elf*)
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16119 need_version=no
16120 need_lib_prefix=no
16121 ;;
16122 freebsd-*)
16123 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16124 need_version=yes
16125 ;;
16126 esac
16127 shlibpath_var=LD_LIBRARY_PATH
16128 case $host_os in
16129 freebsd2*)
16130 shlibpath_overrides_runpath=yes
16131 ;;
16132 freebsd3.[01]* | freebsdelf3.[01]*)
16133 shlibpath_overrides_runpath=yes
16134 hardcode_into_libs=yes
16135 ;;
16136 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16137 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16138 shlibpath_overrides_runpath=no
16139 hardcode_into_libs=yes
16140 ;;
16141 freebsd*) # from 4.6 on
16142 shlibpath_overrides_runpath=yes
16143 hardcode_into_libs=yes
16144 ;;
16145 esac
16146 ;;
16147
16148gnu*)
16149 version_type=linux
16150 need_lib_prefix=no
16151 need_version=no
16152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16153 soname_spec='${libname}${release}${shared_ext}$major'
16154 shlibpath_var=LD_LIBRARY_PATH
16155 hardcode_into_libs=yes
16156 ;;
16157
16158hpux9* | hpux10* | hpux11*)
16159 # Give a soname corresponding to the major version so that dld.sl refuses to
16160 # link against other versions.
16161 version_type=sunos
16162 need_lib_prefix=no
16163 need_version=no
16164 case $host_cpu in
16165 ia64*)
16166 shrext_cmds='.so'
16167 hardcode_into_libs=yes
16168 dynamic_linker="$host_os dld.so"
16169 shlibpath_var=LD_LIBRARY_PATH
16170 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16172 soname_spec='${libname}${release}${shared_ext}$major'
16173 if test "X$HPUX_IA64_MODE" = X32; then
16174 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16175 else
16176 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16177 fi
16178 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16179 ;;
16180 hppa*64*)
16181 shrext_cmds='.sl'
16182 hardcode_into_libs=yes
16183 dynamic_linker="$host_os dld.sl"
16184 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16185 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16187 soname_spec='${libname}${release}${shared_ext}$major'
16188 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16190 ;;
16191 *)
16192 shrext_cmds='.sl'
16193 dynamic_linker="$host_os dld.sl"
16194 shlibpath_var=SHLIB_PATH
16195 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16197 soname_spec='${libname}${release}${shared_ext}$major'
16198 ;;
16199 esac
16200 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16201 postinstall_cmds='chmod 555 $lib'
16202 ;;
16203
16204interix3*)
16205 version_type=linux
16206 need_lib_prefix=no
16207 need_version=no
16208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16209 soname_spec='${libname}${release}${shared_ext}$major'
16210 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16211 shlibpath_var=LD_LIBRARY_PATH
16212 shlibpath_overrides_runpath=no
16213 hardcode_into_libs=yes
16214 ;;
16215
16216irix5* | irix6* | nonstopux*)
16217 case $host_os in
16218 nonstopux*) version_type=nonstopux ;;
16219 *)
16220 if test "$lt_cv_prog_gnu_ld" = yes; then
16221 version_type=linux
16222 else
16223 version_type=irix
16224 fi ;;
16225 esac
16226 need_lib_prefix=no
16227 need_version=no
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16230 case $host_os in
16231 irix5* | nonstopux*)
16232 libsuff= shlibsuff=
16233 ;;
16234 *)
16235 case $LD in # libtool.m4 will add one of these switches to LD
16236 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16237 libsuff= shlibsuff= libmagic=32-bit;;
16238 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16239 libsuff=32 shlibsuff=N32 libmagic=N32;;
16240 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16241 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16242 *) libsuff= shlibsuff= libmagic=never-match;;
16243 esac
16244 ;;
16245 esac
16246 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16247 shlibpath_overrides_runpath=no
16248 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16249 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16250 hardcode_into_libs=yes
16251 ;;
16252
16253# No shared lib support for Linux oldld, aout, or coff.
16254linux*oldld* | linux*aout* | linux*coff*)
16255 dynamic_linker=no
16256 ;;
16257
16258# This must be Linux ELF.
16259linux*)
16260 version_type=linux
16261 need_lib_prefix=no
16262 need_version=no
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264 soname_spec='${libname}${release}${shared_ext}$major'
16265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16266 shlibpath_var=LD_LIBRARY_PATH
16267 shlibpath_overrides_runpath=no
16268 # This implies no fast_install, which is unacceptable.
16269 # Some rework will be needed to allow for fast_install
16270 # before this can be enabled.
16271 hardcode_into_libs=yes
16272
16273 # Append ld.so.conf contents to the search path
16274 if test -f /etc/ld.so.conf; then
16275 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' ' '`
16276 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16277 fi
16278
16279 # We used to test for /lib/ld.so.1 and disable shared libraries on
16280 # powerpc, because MkLinux only supported shared libraries with the
16281 # GNU dynamic linker. Since this was broken with cross compilers,
16282 # most powerpc-linux boxes support dynamic linking these days and
16283 # people can always --disable-shared, the test was removed, and we
16284 # assume the GNU/Linux dynamic linker is in use.
16285 dynamic_linker='GNU/Linux ld.so'
16286 ;;
16287
16288knetbsd*-gnu)
16289 version_type=linux
16290 need_lib_prefix=no
16291 need_version=no
16292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16293 soname_spec='${libname}${release}${shared_ext}$major'
16294 shlibpath_var=LD_LIBRARY_PATH
16295 shlibpath_overrides_runpath=no
16296 hardcode_into_libs=yes
16297 dynamic_linker='GNU ld.so'
16298 ;;
16299
16300netbsd*)
16301 version_type=sunos
16302 need_lib_prefix=no
16303 need_version=no
16304 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16307 dynamic_linker='NetBSD (a.out) ld.so'
16308 else
16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16310 soname_spec='${libname}${release}${shared_ext}$major'
16311 dynamic_linker='NetBSD ld.elf_so'
16312 fi
16313 shlibpath_var=LD_LIBRARY_PATH
16314 shlibpath_overrides_runpath=yes
16315 hardcode_into_libs=yes
16316 ;;
16317
16318newsos6)
16319 version_type=linux
16320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16321 shlibpath_var=LD_LIBRARY_PATH
16322 shlibpath_overrides_runpath=yes
16323 ;;
16324
16325nto-qnx*)
16326 version_type=linux
16327 need_lib_prefix=no
16328 need_version=no
16329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16330 soname_spec='${libname}${release}${shared_ext}$major'
16331 shlibpath_var=LD_LIBRARY_PATH
16332 shlibpath_overrides_runpath=yes
16333 ;;
16334
16335openbsd*)
16336 version_type=sunos
16337 sys_lib_dlsearch_path_spec="/usr/lib"
16338 need_lib_prefix=no
16339 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16340 case $host_os in
16341 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16342 *) need_version=no ;;
16343 esac
16344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16346 shlibpath_var=LD_LIBRARY_PATH
16347 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16348 case $host_os in
16349 openbsd2.[89] | openbsd2.[89].*)
16350 shlibpath_overrides_runpath=no
16351 ;;
16352 *)
16353 shlibpath_overrides_runpath=yes
16354 ;;
16355 esac
16356 else
16357 shlibpath_overrides_runpath=yes
16358 fi
16359 ;;
16360
16361os2*)
16362 libname_spec='$name'
16363 shrext_cmds=".dll"
16364 need_lib_prefix=no
16365 library_names_spec='$libname${shared_ext} $libname.a'
16366 dynamic_linker='OS/2 ld.exe'
16367 shlibpath_var=LIBPATH
16368 ;;
16369
16370osf3* | osf4* | osf5*)
16371 version_type=osf
16372 need_lib_prefix=no
16373 need_version=no
16374 soname_spec='${libname}${release}${shared_ext}$major'
16375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16376 shlibpath_var=LD_LIBRARY_PATH
16377 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16378 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16379 ;;
16380
16381solaris*)
16382 version_type=linux
16383 need_lib_prefix=no
16384 need_version=no
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16386 soname_spec='${libname}${release}${shared_ext}$major'
16387 shlibpath_var=LD_LIBRARY_PATH
16388 shlibpath_overrides_runpath=yes
16389 hardcode_into_libs=yes
16390 # ldd complains unless libraries are executable
16391 postinstall_cmds='chmod +x $lib'
16392 ;;
16393
16394sunos4*)
16395 version_type=sunos
16396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16397 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16398 shlibpath_var=LD_LIBRARY_PATH
16399 shlibpath_overrides_runpath=yes
16400 if test "$with_gnu_ld" = yes; then
16401 need_lib_prefix=no
16402 fi
16403 need_version=yes
16404 ;;
16405
16406sysv4 | sysv4.3*)
16407 version_type=linux
16408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16409 soname_spec='${libname}${release}${shared_ext}$major'
16410 shlibpath_var=LD_LIBRARY_PATH
16411 case $host_vendor in
16412 sni)
16413 shlibpath_overrides_runpath=no
16414 need_lib_prefix=no
16415 export_dynamic_flag_spec='${wl}-Blargedynsym'
16416 runpath_var=LD_RUN_PATH
16417 ;;
16418 siemens)
16419 need_lib_prefix=no
16420 ;;
16421 motorola)
16422 need_lib_prefix=no
16423 need_version=no
16424 shlibpath_overrides_runpath=no
16425 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16426 ;;
16427 esac
16428 ;;
16429
16430sysv4*MP*)
16431 if test -d /usr/nec ;then
16432 version_type=linux
16433 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16434 soname_spec='$libname${shared_ext}.$major'
16435 shlibpath_var=LD_LIBRARY_PATH
16436 fi
16437 ;;
16438
16439sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16440 version_type=freebsd-elf
16441 need_lib_prefix=no
16442 need_version=no
16443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16444 soname_spec='${libname}${release}${shared_ext}$major'
16445 shlibpath_var=LD_LIBRARY_PATH
16446 hardcode_into_libs=yes
16447 if test "$with_gnu_ld" = yes; then
16448 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16449 shlibpath_overrides_runpath=no
16450 else
16451 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16452 shlibpath_overrides_runpath=yes
16453 case $host_os in
16454 sco3.2v5*)
16455 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16456 ;;
16457 esac
16458 fi
16459 sys_lib_dlsearch_path_spec='/usr/lib'
16460 ;;
16461
16462uts4*)
16463 version_type=linux
16464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16465 soname_spec='${libname}${release}${shared_ext}$major'
16466 shlibpath_var=LD_LIBRARY_PATH
16467 ;;
16468
16469*)
16470 dynamic_linker=no
16471 ;;
16472esac
16473{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16474echo "${ECHO_T}$dynamic_linker" >&6; }
16475test "$dynamic_linker" = no && can_build_shared=no
16476
16477variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16478if test "$GCC" = yes; then
16479 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16480fi
16481
16482{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16483echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16484hardcode_action=
16485if test -n "$hardcode_libdir_flag_spec" || \
16486 test -n "$runpath_var" || \
16487 test "X$hardcode_automatic" = "Xyes" ; then
16488
16489 # We can hardcode non-existant directories.
16490 if test "$hardcode_direct" != no &&
16491 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16492 # have to relink, otherwise we might link with an installed library
16493 # when we should be linking with a yet-to-be-installed one
16494 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16495 test "$hardcode_minus_L" != no; then
16496 # Linking always hardcodes the temporary library directory.
16497 hardcode_action=relink
16498 else
16499 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16500 hardcode_action=immediate
16501 fi
16502else
16503 # We cannot hardcode anything, or else we can only hardcode existing
16504 # directories.
16505 hardcode_action=unsupported
16506fi
16507{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16508echo "${ECHO_T}$hardcode_action" >&6; }
16509
16510if test "$hardcode_action" = relink; then
16511 # Fast installation is not supported
16512 enable_fast_install=no
16513elif test "$shlibpath_overrides_runpath" = yes ||
16514 test "$enable_shared" = no; then
16515 # Fast installation is not necessary
16516 enable_fast_install=needless
16517fi
16518
16519striplib=
16520old_striplib=
16521{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16522echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16523if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16524 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16525 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16526 { echo "$as_me:$LINENO: result: yes" >&5
16527echo "${ECHO_T}yes" >&6; }
16528else
16529# FIXME - insert some real tests, host_os isn't really good enough
16530 case $host_os in
16531 darwin*)
16532 if test -n "$STRIP" ; then
16533 striplib="$STRIP -x"
16534 { echo "$as_me:$LINENO: result: yes" >&5
16535echo "${ECHO_T}yes" >&6; }
16536 else
16537 { echo "$as_me:$LINENO: result: no" >&5
16538echo "${ECHO_T}no" >&6; }
16539fi
16540 ;;
16541 *)
16542 { echo "$as_me:$LINENO: result: no" >&5
16543echo "${ECHO_T}no" >&6; }
16544 ;;
16545 esac
16546fi
16547
16548if test "x$enable_dlopen" != xyes; then
16549 enable_dlopen=unknown
16550 enable_dlopen_self=unknown
16551 enable_dlopen_self_static=unknown
16552else
16553 lt_cv_dlopen=no
16554 lt_cv_dlopen_libs=
16555
16556 case $host_os in
16557 beos*)
16558 lt_cv_dlopen="load_add_on"
16559 lt_cv_dlopen_libs=
16560 lt_cv_dlopen_self=yes
16561 ;;
16562
16563 mingw* | pw32*)
16564 lt_cv_dlopen="LoadLibrary"
16565 lt_cv_dlopen_libs=
16566 ;;
16567
16568 cygwin*)
16569 lt_cv_dlopen="dlopen"
16570 lt_cv_dlopen_libs=
16571 ;;
16572
16573 darwin*)
16574 # if libdl is installed we need to link against it
16575 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16576echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16577if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16578 echo $ECHO_N "(cached) $ECHO_C" >&6
16579else
16580 ac_check_lib_save_LIBS=$LIBS
16581LIBS="-ldl $LIBS"
16582cat >conftest.$ac_ext <<_ACEOF
16583/* confdefs.h. */
16584_ACEOF
16585cat confdefs.h >>conftest.$ac_ext
16586cat >>conftest.$ac_ext <<_ACEOF
16587/* end confdefs.h. */
16588
16589/* Override any GCC internal prototype to avoid an error.
16590 Use char because int might match the return type of a GCC
16591 builtin and then its argument prototype would still apply. */
16592#ifdef __cplusplus
16593extern "C"
16594#endif
16595char dlopen ();
16596int
16597main ()
16598{
16599return dlopen ();
16600 ;
16601 return 0;
16602}
16603_ACEOF
16604rm -f conftest.$ac_objext conftest$ac_exeext
16605if { (ac_try="$ac_link"
16606case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16609esac
16610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611 (eval "$ac_link") 2>conftest.er1
16612 ac_status=$?
16613 grep -v '^ *+' conftest.er1 >conftest.err
16614 rm -f conftest.er1
16615 cat conftest.err >&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000016617 (exit $ac_status); } &&
16618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16619 { (case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16622esac
16623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_try") 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; } &&
16628 { ac_try='test -s conftest$ac_exeext'
16629 { (case "(($ac_try" in
16630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631 *) ac_try_echo=$ac_try;;
16632esac
16633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634 (eval "$ac_try") 2>&5
16635 ac_status=$?
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016638 ac_cv_lib_dl_dlopen=yes
16639else
16640 echo "$as_me: failed program was:" >&5
16641sed 's/^/| /' conftest.$ac_ext >&5
16642
16643 ac_cv_lib_dl_dlopen=no
16644fi
16645
Tanya Lattner3fa4a442009-01-22 05:17:59 +000016646rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016647 conftest$ac_exeext conftest.$ac_ext
16648LIBS=$ac_check_lib_save_LIBS
16649fi
16650{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16651echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16652if test $ac_cv_lib_dl_dlopen = yes; then
16653 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16654else
16655
16656 lt_cv_dlopen="dyld"
16657 lt_cv_dlopen_libs=
16658 lt_cv_dlopen_self=yes
16659
16660fi
16661
16662 ;;
16663
16664 *)
16665 { echo "$as_me:$LINENO: checking for shl_load" >&5
16666echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16667if test "${ac_cv_func_shl_load+set}" = set; then
16668 echo $ECHO_N "(cached) $ECHO_C" >&6
16669else
16670 cat >conftest.$ac_ext <<_ACEOF
16671/* confdefs.h. */
16672_ACEOF
16673cat confdefs.h >>conftest.$ac_ext
16674cat >>conftest.$ac_ext <<_ACEOF
16675/* end confdefs.h. */
16676/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16678#define shl_load innocuous_shl_load
16679
16680/* System header to define __stub macros and hopefully few prototypes,
16681 which can conflict with char shl_load (); below.
16682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16683 <limits.h> exists even on freestanding compilers. */
16684
16685#ifdef __STDC__
16686# include <limits.h>
16687#else
16688# include <assert.h>
16689#endif
16690
16691#undef shl_load
16692
16693/* Override any GCC internal prototype to avoid an error.
16694 Use char because int might match the return type of a GCC
16695 builtin and then its argument prototype would still apply. */
16696#ifdef __cplusplus
16697extern "C"
16698#endif
16699char shl_load ();
16700/* The GNU C library defines this for functions which it implements
16701 to always fail with ENOSYS. Some functions are actually named
16702 something starting with __ and the normal name is an alias. */
16703#if defined __stub_shl_load || defined __stub___shl_load
16704choke me
16705#endif
16706
16707int
16708main ()
16709{
16710return shl_load ();
16711 ;
16712 return 0;
16713}
16714_ACEOF
16715rm -f conftest.$ac_objext conftest$ac_exeext
16716if { (ac_try="$ac_link"
16717case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16720esac
16721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_link") 2>conftest.er1
16723 ac_status=$?
16724 grep -v '^ *+' conftest.er1 >conftest.err
16725 rm -f conftest.er1
16726 cat conftest.err >&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000016728 (exit $ac_status); } &&
16729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16730 { (case "(($ac_try" in
16731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16733esac
16734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_try") 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; } &&
16739 { ac_try='test -s conftest$ac_exeext'
16740 { (case "(($ac_try" in
16741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742 *) ac_try_echo=$ac_try;;
16743esac
16744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745 (eval "$ac_try") 2>&5
16746 ac_status=$?
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016749 ac_cv_func_shl_load=yes
16750else
16751 echo "$as_me: failed program was:" >&5
16752sed 's/^/| /' conftest.$ac_ext >&5
16753
16754 ac_cv_func_shl_load=no
16755fi
16756
Tanya Lattner3fa4a442009-01-22 05:17:59 +000016757rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016758 conftest$ac_exeext conftest.$ac_ext
16759fi
16760{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16761echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16762if test $ac_cv_func_shl_load = yes; then
16763 lt_cv_dlopen="shl_load"
16764else
16765 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16766echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16767if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16769else
16770 ac_check_lib_save_LIBS=$LIBS
16771LIBS="-ldld $LIBS"
16772cat >conftest.$ac_ext <<_ACEOF
16773/* confdefs.h. */
16774_ACEOF
16775cat confdefs.h >>conftest.$ac_ext
16776cat >>conftest.$ac_ext <<_ACEOF
16777/* end confdefs.h. */
16778
16779/* Override any GCC internal prototype to avoid an error.
16780 Use char because int might match the return type of a GCC
16781 builtin and then its argument prototype would still apply. */
16782#ifdef __cplusplus
16783extern "C"
16784#endif
16785char shl_load ();
16786int
16787main ()
16788{
16789return shl_load ();
16790 ;
16791 return 0;
16792}
16793_ACEOF
16794rm -f conftest.$ac_objext conftest$ac_exeext
16795if { (ac_try="$ac_link"
16796case "(($ac_try" in
16797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798 *) ac_try_echo=$ac_try;;
16799esac
16800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801 (eval "$ac_link") 2>conftest.er1
16802 ac_status=$?
16803 grep -v '^ *+' conftest.er1 >conftest.err
16804 rm -f conftest.er1
16805 cat conftest.err >&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000016807 (exit $ac_status); } &&
16808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16809 { (case "(($ac_try" in
16810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16812esac
16813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814 (eval "$ac_try") 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; } &&
16818 { ac_try='test -s conftest$ac_exeext'
16819 { (case "(($ac_try" in
16820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16821 *) ac_try_echo=$ac_try;;
16822esac
16823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16824 (eval "$ac_try") 2>&5
16825 ac_status=$?
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016828 ac_cv_lib_dld_shl_load=yes
16829else
16830 echo "$as_me: failed program was:" >&5
16831sed 's/^/| /' conftest.$ac_ext >&5
16832
16833 ac_cv_lib_dld_shl_load=no
16834fi
16835
Tanya Lattner3fa4a442009-01-22 05:17:59 +000016836rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016837 conftest$ac_exeext conftest.$ac_ext
16838LIBS=$ac_check_lib_save_LIBS
16839fi
16840{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16841echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16842if test $ac_cv_lib_dld_shl_load = yes; then
16843 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16844else
16845 { echo "$as_me:$LINENO: checking for dlopen" >&5
16846echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16847if test "${ac_cv_func_dlopen+set}" = set; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16849else
16850 cat >conftest.$ac_ext <<_ACEOF
16851/* confdefs.h. */
16852_ACEOF
16853cat confdefs.h >>conftest.$ac_ext
16854cat >>conftest.$ac_ext <<_ACEOF
16855/* end confdefs.h. */
16856/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16858#define dlopen innocuous_dlopen
16859
16860/* System header to define __stub macros and hopefully few prototypes,
16861 which can conflict with char dlopen (); below.
16862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16863 <limits.h> exists even on freestanding compilers. */
16864
16865#ifdef __STDC__
16866# include <limits.h>
16867#else
16868# include <assert.h>
16869#endif
16870
16871#undef dlopen
16872
16873/* Override any GCC internal prototype to avoid an error.
16874 Use char because int might match the return type of a GCC
16875 builtin and then its argument prototype would still apply. */
16876#ifdef __cplusplus
16877extern "C"
16878#endif
16879char dlopen ();
16880/* The GNU C library defines this for functions which it implements
16881 to always fail with ENOSYS. Some functions are actually named
16882 something starting with __ and the normal name is an alias. */
16883#if defined __stub_dlopen || defined __stub___dlopen
16884choke me
16885#endif
16886
16887int
16888main ()
16889{
16890return dlopen ();
16891 ;
16892 return 0;
16893}
16894_ACEOF
16895rm -f conftest.$ac_objext conftest$ac_exeext
16896if { (ac_try="$ac_link"
16897case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16900esac
16901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_link") 2>conftest.er1
16903 ac_status=$?
16904 grep -v '^ *+' conftest.er1 >conftest.err
16905 rm -f conftest.er1
16906 cat conftest.err >&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000016908 (exit $ac_status); } &&
16909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16910 { (case "(($ac_try" in
16911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912 *) ac_try_echo=$ac_try;;
16913esac
16914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915 (eval "$ac_try") 2>&5
16916 ac_status=$?
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; } &&
16919 { ac_try='test -s conftest$ac_exeext'
16920 { (case "(($ac_try" in
16921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922 *) ac_try_echo=$ac_try;;
16923esac
16924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925 (eval "$ac_try") 2>&5
16926 ac_status=$?
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016929 ac_cv_func_dlopen=yes
16930else
16931 echo "$as_me: failed program was:" >&5
16932sed 's/^/| /' conftest.$ac_ext >&5
16933
16934 ac_cv_func_dlopen=no
16935fi
16936
Tanya Lattner3fa4a442009-01-22 05:17:59 +000016937rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016938 conftest$ac_exeext conftest.$ac_ext
16939fi
16940{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16941echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16942if test $ac_cv_func_dlopen = yes; then
16943 lt_cv_dlopen="dlopen"
16944else
16945 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16946echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16947if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16949else
16950 ac_check_lib_save_LIBS=$LIBS
16951LIBS="-ldl $LIBS"
16952cat >conftest.$ac_ext <<_ACEOF
16953/* confdefs.h. */
16954_ACEOF
16955cat confdefs.h >>conftest.$ac_ext
16956cat >>conftest.$ac_ext <<_ACEOF
16957/* end confdefs.h. */
16958
16959/* Override any GCC internal prototype to avoid an error.
16960 Use char because int might match the return type of a GCC
16961 builtin and then its argument prototype would still apply. */
16962#ifdef __cplusplus
16963extern "C"
16964#endif
16965char dlopen ();
16966int
16967main ()
16968{
16969return dlopen ();
16970 ;
16971 return 0;
16972}
16973_ACEOF
16974rm -f conftest.$ac_objext conftest$ac_exeext
16975if { (ac_try="$ac_link"
16976case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16979esac
16980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_link") 2>conftest.er1
16982 ac_status=$?
16983 grep -v '^ *+' conftest.er1 >conftest.err
16984 rm -f conftest.er1
16985 cat conftest.err >&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000016987 (exit $ac_status); } &&
16988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16989 { (case "(($ac_try" in
16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16992esac
16993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_try") 2>&5
16995 ac_status=$?
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); }; } &&
16998 { ac_try='test -s conftest$ac_exeext'
16999 { (case "(($ac_try" in
17000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17002esac
17003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004 (eval "$ac_try") 2>&5
17005 ac_status=$?
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017008 ac_cv_lib_dl_dlopen=yes
17009else
17010 echo "$as_me: failed program was:" >&5
17011sed 's/^/| /' conftest.$ac_ext >&5
17012
17013 ac_cv_lib_dl_dlopen=no
17014fi
17015
Tanya Lattner3fa4a442009-01-22 05:17:59 +000017016rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017017 conftest$ac_exeext conftest.$ac_ext
17018LIBS=$ac_check_lib_save_LIBS
17019fi
17020{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17021echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17022if test $ac_cv_lib_dl_dlopen = yes; then
17023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17024else
17025 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17026echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17027if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17028 echo $ECHO_N "(cached) $ECHO_C" >&6
17029else
17030 ac_check_lib_save_LIBS=$LIBS
17031LIBS="-lsvld $LIBS"
17032cat >conftest.$ac_ext <<_ACEOF
17033/* confdefs.h. */
17034_ACEOF
17035cat confdefs.h >>conftest.$ac_ext
17036cat >>conftest.$ac_ext <<_ACEOF
17037/* end confdefs.h. */
17038
17039/* Override any GCC internal prototype to avoid an error.
17040 Use char because int might match the return type of a GCC
17041 builtin and then its argument prototype would still apply. */
17042#ifdef __cplusplus
17043extern "C"
17044#endif
17045char dlopen ();
17046int
17047main ()
17048{
17049return dlopen ();
17050 ;
17051 return 0;
17052}
17053_ACEOF
17054rm -f conftest.$ac_objext conftest$ac_exeext
17055if { (ac_try="$ac_link"
17056case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17059esac
17060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_link") 2>conftest.er1
17062 ac_status=$?
17063 grep -v '^ *+' conftest.er1 >conftest.err
17064 rm -f conftest.er1
17065 cat conftest.err >&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000017067 (exit $ac_status); } &&
17068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17069 { (case "(($ac_try" in
17070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17071 *) ac_try_echo=$ac_try;;
17072esac
17073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17074 (eval "$ac_try") 2>&5
17075 ac_status=$?
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; } &&
17078 { ac_try='test -s conftest$ac_exeext'
17079 { (case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17082esac
17083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084 (eval "$ac_try") 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017088 ac_cv_lib_svld_dlopen=yes
17089else
17090 echo "$as_me: failed program was:" >&5
17091sed 's/^/| /' conftest.$ac_ext >&5
17092
17093 ac_cv_lib_svld_dlopen=no
17094fi
17095
Tanya Lattner3fa4a442009-01-22 05:17:59 +000017096rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017097 conftest$ac_exeext conftest.$ac_ext
17098LIBS=$ac_check_lib_save_LIBS
17099fi
17100{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17101echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17102if test $ac_cv_lib_svld_dlopen = yes; then
17103 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17104else
17105 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17106echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17107if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17109else
17110 ac_check_lib_save_LIBS=$LIBS
17111LIBS="-ldld $LIBS"
17112cat >conftest.$ac_ext <<_ACEOF
17113/* confdefs.h. */
17114_ACEOF
17115cat confdefs.h >>conftest.$ac_ext
17116cat >>conftest.$ac_ext <<_ACEOF
17117/* end confdefs.h. */
17118
17119/* Override any GCC internal prototype to avoid an error.
17120 Use char because int might match the return type of a GCC
17121 builtin and then its argument prototype would still apply. */
17122#ifdef __cplusplus
17123extern "C"
17124#endif
17125char dld_link ();
17126int
17127main ()
17128{
17129return dld_link ();
17130 ;
17131 return 0;
17132}
17133_ACEOF
17134rm -f conftest.$ac_objext conftest$ac_exeext
17135if { (ac_try="$ac_link"
17136case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17139esac
17140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141 (eval "$ac_link") 2>conftest.er1
17142 ac_status=$?
17143 grep -v '^ *+' conftest.er1 >conftest.err
17144 rm -f conftest.er1
17145 cat conftest.err >&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000017147 (exit $ac_status); } &&
17148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17149 { (case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17152esac
17153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_try") 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; } &&
17158 { ac_try='test -s conftest$ac_exeext'
17159 { (case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17162esac
17163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_try") 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017168 ac_cv_lib_dld_dld_link=yes
17169else
17170 echo "$as_me: failed program was:" >&5
17171sed 's/^/| /' conftest.$ac_ext >&5
17172
17173 ac_cv_lib_dld_dld_link=no
17174fi
17175
Tanya Lattner3fa4a442009-01-22 05:17:59 +000017176rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017177 conftest$ac_exeext conftest.$ac_ext
17178LIBS=$ac_check_lib_save_LIBS
17179fi
17180{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17181echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17182if test $ac_cv_lib_dld_dld_link = yes; then
17183 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17184fi
17185
17186
17187fi
17188
17189
17190fi
17191
17192
17193fi
17194
17195
17196fi
17197
17198
17199fi
17200
17201 ;;
17202 esac
17203
17204 if test "x$lt_cv_dlopen" != xno; then
17205 enable_dlopen=yes
17206 else
17207 enable_dlopen=no
17208 fi
17209
17210 case $lt_cv_dlopen in
17211 dlopen)
17212 save_CPPFLAGS="$CPPFLAGS"
17213 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17214
17215 save_LDFLAGS="$LDFLAGS"
17216 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17217
17218 save_LIBS="$LIBS"
17219 LIBS="$lt_cv_dlopen_libs $LIBS"
17220
17221 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17222echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17223if test "${lt_cv_dlopen_self+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225else
17226 if test "$cross_compiling" = yes; then :
17227 lt_cv_dlopen_self=cross
17228else
17229 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17230 lt_status=$lt_dlunknown
17231 cat > conftest.$ac_ext <<EOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000017232#line 17232 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017233#include "confdefs.h"
17234
17235#if HAVE_DLFCN_H
17236#include <dlfcn.h>
17237#endif
17238
17239#include <stdio.h>
17240
17241#ifdef RTLD_GLOBAL
17242# define LT_DLGLOBAL RTLD_GLOBAL
17243#else
17244# ifdef DL_GLOBAL
17245# define LT_DLGLOBAL DL_GLOBAL
17246# else
17247# define LT_DLGLOBAL 0
17248# endif
17249#endif
17250
17251/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17252 find out it does not work in some platform. */
17253#ifndef LT_DLLAZY_OR_NOW
17254# ifdef RTLD_LAZY
17255# define LT_DLLAZY_OR_NOW RTLD_LAZY
17256# else
17257# ifdef DL_LAZY
17258# define LT_DLLAZY_OR_NOW DL_LAZY
17259# else
17260# ifdef RTLD_NOW
17261# define LT_DLLAZY_OR_NOW RTLD_NOW
17262# else
17263# ifdef DL_NOW
17264# define LT_DLLAZY_OR_NOW DL_NOW
17265# else
17266# define LT_DLLAZY_OR_NOW 0
17267# endif
17268# endif
17269# endif
17270# endif
17271#endif
17272
17273#ifdef __cplusplus
17274extern "C" void exit (int);
17275#endif
17276
17277void fnord() { int i=42;}
17278int main ()
17279{
17280 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17281 int status = $lt_dlunknown;
17282
17283 if (self)
17284 {
17285 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17286 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17287 /* dlclose (self); */
17288 }
17289 else
17290 puts (dlerror ());
17291
17292 exit (status);
17293}
17294EOF
17295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17296 (eval $ac_link) 2>&5
17297 ac_status=$?
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17300 (./conftest; exit; ) >&5 2>/dev/null
17301 lt_status=$?
17302 case x$lt_status in
17303 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17304 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17305 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17306 esac
17307 else :
17308 # compilation failed
17309 lt_cv_dlopen_self=no
17310 fi
17311fi
17312rm -fr conftest*
17313
17314
17315fi
17316{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17317echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17318
17319 if test "x$lt_cv_dlopen_self" = xyes; then
17320 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17321 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17322echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17323if test "${lt_cv_dlopen_self_static+set}" = set; then
17324 echo $ECHO_N "(cached) $ECHO_C" >&6
17325else
17326 if test "$cross_compiling" = yes; then :
17327 lt_cv_dlopen_self_static=cross
17328else
17329 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17330 lt_status=$lt_dlunknown
17331 cat > conftest.$ac_ext <<EOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000017332#line 17332 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017333#include "confdefs.h"
17334
17335#if HAVE_DLFCN_H
17336#include <dlfcn.h>
17337#endif
17338
17339#include <stdio.h>
17340
17341#ifdef RTLD_GLOBAL
17342# define LT_DLGLOBAL RTLD_GLOBAL
17343#else
17344# ifdef DL_GLOBAL
17345# define LT_DLGLOBAL DL_GLOBAL
17346# else
17347# define LT_DLGLOBAL 0
17348# endif
17349#endif
17350
17351/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17352 find out it does not work in some platform. */
17353#ifndef LT_DLLAZY_OR_NOW
17354# ifdef RTLD_LAZY
17355# define LT_DLLAZY_OR_NOW RTLD_LAZY
17356# else
17357# ifdef DL_LAZY
17358# define LT_DLLAZY_OR_NOW DL_LAZY
17359# else
17360# ifdef RTLD_NOW
17361# define LT_DLLAZY_OR_NOW RTLD_NOW
17362# else
17363# ifdef DL_NOW
17364# define LT_DLLAZY_OR_NOW DL_NOW
17365# else
17366# define LT_DLLAZY_OR_NOW 0
17367# endif
17368# endif
17369# endif
17370# endif
17371#endif
17372
17373#ifdef __cplusplus
17374extern "C" void exit (int);
17375#endif
17376
17377void fnord() { int i=42;}
17378int main ()
17379{
17380 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17381 int status = $lt_dlunknown;
17382
17383 if (self)
17384 {
17385 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17386 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17387 /* dlclose (self); */
17388 }
17389 else
17390 puts (dlerror ());
17391
17392 exit (status);
17393}
17394EOF
17395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17396 (eval $ac_link) 2>&5
17397 ac_status=$?
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17400 (./conftest; exit; ) >&5 2>/dev/null
17401 lt_status=$?
17402 case x$lt_status in
17403 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17404 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17405 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17406 esac
17407 else :
17408 # compilation failed
17409 lt_cv_dlopen_self_static=no
17410 fi
17411fi
17412rm -fr conftest*
17413
17414
17415fi
17416{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17417echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17418 fi
17419
17420 CPPFLAGS="$save_CPPFLAGS"
17421 LDFLAGS="$save_LDFLAGS"
17422 LIBS="$save_LIBS"
17423 ;;
17424 esac
17425
17426 case $lt_cv_dlopen_self in
17427 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17428 *) enable_dlopen_self=unknown ;;
17429 esac
17430
17431 case $lt_cv_dlopen_self_static in
17432 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17433 *) enable_dlopen_self_static=unknown ;;
17434 esac
17435fi
17436
17437
17438# Report which library types will actually be built
17439{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17440echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17441{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17442echo "${ECHO_T}$can_build_shared" >&6; }
17443
17444{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17445echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17446test "$can_build_shared" = "no" && enable_shared=no
17447
17448# On AIX, shared libraries and static libraries use the same namespace, and
17449# are all built from PIC.
17450case $host_os in
17451aix3*)
17452 test "$enable_shared" = yes && enable_static=no
17453 if test -n "$RANLIB"; then
17454 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17455 postinstall_cmds='$RANLIB $lib'
17456 fi
17457 ;;
17458
17459aix4* | aix5*)
17460 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17461 test "$enable_shared" = yes && enable_static=no
17462 fi
17463 ;;
17464esac
17465{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17466echo "${ECHO_T}$enable_shared" >&6; }
17467
17468{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17469echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17470# Make sure either enable_shared or enable_static is yes.
17471test "$enable_shared" = yes || enable_static=yes
17472{ echo "$as_me:$LINENO: result: $enable_static" >&5
17473echo "${ECHO_T}$enable_static" >&6; }
17474
17475# The else clause should only fire when bootstrapping the
17476# libtool distribution, otherwise you forgot to ship ltmain.sh
17477# with your package, and you will get complaints that there are
17478# no rules to generate ltmain.sh.
17479if test -f "$ltmain"; then
17480 # See if we are running on zsh, and set the options which allow our commands through
17481 # without removal of \ escapes.
17482 if test -n "${ZSH_VERSION+set}" ; then
17483 setopt NO_GLOB_SUBST
17484 fi
17485 # Now quote all the things that may contain metacharacters while being
17486 # careful not to overquote the AC_SUBSTed values. We take copies of the
17487 # variables and quote the copies for generation of the libtool script.
17488 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17489 SED SHELL STRIP \
17490 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17491 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17492 deplibs_check_method reload_flag reload_cmds need_locks \
17493 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17494 lt_cv_sys_global_symbol_to_c_name_address \
17495 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17496 old_postinstall_cmds old_postuninstall_cmds \
17497 compiler \
17498 CC \
17499 LD \
17500 lt_prog_compiler_wl \
17501 lt_prog_compiler_pic \
17502 lt_prog_compiler_static \
17503 lt_prog_compiler_no_builtin_flag \
17504 export_dynamic_flag_spec \
17505 thread_safe_flag_spec \
17506 whole_archive_flag_spec \
17507 enable_shared_with_static_runtimes \
17508 old_archive_cmds \
17509 old_archive_from_new_cmds \
17510 predep_objects \
17511 postdep_objects \
17512 predeps \
17513 postdeps \
17514 compiler_lib_search_path \
17515 archive_cmds \
17516 archive_expsym_cmds \
17517 postinstall_cmds \
17518 postuninstall_cmds \
17519 old_archive_from_expsyms_cmds \
17520 allow_undefined_flag \
17521 no_undefined_flag \
17522 export_symbols_cmds \
17523 hardcode_libdir_flag_spec \
17524 hardcode_libdir_flag_spec_ld \
17525 hardcode_libdir_separator \
17526 hardcode_automatic \
17527 module_cmds \
17528 module_expsym_cmds \
17529 lt_cv_prog_compiler_c_o \
17530 exclude_expsyms \
17531 include_expsyms; do
17532
17533 case $var in
17534 old_archive_cmds | \
17535 old_archive_from_new_cmds | \
17536 archive_cmds | \
17537 archive_expsym_cmds | \
17538 module_cmds | \
17539 module_expsym_cmds | \
17540 old_archive_from_expsyms_cmds | \
17541 export_symbols_cmds | \
17542 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17543 postinstall_cmds | postuninstall_cmds | \
17544 old_postinstall_cmds | old_postuninstall_cmds | \
17545 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17546 # Double-quote double-evaled strings.
17547 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17548 ;;
17549 *)
17550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17551 ;;
17552 esac
17553 done
17554
17555 case $lt_echo in
17556 *'\$0 --fallback-echo"')
17557 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17558 ;;
17559 esac
17560
17561cfgfile="${ofile}T"
17562 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17563 $rm -f "$cfgfile"
17564 { echo "$as_me:$LINENO: creating $ofile" >&5
17565echo "$as_me: creating $ofile" >&6;}
17566
17567 cat <<__EOF__ >> "$cfgfile"
17568#! $SHELL
17569
17570# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17571# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17572# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17573#
17574# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17575# Free Software Foundation, Inc.
17576#
17577# This file is part of GNU Libtool:
17578# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17579#
17580# This program is free software; you can redistribute it and/or modify
17581# it under the terms of the GNU General Public License as published by
17582# the Free Software Foundation; either version 2 of the License, or
17583# (at your option) any later version.
17584#
17585# This program is distributed in the hope that it will be useful, but
17586# WITHOUT ANY WARRANTY; without even the implied warranty of
17587# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17588# General Public License for more details.
17589#
17590# You should have received a copy of the GNU General Public License
17591# along with this program; if not, write to the Free Software
17592# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17593#
17594# As a special exception to the GNU General Public License, if you
17595# distribute this file as part of a program that contains a
17596# configuration script generated by Autoconf, you may include it under
17597# the same distribution terms that you use for the rest of that program.
17598
17599# A sed program that does not truncate output.
17600SED=$lt_SED
17601
17602# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17603Xsed="$SED -e 1s/^X//"
17604
17605# The HP-UX ksh and POSIX shell print the target directory to stdout
17606# if CDPATH is set.
17607(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17608
17609# The names of the tagged configurations supported by this script.
17610available_tags=
17611
17612# ### BEGIN LIBTOOL CONFIG
17613
17614# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17615
17616# Shell to use when invoking shell scripts.
17617SHELL=$lt_SHELL
17618
17619# Whether or not to build shared libraries.
17620build_libtool_libs=$enable_shared
17621
17622# Whether or not to build static libraries.
17623build_old_libs=$enable_static
17624
17625# Whether or not to add -lc for building shared libraries.
17626build_libtool_need_lc=$archive_cmds_need_lc
17627
17628# Whether or not to disallow shared libs when runtime libs are static
17629allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17630
17631# Whether or not to optimize for fast installation.
17632fast_install=$enable_fast_install
17633
17634# The host system.
17635host_alias=$host_alias
17636host=$host
17637host_os=$host_os
17638
17639# The build system.
17640build_alias=$build_alias
17641build=$build
17642build_os=$build_os
17643
17644# An echo program that does not interpret backslashes.
17645echo=$lt_echo
17646
17647# The archiver.
17648AR=$lt_AR
17649AR_FLAGS=$lt_AR_FLAGS
17650
17651# A C compiler.
17652LTCC=$lt_LTCC
17653
17654# LTCC compiler flags.
17655LTCFLAGS=$lt_LTCFLAGS
17656
17657# A language-specific compiler.
17658CC=$lt_compiler
17659
17660# Is the compiler the GNU C compiler?
17661with_gcc=$GCC
17662
17663# An ERE matcher.
17664EGREP=$lt_EGREP
17665
17666# The linker used to build libraries.
17667LD=$lt_LD
17668
17669# Whether we need hard or soft links.
17670LN_S=$lt_LN_S
17671
17672# A BSD-compatible nm program.
17673NM=$lt_NM
17674
17675# A symbol stripping program
17676STRIP=$lt_STRIP
17677
17678# Used to examine libraries when file_magic_cmd begins "file"
17679MAGIC_CMD=$MAGIC_CMD
17680
17681# Used on cygwin: DLL creation program.
17682DLLTOOL="$DLLTOOL"
17683
17684# Used on cygwin: object dumper.
17685OBJDUMP="$OBJDUMP"
17686
17687# Used on cygwin: assembler.
17688AS="$AS"
17689
17690# The name of the directory that contains temporary libtool files.
17691objdir=$objdir
17692
17693# How to create reloadable object files.
17694reload_flag=$lt_reload_flag
17695reload_cmds=$lt_reload_cmds
17696
17697# How to pass a linker flag through the compiler.
17698wl=$lt_lt_prog_compiler_wl
17699
17700# Object file suffix (normally "o").
17701objext="$ac_objext"
17702
17703# Old archive suffix (normally "a").
17704libext="$libext"
17705
17706# Shared library suffix (normally ".so").
17707shrext_cmds='$shrext_cmds'
17708
17709# Executable file suffix (normally "").
17710exeext="$exeext"
17711
17712# Additional compiler flags for building library objects.
17713pic_flag=$lt_lt_prog_compiler_pic
17714pic_mode=$pic_mode
17715
17716# What is the maximum length of a command?
17717max_cmd_len=$lt_cv_sys_max_cmd_len
17718
17719# Does compiler simultaneously support -c and -o options?
17720compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17721
17722# Must we lock files when doing compilation?
17723need_locks=$lt_need_locks
17724
17725# Do we need the lib prefix for modules?
17726need_lib_prefix=$need_lib_prefix
17727
17728# Do we need a version for libraries?
17729need_version=$need_version
17730
17731# Whether dlopen is supported.
17732dlopen_support=$enable_dlopen
17733
17734# Whether dlopen of programs is supported.
17735dlopen_self=$enable_dlopen_self
17736
17737# Whether dlopen of statically linked programs is supported.
17738dlopen_self_static=$enable_dlopen_self_static
17739
17740# Compiler flag to prevent dynamic linking.
17741link_static_flag=$lt_lt_prog_compiler_static
17742
17743# Compiler flag to turn off builtin functions.
17744no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17745
17746# Compiler flag to allow reflexive dlopens.
17747export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17748
17749# Compiler flag to generate shared objects directly from archives.
17750whole_archive_flag_spec=$lt_whole_archive_flag_spec
17751
17752# Compiler flag to generate thread-safe objects.
17753thread_safe_flag_spec=$lt_thread_safe_flag_spec
17754
17755# Library versioning type.
17756version_type=$version_type
17757
17758# Format of library name prefix.
17759libname_spec=$lt_libname_spec
17760
17761# List of archive names. First name is the real one, the rest are links.
17762# The last name is the one that the linker finds with -lNAME.
17763library_names_spec=$lt_library_names_spec
17764
17765# The coded name of the library, if different from the real name.
17766soname_spec=$lt_soname_spec
17767
17768# Commands used to build and install an old-style archive.
17769RANLIB=$lt_RANLIB
17770old_archive_cmds=$lt_old_archive_cmds
17771old_postinstall_cmds=$lt_old_postinstall_cmds
17772old_postuninstall_cmds=$lt_old_postuninstall_cmds
17773
17774# Create an old-style archive from a shared archive.
17775old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17776
17777# Create a temporary old-style archive to link instead of a shared archive.
17778old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17779
17780# Commands used to build and install a shared archive.
17781archive_cmds=$lt_archive_cmds
17782archive_expsym_cmds=$lt_archive_expsym_cmds
17783postinstall_cmds=$lt_postinstall_cmds
17784postuninstall_cmds=$lt_postuninstall_cmds
17785
17786# Commands used to build a loadable module (assumed same as above if empty)
17787module_cmds=$lt_module_cmds
17788module_expsym_cmds=$lt_module_expsym_cmds
17789
17790# Commands to strip libraries.
17791old_striplib=$lt_old_striplib
17792striplib=$lt_striplib
17793
17794# Dependencies to place before the objects being linked to create a
17795# shared library.
17796predep_objects=$lt_predep_objects
17797
17798# Dependencies to place after the objects being linked to create a
17799# shared library.
17800postdep_objects=$lt_postdep_objects
17801
17802# Dependencies to place before the objects being linked to create a
17803# shared library.
17804predeps=$lt_predeps
17805
17806# Dependencies to place after the objects being linked to create a
17807# shared library.
17808postdeps=$lt_postdeps
17809
17810# The library search path used internally by the compiler when linking
17811# a shared library.
17812compiler_lib_search_path=$lt_compiler_lib_search_path
17813
17814# Method to check whether dependent libraries are shared objects.
17815deplibs_check_method=$lt_deplibs_check_method
17816
17817# Command to use when deplibs_check_method == file_magic.
17818file_magic_cmd=$lt_file_magic_cmd
17819
17820# Flag that allows shared libraries with undefined symbols to be built.
17821allow_undefined_flag=$lt_allow_undefined_flag
17822
17823# Flag that forces no undefined symbols.
17824no_undefined_flag=$lt_no_undefined_flag
17825
17826# Commands used to finish a libtool library installation in a directory.
17827finish_cmds=$lt_finish_cmds
17828
17829# Same as above, but a single script fragment to be evaled but not shown.
17830finish_eval=$lt_finish_eval
17831
17832# Take the output of nm and produce a listing of raw symbols and C names.
17833global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17834
17835# Transform the output of nm in a proper C declaration
17836global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17837
17838# Transform the output of nm in a C name address pair
17839global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17840
17841# This is the shared library runtime path variable.
17842runpath_var=$runpath_var
17843
17844# This is the shared library path variable.
17845shlibpath_var=$shlibpath_var
17846
17847# Is shlibpath searched before the hard-coded library search path?
17848shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17849
17850# How to hardcode a shared library path into an executable.
17851hardcode_action=$hardcode_action
17852
17853# Whether we should hardcode library paths into libraries.
17854hardcode_into_libs=$hardcode_into_libs
17855
17856# Flag to hardcode \$libdir into a binary during linking.
17857# This must work even if \$libdir does not exist.
17858hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17859
17860# If ld is used when linking, flag to hardcode \$libdir into
17861# a binary during linking. This must work even if \$libdir does
17862# not exist.
17863hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17864
17865# Whether we need a single -rpath flag with a separated argument.
17866hardcode_libdir_separator=$lt_hardcode_libdir_separator
17867
17868# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17869# resulting binary.
17870hardcode_direct=$hardcode_direct
17871
17872# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17873# resulting binary.
17874hardcode_minus_L=$hardcode_minus_L
17875
17876# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17877# the resulting binary.
17878hardcode_shlibpath_var=$hardcode_shlibpath_var
17879
17880# Set to yes if building a shared library automatically hardcodes DIR into the library
17881# and all subsequent libraries and executables linked against it.
17882hardcode_automatic=$hardcode_automatic
17883
17884# Variables whose values should be saved in libtool wrapper scripts and
17885# restored at relink time.
17886variables_saved_for_relink="$variables_saved_for_relink"
17887
17888# Whether libtool must link a program against all its dependency libraries.
17889link_all_deplibs=$link_all_deplibs
17890
17891# Compile-time system search path for libraries
17892sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17893
17894# Run-time system search path for libraries
17895sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17896
17897# Fix the shell variable \$srcfile for the compiler.
17898fix_srcfile_path="$fix_srcfile_path"
17899
17900# Set to yes if exported symbols are required.
17901always_export_symbols=$always_export_symbols
17902
17903# The commands to list exported symbols.
17904export_symbols_cmds=$lt_export_symbols_cmds
17905
17906# The commands to extract the exported symbol list from a shared archive.
17907extract_expsyms_cmds=$lt_extract_expsyms_cmds
17908
17909# Symbols that should not be listed in the preloaded symbols.
17910exclude_expsyms=$lt_exclude_expsyms
17911
17912# Symbols that must always be exported.
17913include_expsyms=$lt_include_expsyms
17914
17915# ### END LIBTOOL CONFIG
17916
17917__EOF__
17918
17919
17920 case $host_os in
17921 aix3*)
17922 cat <<\EOF >> "$cfgfile"
17923
17924# AIX sometimes has problems with the GCC collect2 program. For some
17925# reason, if we set the COLLECT_NAMES environment variable, the problems
17926# vanish in a puff of smoke.
17927if test "X${COLLECT_NAMES+set}" != Xset; then
17928 COLLECT_NAMES=
17929 export COLLECT_NAMES
17930fi
17931EOF
17932 ;;
17933 esac
17934
17935 # We use sed instead of cat because bash on DJGPP gets confused if
17936 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17937 # text mode, it properly converts lines to CR/LF. This bash problem
17938 # is reportedly fixed, but why not run on old versions too?
17939 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17940
17941 mv -f "$cfgfile" "$ofile" || \
17942 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17943 chmod +x "$ofile"
17944
17945else
17946 # If there is no Makefile yet, we rely on a make rule to execute
17947 # `config.status --recheck' to rerun these tests and create the
17948 # libtool script then.
17949 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17950 if test -f "$ltmain_in"; then
17951 test -f Makefile && make "$ltmain"
17952 fi
17953fi
17954
17955
17956ac_ext=c
17957ac_cpp='$CPP $CPPFLAGS'
17958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17960ac_compiler_gnu=$ac_cv_c_compiler_gnu
17961
17962CC="$lt_save_CC"
17963
17964
17965# Check whether --with-tags was given.
17966if test "${with_tags+set}" = set; then
17967 withval=$with_tags; tagnames="$withval"
17968fi
17969
17970
17971if test -f "$ltmain" && test -n "$tagnames"; then
17972 if test ! -f "${ofile}"; then
17973 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17974echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17975 fi
17976
17977 if test -z "$LTCC"; then
17978 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17979 if test -z "$LTCC"; then
17980 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17981echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17982 else
17983 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17984echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17985 fi
17986 fi
17987 if test -z "$LTCFLAGS"; then
17988 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17989 fi
17990
17991 # Extract list of available tagged configurations in $ofile.
17992 # Note that this assumes the entire list is on one line.
17993 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17994
17995 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17996 for tagname in $tagnames; do
17997 IFS="$lt_save_ifs"
17998 # Check whether tagname contains only valid characters
17999 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18000 "") ;;
18001 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18002echo "$as_me: error: invalid tag name: $tagname" >&2;}
18003 { (exit 1); exit 1; }; }
18004 ;;
18005 esac
18006
18007 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18008 then
18009 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18010echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18011 { (exit 1); exit 1; }; }
18012 fi
18013
18014 # Update the list of available tags.
18015 if test -n "$tagname"; then
18016 echo appending configuration tag \"$tagname\" to $ofile
18017
18018 case $tagname in
18019 CXX)
18020 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18021 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18022 (test "X$CXX" != "Xg++"))) ; then
18023 ac_ext=cpp
18024ac_cpp='$CXXCPP $CPPFLAGS'
18025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18028
18029
18030
18031
18032archive_cmds_need_lc_CXX=no
18033allow_undefined_flag_CXX=
18034always_export_symbols_CXX=no
18035archive_expsym_cmds_CXX=
18036export_dynamic_flag_spec_CXX=
18037hardcode_direct_CXX=no
18038hardcode_libdir_flag_spec_CXX=
18039hardcode_libdir_flag_spec_ld_CXX=
18040hardcode_libdir_separator_CXX=
18041hardcode_minus_L_CXX=no
18042hardcode_shlibpath_var_CXX=unsupported
18043hardcode_automatic_CXX=no
18044module_cmds_CXX=
18045module_expsym_cmds_CXX=
18046link_all_deplibs_CXX=unknown
18047old_archive_cmds_CXX=$old_archive_cmds
18048no_undefined_flag_CXX=
18049whole_archive_flag_spec_CXX=
18050enable_shared_with_static_runtimes_CXX=no
18051
18052# Dependencies to place before and after the object being linked:
18053predep_objects_CXX=
18054postdep_objects_CXX=
18055predeps_CXX=
18056postdeps_CXX=
18057compiler_lib_search_path_CXX=
18058
18059# Source file extension for C++ test sources.
18060ac_ext=cpp
18061
18062# Object file extension for compiled C++ test sources.
18063objext=o
18064objext_CXX=$objext
18065
18066# Code to be used in simple compile tests
18067lt_simple_compile_test_code="int some_variable = 0;\n"
18068
18069# Code to be used in simple link tests
18070lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18071
18072# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18073
18074# If no C compiler was specified, use CC.
18075LTCC=${LTCC-"$CC"}
18076
18077# If no C compiler flags were specified, use CFLAGS.
18078LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18079
18080# Allow CC to be a program name with arguments.
18081compiler=$CC
18082
18083
18084# save warnings/boilerplate of simple test code
18085ac_outfile=conftest.$ac_objext
18086printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18087eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18088_lt_compiler_boilerplate=`cat conftest.err`
18089$rm conftest*
18090
18091ac_outfile=conftest.$ac_objext
18092printf "$lt_simple_link_test_code" >conftest.$ac_ext
18093eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18094_lt_linker_boilerplate=`cat conftest.err`
18095$rm conftest*
18096
18097
18098# Allow CC to be a program name with arguments.
18099lt_save_CC=$CC
18100lt_save_LD=$LD
18101lt_save_GCC=$GCC
18102GCC=$GXX
18103lt_save_with_gnu_ld=$with_gnu_ld
18104lt_save_path_LD=$lt_cv_path_LD
18105if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18106 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18107else
18108 $as_unset lt_cv_prog_gnu_ld
18109fi
18110if test -n "${lt_cv_path_LDCXX+set}"; then
18111 lt_cv_path_LD=$lt_cv_path_LDCXX
18112else
18113 $as_unset lt_cv_path_LD
18114fi
18115test -z "${LDCXX+set}" || LD=$LDCXX
18116CC=${CXX-"c++"}
18117compiler=$CC
18118compiler_CXX=$CC
18119for cc_temp in $compiler""; do
18120 case $cc_temp in
18121 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18122 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18123 \-*) ;;
18124 *) break;;
18125 esac
18126done
18127cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18128
18129
18130# We don't want -fno-exception wen compiling C++ code, so set the
18131# no_builtin_flag separately
18132if test "$GXX" = yes; then
18133 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18134else
18135 lt_prog_compiler_no_builtin_flag_CXX=
18136fi
18137
18138if test "$GXX" = yes; then
18139 # Set up default GNU C++ configuration
18140
18141
18142# Check whether --with-gnu-ld was given.
18143if test "${with_gnu_ld+set}" = set; then
18144 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18145else
18146 with_gnu_ld=no
18147fi
18148
18149ac_prog=ld
18150if test "$GCC" = yes; then
18151 # Check if gcc -print-prog-name=ld gives a path.
18152 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18153echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18154 case $host in
18155 *-*-mingw*)
18156 # gcc leaves a trailing carriage return which upsets mingw
18157 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18158 *)
18159 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18160 esac
18161 case $ac_prog in
18162 # Accept absolute paths.
18163 [\\/]* | ?:[\\/]*)
18164 re_direlt='/[^/][^/]*/\.\./'
18165 # Canonicalize the pathname of ld
18166 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18167 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18168 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18169 done
18170 test -z "$LD" && LD="$ac_prog"
18171 ;;
18172 "")
18173 # If it fails, then pretend we aren't using GCC.
18174 ac_prog=ld
18175 ;;
18176 *)
18177 # If it is relative, then search for the first ld in PATH.
18178 with_gnu_ld=unknown
18179 ;;
18180 esac
18181elif test "$with_gnu_ld" = yes; then
18182 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18183echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18184else
18185 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18186echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18187fi
18188if test "${lt_cv_path_LD+set}" = set; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18190else
18191 if test -z "$LD"; then
18192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18193 for ac_dir in $PATH; do
18194 IFS="$lt_save_ifs"
18195 test -z "$ac_dir" && ac_dir=.
18196 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18197 lt_cv_path_LD="$ac_dir/$ac_prog"
18198 # Check to see if the program is GNU ld. I'd rather use --version,
18199 # but apparently some variants of GNU ld only accept -v.
18200 # Break only if it was the GNU/non-GNU ld that we prefer.
18201 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18202 *GNU* | *'with BFD'*)
18203 test "$with_gnu_ld" != no && break
18204 ;;
18205 *)
18206 test "$with_gnu_ld" != yes && break
18207 ;;
18208 esac
18209 fi
18210 done
18211 IFS="$lt_save_ifs"
18212else
18213 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18214fi
18215fi
18216
18217LD="$lt_cv_path_LD"
18218if test -n "$LD"; then
18219 { echo "$as_me:$LINENO: result: $LD" >&5
18220echo "${ECHO_T}$LD" >&6; }
18221else
18222 { echo "$as_me:$LINENO: result: no" >&5
18223echo "${ECHO_T}no" >&6; }
18224fi
18225test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18226echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18227 { (exit 1); exit 1; }; }
18228{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18229echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18230if test "${lt_cv_prog_gnu_ld+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18232else
18233 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18234case `$LD -v 2>&1 </dev/null` in
18235*GNU* | *'with BFD'*)
18236 lt_cv_prog_gnu_ld=yes
18237 ;;
18238*)
18239 lt_cv_prog_gnu_ld=no
18240 ;;
18241esac
18242fi
18243{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18244echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18245with_gnu_ld=$lt_cv_prog_gnu_ld
18246
18247
18248
18249 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18250 # archiving commands below assume that GNU ld is being used.
18251 if test "$with_gnu_ld" = yes; then
18252 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18253 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'
18254
18255 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18256 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18257
18258 # If archive_cmds runs LD, not CC, wlarc should be empty
18259 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18260 # investigate it a little bit more. (MM)
18261 wlarc='${wl}'
18262
18263 # ancient GNU ld didn't support --whole-archive et. al.
18264 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18265 grep 'no-whole-archive' > /dev/null; then
18266 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18267 else
18268 whole_archive_flag_spec_CXX=
18269 fi
18270 else
18271 with_gnu_ld=no
18272 wlarc=
18273
18274 # A generic and very simple default shared library creation
18275 # command for GNU C++ for the case where it uses the native
18276 # linker, instead of GNU ld. If possible, this setting should
18277 # overridden to take advantage of the native linker features on
18278 # the platform it is being used on.
18279 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18280 fi
18281
18282 # Commands to make compiler produce verbose output that lists
18283 # what "hidden" libraries, object files and flags are used when
18284 # linking a shared library.
18285 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18286
18287else
18288 GXX=no
18289 with_gnu_ld=no
18290 wlarc=
18291fi
18292
18293# PORTME: fill in a description of your system's C++ link characteristics
18294{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18295echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18296ld_shlibs_CXX=yes
18297case $host_os in
18298 aix3*)
18299 # FIXME: insert proper C++ library support
18300 ld_shlibs_CXX=no
18301 ;;
18302 aix4* | aix5*)
18303 if test "$host_cpu" = ia64; then
18304 # On IA64, the linker does run time linking by default, so we don't
18305 # have to do anything special.
18306 aix_use_runtimelinking=no
18307 exp_sym_flag='-Bexport'
18308 no_entry_flag=""
18309 else
18310 aix_use_runtimelinking=no
18311
18312 # Test if we are trying to use run time linking or normal
18313 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18314 # need to do runtime linking.
18315 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18316 for ld_flag in $LDFLAGS; do
18317 case $ld_flag in
18318 *-brtl*)
18319 aix_use_runtimelinking=yes
18320 break
18321 ;;
18322 esac
18323 done
18324 ;;
18325 esac
18326
18327 exp_sym_flag='-bexport'
18328 no_entry_flag='-bnoentry'
18329 fi
18330
18331 # When large executables or shared objects are built, AIX ld can
18332 # have problems creating the table of contents. If linking a library
18333 # or program results in "error TOC overflow" add -mminimal-toc to
18334 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18335 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18336
18337 archive_cmds_CXX=''
18338 hardcode_direct_CXX=yes
18339 hardcode_libdir_separator_CXX=':'
18340 link_all_deplibs_CXX=yes
18341
18342 if test "$GXX" = yes; then
18343 case $host_os in aix4.[012]|aix4.[012].*)
18344 # We only want to do this on AIX 4.2 and lower, the check
18345 # below for broken collect2 doesn't work under 4.3+
18346 collect2name=`${CC} -print-prog-name=collect2`
18347 if test -f "$collect2name" && \
18348 strings "$collect2name" | grep resolve_lib_name >/dev/null
18349 then
18350 # We have reworked collect2
18351 hardcode_direct_CXX=yes
18352 else
18353 # We have old collect2
18354 hardcode_direct_CXX=unsupported
18355 # It fails to find uninstalled libraries when the uninstalled
18356 # path is not listed in the libpath. Setting hardcode_minus_L
18357 # to unsupported forces relinking
18358 hardcode_minus_L_CXX=yes
18359 hardcode_libdir_flag_spec_CXX='-L$libdir'
18360 hardcode_libdir_separator_CXX=
18361 fi
18362 ;;
18363 esac
18364 shared_flag='-shared'
18365 if test "$aix_use_runtimelinking" = yes; then
18366 shared_flag="$shared_flag "'${wl}-G'
18367 fi
18368 else
18369 # not using gcc
18370 if test "$host_cpu" = ia64; then
18371 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18372 # chokes on -Wl,-G. The following line is correct:
18373 shared_flag='-G'
18374 else
18375 if test "$aix_use_runtimelinking" = yes; then
18376 shared_flag='${wl}-G'
18377 else
18378 shared_flag='${wl}-bM:SRE'
18379 fi
18380 fi
18381 fi
18382
18383 # It seems that -bexpall does not export symbols beginning with
18384 # underscore (_), so it is better to generate a list of symbols to export.
18385 always_export_symbols_CXX=yes
18386 if test "$aix_use_runtimelinking" = yes; then
18387 # Warning - without using the other runtime loading flags (-brtl),
18388 # -berok will link without error, but may produce a broken library.
18389 allow_undefined_flag_CXX='-berok'
18390 # Determine the default libpath from the value encoded in an empty executable.
18391 cat >conftest.$ac_ext <<_ACEOF
18392/* confdefs.h. */
18393_ACEOF
18394cat confdefs.h >>conftest.$ac_ext
18395cat >>conftest.$ac_ext <<_ACEOF
18396/* end confdefs.h. */
18397
18398int
18399main ()
18400{
18401
18402 ;
18403 return 0;
18404}
18405_ACEOF
18406rm -f conftest.$ac_objext conftest$ac_exeext
18407if { (ac_try="$ac_link"
18408case "(($ac_try" in
18409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410 *) ac_try_echo=$ac_try;;
18411esac
18412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413 (eval "$ac_link") 2>conftest.er1
18414 ac_status=$?
18415 grep -v '^ *+' conftest.er1 >conftest.err
18416 rm -f conftest.er1
18417 cat conftest.err >&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000018419 (exit $ac_status); } &&
18420 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18421 { (case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18424esac
18425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_try") 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; } &&
18430 { ac_try='test -s conftest$ac_exeext'
18431 { (case "(($ac_try" in
18432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433 *) ac_try_echo=$ac_try;;
18434esac
18435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18436 (eval "$ac_try") 2>&5
18437 ac_status=$?
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018440
18441aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18442}'`
18443# Check for a 64-bit object if we didn't find anything.
18444if 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; }
18445}'`; fi
18446else
18447 echo "$as_me: failed program was:" >&5
18448sed 's/^/| /' conftest.$ac_ext >&5
18449
18450
18451fi
18452
Tanya Lattner3fa4a442009-01-22 05:17:59 +000018453rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018454 conftest$ac_exeext conftest.$ac_ext
18455if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18456
18457 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18458
18459 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"
18460 else
18461 if test "$host_cpu" = ia64; then
18462 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18463 allow_undefined_flag_CXX="-z nodefs"
18464 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"
18465 else
18466 # Determine the default libpath from the value encoded in an empty executable.
18467 cat >conftest.$ac_ext <<_ACEOF
18468/* confdefs.h. */
18469_ACEOF
18470cat confdefs.h >>conftest.$ac_ext
18471cat >>conftest.$ac_ext <<_ACEOF
18472/* end confdefs.h. */
18473
18474int
18475main ()
18476{
18477
18478 ;
18479 return 0;
18480}
18481_ACEOF
18482rm -f conftest.$ac_objext conftest$ac_exeext
18483if { (ac_try="$ac_link"
18484case "(($ac_try" in
18485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486 *) ac_try_echo=$ac_try;;
18487esac
18488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489 (eval "$ac_link") 2>conftest.er1
18490 ac_status=$?
18491 grep -v '^ *+' conftest.er1 >conftest.err
18492 rm -f conftest.er1
18493 cat conftest.err >&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000018495 (exit $ac_status); } &&
18496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18497 { (case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18500esac
18501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_try") 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; } &&
18506 { ac_try='test -s conftest$ac_exeext'
18507 { (case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18510esac
18511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_try") 2>&5
18513 ac_status=$?
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018516
18517aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18518}'`
18519# Check for a 64-bit object if we didn't find anything.
18520if 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; }
18521}'`; fi
18522else
18523 echo "$as_me: failed program was:" >&5
18524sed 's/^/| /' conftest.$ac_ext >&5
18525
18526
18527fi
18528
Tanya Lattner3fa4a442009-01-22 05:17:59 +000018529rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018530 conftest$ac_exeext conftest.$ac_ext
18531if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18532
18533 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18534 # Warning - without using the other run time loading flags,
18535 # -berok will link without error, but may produce a broken library.
18536 no_undefined_flag_CXX=' ${wl}-bernotok'
18537 allow_undefined_flag_CXX=' ${wl}-berok'
18538 # Exported symbols can be pulled into shared objects from archives
18539 whole_archive_flag_spec_CXX='$convenience'
18540 archive_cmds_need_lc_CXX=yes
18541 # This is similar to how AIX traditionally builds its shared libraries.
18542 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'
18543 fi
18544 fi
18545 ;;
18546
18547 beos*)
18548 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18549 allow_undefined_flag_CXX=unsupported
18550 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18551 # support --undefined. This deserves some investigation. FIXME
18552 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18553 else
18554 ld_shlibs_CXX=no
18555 fi
18556 ;;
18557
18558 chorus*)
18559 case $cc_basename in
18560 *)
18561 # FIXME: insert proper C++ library support
18562 ld_shlibs_CXX=no
18563 ;;
18564 esac
18565 ;;
18566
18567 cygwin* | mingw* | pw32*)
18568 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18569 # as there is no search path for DLLs.
18570 hardcode_libdir_flag_spec_CXX='-L$libdir'
18571 allow_undefined_flag_CXX=unsupported
18572 always_export_symbols_CXX=no
18573 enable_shared_with_static_runtimes_CXX=yes
18574
18575 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18576 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'
18577 # If the export-symbols file already is a .def file (1st line
18578 # is EXPORTS), use it as is; otherwise, prepend...
18579 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18580 cp $export_symbols $output_objdir/$soname.def;
18581 else
18582 echo EXPORTS > $output_objdir/$soname.def;
18583 cat $export_symbols >> $output_objdir/$soname.def;
18584 fi~
18585 $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'
18586 else
18587 ld_shlibs_CXX=no
18588 fi
18589 ;;
18590 darwin* | rhapsody*)
18591 case $host_os in
18592 rhapsody* | darwin1.[012])
18593 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18594 ;;
18595 *) # Darwin 1.3 on
18596 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18597 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18598 else
18599 case ${MACOSX_DEPLOYMENT_TARGET} in
18600 10.[012])
18601 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18602 ;;
18603 10.*)
18604 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18605 ;;
18606 esac
18607 fi
18608 ;;
18609 esac
18610 archive_cmds_need_lc_CXX=no
18611 hardcode_direct_CXX=no
18612 hardcode_automatic_CXX=yes
18613 hardcode_shlibpath_var_CXX=unsupported
18614 whole_archive_flag_spec_CXX=''
18615 link_all_deplibs_CXX=yes
18616
18617 if test "$GXX" = yes ; then
18618 lt_int_apple_cc_single_mod=no
18619 output_verbose_link_cmd='echo'
18620 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18621 lt_int_apple_cc_single_mod=yes
18622 fi
18623 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18624 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18625 else
18626 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'
18627 fi
18628 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18629 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18630 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18631 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}'
18632 else
18633 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}'
18634 fi
18635 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}'
18636 else
18637 case $cc_basename in
18638 xlc*)
18639 output_verbose_link_cmd='echo'
18640 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'
18641 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18642 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18643 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}'
18644 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}'
18645 ;;
18646 *)
18647 ld_shlibs_CXX=no
18648 ;;
18649 esac
18650 fi
18651 ;;
18652
18653 dgux*)
18654 case $cc_basename in
18655 ec++*)
18656 # FIXME: insert proper C++ library support
18657 ld_shlibs_CXX=no
18658 ;;
18659 ghcx*)
18660 # Green Hills C++ Compiler
18661 # FIXME: insert proper C++ library support
18662 ld_shlibs_CXX=no
18663 ;;
18664 *)
18665 # FIXME: insert proper C++ library support
18666 ld_shlibs_CXX=no
18667 ;;
18668 esac
18669 ;;
18670 freebsd[12]*)
18671 # C++ shared libraries reported to be fairly broken before switch to ELF
18672 ld_shlibs_CXX=no
18673 ;;
18674 freebsd-elf*)
18675 archive_cmds_need_lc_CXX=no
18676 ;;
18677 freebsd* | kfreebsd*-gnu | dragonfly*)
18678 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18679 # conventions
18680 ld_shlibs_CXX=yes
18681 ;;
18682 gnu*)
18683 ;;
18684 hpux9*)
18685 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18686 hardcode_libdir_separator_CXX=:
18687 export_dynamic_flag_spec_CXX='${wl}-E'
18688 hardcode_direct_CXX=yes
18689 hardcode_minus_L_CXX=yes # Not in the search PATH,
18690 # but as the default
18691 # location of the library.
18692
18693 case $cc_basename in
18694 CC*)
18695 # FIXME: insert proper C++ library support
18696 ld_shlibs_CXX=no
18697 ;;
18698 aCC*)
18699 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'
18700 # Commands to make compiler produce verbose output that lists
18701 # what "hidden" libraries, object files and flags are used when
18702 # linking a shared library.
18703 #
18704 # There doesn't appear to be a way to prevent this compiler from
18705 # explicitly linking system object files so we need to strip them
18706 # from the output so that they don't get included in the library
18707 # dependencies.
18708 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'
18709 ;;
18710 *)
18711 if test "$GXX" = yes; then
18712 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'
18713 else
18714 # FIXME: insert proper C++ library support
18715 ld_shlibs_CXX=no
18716 fi
18717 ;;
18718 esac
18719 ;;
18720 hpux10*|hpux11*)
18721 if test $with_gnu_ld = no; then
18722 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18723 hardcode_libdir_separator_CXX=:
18724
18725 case $host_cpu in
18726 hppa*64*|ia64*)
18727 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18728 ;;
18729 *)
18730 export_dynamic_flag_spec_CXX='${wl}-E'
18731 ;;
18732 esac
18733 fi
18734 case $host_cpu in
18735 hppa*64*|ia64*)
18736 hardcode_direct_CXX=no
18737 hardcode_shlibpath_var_CXX=no
18738 ;;
18739 *)
18740 hardcode_direct_CXX=yes
18741 hardcode_minus_L_CXX=yes # Not in the search PATH,
18742 # but as the default
18743 # location of the library.
18744 ;;
18745 esac
18746
18747 case $cc_basename in
18748 CC*)
18749 # FIXME: insert proper C++ library support
18750 ld_shlibs_CXX=no
18751 ;;
18752 aCC*)
18753 case $host_cpu in
18754 hppa*64*)
18755 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18756 ;;
18757 ia64*)
18758 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18759 ;;
18760 *)
18761 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18762 ;;
18763 esac
18764 # Commands to make compiler produce verbose output that lists
18765 # what "hidden" libraries, object files and flags are used when
18766 # linking a shared library.
18767 #
18768 # There doesn't appear to be a way to prevent this compiler from
18769 # explicitly linking system object files so we need to strip them
18770 # from the output so that they don't get included in the library
18771 # dependencies.
18772 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'
18773 ;;
18774 *)
18775 if test "$GXX" = yes; then
18776 if test $with_gnu_ld = no; then
18777 case $host_cpu in
18778 hppa*64*)
18779 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18780 ;;
18781 ia64*)
18782 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18783 ;;
18784 *)
18785 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'
18786 ;;
18787 esac
18788 fi
18789 else
18790 # FIXME: insert proper C++ library support
18791 ld_shlibs_CXX=no
18792 fi
18793 ;;
18794 esac
18795 ;;
18796 interix3*)
18797 hardcode_direct_CXX=no
18798 hardcode_shlibpath_var_CXX=no
18799 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18800 export_dynamic_flag_spec_CXX='${wl}-E'
18801 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18802 # Instead, shared libraries are loaded at an image base (0x10000000 by
18803 # default) and relocated if they conflict, which is a slow very memory
18804 # consuming and fragmenting process. To avoid this, we pick a random,
18805 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18806 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18807 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'
18808 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'
18809 ;;
18810 irix5* | irix6*)
18811 case $cc_basename in
18812 CC*)
18813 # SGI C++
18814 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'
18815
18816 # Archives containing C++ object files must be created using
18817 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18818 # necessary to make sure instantiated templates are included
18819 # in the archive.
18820 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18821 ;;
18822 *)
18823 if test "$GXX" = yes; then
18824 if test "$with_gnu_ld" = no; then
18825 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'
18826 else
18827 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'
18828 fi
18829 fi
18830 link_all_deplibs_CXX=yes
18831 ;;
18832 esac
18833 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18834 hardcode_libdir_separator_CXX=:
18835 ;;
18836 linux*)
18837 case $cc_basename in
18838 KCC*)
18839 # Kuck and Associates, Inc. (KAI) C++ Compiler
18840
18841 # KCC will only create a shared library if the output file
18842 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18843 # to its proper name (with version) after linking.
18844 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'
18845 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'
18846 # Commands to make compiler produce verbose output that lists
18847 # what "hidden" libraries, object files and flags are used when
18848 # linking a shared library.
18849 #
18850 # There doesn't appear to be a way to prevent this compiler from
18851 # explicitly linking system object files so we need to strip them
18852 # from the output so that they don't get included in the library
18853 # dependencies.
18854 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'
18855
18856 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18857 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18858
18859 # Archives containing C++ object files must be created using
18860 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18861 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18862 ;;
18863 icpc*)
18864 # Intel C++
18865 with_gnu_ld=yes
18866 # version 8.0 and above of icpc choke on multiply defined symbols
18867 # if we add $predep_objects and $postdep_objects, however 7.1 and
18868 # earlier do not add the objects themselves.
18869 case `$CC -V 2>&1` in
18870 *"Version 7."*)
18871 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18872 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'
18873 ;;
18874 *) # Version 8.0 or newer
18875 tmp_idyn=
18876 case $host_cpu in
18877 ia64*) tmp_idyn=' -i_dynamic';;
18878 esac
18879 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18880 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'
18881 ;;
18882 esac
18883 archive_cmds_need_lc_CXX=no
18884 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18885 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18886 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18887 ;;
18888 pgCC*)
18889 # Portland Group C++ compiler
18890 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18891 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'
18892
18893 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18894 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18895 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'
18896 ;;
18897 cxx*)
18898 # Compaq C++
18899 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18900 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'
18901
18902 runpath_var=LD_RUN_PATH
18903 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18904 hardcode_libdir_separator_CXX=:
18905
18906 # Commands to make compiler produce verbose output that lists
18907 # what "hidden" libraries, object files and flags are used when
18908 # linking a shared library.
18909 #
18910 # There doesn't appear to be a way to prevent this compiler from
18911 # explicitly linking system object files so we need to strip them
18912 # from the output so that they don't get included in the library
18913 # dependencies.
18914 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'
18915 ;;
18916 esac
18917 ;;
18918 lynxos*)
18919 # FIXME: insert proper C++ library support
18920 ld_shlibs_CXX=no
18921 ;;
18922 m88k*)
18923 # FIXME: insert proper C++ library support
18924 ld_shlibs_CXX=no
18925 ;;
18926 mvs*)
18927 case $cc_basename in
18928 cxx*)
18929 # FIXME: insert proper C++ library support
18930 ld_shlibs_CXX=no
18931 ;;
18932 *)
18933 # FIXME: insert proper C++ library support
18934 ld_shlibs_CXX=no
18935 ;;
18936 esac
18937 ;;
18938 netbsd*)
18939 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18940 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18941 wlarc=
18942 hardcode_libdir_flag_spec_CXX='-R$libdir'
18943 hardcode_direct_CXX=yes
18944 hardcode_shlibpath_var_CXX=no
18945 fi
18946 # Workaround some broken pre-1.5 toolchains
18947 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18948 ;;
18949 openbsd2*)
18950 # C++ shared libraries are fairly broken
18951 ld_shlibs_CXX=no
18952 ;;
18953 openbsd*)
18954 hardcode_direct_CXX=yes
18955 hardcode_shlibpath_var_CXX=no
18956 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18957 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18958 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18959 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18960 export_dynamic_flag_spec_CXX='${wl}-E'
18961 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18962 fi
18963 output_verbose_link_cmd='echo'
18964 ;;
18965 osf3*)
18966 case $cc_basename in
18967 KCC*)
18968 # Kuck and Associates, Inc. (KAI) C++ Compiler
18969
18970 # KCC will only create a shared library if the output file
18971 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18972 # to its proper name (with version) after linking.
18973 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'
18974
18975 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18976 hardcode_libdir_separator_CXX=:
18977
18978 # Archives containing C++ object files must be created using
18979 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18980 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18981
18982 ;;
18983 RCC*)
18984 # Rational C++ 2.4.1
18985 # FIXME: insert proper C++ library support
18986 ld_shlibs_CXX=no
18987 ;;
18988 cxx*)
18989 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18990 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'
18991
18992 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18993 hardcode_libdir_separator_CXX=:
18994
18995 # Commands to make compiler produce verbose output that lists
18996 # what "hidden" libraries, object files and flags are used when
18997 # linking a shared library.
18998 #
18999 # There doesn't appear to be a way to prevent this compiler from
19000 # explicitly linking system object files so we need to strip them
19001 # from the output so that they don't get included in the library
19002 # dependencies.
19003 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'
19004 ;;
19005 *)
19006 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19007 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19008 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'
19009
19010 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19011 hardcode_libdir_separator_CXX=:
19012
19013 # Commands to make compiler produce verbose output that lists
19014 # what "hidden" libraries, object files and flags are used when
19015 # linking a shared library.
19016 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19017
19018 else
19019 # FIXME: insert proper C++ library support
19020 ld_shlibs_CXX=no
19021 fi
19022 ;;
19023 esac
19024 ;;
19025 osf4* | osf5*)
19026 case $cc_basename in
19027 KCC*)
19028 # Kuck and Associates, Inc. (KAI) C++ Compiler
19029
19030 # KCC will only create a shared library if the output file
19031 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19032 # to its proper name (with version) after linking.
19033 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'
19034
19035 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19036 hardcode_libdir_separator_CXX=:
19037
19038 # Archives containing C++ object files must be created using
19039 # the KAI C++ compiler.
19040 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19041 ;;
19042 RCC*)
19043 # Rational C++ 2.4.1
19044 # FIXME: insert proper C++ library support
19045 ld_shlibs_CXX=no
19046 ;;
19047 cxx*)
19048 allow_undefined_flag_CXX=' -expect_unresolved \*'
19049 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'
19050 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19051 echo "-hidden">> $lib.exp~
19052 $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~
19053 $rm $lib.exp'
19054
19055 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19056 hardcode_libdir_separator_CXX=:
19057
19058 # Commands to make compiler produce verbose output that lists
19059 # what "hidden" libraries, object files and flags are used when
19060 # linking a shared library.
19061 #
19062 # There doesn't appear to be a way to prevent this compiler from
19063 # explicitly linking system object files so we need to strip them
19064 # from the output so that they don't get included in the library
19065 # dependencies.
19066 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'
19067 ;;
19068 *)
19069 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19070 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19071 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'
19072
19073 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19074 hardcode_libdir_separator_CXX=:
19075
19076 # Commands to make compiler produce verbose output that lists
19077 # what "hidden" libraries, object files and flags are used when
19078 # linking a shared library.
19079 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19080
19081 else
19082 # FIXME: insert proper C++ library support
19083 ld_shlibs_CXX=no
19084 fi
19085 ;;
19086 esac
19087 ;;
19088 psos*)
19089 # FIXME: insert proper C++ library support
19090 ld_shlibs_CXX=no
19091 ;;
19092 sunos4*)
19093 case $cc_basename in
19094 CC*)
19095 # Sun C++ 4.x
19096 # FIXME: insert proper C++ library support
19097 ld_shlibs_CXX=no
19098 ;;
19099 lcc*)
19100 # Lucid
19101 # FIXME: insert proper C++ library support
19102 ld_shlibs_CXX=no
19103 ;;
19104 *)
19105 # FIXME: insert proper C++ library support
19106 ld_shlibs_CXX=no
19107 ;;
19108 esac
19109 ;;
19110 solaris*)
19111 case $cc_basename in
19112 CC*)
19113 # Sun C++ 4.2, 5.x and Centerline C++
19114 archive_cmds_need_lc_CXX=yes
19115 no_undefined_flag_CXX=' -zdefs'
19116 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19117 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19118 $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'
19119
19120 hardcode_libdir_flag_spec_CXX='-R$libdir'
19121 hardcode_shlibpath_var_CXX=no
19122 case $host_os in
19123 solaris2.[0-5] | solaris2.[0-5].*) ;;
19124 *)
19125 # The C++ compiler is used as linker so we must use $wl
19126 # flag to pass the commands to the underlying system
19127 # linker. We must also pass each convience library through
19128 # to the system linker between allextract/defaultextract.
19129 # The C++ compiler will combine linker options so we
19130 # cannot just pass the convience library names through
19131 # without $wl.
19132 # Supported since Solaris 2.6 (maybe 2.5.1?)
19133 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'
19134 ;;
19135 esac
19136 link_all_deplibs_CXX=yes
19137
19138 output_verbose_link_cmd='echo'
19139
19140 # Archives containing C++ object files must be created using
19141 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19142 # necessary to make sure instantiated templates are included
19143 # in the archive.
19144 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19145 ;;
19146 gcx*)
19147 # Green Hills C++ Compiler
19148 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19149
19150 # The C++ compiler must be used to create the archive.
19151 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19152 ;;
19153 *)
19154 # GNU C++ compiler with Solaris linker
19155 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19156 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19157 if $CC --version | grep -v '^2\.7' > /dev/null; then
19158 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19159 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19160 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19161
19162 # Commands to make compiler produce verbose output that lists
19163 # what "hidden" libraries, object files and flags are used when
19164 # linking a shared library.
19165 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19166 else
19167 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19168 # platform.
19169 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19170 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19171 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19172
19173 # Commands to make compiler produce verbose output that lists
19174 # what "hidden" libraries, object files and flags are used when
19175 # linking a shared library.
19176 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19177 fi
19178
19179 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19180 fi
19181 ;;
19182 esac
19183 ;;
19184 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19185 no_undefined_flag_CXX='${wl}-z,text'
19186 archive_cmds_need_lc_CXX=no
19187 hardcode_shlibpath_var_CXX=no
19188 runpath_var='LD_RUN_PATH'
19189
19190 case $cc_basename in
19191 CC*)
19192 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19193 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19194 ;;
19195 *)
19196 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19197 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19198 ;;
19199 esac
19200 ;;
19201 sysv5* | sco3.2v5* | sco5v6*)
19202 # Note: We can NOT use -z defs as we might desire, because we do not
19203 # link with -lc, and that would cause any symbols used from libc to
19204 # always be unresolved, which means just about no library would
19205 # ever link correctly. If we're not using GNU ld we use -z text
19206 # though, which does catch some bad symbols but isn't as heavy-handed
19207 # as -z defs.
19208 # For security reasons, it is highly recommended that you always
19209 # use absolute paths for naming shared libraries, and exclude the
19210 # DT_RUNPATH tag from executables and libraries. But doing so
19211 # requires that you compile everything twice, which is a pain.
19212 # So that behaviour is only enabled if SCOABSPATH is set to a
19213 # non-empty value in the environment. Most likely only useful for
19214 # creating official distributions of packages.
19215 # This is a hack until libtool officially supports absolute path
19216 # names for shared libraries.
19217 no_undefined_flag_CXX='${wl}-z,text'
19218 allow_undefined_flag_CXX='${wl}-z,nodefs'
19219 archive_cmds_need_lc_CXX=no
19220 hardcode_shlibpath_var_CXX=no
19221 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19222 hardcode_libdir_separator_CXX=':'
19223 link_all_deplibs_CXX=yes
19224 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19225 runpath_var='LD_RUN_PATH'
19226
19227 case $cc_basename in
19228 CC*)
19229 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19230 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19231 ;;
19232 *)
19233 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19234 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19235 ;;
19236 esac
19237 ;;
19238 tandem*)
19239 case $cc_basename in
19240 NCC*)
19241 # NonStop-UX NCC 3.20
19242 # FIXME: insert proper C++ library support
19243 ld_shlibs_CXX=no
19244 ;;
19245 *)
19246 # FIXME: insert proper C++ library support
19247 ld_shlibs_CXX=no
19248 ;;
19249 esac
19250 ;;
19251 vxworks*)
19252 # FIXME: insert proper C++ library support
19253 ld_shlibs_CXX=no
19254 ;;
19255 *)
19256 # FIXME: insert proper C++ library support
19257 ld_shlibs_CXX=no
19258 ;;
19259esac
19260{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19261echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19262test "$ld_shlibs_CXX" = no && can_build_shared=no
19263
19264GCC_CXX="$GXX"
19265LD_CXX="$LD"
19266
19267
19268cat > conftest.$ac_ext <<EOF
19269class Foo
19270{
19271public:
19272 Foo (void) { a = 0; }
19273private:
19274 int a;
19275};
19276EOF
19277
19278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19279 (eval $ac_compile) 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; then
19283 # Parse the compiler output and extract the necessary
19284 # objects, libraries and library flags.
19285
19286 # Sentinel used to keep track of whether or not we are before
19287 # the conftest object file.
19288 pre_test_object_deps_done=no
19289
19290 # The `*' in the case matches for architectures that use `case' in
19291 # $output_verbose_cmd can trigger glob expansion during the loop
19292 # eval without this substitution.
19293 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19294
19295 for p in `eval $output_verbose_link_cmd`; do
19296 case $p in
19297
19298 -L* | -R* | -l*)
19299 # Some compilers place space between "-{L,R}" and the path.
19300 # Remove the space.
19301 if test $p = "-L" \
19302 || test $p = "-R"; then
19303 prev=$p
19304 continue
19305 else
19306 prev=
19307 fi
19308
19309 if test "$pre_test_object_deps_done" = no; then
19310 case $p in
19311 -L* | -R*)
19312 # Internal compiler library paths should come after those
19313 # provided the user. The postdeps already come after the
19314 # user supplied libs so there is no need to process them.
19315 if test -z "$compiler_lib_search_path_CXX"; then
19316 compiler_lib_search_path_CXX="${prev}${p}"
19317 else
19318 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19319 fi
19320 ;;
19321 # The "-l" case would never come before the object being
19322 # linked, so don't bother handling this case.
19323 esac
19324 else
19325 if test -z "$postdeps_CXX"; then
19326 postdeps_CXX="${prev}${p}"
19327 else
19328 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19329 fi
19330 fi
19331 ;;
19332
19333 *.$objext)
19334 # This assumes that the test object file only shows up
19335 # once in the compiler output.
19336 if test "$p" = "conftest.$objext"; then
19337 pre_test_object_deps_done=yes
19338 continue
19339 fi
19340
19341 if test "$pre_test_object_deps_done" = no; then
19342 if test -z "$predep_objects_CXX"; then
19343 predep_objects_CXX="$p"
19344 else
19345 predep_objects_CXX="$predep_objects_CXX $p"
19346 fi
19347 else
19348 if test -z "$postdep_objects_CXX"; then
19349 postdep_objects_CXX="$p"
19350 else
19351 postdep_objects_CXX="$postdep_objects_CXX $p"
19352 fi
19353 fi
19354 ;;
19355
19356 *) ;; # Ignore the rest.
19357
19358 esac
19359 done
19360
19361 # Clean up.
19362 rm -f a.out a.exe
19363else
19364 echo "libtool.m4: error: problem compiling CXX test program"
19365fi
19366
19367$rm -f confest.$objext
19368
19369# PORTME: override above test on systems where it is broken
19370case $host_os in
19371interix3*)
19372 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19373 # hack all around it, let's just trust "g++" to DTRT.
19374 predep_objects_CXX=
19375 postdep_objects_CXX=
19376 postdeps_CXX=
19377 ;;
19378
19379solaris*)
19380 case $cc_basename in
19381 CC*)
19382 # Adding this requires a known-good setup of shared libraries for
19383 # Sun compiler versions before 5.6, else PIC objects from an old
19384 # archive will be linked into the output, leading to subtle bugs.
19385 postdeps_CXX='-lCstd -lCrun'
19386 ;;
19387 esac
19388 ;;
19389esac
19390
19391
19392case " $postdeps_CXX " in
19393*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19394esac
19395
19396lt_prog_compiler_wl_CXX=
19397lt_prog_compiler_pic_CXX=
19398lt_prog_compiler_static_CXX=
19399
19400{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19401echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19402
19403 # C++ specific cases for pic, static, wl, etc.
19404 if test "$GXX" = yes; then
19405 lt_prog_compiler_wl_CXX='-Wl,'
19406 lt_prog_compiler_static_CXX='-static'
19407
19408 case $host_os in
19409 aix*)
19410 # All AIX code is PIC.
19411 if test "$host_cpu" = ia64; then
19412 # AIX 5 now supports IA64 processor
19413 lt_prog_compiler_static_CXX='-Bstatic'
19414 fi
19415 ;;
19416 amigaos*)
19417 # FIXME: we need at least 68020 code to build shared libraries, but
19418 # adding the `-m68020' flag to GCC prevents building anything better,
19419 # like `-m68040'.
19420 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19421 ;;
19422 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19423 # PIC is the default for these OSes.
19424 ;;
19425 mingw* | os2* | pw32*)
19426 # This hack is so that the source file can tell whether it is being
19427 # built for inclusion in a dll (and should export symbols for example).
19428 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19429 ;;
19430 darwin* | rhapsody*)
19431 # PIC is the default on this platform
19432 # Common symbols not allowed in MH_DYLIB files
19433 lt_prog_compiler_pic_CXX='-fno-common'
19434 ;;
19435 *djgpp*)
19436 # DJGPP does not support shared libraries at all
19437 lt_prog_compiler_pic_CXX=
19438 ;;
19439 interix3*)
19440 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19441 # Instead, we relocate shared libraries at runtime.
19442 ;;
19443 sysv4*MP*)
19444 if test -d /usr/nec; then
19445 lt_prog_compiler_pic_CXX=-Kconform_pic
19446 fi
19447 ;;
19448 hpux*)
19449 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19450 # not for PA HP-UX.
19451 case $host_cpu in
19452 hppa*64*|ia64*)
19453 ;;
19454 *)
19455 lt_prog_compiler_pic_CXX='-fPIC'
19456 ;;
19457 esac
19458 ;;
19459 *)
19460 lt_prog_compiler_pic_CXX='-fPIC'
19461 ;;
19462 esac
19463 else
19464 case $host_os in
19465 aix4* | aix5*)
19466 # All AIX code is PIC.
19467 if test "$host_cpu" = ia64; then
19468 # AIX 5 now supports IA64 processor
19469 lt_prog_compiler_static_CXX='-Bstatic'
19470 else
19471 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19472 fi
19473 ;;
19474 chorus*)
19475 case $cc_basename in
19476 cxch68*)
19477 # Green Hills C++ Compiler
19478 # _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"
19479 ;;
19480 esac
19481 ;;
19482 darwin*)
19483 # PIC is the default on this platform
19484 # Common symbols not allowed in MH_DYLIB files
19485 case $cc_basename in
19486 xlc*)
19487 lt_prog_compiler_pic_CXX='-qnocommon'
19488 lt_prog_compiler_wl_CXX='-Wl,'
19489 ;;
19490 esac
19491 ;;
19492 dgux*)
19493 case $cc_basename in
19494 ec++*)
19495 lt_prog_compiler_pic_CXX='-KPIC'
19496 ;;
19497 ghcx*)
19498 # Green Hills C++ Compiler
19499 lt_prog_compiler_pic_CXX='-pic'
19500 ;;
19501 *)
19502 ;;
19503 esac
19504 ;;
19505 freebsd* | kfreebsd*-gnu | dragonfly*)
19506 # FreeBSD uses GNU C++
19507 ;;
19508 hpux9* | hpux10* | hpux11*)
19509 case $cc_basename in
19510 CC*)
19511 lt_prog_compiler_wl_CXX='-Wl,'
19512 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19513 if test "$host_cpu" != ia64; then
19514 lt_prog_compiler_pic_CXX='+Z'
19515 fi
19516 ;;
19517 aCC*)
19518 lt_prog_compiler_wl_CXX='-Wl,'
19519 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19520 case $host_cpu in
19521 hppa*64*|ia64*)
19522 # +Z the default
19523 ;;
19524 *)
19525 lt_prog_compiler_pic_CXX='+Z'
19526 ;;
19527 esac
19528 ;;
19529 *)
19530 ;;
19531 esac
19532 ;;
19533 interix*)
19534 # This is c89, which is MS Visual C++ (no shared libs)
19535 # Anyone wants to do a port?
19536 ;;
19537 irix5* | irix6* | nonstopux*)
19538 case $cc_basename in
19539 CC*)
19540 lt_prog_compiler_wl_CXX='-Wl,'
19541 lt_prog_compiler_static_CXX='-non_shared'
19542 # CC pic flag -KPIC is the default.
19543 ;;
19544 *)
19545 ;;
19546 esac
19547 ;;
19548 linux*)
19549 case $cc_basename in
19550 KCC*)
19551 # KAI C++ Compiler
19552 lt_prog_compiler_wl_CXX='--backend -Wl,'
19553 lt_prog_compiler_pic_CXX='-fPIC'
19554 ;;
19555 icpc* | ecpc*)
19556 # Intel C++
19557 lt_prog_compiler_wl_CXX='-Wl,'
19558 lt_prog_compiler_pic_CXX='-KPIC'
19559 lt_prog_compiler_static_CXX='-static'
19560 ;;
19561 pgCC*)
19562 # Portland Group C++ compiler.
19563 lt_prog_compiler_wl_CXX='-Wl,'
19564 lt_prog_compiler_pic_CXX='-fpic'
19565 lt_prog_compiler_static_CXX='-Bstatic'
19566 ;;
19567 cxx*)
19568 # Compaq C++
19569 # Make sure the PIC flag is empty. It appears that all Alpha
19570 # Linux and Compaq Tru64 Unix objects are PIC.
19571 lt_prog_compiler_pic_CXX=
19572 lt_prog_compiler_static_CXX='-non_shared'
19573 ;;
19574 *)
19575 ;;
19576 esac
19577 ;;
19578 lynxos*)
19579 ;;
19580 m88k*)
19581 ;;
19582 mvs*)
19583 case $cc_basename in
19584 cxx*)
19585 lt_prog_compiler_pic_CXX='-W c,exportall'
19586 ;;
19587 *)
19588 ;;
19589 esac
19590 ;;
19591 netbsd*)
19592 ;;
19593 osf3* | osf4* | osf5*)
19594 case $cc_basename in
19595 KCC*)
19596 lt_prog_compiler_wl_CXX='--backend -Wl,'
19597 ;;
19598 RCC*)
19599 # Rational C++ 2.4.1
19600 lt_prog_compiler_pic_CXX='-pic'
19601 ;;
19602 cxx*)
19603 # Digital/Compaq C++
19604 lt_prog_compiler_wl_CXX='-Wl,'
19605 # Make sure the PIC flag is empty. It appears that all Alpha
19606 # Linux and Compaq Tru64 Unix objects are PIC.
19607 lt_prog_compiler_pic_CXX=
19608 lt_prog_compiler_static_CXX='-non_shared'
19609 ;;
19610 *)
19611 ;;
19612 esac
19613 ;;
19614 psos*)
19615 ;;
19616 solaris*)
19617 case $cc_basename in
19618 CC*)
19619 # Sun C++ 4.2, 5.x and Centerline C++
19620 lt_prog_compiler_pic_CXX='-KPIC'
19621 lt_prog_compiler_static_CXX='-Bstatic'
19622 lt_prog_compiler_wl_CXX='-Qoption ld '
19623 ;;
19624 gcx*)
19625 # Green Hills C++ Compiler
19626 lt_prog_compiler_pic_CXX='-PIC'
19627 ;;
19628 *)
19629 ;;
19630 esac
19631 ;;
19632 sunos4*)
19633 case $cc_basename in
19634 CC*)
19635 # Sun C++ 4.x
19636 lt_prog_compiler_pic_CXX='-pic'
19637 lt_prog_compiler_static_CXX='-Bstatic'
19638 ;;
19639 lcc*)
19640 # Lucid
19641 lt_prog_compiler_pic_CXX='-pic'
19642 ;;
19643 *)
19644 ;;
19645 esac
19646 ;;
19647 tandem*)
19648 case $cc_basename in
19649 NCC*)
19650 # NonStop-UX NCC 3.20
19651 lt_prog_compiler_pic_CXX='-KPIC'
19652 ;;
19653 *)
19654 ;;
19655 esac
19656 ;;
19657 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19658 case $cc_basename in
19659 CC*)
19660 lt_prog_compiler_wl_CXX='-Wl,'
19661 lt_prog_compiler_pic_CXX='-KPIC'
19662 lt_prog_compiler_static_CXX='-Bstatic'
19663 ;;
19664 esac
19665 ;;
19666 vxworks*)
19667 ;;
19668 *)
19669 lt_prog_compiler_can_build_shared_CXX=no
19670 ;;
19671 esac
19672 fi
19673
19674{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19675echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19676
19677#
19678# Check to make sure the PIC flag actually works.
19679#
19680if test -n "$lt_prog_compiler_pic_CXX"; then
19681
19682{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19683echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19684if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19686else
19687 lt_prog_compiler_pic_works_CXX=no
19688 ac_outfile=conftest.$ac_objext
19689 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19690 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19691 # Insert the option either (1) after the last *FLAGS variable, or
19692 # (2) before a word containing "conftest.", or (3) at the end.
19693 # Note that $ac_compile itself does not contain backslashes and begins
19694 # with a dollar sign (not a hyphen), so the echo should work correctly.
19695 # The option is referenced via a variable to avoid confusing sed.
19696 lt_compile=`echo "$ac_compile" | $SED \
19697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19699 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky6c58a402009-04-13 04:26:27 +000019700 (eval echo "\"\$as_me:19700: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019701 (eval "$lt_compile" 2>conftest.err)
19702 ac_status=$?
19703 cat conftest.err >&5
Nick Lewycky6c58a402009-04-13 04:26:27 +000019704 echo "$as_me:19704: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019705 if (exit $ac_status) && test -s "$ac_outfile"; then
19706 # The compiler can only warn and ignore the option if not recognized
19707 # So say no if there are warnings other than the usual output.
19708 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19710 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19711 lt_prog_compiler_pic_works_CXX=yes
19712 fi
19713 fi
19714 $rm conftest*
19715
19716fi
19717{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19718echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19719
19720if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19721 case $lt_prog_compiler_pic_CXX in
19722 "" | " "*) ;;
19723 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19724 esac
19725else
19726 lt_prog_compiler_pic_CXX=
19727 lt_prog_compiler_can_build_shared_CXX=no
19728fi
19729
19730fi
19731case $host_os in
19732 # For platforms which do not support PIC, -DPIC is meaningless:
19733 *djgpp*)
19734 lt_prog_compiler_pic_CXX=
19735 ;;
19736 *)
19737 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19738 ;;
19739esac
19740
19741#
19742# Check to make sure the static flag actually works.
19743#
19744wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19745{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19746echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19747if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19748 echo $ECHO_N "(cached) $ECHO_C" >&6
19749else
19750 lt_prog_compiler_static_works_CXX=no
19751 save_LDFLAGS="$LDFLAGS"
19752 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19753 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19754 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19755 # The linker can only warn and ignore the option if not recognized
19756 # So say no if there are warnings
19757 if test -s conftest.err; then
19758 # Append any errors to the config.log.
19759 cat conftest.err 1>&5
19760 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19762 if diff conftest.exp conftest.er2 >/dev/null; then
19763 lt_prog_compiler_static_works_CXX=yes
19764 fi
19765 else
19766 lt_prog_compiler_static_works_CXX=yes
19767 fi
19768 fi
19769 $rm conftest*
19770 LDFLAGS="$save_LDFLAGS"
19771
19772fi
19773{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19774echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19775
19776if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19777 :
19778else
19779 lt_prog_compiler_static_CXX=
19780fi
19781
19782
19783{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19784echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19785if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19786 echo $ECHO_N "(cached) $ECHO_C" >&6
19787else
19788 lt_cv_prog_compiler_c_o_CXX=no
19789 $rm -r conftest 2>/dev/null
19790 mkdir conftest
19791 cd conftest
19792 mkdir out
19793 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19794
19795 lt_compiler_flag="-o out/conftest2.$ac_objext"
19796 # Insert the option either (1) after the last *FLAGS variable, or
19797 # (2) before a word containing "conftest.", or (3) at the end.
19798 # Note that $ac_compile itself does not contain backslashes and begins
19799 # with a dollar sign (not a hyphen), so the echo should work correctly.
19800 lt_compile=`echo "$ac_compile" | $SED \
19801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19803 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky6c58a402009-04-13 04:26:27 +000019804 (eval echo "\"\$as_me:19804: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019805 (eval "$lt_compile" 2>out/conftest.err)
19806 ac_status=$?
19807 cat out/conftest.err >&5
Nick Lewycky6c58a402009-04-13 04:26:27 +000019808 echo "$as_me:19808: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19810 then
19811 # The compiler can only warn and ignore the option if not recognized
19812 # So say no if there are warnings
19813 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19814 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19815 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19816 lt_cv_prog_compiler_c_o_CXX=yes
19817 fi
19818 fi
19819 chmod u+w . 2>&5
19820 $rm conftest*
19821 # SGI C++ compiler will create directory out/ii_files/ for
19822 # template instantiation
19823 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19824 $rm out/* && rmdir out
19825 cd ..
19826 rmdir conftest
19827 $rm conftest*
19828
19829fi
19830{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19831echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19832
19833
19834hard_links="nottested"
19835if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19836 # do not overwrite the value of need_locks provided by the user
19837 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19838echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19839 hard_links=yes
19840 $rm conftest*
19841 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19842 touch conftest.a
19843 ln conftest.a conftest.b 2>&5 || hard_links=no
19844 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19845 { echo "$as_me:$LINENO: result: $hard_links" >&5
19846echo "${ECHO_T}$hard_links" >&6; }
19847 if test "$hard_links" = no; then
19848 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19849echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19850 need_locks=warn
19851 fi
19852else
19853 need_locks=no
19854fi
19855
19856{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19857echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19858
19859 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19860 case $host_os in
19861 aix4* | aix5*)
19862 # If we're using GNU nm, then we don't want the "-C" option.
19863 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19864 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19865 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'
19866 else
19867 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'
19868 fi
19869 ;;
19870 pw32*)
19871 export_symbols_cmds_CXX="$ltdll_cmds"
19872 ;;
19873 cygwin* | mingw*)
19874 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'
19875 ;;
19876 *)
19877 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19878 ;;
19879 esac
19880
19881{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19882echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19883test "$ld_shlibs_CXX" = no && can_build_shared=no
19884
19885#
19886# Do we need to explicitly link libc?
19887#
19888case "x$archive_cmds_need_lc_CXX" in
19889x|xyes)
19890 # Assume -lc should be added
19891 archive_cmds_need_lc_CXX=yes
19892
19893 if test "$enable_shared" = yes && test "$GCC" = yes; then
19894 case $archive_cmds_CXX in
19895 *'~'*)
19896 # FIXME: we may have to deal with multi-command sequences.
19897 ;;
19898 '$CC '*)
19899 # Test whether the compiler implicitly links with -lc since on some
19900 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19901 # to ld, don't add -lc before -lgcc.
19902 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19903echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19904 $rm conftest*
19905 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19906
19907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19908 (eval $ac_compile) 2>&5
19909 ac_status=$?
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } 2>conftest.err; then
19912 soname=conftest
19913 lib=conftest
19914 libobjs=conftest.$ac_objext
19915 deplibs=
19916 wl=$lt_prog_compiler_wl_CXX
19917 pic_flag=$lt_prog_compiler_pic_CXX
19918 compiler_flags=-v
19919 linker_flags=-v
19920 verstring=
19921 output_objdir=.
19922 libname=conftest
19923 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19924 allow_undefined_flag_CXX=
19925 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19926 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }
19930 then
19931 archive_cmds_need_lc_CXX=no
19932 else
19933 archive_cmds_need_lc_CXX=yes
19934 fi
19935 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19936 else
19937 cat conftest.err 1>&5
19938 fi
19939 $rm conftest*
19940 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19941echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19942 ;;
19943 esac
19944 fi
19945 ;;
19946esac
19947
19948{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19949echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19950library_names_spec=
19951libname_spec='lib$name'
19952soname_spec=
19953shrext_cmds=".so"
19954postinstall_cmds=
19955postuninstall_cmds=
19956finish_cmds=
19957finish_eval=
19958shlibpath_var=
19959shlibpath_overrides_runpath=unknown
19960version_type=none
19961dynamic_linker="$host_os ld.so"
19962sys_lib_dlsearch_path_spec="/lib /usr/lib"
19963if test "$GCC" = yes; then
19964 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19965 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19966 # if the path contains ";" then we assume it to be the separator
19967 # otherwise default to the standard path separator (i.e. ":") - it is
19968 # assumed that no part of a normal pathname contains ";" but that should
19969 # okay in the real world where ";" in dirpaths is itself problematic.
19970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19971 else
19972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19973 fi
19974else
19975 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19976fi
19977need_lib_prefix=unknown
19978hardcode_into_libs=no
19979
19980# when you set need_version to no, make sure it does not cause -set_version
19981# flags to be left without arguments
19982need_version=unknown
19983
19984case $host_os in
19985aix3*)
19986 version_type=linux
19987 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19988 shlibpath_var=LIBPATH
19989
19990 # AIX 3 has no versioning support, so we append a major version to the name.
19991 soname_spec='${libname}${release}${shared_ext}$major'
19992 ;;
19993
19994aix4* | aix5*)
19995 version_type=linux
19996 need_lib_prefix=no
19997 need_version=no
19998 hardcode_into_libs=yes
19999 if test "$host_cpu" = ia64; then
20000 # AIX 5 supports IA64
20001 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20002 shlibpath_var=LD_LIBRARY_PATH
20003 else
20004 # With GCC up to 2.95.x, collect2 would create an import file
20005 # for dependence libraries. The import file would start with
20006 # the line `#! .'. This would cause the generated library to
20007 # depend on `.', always an invalid library. This was fixed in
20008 # development snapshots of GCC prior to 3.0.
20009 case $host_os in
20010 aix4 | aix4.[01] | aix4.[01].*)
20011 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20012 echo ' yes '
20013 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20014 :
20015 else
20016 can_build_shared=no
20017 fi
20018 ;;
20019 esac
20020 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20021 # soname into executable. Probably we can add versioning support to
20022 # collect2, so additional links can be useful in future.
20023 if test "$aix_use_runtimelinking" = yes; then
20024 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20025 # instead of lib<name>.a to let people know that these are not
20026 # typical AIX shared libraries.
20027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20028 else
20029 # We preserve .a as extension for shared libraries through AIX4.2
20030 # and later when we are not doing run time linking.
20031 library_names_spec='${libname}${release}.a $libname.a'
20032 soname_spec='${libname}${release}${shared_ext}$major'
20033 fi
20034 shlibpath_var=LIBPATH
20035 fi
20036 ;;
20037
20038amigaos*)
20039 library_names_spec='$libname.ixlibrary $libname.a'
20040 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20041 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'
20042 ;;
20043
20044beos*)
20045 library_names_spec='${libname}${shared_ext}'
20046 dynamic_linker="$host_os ld.so"
20047 shlibpath_var=LIBRARY_PATH
20048 ;;
20049
20050bsdi[45]*)
20051 version_type=linux
20052 need_version=no
20053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20054 soname_spec='${libname}${release}${shared_ext}$major'
20055 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20056 shlibpath_var=LD_LIBRARY_PATH
20057 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20058 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20059 # the default ld.so.conf also contains /usr/contrib/lib and
20060 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20061 # libtool to hard-code these into programs
20062 ;;
20063
20064cygwin* | mingw* | pw32*)
20065 version_type=windows
20066 shrext_cmds=".dll"
20067 need_version=no
20068 need_lib_prefix=no
20069
20070 case $GCC,$host_os in
20071 yes,cygwin* | yes,mingw* | yes,pw32*)
20072 library_names_spec='$libname.dll.a'
20073 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20074 postinstall_cmds='base_file=`basename \${file}`~
20075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20076 dldir=$destdir/`dirname \$dlpath`~
20077 test -d \$dldir || mkdir -p \$dldir~
20078 $install_prog $dir/$dlname \$dldir/$dlname~
20079 chmod a+x \$dldir/$dlname'
20080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20081 dlpath=$dir/\$dldll~
20082 $rm \$dlpath'
20083 shlibpath_overrides_runpath=yes
20084
20085 case $host_os in
20086 cygwin*)
20087 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20088 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20089 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20090 ;;
20091 mingw*)
20092 # MinGW DLLs use traditional 'lib' prefix
20093 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20094 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20095 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20096 # It is most probably a Windows format PATH printed by
20097 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20098 # path with ; separators, and with drive letters. We can handle the
20099 # drive letters (cygwin fileutils understands them), so leave them,
20100 # especially as we might pass files found there to a mingw objdump,
20101 # which wouldn't understand a cygwinified path. Ahh.
20102 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20103 else
20104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20105 fi
20106 ;;
20107 pw32*)
20108 # pw32 DLLs use 'pw' prefix rather than 'lib'
20109 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20110 ;;
20111 esac
20112 ;;
20113
20114 *)
20115 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20116 ;;
20117 esac
20118 dynamic_linker='Win32 ld.exe'
20119 # FIXME: first we should search . and the directory the executable is in
20120 shlibpath_var=PATH
20121 ;;
20122
20123darwin* | rhapsody*)
20124 dynamic_linker="$host_os dyld"
20125 version_type=darwin
20126 need_lib_prefix=no
20127 need_version=no
20128 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20129 soname_spec='${libname}${release}${major}$shared_ext'
20130 shlibpath_overrides_runpath=yes
20131 shlibpath_var=DYLD_LIBRARY_PATH
20132 shrext_cmds='.dylib'
20133 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20134 if test "$GCC" = yes; then
20135 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"`
20136 else
20137 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20138 fi
20139 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20140 ;;
20141
20142dgux*)
20143 version_type=linux
20144 need_lib_prefix=no
20145 need_version=no
20146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20147 soname_spec='${libname}${release}${shared_ext}$major'
20148 shlibpath_var=LD_LIBRARY_PATH
20149 ;;
20150
20151freebsd1*)
20152 dynamic_linker=no
20153 ;;
20154
20155kfreebsd*-gnu)
20156 version_type=linux
20157 need_lib_prefix=no
20158 need_version=no
20159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20160 soname_spec='${libname}${release}${shared_ext}$major'
20161 shlibpath_var=LD_LIBRARY_PATH
20162 shlibpath_overrides_runpath=no
20163 hardcode_into_libs=yes
20164 dynamic_linker='GNU ld.so'
20165 ;;
20166
20167freebsd* | dragonfly*)
20168 # DragonFly does not have aout. When/if they implement a new
20169 # versioning mechanism, adjust this.
20170 if test -x /usr/bin/objformat; then
20171 objformat=`/usr/bin/objformat`
20172 else
20173 case $host_os in
20174 freebsd[123]*) objformat=aout ;;
20175 *) objformat=elf ;;
20176 esac
20177 fi
20178 version_type=freebsd-$objformat
20179 case $version_type in
20180 freebsd-elf*)
20181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20182 need_version=no
20183 need_lib_prefix=no
20184 ;;
20185 freebsd-*)
20186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20187 need_version=yes
20188 ;;
20189 esac
20190 shlibpath_var=LD_LIBRARY_PATH
20191 case $host_os in
20192 freebsd2*)
20193 shlibpath_overrides_runpath=yes
20194 ;;
20195 freebsd3.[01]* | freebsdelf3.[01]*)
20196 shlibpath_overrides_runpath=yes
20197 hardcode_into_libs=yes
20198 ;;
20199 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20200 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20201 shlibpath_overrides_runpath=no
20202 hardcode_into_libs=yes
20203 ;;
20204 freebsd*) # from 4.6 on
20205 shlibpath_overrides_runpath=yes
20206 hardcode_into_libs=yes
20207 ;;
20208 esac
20209 ;;
20210
20211gnu*)
20212 version_type=linux
20213 need_lib_prefix=no
20214 need_version=no
20215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20216 soname_spec='${libname}${release}${shared_ext}$major'
20217 shlibpath_var=LD_LIBRARY_PATH
20218 hardcode_into_libs=yes
20219 ;;
20220
20221hpux9* | hpux10* | hpux11*)
20222 # Give a soname corresponding to the major version so that dld.sl refuses to
20223 # link against other versions.
20224 version_type=sunos
20225 need_lib_prefix=no
20226 need_version=no
20227 case $host_cpu in
20228 ia64*)
20229 shrext_cmds='.so'
20230 hardcode_into_libs=yes
20231 dynamic_linker="$host_os dld.so"
20232 shlibpath_var=LD_LIBRARY_PATH
20233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20235 soname_spec='${libname}${release}${shared_ext}$major'
20236 if test "X$HPUX_IA64_MODE" = X32; then
20237 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20238 else
20239 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20240 fi
20241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20242 ;;
20243 hppa*64*)
20244 shrext_cmds='.sl'
20245 hardcode_into_libs=yes
20246 dynamic_linker="$host_os dld.sl"
20247 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20250 soname_spec='${libname}${release}${shared_ext}$major'
20251 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20253 ;;
20254 *)
20255 shrext_cmds='.sl'
20256 dynamic_linker="$host_os dld.sl"
20257 shlibpath_var=SHLIB_PATH
20258 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20260 soname_spec='${libname}${release}${shared_ext}$major'
20261 ;;
20262 esac
20263 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20264 postinstall_cmds='chmod 555 $lib'
20265 ;;
20266
20267interix3*)
20268 version_type=linux
20269 need_lib_prefix=no
20270 need_version=no
20271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20272 soname_spec='${libname}${release}${shared_ext}$major'
20273 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20274 shlibpath_var=LD_LIBRARY_PATH
20275 shlibpath_overrides_runpath=no
20276 hardcode_into_libs=yes
20277 ;;
20278
20279irix5* | irix6* | nonstopux*)
20280 case $host_os in
20281 nonstopux*) version_type=nonstopux ;;
20282 *)
20283 if test "$lt_cv_prog_gnu_ld" = yes; then
20284 version_type=linux
20285 else
20286 version_type=irix
20287 fi ;;
20288 esac
20289 need_lib_prefix=no
20290 need_version=no
20291 soname_spec='${libname}${release}${shared_ext}$major'
20292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20293 case $host_os in
20294 irix5* | nonstopux*)
20295 libsuff= shlibsuff=
20296 ;;
20297 *)
20298 case $LD in # libtool.m4 will add one of these switches to LD
20299 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20300 libsuff= shlibsuff= libmagic=32-bit;;
20301 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20302 libsuff=32 shlibsuff=N32 libmagic=N32;;
20303 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20304 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20305 *) libsuff= shlibsuff= libmagic=never-match;;
20306 esac
20307 ;;
20308 esac
20309 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20310 shlibpath_overrides_runpath=no
20311 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20312 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20313 hardcode_into_libs=yes
20314 ;;
20315
20316# No shared lib support for Linux oldld, aout, or coff.
20317linux*oldld* | linux*aout* | linux*coff*)
20318 dynamic_linker=no
20319 ;;
20320
20321# This must be Linux ELF.
20322linux*)
20323 version_type=linux
20324 need_lib_prefix=no
20325 need_version=no
20326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20327 soname_spec='${libname}${release}${shared_ext}$major'
20328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20329 shlibpath_var=LD_LIBRARY_PATH
20330 shlibpath_overrides_runpath=no
20331 # This implies no fast_install, which is unacceptable.
20332 # Some rework will be needed to allow for fast_install
20333 # before this can be enabled.
20334 hardcode_into_libs=yes
20335
20336 # Append ld.so.conf contents to the search path
20337 if test -f /etc/ld.so.conf; then
20338 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' ' '`
20339 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20340 fi
20341
20342 # We used to test for /lib/ld.so.1 and disable shared libraries on
20343 # powerpc, because MkLinux only supported shared libraries with the
20344 # GNU dynamic linker. Since this was broken with cross compilers,
20345 # most powerpc-linux boxes support dynamic linking these days and
20346 # people can always --disable-shared, the test was removed, and we
20347 # assume the GNU/Linux dynamic linker is in use.
20348 dynamic_linker='GNU/Linux ld.so'
20349 ;;
20350
20351knetbsd*-gnu)
20352 version_type=linux
20353 need_lib_prefix=no
20354 need_version=no
20355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20356 soname_spec='${libname}${release}${shared_ext}$major'
20357 shlibpath_var=LD_LIBRARY_PATH
20358 shlibpath_overrides_runpath=no
20359 hardcode_into_libs=yes
20360 dynamic_linker='GNU ld.so'
20361 ;;
20362
20363netbsd*)
20364 version_type=sunos
20365 need_lib_prefix=no
20366 need_version=no
20367 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20370 dynamic_linker='NetBSD (a.out) ld.so'
20371 else
20372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20373 soname_spec='${libname}${release}${shared_ext}$major'
20374 dynamic_linker='NetBSD ld.elf_so'
20375 fi
20376 shlibpath_var=LD_LIBRARY_PATH
20377 shlibpath_overrides_runpath=yes
20378 hardcode_into_libs=yes
20379 ;;
20380
20381newsos6)
20382 version_type=linux
20383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20384 shlibpath_var=LD_LIBRARY_PATH
20385 shlibpath_overrides_runpath=yes
20386 ;;
20387
20388nto-qnx*)
20389 version_type=linux
20390 need_lib_prefix=no
20391 need_version=no
20392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20393 soname_spec='${libname}${release}${shared_ext}$major'
20394 shlibpath_var=LD_LIBRARY_PATH
20395 shlibpath_overrides_runpath=yes
20396 ;;
20397
20398openbsd*)
20399 version_type=sunos
20400 sys_lib_dlsearch_path_spec="/usr/lib"
20401 need_lib_prefix=no
20402 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20403 case $host_os in
20404 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20405 *) need_version=no ;;
20406 esac
20407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20409 shlibpath_var=LD_LIBRARY_PATH
20410 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20411 case $host_os in
20412 openbsd2.[89] | openbsd2.[89].*)
20413 shlibpath_overrides_runpath=no
20414 ;;
20415 *)
20416 shlibpath_overrides_runpath=yes
20417 ;;
20418 esac
20419 else
20420 shlibpath_overrides_runpath=yes
20421 fi
20422 ;;
20423
20424os2*)
20425 libname_spec='$name'
20426 shrext_cmds=".dll"
20427 need_lib_prefix=no
20428 library_names_spec='$libname${shared_ext} $libname.a'
20429 dynamic_linker='OS/2 ld.exe'
20430 shlibpath_var=LIBPATH
20431 ;;
20432
20433osf3* | osf4* | osf5*)
20434 version_type=osf
20435 need_lib_prefix=no
20436 need_version=no
20437 soname_spec='${libname}${release}${shared_ext}$major'
20438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20439 shlibpath_var=LD_LIBRARY_PATH
20440 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20441 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20442 ;;
20443
20444solaris*)
20445 version_type=linux
20446 need_lib_prefix=no
20447 need_version=no
20448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20449 soname_spec='${libname}${release}${shared_ext}$major'
20450 shlibpath_var=LD_LIBRARY_PATH
20451 shlibpath_overrides_runpath=yes
20452 hardcode_into_libs=yes
20453 # ldd complains unless libraries are executable
20454 postinstall_cmds='chmod +x $lib'
20455 ;;
20456
20457sunos4*)
20458 version_type=sunos
20459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20460 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20461 shlibpath_var=LD_LIBRARY_PATH
20462 shlibpath_overrides_runpath=yes
20463 if test "$with_gnu_ld" = yes; then
20464 need_lib_prefix=no
20465 fi
20466 need_version=yes
20467 ;;
20468
20469sysv4 | sysv4.3*)
20470 version_type=linux
20471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20472 soname_spec='${libname}${release}${shared_ext}$major'
20473 shlibpath_var=LD_LIBRARY_PATH
20474 case $host_vendor in
20475 sni)
20476 shlibpath_overrides_runpath=no
20477 need_lib_prefix=no
20478 export_dynamic_flag_spec='${wl}-Blargedynsym'
20479 runpath_var=LD_RUN_PATH
20480 ;;
20481 siemens)
20482 need_lib_prefix=no
20483 ;;
20484 motorola)
20485 need_lib_prefix=no
20486 need_version=no
20487 shlibpath_overrides_runpath=no
20488 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20489 ;;
20490 esac
20491 ;;
20492
20493sysv4*MP*)
20494 if test -d /usr/nec ;then
20495 version_type=linux
20496 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20497 soname_spec='$libname${shared_ext}.$major'
20498 shlibpath_var=LD_LIBRARY_PATH
20499 fi
20500 ;;
20501
20502sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20503 version_type=freebsd-elf
20504 need_lib_prefix=no
20505 need_version=no
20506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20507 soname_spec='${libname}${release}${shared_ext}$major'
20508 shlibpath_var=LD_LIBRARY_PATH
20509 hardcode_into_libs=yes
20510 if test "$with_gnu_ld" = yes; then
20511 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20512 shlibpath_overrides_runpath=no
20513 else
20514 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20515 shlibpath_overrides_runpath=yes
20516 case $host_os in
20517 sco3.2v5*)
20518 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20519 ;;
20520 esac
20521 fi
20522 sys_lib_dlsearch_path_spec='/usr/lib'
20523 ;;
20524
20525uts4*)
20526 version_type=linux
20527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20528 soname_spec='${libname}${release}${shared_ext}$major'
20529 shlibpath_var=LD_LIBRARY_PATH
20530 ;;
20531
20532*)
20533 dynamic_linker=no
20534 ;;
20535esac
20536{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20537echo "${ECHO_T}$dynamic_linker" >&6; }
20538test "$dynamic_linker" = no && can_build_shared=no
20539
20540variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20541if test "$GCC" = yes; then
20542 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20543fi
20544
20545{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20546echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20547hardcode_action_CXX=
20548if test -n "$hardcode_libdir_flag_spec_CXX" || \
20549 test -n "$runpath_var_CXX" || \
20550 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20551
20552 # We can hardcode non-existant directories.
20553 if test "$hardcode_direct_CXX" != no &&
20554 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20555 # have to relink, otherwise we might link with an installed library
20556 # when we should be linking with a yet-to-be-installed one
20557 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20558 test "$hardcode_minus_L_CXX" != no; then
20559 # Linking always hardcodes the temporary library directory.
20560 hardcode_action_CXX=relink
20561 else
20562 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20563 hardcode_action_CXX=immediate
20564 fi
20565else
20566 # We cannot hardcode anything, or else we can only hardcode existing
20567 # directories.
20568 hardcode_action_CXX=unsupported
20569fi
20570{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20571echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20572
20573if test "$hardcode_action_CXX" = relink; then
20574 # Fast installation is not supported
20575 enable_fast_install=no
20576elif test "$shlibpath_overrides_runpath" = yes ||
20577 test "$enable_shared" = no; then
20578 # Fast installation is not necessary
20579 enable_fast_install=needless
20580fi
20581
20582
20583# The else clause should only fire when bootstrapping the
20584# libtool distribution, otherwise you forgot to ship ltmain.sh
20585# with your package, and you will get complaints that there are
20586# no rules to generate ltmain.sh.
20587if test -f "$ltmain"; then
20588 # See if we are running on zsh, and set the options which allow our commands through
20589 # without removal of \ escapes.
20590 if test -n "${ZSH_VERSION+set}" ; then
20591 setopt NO_GLOB_SUBST
20592 fi
20593 # Now quote all the things that may contain metacharacters while being
20594 # careful not to overquote the AC_SUBSTed values. We take copies of the
20595 # variables and quote the copies for generation of the libtool script.
20596 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20597 SED SHELL STRIP \
20598 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20599 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20600 deplibs_check_method reload_flag reload_cmds need_locks \
20601 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20602 lt_cv_sys_global_symbol_to_c_name_address \
20603 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20604 old_postinstall_cmds old_postuninstall_cmds \
20605 compiler_CXX \
20606 CC_CXX \
20607 LD_CXX \
20608 lt_prog_compiler_wl_CXX \
20609 lt_prog_compiler_pic_CXX \
20610 lt_prog_compiler_static_CXX \
20611 lt_prog_compiler_no_builtin_flag_CXX \
20612 export_dynamic_flag_spec_CXX \
20613 thread_safe_flag_spec_CXX \
20614 whole_archive_flag_spec_CXX \
20615 enable_shared_with_static_runtimes_CXX \
20616 old_archive_cmds_CXX \
20617 old_archive_from_new_cmds_CXX \
20618 predep_objects_CXX \
20619 postdep_objects_CXX \
20620 predeps_CXX \
20621 postdeps_CXX \
20622 compiler_lib_search_path_CXX \
20623 archive_cmds_CXX \
20624 archive_expsym_cmds_CXX \
20625 postinstall_cmds_CXX \
20626 postuninstall_cmds_CXX \
20627 old_archive_from_expsyms_cmds_CXX \
20628 allow_undefined_flag_CXX \
20629 no_undefined_flag_CXX \
20630 export_symbols_cmds_CXX \
20631 hardcode_libdir_flag_spec_CXX \
20632 hardcode_libdir_flag_spec_ld_CXX \
20633 hardcode_libdir_separator_CXX \
20634 hardcode_automatic_CXX \
20635 module_cmds_CXX \
20636 module_expsym_cmds_CXX \
20637 lt_cv_prog_compiler_c_o_CXX \
20638 exclude_expsyms_CXX \
20639 include_expsyms_CXX; do
20640
20641 case $var in
20642 old_archive_cmds_CXX | \
20643 old_archive_from_new_cmds_CXX | \
20644 archive_cmds_CXX | \
20645 archive_expsym_cmds_CXX | \
20646 module_cmds_CXX | \
20647 module_expsym_cmds_CXX | \
20648 old_archive_from_expsyms_cmds_CXX | \
20649 export_symbols_cmds_CXX | \
20650 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20651 postinstall_cmds | postuninstall_cmds | \
20652 old_postinstall_cmds | old_postuninstall_cmds | \
20653 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20654 # Double-quote double-evaled strings.
20655 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20656 ;;
20657 *)
20658 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20659 ;;
20660 esac
20661 done
20662
20663 case $lt_echo in
20664 *'\$0 --fallback-echo"')
20665 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20666 ;;
20667 esac
20668
20669cfgfile="$ofile"
20670
20671 cat <<__EOF__ >> "$cfgfile"
20672# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20673
20674# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20675
20676# Shell to use when invoking shell scripts.
20677SHELL=$lt_SHELL
20678
20679# Whether or not to build shared libraries.
20680build_libtool_libs=$enable_shared
20681
20682# Whether or not to build static libraries.
20683build_old_libs=$enable_static
20684
20685# Whether or not to add -lc for building shared libraries.
20686build_libtool_need_lc=$archive_cmds_need_lc_CXX
20687
20688# Whether or not to disallow shared libs when runtime libs are static
20689allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20690
20691# Whether or not to optimize for fast installation.
20692fast_install=$enable_fast_install
20693
20694# The host system.
20695host_alias=$host_alias
20696host=$host
20697host_os=$host_os
20698
20699# The build system.
20700build_alias=$build_alias
20701build=$build
20702build_os=$build_os
20703
20704# An echo program that does not interpret backslashes.
20705echo=$lt_echo
20706
20707# The archiver.
20708AR=$lt_AR
20709AR_FLAGS=$lt_AR_FLAGS
20710
20711# A C compiler.
20712LTCC=$lt_LTCC
20713
20714# LTCC compiler flags.
20715LTCFLAGS=$lt_LTCFLAGS
20716
20717# A language-specific compiler.
20718CC=$lt_compiler_CXX
20719
20720# Is the compiler the GNU C compiler?
20721with_gcc=$GCC_CXX
20722
20723# An ERE matcher.
20724EGREP=$lt_EGREP
20725
20726# The linker used to build libraries.
20727LD=$lt_LD_CXX
20728
20729# Whether we need hard or soft links.
20730LN_S=$lt_LN_S
20731
20732# A BSD-compatible nm program.
20733NM=$lt_NM
20734
20735# A symbol stripping program
20736STRIP=$lt_STRIP
20737
20738# Used to examine libraries when file_magic_cmd begins "file"
20739MAGIC_CMD=$MAGIC_CMD
20740
20741# Used on cygwin: DLL creation program.
20742DLLTOOL="$DLLTOOL"
20743
20744# Used on cygwin: object dumper.
20745OBJDUMP="$OBJDUMP"
20746
20747# Used on cygwin: assembler.
20748AS="$AS"
20749
20750# The name of the directory that contains temporary libtool files.
20751objdir=$objdir
20752
20753# How to create reloadable object files.
20754reload_flag=$lt_reload_flag
20755reload_cmds=$lt_reload_cmds
20756
20757# How to pass a linker flag through the compiler.
20758wl=$lt_lt_prog_compiler_wl_CXX
20759
20760# Object file suffix (normally "o").
20761objext="$ac_objext"
20762
20763# Old archive suffix (normally "a").
20764libext="$libext"
20765
20766# Shared library suffix (normally ".so").
20767shrext_cmds='$shrext_cmds'
20768
20769# Executable file suffix (normally "").
20770exeext="$exeext"
20771
20772# Additional compiler flags for building library objects.
20773pic_flag=$lt_lt_prog_compiler_pic_CXX
20774pic_mode=$pic_mode
20775
20776# What is the maximum length of a command?
20777max_cmd_len=$lt_cv_sys_max_cmd_len
20778
20779# Does compiler simultaneously support -c and -o options?
20780compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20781
20782# Must we lock files when doing compilation?
20783need_locks=$lt_need_locks
20784
20785# Do we need the lib prefix for modules?
20786need_lib_prefix=$need_lib_prefix
20787
20788# Do we need a version for libraries?
20789need_version=$need_version
20790
20791# Whether dlopen is supported.
20792dlopen_support=$enable_dlopen
20793
20794# Whether dlopen of programs is supported.
20795dlopen_self=$enable_dlopen_self
20796
20797# Whether dlopen of statically linked programs is supported.
20798dlopen_self_static=$enable_dlopen_self_static
20799
20800# Compiler flag to prevent dynamic linking.
20801link_static_flag=$lt_lt_prog_compiler_static_CXX
20802
20803# Compiler flag to turn off builtin functions.
20804no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20805
20806# Compiler flag to allow reflexive dlopens.
20807export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20808
20809# Compiler flag to generate shared objects directly from archives.
20810whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20811
20812# Compiler flag to generate thread-safe objects.
20813thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20814
20815# Library versioning type.
20816version_type=$version_type
20817
20818# Format of library name prefix.
20819libname_spec=$lt_libname_spec
20820
20821# List of archive names. First name is the real one, the rest are links.
20822# The last name is the one that the linker finds with -lNAME.
20823library_names_spec=$lt_library_names_spec
20824
20825# The coded name of the library, if different from the real name.
20826soname_spec=$lt_soname_spec
20827
20828# Commands used to build and install an old-style archive.
20829RANLIB=$lt_RANLIB
20830old_archive_cmds=$lt_old_archive_cmds_CXX
20831old_postinstall_cmds=$lt_old_postinstall_cmds
20832old_postuninstall_cmds=$lt_old_postuninstall_cmds
20833
20834# Create an old-style archive from a shared archive.
20835old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20836
20837# Create a temporary old-style archive to link instead of a shared archive.
20838old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20839
20840# Commands used to build and install a shared archive.
20841archive_cmds=$lt_archive_cmds_CXX
20842archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20843postinstall_cmds=$lt_postinstall_cmds
20844postuninstall_cmds=$lt_postuninstall_cmds
20845
20846# Commands used to build a loadable module (assumed same as above if empty)
20847module_cmds=$lt_module_cmds_CXX
20848module_expsym_cmds=$lt_module_expsym_cmds_CXX
20849
20850# Commands to strip libraries.
20851old_striplib=$lt_old_striplib
20852striplib=$lt_striplib
20853
20854# Dependencies to place before the objects being linked to create a
20855# shared library.
20856predep_objects=$lt_predep_objects_CXX
20857
20858# Dependencies to place after the objects being linked to create a
20859# shared library.
20860postdep_objects=$lt_postdep_objects_CXX
20861
20862# Dependencies to place before the objects being linked to create a
20863# shared library.
20864predeps=$lt_predeps_CXX
20865
20866# Dependencies to place after the objects being linked to create a
20867# shared library.
20868postdeps=$lt_postdeps_CXX
20869
20870# The library search path used internally by the compiler when linking
20871# a shared library.
20872compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20873
20874# Method to check whether dependent libraries are shared objects.
20875deplibs_check_method=$lt_deplibs_check_method
20876
20877# Command to use when deplibs_check_method == file_magic.
20878file_magic_cmd=$lt_file_magic_cmd
20879
20880# Flag that allows shared libraries with undefined symbols to be built.
20881allow_undefined_flag=$lt_allow_undefined_flag_CXX
20882
20883# Flag that forces no undefined symbols.
20884no_undefined_flag=$lt_no_undefined_flag_CXX
20885
20886# Commands used to finish a libtool library installation in a directory.
20887finish_cmds=$lt_finish_cmds
20888
20889# Same as above, but a single script fragment to be evaled but not shown.
20890finish_eval=$lt_finish_eval
20891
20892# Take the output of nm and produce a listing of raw symbols and C names.
20893global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20894
20895# Transform the output of nm in a proper C declaration
20896global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20897
20898# Transform the output of nm in a C name address pair
20899global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20900
20901# This is the shared library runtime path variable.
20902runpath_var=$runpath_var
20903
20904# This is the shared library path variable.
20905shlibpath_var=$shlibpath_var
20906
20907# Is shlibpath searched before the hard-coded library search path?
20908shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20909
20910# How to hardcode a shared library path into an executable.
20911hardcode_action=$hardcode_action_CXX
20912
20913# Whether we should hardcode library paths into libraries.
20914hardcode_into_libs=$hardcode_into_libs
20915
20916# Flag to hardcode \$libdir into a binary during linking.
20917# This must work even if \$libdir does not exist.
20918hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20919
20920# If ld is used when linking, flag to hardcode \$libdir into
20921# a binary during linking. This must work even if \$libdir does
20922# not exist.
20923hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20924
20925# Whether we need a single -rpath flag with a separated argument.
20926hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20927
20928# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20929# resulting binary.
20930hardcode_direct=$hardcode_direct_CXX
20931
20932# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20933# resulting binary.
20934hardcode_minus_L=$hardcode_minus_L_CXX
20935
20936# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20937# the resulting binary.
20938hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20939
20940# Set to yes if building a shared library automatically hardcodes DIR into the library
20941# and all subsequent libraries and executables linked against it.
20942hardcode_automatic=$hardcode_automatic_CXX
20943
20944# Variables whose values should be saved in libtool wrapper scripts and
20945# restored at relink time.
20946variables_saved_for_relink="$variables_saved_for_relink"
20947
20948# Whether libtool must link a program against all its dependency libraries.
20949link_all_deplibs=$link_all_deplibs_CXX
20950
20951# Compile-time system search path for libraries
20952sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20953
20954# Run-time system search path for libraries
20955sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20956
20957# Fix the shell variable \$srcfile for the compiler.
20958fix_srcfile_path="$fix_srcfile_path_CXX"
20959
20960# Set to yes if exported symbols are required.
20961always_export_symbols=$always_export_symbols_CXX
20962
20963# The commands to list exported symbols.
20964export_symbols_cmds=$lt_export_symbols_cmds_CXX
20965
20966# The commands to extract the exported symbol list from a shared archive.
20967extract_expsyms_cmds=$lt_extract_expsyms_cmds
20968
20969# Symbols that should not be listed in the preloaded symbols.
20970exclude_expsyms=$lt_exclude_expsyms_CXX
20971
20972# Symbols that must always be exported.
20973include_expsyms=$lt_include_expsyms_CXX
20974
20975# ### END LIBTOOL TAG CONFIG: $tagname
20976
20977__EOF__
20978
20979
20980else
20981 # If there is no Makefile yet, we rely on a make rule to execute
20982 # `config.status --recheck' to rerun these tests and create the
20983 # libtool script then.
20984 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20985 if test -f "$ltmain_in"; then
20986 test -f Makefile && make "$ltmain"
20987 fi
20988fi
20989
20990
20991ac_ext=c
20992ac_cpp='$CPP $CPPFLAGS'
20993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20995ac_compiler_gnu=$ac_cv_c_compiler_gnu
20996
20997CC=$lt_save_CC
20998LDCXX=$LD
20999LD=$lt_save_LD
21000GCC=$lt_save_GCC
21001with_gnu_ldcxx=$with_gnu_ld
21002with_gnu_ld=$lt_save_with_gnu_ld
21003lt_cv_path_LDCXX=$lt_cv_path_LD
21004lt_cv_path_LD=$lt_save_path_LD
21005lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21006lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21007
21008 else
21009 tagname=""
21010 fi
21011 ;;
21012
21013 F77)
21014 if test -n "$F77" && test "X$F77" != "Xno"; then
21015
21016ac_ext=f
21017ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21018ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21019ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21020
21021
21022archive_cmds_need_lc_F77=no
21023allow_undefined_flag_F77=
21024always_export_symbols_F77=no
21025archive_expsym_cmds_F77=
21026export_dynamic_flag_spec_F77=
21027hardcode_direct_F77=no
21028hardcode_libdir_flag_spec_F77=
21029hardcode_libdir_flag_spec_ld_F77=
21030hardcode_libdir_separator_F77=
21031hardcode_minus_L_F77=no
21032hardcode_automatic_F77=no
21033module_cmds_F77=
21034module_expsym_cmds_F77=
21035link_all_deplibs_F77=unknown
21036old_archive_cmds_F77=$old_archive_cmds
21037no_undefined_flag_F77=
21038whole_archive_flag_spec_F77=
21039enable_shared_with_static_runtimes_F77=no
21040
21041# Source file extension for f77 test sources.
21042ac_ext=f
21043
21044# Object file extension for compiled f77 test sources.
21045objext=o
21046objext_F77=$objext
21047
21048# Code to be used in simple compile tests
21049lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21050
21051# Code to be used in simple link tests
21052lt_simple_link_test_code=" program t\n end\n"
21053
21054# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21055
21056# If no C compiler was specified, use CC.
21057LTCC=${LTCC-"$CC"}
21058
21059# If no C compiler flags were specified, use CFLAGS.
21060LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21061
21062# Allow CC to be a program name with arguments.
21063compiler=$CC
21064
21065
21066# save warnings/boilerplate of simple test code
21067ac_outfile=conftest.$ac_objext
21068printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21069eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21070_lt_compiler_boilerplate=`cat conftest.err`
21071$rm conftest*
21072
21073ac_outfile=conftest.$ac_objext
21074printf "$lt_simple_link_test_code" >conftest.$ac_ext
21075eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21076_lt_linker_boilerplate=`cat conftest.err`
21077$rm conftest*
21078
21079
21080# Allow CC to be a program name with arguments.
21081lt_save_CC="$CC"
21082CC=${F77-"f77"}
21083compiler=$CC
21084compiler_F77=$CC
21085for cc_temp in $compiler""; do
21086 case $cc_temp in
21087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21089 \-*) ;;
21090 *) break;;
21091 esac
21092done
21093cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21094
21095
21096{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21097echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21098{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21099echo "${ECHO_T}$can_build_shared" >&6; }
21100
21101{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21102echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21103test "$can_build_shared" = "no" && enable_shared=no
21104
21105# On AIX, shared libraries and static libraries use the same namespace, and
21106# are all built from PIC.
21107case $host_os in
21108aix3*)
21109 test "$enable_shared" = yes && enable_static=no
21110 if test -n "$RANLIB"; then
21111 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21112 postinstall_cmds='$RANLIB $lib'
21113 fi
21114 ;;
21115aix4* | aix5*)
21116 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21117 test "$enable_shared" = yes && enable_static=no
21118 fi
21119 ;;
21120esac
21121{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21122echo "${ECHO_T}$enable_shared" >&6; }
21123
21124{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21125echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21126# Make sure either enable_shared or enable_static is yes.
21127test "$enable_shared" = yes || enable_static=yes
21128{ echo "$as_me:$LINENO: result: $enable_static" >&5
21129echo "${ECHO_T}$enable_static" >&6; }
21130
21131GCC_F77="$G77"
21132LD_F77="$LD"
21133
21134lt_prog_compiler_wl_F77=
21135lt_prog_compiler_pic_F77=
21136lt_prog_compiler_static_F77=
21137
21138{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21139echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21140
21141 if test "$GCC" = yes; then
21142 lt_prog_compiler_wl_F77='-Wl,'
21143 lt_prog_compiler_static_F77='-static'
21144
21145 case $host_os in
21146 aix*)
21147 # All AIX code is PIC.
21148 if test "$host_cpu" = ia64; then
21149 # AIX 5 now supports IA64 processor
21150 lt_prog_compiler_static_F77='-Bstatic'
21151 fi
21152 ;;
21153
21154 amigaos*)
21155 # FIXME: we need at least 68020 code to build shared libraries, but
21156 # adding the `-m68020' flag to GCC prevents building anything better,
21157 # like `-m68040'.
21158 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21159 ;;
21160
21161 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21162 # PIC is the default for these OSes.
21163 ;;
21164
21165 mingw* | pw32* | os2*)
21166 # This hack is so that the source file can tell whether it is being
21167 # built for inclusion in a dll (and should export symbols for example).
21168 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21169 ;;
21170
21171 darwin* | rhapsody*)
21172 # PIC is the default on this platform
21173 # Common symbols not allowed in MH_DYLIB files
21174 lt_prog_compiler_pic_F77='-fno-common'
21175 ;;
21176
21177 interix3*)
21178 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21179 # Instead, we relocate shared libraries at runtime.
21180 ;;
21181
21182 msdosdjgpp*)
21183 # Just because we use GCC doesn't mean we suddenly get shared libraries
21184 # on systems that don't support them.
21185 lt_prog_compiler_can_build_shared_F77=no
21186 enable_shared=no
21187 ;;
21188
21189 sysv4*MP*)
21190 if test -d /usr/nec; then
21191 lt_prog_compiler_pic_F77=-Kconform_pic
21192 fi
21193 ;;
21194
21195 hpux*)
21196 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21197 # not for PA HP-UX.
21198 case $host_cpu in
21199 hppa*64*|ia64*)
21200 # +Z the default
21201 ;;
21202 *)
21203 lt_prog_compiler_pic_F77='-fPIC'
21204 ;;
21205 esac
21206 ;;
21207
21208 *)
21209 lt_prog_compiler_pic_F77='-fPIC'
21210 ;;
21211 esac
21212 else
21213 # PORTME Check for flag to pass linker flags through the system compiler.
21214 case $host_os in
21215 aix*)
21216 lt_prog_compiler_wl_F77='-Wl,'
21217 if test "$host_cpu" = ia64; then
21218 # AIX 5 now supports IA64 processor
21219 lt_prog_compiler_static_F77='-Bstatic'
21220 else
21221 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21222 fi
21223 ;;
21224 darwin*)
21225 # PIC is the default on this platform
21226 # Common symbols not allowed in MH_DYLIB files
21227 case $cc_basename in
21228 xlc*)
21229 lt_prog_compiler_pic_F77='-qnocommon'
21230 lt_prog_compiler_wl_F77='-Wl,'
21231 ;;
21232 esac
21233 ;;
21234
21235 mingw* | pw32* | os2*)
21236 # This hack is so that the source file can tell whether it is being
21237 # built for inclusion in a dll (and should export symbols for example).
21238 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21239 ;;
21240
21241 hpux9* | hpux10* | hpux11*)
21242 lt_prog_compiler_wl_F77='-Wl,'
21243 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21244 # not for PA HP-UX.
21245 case $host_cpu in
21246 hppa*64*|ia64*)
21247 # +Z the default
21248 ;;
21249 *)
21250 lt_prog_compiler_pic_F77='+Z'
21251 ;;
21252 esac
21253 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21254 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21255 ;;
21256
21257 irix5* | irix6* | nonstopux*)
21258 lt_prog_compiler_wl_F77='-Wl,'
21259 # PIC (with -KPIC) is the default.
21260 lt_prog_compiler_static_F77='-non_shared'
21261 ;;
21262
21263 newsos6)
21264 lt_prog_compiler_pic_F77='-KPIC'
21265 lt_prog_compiler_static_F77='-Bstatic'
21266 ;;
21267
21268 linux*)
21269 case $cc_basename in
21270 icc* | ecc*)
21271 lt_prog_compiler_wl_F77='-Wl,'
21272 lt_prog_compiler_pic_F77='-KPIC'
21273 lt_prog_compiler_static_F77='-static'
21274 ;;
21275 pgcc* | pgf77* | pgf90* | pgf95*)
21276 # Portland Group compilers (*not* the Pentium gcc compiler,
21277 # which looks to be a dead project)
21278 lt_prog_compiler_wl_F77='-Wl,'
21279 lt_prog_compiler_pic_F77='-fpic'
21280 lt_prog_compiler_static_F77='-Bstatic'
21281 ;;
21282 ccc*)
21283 lt_prog_compiler_wl_F77='-Wl,'
21284 # All Alpha code is PIC.
21285 lt_prog_compiler_static_F77='-non_shared'
21286 ;;
21287 esac
21288 ;;
21289
21290 osf3* | osf4* | osf5*)
21291 lt_prog_compiler_wl_F77='-Wl,'
21292 # All OSF/1 code is PIC.
21293 lt_prog_compiler_static_F77='-non_shared'
21294 ;;
21295
21296 solaris*)
21297 lt_prog_compiler_pic_F77='-KPIC'
21298 lt_prog_compiler_static_F77='-Bstatic'
21299 case $cc_basename in
21300 f77* | f90* | f95*)
21301 lt_prog_compiler_wl_F77='-Qoption ld ';;
21302 *)
21303 lt_prog_compiler_wl_F77='-Wl,';;
21304 esac
21305 ;;
21306
21307 sunos4*)
21308 lt_prog_compiler_wl_F77='-Qoption ld '
21309 lt_prog_compiler_pic_F77='-PIC'
21310 lt_prog_compiler_static_F77='-Bstatic'
21311 ;;
21312
21313 sysv4 | sysv4.2uw2* | sysv4.3*)
21314 lt_prog_compiler_wl_F77='-Wl,'
21315 lt_prog_compiler_pic_F77='-KPIC'
21316 lt_prog_compiler_static_F77='-Bstatic'
21317 ;;
21318
21319 sysv4*MP*)
21320 if test -d /usr/nec ;then
21321 lt_prog_compiler_pic_F77='-Kconform_pic'
21322 lt_prog_compiler_static_F77='-Bstatic'
21323 fi
21324 ;;
21325
21326 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21327 lt_prog_compiler_wl_F77='-Wl,'
21328 lt_prog_compiler_pic_F77='-KPIC'
21329 lt_prog_compiler_static_F77='-Bstatic'
21330 ;;
21331
21332 unicos*)
21333 lt_prog_compiler_wl_F77='-Wl,'
21334 lt_prog_compiler_can_build_shared_F77=no
21335 ;;
21336
21337 uts4*)
21338 lt_prog_compiler_pic_F77='-pic'
21339 lt_prog_compiler_static_F77='-Bstatic'
21340 ;;
21341
21342 *)
21343 lt_prog_compiler_can_build_shared_F77=no
21344 ;;
21345 esac
21346 fi
21347
21348{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21349echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21350
21351#
21352# Check to make sure the PIC flag actually works.
21353#
21354if test -n "$lt_prog_compiler_pic_F77"; then
21355
21356{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21357echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21358if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21360else
21361 lt_prog_compiler_pic_works_F77=no
21362 ac_outfile=conftest.$ac_objext
21363 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21364 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21365 # Insert the option either (1) after the last *FLAGS variable, or
21366 # (2) before a word containing "conftest.", or (3) at the end.
21367 # Note that $ac_compile itself does not contain backslashes and begins
21368 # with a dollar sign (not a hyphen), so the echo should work correctly.
21369 # The option is referenced via a variable to avoid confusing sed.
21370 lt_compile=`echo "$ac_compile" | $SED \
21371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21373 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky6c58a402009-04-13 04:26:27 +000021374 (eval echo "\"\$as_me:21374: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021375 (eval "$lt_compile" 2>conftest.err)
21376 ac_status=$?
21377 cat conftest.err >&5
Nick Lewycky6c58a402009-04-13 04:26:27 +000021378 echo "$as_me:21378: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021379 if (exit $ac_status) && test -s "$ac_outfile"; then
21380 # The compiler can only warn and ignore the option if not recognized
21381 # So say no if there are warnings other than the usual output.
21382 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21384 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21385 lt_prog_compiler_pic_works_F77=yes
21386 fi
21387 fi
21388 $rm conftest*
21389
21390fi
21391{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21392echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21393
21394if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21395 case $lt_prog_compiler_pic_F77 in
21396 "" | " "*) ;;
21397 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21398 esac
21399else
21400 lt_prog_compiler_pic_F77=
21401 lt_prog_compiler_can_build_shared_F77=no
21402fi
21403
21404fi
21405case $host_os in
21406 # For platforms which do not support PIC, -DPIC is meaningless:
21407 *djgpp*)
21408 lt_prog_compiler_pic_F77=
21409 ;;
21410 *)
21411 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21412 ;;
21413esac
21414
21415#
21416# Check to make sure the static flag actually works.
21417#
21418wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21419{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21420echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21421if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21422 echo $ECHO_N "(cached) $ECHO_C" >&6
21423else
21424 lt_prog_compiler_static_works_F77=no
21425 save_LDFLAGS="$LDFLAGS"
21426 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21427 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21428 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21429 # The linker can only warn and ignore the option if not recognized
21430 # So say no if there are warnings
21431 if test -s conftest.err; then
21432 # Append any errors to the config.log.
21433 cat conftest.err 1>&5
21434 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21436 if diff conftest.exp conftest.er2 >/dev/null; then
21437 lt_prog_compiler_static_works_F77=yes
21438 fi
21439 else
21440 lt_prog_compiler_static_works_F77=yes
21441 fi
21442 fi
21443 $rm conftest*
21444 LDFLAGS="$save_LDFLAGS"
21445
21446fi
21447{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21448echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21449
21450if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21451 :
21452else
21453 lt_prog_compiler_static_F77=
21454fi
21455
21456
21457{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21458echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21459if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21461else
21462 lt_cv_prog_compiler_c_o_F77=no
21463 $rm -r conftest 2>/dev/null
21464 mkdir conftest
21465 cd conftest
21466 mkdir out
21467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21468
21469 lt_compiler_flag="-o out/conftest2.$ac_objext"
21470 # Insert the option either (1) after the last *FLAGS variable, or
21471 # (2) before a word containing "conftest.", or (3) at the end.
21472 # Note that $ac_compile itself does not contain backslashes and begins
21473 # with a dollar sign (not a hyphen), so the echo should work correctly.
21474 lt_compile=`echo "$ac_compile" | $SED \
21475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21477 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky6c58a402009-04-13 04:26:27 +000021478 (eval echo "\"\$as_me:21478: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021479 (eval "$lt_compile" 2>out/conftest.err)
21480 ac_status=$?
21481 cat out/conftest.err >&5
Nick Lewycky6c58a402009-04-13 04:26:27 +000021482 echo "$as_me:21482: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021483 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21484 then
21485 # The compiler can only warn and ignore the option if not recognized
21486 # So say no if there are warnings
21487 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21488 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21489 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21490 lt_cv_prog_compiler_c_o_F77=yes
21491 fi
21492 fi
21493 chmod u+w . 2>&5
21494 $rm conftest*
21495 # SGI C++ compiler will create directory out/ii_files/ for
21496 # template instantiation
21497 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21498 $rm out/* && rmdir out
21499 cd ..
21500 rmdir conftest
21501 $rm conftest*
21502
21503fi
21504{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21505echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21506
21507
21508hard_links="nottested"
21509if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21510 # do not overwrite the value of need_locks provided by the user
21511 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21512echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21513 hard_links=yes
21514 $rm conftest*
21515 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21516 touch conftest.a
21517 ln conftest.a conftest.b 2>&5 || hard_links=no
21518 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21519 { echo "$as_me:$LINENO: result: $hard_links" >&5
21520echo "${ECHO_T}$hard_links" >&6; }
21521 if test "$hard_links" = no; then
21522 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21523echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21524 need_locks=warn
21525 fi
21526else
21527 need_locks=no
21528fi
21529
21530{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21531echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21532
21533 runpath_var=
21534 allow_undefined_flag_F77=
21535 enable_shared_with_static_runtimes_F77=no
21536 archive_cmds_F77=
21537 archive_expsym_cmds_F77=
21538 old_archive_From_new_cmds_F77=
21539 old_archive_from_expsyms_cmds_F77=
21540 export_dynamic_flag_spec_F77=
21541 whole_archive_flag_spec_F77=
21542 thread_safe_flag_spec_F77=
21543 hardcode_libdir_flag_spec_F77=
21544 hardcode_libdir_flag_spec_ld_F77=
21545 hardcode_libdir_separator_F77=
21546 hardcode_direct_F77=no
21547 hardcode_minus_L_F77=no
21548 hardcode_shlibpath_var_F77=unsupported
21549 link_all_deplibs_F77=unknown
21550 hardcode_automatic_F77=no
21551 module_cmds_F77=
21552 module_expsym_cmds_F77=
21553 always_export_symbols_F77=no
21554 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21555 # include_expsyms should be a list of space-separated symbols to be *always*
21556 # included in the symbol list
21557 include_expsyms_F77=
21558 # exclude_expsyms can be an extended regexp of symbols to exclude
21559 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21560 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21561 # as well as any symbol that contains `d'.
21562 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21563 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21564 # platforms (ab)use it in PIC code, but their linkers get confused if
21565 # the symbol is explicitly referenced. Since portable code cannot
21566 # rely on this symbol name, it's probably fine to never include it in
21567 # preloaded symbol tables.
21568 extract_expsyms_cmds=
21569 # Just being paranoid about ensuring that cc_basename is set.
21570 for cc_temp in $compiler""; do
21571 case $cc_temp in
21572 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21573 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21574 \-*) ;;
21575 *) break;;
21576 esac
21577done
21578cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21579
21580 case $host_os in
21581 cygwin* | mingw* | pw32*)
21582 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21583 # When not using gcc, we currently assume that we are using
21584 # Microsoft Visual C++.
21585 if test "$GCC" != yes; then
21586 with_gnu_ld=no
21587 fi
21588 ;;
21589 interix*)
21590 # we just hope/assume this is gcc and not c89 (= MSVC++)
21591 with_gnu_ld=yes
21592 ;;
21593 openbsd*)
21594 with_gnu_ld=no
21595 ;;
21596 esac
21597
21598 ld_shlibs_F77=yes
21599 if test "$with_gnu_ld" = yes; then
21600 # If archive_cmds runs LD, not CC, wlarc should be empty
21601 wlarc='${wl}'
21602
21603 # Set some defaults for GNU ld with shared library support. These
21604 # are reset later if shared libraries are not supported. Putting them
21605 # here allows them to be overridden if necessary.
21606 runpath_var=LD_RUN_PATH
21607 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21608 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21609 # ancient GNU ld didn't support --whole-archive et. al.
21610 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21611 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21612 else
21613 whole_archive_flag_spec_F77=
21614 fi
21615 supports_anon_versioning=no
21616 case `$LD -v 2>/dev/null` in
21617 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21618 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21619 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21620 *\ 2.11.*) ;; # other 2.11 versions
21621 *) supports_anon_versioning=yes ;;
21622 esac
21623
21624 # See if GNU ld supports shared libraries.
21625 case $host_os in
21626 aix3* | aix4* | aix5*)
21627 # On AIX/PPC, the GNU linker is very broken
21628 if test "$host_cpu" != ia64; then
21629 ld_shlibs_F77=no
21630 cat <<EOF 1>&2
21631
21632*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21633*** to be unable to reliably create shared libraries on AIX.
21634*** Therefore, libtool is disabling shared libraries support. If you
21635*** really care for shared libraries, you may want to modify your PATH
21636*** so that a non-GNU linker is found, and then restart.
21637
21638EOF
21639 fi
21640 ;;
21641
21642 amigaos*)
21643 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)'
21644 hardcode_libdir_flag_spec_F77='-L$libdir'
21645 hardcode_minus_L_F77=yes
21646
21647 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21648 # that the semantics of dynamic libraries on AmigaOS, at least up
21649 # to version 4, is to share data among multiple programs linked
21650 # with the same dynamic library. Since this doesn't match the
21651 # behavior of shared libraries on other platforms, we can't use
21652 # them.
21653 ld_shlibs_F77=no
21654 ;;
21655
21656 beos*)
21657 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21658 allow_undefined_flag_F77=unsupported
21659 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21660 # support --undefined. This deserves some investigation. FIXME
21661 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21662 else
21663 ld_shlibs_F77=no
21664 fi
21665 ;;
21666
21667 cygwin* | mingw* | pw32*)
21668 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21669 # as there is no search path for DLLs.
21670 hardcode_libdir_flag_spec_F77='-L$libdir'
21671 allow_undefined_flag_F77=unsupported
21672 always_export_symbols_F77=no
21673 enable_shared_with_static_runtimes_F77=yes
21674 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21675
21676 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21677 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21678 # If the export-symbols file already is a .def file (1st line
21679 # is EXPORTS), use it as is; otherwise, prepend...
21680 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21681 cp $export_symbols $output_objdir/$soname.def;
21682 else
21683 echo EXPORTS > $output_objdir/$soname.def;
21684 cat $export_symbols >> $output_objdir/$soname.def;
21685 fi~
21686 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21687 else
21688 ld_shlibs_F77=no
21689 fi
21690 ;;
21691
21692 interix3*)
21693 hardcode_direct_F77=no
21694 hardcode_shlibpath_var_F77=no
21695 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21696 export_dynamic_flag_spec_F77='${wl}-E'
21697 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21698 # Instead, shared libraries are loaded at an image base (0x10000000 by
21699 # default) and relocated if they conflict, which is a slow very memory
21700 # consuming and fragmenting process. To avoid this, we pick a random,
21701 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21702 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21703 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'
21704 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'
21705 ;;
21706
21707 linux*)
21708 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21709 tmp_addflag=
21710 case $cc_basename,$host_cpu in
21711 pgcc*) # Portland Group C compiler
21712 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'
21713 tmp_addflag=' $pic_flag'
21714 ;;
21715 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21716 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'
21717 tmp_addflag=' $pic_flag -Mnomain' ;;
21718 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21719 tmp_addflag=' -i_dynamic' ;;
21720 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21721 tmp_addflag=' -i_dynamic -nofor_main' ;;
21722 ifc* | ifort*) # Intel Fortran compiler
21723 tmp_addflag=' -nofor_main' ;;
21724 esac
21725 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21726
21727 if test $supports_anon_versioning = yes; then
21728 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21729 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21730 $echo "local: *; };" >> $output_objdir/$libname.ver~
21731 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21732 fi
21733 else
21734 ld_shlibs_F77=no
21735 fi
21736 ;;
21737
21738 netbsd*)
21739 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21740 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21741 wlarc=
21742 else
21743 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21744 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21745 fi
21746 ;;
21747
21748 solaris*)
21749 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21750 ld_shlibs_F77=no
21751 cat <<EOF 1>&2
21752
21753*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21754*** create shared libraries on Solaris systems. Therefore, libtool
21755*** is disabling shared libraries support. We urge you to upgrade GNU
21756*** binutils to release 2.9.1 or newer. Another option is to modify
21757*** your PATH or compiler configuration so that the native linker is
21758*** used, and then restart.
21759
21760EOF
21761 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21762 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21763 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21764 else
21765 ld_shlibs_F77=no
21766 fi
21767 ;;
21768
21769 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21770 case `$LD -v 2>&1` in
21771 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21772 ld_shlibs_F77=no
21773 cat <<_LT_EOF 1>&2
21774
21775*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21776*** reliably create shared libraries on SCO systems. Therefore, libtool
21777*** is disabling shared libraries support. We urge you to upgrade GNU
21778*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21779*** your PATH or compiler configuration so that the native linker is
21780*** used, and then restart.
21781
21782_LT_EOF
21783 ;;
21784 *)
21785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21786 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21787 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21788 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21789 else
21790 ld_shlibs_F77=no
21791 fi
21792 ;;
21793 esac
21794 ;;
21795
21796 sunos4*)
21797 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21798 wlarc=
21799 hardcode_direct_F77=yes
21800 hardcode_shlibpath_var_F77=no
21801 ;;
21802
21803 *)
21804 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21805 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21806 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21807 else
21808 ld_shlibs_F77=no
21809 fi
21810 ;;
21811 esac
21812
21813 if test "$ld_shlibs_F77" = no; then
21814 runpath_var=
21815 hardcode_libdir_flag_spec_F77=
21816 export_dynamic_flag_spec_F77=
21817 whole_archive_flag_spec_F77=
21818 fi
21819 else
21820 # PORTME fill in a description of your system's linker (not GNU ld)
21821 case $host_os in
21822 aix3*)
21823 allow_undefined_flag_F77=unsupported
21824 always_export_symbols_F77=yes
21825 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'
21826 # Note: this linker hardcodes the directories in LIBPATH if there
21827 # are no directories specified by -L.
21828 hardcode_minus_L_F77=yes
21829 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21830 # Neither direct hardcoding nor static linking is supported with a
21831 # broken collect2.
21832 hardcode_direct_F77=unsupported
21833 fi
21834 ;;
21835
21836 aix4* | aix5*)
21837 if test "$host_cpu" = ia64; then
21838 # On IA64, the linker does run time linking by default, so we don't
21839 # have to do anything special.
21840 aix_use_runtimelinking=no
21841 exp_sym_flag='-Bexport'
21842 no_entry_flag=""
21843 else
21844 # If we're using GNU nm, then we don't want the "-C" option.
21845 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21846 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21847 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'
21848 else
21849 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'
21850 fi
21851 aix_use_runtimelinking=no
21852
21853 # Test if we are trying to use run time linking or normal
21854 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21855 # need to do runtime linking.
21856 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21857 for ld_flag in $LDFLAGS; do
21858 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21859 aix_use_runtimelinking=yes
21860 break
21861 fi
21862 done
21863 ;;
21864 esac
21865
21866 exp_sym_flag='-bexport'
21867 no_entry_flag='-bnoentry'
21868 fi
21869
21870 # When large executables or shared objects are built, AIX ld can
21871 # have problems creating the table of contents. If linking a library
21872 # or program results in "error TOC overflow" add -mminimal-toc to
21873 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21874 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21875
21876 archive_cmds_F77=''
21877 hardcode_direct_F77=yes
21878 hardcode_libdir_separator_F77=':'
21879 link_all_deplibs_F77=yes
21880
21881 if test "$GCC" = yes; then
21882 case $host_os in aix4.[012]|aix4.[012].*)
21883 # We only want to do this on AIX 4.2 and lower, the check
21884 # below for broken collect2 doesn't work under 4.3+
21885 collect2name=`${CC} -print-prog-name=collect2`
21886 if test -f "$collect2name" && \
21887 strings "$collect2name" | grep resolve_lib_name >/dev/null
21888 then
21889 # We have reworked collect2
21890 hardcode_direct_F77=yes
21891 else
21892 # We have old collect2
21893 hardcode_direct_F77=unsupported
21894 # It fails to find uninstalled libraries when the uninstalled
21895 # path is not listed in the libpath. Setting hardcode_minus_L
21896 # to unsupported forces relinking
21897 hardcode_minus_L_F77=yes
21898 hardcode_libdir_flag_spec_F77='-L$libdir'
21899 hardcode_libdir_separator_F77=
21900 fi
21901 ;;
21902 esac
21903 shared_flag='-shared'
21904 if test "$aix_use_runtimelinking" = yes; then
21905 shared_flag="$shared_flag "'${wl}-G'
21906 fi
21907 else
21908 # not using gcc
21909 if test "$host_cpu" = ia64; then
21910 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21911 # chokes on -Wl,-G. The following line is correct:
21912 shared_flag='-G'
21913 else
21914 if test "$aix_use_runtimelinking" = yes; then
21915 shared_flag='${wl}-G'
21916 else
21917 shared_flag='${wl}-bM:SRE'
21918 fi
21919 fi
21920 fi
21921
21922 # It seems that -bexpall does not export symbols beginning with
21923 # underscore (_), so it is better to generate a list of symbols to export.
21924 always_export_symbols_F77=yes
21925 if test "$aix_use_runtimelinking" = yes; then
21926 # Warning - without using the other runtime loading flags (-brtl),
21927 # -berok will link without error, but may produce a broken library.
21928 allow_undefined_flag_F77='-berok'
21929 # Determine the default libpath from the value encoded in an empty executable.
21930 cat >conftest.$ac_ext <<_ACEOF
21931 program main
21932
21933 end
21934_ACEOF
21935rm -f conftest.$ac_objext conftest$ac_exeext
21936if { (ac_try="$ac_link"
21937case "(($ac_try" in
21938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21939 *) ac_try_echo=$ac_try;;
21940esac
21941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21942 (eval "$ac_link") 2>conftest.er1
21943 ac_status=$?
21944 grep -v '^ *+' conftest.er1 >conftest.err
21945 rm -f conftest.er1
21946 cat conftest.err >&5
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000021948 (exit $ac_status); } &&
21949 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21950 { (case "(($ac_try" in
21951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21952 *) ac_try_echo=$ac_try;;
21953esac
21954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21955 (eval "$ac_try") 2>&5
21956 ac_status=$?
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); }; } &&
21959 { ac_try='test -s conftest$ac_exeext'
21960 { (case "(($ac_try" in
21961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962 *) ac_try_echo=$ac_try;;
21963esac
21964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21965 (eval "$ac_try") 2>&5
21966 ac_status=$?
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021969
21970aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21971}'`
21972# Check for a 64-bit object if we didn't find anything.
21973if 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; }
21974}'`; fi
21975else
21976 echo "$as_me: failed program was:" >&5
21977sed 's/^/| /' conftest.$ac_ext >&5
21978
21979
21980fi
21981
Tanya Lattner3fa4a442009-01-22 05:17:59 +000021982rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021983 conftest$ac_exeext conftest.$ac_ext
21984if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21985
21986 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21987 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"
21988 else
21989 if test "$host_cpu" = ia64; then
21990 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21991 allow_undefined_flag_F77="-z nodefs"
21992 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"
21993 else
21994 # Determine the default libpath from the value encoded in an empty executable.
21995 cat >conftest.$ac_ext <<_ACEOF
21996 program main
21997
21998 end
21999_ACEOF
22000rm -f conftest.$ac_objext conftest$ac_exeext
22001if { (ac_try="$ac_link"
22002case "(($ac_try" in
22003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004 *) ac_try_echo=$ac_try;;
22005esac
22006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22007 (eval "$ac_link") 2>conftest.er1
22008 ac_status=$?
22009 grep -v '^ *+' conftest.er1 >conftest.err
22010 rm -f conftest.er1
22011 cat conftest.err >&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000022013 (exit $ac_status); } &&
22014 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22015 { (case "(($ac_try" in
22016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017 *) ac_try_echo=$ac_try;;
22018esac
22019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22020 (eval "$ac_try") 2>&5
22021 ac_status=$?
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); }; } &&
22024 { ac_try='test -s conftest$ac_exeext'
22025 { (case "(($ac_try" in
22026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027 *) ac_try_echo=$ac_try;;
22028esac
22029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22030 (eval "$ac_try") 2>&5
22031 ac_status=$?
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022034
22035aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22036}'`
22037# Check for a 64-bit object if we didn't find anything.
22038if 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; }
22039}'`; fi
22040else
22041 echo "$as_me: failed program was:" >&5
22042sed 's/^/| /' conftest.$ac_ext >&5
22043
22044
22045fi
22046
Tanya Lattner3fa4a442009-01-22 05:17:59 +000022047rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022048 conftest$ac_exeext conftest.$ac_ext
22049if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22050
22051 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22052 # Warning - without using the other run time loading flags,
22053 # -berok will link without error, but may produce a broken library.
22054 no_undefined_flag_F77=' ${wl}-bernotok'
22055 allow_undefined_flag_F77=' ${wl}-berok'
22056 # Exported symbols can be pulled into shared objects from archives
22057 whole_archive_flag_spec_F77='$convenience'
22058 archive_cmds_need_lc_F77=yes
22059 # This is similar to how AIX traditionally builds its shared libraries.
22060 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'
22061 fi
22062 fi
22063 ;;
22064
22065 amigaos*)
22066 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)'
22067 hardcode_libdir_flag_spec_F77='-L$libdir'
22068 hardcode_minus_L_F77=yes
22069 # see comment about different semantics on the GNU ld section
22070 ld_shlibs_F77=no
22071 ;;
22072
22073 bsdi[45]*)
22074 export_dynamic_flag_spec_F77=-rdynamic
22075 ;;
22076
22077 cygwin* | mingw* | pw32*)
22078 # When not using gcc, we currently assume that we are using
22079 # Microsoft Visual C++.
22080 # hardcode_libdir_flag_spec is actually meaningless, as there is
22081 # no search path for DLLs.
22082 hardcode_libdir_flag_spec_F77=' '
22083 allow_undefined_flag_F77=unsupported
22084 # Tell ltmain to make .lib files, not .a files.
22085 libext=lib
22086 # Tell ltmain to make .dll files, not .so files.
22087 shrext_cmds=".dll"
22088 # FIXME: Setting linknames here is a bad hack.
22089 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22090 # The linker will automatically build a .lib file if we build a DLL.
22091 old_archive_From_new_cmds_F77='true'
22092 # FIXME: Should let the user specify the lib program.
22093 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22094 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22095 enable_shared_with_static_runtimes_F77=yes
22096 ;;
22097
22098 darwin* | rhapsody*)
22099 case $host_os in
22100 rhapsody* | darwin1.[012])
22101 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22102 ;;
22103 *) # Darwin 1.3 on
22104 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22105 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22106 else
22107 case ${MACOSX_DEPLOYMENT_TARGET} in
22108 10.[012])
22109 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22110 ;;
22111 10.*)
22112 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22113 ;;
22114 esac
22115 fi
22116 ;;
22117 esac
22118 archive_cmds_need_lc_F77=no
22119 hardcode_direct_F77=no
22120 hardcode_automatic_F77=yes
22121 hardcode_shlibpath_var_F77=unsupported
22122 whole_archive_flag_spec_F77=''
22123 link_all_deplibs_F77=yes
22124 if test "$GCC" = yes ; then
22125 output_verbose_link_cmd='echo'
22126 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22127 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22128 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22129 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}'
22130 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}'
22131 else
22132 case $cc_basename in
22133 xlc*)
22134 output_verbose_link_cmd='echo'
22135 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22136 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22137 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22138 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}'
22139 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}'
22140 ;;
22141 *)
22142 ld_shlibs_F77=no
22143 ;;
22144 esac
22145 fi
22146 ;;
22147
22148 dgux*)
22149 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22150 hardcode_libdir_flag_spec_F77='-L$libdir'
22151 hardcode_shlibpath_var_F77=no
22152 ;;
22153
22154 freebsd1*)
22155 ld_shlibs_F77=no
22156 ;;
22157
22158 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22159 # support. Future versions do this automatically, but an explicit c++rt0.o
22160 # does not break anything, and helps significantly (at the cost of a little
22161 # extra space).
22162 freebsd2.2*)
22163 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22164 hardcode_libdir_flag_spec_F77='-R$libdir'
22165 hardcode_direct_F77=yes
22166 hardcode_shlibpath_var_F77=no
22167 ;;
22168
22169 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22170 freebsd2*)
22171 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22172 hardcode_direct_F77=yes
22173 hardcode_minus_L_F77=yes
22174 hardcode_shlibpath_var_F77=no
22175 ;;
22176
22177 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22178 freebsd* | kfreebsd*-gnu | dragonfly*)
22179 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22180 hardcode_libdir_flag_spec_F77='-R$libdir'
22181 hardcode_direct_F77=yes
22182 hardcode_shlibpath_var_F77=no
22183 ;;
22184
22185 hpux9*)
22186 if test "$GCC" = yes; then
22187 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'
22188 else
22189 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'
22190 fi
22191 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22192 hardcode_libdir_separator_F77=:
22193 hardcode_direct_F77=yes
22194
22195 # hardcode_minus_L: Not really in the search PATH,
22196 # but as the default location of the library.
22197 hardcode_minus_L_F77=yes
22198 export_dynamic_flag_spec_F77='${wl}-E'
22199 ;;
22200
22201 hpux10*)
22202 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22203 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22204 else
22205 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22206 fi
22207 if test "$with_gnu_ld" = no; then
22208 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22209 hardcode_libdir_separator_F77=:
22210
22211 hardcode_direct_F77=yes
22212 export_dynamic_flag_spec_F77='${wl}-E'
22213
22214 # hardcode_minus_L: Not really in the search PATH,
22215 # but as the default location of the library.
22216 hardcode_minus_L_F77=yes
22217 fi
22218 ;;
22219
22220 hpux11*)
22221 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22222 case $host_cpu in
22223 hppa*64*)
22224 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22225 ;;
22226 ia64*)
22227 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22228 ;;
22229 *)
22230 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22231 ;;
22232 esac
22233 else
22234 case $host_cpu in
22235 hppa*64*)
22236 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22237 ;;
22238 ia64*)
22239 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22240 ;;
22241 *)
22242 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22243 ;;
22244 esac
22245 fi
22246 if test "$with_gnu_ld" = no; then
22247 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22248 hardcode_libdir_separator_F77=:
22249
22250 case $host_cpu in
22251 hppa*64*|ia64*)
22252 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22253 hardcode_direct_F77=no
22254 hardcode_shlibpath_var_F77=no
22255 ;;
22256 *)
22257 hardcode_direct_F77=yes
22258 export_dynamic_flag_spec_F77='${wl}-E'
22259
22260 # hardcode_minus_L: Not really in the search PATH,
22261 # but as the default location of the library.
22262 hardcode_minus_L_F77=yes
22263 ;;
22264 esac
22265 fi
22266 ;;
22267
22268 irix5* | irix6* | nonstopux*)
22269 if test "$GCC" = yes; then
22270 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'
22271 else
22272 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'
22273 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22274 fi
22275 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22276 hardcode_libdir_separator_F77=:
22277 link_all_deplibs_F77=yes
22278 ;;
22279
22280 netbsd*)
22281 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22282 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22283 else
22284 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22285 fi
22286 hardcode_libdir_flag_spec_F77='-R$libdir'
22287 hardcode_direct_F77=yes
22288 hardcode_shlibpath_var_F77=no
22289 ;;
22290
22291 newsos6)
22292 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22293 hardcode_direct_F77=yes
22294 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22295 hardcode_libdir_separator_F77=:
22296 hardcode_shlibpath_var_F77=no
22297 ;;
22298
22299 openbsd*)
22300 hardcode_direct_F77=yes
22301 hardcode_shlibpath_var_F77=no
22302 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22303 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22304 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22305 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22306 export_dynamic_flag_spec_F77='${wl}-E'
22307 else
22308 case $host_os in
22309 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22310 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22311 hardcode_libdir_flag_spec_F77='-R$libdir'
22312 ;;
22313 *)
22314 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22315 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22316 ;;
22317 esac
22318 fi
22319 ;;
22320
22321 os2*)
22322 hardcode_libdir_flag_spec_F77='-L$libdir'
22323 hardcode_minus_L_F77=yes
22324 allow_undefined_flag_F77=unsupported
22325 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'
22326 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22327 ;;
22328
22329 osf3*)
22330 if test "$GCC" = yes; then
22331 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22332 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'
22333 else
22334 allow_undefined_flag_F77=' -expect_unresolved \*'
22335 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'
22336 fi
22337 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22338 hardcode_libdir_separator_F77=:
22339 ;;
22340
22341 osf4* | osf5*) # as osf3* with the addition of -msym flag
22342 if test "$GCC" = yes; then
22343 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22344 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'
22345 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22346 else
22347 allow_undefined_flag_F77=' -expect_unresolved \*'
22348 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'
22349 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~
22350 $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'
22351
22352 # Both c and cxx compiler support -rpath directly
22353 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22354 fi
22355 hardcode_libdir_separator_F77=:
22356 ;;
22357
22358 solaris*)
22359 no_undefined_flag_F77=' -z text'
22360 if test "$GCC" = yes; then
22361 wlarc='${wl}'
22362 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22363 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22364 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22365 else
22366 wlarc=''
22367 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22368 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22369 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22370 fi
22371 hardcode_libdir_flag_spec_F77='-R$libdir'
22372 hardcode_shlibpath_var_F77=no
22373 case $host_os in
22374 solaris2.[0-5] | solaris2.[0-5].*) ;;
22375 *)
22376 # The compiler driver will combine linker options so we
22377 # cannot just pass the convience library names through
22378 # without $wl, iff we do not link with $LD.
22379 # Luckily, gcc supports the same syntax we need for Sun Studio.
22380 # Supported since Solaris 2.6 (maybe 2.5.1?)
22381 case $wlarc in
22382 '')
22383 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22384 *)
22385 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' ;;
22386 esac ;;
22387 esac
22388 link_all_deplibs_F77=yes
22389 ;;
22390
22391 sunos4*)
22392 if test "x$host_vendor" = xsequent; then
22393 # Use $CC to link under sequent, because it throws in some extra .o
22394 # files that make .init and .fini sections work.
22395 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22396 else
22397 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22398 fi
22399 hardcode_libdir_flag_spec_F77='-L$libdir'
22400 hardcode_direct_F77=yes
22401 hardcode_minus_L_F77=yes
22402 hardcode_shlibpath_var_F77=no
22403 ;;
22404
22405 sysv4)
22406 case $host_vendor in
22407 sni)
22408 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22409 hardcode_direct_F77=yes # is this really true???
22410 ;;
22411 siemens)
22412 ## LD is ld it makes a PLAMLIB
22413 ## CC just makes a GrossModule.
22414 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22415 reload_cmds_F77='$CC -r -o $output$reload_objs'
22416 hardcode_direct_F77=no
22417 ;;
22418 motorola)
22419 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22420 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22421 ;;
22422 esac
22423 runpath_var='LD_RUN_PATH'
22424 hardcode_shlibpath_var_F77=no
22425 ;;
22426
22427 sysv4.3*)
22428 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22429 hardcode_shlibpath_var_F77=no
22430 export_dynamic_flag_spec_F77='-Bexport'
22431 ;;
22432
22433 sysv4*MP*)
22434 if test -d /usr/nec; then
22435 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22436 hardcode_shlibpath_var_F77=no
22437 runpath_var=LD_RUN_PATH
22438 hardcode_runpath_var=yes
22439 ld_shlibs_F77=yes
22440 fi
22441 ;;
22442
22443 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22444 no_undefined_flag_F77='${wl}-z,text'
22445 archive_cmds_need_lc_F77=no
22446 hardcode_shlibpath_var_F77=no
22447 runpath_var='LD_RUN_PATH'
22448
22449 if test "$GCC" = yes; then
22450 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22451 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22452 else
22453 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22454 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22455 fi
22456 ;;
22457
22458 sysv5* | sco3.2v5* | sco5v6*)
22459 # Note: We can NOT use -z defs as we might desire, because we do not
22460 # link with -lc, and that would cause any symbols used from libc to
22461 # always be unresolved, which means just about no library would
22462 # ever link correctly. If we're not using GNU ld we use -z text
22463 # though, which does catch some bad symbols but isn't as heavy-handed
22464 # as -z defs.
22465 no_undefined_flag_F77='${wl}-z,text'
22466 allow_undefined_flag_F77='${wl}-z,nodefs'
22467 archive_cmds_need_lc_F77=no
22468 hardcode_shlibpath_var_F77=no
22469 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22470 hardcode_libdir_separator_F77=':'
22471 link_all_deplibs_F77=yes
22472 export_dynamic_flag_spec_F77='${wl}-Bexport'
22473 runpath_var='LD_RUN_PATH'
22474
22475 if test "$GCC" = yes; then
22476 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22477 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22478 else
22479 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22480 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22481 fi
22482 ;;
22483
22484 uts4*)
22485 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22486 hardcode_libdir_flag_spec_F77='-L$libdir'
22487 hardcode_shlibpath_var_F77=no
22488 ;;
22489
22490 *)
22491 ld_shlibs_F77=no
22492 ;;
22493 esac
22494 fi
22495
22496{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22497echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22498test "$ld_shlibs_F77" = no && can_build_shared=no
22499
22500#
22501# Do we need to explicitly link libc?
22502#
22503case "x$archive_cmds_need_lc_F77" in
22504x|xyes)
22505 # Assume -lc should be added
22506 archive_cmds_need_lc_F77=yes
22507
22508 if test "$enable_shared" = yes && test "$GCC" = yes; then
22509 case $archive_cmds_F77 in
22510 *'~'*)
22511 # FIXME: we may have to deal with multi-command sequences.
22512 ;;
22513 '$CC '*)
22514 # Test whether the compiler implicitly links with -lc since on some
22515 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22516 # to ld, don't add -lc before -lgcc.
22517 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22518echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22519 $rm conftest*
22520 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22521
22522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22523 (eval $ac_compile) 2>&5
22524 ac_status=$?
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); } 2>conftest.err; then
22527 soname=conftest
22528 lib=conftest
22529 libobjs=conftest.$ac_objext
22530 deplibs=
22531 wl=$lt_prog_compiler_wl_F77
22532 pic_flag=$lt_prog_compiler_pic_F77
22533 compiler_flags=-v
22534 linker_flags=-v
22535 verstring=
22536 output_objdir=.
22537 libname=conftest
22538 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22539 allow_undefined_flag_F77=
22540 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22541 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22542 ac_status=$?
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); }
22545 then
22546 archive_cmds_need_lc_F77=no
22547 else
22548 archive_cmds_need_lc_F77=yes
22549 fi
22550 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22551 else
22552 cat conftest.err 1>&5
22553 fi
22554 $rm conftest*
22555 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22556echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22557 ;;
22558 esac
22559 fi
22560 ;;
22561esac
22562
22563{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22564echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22565library_names_spec=
22566libname_spec='lib$name'
22567soname_spec=
22568shrext_cmds=".so"
22569postinstall_cmds=
22570postuninstall_cmds=
22571finish_cmds=
22572finish_eval=
22573shlibpath_var=
22574shlibpath_overrides_runpath=unknown
22575version_type=none
22576dynamic_linker="$host_os ld.so"
22577sys_lib_dlsearch_path_spec="/lib /usr/lib"
22578if test "$GCC" = yes; then
22579 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22580 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22581 # if the path contains ";" then we assume it to be the separator
22582 # otherwise default to the standard path separator (i.e. ":") - it is
22583 # assumed that no part of a normal pathname contains ";" but that should
22584 # okay in the real world where ";" in dirpaths is itself problematic.
22585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22586 else
22587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22588 fi
22589else
22590 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22591fi
22592need_lib_prefix=unknown
22593hardcode_into_libs=no
22594
22595# when you set need_version to no, make sure it does not cause -set_version
22596# flags to be left without arguments
22597need_version=unknown
22598
22599case $host_os in
22600aix3*)
22601 version_type=linux
22602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22603 shlibpath_var=LIBPATH
22604
22605 # AIX 3 has no versioning support, so we append a major version to the name.
22606 soname_spec='${libname}${release}${shared_ext}$major'
22607 ;;
22608
22609aix4* | aix5*)
22610 version_type=linux
22611 need_lib_prefix=no
22612 need_version=no
22613 hardcode_into_libs=yes
22614 if test "$host_cpu" = ia64; then
22615 # AIX 5 supports IA64
22616 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22617 shlibpath_var=LD_LIBRARY_PATH
22618 else
22619 # With GCC up to 2.95.x, collect2 would create an import file
22620 # for dependence libraries. The import file would start with
22621 # the line `#! .'. This would cause the generated library to
22622 # depend on `.', always an invalid library. This was fixed in
22623 # development snapshots of GCC prior to 3.0.
22624 case $host_os in
22625 aix4 | aix4.[01] | aix4.[01].*)
22626 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22627 echo ' yes '
22628 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22629 :
22630 else
22631 can_build_shared=no
22632 fi
22633 ;;
22634 esac
22635 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22636 # soname into executable. Probably we can add versioning support to
22637 # collect2, so additional links can be useful in future.
22638 if test "$aix_use_runtimelinking" = yes; then
22639 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22640 # instead of lib<name>.a to let people know that these are not
22641 # typical AIX shared libraries.
22642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22643 else
22644 # We preserve .a as extension for shared libraries through AIX4.2
22645 # and later when we are not doing run time linking.
22646 library_names_spec='${libname}${release}.a $libname.a'
22647 soname_spec='${libname}${release}${shared_ext}$major'
22648 fi
22649 shlibpath_var=LIBPATH
22650 fi
22651 ;;
22652
22653amigaos*)
22654 library_names_spec='$libname.ixlibrary $libname.a'
22655 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22656 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'
22657 ;;
22658
22659beos*)
22660 library_names_spec='${libname}${shared_ext}'
22661 dynamic_linker="$host_os ld.so"
22662 shlibpath_var=LIBRARY_PATH
22663 ;;
22664
22665bsdi[45]*)
22666 version_type=linux
22667 need_version=no
22668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22669 soname_spec='${libname}${release}${shared_ext}$major'
22670 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22671 shlibpath_var=LD_LIBRARY_PATH
22672 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22673 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22674 # the default ld.so.conf also contains /usr/contrib/lib and
22675 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22676 # libtool to hard-code these into programs
22677 ;;
22678
22679cygwin* | mingw* | pw32*)
22680 version_type=windows
22681 shrext_cmds=".dll"
22682 need_version=no
22683 need_lib_prefix=no
22684
22685 case $GCC,$host_os in
22686 yes,cygwin* | yes,mingw* | yes,pw32*)
22687 library_names_spec='$libname.dll.a'
22688 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22689 postinstall_cmds='base_file=`basename \${file}`~
22690 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22691 dldir=$destdir/`dirname \$dlpath`~
22692 test -d \$dldir || mkdir -p \$dldir~
22693 $install_prog $dir/$dlname \$dldir/$dlname~
22694 chmod a+x \$dldir/$dlname'
22695 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22696 dlpath=$dir/\$dldll~
22697 $rm \$dlpath'
22698 shlibpath_overrides_runpath=yes
22699
22700 case $host_os in
22701 cygwin*)
22702 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22703 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22704 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22705 ;;
22706 mingw*)
22707 # MinGW DLLs use traditional 'lib' prefix
22708 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22709 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22710 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22711 # It is most probably a Windows format PATH printed by
22712 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22713 # path with ; separators, and with drive letters. We can handle the
22714 # drive letters (cygwin fileutils understands them), so leave them,
22715 # especially as we might pass files found there to a mingw objdump,
22716 # which wouldn't understand a cygwinified path. Ahh.
22717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22718 else
22719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22720 fi
22721 ;;
22722 pw32*)
22723 # pw32 DLLs use 'pw' prefix rather than 'lib'
22724 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22725 ;;
22726 esac
22727 ;;
22728
22729 *)
22730 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22731 ;;
22732 esac
22733 dynamic_linker='Win32 ld.exe'
22734 # FIXME: first we should search . and the directory the executable is in
22735 shlibpath_var=PATH
22736 ;;
22737
22738darwin* | rhapsody*)
22739 dynamic_linker="$host_os dyld"
22740 version_type=darwin
22741 need_lib_prefix=no
22742 need_version=no
22743 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22744 soname_spec='${libname}${release}${major}$shared_ext'
22745 shlibpath_overrides_runpath=yes
22746 shlibpath_var=DYLD_LIBRARY_PATH
22747 shrext_cmds='.dylib'
22748 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22749 if test "$GCC" = yes; then
22750 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"`
22751 else
22752 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22753 fi
22754 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22755 ;;
22756
22757dgux*)
22758 version_type=linux
22759 need_lib_prefix=no
22760 need_version=no
22761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22762 soname_spec='${libname}${release}${shared_ext}$major'
22763 shlibpath_var=LD_LIBRARY_PATH
22764 ;;
22765
22766freebsd1*)
22767 dynamic_linker=no
22768 ;;
22769
22770kfreebsd*-gnu)
22771 version_type=linux
22772 need_lib_prefix=no
22773 need_version=no
22774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22775 soname_spec='${libname}${release}${shared_ext}$major'
22776 shlibpath_var=LD_LIBRARY_PATH
22777 shlibpath_overrides_runpath=no
22778 hardcode_into_libs=yes
22779 dynamic_linker='GNU ld.so'
22780 ;;
22781
22782freebsd* | dragonfly*)
22783 # DragonFly does not have aout. When/if they implement a new
22784 # versioning mechanism, adjust this.
22785 if test -x /usr/bin/objformat; then
22786 objformat=`/usr/bin/objformat`
22787 else
22788 case $host_os in
22789 freebsd[123]*) objformat=aout ;;
22790 *) objformat=elf ;;
22791 esac
22792 fi
22793 version_type=freebsd-$objformat
22794 case $version_type in
22795 freebsd-elf*)
22796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22797 need_version=no
22798 need_lib_prefix=no
22799 ;;
22800 freebsd-*)
22801 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22802 need_version=yes
22803 ;;
22804 esac
22805 shlibpath_var=LD_LIBRARY_PATH
22806 case $host_os in
22807 freebsd2*)
22808 shlibpath_overrides_runpath=yes
22809 ;;
22810 freebsd3.[01]* | freebsdelf3.[01]*)
22811 shlibpath_overrides_runpath=yes
22812 hardcode_into_libs=yes
22813 ;;
22814 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22815 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22816 shlibpath_overrides_runpath=no
22817 hardcode_into_libs=yes
22818 ;;
22819 freebsd*) # from 4.6 on
22820 shlibpath_overrides_runpath=yes
22821 hardcode_into_libs=yes
22822 ;;
22823 esac
22824 ;;
22825
22826gnu*)
22827 version_type=linux
22828 need_lib_prefix=no
22829 need_version=no
22830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22831 soname_spec='${libname}${release}${shared_ext}$major'
22832 shlibpath_var=LD_LIBRARY_PATH
22833 hardcode_into_libs=yes
22834 ;;
22835
22836hpux9* | hpux10* | hpux11*)
22837 # Give a soname corresponding to the major version so that dld.sl refuses to
22838 # link against other versions.
22839 version_type=sunos
22840 need_lib_prefix=no
22841 need_version=no
22842 case $host_cpu in
22843 ia64*)
22844 shrext_cmds='.so'
22845 hardcode_into_libs=yes
22846 dynamic_linker="$host_os dld.so"
22847 shlibpath_var=LD_LIBRARY_PATH
22848 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22850 soname_spec='${libname}${release}${shared_ext}$major'
22851 if test "X$HPUX_IA64_MODE" = X32; then
22852 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22853 else
22854 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22855 fi
22856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22857 ;;
22858 hppa*64*)
22859 shrext_cmds='.sl'
22860 hardcode_into_libs=yes
22861 dynamic_linker="$host_os dld.sl"
22862 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22865 soname_spec='${libname}${release}${shared_ext}$major'
22866 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22867 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22868 ;;
22869 *)
22870 shrext_cmds='.sl'
22871 dynamic_linker="$host_os dld.sl"
22872 shlibpath_var=SHLIB_PATH
22873 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22875 soname_spec='${libname}${release}${shared_ext}$major'
22876 ;;
22877 esac
22878 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22879 postinstall_cmds='chmod 555 $lib'
22880 ;;
22881
22882interix3*)
22883 version_type=linux
22884 need_lib_prefix=no
22885 need_version=no
22886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22887 soname_spec='${libname}${release}${shared_ext}$major'
22888 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22889 shlibpath_var=LD_LIBRARY_PATH
22890 shlibpath_overrides_runpath=no
22891 hardcode_into_libs=yes
22892 ;;
22893
22894irix5* | irix6* | nonstopux*)
22895 case $host_os in
22896 nonstopux*) version_type=nonstopux ;;
22897 *)
22898 if test "$lt_cv_prog_gnu_ld" = yes; then
22899 version_type=linux
22900 else
22901 version_type=irix
22902 fi ;;
22903 esac
22904 need_lib_prefix=no
22905 need_version=no
22906 soname_spec='${libname}${release}${shared_ext}$major'
22907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22908 case $host_os in
22909 irix5* | nonstopux*)
22910 libsuff= shlibsuff=
22911 ;;
22912 *)
22913 case $LD in # libtool.m4 will add one of these switches to LD
22914 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22915 libsuff= shlibsuff= libmagic=32-bit;;
22916 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22917 libsuff=32 shlibsuff=N32 libmagic=N32;;
22918 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22919 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22920 *) libsuff= shlibsuff= libmagic=never-match;;
22921 esac
22922 ;;
22923 esac
22924 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22925 shlibpath_overrides_runpath=no
22926 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22927 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22928 hardcode_into_libs=yes
22929 ;;
22930
22931# No shared lib support for Linux oldld, aout, or coff.
22932linux*oldld* | linux*aout* | linux*coff*)
22933 dynamic_linker=no
22934 ;;
22935
22936# This must be Linux ELF.
22937linux*)
22938 version_type=linux
22939 need_lib_prefix=no
22940 need_version=no
22941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22942 soname_spec='${libname}${release}${shared_ext}$major'
22943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22944 shlibpath_var=LD_LIBRARY_PATH
22945 shlibpath_overrides_runpath=no
22946 # This implies no fast_install, which is unacceptable.
22947 # Some rework will be needed to allow for fast_install
22948 # before this can be enabled.
22949 hardcode_into_libs=yes
22950
22951 # Append ld.so.conf contents to the search path
22952 if test -f /etc/ld.so.conf; then
22953 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' ' '`
22954 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22955 fi
22956
22957 # We used to test for /lib/ld.so.1 and disable shared libraries on
22958 # powerpc, because MkLinux only supported shared libraries with the
22959 # GNU dynamic linker. Since this was broken with cross compilers,
22960 # most powerpc-linux boxes support dynamic linking these days and
22961 # people can always --disable-shared, the test was removed, and we
22962 # assume the GNU/Linux dynamic linker is in use.
22963 dynamic_linker='GNU/Linux ld.so'
22964 ;;
22965
22966knetbsd*-gnu)
22967 version_type=linux
22968 need_lib_prefix=no
22969 need_version=no
22970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22971 soname_spec='${libname}${release}${shared_ext}$major'
22972 shlibpath_var=LD_LIBRARY_PATH
22973 shlibpath_overrides_runpath=no
22974 hardcode_into_libs=yes
22975 dynamic_linker='GNU ld.so'
22976 ;;
22977
22978netbsd*)
22979 version_type=sunos
22980 need_lib_prefix=no
22981 need_version=no
22982 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22985 dynamic_linker='NetBSD (a.out) ld.so'
22986 else
22987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22988 soname_spec='${libname}${release}${shared_ext}$major'
22989 dynamic_linker='NetBSD ld.elf_so'
22990 fi
22991 shlibpath_var=LD_LIBRARY_PATH
22992 shlibpath_overrides_runpath=yes
22993 hardcode_into_libs=yes
22994 ;;
22995
22996newsos6)
22997 version_type=linux
22998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22999 shlibpath_var=LD_LIBRARY_PATH
23000 shlibpath_overrides_runpath=yes
23001 ;;
23002
23003nto-qnx*)
23004 version_type=linux
23005 need_lib_prefix=no
23006 need_version=no
23007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23008 soname_spec='${libname}${release}${shared_ext}$major'
23009 shlibpath_var=LD_LIBRARY_PATH
23010 shlibpath_overrides_runpath=yes
23011 ;;
23012
23013openbsd*)
23014 version_type=sunos
23015 sys_lib_dlsearch_path_spec="/usr/lib"
23016 need_lib_prefix=no
23017 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23018 case $host_os in
23019 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23020 *) need_version=no ;;
23021 esac
23022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23024 shlibpath_var=LD_LIBRARY_PATH
23025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23026 case $host_os in
23027 openbsd2.[89] | openbsd2.[89].*)
23028 shlibpath_overrides_runpath=no
23029 ;;
23030 *)
23031 shlibpath_overrides_runpath=yes
23032 ;;
23033 esac
23034 else
23035 shlibpath_overrides_runpath=yes
23036 fi
23037 ;;
23038
23039os2*)
23040 libname_spec='$name'
23041 shrext_cmds=".dll"
23042 need_lib_prefix=no
23043 library_names_spec='$libname${shared_ext} $libname.a'
23044 dynamic_linker='OS/2 ld.exe'
23045 shlibpath_var=LIBPATH
23046 ;;
23047
23048osf3* | osf4* | osf5*)
23049 version_type=osf
23050 need_lib_prefix=no
23051 need_version=no
23052 soname_spec='${libname}${release}${shared_ext}$major'
23053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23054 shlibpath_var=LD_LIBRARY_PATH
23055 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23056 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23057 ;;
23058
23059solaris*)
23060 version_type=linux
23061 need_lib_prefix=no
23062 need_version=no
23063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23064 soname_spec='${libname}${release}${shared_ext}$major'
23065 shlibpath_var=LD_LIBRARY_PATH
23066 shlibpath_overrides_runpath=yes
23067 hardcode_into_libs=yes
23068 # ldd complains unless libraries are executable
23069 postinstall_cmds='chmod +x $lib'
23070 ;;
23071
23072sunos4*)
23073 version_type=sunos
23074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23075 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23076 shlibpath_var=LD_LIBRARY_PATH
23077 shlibpath_overrides_runpath=yes
23078 if test "$with_gnu_ld" = yes; then
23079 need_lib_prefix=no
23080 fi
23081 need_version=yes
23082 ;;
23083
23084sysv4 | sysv4.3*)
23085 version_type=linux
23086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23087 soname_spec='${libname}${release}${shared_ext}$major'
23088 shlibpath_var=LD_LIBRARY_PATH
23089 case $host_vendor in
23090 sni)
23091 shlibpath_overrides_runpath=no
23092 need_lib_prefix=no
23093 export_dynamic_flag_spec='${wl}-Blargedynsym'
23094 runpath_var=LD_RUN_PATH
23095 ;;
23096 siemens)
23097 need_lib_prefix=no
23098 ;;
23099 motorola)
23100 need_lib_prefix=no
23101 need_version=no
23102 shlibpath_overrides_runpath=no
23103 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23104 ;;
23105 esac
23106 ;;
23107
23108sysv4*MP*)
23109 if test -d /usr/nec ;then
23110 version_type=linux
23111 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23112 soname_spec='$libname${shared_ext}.$major'
23113 shlibpath_var=LD_LIBRARY_PATH
23114 fi
23115 ;;
23116
23117sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23118 version_type=freebsd-elf
23119 need_lib_prefix=no
23120 need_version=no
23121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23122 soname_spec='${libname}${release}${shared_ext}$major'
23123 shlibpath_var=LD_LIBRARY_PATH
23124 hardcode_into_libs=yes
23125 if test "$with_gnu_ld" = yes; then
23126 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23127 shlibpath_overrides_runpath=no
23128 else
23129 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23130 shlibpath_overrides_runpath=yes
23131 case $host_os in
23132 sco3.2v5*)
23133 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23134 ;;
23135 esac
23136 fi
23137 sys_lib_dlsearch_path_spec='/usr/lib'
23138 ;;
23139
23140uts4*)
23141 version_type=linux
23142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23143 soname_spec='${libname}${release}${shared_ext}$major'
23144 shlibpath_var=LD_LIBRARY_PATH
23145 ;;
23146
23147*)
23148 dynamic_linker=no
23149 ;;
23150esac
23151{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23152echo "${ECHO_T}$dynamic_linker" >&6; }
23153test "$dynamic_linker" = no && can_build_shared=no
23154
23155variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23156if test "$GCC" = yes; then
23157 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23158fi
23159
23160{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23161echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23162hardcode_action_F77=
23163if test -n "$hardcode_libdir_flag_spec_F77" || \
23164 test -n "$runpath_var_F77" || \
23165 test "X$hardcode_automatic_F77" = "Xyes" ; then
23166
23167 # We can hardcode non-existant directories.
23168 if test "$hardcode_direct_F77" != no &&
23169 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23170 # have to relink, otherwise we might link with an installed library
23171 # when we should be linking with a yet-to-be-installed one
23172 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23173 test "$hardcode_minus_L_F77" != no; then
23174 # Linking always hardcodes the temporary library directory.
23175 hardcode_action_F77=relink
23176 else
23177 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23178 hardcode_action_F77=immediate
23179 fi
23180else
23181 # We cannot hardcode anything, or else we can only hardcode existing
23182 # directories.
23183 hardcode_action_F77=unsupported
23184fi
23185{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23186echo "${ECHO_T}$hardcode_action_F77" >&6; }
23187
23188if test "$hardcode_action_F77" = relink; then
23189 # Fast installation is not supported
23190 enable_fast_install=no
23191elif test "$shlibpath_overrides_runpath" = yes ||
23192 test "$enable_shared" = no; then
23193 # Fast installation is not necessary
23194 enable_fast_install=needless
23195fi
23196
23197
23198# The else clause should only fire when bootstrapping the
23199# libtool distribution, otherwise you forgot to ship ltmain.sh
23200# with your package, and you will get complaints that there are
23201# no rules to generate ltmain.sh.
23202if test -f "$ltmain"; then
23203 # See if we are running on zsh, and set the options which allow our commands through
23204 # without removal of \ escapes.
23205 if test -n "${ZSH_VERSION+set}" ; then
23206 setopt NO_GLOB_SUBST
23207 fi
23208 # Now quote all the things that may contain metacharacters while being
23209 # careful not to overquote the AC_SUBSTed values. We take copies of the
23210 # variables and quote the copies for generation of the libtool script.
23211 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23212 SED SHELL STRIP \
23213 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23214 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23215 deplibs_check_method reload_flag reload_cmds need_locks \
23216 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23217 lt_cv_sys_global_symbol_to_c_name_address \
23218 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23219 old_postinstall_cmds old_postuninstall_cmds \
23220 compiler_F77 \
23221 CC_F77 \
23222 LD_F77 \
23223 lt_prog_compiler_wl_F77 \
23224 lt_prog_compiler_pic_F77 \
23225 lt_prog_compiler_static_F77 \
23226 lt_prog_compiler_no_builtin_flag_F77 \
23227 export_dynamic_flag_spec_F77 \
23228 thread_safe_flag_spec_F77 \
23229 whole_archive_flag_spec_F77 \
23230 enable_shared_with_static_runtimes_F77 \
23231 old_archive_cmds_F77 \
23232 old_archive_from_new_cmds_F77 \
23233 predep_objects_F77 \
23234 postdep_objects_F77 \
23235 predeps_F77 \
23236 postdeps_F77 \
23237 compiler_lib_search_path_F77 \
23238 archive_cmds_F77 \
23239 archive_expsym_cmds_F77 \
23240 postinstall_cmds_F77 \
23241 postuninstall_cmds_F77 \
23242 old_archive_from_expsyms_cmds_F77 \
23243 allow_undefined_flag_F77 \
23244 no_undefined_flag_F77 \
23245 export_symbols_cmds_F77 \
23246 hardcode_libdir_flag_spec_F77 \
23247 hardcode_libdir_flag_spec_ld_F77 \
23248 hardcode_libdir_separator_F77 \
23249 hardcode_automatic_F77 \
23250 module_cmds_F77 \
23251 module_expsym_cmds_F77 \
23252 lt_cv_prog_compiler_c_o_F77 \
23253 exclude_expsyms_F77 \
23254 include_expsyms_F77; do
23255
23256 case $var in
23257 old_archive_cmds_F77 | \
23258 old_archive_from_new_cmds_F77 | \
23259 archive_cmds_F77 | \
23260 archive_expsym_cmds_F77 | \
23261 module_cmds_F77 | \
23262 module_expsym_cmds_F77 | \
23263 old_archive_from_expsyms_cmds_F77 | \
23264 export_symbols_cmds_F77 | \
23265 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23266 postinstall_cmds | postuninstall_cmds | \
23267 old_postinstall_cmds | old_postuninstall_cmds | \
23268 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23269 # Double-quote double-evaled strings.
23270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23271 ;;
23272 *)
23273 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23274 ;;
23275 esac
23276 done
23277
23278 case $lt_echo in
23279 *'\$0 --fallback-echo"')
23280 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23281 ;;
23282 esac
23283
23284cfgfile="$ofile"
23285
23286 cat <<__EOF__ >> "$cfgfile"
23287# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23288
23289# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23290
23291# Shell to use when invoking shell scripts.
23292SHELL=$lt_SHELL
23293
23294# Whether or not to build shared libraries.
23295build_libtool_libs=$enable_shared
23296
23297# Whether or not to build static libraries.
23298build_old_libs=$enable_static
23299
23300# Whether or not to add -lc for building shared libraries.
23301build_libtool_need_lc=$archive_cmds_need_lc_F77
23302
23303# Whether or not to disallow shared libs when runtime libs are static
23304allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23305
23306# Whether or not to optimize for fast installation.
23307fast_install=$enable_fast_install
23308
23309# The host system.
23310host_alias=$host_alias
23311host=$host
23312host_os=$host_os
23313
23314# The build system.
23315build_alias=$build_alias
23316build=$build
23317build_os=$build_os
23318
23319# An echo program that does not interpret backslashes.
23320echo=$lt_echo
23321
23322# The archiver.
23323AR=$lt_AR
23324AR_FLAGS=$lt_AR_FLAGS
23325
23326# A C compiler.
23327LTCC=$lt_LTCC
23328
23329# LTCC compiler flags.
23330LTCFLAGS=$lt_LTCFLAGS
23331
23332# A language-specific compiler.
23333CC=$lt_compiler_F77
23334
23335# Is the compiler the GNU C compiler?
23336with_gcc=$GCC_F77
23337
23338# An ERE matcher.
23339EGREP=$lt_EGREP
23340
23341# The linker used to build libraries.
23342LD=$lt_LD_F77
23343
23344# Whether we need hard or soft links.
23345LN_S=$lt_LN_S
23346
23347# A BSD-compatible nm program.
23348NM=$lt_NM
23349
23350# A symbol stripping program
23351STRIP=$lt_STRIP
23352
23353# Used to examine libraries when file_magic_cmd begins "file"
23354MAGIC_CMD=$MAGIC_CMD
23355
23356# Used on cygwin: DLL creation program.
23357DLLTOOL="$DLLTOOL"
23358
23359# Used on cygwin: object dumper.
23360OBJDUMP="$OBJDUMP"
23361
23362# Used on cygwin: assembler.
23363AS="$AS"
23364
23365# The name of the directory that contains temporary libtool files.
23366objdir=$objdir
23367
23368# How to create reloadable object files.
23369reload_flag=$lt_reload_flag
23370reload_cmds=$lt_reload_cmds
23371
23372# How to pass a linker flag through the compiler.
23373wl=$lt_lt_prog_compiler_wl_F77
23374
23375# Object file suffix (normally "o").
23376objext="$ac_objext"
23377
23378# Old archive suffix (normally "a").
23379libext="$libext"
23380
23381# Shared library suffix (normally ".so").
23382shrext_cmds='$shrext_cmds'
23383
23384# Executable file suffix (normally "").
23385exeext="$exeext"
23386
23387# Additional compiler flags for building library objects.
23388pic_flag=$lt_lt_prog_compiler_pic_F77
23389pic_mode=$pic_mode
23390
23391# What is the maximum length of a command?
23392max_cmd_len=$lt_cv_sys_max_cmd_len
23393
23394# Does compiler simultaneously support -c and -o options?
23395compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23396
23397# Must we lock files when doing compilation?
23398need_locks=$lt_need_locks
23399
23400# Do we need the lib prefix for modules?
23401need_lib_prefix=$need_lib_prefix
23402
23403# Do we need a version for libraries?
23404need_version=$need_version
23405
23406# Whether dlopen is supported.
23407dlopen_support=$enable_dlopen
23408
23409# Whether dlopen of programs is supported.
23410dlopen_self=$enable_dlopen_self
23411
23412# Whether dlopen of statically linked programs is supported.
23413dlopen_self_static=$enable_dlopen_self_static
23414
23415# Compiler flag to prevent dynamic linking.
23416link_static_flag=$lt_lt_prog_compiler_static_F77
23417
23418# Compiler flag to turn off builtin functions.
23419no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23420
23421# Compiler flag to allow reflexive dlopens.
23422export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23423
23424# Compiler flag to generate shared objects directly from archives.
23425whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23426
23427# Compiler flag to generate thread-safe objects.
23428thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23429
23430# Library versioning type.
23431version_type=$version_type
23432
23433# Format of library name prefix.
23434libname_spec=$lt_libname_spec
23435
23436# List of archive names. First name is the real one, the rest are links.
23437# The last name is the one that the linker finds with -lNAME.
23438library_names_spec=$lt_library_names_spec
23439
23440# The coded name of the library, if different from the real name.
23441soname_spec=$lt_soname_spec
23442
23443# Commands used to build and install an old-style archive.
23444RANLIB=$lt_RANLIB
23445old_archive_cmds=$lt_old_archive_cmds_F77
23446old_postinstall_cmds=$lt_old_postinstall_cmds
23447old_postuninstall_cmds=$lt_old_postuninstall_cmds
23448
23449# Create an old-style archive from a shared archive.
23450old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23451
23452# Create a temporary old-style archive to link instead of a shared archive.
23453old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23454
23455# Commands used to build and install a shared archive.
23456archive_cmds=$lt_archive_cmds_F77
23457archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23458postinstall_cmds=$lt_postinstall_cmds
23459postuninstall_cmds=$lt_postuninstall_cmds
23460
23461# Commands used to build a loadable module (assumed same as above if empty)
23462module_cmds=$lt_module_cmds_F77
23463module_expsym_cmds=$lt_module_expsym_cmds_F77
23464
23465# Commands to strip libraries.
23466old_striplib=$lt_old_striplib
23467striplib=$lt_striplib
23468
23469# Dependencies to place before the objects being linked to create a
23470# shared library.
23471predep_objects=$lt_predep_objects_F77
23472
23473# Dependencies to place after the objects being linked to create a
23474# shared library.
23475postdep_objects=$lt_postdep_objects_F77
23476
23477# Dependencies to place before the objects being linked to create a
23478# shared library.
23479predeps=$lt_predeps_F77
23480
23481# Dependencies to place after the objects being linked to create a
23482# shared library.
23483postdeps=$lt_postdeps_F77
23484
23485# The library search path used internally by the compiler when linking
23486# a shared library.
23487compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23488
23489# Method to check whether dependent libraries are shared objects.
23490deplibs_check_method=$lt_deplibs_check_method
23491
23492# Command to use when deplibs_check_method == file_magic.
23493file_magic_cmd=$lt_file_magic_cmd
23494
23495# Flag that allows shared libraries with undefined symbols to be built.
23496allow_undefined_flag=$lt_allow_undefined_flag_F77
23497
23498# Flag that forces no undefined symbols.
23499no_undefined_flag=$lt_no_undefined_flag_F77
23500
23501# Commands used to finish a libtool library installation in a directory.
23502finish_cmds=$lt_finish_cmds
23503
23504# Same as above, but a single script fragment to be evaled but not shown.
23505finish_eval=$lt_finish_eval
23506
23507# Take the output of nm and produce a listing of raw symbols and C names.
23508global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23509
23510# Transform the output of nm in a proper C declaration
23511global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23512
23513# Transform the output of nm in a C name address pair
23514global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23515
23516# This is the shared library runtime path variable.
23517runpath_var=$runpath_var
23518
23519# This is the shared library path variable.
23520shlibpath_var=$shlibpath_var
23521
23522# Is shlibpath searched before the hard-coded library search path?
23523shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23524
23525# How to hardcode a shared library path into an executable.
23526hardcode_action=$hardcode_action_F77
23527
23528# Whether we should hardcode library paths into libraries.
23529hardcode_into_libs=$hardcode_into_libs
23530
23531# Flag to hardcode \$libdir into a binary during linking.
23532# This must work even if \$libdir does not exist.
23533hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23534
23535# If ld is used when linking, flag to hardcode \$libdir into
23536# a binary during linking. This must work even if \$libdir does
23537# not exist.
23538hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23539
23540# Whether we need a single -rpath flag with a separated argument.
23541hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23542
23543# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23544# resulting binary.
23545hardcode_direct=$hardcode_direct_F77
23546
23547# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23548# resulting binary.
23549hardcode_minus_L=$hardcode_minus_L_F77
23550
23551# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23552# the resulting binary.
23553hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23554
23555# Set to yes if building a shared library automatically hardcodes DIR into the library
23556# and all subsequent libraries and executables linked against it.
23557hardcode_automatic=$hardcode_automatic_F77
23558
23559# Variables whose values should be saved in libtool wrapper scripts and
23560# restored at relink time.
23561variables_saved_for_relink="$variables_saved_for_relink"
23562
23563# Whether libtool must link a program against all its dependency libraries.
23564link_all_deplibs=$link_all_deplibs_F77
23565
23566# Compile-time system search path for libraries
23567sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23568
23569# Run-time system search path for libraries
23570sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23571
23572# Fix the shell variable \$srcfile for the compiler.
23573fix_srcfile_path="$fix_srcfile_path_F77"
23574
23575# Set to yes if exported symbols are required.
23576always_export_symbols=$always_export_symbols_F77
23577
23578# The commands to list exported symbols.
23579export_symbols_cmds=$lt_export_symbols_cmds_F77
23580
23581# The commands to extract the exported symbol list from a shared archive.
23582extract_expsyms_cmds=$lt_extract_expsyms_cmds
23583
23584# Symbols that should not be listed in the preloaded symbols.
23585exclude_expsyms=$lt_exclude_expsyms_F77
23586
23587# Symbols that must always be exported.
23588include_expsyms=$lt_include_expsyms_F77
23589
23590# ### END LIBTOOL TAG CONFIG: $tagname
23591
23592__EOF__
23593
23594
23595else
23596 # If there is no Makefile yet, we rely on a make rule to execute
23597 # `config.status --recheck' to rerun these tests and create the
23598 # libtool script then.
23599 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23600 if test -f "$ltmain_in"; then
23601 test -f Makefile && make "$ltmain"
23602 fi
23603fi
23604
23605
23606ac_ext=c
23607ac_cpp='$CPP $CPPFLAGS'
23608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23610ac_compiler_gnu=$ac_cv_c_compiler_gnu
23611
23612CC="$lt_save_CC"
23613
23614 else
23615 tagname=""
23616 fi
23617 ;;
23618
23619 GCJ)
23620 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23621 ac_ext=c
23622ac_cpp='$CPP $CPPFLAGS'
23623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23625ac_compiler_gnu=$ac_cv_c_compiler_gnu
23626
23627
23628# Source file extension for Java test sources.
23629ac_ext=java
23630
23631# Object file extension for compiled Java test sources.
23632objext=o
23633objext_GCJ=$objext
23634
23635# Code to be used in simple compile tests
23636lt_simple_compile_test_code="class foo {}\n"
23637
23638# Code to be used in simple link tests
23639lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23640
23641# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23642
23643# If no C compiler was specified, use CC.
23644LTCC=${LTCC-"$CC"}
23645
23646# If no C compiler flags were specified, use CFLAGS.
23647LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23648
23649# Allow CC to be a program name with arguments.
23650compiler=$CC
23651
23652
23653# save warnings/boilerplate of simple test code
23654ac_outfile=conftest.$ac_objext
23655printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23656eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23657_lt_compiler_boilerplate=`cat conftest.err`
23658$rm conftest*
23659
23660ac_outfile=conftest.$ac_objext
23661printf "$lt_simple_link_test_code" >conftest.$ac_ext
23662eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23663_lt_linker_boilerplate=`cat conftest.err`
23664$rm conftest*
23665
23666
23667# Allow CC to be a program name with arguments.
23668lt_save_CC="$CC"
23669CC=${GCJ-"gcj"}
23670compiler=$CC
23671compiler_GCJ=$CC
23672for cc_temp in $compiler""; do
23673 case $cc_temp in
23674 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23675 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23676 \-*) ;;
23677 *) break;;
23678 esac
23679done
23680cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23681
23682
23683# GCJ did not exist at the time GCC didn't implicitly link libc in.
23684archive_cmds_need_lc_GCJ=no
23685
23686old_archive_cmds_GCJ=$old_archive_cmds
23687
23688
23689lt_prog_compiler_no_builtin_flag_GCJ=
23690
23691if test "$GCC" = yes; then
23692 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23693
23694
23695{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23696echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23697if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23698 echo $ECHO_N "(cached) $ECHO_C" >&6
23699else
23700 lt_cv_prog_compiler_rtti_exceptions=no
23701 ac_outfile=conftest.$ac_objext
23702 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23703 lt_compiler_flag="-fno-rtti -fno-exceptions"
23704 # Insert the option either (1) after the last *FLAGS variable, or
23705 # (2) before a word containing "conftest.", or (3) at the end.
23706 # Note that $ac_compile itself does not contain backslashes and begins
23707 # with a dollar sign (not a hyphen), so the echo should work correctly.
23708 # The option is referenced via a variable to avoid confusing sed.
23709 lt_compile=`echo "$ac_compile" | $SED \
23710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23712 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky6c58a402009-04-13 04:26:27 +000023713 (eval echo "\"\$as_me:23713: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023714 (eval "$lt_compile" 2>conftest.err)
23715 ac_status=$?
23716 cat conftest.err >&5
Nick Lewycky6c58a402009-04-13 04:26:27 +000023717 echo "$as_me:23717: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023718 if (exit $ac_status) && test -s "$ac_outfile"; then
23719 # The compiler can only warn and ignore the option if not recognized
23720 # So say no if there are warnings other than the usual output.
23721 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23723 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23724 lt_cv_prog_compiler_rtti_exceptions=yes
23725 fi
23726 fi
23727 $rm conftest*
23728
23729fi
23730{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23731echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23732
23733if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23734 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23735else
23736 :
23737fi
23738
23739fi
23740
23741lt_prog_compiler_wl_GCJ=
23742lt_prog_compiler_pic_GCJ=
23743lt_prog_compiler_static_GCJ=
23744
23745{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23746echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23747
23748 if test "$GCC" = yes; then
23749 lt_prog_compiler_wl_GCJ='-Wl,'
23750 lt_prog_compiler_static_GCJ='-static'
23751
23752 case $host_os in
23753 aix*)
23754 # All AIX code is PIC.
23755 if test "$host_cpu" = ia64; then
23756 # AIX 5 now supports IA64 processor
23757 lt_prog_compiler_static_GCJ='-Bstatic'
23758 fi
23759 ;;
23760
23761 amigaos*)
23762 # FIXME: we need at least 68020 code to build shared libraries, but
23763 # adding the `-m68020' flag to GCC prevents building anything better,
23764 # like `-m68040'.
23765 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23766 ;;
23767
23768 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23769 # PIC is the default for these OSes.
23770 ;;
23771
23772 mingw* | pw32* | os2*)
23773 # This hack is so that the source file can tell whether it is being
23774 # built for inclusion in a dll (and should export symbols for example).
23775 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23776 ;;
23777
23778 darwin* | rhapsody*)
23779 # PIC is the default on this platform
23780 # Common symbols not allowed in MH_DYLIB files
23781 lt_prog_compiler_pic_GCJ='-fno-common'
23782 ;;
23783
23784 interix3*)
23785 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23786 # Instead, we relocate shared libraries at runtime.
23787 ;;
23788
23789 msdosdjgpp*)
23790 # Just because we use GCC doesn't mean we suddenly get shared libraries
23791 # on systems that don't support them.
23792 lt_prog_compiler_can_build_shared_GCJ=no
23793 enable_shared=no
23794 ;;
23795
23796 sysv4*MP*)
23797 if test -d /usr/nec; then
23798 lt_prog_compiler_pic_GCJ=-Kconform_pic
23799 fi
23800 ;;
23801
23802 hpux*)
23803 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23804 # not for PA HP-UX.
23805 case $host_cpu in
23806 hppa*64*|ia64*)
23807 # +Z the default
23808 ;;
23809 *)
23810 lt_prog_compiler_pic_GCJ='-fPIC'
23811 ;;
23812 esac
23813 ;;
23814
23815 *)
23816 lt_prog_compiler_pic_GCJ='-fPIC'
23817 ;;
23818 esac
23819 else
23820 # PORTME Check for flag to pass linker flags through the system compiler.
23821 case $host_os in
23822 aix*)
23823 lt_prog_compiler_wl_GCJ='-Wl,'
23824 if test "$host_cpu" = ia64; then
23825 # AIX 5 now supports IA64 processor
23826 lt_prog_compiler_static_GCJ='-Bstatic'
23827 else
23828 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23829 fi
23830 ;;
23831 darwin*)
23832 # PIC is the default on this platform
23833 # Common symbols not allowed in MH_DYLIB files
23834 case $cc_basename in
23835 xlc*)
23836 lt_prog_compiler_pic_GCJ='-qnocommon'
23837 lt_prog_compiler_wl_GCJ='-Wl,'
23838 ;;
23839 esac
23840 ;;
23841
23842 mingw* | pw32* | os2*)
23843 # This hack is so that the source file can tell whether it is being
23844 # built for inclusion in a dll (and should export symbols for example).
23845 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23846 ;;
23847
23848 hpux9* | hpux10* | hpux11*)
23849 lt_prog_compiler_wl_GCJ='-Wl,'
23850 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23851 # not for PA HP-UX.
23852 case $host_cpu in
23853 hppa*64*|ia64*)
23854 # +Z the default
23855 ;;
23856 *)
23857 lt_prog_compiler_pic_GCJ='+Z'
23858 ;;
23859 esac
23860 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23861 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23862 ;;
23863
23864 irix5* | irix6* | nonstopux*)
23865 lt_prog_compiler_wl_GCJ='-Wl,'
23866 # PIC (with -KPIC) is the default.
23867 lt_prog_compiler_static_GCJ='-non_shared'
23868 ;;
23869
23870 newsos6)
23871 lt_prog_compiler_pic_GCJ='-KPIC'
23872 lt_prog_compiler_static_GCJ='-Bstatic'
23873 ;;
23874
23875 linux*)
23876 case $cc_basename in
23877 icc* | ecc*)
23878 lt_prog_compiler_wl_GCJ='-Wl,'
23879 lt_prog_compiler_pic_GCJ='-KPIC'
23880 lt_prog_compiler_static_GCJ='-static'
23881 ;;
23882 pgcc* | pgf77* | pgf90* | pgf95*)
23883 # Portland Group compilers (*not* the Pentium gcc compiler,
23884 # which looks to be a dead project)
23885 lt_prog_compiler_wl_GCJ='-Wl,'
23886 lt_prog_compiler_pic_GCJ='-fpic'
23887 lt_prog_compiler_static_GCJ='-Bstatic'
23888 ;;
23889 ccc*)
23890 lt_prog_compiler_wl_GCJ='-Wl,'
23891 # All Alpha code is PIC.
23892 lt_prog_compiler_static_GCJ='-non_shared'
23893 ;;
23894 esac
23895 ;;
23896
23897 osf3* | osf4* | osf5*)
23898 lt_prog_compiler_wl_GCJ='-Wl,'
23899 # All OSF/1 code is PIC.
23900 lt_prog_compiler_static_GCJ='-non_shared'
23901 ;;
23902
23903 solaris*)
23904 lt_prog_compiler_pic_GCJ='-KPIC'
23905 lt_prog_compiler_static_GCJ='-Bstatic'
23906 case $cc_basename in
23907 f77* | f90* | f95*)
23908 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23909 *)
23910 lt_prog_compiler_wl_GCJ='-Wl,';;
23911 esac
23912 ;;
23913
23914 sunos4*)
23915 lt_prog_compiler_wl_GCJ='-Qoption ld '
23916 lt_prog_compiler_pic_GCJ='-PIC'
23917 lt_prog_compiler_static_GCJ='-Bstatic'
23918 ;;
23919
23920 sysv4 | sysv4.2uw2* | sysv4.3*)
23921 lt_prog_compiler_wl_GCJ='-Wl,'
23922 lt_prog_compiler_pic_GCJ='-KPIC'
23923 lt_prog_compiler_static_GCJ='-Bstatic'
23924 ;;
23925
23926 sysv4*MP*)
23927 if test -d /usr/nec ;then
23928 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23929 lt_prog_compiler_static_GCJ='-Bstatic'
23930 fi
23931 ;;
23932
23933 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23934 lt_prog_compiler_wl_GCJ='-Wl,'
23935 lt_prog_compiler_pic_GCJ='-KPIC'
23936 lt_prog_compiler_static_GCJ='-Bstatic'
23937 ;;
23938
23939 unicos*)
23940 lt_prog_compiler_wl_GCJ='-Wl,'
23941 lt_prog_compiler_can_build_shared_GCJ=no
23942 ;;
23943
23944 uts4*)
23945 lt_prog_compiler_pic_GCJ='-pic'
23946 lt_prog_compiler_static_GCJ='-Bstatic'
23947 ;;
23948
23949 *)
23950 lt_prog_compiler_can_build_shared_GCJ=no
23951 ;;
23952 esac
23953 fi
23954
23955{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23956echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23957
23958#
23959# Check to make sure the PIC flag actually works.
23960#
23961if test -n "$lt_prog_compiler_pic_GCJ"; then
23962
23963{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23964echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23965if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23966 echo $ECHO_N "(cached) $ECHO_C" >&6
23967else
23968 lt_prog_compiler_pic_works_GCJ=no
23969 ac_outfile=conftest.$ac_objext
23970 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23971 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23972 # Insert the option either (1) after the last *FLAGS variable, or
23973 # (2) before a word containing "conftest.", or (3) at the end.
23974 # Note that $ac_compile itself does not contain backslashes and begins
23975 # with a dollar sign (not a hyphen), so the echo should work correctly.
23976 # The option is referenced via a variable to avoid confusing sed.
23977 lt_compile=`echo "$ac_compile" | $SED \
23978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23980 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky6c58a402009-04-13 04:26:27 +000023981 (eval echo "\"\$as_me:23981: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023982 (eval "$lt_compile" 2>conftest.err)
23983 ac_status=$?
23984 cat conftest.err >&5
Nick Lewycky6c58a402009-04-13 04:26:27 +000023985 echo "$as_me:23985: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023986 if (exit $ac_status) && test -s "$ac_outfile"; then
23987 # The compiler can only warn and ignore the option if not recognized
23988 # So say no if there are warnings other than the usual output.
23989 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23992 lt_prog_compiler_pic_works_GCJ=yes
23993 fi
23994 fi
23995 $rm conftest*
23996
23997fi
23998{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23999echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24000
24001if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24002 case $lt_prog_compiler_pic_GCJ in
24003 "" | " "*) ;;
24004 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24005 esac
24006else
24007 lt_prog_compiler_pic_GCJ=
24008 lt_prog_compiler_can_build_shared_GCJ=no
24009fi
24010
24011fi
24012case $host_os in
24013 # For platforms which do not support PIC, -DPIC is meaningless:
24014 *djgpp*)
24015 lt_prog_compiler_pic_GCJ=
24016 ;;
24017 *)
24018 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24019 ;;
24020esac
24021
24022#
24023# Check to make sure the static flag actually works.
24024#
24025wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24026{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24027echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24028if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24029 echo $ECHO_N "(cached) $ECHO_C" >&6
24030else
24031 lt_prog_compiler_static_works_GCJ=no
24032 save_LDFLAGS="$LDFLAGS"
24033 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24034 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24035 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24036 # The linker can only warn and ignore the option if not recognized
24037 # So say no if there are warnings
24038 if test -s conftest.err; then
24039 # Append any errors to the config.log.
24040 cat conftest.err 1>&5
24041 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24043 if diff conftest.exp conftest.er2 >/dev/null; then
24044 lt_prog_compiler_static_works_GCJ=yes
24045 fi
24046 else
24047 lt_prog_compiler_static_works_GCJ=yes
24048 fi
24049 fi
24050 $rm conftest*
24051 LDFLAGS="$save_LDFLAGS"
24052
24053fi
24054{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24055echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24056
24057if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24058 :
24059else
24060 lt_prog_compiler_static_GCJ=
24061fi
24062
24063
24064{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24065echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24066if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24067 echo $ECHO_N "(cached) $ECHO_C" >&6
24068else
24069 lt_cv_prog_compiler_c_o_GCJ=no
24070 $rm -r conftest 2>/dev/null
24071 mkdir conftest
24072 cd conftest
24073 mkdir out
24074 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24075
24076 lt_compiler_flag="-o out/conftest2.$ac_objext"
24077 # Insert the option either (1) after the last *FLAGS variable, or
24078 # (2) before a word containing "conftest.", or (3) at the end.
24079 # Note that $ac_compile itself does not contain backslashes and begins
24080 # with a dollar sign (not a hyphen), so the echo should work correctly.
24081 lt_compile=`echo "$ac_compile" | $SED \
24082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24084 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky6c58a402009-04-13 04:26:27 +000024085 (eval echo "\"\$as_me:24085: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024086 (eval "$lt_compile" 2>out/conftest.err)
24087 ac_status=$?
24088 cat out/conftest.err >&5
Nick Lewycky6c58a402009-04-13 04:26:27 +000024089 echo "$as_me:24089: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024090 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24091 then
24092 # The compiler can only warn and ignore the option if not recognized
24093 # So say no if there are warnings
24094 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24095 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24096 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24097 lt_cv_prog_compiler_c_o_GCJ=yes
24098 fi
24099 fi
24100 chmod u+w . 2>&5
24101 $rm conftest*
24102 # SGI C++ compiler will create directory out/ii_files/ for
24103 # template instantiation
24104 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24105 $rm out/* && rmdir out
24106 cd ..
24107 rmdir conftest
24108 $rm conftest*
24109
24110fi
24111{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24112echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24113
24114
24115hard_links="nottested"
24116if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24117 # do not overwrite the value of need_locks provided by the user
24118 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24119echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24120 hard_links=yes
24121 $rm conftest*
24122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24123 touch conftest.a
24124 ln conftest.a conftest.b 2>&5 || hard_links=no
24125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24126 { echo "$as_me:$LINENO: result: $hard_links" >&5
24127echo "${ECHO_T}$hard_links" >&6; }
24128 if test "$hard_links" = no; then
24129 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24130echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24131 need_locks=warn
24132 fi
24133else
24134 need_locks=no
24135fi
24136
24137{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24138echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24139
24140 runpath_var=
24141 allow_undefined_flag_GCJ=
24142 enable_shared_with_static_runtimes_GCJ=no
24143 archive_cmds_GCJ=
24144 archive_expsym_cmds_GCJ=
24145 old_archive_From_new_cmds_GCJ=
24146 old_archive_from_expsyms_cmds_GCJ=
24147 export_dynamic_flag_spec_GCJ=
24148 whole_archive_flag_spec_GCJ=
24149 thread_safe_flag_spec_GCJ=
24150 hardcode_libdir_flag_spec_GCJ=
24151 hardcode_libdir_flag_spec_ld_GCJ=
24152 hardcode_libdir_separator_GCJ=
24153 hardcode_direct_GCJ=no
24154 hardcode_minus_L_GCJ=no
24155 hardcode_shlibpath_var_GCJ=unsupported
24156 link_all_deplibs_GCJ=unknown
24157 hardcode_automatic_GCJ=no
24158 module_cmds_GCJ=
24159 module_expsym_cmds_GCJ=
24160 always_export_symbols_GCJ=no
24161 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24162 # include_expsyms should be a list of space-separated symbols to be *always*
24163 # included in the symbol list
24164 include_expsyms_GCJ=
24165 # exclude_expsyms can be an extended regexp of symbols to exclude
24166 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24167 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24168 # as well as any symbol that contains `d'.
24169 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24170 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24171 # platforms (ab)use it in PIC code, but their linkers get confused if
24172 # the symbol is explicitly referenced. Since portable code cannot
24173 # rely on this symbol name, it's probably fine to never include it in
24174 # preloaded symbol tables.
24175 extract_expsyms_cmds=
24176 # Just being paranoid about ensuring that cc_basename is set.
24177 for cc_temp in $compiler""; do
24178 case $cc_temp in
24179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24181 \-*) ;;
24182 *) break;;
24183 esac
24184done
24185cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24186
24187 case $host_os in
24188 cygwin* | mingw* | pw32*)
24189 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24190 # When not using gcc, we currently assume that we are using
24191 # Microsoft Visual C++.
24192 if test "$GCC" != yes; then
24193 with_gnu_ld=no
24194 fi
24195 ;;
24196 interix*)
24197 # we just hope/assume this is gcc and not c89 (= MSVC++)
24198 with_gnu_ld=yes
24199 ;;
24200 openbsd*)
24201 with_gnu_ld=no
24202 ;;
24203 esac
24204
24205 ld_shlibs_GCJ=yes
24206 if test "$with_gnu_ld" = yes; then
24207 # If archive_cmds runs LD, not CC, wlarc should be empty
24208 wlarc='${wl}'
24209
24210 # Set some defaults for GNU ld with shared library support. These
24211 # are reset later if shared libraries are not supported. Putting them
24212 # here allows them to be overridden if necessary.
24213 runpath_var=LD_RUN_PATH
24214 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24215 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24216 # ancient GNU ld didn't support --whole-archive et. al.
24217 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24218 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24219 else
24220 whole_archive_flag_spec_GCJ=
24221 fi
24222 supports_anon_versioning=no
24223 case `$LD -v 2>/dev/null` in
24224 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24225 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24226 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24227 *\ 2.11.*) ;; # other 2.11 versions
24228 *) supports_anon_versioning=yes ;;
24229 esac
24230
24231 # See if GNU ld supports shared libraries.
24232 case $host_os in
24233 aix3* | aix4* | aix5*)
24234 # On AIX/PPC, the GNU linker is very broken
24235 if test "$host_cpu" != ia64; then
24236 ld_shlibs_GCJ=no
24237 cat <<EOF 1>&2
24238
24239*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24240*** to be unable to reliably create shared libraries on AIX.
24241*** Therefore, libtool is disabling shared libraries support. If you
24242*** really care for shared libraries, you may want to modify your PATH
24243*** so that a non-GNU linker is found, and then restart.
24244
24245EOF
24246 fi
24247 ;;
24248
24249 amigaos*)
24250 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)'
24251 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24252 hardcode_minus_L_GCJ=yes
24253
24254 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24255 # that the semantics of dynamic libraries on AmigaOS, at least up
24256 # to version 4, is to share data among multiple programs linked
24257 # with the same dynamic library. Since this doesn't match the
24258 # behavior of shared libraries on other platforms, we can't use
24259 # them.
24260 ld_shlibs_GCJ=no
24261 ;;
24262
24263 beos*)
24264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24265 allow_undefined_flag_GCJ=unsupported
24266 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24267 # support --undefined. This deserves some investigation. FIXME
24268 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24269 else
24270 ld_shlibs_GCJ=no
24271 fi
24272 ;;
24273
24274 cygwin* | mingw* | pw32*)
24275 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24276 # as there is no search path for DLLs.
24277 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24278 allow_undefined_flag_GCJ=unsupported
24279 always_export_symbols_GCJ=no
24280 enable_shared_with_static_runtimes_GCJ=yes
24281 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24282
24283 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24284 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24285 # If the export-symbols file already is a .def file (1st line
24286 # is EXPORTS), use it as is; otherwise, prepend...
24287 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24288 cp $export_symbols $output_objdir/$soname.def;
24289 else
24290 echo EXPORTS > $output_objdir/$soname.def;
24291 cat $export_symbols >> $output_objdir/$soname.def;
24292 fi~
24293 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24294 else
24295 ld_shlibs_GCJ=no
24296 fi
24297 ;;
24298
24299 interix3*)
24300 hardcode_direct_GCJ=no
24301 hardcode_shlibpath_var_GCJ=no
24302 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24303 export_dynamic_flag_spec_GCJ='${wl}-E'
24304 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24305 # Instead, shared libraries are loaded at an image base (0x10000000 by
24306 # default) and relocated if they conflict, which is a slow very memory
24307 # consuming and fragmenting process. To avoid this, we pick a random,
24308 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24309 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24310 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'
24311 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'
24312 ;;
24313
24314 linux*)
24315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24316 tmp_addflag=
24317 case $cc_basename,$host_cpu in
24318 pgcc*) # Portland Group C compiler
24319 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'
24320 tmp_addflag=' $pic_flag'
24321 ;;
24322 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24323 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'
24324 tmp_addflag=' $pic_flag -Mnomain' ;;
24325 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24326 tmp_addflag=' -i_dynamic' ;;
24327 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24328 tmp_addflag=' -i_dynamic -nofor_main' ;;
24329 ifc* | ifort*) # Intel Fortran compiler
24330 tmp_addflag=' -nofor_main' ;;
24331 esac
24332 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24333
24334 if test $supports_anon_versioning = yes; then
24335 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24336 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24337 $echo "local: *; };" >> $output_objdir/$libname.ver~
24338 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24339 fi
24340 else
24341 ld_shlibs_GCJ=no
24342 fi
24343 ;;
24344
24345 netbsd*)
24346 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24347 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24348 wlarc=
24349 else
24350 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24351 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24352 fi
24353 ;;
24354
24355 solaris*)
24356 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24357 ld_shlibs_GCJ=no
24358 cat <<EOF 1>&2
24359
24360*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24361*** create shared libraries on Solaris systems. Therefore, libtool
24362*** is disabling shared libraries support. We urge you to upgrade GNU
24363*** binutils to release 2.9.1 or newer. Another option is to modify
24364*** your PATH or compiler configuration so that the native linker is
24365*** used, and then restart.
24366
24367EOF
24368 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24369 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24370 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24371 else
24372 ld_shlibs_GCJ=no
24373 fi
24374 ;;
24375
24376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24377 case `$LD -v 2>&1` in
24378 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24379 ld_shlibs_GCJ=no
24380 cat <<_LT_EOF 1>&2
24381
24382*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24383*** reliably create shared libraries on SCO systems. Therefore, libtool
24384*** is disabling shared libraries support. We urge you to upgrade GNU
24385*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24386*** your PATH or compiler configuration so that the native linker is
24387*** used, and then restart.
24388
24389_LT_EOF
24390 ;;
24391 *)
24392 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24393 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24394 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24395 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24396 else
24397 ld_shlibs_GCJ=no
24398 fi
24399 ;;
24400 esac
24401 ;;
24402
24403 sunos4*)
24404 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24405 wlarc=
24406 hardcode_direct_GCJ=yes
24407 hardcode_shlibpath_var_GCJ=no
24408 ;;
24409
24410 *)
24411 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24412 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24413 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24414 else
24415 ld_shlibs_GCJ=no
24416 fi
24417 ;;
24418 esac
24419
24420 if test "$ld_shlibs_GCJ" = no; then
24421 runpath_var=
24422 hardcode_libdir_flag_spec_GCJ=
24423 export_dynamic_flag_spec_GCJ=
24424 whole_archive_flag_spec_GCJ=
24425 fi
24426 else
24427 # PORTME fill in a description of your system's linker (not GNU ld)
24428 case $host_os in
24429 aix3*)
24430 allow_undefined_flag_GCJ=unsupported
24431 always_export_symbols_GCJ=yes
24432 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'
24433 # Note: this linker hardcodes the directories in LIBPATH if there
24434 # are no directories specified by -L.
24435 hardcode_minus_L_GCJ=yes
24436 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24437 # Neither direct hardcoding nor static linking is supported with a
24438 # broken collect2.
24439 hardcode_direct_GCJ=unsupported
24440 fi
24441 ;;
24442
24443 aix4* | aix5*)
24444 if test "$host_cpu" = ia64; then
24445 # On IA64, the linker does run time linking by default, so we don't
24446 # have to do anything special.
24447 aix_use_runtimelinking=no
24448 exp_sym_flag='-Bexport'
24449 no_entry_flag=""
24450 else
24451 # If we're using GNU nm, then we don't want the "-C" option.
24452 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24453 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24454 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'
24455 else
24456 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'
24457 fi
24458 aix_use_runtimelinking=no
24459
24460 # Test if we are trying to use run time linking or normal
24461 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24462 # need to do runtime linking.
24463 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24464 for ld_flag in $LDFLAGS; do
24465 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24466 aix_use_runtimelinking=yes
24467 break
24468 fi
24469 done
24470 ;;
24471 esac
24472
24473 exp_sym_flag='-bexport'
24474 no_entry_flag='-bnoentry'
24475 fi
24476
24477 # When large executables or shared objects are built, AIX ld can
24478 # have problems creating the table of contents. If linking a library
24479 # or program results in "error TOC overflow" add -mminimal-toc to
24480 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24481 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24482
24483 archive_cmds_GCJ=''
24484 hardcode_direct_GCJ=yes
24485 hardcode_libdir_separator_GCJ=':'
24486 link_all_deplibs_GCJ=yes
24487
24488 if test "$GCC" = yes; then
24489 case $host_os in aix4.[012]|aix4.[012].*)
24490 # We only want to do this on AIX 4.2 and lower, the check
24491 # below for broken collect2 doesn't work under 4.3+
24492 collect2name=`${CC} -print-prog-name=collect2`
24493 if test -f "$collect2name" && \
24494 strings "$collect2name" | grep resolve_lib_name >/dev/null
24495 then
24496 # We have reworked collect2
24497 hardcode_direct_GCJ=yes
24498 else
24499 # We have old collect2
24500 hardcode_direct_GCJ=unsupported
24501 # It fails to find uninstalled libraries when the uninstalled
24502 # path is not listed in the libpath. Setting hardcode_minus_L
24503 # to unsupported forces relinking
24504 hardcode_minus_L_GCJ=yes
24505 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24506 hardcode_libdir_separator_GCJ=
24507 fi
24508 ;;
24509 esac
24510 shared_flag='-shared'
24511 if test "$aix_use_runtimelinking" = yes; then
24512 shared_flag="$shared_flag "'${wl}-G'
24513 fi
24514 else
24515 # not using gcc
24516 if test "$host_cpu" = ia64; then
24517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24518 # chokes on -Wl,-G. The following line is correct:
24519 shared_flag='-G'
24520 else
24521 if test "$aix_use_runtimelinking" = yes; then
24522 shared_flag='${wl}-G'
24523 else
24524 shared_flag='${wl}-bM:SRE'
24525 fi
24526 fi
24527 fi
24528
24529 # It seems that -bexpall does not export symbols beginning with
24530 # underscore (_), so it is better to generate a list of symbols to export.
24531 always_export_symbols_GCJ=yes
24532 if test "$aix_use_runtimelinking" = yes; then
24533 # Warning - without using the other runtime loading flags (-brtl),
24534 # -berok will link without error, but may produce a broken library.
24535 allow_undefined_flag_GCJ='-berok'
24536 # Determine the default libpath from the value encoded in an empty executable.
24537 cat >conftest.$ac_ext <<_ACEOF
24538/* confdefs.h. */
24539_ACEOF
24540cat confdefs.h >>conftest.$ac_ext
24541cat >>conftest.$ac_ext <<_ACEOF
24542/* end confdefs.h. */
24543
24544int
24545main ()
24546{
24547
24548 ;
24549 return 0;
24550}
24551_ACEOF
24552rm -f conftest.$ac_objext conftest$ac_exeext
24553if { (ac_try="$ac_link"
24554case "(($ac_try" in
24555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24556 *) ac_try_echo=$ac_try;;
24557esac
24558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24559 (eval "$ac_link") 2>conftest.er1
24560 ac_status=$?
24561 grep -v '^ *+' conftest.er1 >conftest.err
24562 rm -f conftest.er1
24563 cat conftest.err >&5
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000024565 (exit $ac_status); } &&
24566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24567 { (case "(($ac_try" in
24568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569 *) ac_try_echo=$ac_try;;
24570esac
24571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24572 (eval "$ac_try") 2>&5
24573 ac_status=$?
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); }; } &&
24576 { ac_try='test -s conftest$ac_exeext'
24577 { (case "(($ac_try" in
24578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24579 *) ac_try_echo=$ac_try;;
24580esac
24581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24582 (eval "$ac_try") 2>&5
24583 ac_status=$?
24584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024586
24587aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24588}'`
24589# Check for a 64-bit object if we didn't find anything.
24590if 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; }
24591}'`; fi
24592else
24593 echo "$as_me: failed program was:" >&5
24594sed 's/^/| /' conftest.$ac_ext >&5
24595
24596
24597fi
24598
Tanya Lattner3fa4a442009-01-22 05:17:59 +000024599rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024600 conftest$ac_exeext conftest.$ac_ext
24601if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24602
24603 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24604 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"
24605 else
24606 if test "$host_cpu" = ia64; then
24607 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24608 allow_undefined_flag_GCJ="-z nodefs"
24609 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"
24610 else
24611 # Determine the default libpath from the value encoded in an empty executable.
24612 cat >conftest.$ac_ext <<_ACEOF
24613/* confdefs.h. */
24614_ACEOF
24615cat confdefs.h >>conftest.$ac_ext
24616cat >>conftest.$ac_ext <<_ACEOF
24617/* end confdefs.h. */
24618
24619int
24620main ()
24621{
24622
24623 ;
24624 return 0;
24625}
24626_ACEOF
24627rm -f conftest.$ac_objext conftest$ac_exeext
24628if { (ac_try="$ac_link"
24629case "(($ac_try" in
24630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24631 *) ac_try_echo=$ac_try;;
24632esac
24633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24634 (eval "$ac_link") 2>conftest.er1
24635 ac_status=$?
24636 grep -v '^ *+' conftest.er1 >conftest.err
24637 rm -f conftest.er1
24638 cat conftest.err >&5
24639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000024640 (exit $ac_status); } &&
24641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24642 { (case "(($ac_try" in
24643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24644 *) ac_try_echo=$ac_try;;
24645esac
24646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24647 (eval "$ac_try") 2>&5
24648 ac_status=$?
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); }; } &&
24651 { ac_try='test -s conftest$ac_exeext'
24652 { (case "(($ac_try" in
24653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24654 *) ac_try_echo=$ac_try;;
24655esac
24656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24657 (eval "$ac_try") 2>&5
24658 ac_status=$?
24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024661
24662aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24663}'`
24664# Check for a 64-bit object if we didn't find anything.
24665if 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; }
24666}'`; fi
24667else
24668 echo "$as_me: failed program was:" >&5
24669sed 's/^/| /' conftest.$ac_ext >&5
24670
24671
24672fi
24673
Tanya Lattner3fa4a442009-01-22 05:17:59 +000024674rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024675 conftest$ac_exeext conftest.$ac_ext
24676if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24677
24678 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24679 # Warning - without using the other run time loading flags,
24680 # -berok will link without error, but may produce a broken library.
24681 no_undefined_flag_GCJ=' ${wl}-bernotok'
24682 allow_undefined_flag_GCJ=' ${wl}-berok'
24683 # Exported symbols can be pulled into shared objects from archives
24684 whole_archive_flag_spec_GCJ='$convenience'
24685 archive_cmds_need_lc_GCJ=yes
24686 # This is similar to how AIX traditionally builds its shared libraries.
24687 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'
24688 fi
24689 fi
24690 ;;
24691
24692 amigaos*)
24693 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)'
24694 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24695 hardcode_minus_L_GCJ=yes
24696 # see comment about different semantics on the GNU ld section
24697 ld_shlibs_GCJ=no
24698 ;;
24699
24700 bsdi[45]*)
24701 export_dynamic_flag_spec_GCJ=-rdynamic
24702 ;;
24703
24704 cygwin* | mingw* | pw32*)
24705 # When not using gcc, we currently assume that we are using
24706 # Microsoft Visual C++.
24707 # hardcode_libdir_flag_spec is actually meaningless, as there is
24708 # no search path for DLLs.
24709 hardcode_libdir_flag_spec_GCJ=' '
24710 allow_undefined_flag_GCJ=unsupported
24711 # Tell ltmain to make .lib files, not .a files.
24712 libext=lib
24713 # Tell ltmain to make .dll files, not .so files.
24714 shrext_cmds=".dll"
24715 # FIXME: Setting linknames here is a bad hack.
24716 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24717 # The linker will automatically build a .lib file if we build a DLL.
24718 old_archive_From_new_cmds_GCJ='true'
24719 # FIXME: Should let the user specify the lib program.
24720 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24721 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24722 enable_shared_with_static_runtimes_GCJ=yes
24723 ;;
24724
24725 darwin* | rhapsody*)
24726 case $host_os in
24727 rhapsody* | darwin1.[012])
24728 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24729 ;;
24730 *) # Darwin 1.3 on
24731 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24732 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24733 else
24734 case ${MACOSX_DEPLOYMENT_TARGET} in
24735 10.[012])
24736 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24737 ;;
24738 10.*)
24739 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24740 ;;
24741 esac
24742 fi
24743 ;;
24744 esac
24745 archive_cmds_need_lc_GCJ=no
24746 hardcode_direct_GCJ=no
24747 hardcode_automatic_GCJ=yes
24748 hardcode_shlibpath_var_GCJ=unsupported
24749 whole_archive_flag_spec_GCJ=''
24750 link_all_deplibs_GCJ=yes
24751 if test "$GCC" = yes ; then
24752 output_verbose_link_cmd='echo'
24753 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24754 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24755 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24756 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}'
24757 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}'
24758 else
24759 case $cc_basename in
24760 xlc*)
24761 output_verbose_link_cmd='echo'
24762 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24763 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24764 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24765 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}'
24766 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}'
24767 ;;
24768 *)
24769 ld_shlibs_GCJ=no
24770 ;;
24771 esac
24772 fi
24773 ;;
24774
24775 dgux*)
24776 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24777 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24778 hardcode_shlibpath_var_GCJ=no
24779 ;;
24780
24781 freebsd1*)
24782 ld_shlibs_GCJ=no
24783 ;;
24784
24785 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24786 # support. Future versions do this automatically, but an explicit c++rt0.o
24787 # does not break anything, and helps significantly (at the cost of a little
24788 # extra space).
24789 freebsd2.2*)
24790 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24791 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24792 hardcode_direct_GCJ=yes
24793 hardcode_shlibpath_var_GCJ=no
24794 ;;
24795
24796 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24797 freebsd2*)
24798 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24799 hardcode_direct_GCJ=yes
24800 hardcode_minus_L_GCJ=yes
24801 hardcode_shlibpath_var_GCJ=no
24802 ;;
24803
24804 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24805 freebsd* | kfreebsd*-gnu | dragonfly*)
24806 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24807 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24808 hardcode_direct_GCJ=yes
24809 hardcode_shlibpath_var_GCJ=no
24810 ;;
24811
24812 hpux9*)
24813 if test "$GCC" = yes; then
24814 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'
24815 else
24816 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'
24817 fi
24818 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24819 hardcode_libdir_separator_GCJ=:
24820 hardcode_direct_GCJ=yes
24821
24822 # hardcode_minus_L: Not really in the search PATH,
24823 # but as the default location of the library.
24824 hardcode_minus_L_GCJ=yes
24825 export_dynamic_flag_spec_GCJ='${wl}-E'
24826 ;;
24827
24828 hpux10*)
24829 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24830 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24831 else
24832 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24833 fi
24834 if test "$with_gnu_ld" = no; then
24835 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24836 hardcode_libdir_separator_GCJ=:
24837
24838 hardcode_direct_GCJ=yes
24839 export_dynamic_flag_spec_GCJ='${wl}-E'
24840
24841 # hardcode_minus_L: Not really in the search PATH,
24842 # but as the default location of the library.
24843 hardcode_minus_L_GCJ=yes
24844 fi
24845 ;;
24846
24847 hpux11*)
24848 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24849 case $host_cpu in
24850 hppa*64*)
24851 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24852 ;;
24853 ia64*)
24854 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24855 ;;
24856 *)
24857 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24858 ;;
24859 esac
24860 else
24861 case $host_cpu in
24862 hppa*64*)
24863 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24864 ;;
24865 ia64*)
24866 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24867 ;;
24868 *)
24869 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24870 ;;
24871 esac
24872 fi
24873 if test "$with_gnu_ld" = no; then
24874 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24875 hardcode_libdir_separator_GCJ=:
24876
24877 case $host_cpu in
24878 hppa*64*|ia64*)
24879 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24880 hardcode_direct_GCJ=no
24881 hardcode_shlibpath_var_GCJ=no
24882 ;;
24883 *)
24884 hardcode_direct_GCJ=yes
24885 export_dynamic_flag_spec_GCJ='${wl}-E'
24886
24887 # hardcode_minus_L: Not really in the search PATH,
24888 # but as the default location of the library.
24889 hardcode_minus_L_GCJ=yes
24890 ;;
24891 esac
24892 fi
24893 ;;
24894
24895 irix5* | irix6* | nonstopux*)
24896 if test "$GCC" = yes; then
24897 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'
24898 else
24899 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'
24900 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24901 fi
24902 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24903 hardcode_libdir_separator_GCJ=:
24904 link_all_deplibs_GCJ=yes
24905 ;;
24906
24907 netbsd*)
24908 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24909 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24910 else
24911 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24912 fi
24913 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24914 hardcode_direct_GCJ=yes
24915 hardcode_shlibpath_var_GCJ=no
24916 ;;
24917
24918 newsos6)
24919 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24920 hardcode_direct_GCJ=yes
24921 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24922 hardcode_libdir_separator_GCJ=:
24923 hardcode_shlibpath_var_GCJ=no
24924 ;;
24925
24926 openbsd*)
24927 hardcode_direct_GCJ=yes
24928 hardcode_shlibpath_var_GCJ=no
24929 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24930 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24931 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24932 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24933 export_dynamic_flag_spec_GCJ='${wl}-E'
24934 else
24935 case $host_os in
24936 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24937 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24938 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24939 ;;
24940 *)
24941 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24942 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24943 ;;
24944 esac
24945 fi
24946 ;;
24947
24948 os2*)
24949 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24950 hardcode_minus_L_GCJ=yes
24951 allow_undefined_flag_GCJ=unsupported
24952 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'
24953 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24954 ;;
24955
24956 osf3*)
24957 if test "$GCC" = yes; then
24958 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24959 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'
24960 else
24961 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24962 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'
24963 fi
24964 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24965 hardcode_libdir_separator_GCJ=:
24966 ;;
24967
24968 osf4* | osf5*) # as osf3* with the addition of -msym flag
24969 if test "$GCC" = yes; then
24970 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24971 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'
24972 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24973 else
24974 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24975 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'
24976 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~
24977 $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'
24978
24979 # Both c and cxx compiler support -rpath directly
24980 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24981 fi
24982 hardcode_libdir_separator_GCJ=:
24983 ;;
24984
24985 solaris*)
24986 no_undefined_flag_GCJ=' -z text'
24987 if test "$GCC" = yes; then
24988 wlarc='${wl}'
24989 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24990 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24991 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24992 else
24993 wlarc=''
24994 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24995 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24996 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24997 fi
24998 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24999 hardcode_shlibpath_var_GCJ=no
25000 case $host_os in
25001 solaris2.[0-5] | solaris2.[0-5].*) ;;
25002 *)
25003 # The compiler driver will combine linker options so we
25004 # cannot just pass the convience library names through
25005 # without $wl, iff we do not link with $LD.
25006 # Luckily, gcc supports the same syntax we need for Sun Studio.
25007 # Supported since Solaris 2.6 (maybe 2.5.1?)
25008 case $wlarc in
25009 '')
25010 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25011 *)
25012 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' ;;
25013 esac ;;
25014 esac
25015 link_all_deplibs_GCJ=yes
25016 ;;
25017
25018 sunos4*)
25019 if test "x$host_vendor" = xsequent; then
25020 # Use $CC to link under sequent, because it throws in some extra .o
25021 # files that make .init and .fini sections work.
25022 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25023 else
25024 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25025 fi
25026 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25027 hardcode_direct_GCJ=yes
25028 hardcode_minus_L_GCJ=yes
25029 hardcode_shlibpath_var_GCJ=no
25030 ;;
25031
25032 sysv4)
25033 case $host_vendor in
25034 sni)
25035 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25036 hardcode_direct_GCJ=yes # is this really true???
25037 ;;
25038 siemens)
25039 ## LD is ld it makes a PLAMLIB
25040 ## CC just makes a GrossModule.
25041 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25042 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25043 hardcode_direct_GCJ=no
25044 ;;
25045 motorola)
25046 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25047 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25048 ;;
25049 esac
25050 runpath_var='LD_RUN_PATH'
25051 hardcode_shlibpath_var_GCJ=no
25052 ;;
25053
25054 sysv4.3*)
25055 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25056 hardcode_shlibpath_var_GCJ=no
25057 export_dynamic_flag_spec_GCJ='-Bexport'
25058 ;;
25059
25060 sysv4*MP*)
25061 if test -d /usr/nec; then
25062 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25063 hardcode_shlibpath_var_GCJ=no
25064 runpath_var=LD_RUN_PATH
25065 hardcode_runpath_var=yes
25066 ld_shlibs_GCJ=yes
25067 fi
25068 ;;
25069
25070 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25071 no_undefined_flag_GCJ='${wl}-z,text'
25072 archive_cmds_need_lc_GCJ=no
25073 hardcode_shlibpath_var_GCJ=no
25074 runpath_var='LD_RUN_PATH'
25075
25076 if test "$GCC" = yes; then
25077 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25078 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25079 else
25080 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25081 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25082 fi
25083 ;;
25084
25085 sysv5* | sco3.2v5* | sco5v6*)
25086 # Note: We can NOT use -z defs as we might desire, because we do not
25087 # link with -lc, and that would cause any symbols used from libc to
25088 # always be unresolved, which means just about no library would
25089 # ever link correctly. If we're not using GNU ld we use -z text
25090 # though, which does catch some bad symbols but isn't as heavy-handed
25091 # as -z defs.
25092 no_undefined_flag_GCJ='${wl}-z,text'
25093 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25094 archive_cmds_need_lc_GCJ=no
25095 hardcode_shlibpath_var_GCJ=no
25096 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25097 hardcode_libdir_separator_GCJ=':'
25098 link_all_deplibs_GCJ=yes
25099 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25100 runpath_var='LD_RUN_PATH'
25101
25102 if test "$GCC" = yes; then
25103 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25104 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25105 else
25106 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25107 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25108 fi
25109 ;;
25110
25111 uts4*)
25112 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25113 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25114 hardcode_shlibpath_var_GCJ=no
25115 ;;
25116
25117 *)
25118 ld_shlibs_GCJ=no
25119 ;;
25120 esac
25121 fi
25122
25123{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25124echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25125test "$ld_shlibs_GCJ" = no && can_build_shared=no
25126
25127#
25128# Do we need to explicitly link libc?
25129#
25130case "x$archive_cmds_need_lc_GCJ" in
25131x|xyes)
25132 # Assume -lc should be added
25133 archive_cmds_need_lc_GCJ=yes
25134
25135 if test "$enable_shared" = yes && test "$GCC" = yes; then
25136 case $archive_cmds_GCJ in
25137 *'~'*)
25138 # FIXME: we may have to deal with multi-command sequences.
25139 ;;
25140 '$CC '*)
25141 # Test whether the compiler implicitly links with -lc since on some
25142 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25143 # to ld, don't add -lc before -lgcc.
25144 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25145echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25146 $rm conftest*
25147 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25148
25149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25150 (eval $ac_compile) 2>&5
25151 ac_status=$?
25152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153 (exit $ac_status); } 2>conftest.err; then
25154 soname=conftest
25155 lib=conftest
25156 libobjs=conftest.$ac_objext
25157 deplibs=
25158 wl=$lt_prog_compiler_wl_GCJ
25159 pic_flag=$lt_prog_compiler_pic_GCJ
25160 compiler_flags=-v
25161 linker_flags=-v
25162 verstring=
25163 output_objdir=.
25164 libname=conftest
25165 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25166 allow_undefined_flag_GCJ=
25167 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25168 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25169 ac_status=$?
25170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); }
25172 then
25173 archive_cmds_need_lc_GCJ=no
25174 else
25175 archive_cmds_need_lc_GCJ=yes
25176 fi
25177 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25178 else
25179 cat conftest.err 1>&5
25180 fi
25181 $rm conftest*
25182 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25183echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25184 ;;
25185 esac
25186 fi
25187 ;;
25188esac
25189
25190{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25191echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25192library_names_spec=
25193libname_spec='lib$name'
25194soname_spec=
25195shrext_cmds=".so"
25196postinstall_cmds=
25197postuninstall_cmds=
25198finish_cmds=
25199finish_eval=
25200shlibpath_var=
25201shlibpath_overrides_runpath=unknown
25202version_type=none
25203dynamic_linker="$host_os ld.so"
25204sys_lib_dlsearch_path_spec="/lib /usr/lib"
25205if test "$GCC" = yes; then
25206 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25207 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25208 # if the path contains ";" then we assume it to be the separator
25209 # otherwise default to the standard path separator (i.e. ":") - it is
25210 # assumed that no part of a normal pathname contains ";" but that should
25211 # okay in the real world where ";" in dirpaths is itself problematic.
25212 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25213 else
25214 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25215 fi
25216else
25217 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25218fi
25219need_lib_prefix=unknown
25220hardcode_into_libs=no
25221
25222# when you set need_version to no, make sure it does not cause -set_version
25223# flags to be left without arguments
25224need_version=unknown
25225
25226case $host_os in
25227aix3*)
25228 version_type=linux
25229 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25230 shlibpath_var=LIBPATH
25231
25232 # AIX 3 has no versioning support, so we append a major version to the name.
25233 soname_spec='${libname}${release}${shared_ext}$major'
25234 ;;
25235
25236aix4* | aix5*)
25237 version_type=linux
25238 need_lib_prefix=no
25239 need_version=no
25240 hardcode_into_libs=yes
25241 if test "$host_cpu" = ia64; then
25242 # AIX 5 supports IA64
25243 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25244 shlibpath_var=LD_LIBRARY_PATH
25245 else
25246 # With GCC up to 2.95.x, collect2 would create an import file
25247 # for dependence libraries. The import file would start with
25248 # the line `#! .'. This would cause the generated library to
25249 # depend on `.', always an invalid library. This was fixed in
25250 # development snapshots of GCC prior to 3.0.
25251 case $host_os in
25252 aix4 | aix4.[01] | aix4.[01].*)
25253 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25254 echo ' yes '
25255 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25256 :
25257 else
25258 can_build_shared=no
25259 fi
25260 ;;
25261 esac
25262 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25263 # soname into executable. Probably we can add versioning support to
25264 # collect2, so additional links can be useful in future.
25265 if test "$aix_use_runtimelinking" = yes; then
25266 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25267 # instead of lib<name>.a to let people know that these are not
25268 # typical AIX shared libraries.
25269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25270 else
25271 # We preserve .a as extension for shared libraries through AIX4.2
25272 # and later when we are not doing run time linking.
25273 library_names_spec='${libname}${release}.a $libname.a'
25274 soname_spec='${libname}${release}${shared_ext}$major'
25275 fi
25276 shlibpath_var=LIBPATH
25277 fi
25278 ;;
25279
25280amigaos*)
25281 library_names_spec='$libname.ixlibrary $libname.a'
25282 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25283 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'
25284 ;;
25285
25286beos*)
25287 library_names_spec='${libname}${shared_ext}'
25288 dynamic_linker="$host_os ld.so"
25289 shlibpath_var=LIBRARY_PATH
25290 ;;
25291
25292bsdi[45]*)
25293 version_type=linux
25294 need_version=no
25295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25296 soname_spec='${libname}${release}${shared_ext}$major'
25297 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25298 shlibpath_var=LD_LIBRARY_PATH
25299 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25300 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25301 # the default ld.so.conf also contains /usr/contrib/lib and
25302 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25303 # libtool to hard-code these into programs
25304 ;;
25305
25306cygwin* | mingw* | pw32*)
25307 version_type=windows
25308 shrext_cmds=".dll"
25309 need_version=no
25310 need_lib_prefix=no
25311
25312 case $GCC,$host_os in
25313 yes,cygwin* | yes,mingw* | yes,pw32*)
25314 library_names_spec='$libname.dll.a'
25315 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25316 postinstall_cmds='base_file=`basename \${file}`~
25317 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25318 dldir=$destdir/`dirname \$dlpath`~
25319 test -d \$dldir || mkdir -p \$dldir~
25320 $install_prog $dir/$dlname \$dldir/$dlname~
25321 chmod a+x \$dldir/$dlname'
25322 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25323 dlpath=$dir/\$dldll~
25324 $rm \$dlpath'
25325 shlibpath_overrides_runpath=yes
25326
25327 case $host_os in
25328 cygwin*)
25329 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25330 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25331 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25332 ;;
25333 mingw*)
25334 # MinGW DLLs use traditional 'lib' prefix
25335 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25336 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25337 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25338 # It is most probably a Windows format PATH printed by
25339 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25340 # path with ; separators, and with drive letters. We can handle the
25341 # drive letters (cygwin fileutils understands them), so leave them,
25342 # especially as we might pass files found there to a mingw objdump,
25343 # which wouldn't understand a cygwinified path. Ahh.
25344 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25345 else
25346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25347 fi
25348 ;;
25349 pw32*)
25350 # pw32 DLLs use 'pw' prefix rather than 'lib'
25351 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25352 ;;
25353 esac
25354 ;;
25355
25356 *)
25357 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25358 ;;
25359 esac
25360 dynamic_linker='Win32 ld.exe'
25361 # FIXME: first we should search . and the directory the executable is in
25362 shlibpath_var=PATH
25363 ;;
25364
25365darwin* | rhapsody*)
25366 dynamic_linker="$host_os dyld"
25367 version_type=darwin
25368 need_lib_prefix=no
25369 need_version=no
25370 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25371 soname_spec='${libname}${release}${major}$shared_ext'
25372 shlibpath_overrides_runpath=yes
25373 shlibpath_var=DYLD_LIBRARY_PATH
25374 shrext_cmds='.dylib'
25375 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25376 if test "$GCC" = yes; then
25377 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"`
25378 else
25379 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25380 fi
25381 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25382 ;;
25383
25384dgux*)
25385 version_type=linux
25386 need_lib_prefix=no
25387 need_version=no
25388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25389 soname_spec='${libname}${release}${shared_ext}$major'
25390 shlibpath_var=LD_LIBRARY_PATH
25391 ;;
25392
25393freebsd1*)
25394 dynamic_linker=no
25395 ;;
25396
25397kfreebsd*-gnu)
25398 version_type=linux
25399 need_lib_prefix=no
25400 need_version=no
25401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25402 soname_spec='${libname}${release}${shared_ext}$major'
25403 shlibpath_var=LD_LIBRARY_PATH
25404 shlibpath_overrides_runpath=no
25405 hardcode_into_libs=yes
25406 dynamic_linker='GNU ld.so'
25407 ;;
25408
25409freebsd* | dragonfly*)
25410 # DragonFly does not have aout. When/if they implement a new
25411 # versioning mechanism, adjust this.
25412 if test -x /usr/bin/objformat; then
25413 objformat=`/usr/bin/objformat`
25414 else
25415 case $host_os in
25416 freebsd[123]*) objformat=aout ;;
25417 *) objformat=elf ;;
25418 esac
25419 fi
25420 version_type=freebsd-$objformat
25421 case $version_type in
25422 freebsd-elf*)
25423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25424 need_version=no
25425 need_lib_prefix=no
25426 ;;
25427 freebsd-*)
25428 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25429 need_version=yes
25430 ;;
25431 esac
25432 shlibpath_var=LD_LIBRARY_PATH
25433 case $host_os in
25434 freebsd2*)
25435 shlibpath_overrides_runpath=yes
25436 ;;
25437 freebsd3.[01]* | freebsdelf3.[01]*)
25438 shlibpath_overrides_runpath=yes
25439 hardcode_into_libs=yes
25440 ;;
25441 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25442 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25443 shlibpath_overrides_runpath=no
25444 hardcode_into_libs=yes
25445 ;;
25446 freebsd*) # from 4.6 on
25447 shlibpath_overrides_runpath=yes
25448 hardcode_into_libs=yes
25449 ;;
25450 esac
25451 ;;
25452
25453gnu*)
25454 version_type=linux
25455 need_lib_prefix=no
25456 need_version=no
25457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25458 soname_spec='${libname}${release}${shared_ext}$major'
25459 shlibpath_var=LD_LIBRARY_PATH
25460 hardcode_into_libs=yes
25461 ;;
25462
25463hpux9* | hpux10* | hpux11*)
25464 # Give a soname corresponding to the major version so that dld.sl refuses to
25465 # link against other versions.
25466 version_type=sunos
25467 need_lib_prefix=no
25468 need_version=no
25469 case $host_cpu in
25470 ia64*)
25471 shrext_cmds='.so'
25472 hardcode_into_libs=yes
25473 dynamic_linker="$host_os dld.so"
25474 shlibpath_var=LD_LIBRARY_PATH
25475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25477 soname_spec='${libname}${release}${shared_ext}$major'
25478 if test "X$HPUX_IA64_MODE" = X32; then
25479 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25480 else
25481 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25482 fi
25483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25484 ;;
25485 hppa*64*)
25486 shrext_cmds='.sl'
25487 hardcode_into_libs=yes
25488 dynamic_linker="$host_os dld.sl"
25489 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25490 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25492 soname_spec='${libname}${release}${shared_ext}$major'
25493 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25494 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25495 ;;
25496 *)
25497 shrext_cmds='.sl'
25498 dynamic_linker="$host_os dld.sl"
25499 shlibpath_var=SHLIB_PATH
25500 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25502 soname_spec='${libname}${release}${shared_ext}$major'
25503 ;;
25504 esac
25505 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25506 postinstall_cmds='chmod 555 $lib'
25507 ;;
25508
25509interix3*)
25510 version_type=linux
25511 need_lib_prefix=no
25512 need_version=no
25513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25514 soname_spec='${libname}${release}${shared_ext}$major'
25515 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25516 shlibpath_var=LD_LIBRARY_PATH
25517 shlibpath_overrides_runpath=no
25518 hardcode_into_libs=yes
25519 ;;
25520
25521irix5* | irix6* | nonstopux*)
25522 case $host_os in
25523 nonstopux*) version_type=nonstopux ;;
25524 *)
25525 if test "$lt_cv_prog_gnu_ld" = yes; then
25526 version_type=linux
25527 else
25528 version_type=irix
25529 fi ;;
25530 esac
25531 need_lib_prefix=no
25532 need_version=no
25533 soname_spec='${libname}${release}${shared_ext}$major'
25534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25535 case $host_os in
25536 irix5* | nonstopux*)
25537 libsuff= shlibsuff=
25538 ;;
25539 *)
25540 case $LD in # libtool.m4 will add one of these switches to LD
25541 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25542 libsuff= shlibsuff= libmagic=32-bit;;
25543 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25544 libsuff=32 shlibsuff=N32 libmagic=N32;;
25545 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25546 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25547 *) libsuff= shlibsuff= libmagic=never-match;;
25548 esac
25549 ;;
25550 esac
25551 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25552 shlibpath_overrides_runpath=no
25553 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25554 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25555 hardcode_into_libs=yes
25556 ;;
25557
25558# No shared lib support for Linux oldld, aout, or coff.
25559linux*oldld* | linux*aout* | linux*coff*)
25560 dynamic_linker=no
25561 ;;
25562
25563# This must be Linux ELF.
25564linux*)
25565 version_type=linux
25566 need_lib_prefix=no
25567 need_version=no
25568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25569 soname_spec='${libname}${release}${shared_ext}$major'
25570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25571 shlibpath_var=LD_LIBRARY_PATH
25572 shlibpath_overrides_runpath=no
25573 # This implies no fast_install, which is unacceptable.
25574 # Some rework will be needed to allow for fast_install
25575 # before this can be enabled.
25576 hardcode_into_libs=yes
25577
25578 # Append ld.so.conf contents to the search path
25579 if test -f /etc/ld.so.conf; then
25580 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' ' '`
25581 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25582 fi
25583
25584 # We used to test for /lib/ld.so.1 and disable shared libraries on
25585 # powerpc, because MkLinux only supported shared libraries with the
25586 # GNU dynamic linker. Since this was broken with cross compilers,
25587 # most powerpc-linux boxes support dynamic linking these days and
25588 # people can always --disable-shared, the test was removed, and we
25589 # assume the GNU/Linux dynamic linker is in use.
25590 dynamic_linker='GNU/Linux ld.so'
25591 ;;
25592
25593knetbsd*-gnu)
25594 version_type=linux
25595 need_lib_prefix=no
25596 need_version=no
25597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25598 soname_spec='${libname}${release}${shared_ext}$major'
25599 shlibpath_var=LD_LIBRARY_PATH
25600 shlibpath_overrides_runpath=no
25601 hardcode_into_libs=yes
25602 dynamic_linker='GNU ld.so'
25603 ;;
25604
25605netbsd*)
25606 version_type=sunos
25607 need_lib_prefix=no
25608 need_version=no
25609 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25612 dynamic_linker='NetBSD (a.out) ld.so'
25613 else
25614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25615 soname_spec='${libname}${release}${shared_ext}$major'
25616 dynamic_linker='NetBSD ld.elf_so'
25617 fi
25618 shlibpath_var=LD_LIBRARY_PATH
25619 shlibpath_overrides_runpath=yes
25620 hardcode_into_libs=yes
25621 ;;
25622
25623newsos6)
25624 version_type=linux
25625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25626 shlibpath_var=LD_LIBRARY_PATH
25627 shlibpath_overrides_runpath=yes
25628 ;;
25629
25630nto-qnx*)
25631 version_type=linux
25632 need_lib_prefix=no
25633 need_version=no
25634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25635 soname_spec='${libname}${release}${shared_ext}$major'
25636 shlibpath_var=LD_LIBRARY_PATH
25637 shlibpath_overrides_runpath=yes
25638 ;;
25639
25640openbsd*)
25641 version_type=sunos
25642 sys_lib_dlsearch_path_spec="/usr/lib"
25643 need_lib_prefix=no
25644 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25645 case $host_os in
25646 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25647 *) need_version=no ;;
25648 esac
25649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25650 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25651 shlibpath_var=LD_LIBRARY_PATH
25652 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25653 case $host_os in
25654 openbsd2.[89] | openbsd2.[89].*)
25655 shlibpath_overrides_runpath=no
25656 ;;
25657 *)
25658 shlibpath_overrides_runpath=yes
25659 ;;
25660 esac
25661 else
25662 shlibpath_overrides_runpath=yes
25663 fi
25664 ;;
25665
25666os2*)
25667 libname_spec='$name'
25668 shrext_cmds=".dll"
25669 need_lib_prefix=no
25670 library_names_spec='$libname${shared_ext} $libname.a'
25671 dynamic_linker='OS/2 ld.exe'
25672 shlibpath_var=LIBPATH
25673 ;;
25674
25675osf3* | osf4* | osf5*)
25676 version_type=osf
25677 need_lib_prefix=no
25678 need_version=no
25679 soname_spec='${libname}${release}${shared_ext}$major'
25680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25681 shlibpath_var=LD_LIBRARY_PATH
25682 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25683 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25684 ;;
25685
25686solaris*)
25687 version_type=linux
25688 need_lib_prefix=no
25689 need_version=no
25690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25691 soname_spec='${libname}${release}${shared_ext}$major'
25692 shlibpath_var=LD_LIBRARY_PATH
25693 shlibpath_overrides_runpath=yes
25694 hardcode_into_libs=yes
25695 # ldd complains unless libraries are executable
25696 postinstall_cmds='chmod +x $lib'
25697 ;;
25698
25699sunos4*)
25700 version_type=sunos
25701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25702 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25703 shlibpath_var=LD_LIBRARY_PATH
25704 shlibpath_overrides_runpath=yes
25705 if test "$with_gnu_ld" = yes; then
25706 need_lib_prefix=no
25707 fi
25708 need_version=yes
25709 ;;
25710
25711sysv4 | sysv4.3*)
25712 version_type=linux
25713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25714 soname_spec='${libname}${release}${shared_ext}$major'
25715 shlibpath_var=LD_LIBRARY_PATH
25716 case $host_vendor in
25717 sni)
25718 shlibpath_overrides_runpath=no
25719 need_lib_prefix=no
25720 export_dynamic_flag_spec='${wl}-Blargedynsym'
25721 runpath_var=LD_RUN_PATH
25722 ;;
25723 siemens)
25724 need_lib_prefix=no
25725 ;;
25726 motorola)
25727 need_lib_prefix=no
25728 need_version=no
25729 shlibpath_overrides_runpath=no
25730 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25731 ;;
25732 esac
25733 ;;
25734
25735sysv4*MP*)
25736 if test -d /usr/nec ;then
25737 version_type=linux
25738 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25739 soname_spec='$libname${shared_ext}.$major'
25740 shlibpath_var=LD_LIBRARY_PATH
25741 fi
25742 ;;
25743
25744sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25745 version_type=freebsd-elf
25746 need_lib_prefix=no
25747 need_version=no
25748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25749 soname_spec='${libname}${release}${shared_ext}$major'
25750 shlibpath_var=LD_LIBRARY_PATH
25751 hardcode_into_libs=yes
25752 if test "$with_gnu_ld" = yes; then
25753 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25754 shlibpath_overrides_runpath=no
25755 else
25756 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25757 shlibpath_overrides_runpath=yes
25758 case $host_os in
25759 sco3.2v5*)
25760 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25761 ;;
25762 esac
25763 fi
25764 sys_lib_dlsearch_path_spec='/usr/lib'
25765 ;;
25766
25767uts4*)
25768 version_type=linux
25769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25770 soname_spec='${libname}${release}${shared_ext}$major'
25771 shlibpath_var=LD_LIBRARY_PATH
25772 ;;
25773
25774*)
25775 dynamic_linker=no
25776 ;;
25777esac
25778{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25779echo "${ECHO_T}$dynamic_linker" >&6; }
25780test "$dynamic_linker" = no && can_build_shared=no
25781
25782variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25783if test "$GCC" = yes; then
25784 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25785fi
25786
25787{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25788echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25789hardcode_action_GCJ=
25790if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25791 test -n "$runpath_var_GCJ" || \
25792 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25793
25794 # We can hardcode non-existant directories.
25795 if test "$hardcode_direct_GCJ" != no &&
25796 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25797 # have to relink, otherwise we might link with an installed library
25798 # when we should be linking with a yet-to-be-installed one
25799 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25800 test "$hardcode_minus_L_GCJ" != no; then
25801 # Linking always hardcodes the temporary library directory.
25802 hardcode_action_GCJ=relink
25803 else
25804 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25805 hardcode_action_GCJ=immediate
25806 fi
25807else
25808 # We cannot hardcode anything, or else we can only hardcode existing
25809 # directories.
25810 hardcode_action_GCJ=unsupported
25811fi
25812{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25813echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25814
25815if test "$hardcode_action_GCJ" = relink; then
25816 # Fast installation is not supported
25817 enable_fast_install=no
25818elif test "$shlibpath_overrides_runpath" = yes ||
25819 test "$enable_shared" = no; then
25820 # Fast installation is not necessary
25821 enable_fast_install=needless
25822fi
25823
25824
25825# The else clause should only fire when bootstrapping the
25826# libtool distribution, otherwise you forgot to ship ltmain.sh
25827# with your package, and you will get complaints that there are
25828# no rules to generate ltmain.sh.
25829if test -f "$ltmain"; then
25830 # See if we are running on zsh, and set the options which allow our commands through
25831 # without removal of \ escapes.
25832 if test -n "${ZSH_VERSION+set}" ; then
25833 setopt NO_GLOB_SUBST
25834 fi
25835 # Now quote all the things that may contain metacharacters while being
25836 # careful not to overquote the AC_SUBSTed values. We take copies of the
25837 # variables and quote the copies for generation of the libtool script.
25838 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25839 SED SHELL STRIP \
25840 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25841 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25842 deplibs_check_method reload_flag reload_cmds need_locks \
25843 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25844 lt_cv_sys_global_symbol_to_c_name_address \
25845 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25846 old_postinstall_cmds old_postuninstall_cmds \
25847 compiler_GCJ \
25848 CC_GCJ \
25849 LD_GCJ \
25850 lt_prog_compiler_wl_GCJ \
25851 lt_prog_compiler_pic_GCJ \
25852 lt_prog_compiler_static_GCJ \
25853 lt_prog_compiler_no_builtin_flag_GCJ \
25854 export_dynamic_flag_spec_GCJ \
25855 thread_safe_flag_spec_GCJ \
25856 whole_archive_flag_spec_GCJ \
25857 enable_shared_with_static_runtimes_GCJ \
25858 old_archive_cmds_GCJ \
25859 old_archive_from_new_cmds_GCJ \
25860 predep_objects_GCJ \
25861 postdep_objects_GCJ \
25862 predeps_GCJ \
25863 postdeps_GCJ \
25864 compiler_lib_search_path_GCJ \
25865 archive_cmds_GCJ \
25866 archive_expsym_cmds_GCJ \
25867 postinstall_cmds_GCJ \
25868 postuninstall_cmds_GCJ \
25869 old_archive_from_expsyms_cmds_GCJ \
25870 allow_undefined_flag_GCJ \
25871 no_undefined_flag_GCJ \
25872 export_symbols_cmds_GCJ \
25873 hardcode_libdir_flag_spec_GCJ \
25874 hardcode_libdir_flag_spec_ld_GCJ \
25875 hardcode_libdir_separator_GCJ \
25876 hardcode_automatic_GCJ \
25877 module_cmds_GCJ \
25878 module_expsym_cmds_GCJ \
25879 lt_cv_prog_compiler_c_o_GCJ \
25880 exclude_expsyms_GCJ \
25881 include_expsyms_GCJ; do
25882
25883 case $var in
25884 old_archive_cmds_GCJ | \
25885 old_archive_from_new_cmds_GCJ | \
25886 archive_cmds_GCJ | \
25887 archive_expsym_cmds_GCJ | \
25888 module_cmds_GCJ | \
25889 module_expsym_cmds_GCJ | \
25890 old_archive_from_expsyms_cmds_GCJ | \
25891 export_symbols_cmds_GCJ | \
25892 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25893 postinstall_cmds | postuninstall_cmds | \
25894 old_postinstall_cmds | old_postuninstall_cmds | \
25895 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25896 # Double-quote double-evaled strings.
25897 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25898 ;;
25899 *)
25900 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25901 ;;
25902 esac
25903 done
25904
25905 case $lt_echo in
25906 *'\$0 --fallback-echo"')
25907 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25908 ;;
25909 esac
25910
25911cfgfile="$ofile"
25912
25913 cat <<__EOF__ >> "$cfgfile"
25914# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25915
25916# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25917
25918# Shell to use when invoking shell scripts.
25919SHELL=$lt_SHELL
25920
25921# Whether or not to build shared libraries.
25922build_libtool_libs=$enable_shared
25923
25924# Whether or not to build static libraries.
25925build_old_libs=$enable_static
25926
25927# Whether or not to add -lc for building shared libraries.
25928build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25929
25930# Whether or not to disallow shared libs when runtime libs are static
25931allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25932
25933# Whether or not to optimize for fast installation.
25934fast_install=$enable_fast_install
25935
25936# The host system.
25937host_alias=$host_alias
25938host=$host
25939host_os=$host_os
25940
25941# The build system.
25942build_alias=$build_alias
25943build=$build
25944build_os=$build_os
25945
25946# An echo program that does not interpret backslashes.
25947echo=$lt_echo
25948
25949# The archiver.
25950AR=$lt_AR
25951AR_FLAGS=$lt_AR_FLAGS
25952
25953# A C compiler.
25954LTCC=$lt_LTCC
25955
25956# LTCC compiler flags.
25957LTCFLAGS=$lt_LTCFLAGS
25958
25959# A language-specific compiler.
25960CC=$lt_compiler_GCJ
25961
25962# Is the compiler the GNU C compiler?
25963with_gcc=$GCC_GCJ
25964
25965# An ERE matcher.
25966EGREP=$lt_EGREP
25967
25968# The linker used to build libraries.
25969LD=$lt_LD_GCJ
25970
25971# Whether we need hard or soft links.
25972LN_S=$lt_LN_S
25973
25974# A BSD-compatible nm program.
25975NM=$lt_NM
25976
25977# A symbol stripping program
25978STRIP=$lt_STRIP
25979
25980# Used to examine libraries when file_magic_cmd begins "file"
25981MAGIC_CMD=$MAGIC_CMD
25982
25983# Used on cygwin: DLL creation program.
25984DLLTOOL="$DLLTOOL"
25985
25986# Used on cygwin: object dumper.
25987OBJDUMP="$OBJDUMP"
25988
25989# Used on cygwin: assembler.
25990AS="$AS"
25991
25992# The name of the directory that contains temporary libtool files.
25993objdir=$objdir
25994
25995# How to create reloadable object files.
25996reload_flag=$lt_reload_flag
25997reload_cmds=$lt_reload_cmds
25998
25999# How to pass a linker flag through the compiler.
26000wl=$lt_lt_prog_compiler_wl_GCJ
26001
26002# Object file suffix (normally "o").
26003objext="$ac_objext"
26004
26005# Old archive suffix (normally "a").
26006libext="$libext"
26007
26008# Shared library suffix (normally ".so").
26009shrext_cmds='$shrext_cmds'
26010
26011# Executable file suffix (normally "").
26012exeext="$exeext"
26013
26014# Additional compiler flags for building library objects.
26015pic_flag=$lt_lt_prog_compiler_pic_GCJ
26016pic_mode=$pic_mode
26017
26018# What is the maximum length of a command?
26019max_cmd_len=$lt_cv_sys_max_cmd_len
26020
26021# Does compiler simultaneously support -c and -o options?
26022compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26023
26024# Must we lock files when doing compilation?
26025need_locks=$lt_need_locks
26026
26027# Do we need the lib prefix for modules?
26028need_lib_prefix=$need_lib_prefix
26029
26030# Do we need a version for libraries?
26031need_version=$need_version
26032
26033# Whether dlopen is supported.
26034dlopen_support=$enable_dlopen
26035
26036# Whether dlopen of programs is supported.
26037dlopen_self=$enable_dlopen_self
26038
26039# Whether dlopen of statically linked programs is supported.
26040dlopen_self_static=$enable_dlopen_self_static
26041
26042# Compiler flag to prevent dynamic linking.
26043link_static_flag=$lt_lt_prog_compiler_static_GCJ
26044
26045# Compiler flag to turn off builtin functions.
26046no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26047
26048# Compiler flag to allow reflexive dlopens.
26049export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26050
26051# Compiler flag to generate shared objects directly from archives.
26052whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26053
26054# Compiler flag to generate thread-safe objects.
26055thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26056
26057# Library versioning type.
26058version_type=$version_type
26059
26060# Format of library name prefix.
26061libname_spec=$lt_libname_spec
26062
26063# List of archive names. First name is the real one, the rest are links.
26064# The last name is the one that the linker finds with -lNAME.
26065library_names_spec=$lt_library_names_spec
26066
26067# The coded name of the library, if different from the real name.
26068soname_spec=$lt_soname_spec
26069
26070# Commands used to build and install an old-style archive.
26071RANLIB=$lt_RANLIB
26072old_archive_cmds=$lt_old_archive_cmds_GCJ
26073old_postinstall_cmds=$lt_old_postinstall_cmds
26074old_postuninstall_cmds=$lt_old_postuninstall_cmds
26075
26076# Create an old-style archive from a shared archive.
26077old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26078
26079# Create a temporary old-style archive to link instead of a shared archive.
26080old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26081
26082# Commands used to build and install a shared archive.
26083archive_cmds=$lt_archive_cmds_GCJ
26084archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26085postinstall_cmds=$lt_postinstall_cmds
26086postuninstall_cmds=$lt_postuninstall_cmds
26087
26088# Commands used to build a loadable module (assumed same as above if empty)
26089module_cmds=$lt_module_cmds_GCJ
26090module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26091
26092# Commands to strip libraries.
26093old_striplib=$lt_old_striplib
26094striplib=$lt_striplib
26095
26096# Dependencies to place before the objects being linked to create a
26097# shared library.
26098predep_objects=$lt_predep_objects_GCJ
26099
26100# Dependencies to place after the objects being linked to create a
26101# shared library.
26102postdep_objects=$lt_postdep_objects_GCJ
26103
26104# Dependencies to place before the objects being linked to create a
26105# shared library.
26106predeps=$lt_predeps_GCJ
26107
26108# Dependencies to place after the objects being linked to create a
26109# shared library.
26110postdeps=$lt_postdeps_GCJ
26111
26112# The library search path used internally by the compiler when linking
26113# a shared library.
26114compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26115
26116# Method to check whether dependent libraries are shared objects.
26117deplibs_check_method=$lt_deplibs_check_method
26118
26119# Command to use when deplibs_check_method == file_magic.
26120file_magic_cmd=$lt_file_magic_cmd
26121
26122# Flag that allows shared libraries with undefined symbols to be built.
26123allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26124
26125# Flag that forces no undefined symbols.
26126no_undefined_flag=$lt_no_undefined_flag_GCJ
26127
26128# Commands used to finish a libtool library installation in a directory.
26129finish_cmds=$lt_finish_cmds
26130
26131# Same as above, but a single script fragment to be evaled but not shown.
26132finish_eval=$lt_finish_eval
26133
26134# Take the output of nm and produce a listing of raw symbols and C names.
26135global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26136
26137# Transform the output of nm in a proper C declaration
26138global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26139
26140# Transform the output of nm in a C name address pair
26141global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26142
26143# This is the shared library runtime path variable.
26144runpath_var=$runpath_var
26145
26146# This is the shared library path variable.
26147shlibpath_var=$shlibpath_var
26148
26149# Is shlibpath searched before the hard-coded library search path?
26150shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26151
26152# How to hardcode a shared library path into an executable.
26153hardcode_action=$hardcode_action_GCJ
26154
26155# Whether we should hardcode library paths into libraries.
26156hardcode_into_libs=$hardcode_into_libs
26157
26158# Flag to hardcode \$libdir into a binary during linking.
26159# This must work even if \$libdir does not exist.
26160hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26161
26162# If ld is used when linking, flag to hardcode \$libdir into
26163# a binary during linking. This must work even if \$libdir does
26164# not exist.
26165hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26166
26167# Whether we need a single -rpath flag with a separated argument.
26168hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26169
26170# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26171# resulting binary.
26172hardcode_direct=$hardcode_direct_GCJ
26173
26174# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26175# resulting binary.
26176hardcode_minus_L=$hardcode_minus_L_GCJ
26177
26178# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26179# the resulting binary.
26180hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26181
26182# Set to yes if building a shared library automatically hardcodes DIR into the library
26183# and all subsequent libraries and executables linked against it.
26184hardcode_automatic=$hardcode_automatic_GCJ
26185
26186# Variables whose values should be saved in libtool wrapper scripts and
26187# restored at relink time.
26188variables_saved_for_relink="$variables_saved_for_relink"
26189
26190# Whether libtool must link a program against all its dependency libraries.
26191link_all_deplibs=$link_all_deplibs_GCJ
26192
26193# Compile-time system search path for libraries
26194sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26195
26196# Run-time system search path for libraries
26197sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26198
26199# Fix the shell variable \$srcfile for the compiler.
26200fix_srcfile_path="$fix_srcfile_path_GCJ"
26201
26202# Set to yes if exported symbols are required.
26203always_export_symbols=$always_export_symbols_GCJ
26204
26205# The commands to list exported symbols.
26206export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26207
26208# The commands to extract the exported symbol list from a shared archive.
26209extract_expsyms_cmds=$lt_extract_expsyms_cmds
26210
26211# Symbols that should not be listed in the preloaded symbols.
26212exclude_expsyms=$lt_exclude_expsyms_GCJ
26213
26214# Symbols that must always be exported.
26215include_expsyms=$lt_include_expsyms_GCJ
26216
26217# ### END LIBTOOL TAG CONFIG: $tagname
26218
26219__EOF__
26220
26221
26222else
26223 # If there is no Makefile yet, we rely on a make rule to execute
26224 # `config.status --recheck' to rerun these tests and create the
26225 # libtool script then.
26226 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26227 if test -f "$ltmain_in"; then
26228 test -f Makefile && make "$ltmain"
26229 fi
26230fi
26231
26232
26233ac_ext=c
26234ac_cpp='$CPP $CPPFLAGS'
26235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26237ac_compiler_gnu=$ac_cv_c_compiler_gnu
26238
26239CC="$lt_save_CC"
26240
26241 else
26242 tagname=""
26243 fi
26244 ;;
26245
26246 RC)
26247 ac_ext=c
26248ac_cpp='$CPP $CPPFLAGS'
26249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26251ac_compiler_gnu=$ac_cv_c_compiler_gnu
26252
26253
26254# Source file extension for RC test sources.
26255ac_ext=rc
26256
26257# Object file extension for compiled RC test sources.
26258objext=o
26259objext_RC=$objext
26260
26261# Code to be used in simple compile tests
26262lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26263
26264# Code to be used in simple link tests
26265lt_simple_link_test_code="$lt_simple_compile_test_code"
26266
26267# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26268
26269# If no C compiler was specified, use CC.
26270LTCC=${LTCC-"$CC"}
26271
26272# If no C compiler flags were specified, use CFLAGS.
26273LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26274
26275# Allow CC to be a program name with arguments.
26276compiler=$CC
26277
26278
26279# save warnings/boilerplate of simple test code
26280ac_outfile=conftest.$ac_objext
26281printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26282eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26283_lt_compiler_boilerplate=`cat conftest.err`
26284$rm conftest*
26285
26286ac_outfile=conftest.$ac_objext
26287printf "$lt_simple_link_test_code" >conftest.$ac_ext
26288eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26289_lt_linker_boilerplate=`cat conftest.err`
26290$rm conftest*
26291
26292
26293# Allow CC to be a program name with arguments.
26294lt_save_CC="$CC"
26295CC=${RC-"windres"}
26296compiler=$CC
26297compiler_RC=$CC
26298for cc_temp in $compiler""; do
26299 case $cc_temp in
26300 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26301 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26302 \-*) ;;
26303 *) break;;
26304 esac
26305done
26306cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26307
26308lt_cv_prog_compiler_c_o_RC=yes
26309
26310# The else clause should only fire when bootstrapping the
26311# libtool distribution, otherwise you forgot to ship ltmain.sh
26312# with your package, and you will get complaints that there are
26313# no rules to generate ltmain.sh.
26314if test -f "$ltmain"; then
26315 # See if we are running on zsh, and set the options which allow our commands through
26316 # without removal of \ escapes.
26317 if test -n "${ZSH_VERSION+set}" ; then
26318 setopt NO_GLOB_SUBST
26319 fi
26320 # Now quote all the things that may contain metacharacters while being
26321 # careful not to overquote the AC_SUBSTed values. We take copies of the
26322 # variables and quote the copies for generation of the libtool script.
26323 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26324 SED SHELL STRIP \
26325 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26326 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26327 deplibs_check_method reload_flag reload_cmds need_locks \
26328 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26329 lt_cv_sys_global_symbol_to_c_name_address \
26330 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26331 old_postinstall_cmds old_postuninstall_cmds \
26332 compiler_RC \
26333 CC_RC \
26334 LD_RC \
26335 lt_prog_compiler_wl_RC \
26336 lt_prog_compiler_pic_RC \
26337 lt_prog_compiler_static_RC \
26338 lt_prog_compiler_no_builtin_flag_RC \
26339 export_dynamic_flag_spec_RC \
26340 thread_safe_flag_spec_RC \
26341 whole_archive_flag_spec_RC \
26342 enable_shared_with_static_runtimes_RC \
26343 old_archive_cmds_RC \
26344 old_archive_from_new_cmds_RC \
26345 predep_objects_RC \
26346 postdep_objects_RC \
26347 predeps_RC \
26348 postdeps_RC \
26349 compiler_lib_search_path_RC \
26350 archive_cmds_RC \
26351 archive_expsym_cmds_RC \
26352 postinstall_cmds_RC \
26353 postuninstall_cmds_RC \
26354 old_archive_from_expsyms_cmds_RC \
26355 allow_undefined_flag_RC \
26356 no_undefined_flag_RC \
26357 export_symbols_cmds_RC \
26358 hardcode_libdir_flag_spec_RC \
26359 hardcode_libdir_flag_spec_ld_RC \
26360 hardcode_libdir_separator_RC \
26361 hardcode_automatic_RC \
26362 module_cmds_RC \
26363 module_expsym_cmds_RC \
26364 lt_cv_prog_compiler_c_o_RC \
26365 exclude_expsyms_RC \
26366 include_expsyms_RC; do
26367
26368 case $var in
26369 old_archive_cmds_RC | \
26370 old_archive_from_new_cmds_RC | \
26371 archive_cmds_RC | \
26372 archive_expsym_cmds_RC | \
26373 module_cmds_RC | \
26374 module_expsym_cmds_RC | \
26375 old_archive_from_expsyms_cmds_RC | \
26376 export_symbols_cmds_RC | \
26377 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26378 postinstall_cmds | postuninstall_cmds | \
26379 old_postinstall_cmds | old_postuninstall_cmds | \
26380 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26381 # Double-quote double-evaled strings.
26382 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26383 ;;
26384 *)
26385 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26386 ;;
26387 esac
26388 done
26389
26390 case $lt_echo in
26391 *'\$0 --fallback-echo"')
26392 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26393 ;;
26394 esac
26395
26396cfgfile="$ofile"
26397
26398 cat <<__EOF__ >> "$cfgfile"
26399# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26400
26401# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26402
26403# Shell to use when invoking shell scripts.
26404SHELL=$lt_SHELL
26405
26406# Whether or not to build shared libraries.
26407build_libtool_libs=$enable_shared
26408
26409# Whether or not to build static libraries.
26410build_old_libs=$enable_static
26411
26412# Whether or not to add -lc for building shared libraries.
26413build_libtool_need_lc=$archive_cmds_need_lc_RC
26414
26415# Whether or not to disallow shared libs when runtime libs are static
26416allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26417
26418# Whether or not to optimize for fast installation.
26419fast_install=$enable_fast_install
26420
26421# The host system.
26422host_alias=$host_alias
26423host=$host
26424host_os=$host_os
26425
26426# The build system.
26427build_alias=$build_alias
26428build=$build
26429build_os=$build_os
26430
26431# An echo program that does not interpret backslashes.
26432echo=$lt_echo
26433
26434# The archiver.
26435AR=$lt_AR
26436AR_FLAGS=$lt_AR_FLAGS
26437
26438# A C compiler.
26439LTCC=$lt_LTCC
26440
26441# LTCC compiler flags.
26442LTCFLAGS=$lt_LTCFLAGS
26443
26444# A language-specific compiler.
26445CC=$lt_compiler_RC
26446
26447# Is the compiler the GNU C compiler?
26448with_gcc=$GCC_RC
26449
26450# An ERE matcher.
26451EGREP=$lt_EGREP
26452
26453# The linker used to build libraries.
26454LD=$lt_LD_RC
26455
26456# Whether we need hard or soft links.
26457LN_S=$lt_LN_S
26458
26459# A BSD-compatible nm program.
26460NM=$lt_NM
26461
26462# A symbol stripping program
26463STRIP=$lt_STRIP
26464
26465# Used to examine libraries when file_magic_cmd begins "file"
26466MAGIC_CMD=$MAGIC_CMD
26467
26468# Used on cygwin: DLL creation program.
26469DLLTOOL="$DLLTOOL"
26470
26471# Used on cygwin: object dumper.
26472OBJDUMP="$OBJDUMP"
26473
26474# Used on cygwin: assembler.
26475AS="$AS"
26476
26477# The name of the directory that contains temporary libtool files.
26478objdir=$objdir
26479
26480# How to create reloadable object files.
26481reload_flag=$lt_reload_flag
26482reload_cmds=$lt_reload_cmds
26483
26484# How to pass a linker flag through the compiler.
26485wl=$lt_lt_prog_compiler_wl_RC
26486
26487# Object file suffix (normally "o").
26488objext="$ac_objext"
26489
26490# Old archive suffix (normally "a").
26491libext="$libext"
26492
26493# Shared library suffix (normally ".so").
26494shrext_cmds='$shrext_cmds'
26495
26496# Executable file suffix (normally "").
26497exeext="$exeext"
26498
26499# Additional compiler flags for building library objects.
26500pic_flag=$lt_lt_prog_compiler_pic_RC
26501pic_mode=$pic_mode
26502
26503# What is the maximum length of a command?
26504max_cmd_len=$lt_cv_sys_max_cmd_len
26505
26506# Does compiler simultaneously support -c and -o options?
26507compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26508
26509# Must we lock files when doing compilation?
26510need_locks=$lt_need_locks
26511
26512# Do we need the lib prefix for modules?
26513need_lib_prefix=$need_lib_prefix
26514
26515# Do we need a version for libraries?
26516need_version=$need_version
26517
26518# Whether dlopen is supported.
26519dlopen_support=$enable_dlopen
26520
26521# Whether dlopen of programs is supported.
26522dlopen_self=$enable_dlopen_self
26523
26524# Whether dlopen of statically linked programs is supported.
26525dlopen_self_static=$enable_dlopen_self_static
26526
26527# Compiler flag to prevent dynamic linking.
26528link_static_flag=$lt_lt_prog_compiler_static_RC
26529
26530# Compiler flag to turn off builtin functions.
26531no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26532
26533# Compiler flag to allow reflexive dlopens.
26534export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26535
26536# Compiler flag to generate shared objects directly from archives.
26537whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26538
26539# Compiler flag to generate thread-safe objects.
26540thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26541
26542# Library versioning type.
26543version_type=$version_type
26544
26545# Format of library name prefix.
26546libname_spec=$lt_libname_spec
26547
26548# List of archive names. First name is the real one, the rest are links.
26549# The last name is the one that the linker finds with -lNAME.
26550library_names_spec=$lt_library_names_spec
26551
26552# The coded name of the library, if different from the real name.
26553soname_spec=$lt_soname_spec
26554
26555# Commands used to build and install an old-style archive.
26556RANLIB=$lt_RANLIB
26557old_archive_cmds=$lt_old_archive_cmds_RC
26558old_postinstall_cmds=$lt_old_postinstall_cmds
26559old_postuninstall_cmds=$lt_old_postuninstall_cmds
26560
26561# Create an old-style archive from a shared archive.
26562old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26563
26564# Create a temporary old-style archive to link instead of a shared archive.
26565old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26566
26567# Commands used to build and install a shared archive.
26568archive_cmds=$lt_archive_cmds_RC
26569archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26570postinstall_cmds=$lt_postinstall_cmds
26571postuninstall_cmds=$lt_postuninstall_cmds
26572
26573# Commands used to build a loadable module (assumed same as above if empty)
26574module_cmds=$lt_module_cmds_RC
26575module_expsym_cmds=$lt_module_expsym_cmds_RC
26576
26577# Commands to strip libraries.
26578old_striplib=$lt_old_striplib
26579striplib=$lt_striplib
26580
26581# Dependencies to place before the objects being linked to create a
26582# shared library.
26583predep_objects=$lt_predep_objects_RC
26584
26585# Dependencies to place after the objects being linked to create a
26586# shared library.
26587postdep_objects=$lt_postdep_objects_RC
26588
26589# Dependencies to place before the objects being linked to create a
26590# shared library.
26591predeps=$lt_predeps_RC
26592
26593# Dependencies to place after the objects being linked to create a
26594# shared library.
26595postdeps=$lt_postdeps_RC
26596
26597# The library search path used internally by the compiler when linking
26598# a shared library.
26599compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26600
26601# Method to check whether dependent libraries are shared objects.
26602deplibs_check_method=$lt_deplibs_check_method
26603
26604# Command to use when deplibs_check_method == file_magic.
26605file_magic_cmd=$lt_file_magic_cmd
26606
26607# Flag that allows shared libraries with undefined symbols to be built.
26608allow_undefined_flag=$lt_allow_undefined_flag_RC
26609
26610# Flag that forces no undefined symbols.
26611no_undefined_flag=$lt_no_undefined_flag_RC
26612
26613# Commands used to finish a libtool library installation in a directory.
26614finish_cmds=$lt_finish_cmds
26615
26616# Same as above, but a single script fragment to be evaled but not shown.
26617finish_eval=$lt_finish_eval
26618
26619# Take the output of nm and produce a listing of raw symbols and C names.
26620global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26621
26622# Transform the output of nm in a proper C declaration
26623global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26624
26625# Transform the output of nm in a C name address pair
26626global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26627
26628# This is the shared library runtime path variable.
26629runpath_var=$runpath_var
26630
26631# This is the shared library path variable.
26632shlibpath_var=$shlibpath_var
26633
26634# Is shlibpath searched before the hard-coded library search path?
26635shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26636
26637# How to hardcode a shared library path into an executable.
26638hardcode_action=$hardcode_action_RC
26639
26640# Whether we should hardcode library paths into libraries.
26641hardcode_into_libs=$hardcode_into_libs
26642
26643# Flag to hardcode \$libdir into a binary during linking.
26644# This must work even if \$libdir does not exist.
26645hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26646
26647# If ld is used when linking, flag to hardcode \$libdir into
26648# a binary during linking. This must work even if \$libdir does
26649# not exist.
26650hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26651
26652# Whether we need a single -rpath flag with a separated argument.
26653hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26654
26655# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26656# resulting binary.
26657hardcode_direct=$hardcode_direct_RC
26658
26659# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26660# resulting binary.
26661hardcode_minus_L=$hardcode_minus_L_RC
26662
26663# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26664# the resulting binary.
26665hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26666
26667# Set to yes if building a shared library automatically hardcodes DIR into the library
26668# and all subsequent libraries and executables linked against it.
26669hardcode_automatic=$hardcode_automatic_RC
26670
26671# Variables whose values should be saved in libtool wrapper scripts and
26672# restored at relink time.
26673variables_saved_for_relink="$variables_saved_for_relink"
26674
26675# Whether libtool must link a program against all its dependency libraries.
26676link_all_deplibs=$link_all_deplibs_RC
26677
26678# Compile-time system search path for libraries
26679sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26680
26681# Run-time system search path for libraries
26682sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26683
26684# Fix the shell variable \$srcfile for the compiler.
26685fix_srcfile_path="$fix_srcfile_path_RC"
26686
26687# Set to yes if exported symbols are required.
26688always_export_symbols=$always_export_symbols_RC
26689
26690# The commands to list exported symbols.
26691export_symbols_cmds=$lt_export_symbols_cmds_RC
26692
26693# The commands to extract the exported symbol list from a shared archive.
26694extract_expsyms_cmds=$lt_extract_expsyms_cmds
26695
26696# Symbols that should not be listed in the preloaded symbols.
26697exclude_expsyms=$lt_exclude_expsyms_RC
26698
26699# Symbols that must always be exported.
26700include_expsyms=$lt_include_expsyms_RC
26701
26702# ### END LIBTOOL TAG CONFIG: $tagname
26703
26704__EOF__
26705
26706
26707else
26708 # If there is no Makefile yet, we rely on a make rule to execute
26709 # `config.status --recheck' to rerun these tests and create the
26710 # libtool script then.
26711 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26712 if test -f "$ltmain_in"; then
26713 test -f Makefile && make "$ltmain"
26714 fi
26715fi
26716
26717
26718ac_ext=c
26719ac_cpp='$CPP $CPPFLAGS'
26720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26722ac_compiler_gnu=$ac_cv_c_compiler_gnu
26723
26724CC="$lt_save_CC"
26725
26726 ;;
26727
26728 *)
26729 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26730echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26731 { (exit 1); exit 1; }; }
26732 ;;
26733 esac
26734
26735 # Append the new tag name to the list of available tags.
26736 if test -n "$tagname" ; then
26737 available_tags="$available_tags $tagname"
26738 fi
26739 fi
26740 done
26741 IFS="$lt_save_ifs"
26742
26743 # Now substitute the updated list of available tags.
26744 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26745 mv "${ofile}T" "$ofile"
26746 chmod +x "$ofile"
26747 else
26748 rm -f "${ofile}T"
26749 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26750echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26751 { (exit 1); exit 1; }; }
26752 fi
26753fi
26754
26755
26756
26757# This can be used to rebuild libtool when needed
26758LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26759
26760# Always use our own libtool.
26761LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26762
26763# Prevent multiple expansion
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785if test "$lt_cv_dlopen_self" = "yes" ; then
26786
26787cat >>confdefs.h <<\_ACEOF
26788#define CAN_DLOPEN_SELF 1
26789_ACEOF
26790
26791fi
26792
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026793if test "$WITH_LLVMGCCDIR" = "default" ; then
26794 LLVMGCC="llvm-gcc${EXEEXT}"
26795 LLVMGXX="llvm-g++${EXEEXT}"
26796 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26797set dummy $LLVMGCC; ac_word=$2
26798{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26800if test "${ac_cv_path_LLVMGCC+set}" = set; then
26801 echo $ECHO_N "(cached) $ECHO_C" >&6
26802else
26803 case $LLVMGCC in
26804 [\\/]* | ?:[\\/]*)
26805 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26806 ;;
26807 *)
26808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26809for as_dir in $PATH
26810do
26811 IFS=$as_save_IFS
26812 test -z "$as_dir" && as_dir=.
26813 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000026814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026815 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26817 break 2
26818 fi
26819done
26820done
26821IFS=$as_save_IFS
26822
26823 ;;
26824esac
26825fi
26826LLVMGCC=$ac_cv_path_LLVMGCC
26827if test -n "$LLVMGCC"; then
26828 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26829echo "${ECHO_T}$LLVMGCC" >&6; }
26830else
26831 { echo "$as_me:$LINENO: result: no" >&5
26832echo "${ECHO_T}no" >&6; }
26833fi
26834
26835
26836 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26837set dummy $LLVMGXX; ac_word=$2
26838{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26840if test "${ac_cv_path_LLVMGXX+set}" = set; then
26841 echo $ECHO_N "(cached) $ECHO_C" >&6
26842else
26843 case $LLVMGXX in
26844 [\\/]* | ?:[\\/]*)
26845 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26846 ;;
26847 *)
26848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26849for as_dir in $PATH
26850do
26851 IFS=$as_save_IFS
26852 test -z "$as_dir" && as_dir=.
26853 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000026854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026855 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26857 break 2
26858 fi
26859done
26860done
26861IFS=$as_save_IFS
26862
26863 ;;
26864esac
26865fi
26866LLVMGXX=$ac_cv_path_LLVMGXX
26867if test -n "$LLVMGXX"; then
26868 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26869echo "${ECHO_T}$LLVMGXX" >&6; }
26870else
26871 { echo "$as_me:$LINENO: result: no" >&5
26872echo "${ECHO_T}no" >&6; }
26873fi
26874
26875
26876else
Devang Pateld84ba7b2007-12-04 22:54:47 +000026877 if test -z "$LLVMGCC"; then
26878 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26879 fi
26880 if test -z "$LLVMGXX"; then
26881 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26882 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026883 LLVMGCC=$LLVMGCC
26884
26885 LLVMGXX=$LLVMGXX
26886
26887fi
26888
26889{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26890echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26891
26892ICC=no
26893IXX=no
26894case $CC in
26895 icc*|icpc*)
26896 ICC=yes
26897 IXX=yes
26898 ;;
26899 *)
26900 ;;
26901esac
26902
26903if test "$GCC" != "yes" && test "$ICC" != "yes"
26904then
26905 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26906echo "$as_me: error: gcc|icc required but not found" >&2;}
26907 { (exit 1); exit 1; }; }
26908fi
26909
26910if test "$GXX" != "yes" && test "$IXX" != "yes"
26911then
26912 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26913echo "$as_me: error: g++|icc required but not found" >&2;}
26914 { (exit 1); exit 1; }; }
26915fi
26916
26917if test "$GCC" = "yes"
26918then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000026919 cat >conftest.$ac_ext <<_ACEOF
26920#if !defined(__GNUC__) || __GNUC__ < 3
26921#error Unsupported GCC version
26922#endif
26923
26924_ACEOF
26925rm -f conftest.$ac_objext
26926if { (ac_try="$ac_compile"
26927case "(($ac_try" in
26928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26929 *) ac_try_echo=$ac_try;;
26930esac
26931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26932 (eval "$ac_compile") 2>conftest.er1
26933 ac_status=$?
26934 grep -v '^ *+' conftest.er1 >conftest.err
26935 rm -f conftest.er1
26936 cat conftest.err >&5
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000026938 (exit $ac_status); } &&
26939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26940 { (case "(($ac_try" in
26941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26942 *) ac_try_echo=$ac_try;;
26943esac
26944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26945 (eval "$ac_try") 2>&5
26946 ac_status=$?
26947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948 (exit $ac_status); }; } &&
26949 { ac_try='test -s conftest.$ac_objext'
26950 { (case "(($ac_try" in
26951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26952 *) ac_try_echo=$ac_try;;
26953esac
26954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26955 (eval "$ac_try") 2>&5
26956 ac_status=$?
26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); }; }; then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000026959 :
26960else
26961 echo "$as_me: failed program was:" >&5
26962sed 's/^/| /' conftest.$ac_ext >&5
26963
26964 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026965echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26966 { (exit 1); exit 1; }; }
Chris Lattnerf0ddba82008-02-05 19:43:53 +000026967fi
26968
26969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026970fi
26971
26972if test -z "$llvm_cv_gnu_make_command"
26973then
26974 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26975echo "$as_me: error: GNU Make required but not found" >&2;}
26976 { (exit 1); exit 1; }; }
26977fi
26978
26979{ echo "$as_me:$LINENO: result: ok" >&5
26980echo "${ECHO_T}ok" >&6; }
26981
26982
26983
26984{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26985echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26986if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26987 echo $ECHO_N "(cached) $ECHO_C" >&6
26988else
26989 ac_check_lib_save_LIBS=$LIBS
26990LIBS="-lelf $LIBS"
26991cat >conftest.$ac_ext <<_ACEOF
26992/* confdefs.h. */
26993_ACEOF
26994cat confdefs.h >>conftest.$ac_ext
26995cat >>conftest.$ac_ext <<_ACEOF
26996/* end confdefs.h. */
26997
26998/* Override any GCC internal prototype to avoid an error.
26999 Use char because int might match the return type of a GCC
27000 builtin and then its argument prototype would still apply. */
27001#ifdef __cplusplus
27002extern "C"
27003#endif
27004char elf_begin ();
27005int
27006main ()
27007{
27008return elf_begin ();
27009 ;
27010 return 0;
27011}
27012_ACEOF
27013rm -f conftest.$ac_objext conftest$ac_exeext
27014if { (ac_try="$ac_link"
27015case "(($ac_try" in
27016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27017 *) ac_try_echo=$ac_try;;
27018esac
27019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27020 (eval "$ac_link") 2>conftest.er1
27021 ac_status=$?
27022 grep -v '^ *+' conftest.er1 >conftest.err
27023 rm -f conftest.er1
27024 cat conftest.err >&5
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027026 (exit $ac_status); } &&
27027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27028 { (case "(($ac_try" in
27029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030 *) ac_try_echo=$ac_try;;
27031esac
27032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27033 (eval "$ac_try") 2>&5
27034 ac_status=$?
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); }; } &&
27037 { ac_try='test -s conftest$ac_exeext'
27038 { (case "(($ac_try" in
27039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27040 *) ac_try_echo=$ac_try;;
27041esac
27042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27043 (eval "$ac_try") 2>&5
27044 ac_status=$?
27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027047 ac_cv_lib_elf_elf_begin=yes
27048else
27049 echo "$as_me: failed program was:" >&5
27050sed 's/^/| /' conftest.$ac_ext >&5
27051
27052 ac_cv_lib_elf_elf_begin=no
27053fi
27054
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027055rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027056 conftest$ac_exeext conftest.$ac_ext
27057LIBS=$ac_check_lib_save_LIBS
27058fi
27059{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27060echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27061if test $ac_cv_lib_elf_elf_begin = yes; then
27062 cat >>confdefs.h <<_ACEOF
27063#define HAVE_LIBELF 1
27064_ACEOF
27065
27066 LIBS="-lelf $LIBS"
27067
27068fi
27069
27070
27071{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27072echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27073if test "${ac_cv_lib_m_sin+set}" = set; then
27074 echo $ECHO_N "(cached) $ECHO_C" >&6
27075else
27076 ac_check_lib_save_LIBS=$LIBS
27077LIBS="-lm $LIBS"
27078cat >conftest.$ac_ext <<_ACEOF
27079/* confdefs.h. */
27080_ACEOF
27081cat confdefs.h >>conftest.$ac_ext
27082cat >>conftest.$ac_ext <<_ACEOF
27083/* end confdefs.h. */
27084
27085/* Override any GCC internal prototype to avoid an error.
27086 Use char because int might match the return type of a GCC
27087 builtin and then its argument prototype would still apply. */
27088#ifdef __cplusplus
27089extern "C"
27090#endif
27091char sin ();
27092int
27093main ()
27094{
27095return sin ();
27096 ;
27097 return 0;
27098}
27099_ACEOF
27100rm -f conftest.$ac_objext conftest$ac_exeext
27101if { (ac_try="$ac_link"
27102case "(($ac_try" in
27103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27104 *) ac_try_echo=$ac_try;;
27105esac
27106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27107 (eval "$ac_link") 2>conftest.er1
27108 ac_status=$?
27109 grep -v '^ *+' conftest.er1 >conftest.err
27110 rm -f conftest.er1
27111 cat conftest.err >&5
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027113 (exit $ac_status); } &&
27114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27115 { (case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27118esac
27119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120 (eval "$ac_try") 2>&5
27121 ac_status=$?
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); }; } &&
27124 { ac_try='test -s conftest$ac_exeext'
27125 { (case "(($ac_try" in
27126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27127 *) ac_try_echo=$ac_try;;
27128esac
27129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27130 (eval "$ac_try") 2>&5
27131 ac_status=$?
27132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027134 ac_cv_lib_m_sin=yes
27135else
27136 echo "$as_me: failed program was:" >&5
27137sed 's/^/| /' conftest.$ac_ext >&5
27138
27139 ac_cv_lib_m_sin=no
27140fi
27141
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027142rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027143 conftest$ac_exeext conftest.$ac_ext
27144LIBS=$ac_check_lib_save_LIBS
27145fi
27146{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27147echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27148if test $ac_cv_lib_m_sin = yes; then
27149 cat >>confdefs.h <<_ACEOF
27150#define HAVE_LIBM 1
27151_ACEOF
27152
27153 LIBS="-lm $LIBS"
27154
27155fi
27156
27157if test "$llvm_cv_os_type" = "MingW" ; then
27158
27159{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27160echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27161if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27162 echo $ECHO_N "(cached) $ECHO_C" >&6
27163else
27164 ac_check_lib_save_LIBS=$LIBS
27165LIBS="-limagehlp $LIBS"
27166cat >conftest.$ac_ext <<_ACEOF
27167/* confdefs.h. */
27168_ACEOF
27169cat confdefs.h >>conftest.$ac_ext
27170cat >>conftest.$ac_ext <<_ACEOF
27171/* end confdefs.h. */
27172
27173
27174int
27175main ()
27176{
27177return main ();
27178 ;
27179 return 0;
27180}
27181_ACEOF
27182rm -f conftest.$ac_objext conftest$ac_exeext
27183if { (ac_try="$ac_link"
27184case "(($ac_try" in
27185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27186 *) ac_try_echo=$ac_try;;
27187esac
27188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27189 (eval "$ac_link") 2>conftest.er1
27190 ac_status=$?
27191 grep -v '^ *+' conftest.er1 >conftest.err
27192 rm -f conftest.er1
27193 cat conftest.err >&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027195 (exit $ac_status); } &&
27196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27197 { (case "(($ac_try" in
27198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27199 *) ac_try_echo=$ac_try;;
27200esac
27201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27202 (eval "$ac_try") 2>&5
27203 ac_status=$?
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); }; } &&
27206 { ac_try='test -s conftest$ac_exeext'
27207 { (case "(($ac_try" in
27208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27209 *) ac_try_echo=$ac_try;;
27210esac
27211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27212 (eval "$ac_try") 2>&5
27213 ac_status=$?
27214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027216 ac_cv_lib_imagehlp_main=yes
27217else
27218 echo "$as_me: failed program was:" >&5
27219sed 's/^/| /' conftest.$ac_ext >&5
27220
27221 ac_cv_lib_imagehlp_main=no
27222fi
27223
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027224rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027225 conftest$ac_exeext conftest.$ac_ext
27226LIBS=$ac_check_lib_save_LIBS
27227fi
27228{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27229echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27230if test $ac_cv_lib_imagehlp_main = yes; then
27231 cat >>confdefs.h <<_ACEOF
27232#define HAVE_LIBIMAGEHLP 1
27233_ACEOF
27234
27235 LIBS="-limagehlp $LIBS"
27236
27237fi
27238
27239
27240{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27241echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27242if test "${ac_cv_lib_psapi_main+set}" = set; then
27243 echo $ECHO_N "(cached) $ECHO_C" >&6
27244else
27245 ac_check_lib_save_LIBS=$LIBS
27246LIBS="-lpsapi $LIBS"
27247cat >conftest.$ac_ext <<_ACEOF
27248/* confdefs.h. */
27249_ACEOF
27250cat confdefs.h >>conftest.$ac_ext
27251cat >>conftest.$ac_ext <<_ACEOF
27252/* end confdefs.h. */
27253
27254
27255int
27256main ()
27257{
27258return main ();
27259 ;
27260 return 0;
27261}
27262_ACEOF
27263rm -f conftest.$ac_objext conftest$ac_exeext
27264if { (ac_try="$ac_link"
27265case "(($ac_try" in
27266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27267 *) ac_try_echo=$ac_try;;
27268esac
27269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27270 (eval "$ac_link") 2>conftest.er1
27271 ac_status=$?
27272 grep -v '^ *+' conftest.er1 >conftest.err
27273 rm -f conftest.er1
27274 cat conftest.err >&5
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027276 (exit $ac_status); } &&
27277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27278 { (case "(($ac_try" in
27279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27280 *) ac_try_echo=$ac_try;;
27281esac
27282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27283 (eval "$ac_try") 2>&5
27284 ac_status=$?
27285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); }; } &&
27287 { ac_try='test -s conftest$ac_exeext'
27288 { (case "(($ac_try" in
27289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27290 *) ac_try_echo=$ac_try;;
27291esac
27292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27293 (eval "$ac_try") 2>&5
27294 ac_status=$?
27295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027297 ac_cv_lib_psapi_main=yes
27298else
27299 echo "$as_me: failed program was:" >&5
27300sed 's/^/| /' conftest.$ac_ext >&5
27301
27302 ac_cv_lib_psapi_main=no
27303fi
27304
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027305rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027306 conftest$ac_exeext conftest.$ac_ext
27307LIBS=$ac_check_lib_save_LIBS
27308fi
27309{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27310echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27311if test $ac_cv_lib_psapi_main = yes; then
27312 cat >>confdefs.h <<_ACEOF
27313#define HAVE_LIBPSAPI 1
27314_ACEOF
27315
27316 LIBS="-lpsapi $LIBS"
27317
27318fi
27319
27320fi
27321
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027322{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27323echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27324if test "${ac_cv_search_dlopen+set}" = set; then
27325 echo $ECHO_N "(cached) $ECHO_C" >&6
27326else
27327 ac_func_search_save_LIBS=$LIBS
27328cat >conftest.$ac_ext <<_ACEOF
27329/* confdefs.h. */
27330_ACEOF
27331cat confdefs.h >>conftest.$ac_ext
27332cat >>conftest.$ac_ext <<_ACEOF
27333/* end confdefs.h. */
27334
27335/* Override any GCC internal prototype to avoid an error.
27336 Use char because int might match the return type of a GCC
27337 builtin and then its argument prototype would still apply. */
27338#ifdef __cplusplus
27339extern "C"
27340#endif
27341char dlopen ();
27342int
27343main ()
27344{
27345return dlopen ();
27346 ;
27347 return 0;
27348}
27349_ACEOF
27350for ac_lib in '' dl; do
27351 if test -z "$ac_lib"; then
27352 ac_res="none required"
27353 else
27354 ac_res=-l$ac_lib
27355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27356 fi
27357 rm -f conftest.$ac_objext conftest$ac_exeext
27358if { (ac_try="$ac_link"
27359case "(($ac_try" in
27360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27361 *) ac_try_echo=$ac_try;;
27362esac
27363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27364 (eval "$ac_link") 2>conftest.er1
27365 ac_status=$?
27366 grep -v '^ *+' conftest.er1 >conftest.err
27367 rm -f conftest.er1
27368 cat conftest.err >&5
27369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027370 (exit $ac_status); } &&
27371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27372 { (case "(($ac_try" in
27373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27374 *) ac_try_echo=$ac_try;;
27375esac
27376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27377 (eval "$ac_try") 2>&5
27378 ac_status=$?
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); }; } &&
27381 { ac_try='test -s conftest$ac_exeext'
27382 { (case "(($ac_try" in
27383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27384 *) ac_try_echo=$ac_try;;
27385esac
27386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27387 (eval "$ac_try") 2>&5
27388 ac_status=$?
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027391 ac_cv_search_dlopen=$ac_res
27392else
27393 echo "$as_me: failed program was:" >&5
27394sed 's/^/| /' conftest.$ac_ext >&5
27395
27396
27397fi
27398
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027399rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027400 conftest$ac_exeext
27401 if test "${ac_cv_search_dlopen+set}" = set; then
27402 break
27403fi
27404done
27405if test "${ac_cv_search_dlopen+set}" = set; then
27406 :
27407else
27408 ac_cv_search_dlopen=no
27409fi
27410rm conftest.$ac_ext
27411LIBS=$ac_func_search_save_LIBS
27412fi
27413{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27414echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27415ac_res=$ac_cv_search_dlopen
27416if test "$ac_res" != no; then
27417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27418
27419cat >>confdefs.h <<\_ACEOF
27420#define HAVE_DLOPEN 1
27421_ACEOF
27422
27423else
27424 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27425echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27426fi
27427
27428
Nick Lewycky6c58a402009-04-13 04:26:27 +000027429{ echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27430echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27431if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky0235b622009-02-04 06:27:44 +000027432 echo $ECHO_N "(cached) $ECHO_C" >&6
27433else
Nick Lewycky6c58a402009-04-13 04:26:27 +000027434 ac_func_search_save_LIBS=$LIBS
Nick Lewycky0235b622009-02-04 06:27:44 +000027435cat >conftest.$ac_ext <<_ACEOF
27436/* confdefs.h. */
27437_ACEOF
27438cat confdefs.h >>conftest.$ac_ext
27439cat >>conftest.$ac_ext <<_ACEOF
27440/* end confdefs.h. */
27441
27442/* Override any GCC internal prototype to avoid an error.
27443 Use char because int might match the return type of a GCC
27444 builtin and then its argument prototype would still apply. */
27445#ifdef __cplusplus
27446extern "C"
27447#endif
27448char ffi_call ();
27449int
27450main ()
27451{
27452return ffi_call ();
27453 ;
27454 return 0;
27455}
27456_ACEOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000027457for ac_lib in '' ffi; do
27458 if test -z "$ac_lib"; then
27459 ac_res="none required"
27460 else
27461 ac_res=-l$ac_lib
27462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27463 fi
27464 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewycky0235b622009-02-04 06:27:44 +000027465if { (ac_try="$ac_link"
27466case "(($ac_try" in
27467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27468 *) ac_try_echo=$ac_try;;
27469esac
27470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27471 (eval "$ac_link") 2>conftest.er1
27472 ac_status=$?
27473 grep -v '^ *+' conftest.er1 >conftest.err
27474 rm -f conftest.er1
27475 cat conftest.err >&5
27476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477 (exit $ac_status); } &&
27478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27479 { (case "(($ac_try" in
27480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27481 *) ac_try_echo=$ac_try;;
27482esac
27483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27484 (eval "$ac_try") 2>&5
27485 ac_status=$?
27486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487 (exit $ac_status); }; } &&
27488 { ac_try='test -s conftest$ac_exeext'
27489 { (case "(($ac_try" in
27490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491 *) ac_try_echo=$ac_try;;
27492esac
27493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494 (eval "$ac_try") 2>&5
27495 ac_status=$?
27496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); }; }; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000027498 ac_cv_search_ffi_call=$ac_res
Nick Lewycky0235b622009-02-04 06:27:44 +000027499else
27500 echo "$as_me: failed program was:" >&5
27501sed 's/^/| /' conftest.$ac_ext >&5
27502
Nick Lewycky6c58a402009-04-13 04:26:27 +000027503
Nick Lewycky0235b622009-02-04 06:27:44 +000027504fi
27505
27506rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky6c58a402009-04-13 04:26:27 +000027507 conftest$ac_exeext
27508 if test "${ac_cv_search_ffi_call+set}" = set; then
27509 break
Nick Lewycky0235b622009-02-04 06:27:44 +000027510fi
Nick Lewycky6c58a402009-04-13 04:26:27 +000027511done
27512if test "${ac_cv_search_ffi_call+set}" = set; then
27513 :
27514else
27515 ac_cv_search_ffi_call=no
27516fi
27517rm conftest.$ac_ext
27518LIBS=$ac_func_search_save_LIBS
27519fi
27520{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27521echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27522ac_res=$ac_cv_search_ffi_call
27523if test "$ac_res" != no; then
27524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27525
27526cat >>confdefs.h <<\_ACEOF
27527#define HAVE_FFI_CALL 1
27528_ACEOF
27529
Nick Lewycky0235b622009-02-04 06:27:44 +000027530else
27531 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27532echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27533fi
27534
27535
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027536{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27537echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27538if test "${ac_cv_search_mallinfo+set}" = set; then
27539 echo $ECHO_N "(cached) $ECHO_C" >&6
27540else
27541 ac_func_search_save_LIBS=$LIBS
27542cat >conftest.$ac_ext <<_ACEOF
27543/* confdefs.h. */
27544_ACEOF
27545cat confdefs.h >>conftest.$ac_ext
27546cat >>conftest.$ac_ext <<_ACEOF
27547/* end confdefs.h. */
27548
27549/* Override any GCC internal prototype to avoid an error.
27550 Use char because int might match the return type of a GCC
27551 builtin and then its argument prototype would still apply. */
27552#ifdef __cplusplus
27553extern "C"
27554#endif
27555char mallinfo ();
27556int
27557main ()
27558{
27559return mallinfo ();
27560 ;
27561 return 0;
27562}
27563_ACEOF
27564for ac_lib in '' malloc; do
27565 if test -z "$ac_lib"; then
27566 ac_res="none required"
27567 else
27568 ac_res=-l$ac_lib
27569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27570 fi
27571 rm -f conftest.$ac_objext conftest$ac_exeext
27572if { (ac_try="$ac_link"
27573case "(($ac_try" in
27574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27575 *) ac_try_echo=$ac_try;;
27576esac
27577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27578 (eval "$ac_link") 2>conftest.er1
27579 ac_status=$?
27580 grep -v '^ *+' conftest.er1 >conftest.err
27581 rm -f conftest.er1
27582 cat conftest.err >&5
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027584 (exit $ac_status); } &&
27585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27586 { (case "(($ac_try" in
27587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588 *) ac_try_echo=$ac_try;;
27589esac
27590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27591 (eval "$ac_try") 2>&5
27592 ac_status=$?
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); }; } &&
27595 { ac_try='test -s conftest$ac_exeext'
27596 { (case "(($ac_try" in
27597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27598 *) ac_try_echo=$ac_try;;
27599esac
27600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601 (eval "$ac_try") 2>&5
27602 ac_status=$?
27603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027605 ac_cv_search_mallinfo=$ac_res
27606else
27607 echo "$as_me: failed program was:" >&5
27608sed 's/^/| /' conftest.$ac_ext >&5
27609
27610
27611fi
27612
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027613rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027614 conftest$ac_exeext
27615 if test "${ac_cv_search_mallinfo+set}" = set; then
27616 break
27617fi
27618done
27619if test "${ac_cv_search_mallinfo+set}" = set; then
27620 :
27621else
27622 ac_cv_search_mallinfo=no
27623fi
27624rm conftest.$ac_ext
27625LIBS=$ac_func_search_save_LIBS
27626fi
27627{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27628echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27629ac_res=$ac_cv_search_mallinfo
27630if test "$ac_res" != no; then
27631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27632
27633cat >>confdefs.h <<\_ACEOF
27634#define HAVE_MALLINFO 1
27635_ACEOF
27636
27637fi
27638
27639
27640if test "$ENABLE_THREADS" -eq 1 ; then
27641
27642{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27643echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27644if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27645 echo $ECHO_N "(cached) $ECHO_C" >&6
27646else
27647 ac_check_lib_save_LIBS=$LIBS
27648LIBS="-lpthread $LIBS"
27649cat >conftest.$ac_ext <<_ACEOF
27650/* confdefs.h. */
27651_ACEOF
27652cat confdefs.h >>conftest.$ac_ext
27653cat >>conftest.$ac_ext <<_ACEOF
27654/* end confdefs.h. */
27655
27656/* Override any GCC internal prototype to avoid an error.
27657 Use char because int might match the return type of a GCC
27658 builtin and then its argument prototype would still apply. */
27659#ifdef __cplusplus
27660extern "C"
27661#endif
27662char pthread_mutex_init ();
27663int
27664main ()
27665{
27666return pthread_mutex_init ();
27667 ;
27668 return 0;
27669}
27670_ACEOF
27671rm -f conftest.$ac_objext conftest$ac_exeext
27672if { (ac_try="$ac_link"
27673case "(($ac_try" in
27674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27675 *) ac_try_echo=$ac_try;;
27676esac
27677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27678 (eval "$ac_link") 2>conftest.er1
27679 ac_status=$?
27680 grep -v '^ *+' conftest.er1 >conftest.err
27681 rm -f conftest.er1
27682 cat conftest.err >&5
27683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027684 (exit $ac_status); } &&
27685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27686 { (case "(($ac_try" in
27687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27688 *) ac_try_echo=$ac_try;;
27689esac
27690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27691 (eval "$ac_try") 2>&5
27692 ac_status=$?
27693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694 (exit $ac_status); }; } &&
27695 { ac_try='test -s conftest$ac_exeext'
27696 { (case "(($ac_try" in
27697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27698 *) ac_try_echo=$ac_try;;
27699esac
27700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27701 (eval "$ac_try") 2>&5
27702 ac_status=$?
27703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027705 ac_cv_lib_pthread_pthread_mutex_init=yes
27706else
27707 echo "$as_me: failed program was:" >&5
27708sed 's/^/| /' conftest.$ac_ext >&5
27709
27710 ac_cv_lib_pthread_pthread_mutex_init=no
27711fi
27712
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027713rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027714 conftest$ac_exeext conftest.$ac_ext
27715LIBS=$ac_check_lib_save_LIBS
27716fi
27717{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27718echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27719if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27720 cat >>confdefs.h <<_ACEOF
27721#define HAVE_LIBPTHREAD 1
27722_ACEOF
27723
27724 LIBS="-lpthread $LIBS"
27725
27726fi
27727
27728 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27729echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27730if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27731 echo $ECHO_N "(cached) $ECHO_C" >&6
27732else
27733 ac_func_search_save_LIBS=$LIBS
27734cat >conftest.$ac_ext <<_ACEOF
27735/* confdefs.h. */
27736_ACEOF
27737cat confdefs.h >>conftest.$ac_ext
27738cat >>conftest.$ac_ext <<_ACEOF
27739/* end confdefs.h. */
27740
27741/* Override any GCC internal prototype to avoid an error.
27742 Use char because int might match the return type of a GCC
27743 builtin and then its argument prototype would still apply. */
27744#ifdef __cplusplus
27745extern "C"
27746#endif
27747char pthread_mutex_lock ();
27748int
27749main ()
27750{
27751return pthread_mutex_lock ();
27752 ;
27753 return 0;
27754}
27755_ACEOF
27756for ac_lib in '' pthread; do
27757 if test -z "$ac_lib"; then
27758 ac_res="none required"
27759 else
27760 ac_res=-l$ac_lib
27761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27762 fi
27763 rm -f conftest.$ac_objext conftest$ac_exeext
27764if { (ac_try="$ac_link"
27765case "(($ac_try" in
27766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767 *) ac_try_echo=$ac_try;;
27768esac
27769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770 (eval "$ac_link") 2>conftest.er1
27771 ac_status=$?
27772 grep -v '^ *+' conftest.er1 >conftest.err
27773 rm -f conftest.er1
27774 cat conftest.err >&5
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027776 (exit $ac_status); } &&
27777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27778 { (case "(($ac_try" in
27779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27780 *) ac_try_echo=$ac_try;;
27781esac
27782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27783 (eval "$ac_try") 2>&5
27784 ac_status=$?
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); }; } &&
27787 { ac_try='test -s conftest$ac_exeext'
27788 { (case "(($ac_try" in
27789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27790 *) ac_try_echo=$ac_try;;
27791esac
27792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27793 (eval "$ac_try") 2>&5
27794 ac_status=$?
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027797 ac_cv_search_pthread_mutex_lock=$ac_res
27798else
27799 echo "$as_me: failed program was:" >&5
27800sed 's/^/| /' conftest.$ac_ext >&5
27801
27802
27803fi
27804
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027805rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027806 conftest$ac_exeext
27807 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27808 break
27809fi
27810done
27811if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27812 :
27813else
27814 ac_cv_search_pthread_mutex_lock=no
27815fi
27816rm conftest.$ac_ext
27817LIBS=$ac_func_search_save_LIBS
27818fi
27819{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27820echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27821ac_res=$ac_cv_search_pthread_mutex_lock
27822if test "$ac_res" != no; then
27823 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27824
27825cat >>confdefs.h <<\_ACEOF
27826#define HAVE_PTHREAD_MUTEX_LOCK 1
27827_ACEOF
27828
27829fi
27830
27831fi
27832
27833
27834# Check whether --with-udis86 was given.
27835if test "${with_udis86+set}" = set; then
27836 withval=$with_udis86;
27837 USE_UDIS86=1
27838
27839 case "$withval" in
27840 /usr/lib|yes) ;;
27841 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27842 esac
27843
27844{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27845echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27846if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27847 echo $ECHO_N "(cached) $ECHO_C" >&6
27848else
27849 ac_check_lib_save_LIBS=$LIBS
27850LIBS="-ludis86 $LIBS"
27851cat >conftest.$ac_ext <<_ACEOF
27852/* confdefs.h. */
27853_ACEOF
27854cat confdefs.h >>conftest.$ac_ext
27855cat >>conftest.$ac_ext <<_ACEOF
27856/* end confdefs.h. */
27857
27858/* Override any GCC internal prototype to avoid an error.
27859 Use char because int might match the return type of a GCC
27860 builtin and then its argument prototype would still apply. */
27861#ifdef __cplusplus
27862extern "C"
27863#endif
27864char ud_init ();
27865int
27866main ()
27867{
27868return ud_init ();
27869 ;
27870 return 0;
27871}
27872_ACEOF
27873rm -f conftest.$ac_objext conftest$ac_exeext
27874if { (ac_try="$ac_link"
27875case "(($ac_try" in
27876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27877 *) ac_try_echo=$ac_try;;
27878esac
27879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27880 (eval "$ac_link") 2>conftest.er1
27881 ac_status=$?
27882 grep -v '^ *+' conftest.er1 >conftest.err
27883 rm -f conftest.er1
27884 cat conftest.err >&5
27885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027886 (exit $ac_status); } &&
27887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27888 { (case "(($ac_try" in
27889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27890 *) ac_try_echo=$ac_try;;
27891esac
27892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27893 (eval "$ac_try") 2>&5
27894 ac_status=$?
27895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); }; } &&
27897 { ac_try='test -s conftest$ac_exeext'
27898 { (case "(($ac_try" in
27899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27900 *) ac_try_echo=$ac_try;;
27901esac
27902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27903 (eval "$ac_try") 2>&5
27904 ac_status=$?
27905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027907 ac_cv_lib_udis86_ud_init=yes
27908else
27909 echo "$as_me: failed program was:" >&5
27910sed 's/^/| /' conftest.$ac_ext >&5
27911
27912 ac_cv_lib_udis86_ud_init=no
27913fi
27914
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027915rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027916 conftest$ac_exeext conftest.$ac_ext
27917LIBS=$ac_check_lib_save_LIBS
27918fi
27919{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27920echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27921if test $ac_cv_lib_udis86_ud_init = yes; then
27922 cat >>confdefs.h <<_ACEOF
27923#define HAVE_LIBUDIS86 1
27924_ACEOF
27925
27926 LIBS="-ludis86 $LIBS"
27927
27928else
27929
27930 echo "Error! You need to have libudis86 around."
27931 exit -1
27932
27933fi
27934
27935
27936else
27937 USE_UDIS86=0
27938
27939fi
27940
27941
27942cat >>confdefs.h <<_ACEOF
27943#define USE_UDIS86 $USE_UDIS86
27944_ACEOF
27945
27946
27947
27948
27949
27950
27951
27952
27953ac_header_dirent=no
27954for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27955 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27956{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27957echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27959 echo $ECHO_N "(cached) $ECHO_C" >&6
27960else
27961 cat >conftest.$ac_ext <<_ACEOF
27962/* confdefs.h. */
27963_ACEOF
27964cat confdefs.h >>conftest.$ac_ext
27965cat >>conftest.$ac_ext <<_ACEOF
27966/* end confdefs.h. */
27967#include <sys/types.h>
27968#include <$ac_hdr>
27969
27970int
27971main ()
27972{
27973if ((DIR *) 0)
27974return 0;
27975 ;
27976 return 0;
27977}
27978_ACEOF
27979rm -f conftest.$ac_objext
27980if { (ac_try="$ac_compile"
27981case "(($ac_try" in
27982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983 *) ac_try_echo=$ac_try;;
27984esac
27985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986 (eval "$ac_compile") 2>conftest.er1
27987 ac_status=$?
27988 grep -v '^ *+' conftest.er1 >conftest.err
27989 rm -f conftest.er1
27990 cat conftest.err >&5
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027992 (exit $ac_status); } &&
27993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27994 { (case "(($ac_try" in
27995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27996 *) ac_try_echo=$ac_try;;
27997esac
27998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27999 (eval "$ac_try") 2>&5
28000 ac_status=$?
28001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002 (exit $ac_status); }; } &&
28003 { ac_try='test -s conftest.$ac_objext'
28004 { (case "(($ac_try" in
28005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28006 *) ac_try_echo=$ac_try;;
28007esac
28008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28009 (eval "$ac_try") 2>&5
28010 ac_status=$?
28011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028013 eval "$as_ac_Header=yes"
28014else
28015 echo "$as_me: failed program was:" >&5
28016sed 's/^/| /' conftest.$ac_ext >&5
28017
28018 eval "$as_ac_Header=no"
28019fi
28020
28021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28022fi
28023ac_res=`eval echo '${'$as_ac_Header'}'`
28024 { echo "$as_me:$LINENO: result: $ac_res" >&5
28025echo "${ECHO_T}$ac_res" >&6; }
28026if test `eval echo '${'$as_ac_Header'}'` = yes; then
28027 cat >>confdefs.h <<_ACEOF
28028#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28029_ACEOF
28030
28031ac_header_dirent=$ac_hdr; break
28032fi
28033
28034done
28035# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28036if test $ac_header_dirent = dirent.h; then
28037 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28038echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28039if test "${ac_cv_search_opendir+set}" = set; then
28040 echo $ECHO_N "(cached) $ECHO_C" >&6
28041else
28042 ac_func_search_save_LIBS=$LIBS
28043cat >conftest.$ac_ext <<_ACEOF
28044/* confdefs.h. */
28045_ACEOF
28046cat confdefs.h >>conftest.$ac_ext
28047cat >>conftest.$ac_ext <<_ACEOF
28048/* end confdefs.h. */
28049
28050/* Override any GCC internal prototype to avoid an error.
28051 Use char because int might match the return type of a GCC
28052 builtin and then its argument prototype would still apply. */
28053#ifdef __cplusplus
28054extern "C"
28055#endif
28056char opendir ();
28057int
28058main ()
28059{
28060return opendir ();
28061 ;
28062 return 0;
28063}
28064_ACEOF
28065for ac_lib in '' dir; do
28066 if test -z "$ac_lib"; then
28067 ac_res="none required"
28068 else
28069 ac_res=-l$ac_lib
28070 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28071 fi
28072 rm -f conftest.$ac_objext conftest$ac_exeext
28073if { (ac_try="$ac_link"
28074case "(($ac_try" in
28075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28076 *) ac_try_echo=$ac_try;;
28077esac
28078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28079 (eval "$ac_link") 2>conftest.er1
28080 ac_status=$?
28081 grep -v '^ *+' conftest.er1 >conftest.err
28082 rm -f conftest.er1
28083 cat conftest.err >&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028085 (exit $ac_status); } &&
28086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28087 { (case "(($ac_try" in
28088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28089 *) ac_try_echo=$ac_try;;
28090esac
28091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28092 (eval "$ac_try") 2>&5
28093 ac_status=$?
28094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); }; } &&
28096 { ac_try='test -s conftest$ac_exeext'
28097 { (case "(($ac_try" in
28098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099 *) ac_try_echo=$ac_try;;
28100esac
28101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28102 (eval "$ac_try") 2>&5
28103 ac_status=$?
28104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028106 ac_cv_search_opendir=$ac_res
28107else
28108 echo "$as_me: failed program was:" >&5
28109sed 's/^/| /' conftest.$ac_ext >&5
28110
28111
28112fi
28113
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028114rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028115 conftest$ac_exeext
28116 if test "${ac_cv_search_opendir+set}" = set; then
28117 break
28118fi
28119done
28120if test "${ac_cv_search_opendir+set}" = set; then
28121 :
28122else
28123 ac_cv_search_opendir=no
28124fi
28125rm conftest.$ac_ext
28126LIBS=$ac_func_search_save_LIBS
28127fi
28128{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28129echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28130ac_res=$ac_cv_search_opendir
28131if test "$ac_res" != no; then
28132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28133
28134fi
28135
28136else
28137 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28138echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28139if test "${ac_cv_search_opendir+set}" = set; then
28140 echo $ECHO_N "(cached) $ECHO_C" >&6
28141else
28142 ac_func_search_save_LIBS=$LIBS
28143cat >conftest.$ac_ext <<_ACEOF
28144/* confdefs.h. */
28145_ACEOF
28146cat confdefs.h >>conftest.$ac_ext
28147cat >>conftest.$ac_ext <<_ACEOF
28148/* end confdefs.h. */
28149
28150/* Override any GCC internal prototype to avoid an error.
28151 Use char because int might match the return type of a GCC
28152 builtin and then its argument prototype would still apply. */
28153#ifdef __cplusplus
28154extern "C"
28155#endif
28156char opendir ();
28157int
28158main ()
28159{
28160return opendir ();
28161 ;
28162 return 0;
28163}
28164_ACEOF
28165for ac_lib in '' x; do
28166 if test -z "$ac_lib"; then
28167 ac_res="none required"
28168 else
28169 ac_res=-l$ac_lib
28170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28171 fi
28172 rm -f conftest.$ac_objext conftest$ac_exeext
28173if { (ac_try="$ac_link"
28174case "(($ac_try" in
28175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28176 *) ac_try_echo=$ac_try;;
28177esac
28178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28179 (eval "$ac_link") 2>conftest.er1
28180 ac_status=$?
28181 grep -v '^ *+' conftest.er1 >conftest.err
28182 rm -f conftest.er1
28183 cat conftest.err >&5
28184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028185 (exit $ac_status); } &&
28186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28187 { (case "(($ac_try" in
28188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28189 *) ac_try_echo=$ac_try;;
28190esac
28191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28192 (eval "$ac_try") 2>&5
28193 ac_status=$?
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); }; } &&
28196 { ac_try='test -s conftest$ac_exeext'
28197 { (case "(($ac_try" in
28198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199 *) ac_try_echo=$ac_try;;
28200esac
28201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202 (eval "$ac_try") 2>&5
28203 ac_status=$?
28204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028206 ac_cv_search_opendir=$ac_res
28207else
28208 echo "$as_me: failed program was:" >&5
28209sed 's/^/| /' conftest.$ac_ext >&5
28210
28211
28212fi
28213
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028214rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028215 conftest$ac_exeext
28216 if test "${ac_cv_search_opendir+set}" = set; then
28217 break
28218fi
28219done
28220if test "${ac_cv_search_opendir+set}" = set; then
28221 :
28222else
28223 ac_cv_search_opendir=no
28224fi
28225rm conftest.$ac_ext
28226LIBS=$ac_func_search_save_LIBS
28227fi
28228{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28229echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28230ac_res=$ac_cv_search_opendir
28231if test "$ac_res" != no; then
28232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28233
28234fi
28235
28236fi
28237
28238{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28239echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28240if test "${ac_cv_header_mmap_anon+set}" = set; then
28241 echo $ECHO_N "(cached) $ECHO_C" >&6
28242else
28243 ac_ext=c
28244ac_cpp='$CPP $CPPFLAGS'
28245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28247ac_compiler_gnu=$ac_cv_c_compiler_gnu
28248
28249 cat >conftest.$ac_ext <<_ACEOF
28250/* confdefs.h. */
28251_ACEOF
28252cat confdefs.h >>conftest.$ac_ext
28253cat >>conftest.$ac_ext <<_ACEOF
28254/* end confdefs.h. */
28255#include <sys/mman.h>
28256#include <unistd.h>
28257#include <fcntl.h>
28258int
28259main ()
28260{
28261mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28262 ;
28263 return 0;
28264}
28265_ACEOF
28266rm -f conftest.$ac_objext
28267if { (ac_try="$ac_compile"
28268case "(($ac_try" in
28269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28270 *) ac_try_echo=$ac_try;;
28271esac
28272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28273 (eval "$ac_compile") 2>conftest.er1
28274 ac_status=$?
28275 grep -v '^ *+' conftest.er1 >conftest.err
28276 rm -f conftest.er1
28277 cat conftest.err >&5
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028279 (exit $ac_status); } &&
28280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28281 { (case "(($ac_try" in
28282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28283 *) ac_try_echo=$ac_try;;
28284esac
28285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28286 (eval "$ac_try") 2>&5
28287 ac_status=$?
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); }; } &&
28290 { ac_try='test -s conftest.$ac_objext'
28291 { (case "(($ac_try" in
28292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293 *) ac_try_echo=$ac_try;;
28294esac
28295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296 (eval "$ac_try") 2>&5
28297 ac_status=$?
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028300 ac_cv_header_mmap_anon=yes
28301else
28302 echo "$as_me: failed program was:" >&5
28303sed 's/^/| /' conftest.$ac_ext >&5
28304
28305 ac_cv_header_mmap_anon=no
28306fi
28307
28308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28309 ac_ext=c
28310ac_cpp='$CPP $CPPFLAGS'
28311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28313ac_compiler_gnu=$ac_cv_c_compiler_gnu
28314
28315
28316fi
28317{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28318echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28319if test "$ac_cv_header_mmap_anon" = yes; then
28320
28321cat >>confdefs.h <<\_ACEOF
28322#define HAVE_MMAP_ANONYMOUS 1
28323_ACEOF
28324
28325fi
28326
28327{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28328echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28329if test "${ac_cv_header_stat_broken+set}" = set; then
28330 echo $ECHO_N "(cached) $ECHO_C" >&6
28331else
28332 cat >conftest.$ac_ext <<_ACEOF
28333/* confdefs.h. */
28334_ACEOF
28335cat confdefs.h >>conftest.$ac_ext
28336cat >>conftest.$ac_ext <<_ACEOF
28337/* end confdefs.h. */
28338#include <sys/types.h>
28339#include <sys/stat.h>
28340
28341#if defined S_ISBLK && defined S_IFDIR
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028342# if S_ISBLK (S_IFDIR)
28343You lose.
28344# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028345#endif
28346
28347#if defined S_ISBLK && defined S_IFCHR
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028348# if S_ISBLK (S_IFCHR)
28349You lose.
28350# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028351#endif
28352
28353#if defined S_ISLNK && defined S_IFREG
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028354# if S_ISLNK (S_IFREG)
28355You lose.
28356# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028357#endif
28358
28359#if defined S_ISSOCK && defined S_IFREG
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028360# if S_ISSOCK (S_IFREG)
28361You lose.
28362# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028363#endif
28364
28365_ACEOF
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28367 $EGREP "You lose" >/dev/null 2>&1; then
28368 ac_cv_header_stat_broken=yes
Nick Lewycky5d713ec2009-01-20 00:52:24 +000028369else
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028370 ac_cv_header_stat_broken=no
Nick Lewycky5d713ec2009-01-20 00:52:24 +000028371fi
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028372rm -f conftest*
Nick Lewycky5d713ec2009-01-20 00:52:24 +000028373
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028374fi
28375{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28376echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28377if test $ac_cv_header_stat_broken = yes; then
28378
28379cat >>confdefs.h <<\_ACEOF
28380#define STAT_MACROS_BROKEN 1
28381_ACEOF
28382
28383fi
28384
28385{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28386echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28387if test "${ac_cv_header_stdc+set}" = set; then
28388 echo $ECHO_N "(cached) $ECHO_C" >&6
28389else
28390 cat >conftest.$ac_ext <<_ACEOF
28391/* confdefs.h. */
28392_ACEOF
28393cat confdefs.h >>conftest.$ac_ext
28394cat >>conftest.$ac_ext <<_ACEOF
28395/* end confdefs.h. */
28396#include <stdlib.h>
28397#include <stdarg.h>
28398#include <string.h>
28399#include <float.h>
28400
28401int
28402main ()
28403{
28404
28405 ;
28406 return 0;
28407}
28408_ACEOF
28409rm -f conftest.$ac_objext
28410if { (ac_try="$ac_compile"
28411case "(($ac_try" in
28412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413 *) ac_try_echo=$ac_try;;
28414esac
28415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28416 (eval "$ac_compile") 2>conftest.er1
28417 ac_status=$?
28418 grep -v '^ *+' conftest.er1 >conftest.err
28419 rm -f conftest.er1
28420 cat conftest.err >&5
28421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028422 (exit $ac_status); } &&
28423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28424 { (case "(($ac_try" in
28425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28426 *) ac_try_echo=$ac_try;;
28427esac
28428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28429 (eval "$ac_try") 2>&5
28430 ac_status=$?
28431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432 (exit $ac_status); }; } &&
28433 { ac_try='test -s conftest.$ac_objext'
28434 { (case "(($ac_try" in
28435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28436 *) ac_try_echo=$ac_try;;
28437esac
28438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28439 (eval "$ac_try") 2>&5
28440 ac_status=$?
28441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028443 ac_cv_header_stdc=yes
28444else
28445 echo "$as_me: failed program was:" >&5
28446sed 's/^/| /' conftest.$ac_ext >&5
28447
28448 ac_cv_header_stdc=no
28449fi
28450
28451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28452
28453if test $ac_cv_header_stdc = yes; then
28454 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28455 cat >conftest.$ac_ext <<_ACEOF
28456/* confdefs.h. */
28457_ACEOF
28458cat confdefs.h >>conftest.$ac_ext
28459cat >>conftest.$ac_ext <<_ACEOF
28460/* end confdefs.h. */
28461#include <string.h>
28462
28463_ACEOF
28464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28465 $EGREP "memchr" >/dev/null 2>&1; then
28466 :
28467else
28468 ac_cv_header_stdc=no
28469fi
28470rm -f conftest*
28471
28472fi
28473
28474if test $ac_cv_header_stdc = yes; then
28475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28476 cat >conftest.$ac_ext <<_ACEOF
28477/* confdefs.h. */
28478_ACEOF
28479cat confdefs.h >>conftest.$ac_ext
28480cat >>conftest.$ac_ext <<_ACEOF
28481/* end confdefs.h. */
28482#include <stdlib.h>
28483
28484_ACEOF
28485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28486 $EGREP "free" >/dev/null 2>&1; then
28487 :
28488else
28489 ac_cv_header_stdc=no
28490fi
28491rm -f conftest*
28492
28493fi
28494
28495if test $ac_cv_header_stdc = yes; then
28496 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28497 if test "$cross_compiling" = yes; then
28498 :
28499else
28500 cat >conftest.$ac_ext <<_ACEOF
28501/* confdefs.h. */
28502_ACEOF
28503cat confdefs.h >>conftest.$ac_ext
28504cat >>conftest.$ac_ext <<_ACEOF
28505/* end confdefs.h. */
28506#include <ctype.h>
28507#include <stdlib.h>
28508#if ((' ' & 0x0FF) == 0x020)
28509# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28510# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28511#else
28512# define ISLOWER(c) \
28513 (('a' <= (c) && (c) <= 'i') \
28514 || ('j' <= (c) && (c) <= 'r') \
28515 || ('s' <= (c) && (c) <= 'z'))
28516# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28517#endif
28518
28519#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28520int
28521main ()
28522{
28523 int i;
28524 for (i = 0; i < 256; i++)
28525 if (XOR (islower (i), ISLOWER (i))
28526 || toupper (i) != TOUPPER (i))
28527 return 2;
28528 return 0;
28529}
28530_ACEOF
28531rm -f conftest$ac_exeext
28532if { (ac_try="$ac_link"
28533case "(($ac_try" in
28534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28535 *) ac_try_echo=$ac_try;;
28536esac
28537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28538 (eval "$ac_link") 2>&5
28539 ac_status=$?
28540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28542 { (case "(($ac_try" in
28543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544 *) ac_try_echo=$ac_try;;
28545esac
28546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547 (eval "$ac_try") 2>&5
28548 ac_status=$?
28549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550 (exit $ac_status); }; }; then
28551 :
28552else
28553 echo "$as_me: program exited with status $ac_status" >&5
28554echo "$as_me: failed program was:" >&5
28555sed 's/^/| /' conftest.$ac_ext >&5
28556
28557( exit $ac_status )
28558ac_cv_header_stdc=no
28559fi
28560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28561fi
28562
28563
28564fi
28565fi
28566{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28567echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28568if test $ac_cv_header_stdc = yes; then
28569
28570cat >>confdefs.h <<\_ACEOF
28571#define STDC_HEADERS 1
28572_ACEOF
28573
28574fi
28575
28576{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28577echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28578if test "${ac_cv_header_sys_wait_h+set}" = set; then
28579 echo $ECHO_N "(cached) $ECHO_C" >&6
28580else
28581 cat >conftest.$ac_ext <<_ACEOF
28582/* confdefs.h. */
28583_ACEOF
28584cat confdefs.h >>conftest.$ac_ext
28585cat >>conftest.$ac_ext <<_ACEOF
28586/* end confdefs.h. */
28587#include <sys/types.h>
28588#include <sys/wait.h>
28589#ifndef WEXITSTATUS
28590# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28591#endif
28592#ifndef WIFEXITED
28593# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28594#endif
28595
28596int
28597main ()
28598{
28599 int s;
28600 wait (&s);
28601 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28602 ;
28603 return 0;
28604}
28605_ACEOF
28606rm -f conftest.$ac_objext
28607if { (ac_try="$ac_compile"
28608case "(($ac_try" in
28609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28610 *) ac_try_echo=$ac_try;;
28611esac
28612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28613 (eval "$ac_compile") 2>conftest.er1
28614 ac_status=$?
28615 grep -v '^ *+' conftest.er1 >conftest.err
28616 rm -f conftest.er1
28617 cat conftest.err >&5
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028619 (exit $ac_status); } &&
28620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28621 { (case "(($ac_try" in
28622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28623 *) ac_try_echo=$ac_try;;
28624esac
28625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28626 (eval "$ac_try") 2>&5
28627 ac_status=$?
28628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); }; } &&
28630 { ac_try='test -s conftest.$ac_objext'
28631 { (case "(($ac_try" in
28632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28633 *) ac_try_echo=$ac_try;;
28634esac
28635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28636 (eval "$ac_try") 2>&5
28637 ac_status=$?
28638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28639 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028640 ac_cv_header_sys_wait_h=yes
28641else
28642 echo "$as_me: failed program was:" >&5
28643sed 's/^/| /' conftest.$ac_ext >&5
28644
28645 ac_cv_header_sys_wait_h=no
28646fi
28647
28648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28649fi
28650{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28651echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28652if test $ac_cv_header_sys_wait_h = yes; then
28653
28654cat >>confdefs.h <<\_ACEOF
28655#define HAVE_SYS_WAIT_H 1
28656_ACEOF
28657
28658fi
28659
28660{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28661echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28662if test "${ac_cv_header_time+set}" = set; then
28663 echo $ECHO_N "(cached) $ECHO_C" >&6
28664else
28665 cat >conftest.$ac_ext <<_ACEOF
28666/* confdefs.h. */
28667_ACEOF
28668cat confdefs.h >>conftest.$ac_ext
28669cat >>conftest.$ac_ext <<_ACEOF
28670/* end confdefs.h. */
28671#include <sys/types.h>
28672#include <sys/time.h>
28673#include <time.h>
28674
28675int
28676main ()
28677{
28678if ((struct tm *) 0)
28679return 0;
28680 ;
28681 return 0;
28682}
28683_ACEOF
28684rm -f conftest.$ac_objext
28685if { (ac_try="$ac_compile"
28686case "(($ac_try" in
28687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28688 *) ac_try_echo=$ac_try;;
28689esac
28690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28691 (eval "$ac_compile") 2>conftest.er1
28692 ac_status=$?
28693 grep -v '^ *+' conftest.er1 >conftest.err
28694 rm -f conftest.er1
28695 cat conftest.err >&5
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028697 (exit $ac_status); } &&
28698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28699 { (case "(($ac_try" in
28700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28701 *) ac_try_echo=$ac_try;;
28702esac
28703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28704 (eval "$ac_try") 2>&5
28705 ac_status=$?
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); }; } &&
28708 { ac_try='test -s conftest.$ac_objext'
28709 { (case "(($ac_try" in
28710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28711 *) ac_try_echo=$ac_try;;
28712esac
28713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28714 (eval "$ac_try") 2>&5
28715 ac_status=$?
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028718 ac_cv_header_time=yes
28719else
28720 echo "$as_me: failed program was:" >&5
28721sed 's/^/| /' conftest.$ac_ext >&5
28722
28723 ac_cv_header_time=no
28724fi
28725
28726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28727fi
28728{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28729echo "${ECHO_T}$ac_cv_header_time" >&6; }
28730if test $ac_cv_header_time = yes; then
28731
28732cat >>confdefs.h <<\_ACEOF
28733#define TIME_WITH_SYS_TIME 1
28734_ACEOF
28735
28736fi
28737
28738
28739
28740
28741
28742
28743
28744
28745for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28746do
28747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28752 echo $ECHO_N "(cached) $ECHO_C" >&6
28753fi
28754ac_res=`eval echo '${'$as_ac_Header'}'`
28755 { echo "$as_me:$LINENO: result: $ac_res" >&5
28756echo "${ECHO_T}$ac_res" >&6; }
28757else
28758 # Is the header compilable?
28759{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28760echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28761cat >conftest.$ac_ext <<_ACEOF
28762/* confdefs.h. */
28763_ACEOF
28764cat confdefs.h >>conftest.$ac_ext
28765cat >>conftest.$ac_ext <<_ACEOF
28766/* end confdefs.h. */
28767$ac_includes_default
28768#include <$ac_header>
28769_ACEOF
28770rm -f conftest.$ac_objext
28771if { (ac_try="$ac_compile"
28772case "(($ac_try" in
28773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28774 *) ac_try_echo=$ac_try;;
28775esac
28776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28777 (eval "$ac_compile") 2>conftest.er1
28778 ac_status=$?
28779 grep -v '^ *+' conftest.er1 >conftest.err
28780 rm -f conftest.er1
28781 cat conftest.err >&5
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028783 (exit $ac_status); } &&
28784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28785 { (case "(($ac_try" in
28786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28787 *) ac_try_echo=$ac_try;;
28788esac
28789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28790 (eval "$ac_try") 2>&5
28791 ac_status=$?
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); }; } &&
28794 { ac_try='test -s conftest.$ac_objext'
28795 { (case "(($ac_try" in
28796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28797 *) ac_try_echo=$ac_try;;
28798esac
28799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28800 (eval "$ac_try") 2>&5
28801 ac_status=$?
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028804 ac_header_compiler=yes
28805else
28806 echo "$as_me: failed program was:" >&5
28807sed 's/^/| /' conftest.$ac_ext >&5
28808
28809 ac_header_compiler=no
28810fi
28811
28812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28813{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28814echo "${ECHO_T}$ac_header_compiler" >&6; }
28815
28816# Is the header present?
28817{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28818echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28819cat >conftest.$ac_ext <<_ACEOF
28820/* confdefs.h. */
28821_ACEOF
28822cat confdefs.h >>conftest.$ac_ext
28823cat >>conftest.$ac_ext <<_ACEOF
28824/* end confdefs.h. */
28825#include <$ac_header>
28826_ACEOF
28827if { (ac_try="$ac_cpp conftest.$ac_ext"
28828case "(($ac_try" in
28829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28830 *) ac_try_echo=$ac_try;;
28831esac
28832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28834 ac_status=$?
28835 grep -v '^ *+' conftest.er1 >conftest.err
28836 rm -f conftest.er1
28837 cat conftest.err >&5
28838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028839 (exit $ac_status); } >/dev/null; then
28840 if test -s conftest.err; then
28841 ac_cpp_err=$ac_c_preproc_warn_flag
28842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28843 else
28844 ac_cpp_err=
28845 fi
28846else
28847 ac_cpp_err=yes
28848fi
28849if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028850 ac_header_preproc=yes
28851else
28852 echo "$as_me: failed program was:" >&5
28853sed 's/^/| /' conftest.$ac_ext >&5
28854
28855 ac_header_preproc=no
28856fi
28857
28858rm -f conftest.err conftest.$ac_ext
28859{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28860echo "${ECHO_T}$ac_header_preproc" >&6; }
28861
28862# So? What about this header?
28863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28864 yes:no: )
28865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28866echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28868echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28869 ac_header_preproc=yes
28870 ;;
28871 no:yes:* )
28872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28873echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28875echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28877echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28879echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28881echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28883echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28884 ( cat <<\_ASBOX
28885## ----------------------------------- ##
28886## Report this to llvmbugs@cs.uiuc.edu ##
28887## ----------------------------------- ##
28888_ASBOX
28889 ) | sed "s/^/$as_me: WARNING: /" >&2
28890 ;;
28891esac
28892{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28894if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28895 echo $ECHO_N "(cached) $ECHO_C" >&6
28896else
28897 eval "$as_ac_Header=\$ac_header_preproc"
28898fi
28899ac_res=`eval echo '${'$as_ac_Header'}'`
28900 { echo "$as_me:$LINENO: result: $ac_res" >&5
28901echo "${ECHO_T}$ac_res" >&6; }
28902
28903fi
28904if test `eval echo '${'$as_ac_Header'}'` = yes; then
28905 cat >>confdefs.h <<_ACEOF
28906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28907_ACEOF
28908
28909fi
28910
28911done
28912
28913
28914
28915
28916
28917
28918
28919for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28920do
28921as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28926 echo $ECHO_N "(cached) $ECHO_C" >&6
28927fi
28928ac_res=`eval echo '${'$as_ac_Header'}'`
28929 { echo "$as_me:$LINENO: result: $ac_res" >&5
28930echo "${ECHO_T}$ac_res" >&6; }
28931else
28932 # Is the header compilable?
28933{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28934echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28935cat >conftest.$ac_ext <<_ACEOF
28936/* confdefs.h. */
28937_ACEOF
28938cat confdefs.h >>conftest.$ac_ext
28939cat >>conftest.$ac_ext <<_ACEOF
28940/* end confdefs.h. */
28941$ac_includes_default
28942#include <$ac_header>
28943_ACEOF
28944rm -f conftest.$ac_objext
28945if { (ac_try="$ac_compile"
28946case "(($ac_try" in
28947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28948 *) ac_try_echo=$ac_try;;
28949esac
28950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28951 (eval "$ac_compile") 2>conftest.er1
28952 ac_status=$?
28953 grep -v '^ *+' conftest.er1 >conftest.err
28954 rm -f conftest.er1
28955 cat conftest.err >&5
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028957 (exit $ac_status); } &&
28958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28959 { (case "(($ac_try" in
28960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28961 *) ac_try_echo=$ac_try;;
28962esac
28963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28964 (eval "$ac_try") 2>&5
28965 ac_status=$?
28966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967 (exit $ac_status); }; } &&
28968 { ac_try='test -s conftest.$ac_objext'
28969 { (case "(($ac_try" in
28970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28971 *) ac_try_echo=$ac_try;;
28972esac
28973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28974 (eval "$ac_try") 2>&5
28975 ac_status=$?
28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028978 ac_header_compiler=yes
28979else
28980 echo "$as_me: failed program was:" >&5
28981sed 's/^/| /' conftest.$ac_ext >&5
28982
28983 ac_header_compiler=no
28984fi
28985
28986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28987{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28988echo "${ECHO_T}$ac_header_compiler" >&6; }
28989
28990# Is the header present?
28991{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28992echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28993cat >conftest.$ac_ext <<_ACEOF
28994/* confdefs.h. */
28995_ACEOF
28996cat confdefs.h >>conftest.$ac_ext
28997cat >>conftest.$ac_ext <<_ACEOF
28998/* end confdefs.h. */
28999#include <$ac_header>
29000_ACEOF
29001if { (ac_try="$ac_cpp conftest.$ac_ext"
29002case "(($ac_try" in
29003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29004 *) ac_try_echo=$ac_try;;
29005esac
29006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29008 ac_status=$?
29009 grep -v '^ *+' conftest.er1 >conftest.err
29010 rm -f conftest.er1
29011 cat conftest.err >&5
29012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000029013 (exit $ac_status); } >/dev/null; then
29014 if test -s conftest.err; then
29015 ac_cpp_err=$ac_c_preproc_warn_flag
29016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29017 else
29018 ac_cpp_err=
29019 fi
29020else
29021 ac_cpp_err=yes
29022fi
29023if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029024 ac_header_preproc=yes
29025else
29026 echo "$as_me: failed program was:" >&5
29027sed 's/^/| /' conftest.$ac_ext >&5
29028
29029 ac_header_preproc=no
29030fi
29031
29032rm -f conftest.err conftest.$ac_ext
29033{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29034echo "${ECHO_T}$ac_header_preproc" >&6; }
29035
29036# So? What about this header?
29037case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29038 yes:no: )
29039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29040echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29042echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29043 ac_header_preproc=yes
29044 ;;
29045 no:yes:* )
29046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29047echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29049echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29050 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29051echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29052 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29053echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29055echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29056 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29057echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29058 ( cat <<\_ASBOX
29059## ----------------------------------- ##
29060## Report this to llvmbugs@cs.uiuc.edu ##
29061## ----------------------------------- ##
29062_ASBOX
29063 ) | sed "s/^/$as_me: WARNING: /" >&2
29064 ;;
29065esac
29066{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29069 echo $ECHO_N "(cached) $ECHO_C" >&6
29070else
29071 eval "$as_ac_Header=\$ac_header_preproc"
29072fi
29073ac_res=`eval echo '${'$as_ac_Header'}'`
29074 { echo "$as_me:$LINENO: result: $ac_res" >&5
29075echo "${ECHO_T}$ac_res" >&6; }
29076
29077fi
29078if test `eval echo '${'$as_ac_Header'}'` = yes; then
29079 cat >>confdefs.h <<_ACEOF
29080#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29081_ACEOF
29082
29083fi
29084
29085done
29086
29087
Reid Spencer096a8142007-08-17 05:45:26 +000029088for ac_header in windows.h
29089do
29090as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29091if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29095 echo $ECHO_N "(cached) $ECHO_C" >&6
29096fi
29097ac_res=`eval echo '${'$as_ac_Header'}'`
29098 { echo "$as_me:$LINENO: result: $ac_res" >&5
29099echo "${ECHO_T}$ac_res" >&6; }
29100else
29101 # Is the header compilable?
29102{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29103echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29104cat >conftest.$ac_ext <<_ACEOF
29105/* confdefs.h. */
29106_ACEOF
29107cat confdefs.h >>conftest.$ac_ext
29108cat >>conftest.$ac_ext <<_ACEOF
29109/* end confdefs.h. */
29110$ac_includes_default
29111#include <$ac_header>
29112_ACEOF
29113rm -f conftest.$ac_objext
29114if { (ac_try="$ac_compile"
29115case "(($ac_try" in
29116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29117 *) ac_try_echo=$ac_try;;
29118esac
29119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29120 (eval "$ac_compile") 2>conftest.er1
29121 ac_status=$?
29122 grep -v '^ *+' conftest.er1 >conftest.err
29123 rm -f conftest.er1
29124 cat conftest.err >&5
29125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000029126 (exit $ac_status); } &&
29127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29128 { (case "(($ac_try" in
29129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29130 *) ac_try_echo=$ac_try;;
29131esac
29132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29133 (eval "$ac_try") 2>&5
29134 ac_status=$?
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); }; } &&
29137 { ac_try='test -s conftest.$ac_objext'
29138 { (case "(($ac_try" in
29139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29140 *) ac_try_echo=$ac_try;;
29141esac
29142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29143 (eval "$ac_try") 2>&5
29144 ac_status=$?
29145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146 (exit $ac_status); }; }; then
Reid Spencer096a8142007-08-17 05:45:26 +000029147 ac_header_compiler=yes
29148else
29149 echo "$as_me: failed program was:" >&5
29150sed 's/^/| /' conftest.$ac_ext >&5
29151
29152 ac_header_compiler=no
29153fi
29154
29155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29156{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29157echo "${ECHO_T}$ac_header_compiler" >&6; }
29158
29159# Is the header present?
29160{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29161echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29162cat >conftest.$ac_ext <<_ACEOF
29163/* confdefs.h. */
29164_ACEOF
29165cat confdefs.h >>conftest.$ac_ext
29166cat >>conftest.$ac_ext <<_ACEOF
29167/* end confdefs.h. */
29168#include <$ac_header>
29169_ACEOF
29170if { (ac_try="$ac_cpp conftest.$ac_ext"
29171case "(($ac_try" in
29172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29173 *) ac_try_echo=$ac_try;;
29174esac
29175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29177 ac_status=$?
29178 grep -v '^ *+' conftest.er1 >conftest.err
29179 rm -f conftest.er1
29180 cat conftest.err >&5
29181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000029182 (exit $ac_status); } >/dev/null; then
29183 if test -s conftest.err; then
29184 ac_cpp_err=$ac_c_preproc_warn_flag
29185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29186 else
29187 ac_cpp_err=
29188 fi
29189else
29190 ac_cpp_err=yes
29191fi
29192if test -z "$ac_cpp_err"; then
Reid Spencer096a8142007-08-17 05:45:26 +000029193 ac_header_preproc=yes
29194else
29195 echo "$as_me: failed program was:" >&5
29196sed 's/^/| /' conftest.$ac_ext >&5
29197
29198 ac_header_preproc=no
29199fi
29200
29201rm -f conftest.err conftest.$ac_ext
29202{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29203echo "${ECHO_T}$ac_header_preproc" >&6; }
29204
29205# So? What about this header?
29206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29207 yes:no: )
29208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29209echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29211echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29212 ac_header_preproc=yes
29213 ;;
29214 no:yes:* )
29215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29216echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29218echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29220echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29222echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29224echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29226echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29227 ( cat <<\_ASBOX
29228## ----------------------------------- ##
29229## Report this to llvmbugs@cs.uiuc.edu ##
29230## ----------------------------------- ##
29231_ASBOX
29232 ) | sed "s/^/$as_me: WARNING: /" >&2
29233 ;;
29234esac
29235{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29238 echo $ECHO_N "(cached) $ECHO_C" >&6
29239else
29240 eval "$as_ac_Header=\$ac_header_preproc"
29241fi
29242ac_res=`eval echo '${'$as_ac_Header'}'`
29243 { echo "$as_me:$LINENO: result: $ac_res" >&5
29244echo "${ECHO_T}$ac_res" >&6; }
29245
29246fi
29247if test `eval echo '${'$as_ac_Header'}'` = yes; then
29248 cat >>confdefs.h <<_ACEOF
29249#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29250_ACEOF
29251
29252fi
29253
29254done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029255
29256
29257
29258
Reid Spencer096a8142007-08-17 05:45:26 +000029259
29260for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029261do
29262as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29267 echo $ECHO_N "(cached) $ECHO_C" >&6
29268fi
29269ac_res=`eval echo '${'$as_ac_Header'}'`
29270 { echo "$as_me:$LINENO: result: $ac_res" >&5
29271echo "${ECHO_T}$ac_res" >&6; }
29272else
29273 # Is the header compilable?
29274{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29276cat >conftest.$ac_ext <<_ACEOF
29277/* confdefs.h. */
29278_ACEOF
29279cat confdefs.h >>conftest.$ac_ext
29280cat >>conftest.$ac_ext <<_ACEOF
29281/* end confdefs.h. */
29282$ac_includes_default
29283#include <$ac_header>
29284_ACEOF
29285rm -f conftest.$ac_objext
29286if { (ac_try="$ac_compile"
29287case "(($ac_try" in
29288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29289 *) ac_try_echo=$ac_try;;
29290esac
29291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29292 (eval "$ac_compile") 2>conftest.er1
29293 ac_status=$?
29294 grep -v '^ *+' conftest.er1 >conftest.err
29295 rm -f conftest.er1
29296 cat conftest.err >&5
29297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000029298 (exit $ac_status); } &&
29299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29300 { (case "(($ac_try" in
29301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29302 *) ac_try_echo=$ac_try;;
29303esac
29304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29305 (eval "$ac_try") 2>&5
29306 ac_status=$?
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); }; } &&
29309 { ac_try='test -s conftest.$ac_objext'
29310 { (case "(($ac_try" in
29311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29312 *) ac_try_echo=$ac_try;;
29313esac
29314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29315 (eval "$ac_try") 2>&5
29316 ac_status=$?
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029319 ac_header_compiler=yes
29320else
29321 echo "$as_me: failed program was:" >&5
29322sed 's/^/| /' conftest.$ac_ext >&5
29323
29324 ac_header_compiler=no
29325fi
29326
29327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29328{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29329echo "${ECHO_T}$ac_header_compiler" >&6; }
29330
29331# Is the header present?
29332{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29333echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29334cat >conftest.$ac_ext <<_ACEOF
29335/* confdefs.h. */
29336_ACEOF
29337cat confdefs.h >>conftest.$ac_ext
29338cat >>conftest.$ac_ext <<_ACEOF
29339/* end confdefs.h. */
29340#include <$ac_header>
29341_ACEOF
29342if { (ac_try="$ac_cpp conftest.$ac_ext"
29343case "(($ac_try" in
29344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345 *) ac_try_echo=$ac_try;;
29346esac
29347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29349 ac_status=$?
29350 grep -v '^ *+' conftest.er1 >conftest.err
29351 rm -f conftest.er1
29352 cat conftest.err >&5
29353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000029354 (exit $ac_status); } >/dev/null; then
29355 if test -s conftest.err; then
29356 ac_cpp_err=$ac_c_preproc_warn_flag
29357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29358 else
29359 ac_cpp_err=
29360 fi
29361else
29362 ac_cpp_err=yes
29363fi
29364if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029365 ac_header_preproc=yes
29366else
29367 echo "$as_me: failed program was:" >&5
29368sed 's/^/| /' conftest.$ac_ext >&5
29369
29370 ac_header_preproc=no
29371fi
29372
29373rm -f conftest.err conftest.$ac_ext
29374{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29375echo "${ECHO_T}$ac_header_preproc" >&6; }
29376
29377# So? What about this header?
29378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29379 yes:no: )
29380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29384 ac_header_preproc=yes
29385 ;;
29386 no:yes:* )
29387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29390echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29394echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29399 ( cat <<\_ASBOX
29400## ----------------------------------- ##
29401## Report this to llvmbugs@cs.uiuc.edu ##
29402## ----------------------------------- ##
29403_ASBOX
29404 ) | sed "s/^/$as_me: WARNING: /" >&2
29405 ;;
29406esac
29407{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29410 echo $ECHO_N "(cached) $ECHO_C" >&6
29411else
29412 eval "$as_ac_Header=\$ac_header_preproc"
29413fi
29414ac_res=`eval echo '${'$as_ac_Header'}'`
29415 { echo "$as_me:$LINENO: result: $ac_res" >&5
29416echo "${ECHO_T}$ac_res" >&6; }
29417
29418fi
29419if test `eval echo '${'$as_ac_Header'}'` = yes; then
29420 cat >>confdefs.h <<_ACEOF
29421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29422_ACEOF
29423
29424fi
29425
29426done
29427
29428
29429
29430
29431for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29432do
29433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29438 echo $ECHO_N "(cached) $ECHO_C" >&6
29439fi
29440ac_res=`eval echo '${'$as_ac_Header'}'`
29441 { echo "$as_me:$LINENO: result: $ac_res" >&5
29442echo "${ECHO_T}$ac_res" >&6; }
29443else
29444 # Is the header compilable?
29445{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29446echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29447cat >conftest.$ac_ext <<_ACEOF
29448/* confdefs.h. */
29449_ACEOF
29450cat confdefs.h >>conftest.$ac_ext
29451cat >>conftest.$ac_ext <<_ACEOF
29452/* end confdefs.h. */
29453$ac_includes_default
29454#include <$ac_header>
29455_ACEOF
29456rm -f conftest.$ac_objext
29457if { (ac_try="$ac_compile"
29458case "(($ac_try" in
29459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29460 *) ac_try_echo=$ac_try;;
29461esac
29462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29463 (eval "$ac_compile") 2>conftest.er1
29464 ac_status=$?
29465 grep -v '^ *+' conftest.er1 >conftest.err
29466 rm -f conftest.er1
29467 cat conftest.err >&5
29468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000029469 (exit $ac_status); } &&
29470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29471 { (case "(($ac_try" in
29472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29473 *) ac_try_echo=$ac_try;;
29474esac
29475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29476 (eval "$ac_try") 2>&5
29477 ac_status=$?
29478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); }; } &&
29480 { ac_try='test -s conftest.$ac_objext'
29481 { (case "(($ac_try" in
29482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29483 *) ac_try_echo=$ac_try;;
29484esac
29485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29486 (eval "$ac_try") 2>&5
29487 ac_status=$?
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029490 ac_header_compiler=yes
29491else
29492 echo "$as_me: failed program was:" >&5
29493sed 's/^/| /' conftest.$ac_ext >&5
29494
29495 ac_header_compiler=no
29496fi
29497
29498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29499{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29500echo "${ECHO_T}$ac_header_compiler" >&6; }
29501
29502# Is the header present?
29503{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29504echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29505cat >conftest.$ac_ext <<_ACEOF
29506/* confdefs.h. */
29507_ACEOF
29508cat confdefs.h >>conftest.$ac_ext
29509cat >>conftest.$ac_ext <<_ACEOF
29510/* end confdefs.h. */
29511#include <$ac_header>
29512_ACEOF
29513if { (ac_try="$ac_cpp conftest.$ac_ext"
29514case "(($ac_try" in
29515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29516 *) ac_try_echo=$ac_try;;
29517esac
29518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29520 ac_status=$?
29521 grep -v '^ *+' conftest.er1 >conftest.err
29522 rm -f conftest.er1
29523 cat conftest.err >&5
29524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000029525 (exit $ac_status); } >/dev/null; then
29526 if test -s conftest.err; then
29527 ac_cpp_err=$ac_c_preproc_warn_flag
29528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29529 else
29530 ac_cpp_err=
29531 fi
29532else
29533 ac_cpp_err=yes
29534fi
29535if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029536 ac_header_preproc=yes
29537else
29538 echo "$as_me: failed program was:" >&5
29539sed 's/^/| /' conftest.$ac_ext >&5
29540
29541 ac_header_preproc=no
29542fi
29543
29544rm -f conftest.err conftest.$ac_ext
29545{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29546echo "${ECHO_T}$ac_header_preproc" >&6; }
29547
29548# So? What about this header?
29549case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29550 yes:no: )
29551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29552echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29554echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29555 ac_header_preproc=yes
29556 ;;
29557 no:yes:* )
29558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29559echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29561echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29563echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29565echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29567echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29569echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29570 ( cat <<\_ASBOX
29571## ----------------------------------- ##
29572## Report this to llvmbugs@cs.uiuc.edu ##
29573## ----------------------------------- ##
29574_ASBOX
29575 ) | sed "s/^/$as_me: WARNING: /" >&2
29576 ;;
29577esac
29578{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29581 echo $ECHO_N "(cached) $ECHO_C" >&6
29582else
29583 eval "$as_ac_Header=\$ac_header_preproc"
29584fi
29585ac_res=`eval echo '${'$as_ac_Header'}'`
29586 { echo "$as_me:$LINENO: result: $ac_res" >&5
29587echo "${ECHO_T}$ac_res" >&6; }
29588
29589fi
29590if test `eval echo '${'$as_ac_Header'}'` = yes; then
29591 cat >>confdefs.h <<_ACEOF
29592#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29593_ACEOF
29594
29595fi
29596
29597done
29598
29599if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer096a8142007-08-17 05:45:26 +000029600
29601for ac_header in pthread.h
29602do
29603as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29604if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29606echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29607if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029608 echo $ECHO_N "(cached) $ECHO_C" >&6
29609fi
Reid Spencer096a8142007-08-17 05:45:26 +000029610ac_res=`eval echo '${'$as_ac_Header'}'`
29611 { echo "$as_me:$LINENO: result: $ac_res" >&5
29612echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029613else
29614 # Is the header compilable?
Reid Spencer096a8142007-08-17 05:45:26 +000029615{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29616echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029617cat >conftest.$ac_ext <<_ACEOF
29618/* confdefs.h. */
29619_ACEOF
29620cat confdefs.h >>conftest.$ac_ext
29621cat >>conftest.$ac_ext <<_ACEOF
29622/* end confdefs.h. */
29623$ac_includes_default
Reid Spencer096a8142007-08-17 05:45:26 +000029624#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029625_ACEOF
29626rm -f conftest.$ac_objext
29627if { (ac_try="$ac_compile"
29628case "(($ac_try" in
29629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29630 *) ac_try_echo=$ac_try;;
29631esac
29632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29633 (eval "$ac_compile") 2>conftest.er1
29634 ac_status=$?
29635 grep -v '^ *+' conftest.er1 >conftest.err
29636 rm -f conftest.er1
29637 cat conftest.err >&5
29638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000029639 (exit $ac_status); } &&
29640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29641 { (case "(($ac_try" in
29642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29643 *) ac_try_echo=$ac_try;;
29644esac
29645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29646 (eval "$ac_try") 2>&5
29647 ac_status=$?
29648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649 (exit $ac_status); }; } &&
29650 { ac_try='test -s conftest.$ac_objext'
29651 { (case "(($ac_try" in
29652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29653 *) ac_try_echo=$ac_try;;
29654esac
29655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29656 (eval "$ac_try") 2>&5
29657 ac_status=$?
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029660 ac_header_compiler=yes
29661else
29662 echo "$as_me: failed program was:" >&5
29663sed 's/^/| /' conftest.$ac_ext >&5
29664
29665 ac_header_compiler=no
29666fi
29667
29668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29669{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29670echo "${ECHO_T}$ac_header_compiler" >&6; }
29671
29672# Is the header present?
Reid Spencer096a8142007-08-17 05:45:26 +000029673{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29674echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029675cat >conftest.$ac_ext <<_ACEOF
29676/* confdefs.h. */
29677_ACEOF
29678cat confdefs.h >>conftest.$ac_ext
29679cat >>conftest.$ac_ext <<_ACEOF
29680/* end confdefs.h. */
Reid Spencer096a8142007-08-17 05:45:26 +000029681#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029682_ACEOF
29683if { (ac_try="$ac_cpp conftest.$ac_ext"
29684case "(($ac_try" in
29685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29686 *) ac_try_echo=$ac_try;;
29687esac
29688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29690 ac_status=$?
29691 grep -v '^ *+' conftest.er1 >conftest.err
29692 rm -f conftest.er1
29693 cat conftest.err >&5
29694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000029695 (exit $ac_status); } >/dev/null; then
29696 if test -s conftest.err; then
29697 ac_cpp_err=$ac_c_preproc_warn_flag
29698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29699 else
29700 ac_cpp_err=
29701 fi
29702else
29703 ac_cpp_err=yes
29704fi
29705if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029706 ac_header_preproc=yes
29707else
29708 echo "$as_me: failed program was:" >&5
29709sed 's/^/| /' conftest.$ac_ext >&5
29710
29711 ac_header_preproc=no
29712fi
29713
29714rm -f conftest.err conftest.$ac_ext
29715{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29716echo "${ECHO_T}$ac_header_preproc" >&6; }
29717
29718# So? What about this header?
29719case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29720 yes:no: )
Reid Spencer096a8142007-08-17 05:45:26 +000029721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29722echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29724echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029725 ac_header_preproc=yes
29726 ;;
29727 no:yes:* )
Reid Spencer096a8142007-08-17 05:45:26 +000029728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29729echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29731echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29733echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29735echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29737echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29739echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029740 ( cat <<\_ASBOX
29741## ----------------------------------- ##
29742## Report this to llvmbugs@cs.uiuc.edu ##
29743## ----------------------------------- ##
29744_ASBOX
29745 ) | sed "s/^/$as_me: WARNING: /" >&2
29746 ;;
29747esac
Reid Spencer096a8142007-08-17 05:45:26 +000029748{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29750if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029751 echo $ECHO_N "(cached) $ECHO_C" >&6
29752else
Reid Spencer096a8142007-08-17 05:45:26 +000029753 eval "$as_ac_Header=\$ac_header_preproc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029754fi
Reid Spencer096a8142007-08-17 05:45:26 +000029755ac_res=`eval echo '${'$as_ac_Header'}'`
29756 { echo "$as_me:$LINENO: result: $ac_res" >&5
29757echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029758
29759fi
Reid Spencer096a8142007-08-17 05:45:26 +000029760if test `eval echo '${'$as_ac_Header'}'` = yes; then
29761 cat >>confdefs.h <<_ACEOF
29762#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29763_ACEOF
29764 HAVE_PTHREAD=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029765
29766else
29767 HAVE_PTHREAD=0
29768
29769fi
29770
Reid Spencer096a8142007-08-17 05:45:26 +000029771done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029772
29773else
29774 HAVE_PTHREAD=0
29775
29776fi
29777
Nick Lewycky0235b622009-02-04 06:27:44 +000029778
29779
29780for ac_header in ffi.h ffi/ffi.h
29781do
29782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29787 echo $ECHO_N "(cached) $ECHO_C" >&6
29788fi
29789ac_res=`eval echo '${'$as_ac_Header'}'`
29790 { echo "$as_me:$LINENO: result: $ac_res" >&5
29791echo "${ECHO_T}$ac_res" >&6; }
29792else
29793 # Is the header compilable?
29794{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29795echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29796cat >conftest.$ac_ext <<_ACEOF
29797/* confdefs.h. */
29798_ACEOF
29799cat confdefs.h >>conftest.$ac_ext
29800cat >>conftest.$ac_ext <<_ACEOF
29801/* end confdefs.h. */
29802$ac_includes_default
29803#include <$ac_header>
29804_ACEOF
29805rm -f conftest.$ac_objext
29806if { (ac_try="$ac_compile"
29807case "(($ac_try" in
29808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29809 *) ac_try_echo=$ac_try;;
29810esac
29811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29812 (eval "$ac_compile") 2>conftest.er1
29813 ac_status=$?
29814 grep -v '^ *+' conftest.er1 >conftest.err
29815 rm -f conftest.er1
29816 cat conftest.err >&5
29817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818 (exit $ac_status); } &&
29819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29820 { (case "(($ac_try" in
29821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29822 *) ac_try_echo=$ac_try;;
29823esac
29824eval "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); }; } &&
29829 { ac_try='test -s conftest.$ac_objext'
29830 { (case "(($ac_try" in
29831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29832 *) ac_try_echo=$ac_try;;
29833esac
29834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29835 (eval "$ac_try") 2>&5
29836 ac_status=$?
29837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838 (exit $ac_status); }; }; then
29839 ac_header_compiler=yes
29840else
29841 echo "$as_me: failed program was:" >&5
29842sed 's/^/| /' conftest.$ac_ext >&5
29843
29844 ac_header_compiler=no
29845fi
29846
29847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29848{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29849echo "${ECHO_T}$ac_header_compiler" >&6; }
29850
29851# Is the header present?
29852{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29853echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29854cat >conftest.$ac_ext <<_ACEOF
29855/* confdefs.h. */
29856_ACEOF
29857cat confdefs.h >>conftest.$ac_ext
29858cat >>conftest.$ac_ext <<_ACEOF
29859/* end confdefs.h. */
29860#include <$ac_header>
29861_ACEOF
29862if { (ac_try="$ac_cpp conftest.$ac_ext"
29863case "(($ac_try" in
29864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29865 *) ac_try_echo=$ac_try;;
29866esac
29867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29869 ac_status=$?
29870 grep -v '^ *+' conftest.er1 >conftest.err
29871 rm -f conftest.er1
29872 cat conftest.err >&5
29873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874 (exit $ac_status); } >/dev/null; then
29875 if test -s conftest.err; then
29876 ac_cpp_err=$ac_c_preproc_warn_flag
29877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29878 else
29879 ac_cpp_err=
29880 fi
29881else
29882 ac_cpp_err=yes
29883fi
29884if test -z "$ac_cpp_err"; then
29885 ac_header_preproc=yes
29886else
29887 echo "$as_me: failed program was:" >&5
29888sed 's/^/| /' conftest.$ac_ext >&5
29889
29890 ac_header_preproc=no
29891fi
29892
29893rm -f conftest.err conftest.$ac_ext
29894{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29895echo "${ECHO_T}$ac_header_preproc" >&6; }
29896
29897# So? What about this header?
29898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29899 yes:no: )
29900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29901echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29903echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29904 ac_header_preproc=yes
29905 ;;
29906 no:yes:* )
29907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29908echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29910echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29912echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29914echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29916echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29918echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29919 ( cat <<\_ASBOX
29920## ----------------------------------- ##
29921## Report this to llvmbugs@cs.uiuc.edu ##
29922## ----------------------------------- ##
29923_ASBOX
29924 ) | sed "s/^/$as_me: WARNING: /" >&2
29925 ;;
29926esac
29927{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29930 echo $ECHO_N "(cached) $ECHO_C" >&6
29931else
29932 eval "$as_ac_Header=\$ac_header_preproc"
29933fi
29934ac_res=`eval echo '${'$as_ac_Header'}'`
29935 { echo "$as_me:$LINENO: result: $ac_res" >&5
29936echo "${ECHO_T}$ac_res" >&6; }
29937
29938fi
29939if test `eval echo '${'$as_ac_Header'}'` = yes; then
29940 cat >>confdefs.h <<_ACEOF
29941#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29942_ACEOF
Nick Lewycky0235b622009-02-04 06:27:44 +000029943
29944fi
29945
29946done
29947
Nick Lewycky0235b622009-02-04 06:27:44 +000029948
Nick Lewycky5d713ec2009-01-20 00:52:24 +000029949
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029950
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029951 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29952echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29953if test "${ac_cv_huge_val_sanity+set}" = set; then
29954 echo $ECHO_N "(cached) $ECHO_C" >&6
29955else
29956
29957 ac_ext=cpp
29958ac_cpp='$CXXCPP $CPPFLAGS'
29959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29962
29963 CXXFLAGS=-pedantic
29964 if test "$cross_compiling" = yes; then
29965 ac_cv_huge_val_sanity=yes
29966else
29967 cat >conftest.$ac_ext <<_ACEOF
29968/* confdefs.h. */
29969_ACEOF
29970cat confdefs.h >>conftest.$ac_ext
29971cat >>conftest.$ac_ext <<_ACEOF
29972/* end confdefs.h. */
29973#include <math.h>
29974int
29975main ()
29976{
29977double x = HUGE_VAL; return x != x;
29978 ;
29979 return 0;
29980}
29981_ACEOF
29982rm -f conftest$ac_exeext
29983if { (ac_try="$ac_link"
29984case "(($ac_try" in
29985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29986 *) ac_try_echo=$ac_try;;
29987esac
29988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29989 (eval "$ac_link") 2>&5
29990 ac_status=$?
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29993 { (case "(($ac_try" in
29994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29995 *) ac_try_echo=$ac_try;;
29996esac
29997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29998 (eval "$ac_try") 2>&5
29999 ac_status=$?
30000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001 (exit $ac_status); }; }; then
30002 ac_cv_huge_val_sanity=yes
30003else
30004 echo "$as_me: program exited with status $ac_status" >&5
30005echo "$as_me: failed program was:" >&5
30006sed 's/^/| /' conftest.$ac_ext >&5
30007
30008( exit $ac_status )
30009ac_cv_huge_val_sanity=no
30010fi
30011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30012fi
30013
30014
30015 ac_ext=c
30016ac_cpp='$CPP $CPPFLAGS'
30017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30019ac_compiler_gnu=$ac_cv_c_compiler_gnu
30020
30021
30022fi
30023{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30024echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30025 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30026
30027
30028{ echo "$as_me:$LINENO: checking for pid_t" >&5
30029echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30030if test "${ac_cv_type_pid_t+set}" = set; then
30031 echo $ECHO_N "(cached) $ECHO_C" >&6
30032else
30033 cat >conftest.$ac_ext <<_ACEOF
30034/* confdefs.h. */
30035_ACEOF
30036cat confdefs.h >>conftest.$ac_ext
30037cat >>conftest.$ac_ext <<_ACEOF
30038/* end confdefs.h. */
30039$ac_includes_default
30040typedef pid_t ac__type_new_;
30041int
30042main ()
30043{
30044if ((ac__type_new_ *) 0)
30045 return 0;
30046if (sizeof (ac__type_new_))
30047 return 0;
30048 ;
30049 return 0;
30050}
30051_ACEOF
30052rm -f conftest.$ac_objext
30053if { (ac_try="$ac_compile"
30054case "(($ac_try" in
30055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30056 *) ac_try_echo=$ac_try;;
30057esac
30058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30059 (eval "$ac_compile") 2>conftest.er1
30060 ac_status=$?
30061 grep -v '^ *+' conftest.er1 >conftest.err
30062 rm -f conftest.er1
30063 cat conftest.err >&5
30064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030065 (exit $ac_status); } &&
30066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30067 { (case "(($ac_try" in
30068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30069 *) ac_try_echo=$ac_try;;
30070esac
30071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30072 (eval "$ac_try") 2>&5
30073 ac_status=$?
30074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075 (exit $ac_status); }; } &&
30076 { ac_try='test -s conftest.$ac_objext'
30077 { (case "(($ac_try" in
30078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30079 *) ac_try_echo=$ac_try;;
30080esac
30081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30082 (eval "$ac_try") 2>&5
30083 ac_status=$?
30084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030086 ac_cv_type_pid_t=yes
30087else
30088 echo "$as_me: failed program was:" >&5
30089sed 's/^/| /' conftest.$ac_ext >&5
30090
30091 ac_cv_type_pid_t=no
30092fi
30093
30094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30095fi
30096{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30097echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30098if test $ac_cv_type_pid_t = yes; then
30099 :
30100else
30101
30102cat >>confdefs.h <<_ACEOF
30103#define pid_t int
30104_ACEOF
30105
30106fi
30107
30108{ echo "$as_me:$LINENO: checking for size_t" >&5
30109echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30110if test "${ac_cv_type_size_t+set}" = set; then
30111 echo $ECHO_N "(cached) $ECHO_C" >&6
30112else
30113 cat >conftest.$ac_ext <<_ACEOF
30114/* confdefs.h. */
30115_ACEOF
30116cat confdefs.h >>conftest.$ac_ext
30117cat >>conftest.$ac_ext <<_ACEOF
30118/* end confdefs.h. */
30119$ac_includes_default
30120typedef size_t ac__type_new_;
30121int
30122main ()
30123{
30124if ((ac__type_new_ *) 0)
30125 return 0;
30126if (sizeof (ac__type_new_))
30127 return 0;
30128 ;
30129 return 0;
30130}
30131_ACEOF
30132rm -f conftest.$ac_objext
30133if { (ac_try="$ac_compile"
30134case "(($ac_try" in
30135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30136 *) ac_try_echo=$ac_try;;
30137esac
30138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30139 (eval "$ac_compile") 2>conftest.er1
30140 ac_status=$?
30141 grep -v '^ *+' conftest.er1 >conftest.err
30142 rm -f conftest.er1
30143 cat conftest.err >&5
30144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030145 (exit $ac_status); } &&
30146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30147 { (case "(($ac_try" in
30148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30149 *) ac_try_echo=$ac_try;;
30150esac
30151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30152 (eval "$ac_try") 2>&5
30153 ac_status=$?
30154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155 (exit $ac_status); }; } &&
30156 { ac_try='test -s conftest.$ac_objext'
30157 { (case "(($ac_try" in
30158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30159 *) ac_try_echo=$ac_try;;
30160esac
30161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30162 (eval "$ac_try") 2>&5
30163 ac_status=$?
30164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030166 ac_cv_type_size_t=yes
30167else
30168 echo "$as_me: failed program was:" >&5
30169sed 's/^/| /' conftest.$ac_ext >&5
30170
30171 ac_cv_type_size_t=no
30172fi
30173
30174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30175fi
30176{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30177echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30178if test $ac_cv_type_size_t = yes; then
30179 :
30180else
30181
30182cat >>confdefs.h <<_ACEOF
30183#define size_t unsigned int
30184_ACEOF
30185
30186fi
30187
30188{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30189echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30190if test "${ac_cv_type_signal+set}" = set; then
30191 echo $ECHO_N "(cached) $ECHO_C" >&6
30192else
30193 cat >conftest.$ac_ext <<_ACEOF
30194/* confdefs.h. */
30195_ACEOF
30196cat confdefs.h >>conftest.$ac_ext
30197cat >>conftest.$ac_ext <<_ACEOF
30198/* end confdefs.h. */
30199#include <sys/types.h>
30200#include <signal.h>
30201
30202int
30203main ()
30204{
30205return *(signal (0, 0)) (0) == 1;
30206 ;
30207 return 0;
30208}
30209_ACEOF
30210rm -f conftest.$ac_objext
30211if { (ac_try="$ac_compile"
30212case "(($ac_try" in
30213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30214 *) ac_try_echo=$ac_try;;
30215esac
30216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30217 (eval "$ac_compile") 2>conftest.er1
30218 ac_status=$?
30219 grep -v '^ *+' conftest.er1 >conftest.err
30220 rm -f conftest.er1
30221 cat conftest.err >&5
30222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030223 (exit $ac_status); } &&
30224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30225 { (case "(($ac_try" in
30226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30227 *) ac_try_echo=$ac_try;;
30228esac
30229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30230 (eval "$ac_try") 2>&5
30231 ac_status=$?
30232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30233 (exit $ac_status); }; } &&
30234 { ac_try='test -s conftest.$ac_objext'
30235 { (case "(($ac_try" in
30236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30237 *) ac_try_echo=$ac_try;;
30238esac
30239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30240 (eval "$ac_try") 2>&5
30241 ac_status=$?
30242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030244 ac_cv_type_signal=int
30245else
30246 echo "$as_me: failed program was:" >&5
30247sed 's/^/| /' conftest.$ac_ext >&5
30248
30249 ac_cv_type_signal=void
30250fi
30251
30252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30253fi
30254{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30255echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30256
30257cat >>confdefs.h <<_ACEOF
30258#define RETSIGTYPE $ac_cv_type_signal
30259_ACEOF
30260
30261
30262{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30263echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30264if test "${ac_cv_struct_tm+set}" = set; then
30265 echo $ECHO_N "(cached) $ECHO_C" >&6
30266else
30267 cat >conftest.$ac_ext <<_ACEOF
30268/* confdefs.h. */
30269_ACEOF
30270cat confdefs.h >>conftest.$ac_ext
30271cat >>conftest.$ac_ext <<_ACEOF
30272/* end confdefs.h. */
30273#include <sys/types.h>
30274#include <time.h>
30275
30276int
30277main ()
30278{
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030279struct tm *tp; tp->tm_sec;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030280 ;
30281 return 0;
30282}
30283_ACEOF
30284rm -f conftest.$ac_objext
30285if { (ac_try="$ac_compile"
30286case "(($ac_try" in
30287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30288 *) ac_try_echo=$ac_try;;
30289esac
30290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30291 (eval "$ac_compile") 2>conftest.er1
30292 ac_status=$?
30293 grep -v '^ *+' conftest.er1 >conftest.err
30294 rm -f conftest.er1
30295 cat conftest.err >&5
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030297 (exit $ac_status); } &&
30298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30299 { (case "(($ac_try" in
30300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30301 *) ac_try_echo=$ac_try;;
30302esac
30303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30304 (eval "$ac_try") 2>&5
30305 ac_status=$?
30306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307 (exit $ac_status); }; } &&
30308 { ac_try='test -s conftest.$ac_objext'
30309 { (case "(($ac_try" in
30310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30311 *) ac_try_echo=$ac_try;;
30312esac
30313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30314 (eval "$ac_try") 2>&5
30315 ac_status=$?
30316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030318 ac_cv_struct_tm=time.h
30319else
30320 echo "$as_me: failed program was:" >&5
30321sed 's/^/| /' conftest.$ac_ext >&5
30322
30323 ac_cv_struct_tm=sys/time.h
30324fi
30325
30326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30327fi
30328{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30329echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30330if test $ac_cv_struct_tm = sys/time.h; then
30331
30332cat >>confdefs.h <<\_ACEOF
30333#define TM_IN_SYS_TIME 1
30334_ACEOF
30335
30336fi
30337
30338{ echo "$as_me:$LINENO: checking for int64_t" >&5
30339echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30340if test "${ac_cv_type_int64_t+set}" = set; then
30341 echo $ECHO_N "(cached) $ECHO_C" >&6
30342else
30343 cat >conftest.$ac_ext <<_ACEOF
30344/* confdefs.h. */
30345_ACEOF
30346cat confdefs.h >>conftest.$ac_ext
30347cat >>conftest.$ac_ext <<_ACEOF
30348/* end confdefs.h. */
30349$ac_includes_default
30350typedef int64_t ac__type_new_;
30351int
30352main ()
30353{
30354if ((ac__type_new_ *) 0)
30355 return 0;
30356if (sizeof (ac__type_new_))
30357 return 0;
30358 ;
30359 return 0;
30360}
30361_ACEOF
30362rm -f conftest.$ac_objext
30363if { (ac_try="$ac_compile"
30364case "(($ac_try" in
30365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30366 *) ac_try_echo=$ac_try;;
30367esac
30368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30369 (eval "$ac_compile") 2>conftest.er1
30370 ac_status=$?
30371 grep -v '^ *+' conftest.er1 >conftest.err
30372 rm -f conftest.er1
30373 cat conftest.err >&5
30374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030375 (exit $ac_status); } &&
30376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30377 { (case "(($ac_try" in
30378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30379 *) ac_try_echo=$ac_try;;
30380esac
30381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30382 (eval "$ac_try") 2>&5
30383 ac_status=$?
30384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385 (exit $ac_status); }; } &&
30386 { ac_try='test -s conftest.$ac_objext'
30387 { (case "(($ac_try" in
30388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30389 *) ac_try_echo=$ac_try;;
30390esac
30391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30392 (eval "$ac_try") 2>&5
30393 ac_status=$?
30394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030396 ac_cv_type_int64_t=yes
30397else
30398 echo "$as_me: failed program was:" >&5
30399sed 's/^/| /' conftest.$ac_ext >&5
30400
30401 ac_cv_type_int64_t=no
30402fi
30403
30404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30405fi
30406{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30407echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30408if test $ac_cv_type_int64_t = yes; then
30409
30410cat >>confdefs.h <<_ACEOF
30411#define HAVE_INT64_T 1
30412_ACEOF
30413
30414
30415else
30416 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30417echo "$as_me: error: Type int64_t required but not found" >&2;}
30418 { (exit 1); exit 1; }; }
30419fi
30420
30421{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30422echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30423if test "${ac_cv_type_uint64_t+set}" = set; then
30424 echo $ECHO_N "(cached) $ECHO_C" >&6
30425else
30426 cat >conftest.$ac_ext <<_ACEOF
30427/* confdefs.h. */
30428_ACEOF
30429cat confdefs.h >>conftest.$ac_ext
30430cat >>conftest.$ac_ext <<_ACEOF
30431/* end confdefs.h. */
30432$ac_includes_default
30433typedef uint64_t ac__type_new_;
30434int
30435main ()
30436{
30437if ((ac__type_new_ *) 0)
30438 return 0;
30439if (sizeof (ac__type_new_))
30440 return 0;
30441 ;
30442 return 0;
30443}
30444_ACEOF
30445rm -f conftest.$ac_objext
30446if { (ac_try="$ac_compile"
30447case "(($ac_try" in
30448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30449 *) ac_try_echo=$ac_try;;
30450esac
30451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30452 (eval "$ac_compile") 2>conftest.er1
30453 ac_status=$?
30454 grep -v '^ *+' conftest.er1 >conftest.err
30455 rm -f conftest.er1
30456 cat conftest.err >&5
30457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030458 (exit $ac_status); } &&
30459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30460 { (case "(($ac_try" in
30461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30462 *) ac_try_echo=$ac_try;;
30463esac
30464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30465 (eval "$ac_try") 2>&5
30466 ac_status=$?
30467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468 (exit $ac_status); }; } &&
30469 { ac_try='test -s conftest.$ac_objext'
30470 { (case "(($ac_try" in
30471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30472 *) ac_try_echo=$ac_try;;
30473esac
30474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30475 (eval "$ac_try") 2>&5
30476 ac_status=$?
30477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030479 ac_cv_type_uint64_t=yes
30480else
30481 echo "$as_me: failed program was:" >&5
30482sed 's/^/| /' conftest.$ac_ext >&5
30483
30484 ac_cv_type_uint64_t=no
30485fi
30486
30487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30488fi
30489{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30490echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30491if test $ac_cv_type_uint64_t = yes; then
30492
30493cat >>confdefs.h <<_ACEOF
30494#define HAVE_UINT64_T 1
30495_ACEOF
30496
30497
30498else
30499 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30500echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30501if test "${ac_cv_type_u_int64_t+set}" = set; then
30502 echo $ECHO_N "(cached) $ECHO_C" >&6
30503else
30504 cat >conftest.$ac_ext <<_ACEOF
30505/* confdefs.h. */
30506_ACEOF
30507cat confdefs.h >>conftest.$ac_ext
30508cat >>conftest.$ac_ext <<_ACEOF
30509/* end confdefs.h. */
30510$ac_includes_default
30511typedef u_int64_t ac__type_new_;
30512int
30513main ()
30514{
30515if ((ac__type_new_ *) 0)
30516 return 0;
30517if (sizeof (ac__type_new_))
30518 return 0;
30519 ;
30520 return 0;
30521}
30522_ACEOF
30523rm -f conftest.$ac_objext
30524if { (ac_try="$ac_compile"
30525case "(($ac_try" in
30526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30527 *) ac_try_echo=$ac_try;;
30528esac
30529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30530 (eval "$ac_compile") 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
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030536 (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;;
30541esac
30542eval "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_objext'
30548 { (case "(($ac_try" in
30549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30550 *) ac_try_echo=$ac_try;;
30551esac
30552eval "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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030557 ac_cv_type_u_int64_t=yes
30558else
30559 echo "$as_me: failed program was:" >&5
30560sed 's/^/| /' conftest.$ac_ext >&5
30561
30562 ac_cv_type_u_int64_t=no
30563fi
30564
30565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30566fi
30567{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30568echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30569if test $ac_cv_type_u_int64_t = yes; then
30570
30571cat >>confdefs.h <<_ACEOF
30572#define HAVE_U_INT64_T 1
30573_ACEOF
30574
30575
30576else
30577 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30578echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30579 { (exit 1); exit 1; }; }
30580fi
30581
30582fi
30583
30584
30585
30586
30587
30588
30589
30590
30591
30592
30593for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30594do
30595as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30596{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30597echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30598if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30599 echo $ECHO_N "(cached) $ECHO_C" >&6
30600else
30601 cat >conftest.$ac_ext <<_ACEOF
30602/* confdefs.h. */
30603_ACEOF
30604cat confdefs.h >>conftest.$ac_ext
30605cat >>conftest.$ac_ext <<_ACEOF
30606/* end confdefs.h. */
30607/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30609#define $ac_func innocuous_$ac_func
30610
30611/* System header to define __stub macros and hopefully few prototypes,
30612 which can conflict with char $ac_func (); below.
30613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30614 <limits.h> exists even on freestanding compilers. */
30615
30616#ifdef __STDC__
30617# include <limits.h>
30618#else
30619# include <assert.h>
30620#endif
30621
30622#undef $ac_func
30623
30624/* Override any GCC internal prototype to avoid an error.
30625 Use char because int might match the return type of a GCC
30626 builtin and then its argument prototype would still apply. */
30627#ifdef __cplusplus
30628extern "C"
30629#endif
30630char $ac_func ();
30631/* The GNU C library defines this for functions which it implements
30632 to always fail with ENOSYS. Some functions are actually named
30633 something starting with __ and the normal name is an alias. */
30634#if defined __stub_$ac_func || defined __stub___$ac_func
30635choke me
30636#endif
30637
30638int
30639main ()
30640{
30641return $ac_func ();
30642 ;
30643 return 0;
30644}
30645_ACEOF
30646rm -f conftest.$ac_objext conftest$ac_exeext
30647if { (ac_try="$ac_link"
30648case "(($ac_try" in
30649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30650 *) ac_try_echo=$ac_try;;
30651esac
30652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30653 (eval "$ac_link") 2>conftest.er1
30654 ac_status=$?
30655 grep -v '^ *+' conftest.er1 >conftest.err
30656 rm -f conftest.er1
30657 cat conftest.err >&5
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030659 (exit $ac_status); } &&
30660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30661 { (case "(($ac_try" in
30662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30663 *) ac_try_echo=$ac_try;;
30664esac
30665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30666 (eval "$ac_try") 2>&5
30667 ac_status=$?
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); }; } &&
30670 { ac_try='test -s conftest$ac_exeext'
30671 { (case "(($ac_try" in
30672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30673 *) ac_try_echo=$ac_try;;
30674esac
30675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30676 (eval "$ac_try") 2>&5
30677 ac_status=$?
30678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030680 eval "$as_ac_var=yes"
30681else
30682 echo "$as_me: failed program was:" >&5
30683sed 's/^/| /' conftest.$ac_ext >&5
30684
30685 eval "$as_ac_var=no"
30686fi
30687
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030688rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030689 conftest$ac_exeext conftest.$ac_ext
30690fi
30691ac_res=`eval echo '${'$as_ac_var'}'`
30692 { echo "$as_me:$LINENO: result: $ac_res" >&5
30693echo "${ECHO_T}$ac_res" >&6; }
30694if test `eval echo '${'$as_ac_var'}'` = yes; then
30695 cat >>confdefs.h <<_ACEOF
30696#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30697_ACEOF
30698
30699fi
30700done
30701
30702
30703
30704
30705
30706for ac_func in powf fmodf strtof round
30707do
30708as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30709{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30710echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30711if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30712 echo $ECHO_N "(cached) $ECHO_C" >&6
30713else
30714 cat >conftest.$ac_ext <<_ACEOF
30715/* confdefs.h. */
30716_ACEOF
30717cat confdefs.h >>conftest.$ac_ext
30718cat >>conftest.$ac_ext <<_ACEOF
30719/* end confdefs.h. */
30720/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30722#define $ac_func innocuous_$ac_func
30723
30724/* System header to define __stub macros and hopefully few prototypes,
30725 which can conflict with char $ac_func (); below.
30726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30727 <limits.h> exists even on freestanding compilers. */
30728
30729#ifdef __STDC__
30730# include <limits.h>
30731#else
30732# include <assert.h>
30733#endif
30734
30735#undef $ac_func
30736
30737/* Override any GCC internal prototype to avoid an error.
30738 Use char because int might match the return type of a GCC
30739 builtin and then its argument prototype would still apply. */
30740#ifdef __cplusplus
30741extern "C"
30742#endif
30743char $ac_func ();
30744/* The GNU C library defines this for functions which it implements
30745 to always fail with ENOSYS. Some functions are actually named
30746 something starting with __ and the normal name is an alias. */
30747#if defined __stub_$ac_func || defined __stub___$ac_func
30748choke me
30749#endif
30750
30751int
30752main ()
30753{
30754return $ac_func ();
30755 ;
30756 return 0;
30757}
30758_ACEOF
30759rm -f conftest.$ac_objext conftest$ac_exeext
30760if { (ac_try="$ac_link"
30761case "(($ac_try" in
30762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30763 *) ac_try_echo=$ac_try;;
30764esac
30765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30766 (eval "$ac_link") 2>conftest.er1
30767 ac_status=$?
30768 grep -v '^ *+' conftest.er1 >conftest.err
30769 rm -f conftest.er1
30770 cat conftest.err >&5
30771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030772 (exit $ac_status); } &&
30773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30774 { (case "(($ac_try" in
30775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30776 *) ac_try_echo=$ac_try;;
30777esac
30778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30779 (eval "$ac_try") 2>&5
30780 ac_status=$?
30781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782 (exit $ac_status); }; } &&
30783 { ac_try='test -s conftest$ac_exeext'
30784 { (case "(($ac_try" in
30785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30786 *) ac_try_echo=$ac_try;;
30787esac
30788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30789 (eval "$ac_try") 2>&5
30790 ac_status=$?
30791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030793 eval "$as_ac_var=yes"
30794else
30795 echo "$as_me: failed program was:" >&5
30796sed 's/^/| /' conftest.$ac_ext >&5
30797
30798 eval "$as_ac_var=no"
30799fi
30800
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030801rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030802 conftest$ac_exeext conftest.$ac_ext
30803fi
30804ac_res=`eval echo '${'$as_ac_var'}'`
30805 { echo "$as_me:$LINENO: result: $ac_res" >&5
30806echo "${ECHO_T}$ac_res" >&6; }
30807if test `eval echo '${'$as_ac_var'}'` = yes; then
30808 cat >>confdefs.h <<_ACEOF
30809#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30810_ACEOF
30811
30812fi
30813done
30814
30815
30816
30817
30818
30819
30820for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30821do
30822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30823{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30825if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30826 echo $ECHO_N "(cached) $ECHO_C" >&6
30827else
30828 cat >conftest.$ac_ext <<_ACEOF
30829/* confdefs.h. */
30830_ACEOF
30831cat confdefs.h >>conftest.$ac_ext
30832cat >>conftest.$ac_ext <<_ACEOF
30833/* end confdefs.h. */
30834/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30836#define $ac_func innocuous_$ac_func
30837
30838/* System header to define __stub macros and hopefully few prototypes,
30839 which can conflict with char $ac_func (); below.
30840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30841 <limits.h> exists even on freestanding compilers. */
30842
30843#ifdef __STDC__
30844# include <limits.h>
30845#else
30846# include <assert.h>
30847#endif
30848
30849#undef $ac_func
30850
30851/* Override any GCC internal prototype to avoid an error.
30852 Use char because int might match the return type of a GCC
30853 builtin and then its argument prototype would still apply. */
30854#ifdef __cplusplus
30855extern "C"
30856#endif
30857char $ac_func ();
30858/* The GNU C library defines this for functions which it implements
30859 to always fail with ENOSYS. Some functions are actually named
30860 something starting with __ and the normal name is an alias. */
30861#if defined __stub_$ac_func || defined __stub___$ac_func
30862choke me
30863#endif
30864
30865int
30866main ()
30867{
30868return $ac_func ();
30869 ;
30870 return 0;
30871}
30872_ACEOF
30873rm -f conftest.$ac_objext conftest$ac_exeext
30874if { (ac_try="$ac_link"
30875case "(($ac_try" in
30876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30877 *) ac_try_echo=$ac_try;;
30878esac
30879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30880 (eval "$ac_link") 2>conftest.er1
30881 ac_status=$?
30882 grep -v '^ *+' conftest.er1 >conftest.err
30883 rm -f conftest.er1
30884 cat conftest.err >&5
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030886 (exit $ac_status); } &&
30887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30888 { (case "(($ac_try" in
30889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30890 *) ac_try_echo=$ac_try;;
30891esac
30892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30893 (eval "$ac_try") 2>&5
30894 ac_status=$?
30895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); }; } &&
30897 { ac_try='test -s conftest$ac_exeext'
30898 { (case "(($ac_try" in
30899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30900 *) ac_try_echo=$ac_try;;
30901esac
30902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30903 (eval "$ac_try") 2>&5
30904 ac_status=$?
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030907 eval "$as_ac_var=yes"
30908else
30909 echo "$as_me: failed program was:" >&5
30910sed 's/^/| /' conftest.$ac_ext >&5
30911
30912 eval "$as_ac_var=no"
30913fi
30914
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030915rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030916 conftest$ac_exeext conftest.$ac_ext
30917fi
30918ac_res=`eval echo '${'$as_ac_var'}'`
30919 { echo "$as_me:$LINENO: result: $ac_res" >&5
30920echo "${ECHO_T}$ac_res" >&6; }
30921if test `eval echo '${'$as_ac_var'}'` = yes; then
30922 cat >>confdefs.h <<_ACEOF
30923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30924_ACEOF
30925
30926fi
30927done
30928
30929
30930
30931
30932for ac_func in isatty mkdtemp mkstemp
30933do
30934as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30935{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30936echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30937if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30938 echo $ECHO_N "(cached) $ECHO_C" >&6
30939else
30940 cat >conftest.$ac_ext <<_ACEOF
30941/* confdefs.h. */
30942_ACEOF
30943cat confdefs.h >>conftest.$ac_ext
30944cat >>conftest.$ac_ext <<_ACEOF
30945/* end confdefs.h. */
30946/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30948#define $ac_func innocuous_$ac_func
30949
30950/* System header to define __stub macros and hopefully few prototypes,
30951 which can conflict with char $ac_func (); below.
30952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30953 <limits.h> exists even on freestanding compilers. */
30954
30955#ifdef __STDC__
30956# include <limits.h>
30957#else
30958# include <assert.h>
30959#endif
30960
30961#undef $ac_func
30962
30963/* Override any GCC internal prototype to avoid an error.
30964 Use char because int might match the return type of a GCC
30965 builtin and then its argument prototype would still apply. */
30966#ifdef __cplusplus
30967extern "C"
30968#endif
30969char $ac_func ();
30970/* The GNU C library defines this for functions which it implements
30971 to always fail with ENOSYS. Some functions are actually named
30972 something starting with __ and the normal name is an alias. */
30973#if defined __stub_$ac_func || defined __stub___$ac_func
30974choke me
30975#endif
30976
30977int
30978main ()
30979{
30980return $ac_func ();
30981 ;
30982 return 0;
30983}
30984_ACEOF
30985rm -f conftest.$ac_objext conftest$ac_exeext
30986if { (ac_try="$ac_link"
30987case "(($ac_try" in
30988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30989 *) ac_try_echo=$ac_try;;
30990esac
30991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30992 (eval "$ac_link") 2>conftest.er1
30993 ac_status=$?
30994 grep -v '^ *+' conftest.er1 >conftest.err
30995 rm -f conftest.er1
30996 cat conftest.err >&5
30997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030998 (exit $ac_status); } &&
30999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31000 { (case "(($ac_try" in
31001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31002 *) ac_try_echo=$ac_try;;
31003esac
31004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31005 (eval "$ac_try") 2>&5
31006 ac_status=$?
31007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31008 (exit $ac_status); }; } &&
31009 { ac_try='test -s conftest$ac_exeext'
31010 { (case "(($ac_try" in
31011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31012 *) ac_try_echo=$ac_try;;
31013esac
31014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31015 (eval "$ac_try") 2>&5
31016 ac_status=$?
31017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31018 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031019 eval "$as_ac_var=yes"
31020else
31021 echo "$as_me: failed program was:" >&5
31022sed 's/^/| /' conftest.$ac_ext >&5
31023
31024 eval "$as_ac_var=no"
31025fi
31026
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031027rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031028 conftest$ac_exeext conftest.$ac_ext
31029fi
31030ac_res=`eval echo '${'$as_ac_var'}'`
31031 { echo "$as_me:$LINENO: result: $ac_res" >&5
31032echo "${ECHO_T}$ac_res" >&6; }
31033if test `eval echo '${'$as_ac_var'}'` = yes; then
31034 cat >>confdefs.h <<_ACEOF
31035#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31036_ACEOF
31037
31038fi
31039done
31040
31041
31042
31043
31044
31045
31046
31047
31048for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31049do
31050as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31051{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31052echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31053if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31054 echo $ECHO_N "(cached) $ECHO_C" >&6
31055else
31056 cat >conftest.$ac_ext <<_ACEOF
31057/* confdefs.h. */
31058_ACEOF
31059cat confdefs.h >>conftest.$ac_ext
31060cat >>conftest.$ac_ext <<_ACEOF
31061/* end confdefs.h. */
31062/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31064#define $ac_func innocuous_$ac_func
31065
31066/* System header to define __stub macros and hopefully few prototypes,
31067 which can conflict with char $ac_func (); below.
31068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31069 <limits.h> exists even on freestanding compilers. */
31070
31071#ifdef __STDC__
31072# include <limits.h>
31073#else
31074# include <assert.h>
31075#endif
31076
31077#undef $ac_func
31078
31079/* Override any GCC internal prototype to avoid an error.
31080 Use char because int might match the return type of a GCC
31081 builtin and then its argument prototype would still apply. */
31082#ifdef __cplusplus
31083extern "C"
31084#endif
31085char $ac_func ();
31086/* The GNU C library defines this for functions which it implements
31087 to always fail with ENOSYS. Some functions are actually named
31088 something starting with __ and the normal name is an alias. */
31089#if defined __stub_$ac_func || defined __stub___$ac_func
31090choke me
31091#endif
31092
31093int
31094main ()
31095{
31096return $ac_func ();
31097 ;
31098 return 0;
31099}
31100_ACEOF
31101rm -f conftest.$ac_objext conftest$ac_exeext
31102if { (ac_try="$ac_link"
31103case "(($ac_try" in
31104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31105 *) ac_try_echo=$ac_try;;
31106esac
31107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31108 (eval "$ac_link") 2>conftest.er1
31109 ac_status=$?
31110 grep -v '^ *+' conftest.er1 >conftest.err
31111 rm -f conftest.er1
31112 cat conftest.err >&5
31113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031114 (exit $ac_status); } &&
31115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31116 { (case "(($ac_try" in
31117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31118 *) ac_try_echo=$ac_try;;
31119esac
31120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31121 (eval "$ac_try") 2>&5
31122 ac_status=$?
31123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124 (exit $ac_status); }; } &&
31125 { ac_try='test -s conftest$ac_exeext'
31126 { (case "(($ac_try" in
31127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31128 *) ac_try_echo=$ac_try;;
31129esac
31130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31131 (eval "$ac_try") 2>&5
31132 ac_status=$?
31133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031135 eval "$as_ac_var=yes"
31136else
31137 echo "$as_me: failed program was:" >&5
31138sed 's/^/| /' conftest.$ac_ext >&5
31139
31140 eval "$as_ac_var=no"
31141fi
31142
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031143rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031144 conftest$ac_exeext conftest.$ac_ext
31145fi
31146ac_res=`eval echo '${'$as_ac_var'}'`
31147 { echo "$as_me:$LINENO: result: $ac_res" >&5
31148echo "${ECHO_T}$ac_res" >&6; }
31149if test `eval echo '${'$as_ac_var'}'` = yes; then
31150 cat >>confdefs.h <<_ACEOF
31151#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31152_ACEOF
31153
31154fi
31155done
31156
31157
31158
31159
31160
31161for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31162do
31163as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31164{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31165echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31166if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31167 echo $ECHO_N "(cached) $ECHO_C" >&6
31168else
31169 cat >conftest.$ac_ext <<_ACEOF
31170/* confdefs.h. */
31171_ACEOF
31172cat confdefs.h >>conftest.$ac_ext
31173cat >>conftest.$ac_ext <<_ACEOF
31174/* end confdefs.h. */
31175/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31177#define $ac_func innocuous_$ac_func
31178
31179/* System header to define __stub macros and hopefully few prototypes,
31180 which can conflict with char $ac_func (); below.
31181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31182 <limits.h> exists even on freestanding compilers. */
31183
31184#ifdef __STDC__
31185# include <limits.h>
31186#else
31187# include <assert.h>
31188#endif
31189
31190#undef $ac_func
31191
31192/* Override any GCC internal prototype to avoid an error.
31193 Use char because int might match the return type of a GCC
31194 builtin and then its argument prototype would still apply. */
31195#ifdef __cplusplus
31196extern "C"
31197#endif
31198char $ac_func ();
31199/* The GNU C library defines this for functions which it implements
31200 to always fail with ENOSYS. Some functions are actually named
31201 something starting with __ and the normal name is an alias. */
31202#if defined __stub_$ac_func || defined __stub___$ac_func
31203choke me
31204#endif
31205
31206int
31207main ()
31208{
31209return $ac_func ();
31210 ;
31211 return 0;
31212}
31213_ACEOF
31214rm -f conftest.$ac_objext conftest$ac_exeext
31215if { (ac_try="$ac_link"
31216case "(($ac_try" in
31217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31218 *) ac_try_echo=$ac_try;;
31219esac
31220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31221 (eval "$ac_link") 2>conftest.er1
31222 ac_status=$?
31223 grep -v '^ *+' conftest.er1 >conftest.err
31224 rm -f conftest.er1
31225 cat conftest.err >&5
31226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031227 (exit $ac_status); } &&
31228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31229 { (case "(($ac_try" in
31230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31231 *) ac_try_echo=$ac_try;;
31232esac
31233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31234 (eval "$ac_try") 2>&5
31235 ac_status=$?
31236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237 (exit $ac_status); }; } &&
31238 { ac_try='test -s conftest$ac_exeext'
31239 { (case "(($ac_try" in
31240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31241 *) ac_try_echo=$ac_try;;
31242esac
31243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31244 (eval "$ac_try") 2>&5
31245 ac_status=$?
31246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31247 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031248 eval "$as_ac_var=yes"
31249else
31250 echo "$as_me: failed program was:" >&5
31251sed 's/^/| /' conftest.$ac_ext >&5
31252
31253 eval "$as_ac_var=no"
31254fi
31255
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031256rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031257 conftest$ac_exeext conftest.$ac_ext
31258fi
31259ac_res=`eval echo '${'$as_ac_var'}'`
31260 { echo "$as_me:$LINENO: result: $ac_res" >&5
31261echo "${ECHO_T}$ac_res" >&6; }
31262if test `eval echo '${'$as_ac_var'}'` = yes; then
31263 cat >>confdefs.h <<_ACEOF
31264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31265_ACEOF
31266
31267fi
31268done
31269
31270
31271
31272
31273
31274for ac_func in setjmp longjmp sigsetjmp siglongjmp
31275do
31276as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31277{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31278echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31279if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31280 echo $ECHO_N "(cached) $ECHO_C" >&6
31281else
31282 cat >conftest.$ac_ext <<_ACEOF
31283/* confdefs.h. */
31284_ACEOF
31285cat confdefs.h >>conftest.$ac_ext
31286cat >>conftest.$ac_ext <<_ACEOF
31287/* end confdefs.h. */
31288/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31290#define $ac_func innocuous_$ac_func
31291
31292/* System header to define __stub macros and hopefully few prototypes,
31293 which can conflict with char $ac_func (); below.
31294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31295 <limits.h> exists even on freestanding compilers. */
31296
31297#ifdef __STDC__
31298# include <limits.h>
31299#else
31300# include <assert.h>
31301#endif
31302
31303#undef $ac_func
31304
31305/* Override any GCC internal prototype to avoid an error.
31306 Use char because int might match the return type of a GCC
31307 builtin and then its argument prototype would still apply. */
31308#ifdef __cplusplus
31309extern "C"
31310#endif
31311char $ac_func ();
31312/* The GNU C library defines this for functions which it implements
31313 to always fail with ENOSYS. Some functions are actually named
31314 something starting with __ and the normal name is an alias. */
31315#if defined __stub_$ac_func || defined __stub___$ac_func
31316choke me
31317#endif
31318
31319int
31320main ()
31321{
31322return $ac_func ();
31323 ;
31324 return 0;
31325}
31326_ACEOF
31327rm -f conftest.$ac_objext conftest$ac_exeext
31328if { (ac_try="$ac_link"
31329case "(($ac_try" in
31330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31331 *) ac_try_echo=$ac_try;;
31332esac
31333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31334 (eval "$ac_link") 2>conftest.er1
31335 ac_status=$?
31336 grep -v '^ *+' conftest.er1 >conftest.err
31337 rm -f conftest.er1
31338 cat conftest.err >&5
31339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031340 (exit $ac_status); } &&
31341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31342 { (case "(($ac_try" in
31343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344 *) ac_try_echo=$ac_try;;
31345esac
31346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31347 (eval "$ac_try") 2>&5
31348 ac_status=$?
31349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31350 (exit $ac_status); }; } &&
31351 { ac_try='test -s conftest$ac_exeext'
31352 { (case "(($ac_try" in
31353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31354 *) ac_try_echo=$ac_try;;
31355esac
31356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31357 (eval "$ac_try") 2>&5
31358 ac_status=$?
31359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031361 eval "$as_ac_var=yes"
31362else
31363 echo "$as_me: failed program was:" >&5
31364sed 's/^/| /' conftest.$ac_ext >&5
31365
31366 eval "$as_ac_var=no"
31367fi
31368
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031369rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031370 conftest$ac_exeext conftest.$ac_ext
31371fi
31372ac_res=`eval echo '${'$as_ac_var'}'`
31373 { echo "$as_me:$LINENO: result: $ac_res" >&5
31374echo "${ECHO_T}$ac_res" >&6; }
31375if test `eval echo '${'$as_ac_var'}'` = yes; then
31376 cat >>confdefs.h <<_ACEOF
31377#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31378_ACEOF
31379
31380fi
31381done
31382
31383{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31384echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31385if test "${llvm_cv_c_printf_a+set}" = set; then
31386 echo $ECHO_N "(cached) $ECHO_C" >&6
31387else
31388 ac_ext=c
31389ac_cpp='$CPP $CPPFLAGS'
31390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31392ac_compiler_gnu=$ac_cv_c_compiler_gnu
31393
31394 if test "$cross_compiling" = yes; then
31395 llvmac_cv_c_printf_a=no
31396else
31397 cat >conftest.$ac_ext <<_ACEOF
31398
31399 /* confdefs.h. */
31400_ACEOF
31401cat confdefs.h >>conftest.$ac_ext
31402cat >>conftest.$ac_ext <<_ACEOF
31403/* end confdefs.h. */
31404
31405#include <stdio.h>
31406#include <stdlib.h>
31407
31408int
31409main ()
31410{
31411
31412volatile double A, B;
31413char Buffer[100];
31414A = 1;
31415A /= 10.0;
31416sprintf(Buffer, "%a", A);
31417B = atof(Buffer);
31418if (A != B)
31419 return (1);
31420if (A != 0x1.999999999999ap-4)
31421 return (1);
31422return (0);
31423 ;
31424 return 0;
31425}
31426_ACEOF
31427rm -f conftest$ac_exeext
31428if { (ac_try="$ac_link"
31429case "(($ac_try" in
31430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431 *) ac_try_echo=$ac_try;;
31432esac
31433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434 (eval "$ac_link") 2>&5
31435 ac_status=$?
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31438 { (case "(($ac_try" in
31439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31440 *) ac_try_echo=$ac_try;;
31441esac
31442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31443 (eval "$ac_try") 2>&5
31444 ac_status=$?
31445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31446 (exit $ac_status); }; }; then
31447 llvm_cv_c_printf_a=yes
31448else
31449 echo "$as_me: program exited with status $ac_status" >&5
31450echo "$as_me: failed program was:" >&5
31451sed 's/^/| /' conftest.$ac_ext >&5
31452
31453( exit $ac_status )
31454llvmac_cv_c_printf_a=no
31455fi
31456rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31457fi
31458
31459
31460 ac_ext=c
31461ac_cpp='$CPP $CPPFLAGS'
31462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31464ac_compiler_gnu=$ac_cv_c_compiler_gnu
31465
31466fi
31467{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31468echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31469 if test "$llvm_cv_c_printf_a" = "yes"; then
31470
31471cat >>confdefs.h <<\_ACEOF
31472#define HAVE_PRINTF_A 1
31473_ACEOF
31474
31475 fi
31476
31477# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31478# for constant arguments. Useless!
31479{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31480echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31481if test "${ac_cv_working_alloca_h+set}" = set; then
31482 echo $ECHO_N "(cached) $ECHO_C" >&6
31483else
31484 cat >conftest.$ac_ext <<_ACEOF
31485/* confdefs.h. */
31486_ACEOF
31487cat confdefs.h >>conftest.$ac_ext
31488cat >>conftest.$ac_ext <<_ACEOF
31489/* end confdefs.h. */
31490#include <alloca.h>
31491int
31492main ()
31493{
31494char *p = (char *) alloca (2 * sizeof (int));
31495 if (p) return 0;
31496 ;
31497 return 0;
31498}
31499_ACEOF
31500rm -f conftest.$ac_objext conftest$ac_exeext
31501if { (ac_try="$ac_link"
31502case "(($ac_try" in
31503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31504 *) ac_try_echo=$ac_try;;
31505esac
31506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31507 (eval "$ac_link") 2>conftest.er1
31508 ac_status=$?
31509 grep -v '^ *+' conftest.er1 >conftest.err
31510 rm -f conftest.er1
31511 cat conftest.err >&5
31512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031513 (exit $ac_status); } &&
31514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31515 { (case "(($ac_try" in
31516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31517 *) ac_try_echo=$ac_try;;
31518esac
31519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31520 (eval "$ac_try") 2>&5
31521 ac_status=$?
31522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523 (exit $ac_status); }; } &&
31524 { ac_try='test -s conftest$ac_exeext'
31525 { (case "(($ac_try" in
31526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31527 *) ac_try_echo=$ac_try;;
31528esac
31529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31530 (eval "$ac_try") 2>&5
31531 ac_status=$?
31532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031534 ac_cv_working_alloca_h=yes
31535else
31536 echo "$as_me: failed program was:" >&5
31537sed 's/^/| /' conftest.$ac_ext >&5
31538
31539 ac_cv_working_alloca_h=no
31540fi
31541
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031542rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031543 conftest$ac_exeext conftest.$ac_ext
31544fi
31545{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31546echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31547if test $ac_cv_working_alloca_h = yes; then
31548
31549cat >>confdefs.h <<\_ACEOF
31550#define HAVE_ALLOCA_H 1
31551_ACEOF
31552
31553fi
31554
31555{ echo "$as_me:$LINENO: checking for alloca" >&5
31556echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31557if test "${ac_cv_func_alloca_works+set}" = set; then
31558 echo $ECHO_N "(cached) $ECHO_C" >&6
31559else
31560 cat >conftest.$ac_ext <<_ACEOF
31561/* confdefs.h. */
31562_ACEOF
31563cat confdefs.h >>conftest.$ac_ext
31564cat >>conftest.$ac_ext <<_ACEOF
31565/* end confdefs.h. */
31566#ifdef __GNUC__
31567# define alloca __builtin_alloca
31568#else
31569# ifdef _MSC_VER
31570# include <malloc.h>
31571# define alloca _alloca
31572# else
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031573# if HAVE_ALLOCA_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031574# include <alloca.h>
31575# else
31576# ifdef _AIX
31577 #pragma alloca
31578# else
31579# ifndef alloca /* predefined by HP cc +Olibcalls */
31580char *alloca ();
31581# endif
31582# endif
31583# endif
31584# endif
31585#endif
31586
31587int
31588main ()
31589{
31590char *p = (char *) alloca (1);
31591 if (p) return 0;
31592 ;
31593 return 0;
31594}
31595_ACEOF
31596rm -f conftest.$ac_objext conftest$ac_exeext
31597if { (ac_try="$ac_link"
31598case "(($ac_try" in
31599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31600 *) ac_try_echo=$ac_try;;
31601esac
31602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31603 (eval "$ac_link") 2>conftest.er1
31604 ac_status=$?
31605 grep -v '^ *+' conftest.er1 >conftest.err
31606 rm -f conftest.er1
31607 cat conftest.err >&5
31608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031609 (exit $ac_status); } &&
31610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31611 { (case "(($ac_try" in
31612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31613 *) ac_try_echo=$ac_try;;
31614esac
31615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31616 (eval "$ac_try") 2>&5
31617 ac_status=$?
31618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619 (exit $ac_status); }; } &&
31620 { ac_try='test -s conftest$ac_exeext'
31621 { (case "(($ac_try" in
31622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31623 *) ac_try_echo=$ac_try;;
31624esac
31625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31626 (eval "$ac_try") 2>&5
31627 ac_status=$?
31628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031630 ac_cv_func_alloca_works=yes
31631else
31632 echo "$as_me: failed program was:" >&5
31633sed 's/^/| /' conftest.$ac_ext >&5
31634
31635 ac_cv_func_alloca_works=no
31636fi
31637
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031638rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031639 conftest$ac_exeext conftest.$ac_ext
31640fi
31641{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31642echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31643
31644if test $ac_cv_func_alloca_works = yes; then
31645
31646cat >>confdefs.h <<\_ACEOF
31647#define HAVE_ALLOCA 1
31648_ACEOF
31649
31650else
31651 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31652# that cause trouble. Some versions do not even contain alloca or
31653# contain a buggy version. If you still want to use their alloca,
31654# use ar to extract alloca.o from them instead of compiling alloca.c.
31655
31656ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31657
31658cat >>confdefs.h <<\_ACEOF
31659#define C_ALLOCA 1
31660_ACEOF
31661
31662
31663{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31664echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31665if test "${ac_cv_os_cray+set}" = set; then
31666 echo $ECHO_N "(cached) $ECHO_C" >&6
31667else
31668 cat >conftest.$ac_ext <<_ACEOF
31669/* confdefs.h. */
31670_ACEOF
31671cat confdefs.h >>conftest.$ac_ext
31672cat >>conftest.$ac_ext <<_ACEOF
31673/* end confdefs.h. */
31674#if defined CRAY && ! defined CRAY2
31675webecray
31676#else
31677wenotbecray
31678#endif
31679
31680_ACEOF
31681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31682 $EGREP "webecray" >/dev/null 2>&1; then
31683 ac_cv_os_cray=yes
31684else
31685 ac_cv_os_cray=no
31686fi
31687rm -f conftest*
31688
31689fi
31690{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31691echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31692if test $ac_cv_os_cray = yes; then
31693 for ac_func in _getb67 GETB67 getb67; do
31694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31695{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31696echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31697if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31698 echo $ECHO_N "(cached) $ECHO_C" >&6
31699else
31700 cat >conftest.$ac_ext <<_ACEOF
31701/* confdefs.h. */
31702_ACEOF
31703cat confdefs.h >>conftest.$ac_ext
31704cat >>conftest.$ac_ext <<_ACEOF
31705/* end confdefs.h. */
31706/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31708#define $ac_func innocuous_$ac_func
31709
31710/* System header to define __stub macros and hopefully few prototypes,
31711 which can conflict with char $ac_func (); below.
31712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31713 <limits.h> exists even on freestanding compilers. */
31714
31715#ifdef __STDC__
31716# include <limits.h>
31717#else
31718# include <assert.h>
31719#endif
31720
31721#undef $ac_func
31722
31723/* Override any GCC internal prototype to avoid an error.
31724 Use char because int might match the return type of a GCC
31725 builtin and then its argument prototype would still apply. */
31726#ifdef __cplusplus
31727extern "C"
31728#endif
31729char $ac_func ();
31730/* The GNU C library defines this for functions which it implements
31731 to always fail with ENOSYS. Some functions are actually named
31732 something starting with __ and the normal name is an alias. */
31733#if defined __stub_$ac_func || defined __stub___$ac_func
31734choke me
31735#endif
31736
31737int
31738main ()
31739{
31740return $ac_func ();
31741 ;
31742 return 0;
31743}
31744_ACEOF
31745rm -f conftest.$ac_objext conftest$ac_exeext
31746if { (ac_try="$ac_link"
31747case "(($ac_try" in
31748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31749 *) ac_try_echo=$ac_try;;
31750esac
31751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31752 (eval "$ac_link") 2>conftest.er1
31753 ac_status=$?
31754 grep -v '^ *+' conftest.er1 >conftest.err
31755 rm -f conftest.er1
31756 cat conftest.err >&5
31757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031758 (exit $ac_status); } &&
31759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31760 { (case "(($ac_try" in
31761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31762 *) ac_try_echo=$ac_try;;
31763esac
31764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31765 (eval "$ac_try") 2>&5
31766 ac_status=$?
31767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31768 (exit $ac_status); }; } &&
31769 { ac_try='test -s conftest$ac_exeext'
31770 { (case "(($ac_try" in
31771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31772 *) ac_try_echo=$ac_try;;
31773esac
31774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31775 (eval "$ac_try") 2>&5
31776 ac_status=$?
31777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031779 eval "$as_ac_var=yes"
31780else
31781 echo "$as_me: failed program was:" >&5
31782sed 's/^/| /' conftest.$ac_ext >&5
31783
31784 eval "$as_ac_var=no"
31785fi
31786
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031787rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031788 conftest$ac_exeext conftest.$ac_ext
31789fi
31790ac_res=`eval echo '${'$as_ac_var'}'`
31791 { echo "$as_me:$LINENO: result: $ac_res" >&5
31792echo "${ECHO_T}$ac_res" >&6; }
31793if test `eval echo '${'$as_ac_var'}'` = yes; then
31794
31795cat >>confdefs.h <<_ACEOF
31796#define CRAY_STACKSEG_END $ac_func
31797_ACEOF
31798
31799 break
31800fi
31801
31802 done
31803fi
31804
31805{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31806echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31807if test "${ac_cv_c_stack_direction+set}" = set; then
31808 echo $ECHO_N "(cached) $ECHO_C" >&6
31809else
31810 if test "$cross_compiling" = yes; then
31811 ac_cv_c_stack_direction=0
31812else
31813 cat >conftest.$ac_ext <<_ACEOF
31814/* confdefs.h. */
31815_ACEOF
31816cat confdefs.h >>conftest.$ac_ext
31817cat >>conftest.$ac_ext <<_ACEOF
31818/* end confdefs.h. */
31819$ac_includes_default
31820int
31821find_stack_direction ()
31822{
31823 static char *addr = 0;
31824 auto char dummy;
31825 if (addr == 0)
31826 {
31827 addr = &dummy;
31828 return find_stack_direction ();
31829 }
31830 else
31831 return (&dummy > addr) ? 1 : -1;
31832}
31833
31834int
31835main ()
31836{
31837 return find_stack_direction () < 0;
31838}
31839_ACEOF
31840rm -f conftest$ac_exeext
31841if { (ac_try="$ac_link"
31842case "(($ac_try" in
31843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31844 *) ac_try_echo=$ac_try;;
31845esac
31846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847 (eval "$ac_link") 2>&5
31848 ac_status=$?
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31851 { (case "(($ac_try" in
31852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31853 *) ac_try_echo=$ac_try;;
31854esac
31855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31856 (eval "$ac_try") 2>&5
31857 ac_status=$?
31858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31859 (exit $ac_status); }; }; then
31860 ac_cv_c_stack_direction=1
31861else
31862 echo "$as_me: program exited with status $ac_status" >&5
31863echo "$as_me: failed program was:" >&5
31864sed 's/^/| /' conftest.$ac_ext >&5
31865
31866( exit $ac_status )
31867ac_cv_c_stack_direction=-1
31868fi
31869rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31870fi
31871
31872
31873fi
31874{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31875echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31876
31877cat >>confdefs.h <<_ACEOF
31878#define STACK_DIRECTION $ac_cv_c_stack_direction
31879_ACEOF
31880
31881
31882fi
31883
31884
31885{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31886echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31887if test "${ac_cv_func_rand48+set}" = set; then
31888 echo $ECHO_N "(cached) $ECHO_C" >&6
31889else
31890 ac_ext=cpp
31891ac_cpp='$CXXCPP $CPPFLAGS'
31892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31895
31896 cat >conftest.$ac_ext <<_ACEOF
31897/* confdefs.h. */
31898_ACEOF
31899cat confdefs.h >>conftest.$ac_ext
31900cat >>conftest.$ac_ext <<_ACEOF
31901/* end confdefs.h. */
31902#include <stdlib.h>
31903int
31904main ()
31905{
31906srand48(0);lrand48();drand48();
31907 ;
31908 return 0;
31909}
31910_ACEOF
31911rm -f conftest.$ac_objext
31912if { (ac_try="$ac_compile"
31913case "(($ac_try" in
31914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915 *) ac_try_echo=$ac_try;;
31916esac
31917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31918 (eval "$ac_compile") 2>conftest.er1
31919 ac_status=$?
31920 grep -v '^ *+' conftest.er1 >conftest.err
31921 rm -f conftest.er1
31922 cat conftest.err >&5
31923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031924 (exit $ac_status); } &&
31925 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31926 { (case "(($ac_try" in
31927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31928 *) ac_try_echo=$ac_try;;
31929esac
31930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31931 (eval "$ac_try") 2>&5
31932 ac_status=$?
31933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934 (exit $ac_status); }; } &&
31935 { ac_try='test -s conftest.$ac_objext'
31936 { (case "(($ac_try" in
31937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31938 *) ac_try_echo=$ac_try;;
31939esac
31940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31941 (eval "$ac_try") 2>&5
31942 ac_status=$?
31943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031945 ac_cv_func_rand48=yes
31946else
31947 echo "$as_me: failed program was:" >&5
31948sed 's/^/| /' conftest.$ac_ext >&5
31949
31950 ac_cv_func_rand48=no
31951fi
31952
31953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31954 ac_ext=c
31955ac_cpp='$CPP $CPPFLAGS'
31956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31958ac_compiler_gnu=$ac_cv_c_compiler_gnu
31959
31960fi
31961{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31962echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31963
31964if test "$ac_cv_func_rand48" = "yes" ; then
31965
31966cat >>confdefs.h <<\_ACEOF
31967#define HAVE_RAND48 1
31968_ACEOF
31969
31970fi
31971
31972
31973{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31974echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31975if test "${ac_cv_cxx_namespaces+set}" = set; then
31976 echo $ECHO_N "(cached) $ECHO_C" >&6
31977else
31978 ac_ext=cpp
31979ac_cpp='$CXXCPP $CPPFLAGS'
31980ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31981ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31982ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31983
31984 cat >conftest.$ac_ext <<_ACEOF
31985/* confdefs.h. */
31986_ACEOF
31987cat confdefs.h >>conftest.$ac_ext
31988cat >>conftest.$ac_ext <<_ACEOF
31989/* end confdefs.h. */
31990namespace Outer { namespace Inner { int i = 0; }}
31991int
31992main ()
31993{
31994using namespace Outer::Inner; return i;
31995 ;
31996 return 0;
31997}
31998_ACEOF
31999rm -f conftest.$ac_objext
32000if { (ac_try="$ac_compile"
32001case "(($ac_try" in
32002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32003 *) ac_try_echo=$ac_try;;
32004esac
32005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32006 (eval "$ac_compile") 2>conftest.er1
32007 ac_status=$?
32008 grep -v '^ *+' conftest.er1 >conftest.err
32009 rm -f conftest.er1
32010 cat conftest.err >&5
32011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032012 (exit $ac_status); } &&
32013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32014 { (case "(($ac_try" in
32015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32016 *) ac_try_echo=$ac_try;;
32017esac
32018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32019 (eval "$ac_try") 2>&5
32020 ac_status=$?
32021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022 (exit $ac_status); }; } &&
32023 { ac_try='test -s conftest.$ac_objext'
32024 { (case "(($ac_try" in
32025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026 *) ac_try_echo=$ac_try;;
32027esac
32028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029 (eval "$ac_try") 2>&5
32030 ac_status=$?
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032033 ac_cv_cxx_namespaces=yes
32034else
32035 echo "$as_me: failed program was:" >&5
32036sed 's/^/| /' conftest.$ac_ext >&5
32037
32038 ac_cv_cxx_namespaces=no
32039fi
32040
32041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32042 ac_ext=c
32043ac_cpp='$CPP $CPPFLAGS'
32044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32046ac_compiler_gnu=$ac_cv_c_compiler_gnu
32047
32048
32049fi
32050{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32051echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32052if test "$ac_cv_cxx_namespaces" = yes; then
32053
32054cat >>confdefs.h <<\_ACEOF
32055#define HAVE_NAMESPACES
32056_ACEOF
32057
32058fi
32059
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032060{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32061echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32062if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32063 echo $ECHO_N "(cached) $ECHO_C" >&6
32064else
32065
32066 ac_ext=cpp
32067ac_cpp='$CXXCPP $CPPFLAGS'
32068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32071
32072 cat >conftest.$ac_ext <<_ACEOF
32073/* confdefs.h. */
32074_ACEOF
32075cat confdefs.h >>conftest.$ac_ext
32076cat >>conftest.$ac_ext <<_ACEOF
32077/* end confdefs.h. */
32078#include <iterator>
32079#ifdef HAVE_NAMESPACES
32080using namespace std;
32081#endif
32082int
32083main ()
32084{
32085iterator<int,int,int> t; return 0;
32086 ;
32087 return 0;
32088}
32089_ACEOF
32090rm -f conftest.$ac_objext
32091if { (ac_try="$ac_compile"
32092case "(($ac_try" in
32093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32094 *) ac_try_echo=$ac_try;;
32095esac
32096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32097 (eval "$ac_compile") 2>conftest.er1
32098 ac_status=$?
32099 grep -v '^ *+' conftest.er1 >conftest.err
32100 rm -f conftest.er1
32101 cat conftest.err >&5
32102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032103 (exit $ac_status); } &&
32104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32105 { (case "(($ac_try" in
32106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32107 *) ac_try_echo=$ac_try;;
32108esac
32109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32110 (eval "$ac_try") 2>&5
32111 ac_status=$?
32112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113 (exit $ac_status); }; } &&
32114 { ac_try='test -s conftest.$ac_objext'
32115 { (case "(($ac_try" in
32116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32117 *) ac_try_echo=$ac_try;;
32118esac
32119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32120 (eval "$ac_try") 2>&5
32121 ac_status=$?
32122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32123 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032124 ac_cv_cxx_have_std_iterator=yes
32125else
32126 echo "$as_me: failed program was:" >&5
32127sed 's/^/| /' conftest.$ac_ext >&5
32128
32129 ac_cv_cxx_have_std_iterator=no
32130fi
32131
32132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32133 ac_ext=c
32134ac_cpp='$CPP $CPPFLAGS'
32135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32137ac_compiler_gnu=$ac_cv_c_compiler_gnu
32138
32139
32140fi
32141{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32142echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32143if test "$ac_cv_cxx_have_std_iterator" = yes
32144then
32145
32146cat >>confdefs.h <<\_ACEOF
32147#define HAVE_STD_ITERATOR 1
32148_ACEOF
32149
32150else
32151
32152cat >>confdefs.h <<\_ACEOF
32153#define HAVE_STD_ITERATOR 0
32154_ACEOF
32155
32156fi
32157
32158{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32159echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32160if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32161 echo $ECHO_N "(cached) $ECHO_C" >&6
32162else
32163
32164 ac_ext=cpp
32165ac_cpp='$CXXCPP $CPPFLAGS'
32166ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32167ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32168ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32169
32170 cat >conftest.$ac_ext <<_ACEOF
32171/* confdefs.h. */
32172_ACEOF
32173cat confdefs.h >>conftest.$ac_ext
32174cat >>conftest.$ac_ext <<_ACEOF
32175/* end confdefs.h. */
32176#include <iterator>
32177#ifdef HAVE_NAMESPACES
32178using namespace std;
32179#endif
32180int
32181main ()
32182{
32183bidirectional_iterator<int,int> t; return 0;
32184 ;
32185 return 0;
32186}
32187_ACEOF
32188rm -f conftest.$ac_objext
32189if { (ac_try="$ac_compile"
32190case "(($ac_try" in
32191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32192 *) ac_try_echo=$ac_try;;
32193esac
32194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32195 (eval "$ac_compile") 2>conftest.er1
32196 ac_status=$?
32197 grep -v '^ *+' conftest.er1 >conftest.err
32198 rm -f conftest.er1
32199 cat conftest.err >&5
32200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032201 (exit $ac_status); } &&
32202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32203 { (case "(($ac_try" in
32204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32205 *) ac_try_echo=$ac_try;;
32206esac
32207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32208 (eval "$ac_try") 2>&5
32209 ac_status=$?
32210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211 (exit $ac_status); }; } &&
32212 { ac_try='test -s conftest.$ac_objext'
32213 { (case "(($ac_try" in
32214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215 *) ac_try_echo=$ac_try;;
32216esac
32217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218 (eval "$ac_try") 2>&5
32219 ac_status=$?
32220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032222 ac_cv_cxx_have_bi_iterator=yes
32223else
32224 echo "$as_me: failed program was:" >&5
32225sed 's/^/| /' conftest.$ac_ext >&5
32226
32227 ac_cv_cxx_have_bi_iterator=no
32228fi
32229
32230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32231 ac_ext=c
32232ac_cpp='$CPP $CPPFLAGS'
32233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32235ac_compiler_gnu=$ac_cv_c_compiler_gnu
32236
32237
32238fi
32239{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32240echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32241if test "$ac_cv_cxx_have_bi_iterator" = yes
32242then
32243
32244cat >>confdefs.h <<\_ACEOF
32245#define HAVE_BI_ITERATOR 1
32246_ACEOF
32247
32248else
32249
32250cat >>confdefs.h <<\_ACEOF
32251#define HAVE_BI_ITERATOR 0
32252_ACEOF
32253
32254fi
32255
32256{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32257echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32258if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32259 echo $ECHO_N "(cached) $ECHO_C" >&6
32260else
32261
32262 ac_ext=cpp
32263ac_cpp='$CXXCPP $CPPFLAGS'
32264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32267
32268 cat >conftest.$ac_ext <<_ACEOF
32269/* confdefs.h. */
32270_ACEOF
32271cat confdefs.h >>conftest.$ac_ext
32272cat >>conftest.$ac_ext <<_ACEOF
32273/* end confdefs.h. */
32274#include <iterator>
32275#ifdef HAVE_NAMESPACES
32276using namespace std;
32277#endif
32278int
32279main ()
32280{
32281forward_iterator<int,int> t; return 0;
32282 ;
32283 return 0;
32284}
32285_ACEOF
32286rm -f conftest.$ac_objext
32287if { (ac_try="$ac_compile"
32288case "(($ac_try" in
32289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32290 *) ac_try_echo=$ac_try;;
32291esac
32292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32293 (eval "$ac_compile") 2>conftest.er1
32294 ac_status=$?
32295 grep -v '^ *+' conftest.er1 >conftest.err
32296 rm -f conftest.er1
32297 cat conftest.err >&5
32298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032299 (exit $ac_status); } &&
32300 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32301 { (case "(($ac_try" in
32302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32303 *) ac_try_echo=$ac_try;;
32304esac
32305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32306 (eval "$ac_try") 2>&5
32307 ac_status=$?
32308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309 (exit $ac_status); }; } &&
32310 { ac_try='test -s conftest.$ac_objext'
32311 { (case "(($ac_try" in
32312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32313 *) ac_try_echo=$ac_try;;
32314esac
32315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32316 (eval "$ac_try") 2>&5
32317 ac_status=$?
32318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032320 ac_cv_cxx_have_fwd_iterator=yes
32321else
32322 echo "$as_me: failed program was:" >&5
32323sed 's/^/| /' conftest.$ac_ext >&5
32324
32325 ac_cv_cxx_have_fwd_iterator=no
32326fi
32327
32328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32329 ac_ext=c
32330ac_cpp='$CPP $CPPFLAGS'
32331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32333ac_compiler_gnu=$ac_cv_c_compiler_gnu
32334
32335
32336fi
32337{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32338echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32339if test "$ac_cv_cxx_have_fwd_iterator" = yes
32340then
32341
32342cat >>confdefs.h <<\_ACEOF
32343#define HAVE_FWD_ITERATOR 1
32344_ACEOF
32345
32346else
32347
32348cat >>confdefs.h <<\_ACEOF
32349#define HAVE_FWD_ITERATOR 0
32350_ACEOF
32351
32352fi
32353
32354
32355{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32356echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32357if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32358 echo $ECHO_N "(cached) $ECHO_C" >&6
32359else
32360 ac_ext=cpp
32361ac_cpp='$CXXCPP $CPPFLAGS'
32362ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32363ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32364ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32365
32366 cat >conftest.$ac_ext <<_ACEOF
32367/* confdefs.h. */
32368_ACEOF
32369cat confdefs.h >>conftest.$ac_ext
32370cat >>conftest.$ac_ext <<_ACEOF
32371/* end confdefs.h. */
32372#include <math.h>
32373int
32374main ()
32375{
32376float f; isnan(f);
32377 ;
32378 return 0;
32379}
32380_ACEOF
32381rm -f conftest.$ac_objext
32382if { (ac_try="$ac_compile"
32383case "(($ac_try" in
32384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32385 *) ac_try_echo=$ac_try;;
32386esac
32387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32388 (eval "$ac_compile") 2>conftest.er1
32389 ac_status=$?
32390 grep -v '^ *+' conftest.er1 >conftest.err
32391 rm -f conftest.er1
32392 cat conftest.err >&5
32393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032394 (exit $ac_status); } &&
32395 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32396 { (case "(($ac_try" in
32397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32398 *) ac_try_echo=$ac_try;;
32399esac
32400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32401 (eval "$ac_try") 2>&5
32402 ac_status=$?
32403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32404 (exit $ac_status); }; } &&
32405 { ac_try='test -s conftest.$ac_objext'
32406 { (case "(($ac_try" in
32407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32408 *) ac_try_echo=$ac_try;;
32409esac
32410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32411 (eval "$ac_try") 2>&5
32412 ac_status=$?
32413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032415 ac_cv_func_isnan_in_math_h=yes
32416else
32417 echo "$as_me: failed program was:" >&5
32418sed 's/^/| /' conftest.$ac_ext >&5
32419
32420 ac_cv_func_isnan_in_math_h=no
32421fi
32422
32423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32424 ac_ext=c
32425ac_cpp='$CPP $CPPFLAGS'
32426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32428ac_compiler_gnu=$ac_cv_c_compiler_gnu
32429
32430fi
32431{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32432echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32433
32434
32435if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32436
32437cat >>confdefs.h <<\_ACEOF
32438#define HAVE_ISNAN_IN_MATH_H 1
32439_ACEOF
32440
32441fi
32442
32443{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32444echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32445if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32446 echo $ECHO_N "(cached) $ECHO_C" >&6
32447else
32448 ac_ext=cpp
32449ac_cpp='$CXXCPP $CPPFLAGS'
32450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32453
32454 cat >conftest.$ac_ext <<_ACEOF
32455/* confdefs.h. */
32456_ACEOF
32457cat confdefs.h >>conftest.$ac_ext
32458cat >>conftest.$ac_ext <<_ACEOF
32459/* end confdefs.h. */
32460#include <cmath>
32461int
32462main ()
32463{
32464float f; isnan(f);
32465 ;
32466 return 0;
32467}
32468_ACEOF
32469rm -f conftest.$ac_objext
32470if { (ac_try="$ac_compile"
32471case "(($ac_try" in
32472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32473 *) ac_try_echo=$ac_try;;
32474esac
32475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32476 (eval "$ac_compile") 2>conftest.er1
32477 ac_status=$?
32478 grep -v '^ *+' conftest.er1 >conftest.err
32479 rm -f conftest.er1
32480 cat conftest.err >&5
32481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032482 (exit $ac_status); } &&
32483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32484 { (case "(($ac_try" in
32485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32486 *) ac_try_echo=$ac_try;;
32487esac
32488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32489 (eval "$ac_try") 2>&5
32490 ac_status=$?
32491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32492 (exit $ac_status); }; } &&
32493 { ac_try='test -s conftest.$ac_objext'
32494 { (case "(($ac_try" in
32495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32496 *) ac_try_echo=$ac_try;;
32497esac
32498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32499 (eval "$ac_try") 2>&5
32500 ac_status=$?
32501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032503 ac_cv_func_isnan_in_cmath=yes
32504else
32505 echo "$as_me: failed program was:" >&5
32506sed 's/^/| /' conftest.$ac_ext >&5
32507
32508 ac_cv_func_isnan_in_cmath=no
32509fi
32510
32511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32512 ac_ext=c
32513ac_cpp='$CPP $CPPFLAGS'
32514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32516ac_compiler_gnu=$ac_cv_c_compiler_gnu
32517
32518fi
32519{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32520echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32521
32522if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32523
32524cat >>confdefs.h <<\_ACEOF
32525#define HAVE_ISNAN_IN_CMATH 1
32526_ACEOF
32527
32528fi
32529
32530{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32531echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32532if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32533 echo $ECHO_N "(cached) $ECHO_C" >&6
32534else
32535 ac_ext=cpp
32536ac_cpp='$CXXCPP $CPPFLAGS'
32537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32540
32541 cat >conftest.$ac_ext <<_ACEOF
32542/* confdefs.h. */
32543_ACEOF
32544cat confdefs.h >>conftest.$ac_ext
32545cat >>conftest.$ac_ext <<_ACEOF
32546/* end confdefs.h. */
32547#include <cmath>
32548int
32549main ()
32550{
32551float f; std::isnan(f);
32552 ;
32553 return 0;
32554}
32555_ACEOF
32556rm -f conftest.$ac_objext
32557if { (ac_try="$ac_compile"
32558case "(($ac_try" in
32559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32560 *) ac_try_echo=$ac_try;;
32561esac
32562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32563 (eval "$ac_compile") 2>conftest.er1
32564 ac_status=$?
32565 grep -v '^ *+' conftest.er1 >conftest.err
32566 rm -f conftest.er1
32567 cat conftest.err >&5
32568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032569 (exit $ac_status); } &&
32570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32571 { (case "(($ac_try" in
32572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32573 *) ac_try_echo=$ac_try;;
32574esac
32575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32576 (eval "$ac_try") 2>&5
32577 ac_status=$?
32578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32579 (exit $ac_status); }; } &&
32580 { ac_try='test -s conftest.$ac_objext'
32581 { (case "(($ac_try" in
32582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583 *) ac_try_echo=$ac_try;;
32584esac
32585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32586 (eval "$ac_try") 2>&5
32587 ac_status=$?
32588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32589 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032590 ac_cv_func_std_isnan_in_cmath=yes
32591else
32592 echo "$as_me: failed program was:" >&5
32593sed 's/^/| /' conftest.$ac_ext >&5
32594
32595 ac_cv_func_std_isnan_in_cmath=no
32596fi
32597
32598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32599 ac_ext=c
32600ac_cpp='$CPP $CPPFLAGS'
32601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32603ac_compiler_gnu=$ac_cv_c_compiler_gnu
32604
32605fi
32606{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32607echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32608
32609if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32610
32611cat >>confdefs.h <<\_ACEOF
32612#define HAVE_STD_ISNAN_IN_CMATH 1
32613_ACEOF
32614
32615fi
32616
32617
32618{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32619echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32620if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32621 echo $ECHO_N "(cached) $ECHO_C" >&6
32622else
32623 ac_ext=cpp
32624ac_cpp='$CXXCPP $CPPFLAGS'
32625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32628
32629 cat >conftest.$ac_ext <<_ACEOF
32630/* confdefs.h. */
32631_ACEOF
32632cat confdefs.h >>conftest.$ac_ext
32633cat >>conftest.$ac_ext <<_ACEOF
32634/* end confdefs.h. */
32635#include <math.h>
32636int
32637main ()
32638{
32639float f; isinf(f);
32640 ;
32641 return 0;
32642}
32643_ACEOF
32644rm -f conftest.$ac_objext
32645if { (ac_try="$ac_compile"
32646case "(($ac_try" in
32647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32648 *) ac_try_echo=$ac_try;;
32649esac
32650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32651 (eval "$ac_compile") 2>conftest.er1
32652 ac_status=$?
32653 grep -v '^ *+' conftest.er1 >conftest.err
32654 rm -f conftest.er1
32655 cat conftest.err >&5
32656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032657 (exit $ac_status); } &&
32658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32659 { (case "(($ac_try" in
32660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32661 *) ac_try_echo=$ac_try;;
32662esac
32663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32664 (eval "$ac_try") 2>&5
32665 ac_status=$?
32666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32667 (exit $ac_status); }; } &&
32668 { ac_try='test -s conftest.$ac_objext'
32669 { (case "(($ac_try" in
32670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32671 *) ac_try_echo=$ac_try;;
32672esac
32673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32674 (eval "$ac_try") 2>&5
32675 ac_status=$?
32676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032678 ac_cv_func_isinf_in_math_h=yes
32679else
32680 echo "$as_me: failed program was:" >&5
32681sed 's/^/| /' conftest.$ac_ext >&5
32682
32683 ac_cv_func_isinf_in_math_h=no
32684fi
32685
32686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32687 ac_ext=c
32688ac_cpp='$CPP $CPPFLAGS'
32689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32691ac_compiler_gnu=$ac_cv_c_compiler_gnu
32692
32693fi
32694{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32695echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32696
32697if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32698
32699cat >>confdefs.h <<\_ACEOF
32700#define HAVE_ISINF_IN_MATH_H 1
32701_ACEOF
32702
32703fi
32704
32705{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32706echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32707if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32708 echo $ECHO_N "(cached) $ECHO_C" >&6
32709else
32710 ac_ext=cpp
32711ac_cpp='$CXXCPP $CPPFLAGS'
32712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32715
32716 cat >conftest.$ac_ext <<_ACEOF
32717/* confdefs.h. */
32718_ACEOF
32719cat confdefs.h >>conftest.$ac_ext
32720cat >>conftest.$ac_ext <<_ACEOF
32721/* end confdefs.h. */
32722#include <cmath>
32723int
32724main ()
32725{
32726float f; isinf(f);
32727 ;
32728 return 0;
32729}
32730_ACEOF
32731rm -f conftest.$ac_objext
32732if { (ac_try="$ac_compile"
32733case "(($ac_try" in
32734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32735 *) ac_try_echo=$ac_try;;
32736esac
32737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32738 (eval "$ac_compile") 2>conftest.er1
32739 ac_status=$?
32740 grep -v '^ *+' conftest.er1 >conftest.err
32741 rm -f conftest.er1
32742 cat conftest.err >&5
32743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032744 (exit $ac_status); } &&
32745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32746 { (case "(($ac_try" in
32747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32748 *) ac_try_echo=$ac_try;;
32749esac
32750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32751 (eval "$ac_try") 2>&5
32752 ac_status=$?
32753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754 (exit $ac_status); }; } &&
32755 { ac_try='test -s conftest.$ac_objext'
32756 { (case "(($ac_try" in
32757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32758 *) ac_try_echo=$ac_try;;
32759esac
32760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32761 (eval "$ac_try") 2>&5
32762 ac_status=$?
32763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032765 ac_cv_func_isinf_in_cmath=yes
32766else
32767 echo "$as_me: failed program was:" >&5
32768sed 's/^/| /' conftest.$ac_ext >&5
32769
32770 ac_cv_func_isinf_in_cmath=no
32771fi
32772
32773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32774 ac_ext=c
32775ac_cpp='$CPP $CPPFLAGS'
32776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32778ac_compiler_gnu=$ac_cv_c_compiler_gnu
32779
32780fi
32781{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32782echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32783
32784if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32785
32786cat >>confdefs.h <<\_ACEOF
32787#define HAVE_ISINF_IN_CMATH 1
32788_ACEOF
32789
32790fi
32791
32792{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32793echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32794if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32795 echo $ECHO_N "(cached) $ECHO_C" >&6
32796else
32797 ac_ext=cpp
32798ac_cpp='$CXXCPP $CPPFLAGS'
32799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32802
32803 cat >conftest.$ac_ext <<_ACEOF
32804/* confdefs.h. */
32805_ACEOF
32806cat confdefs.h >>conftest.$ac_ext
32807cat >>conftest.$ac_ext <<_ACEOF
32808/* end confdefs.h. */
32809#include <cmath>
32810int
32811main ()
32812{
32813float f; std::isinf(f)}
32814 ;
32815 return 0;
32816}
32817_ACEOF
32818rm -f conftest.$ac_objext
32819if { (ac_try="$ac_compile"
32820case "(($ac_try" in
32821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822 *) ac_try_echo=$ac_try;;
32823esac
32824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32825 (eval "$ac_compile") 2>conftest.er1
32826 ac_status=$?
32827 grep -v '^ *+' conftest.er1 >conftest.err
32828 rm -f conftest.er1
32829 cat conftest.err >&5
32830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032831 (exit $ac_status); } &&
32832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32833 { (case "(($ac_try" in
32834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32835 *) ac_try_echo=$ac_try;;
32836esac
32837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32838 (eval "$ac_try") 2>&5
32839 ac_status=$?
32840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); }; } &&
32842 { ac_try='test -s conftest.$ac_objext'
32843 { (case "(($ac_try" in
32844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32845 *) ac_try_echo=$ac_try;;
32846esac
32847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32848 (eval "$ac_try") 2>&5
32849 ac_status=$?
32850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032852 ac_cv_func_std_isinf_in_cmath=yes
32853else
32854 echo "$as_me: failed program was:" >&5
32855sed 's/^/| /' conftest.$ac_ext >&5
32856
32857 ac_cv_func_std_isinf_in_cmath=no
32858fi
32859
32860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32861 ac_ext=c
32862ac_cpp='$CPP $CPPFLAGS'
32863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32865ac_compiler_gnu=$ac_cv_c_compiler_gnu
32866
32867fi
32868{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32869echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32870
32871if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32872
32873cat >>confdefs.h <<\_ACEOF
32874#define HAVE_STD_ISINF_IN_CMATH 1
32875_ACEOF
32876
32877fi
32878
32879{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32880echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32881if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32882 echo $ECHO_N "(cached) $ECHO_C" >&6
32883else
32884 ac_ext=cpp
32885ac_cpp='$CXXCPP $CPPFLAGS'
32886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32889
32890 cat >conftest.$ac_ext <<_ACEOF
32891/* confdefs.h. */
32892_ACEOF
32893cat confdefs.h >>conftest.$ac_ext
32894cat >>conftest.$ac_ext <<_ACEOF
32895/* end confdefs.h. */
32896#include <ieeefp.h>
32897int
32898main ()
32899{
32900float f; finite(f);
32901 ;
32902 return 0;
32903}
32904_ACEOF
32905rm -f conftest.$ac_objext
32906if { (ac_try="$ac_compile"
32907case "(($ac_try" in
32908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32909 *) ac_try_echo=$ac_try;;
32910esac
32911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32912 (eval "$ac_compile") 2>conftest.er1
32913 ac_status=$?
32914 grep -v '^ *+' conftest.er1 >conftest.err
32915 rm -f conftest.er1
32916 cat conftest.err >&5
32917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032918 (exit $ac_status); } &&
32919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32920 { (case "(($ac_try" in
32921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32922 *) ac_try_echo=$ac_try;;
32923esac
32924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32925 (eval "$ac_try") 2>&5
32926 ac_status=$?
32927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32928 (exit $ac_status); }; } &&
32929 { ac_try='test -s conftest.$ac_objext'
32930 { (case "(($ac_try" in
32931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32932 *) ac_try_echo=$ac_try;;
32933esac
32934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32935 (eval "$ac_try") 2>&5
32936 ac_status=$?
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032939 ac_cv_func_finite_in_ieeefp_h=yes
32940else
32941 echo "$as_me: failed program was:" >&5
32942sed 's/^/| /' conftest.$ac_ext >&5
32943
32944 ac_cv_func_finite_in_ieeefp_h=no
32945fi
32946
32947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32948 ac_ext=c
32949ac_cpp='$CPP $CPPFLAGS'
32950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32952ac_compiler_gnu=$ac_cv_c_compiler_gnu
32953
32954fi
32955{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32956echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32957
32958if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32959
32960cat >>confdefs.h <<\_ACEOF
32961#define HAVE_FINITE_IN_IEEEFP_H 1
32962_ACEOF
32963
32964fi
32965
32966
32967
32968if test "$llvm_cv_platform_type" = "Unix" ; then
32969
32970
32971for ac_header in stdlib.h unistd.h
32972do
32973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32978 echo $ECHO_N "(cached) $ECHO_C" >&6
32979fi
32980ac_res=`eval echo '${'$as_ac_Header'}'`
32981 { echo "$as_me:$LINENO: result: $ac_res" >&5
32982echo "${ECHO_T}$ac_res" >&6; }
32983else
32984 # Is the header compilable?
32985{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32986echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32987cat >conftest.$ac_ext <<_ACEOF
32988/* confdefs.h. */
32989_ACEOF
32990cat confdefs.h >>conftest.$ac_ext
32991cat >>conftest.$ac_ext <<_ACEOF
32992/* end confdefs.h. */
32993$ac_includes_default
32994#include <$ac_header>
32995_ACEOF
32996rm -f conftest.$ac_objext
32997if { (ac_try="$ac_compile"
32998case "(($ac_try" in
32999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33000 *) ac_try_echo=$ac_try;;
33001esac
33002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33003 (eval "$ac_compile") 2>conftest.er1
33004 ac_status=$?
33005 grep -v '^ *+' conftest.er1 >conftest.err
33006 rm -f conftest.er1
33007 cat conftest.err >&5
33008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033009 (exit $ac_status); } &&
33010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33011 { (case "(($ac_try" in
33012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33013 *) ac_try_echo=$ac_try;;
33014esac
33015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33016 (eval "$ac_try") 2>&5
33017 ac_status=$?
33018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019 (exit $ac_status); }; } &&
33020 { ac_try='test -s conftest.$ac_objext'
33021 { (case "(($ac_try" in
33022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33023 *) ac_try_echo=$ac_try;;
33024esac
33025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33026 (eval "$ac_try") 2>&5
33027 ac_status=$?
33028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33029 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033030 ac_header_compiler=yes
33031else
33032 echo "$as_me: failed program was:" >&5
33033sed 's/^/| /' conftest.$ac_ext >&5
33034
33035 ac_header_compiler=no
33036fi
33037
33038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33039{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33040echo "${ECHO_T}$ac_header_compiler" >&6; }
33041
33042# Is the header present?
33043{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33044echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33045cat >conftest.$ac_ext <<_ACEOF
33046/* confdefs.h. */
33047_ACEOF
33048cat confdefs.h >>conftest.$ac_ext
33049cat >>conftest.$ac_ext <<_ACEOF
33050/* end confdefs.h. */
33051#include <$ac_header>
33052_ACEOF
33053if { (ac_try="$ac_cpp conftest.$ac_ext"
33054case "(($ac_try" in
33055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33056 *) ac_try_echo=$ac_try;;
33057esac
33058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33060 ac_status=$?
33061 grep -v '^ *+' conftest.er1 >conftest.err
33062 rm -f conftest.er1
33063 cat conftest.err >&5
33064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033065 (exit $ac_status); } >/dev/null; then
33066 if test -s conftest.err; then
33067 ac_cpp_err=$ac_c_preproc_warn_flag
33068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33069 else
33070 ac_cpp_err=
33071 fi
33072else
33073 ac_cpp_err=yes
33074fi
33075if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033076 ac_header_preproc=yes
33077else
33078 echo "$as_me: failed program was:" >&5
33079sed 's/^/| /' conftest.$ac_ext >&5
33080
33081 ac_header_preproc=no
33082fi
33083
33084rm -f conftest.err conftest.$ac_ext
33085{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33086echo "${ECHO_T}$ac_header_preproc" >&6; }
33087
33088# So? What about this header?
33089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33090 yes:no: )
33091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33092echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33094echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33095 ac_header_preproc=yes
33096 ;;
33097 no:yes:* )
33098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33099echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33101echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33103echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33105echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33107echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33109echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33110 ( cat <<\_ASBOX
33111## ----------------------------------- ##
33112## Report this to llvmbugs@cs.uiuc.edu ##
33113## ----------------------------------- ##
33114_ASBOX
33115 ) | sed "s/^/$as_me: WARNING: /" >&2
33116 ;;
33117esac
33118{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33120if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33121 echo $ECHO_N "(cached) $ECHO_C" >&6
33122else
33123 eval "$as_ac_Header=\$ac_header_preproc"
33124fi
33125ac_res=`eval echo '${'$as_ac_Header'}'`
33126 { echo "$as_me:$LINENO: result: $ac_res" >&5
33127echo "${ECHO_T}$ac_res" >&6; }
33128
33129fi
33130if test `eval echo '${'$as_ac_Header'}'` = yes; then
33131 cat >>confdefs.h <<_ACEOF
33132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33133_ACEOF
33134
33135fi
33136
33137done
33138
33139
33140for ac_func in getpagesize
33141do
33142as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33143{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33145if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33146 echo $ECHO_N "(cached) $ECHO_C" >&6
33147else
33148 cat >conftest.$ac_ext <<_ACEOF
33149/* confdefs.h. */
33150_ACEOF
33151cat confdefs.h >>conftest.$ac_ext
33152cat >>conftest.$ac_ext <<_ACEOF
33153/* end confdefs.h. */
33154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33156#define $ac_func innocuous_$ac_func
33157
33158/* System header to define __stub macros and hopefully few prototypes,
33159 which can conflict with char $ac_func (); below.
33160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33161 <limits.h> exists even on freestanding compilers. */
33162
33163#ifdef __STDC__
33164# include <limits.h>
33165#else
33166# include <assert.h>
33167#endif
33168
33169#undef $ac_func
33170
33171/* Override any GCC internal prototype to avoid an error.
33172 Use char because int might match the return type of a GCC
33173 builtin and then its argument prototype would still apply. */
33174#ifdef __cplusplus
33175extern "C"
33176#endif
33177char $ac_func ();
33178/* The GNU C library defines this for functions which it implements
33179 to always fail with ENOSYS. Some functions are actually named
33180 something starting with __ and the normal name is an alias. */
33181#if defined __stub_$ac_func || defined __stub___$ac_func
33182choke me
33183#endif
33184
33185int
33186main ()
33187{
33188return $ac_func ();
33189 ;
33190 return 0;
33191}
33192_ACEOF
33193rm -f conftest.$ac_objext conftest$ac_exeext
33194if { (ac_try="$ac_link"
33195case "(($ac_try" in
33196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33197 *) ac_try_echo=$ac_try;;
33198esac
33199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33200 (eval "$ac_link") 2>conftest.er1
33201 ac_status=$?
33202 grep -v '^ *+' conftest.er1 >conftest.err
33203 rm -f conftest.er1
33204 cat conftest.err >&5
33205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033206 (exit $ac_status); } &&
33207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33208 { (case "(($ac_try" in
33209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33210 *) ac_try_echo=$ac_try;;
33211esac
33212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33213 (eval "$ac_try") 2>&5
33214 ac_status=$?
33215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216 (exit $ac_status); }; } &&
33217 { ac_try='test -s conftest$ac_exeext'
33218 { (case "(($ac_try" in
33219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33220 *) ac_try_echo=$ac_try;;
33221esac
33222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33223 (eval "$ac_try") 2>&5
33224 ac_status=$?
33225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033227 eval "$as_ac_var=yes"
33228else
33229 echo "$as_me: failed program was:" >&5
33230sed 's/^/| /' conftest.$ac_ext >&5
33231
33232 eval "$as_ac_var=no"
33233fi
33234
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033235rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033236 conftest$ac_exeext conftest.$ac_ext
33237fi
33238ac_res=`eval echo '${'$as_ac_var'}'`
33239 { echo "$as_me:$LINENO: result: $ac_res" >&5
33240echo "${ECHO_T}$ac_res" >&6; }
33241if test `eval echo '${'$as_ac_var'}'` = yes; then
33242 cat >>confdefs.h <<_ACEOF
33243#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33244_ACEOF
33245
33246fi
33247done
33248
33249{ echo "$as_me:$LINENO: checking for working mmap" >&5
33250echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33251if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33252 echo $ECHO_N "(cached) $ECHO_C" >&6
33253else
33254 if test "$cross_compiling" = yes; then
33255 ac_cv_func_mmap_fixed_mapped=no
33256else
33257 cat >conftest.$ac_ext <<_ACEOF
33258/* confdefs.h. */
33259_ACEOF
33260cat confdefs.h >>conftest.$ac_ext
33261cat >>conftest.$ac_ext <<_ACEOF
33262/* end confdefs.h. */
33263$ac_includes_default
33264/* malloc might have been renamed as rpl_malloc. */
33265#undef malloc
33266
33267/* Thanks to Mike Haertel and Jim Avera for this test.
33268 Here is a matrix of mmap possibilities:
33269 mmap private not fixed
33270 mmap private fixed at somewhere currently unmapped
33271 mmap private fixed at somewhere already mapped
33272 mmap shared not fixed
33273 mmap shared fixed at somewhere currently unmapped
33274 mmap shared fixed at somewhere already mapped
33275 For private mappings, we should verify that changes cannot be read()
33276 back from the file, nor mmap's back from the file at a different
33277 address. (There have been systems where private was not correctly
33278 implemented like the infamous i386 svr4.0, and systems where the
33279 VM page cache was not coherent with the file system buffer cache
33280 like early versions of FreeBSD and possibly contemporary NetBSD.)
33281 For shared mappings, we should conversely verify that changes get
33282 propagated back to all the places they're supposed to be.
33283
33284 Grep wants private fixed already mapped.
33285 The main things grep needs to know about mmap are:
33286 * does it exist and is it safe to write into the mmap'd area
33287 * how to use it (BSD variants) */
33288
33289#include <fcntl.h>
33290#include <sys/mman.h>
33291
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033292#if !STDC_HEADERS && !HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033293char *malloc ();
33294#endif
33295
33296/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033297#if !HAVE_GETPAGESIZE
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033298/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033299# if !HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033300# define HAVE_SYS_PARAM_H 1
33301# endif
33302
33303# ifdef _SC_PAGESIZE
33304# define getpagesize() sysconf(_SC_PAGESIZE)
33305# else /* no _SC_PAGESIZE */
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033306# if HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033307# include <sys/param.h>
33308# ifdef EXEC_PAGESIZE
33309# define getpagesize() EXEC_PAGESIZE
33310# else /* no EXEC_PAGESIZE */
33311# ifdef NBPG
33312# define getpagesize() NBPG * CLSIZE
33313# ifndef CLSIZE
33314# define CLSIZE 1
33315# endif /* no CLSIZE */
33316# else /* no NBPG */
33317# ifdef NBPC
33318# define getpagesize() NBPC
33319# else /* no NBPC */
33320# ifdef PAGESIZE
33321# define getpagesize() PAGESIZE
33322# endif /* PAGESIZE */
33323# endif /* no NBPC */
33324# endif /* no NBPG */
33325# endif /* no EXEC_PAGESIZE */
33326# else /* no HAVE_SYS_PARAM_H */
33327# define getpagesize() 8192 /* punt totally */
33328# endif /* no HAVE_SYS_PARAM_H */
33329# endif /* no _SC_PAGESIZE */
33330
33331#endif /* no HAVE_GETPAGESIZE */
33332
33333int
33334main ()
33335{
33336 char *data, *data2, *data3;
33337 int i, pagesize;
33338 int fd;
33339
33340 pagesize = getpagesize ();
33341
33342 /* First, make a file with some known garbage in it. */
33343 data = (char *) malloc (pagesize);
33344 if (!data)
33345 return 1;
33346 for (i = 0; i < pagesize; ++i)
33347 *(data + i) = rand ();
33348 umask (0);
33349 fd = creat ("conftest.mmap", 0600);
33350 if (fd < 0)
33351 return 1;
33352 if (write (fd, data, pagesize) != pagesize)
33353 return 1;
33354 close (fd);
33355
33356 /* Next, try to mmap the file at a fixed address which already has
33357 something else allocated at it. If we can, also make sure that
33358 we see the same garbage. */
33359 fd = open ("conftest.mmap", O_RDWR);
33360 if (fd < 0)
33361 return 1;
33362 data2 = (char *) malloc (2 * pagesize);
33363 if (!data2)
33364 return 1;
33365 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33366 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33367 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33368 return 1;
33369 for (i = 0; i < pagesize; ++i)
33370 if (*(data + i) != *(data2 + i))
33371 return 1;
33372
33373 /* Finally, make sure that changes to the mapped area do not
33374 percolate back to the file as seen by read(). (This is a bug on
33375 some variants of i386 svr4.0.) */
33376 for (i = 0; i < pagesize; ++i)
33377 *(data2 + i) = *(data2 + i) + 1;
33378 data3 = (char *) malloc (pagesize);
33379 if (!data3)
33380 return 1;
33381 if (read (fd, data3, pagesize) != pagesize)
33382 return 1;
33383 for (i = 0; i < pagesize; ++i)
33384 if (*(data + i) != *(data3 + i))
33385 return 1;
33386 close (fd);
33387 return 0;
33388}
33389_ACEOF
33390rm -f conftest$ac_exeext
33391if { (ac_try="$ac_link"
33392case "(($ac_try" in
33393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33394 *) ac_try_echo=$ac_try;;
33395esac
33396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33397 (eval "$ac_link") 2>&5
33398 ac_status=$?
33399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33401 { (case "(($ac_try" in
33402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33403 *) ac_try_echo=$ac_try;;
33404esac
33405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33406 (eval "$ac_try") 2>&5
33407 ac_status=$?
33408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409 (exit $ac_status); }; }; then
33410 ac_cv_func_mmap_fixed_mapped=yes
33411else
33412 echo "$as_me: program exited with status $ac_status" >&5
33413echo "$as_me: failed program was:" >&5
33414sed 's/^/| /' conftest.$ac_ext >&5
33415
33416( exit $ac_status )
33417ac_cv_func_mmap_fixed_mapped=no
33418fi
33419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33420fi
33421
33422
33423fi
33424{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33425echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33426if test $ac_cv_func_mmap_fixed_mapped = yes; then
33427
33428cat >>confdefs.h <<\_ACEOF
33429#define HAVE_MMAP 1
33430_ACEOF
33431
33432fi
33433rm -f conftest.mmap
33434
33435 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33436echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33437if test "${ac_cv_func_mmap_file+set}" = set; then
33438 echo $ECHO_N "(cached) $ECHO_C" >&6
33439else
33440 ac_ext=c
33441ac_cpp='$CPP $CPPFLAGS'
33442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33444ac_compiler_gnu=$ac_cv_c_compiler_gnu
33445
33446 if test "$cross_compiling" = yes; then
33447 ac_cv_func_mmap_file=no
33448else
33449 cat >conftest.$ac_ext <<_ACEOF
33450
33451 /* confdefs.h. */
33452_ACEOF
33453cat confdefs.h >>conftest.$ac_ext
33454cat >>conftest.$ac_ext <<_ACEOF
33455/* end confdefs.h. */
33456
33457#include <sys/types.h>
33458#include <sys/mman.h>
33459#include <fcntl.h>
33460
33461int
33462main ()
33463{
33464
33465 int fd;
33466 fd = creat ("foo",0777);
33467 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33468 unlink ("foo");
33469 return (fd != (int) MAP_FAILED);
33470 ;
33471 return 0;
33472}
33473_ACEOF
33474rm -f conftest$ac_exeext
33475if { (ac_try="$ac_link"
33476case "(($ac_try" in
33477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33478 *) ac_try_echo=$ac_try;;
33479esac
33480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33481 (eval "$ac_link") 2>&5
33482 ac_status=$?
33483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33485 { (case "(($ac_try" in
33486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33487 *) ac_try_echo=$ac_try;;
33488esac
33489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33490 (eval "$ac_try") 2>&5
33491 ac_status=$?
33492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33493 (exit $ac_status); }; }; then
33494 ac_cv_func_mmap_file=yes
33495else
33496 echo "$as_me: program exited with status $ac_status" >&5
33497echo "$as_me: failed program was:" >&5
33498sed 's/^/| /' conftest.$ac_ext >&5
33499
33500( exit $ac_status )
33501ac_cv_func_mmap_file=no
33502fi
33503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33504fi
33505
33506
33507 ac_ext=c
33508ac_cpp='$CPP $CPPFLAGS'
33509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33511ac_compiler_gnu=$ac_cv_c_compiler_gnu
33512
33513
33514fi
33515{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33516echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33517if test "$ac_cv_func_mmap_file" = yes; then
33518
33519cat >>confdefs.h <<\_ACEOF
33520#define HAVE_MMAP_FILE
33521_ACEOF
33522
33523 MMAP_FILE=yes
33524
33525fi
33526
33527 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33528echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33529if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33530 echo $ECHO_N "(cached) $ECHO_C" >&6
33531else
33532 if test "$llvm_cv_os_type" = "Interix" ; then
33533 ac_cv_need_dev_zero_for_mmap=yes
33534 else
33535 ac_cv_need_dev_zero_for_mmap=no
33536 fi
33537
33538fi
33539{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33540echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33541if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33542
33543cat >>confdefs.h <<\_ACEOF
33544#define NEED_DEV_ZERO_FOR_MMAP 1
33545_ACEOF
33546
33547fi
33548
33549 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33550 then
33551 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33552echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33553 fi
33554 if test "$ac_cv_func_mmap_file" = "no"
33555 then
33556 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33557echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33558 fi
33559fi
33560
33561
Reid Spencer59c09b32007-07-30 20:13:24 +000033562
33563for ac_func in __dso_handle
33564do
33565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33566{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33568if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33569 echo $ECHO_N "(cached) $ECHO_C" >&6
33570else
33571 cat >conftest.$ac_ext <<_ACEOF
33572/* confdefs.h. */
33573_ACEOF
33574cat confdefs.h >>conftest.$ac_ext
33575cat >>conftest.$ac_ext <<_ACEOF
33576/* end confdefs.h. */
33577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33579#define $ac_func innocuous_$ac_func
33580
33581/* System header to define __stub macros and hopefully few prototypes,
33582 which can conflict with char $ac_func (); below.
33583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33584 <limits.h> exists even on freestanding compilers. */
33585
33586#ifdef __STDC__
33587# include <limits.h>
33588#else
33589# include <assert.h>
33590#endif
33591
33592#undef $ac_func
33593
33594/* Override any GCC internal prototype to avoid an error.
33595 Use char because int might match the return type of a GCC
33596 builtin and then its argument prototype would still apply. */
33597#ifdef __cplusplus
33598extern "C"
33599#endif
33600char $ac_func ();
33601/* The GNU C library defines this for functions which it implements
33602 to always fail with ENOSYS. Some functions are actually named
33603 something starting with __ and the normal name is an alias. */
33604#if defined __stub_$ac_func || defined __stub___$ac_func
33605choke me
33606#endif
33607
33608int
33609main ()
33610{
33611return $ac_func ();
33612 ;
33613 return 0;
33614}
33615_ACEOF
33616rm -f conftest.$ac_objext conftest$ac_exeext
33617if { (ac_try="$ac_link"
33618case "(($ac_try" in
33619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33620 *) ac_try_echo=$ac_try;;
33621esac
33622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33623 (eval "$ac_link") 2>conftest.er1
33624 ac_status=$?
33625 grep -v '^ *+' conftest.er1 >conftest.err
33626 rm -f conftest.er1
33627 cat conftest.err >&5
33628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033629 (exit $ac_status); } &&
33630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33631 { (case "(($ac_try" in
33632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33633 *) ac_try_echo=$ac_try;;
33634esac
33635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33636 (eval "$ac_try") 2>&5
33637 ac_status=$?
33638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639 (exit $ac_status); }; } &&
33640 { ac_try='test -s conftest$ac_exeext'
33641 { (case "(($ac_try" in
33642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643 *) ac_try_echo=$ac_try;;
33644esac
33645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646 (eval "$ac_try") 2>&5
33647 ac_status=$?
33648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649 (exit $ac_status); }; }; then
Reid Spencer59c09b32007-07-30 20:13:24 +000033650 eval "$as_ac_var=yes"
33651else
33652 echo "$as_me: failed program was:" >&5
33653sed 's/^/| /' conftest.$ac_ext >&5
33654
33655 eval "$as_ac_var=no"
33656fi
33657
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033658rm -f core conftest.err conftest.$ac_objext \
Reid Spencer59c09b32007-07-30 20:13:24 +000033659 conftest$ac_exeext conftest.$ac_ext
33660fi
33661ac_res=`eval echo '${'$as_ac_var'}'`
33662 { echo "$as_me:$LINENO: result: $ac_res" >&5
33663echo "${ECHO_T}$ac_res" >&6; }
33664if test `eval echo '${'$as_ac_var'}'` = yes; then
33665 cat >>confdefs.h <<_ACEOF
33666#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33667_ACEOF
33668
33669fi
33670done
33671
33672
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033673{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33674echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33675if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33676 echo $ECHO_N "(cached) $ECHO_C" >&6
33677else
33678 llvm_cv_llvmgcc_sanity="no"
33679if test -x "$LLVMGCC" ; then
33680 cp /dev/null conftest.c
33681 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33682 grep 'target datalayout =' > /dev/null 2>&1
33683 if test $? -eq 0 ; then
33684 llvm_cv_llvmgcc_sanity="yes"
33685 fi
33686 rm conftest.c
33687fi
33688fi
33689{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33690echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33691
33692if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33693 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33694echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33695 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33696 LLVMCC1=$llvmcc1path
33697
33698 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33699 LLVMCC1PLUS=$llvmcc1pluspath
33700
33701 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33702 LLVMGCCDIR=$llvmgccdir
33703
33704 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33705 LLVMGCCLIBEXEC=$llvmgcclibexec
33706
33707 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33708 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33709 LLVMGCC_VERSION=$llvmgccversion
33710
33711 LLVMGCC_MAJVERS=$llvmgccmajvers
33712
Tanya Lattner9894c2c2008-10-07 22:21:03 +000033713 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033714 LLVMGCC_LANGS=$llvmgcclangs
33715
33716 { echo "$as_me:$LINENO: result: ok" >&5
33717echo "${ECHO_T}ok" >&6; }
33718fi
33719
33720SHLIBEXT=$libltdl_cv_shlibext
33721
33722
33723# Translate the various configuration directories and other basic
33724# information into substitutions that will end up in Makefile.config.in
33725# that these configured values can be used by the makefiles
33726if test "${prefix}" = "NONE" ; then
33727 prefix="/usr/local"
33728fi
33729eval LLVM_PREFIX="${prefix}";
33730eval LLVM_BINDIR="${prefix}/bin";
33731eval LLVM_LIBDIR="${prefix}/lib";
33732eval LLVM_DATADIR="${prefix}/share/llvm";
33733eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33734eval LLVM_ETCDIR="${prefix}/etc/llvm";
33735eval LLVM_INCLUDEDIR="${prefix}/include";
33736eval LLVM_INFODIR="${prefix}/info";
33737eval LLVM_MANDIR="${prefix}/man";
33738LLVM_CONFIGTIME=`date`
33739
33740
33741
33742
33743
33744
33745
33746
33747
33748
33749
33750# Place the various directores into the config.h file as #defines so that we
33751# can know about the installation paths within LLVM.
33752
33753cat >>confdefs.h <<_ACEOF
33754#define LLVM_PREFIX "$LLVM_PREFIX"
33755_ACEOF
33756
33757
33758cat >>confdefs.h <<_ACEOF
33759#define LLVM_BINDIR "$LLVM_BINDIR"
33760_ACEOF
33761
33762
33763cat >>confdefs.h <<_ACEOF
33764#define LLVM_LIBDIR "$LLVM_LIBDIR"
33765_ACEOF
33766
33767
33768cat >>confdefs.h <<_ACEOF
33769#define LLVM_DATADIR "$LLVM_DATADIR"
33770_ACEOF
33771
33772
33773cat >>confdefs.h <<_ACEOF
Gordon Henriksen7419c3e2007-10-03 12:07:14 +000033774#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033775_ACEOF
33776
33777
33778cat >>confdefs.h <<_ACEOF
33779#define LLVM_ETCDIR "$LLVM_ETCDIR"
33780_ACEOF
33781
33782
33783cat >>confdefs.h <<_ACEOF
33784#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33785_ACEOF
33786
33787
33788cat >>confdefs.h <<_ACEOF
33789#define LLVM_INFODIR "$LLVM_INFODIR"
33790_ACEOF
33791
33792
33793cat >>confdefs.h <<_ACEOF
33794#define LLVM_MANDIR "$LLVM_MANDIR"
33795_ACEOF
33796
33797
33798cat >>confdefs.h <<_ACEOF
33799#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33800_ACEOF
33801
33802
Eric Christopher8b274472007-12-01 00:34:39 +000033803cat >>confdefs.h <<_ACEOF
33804#define LLVM_HOSTTRIPLE "$host"
33805_ACEOF
33806
33807
Gordon Henriksen016ec472007-10-02 09:50:32 +000033808# Determine which bindings to build.
33809if test "$BINDINGS_TO_BUILD" = auto ; then
33810 BINDINGS_TO_BUILD=""
33811 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33812 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33813 fi
33814fi
33815BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33816
33817
33818# This isn't really configurey, but it avoids having to repeat the list in
33819# other files.
33820ALL_BINDINGS=ocaml
33821
33822
Gordon Henriksen058a4c62007-10-02 16:42:22 +000033823# Do any work necessary to ensure that bindings have what they need.
33824binding_prereqs_failed=0
33825for a_binding in $BINDINGS_TO_BUILD ; do
33826 case "$a_binding" in
33827 ocaml)
33828 if test "x$OCAMLC" = x ; then
33829 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33830echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33831 binding_prereqs_failed=1
33832 fi
33833 if test "x$OCAMLDEP" = x ; then
33834 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33835echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33836 binding_prereqs_failed=1
33837 fi
33838 if test "x$OCAMLOPT" = x ; then
33839 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33840echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33841 fi
33842 if test "x$with_ocaml_libdir" != xauto ; then
33843 OCAML_LIBDIR=$with_ocaml_libdir
33844
33845 else
33846 ocaml_stdlib="`"$OCAMLC" -where`"
33847 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33848 then
33849 # ocaml stdlib is beneath our prefix; use stdlib
33850 OCAML_LIBDIR=$ocaml_stdlib
33851
33852 else
33853 # ocaml stdlib is outside our prefix; use libdir/ocaml
33854 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33855
33856 fi
33857 fi
33858 ;;
33859 esac
33860done
33861if test "$binding_prereqs_failed" = 1 ; then
33862 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33863echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33864 { (exit 1); exit 1; }; }
33865fi
33866
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000033867{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33868echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33869if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33870 echo $ECHO_N "(cached) $ECHO_C" >&6
33871else
33872 ac_ext=cpp
33873ac_cpp='$CXXCPP $CPPFLAGS'
33874ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33875ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33876ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33877
33878 oldcxxflags="$CXXFLAGS"
33879 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33880 cat >conftest.$ac_ext <<_ACEOF
33881/* confdefs.h. */
33882_ACEOF
33883cat confdefs.h >>conftest.$ac_ext
33884cat >>conftest.$ac_ext <<_ACEOF
33885/* end confdefs.h. */
33886
33887int
33888main ()
33889{
33890
33891 ;
33892 return 0;
33893}
33894_ACEOF
33895rm -f conftest.$ac_objext
33896if { (ac_try="$ac_compile"
33897case "(($ac_try" in
33898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33899 *) ac_try_echo=$ac_try;;
33900esac
33901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33902 (eval "$ac_compile") 2>conftest.er1
33903 ac_status=$?
33904 grep -v '^ *+' conftest.er1 >conftest.err
33905 rm -f conftest.er1
33906 cat conftest.err >&5
33907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033908 (exit $ac_status); } &&
33909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33910 { (case "(($ac_try" in
33911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33912 *) ac_try_echo=$ac_try;;
33913esac
33914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33915 (eval "$ac_try") 2>&5
33916 ac_status=$?
33917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33918 (exit $ac_status); }; } &&
33919 { ac_try='test -s conftest.$ac_objext'
33920 { (case "(($ac_try" in
33921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33922 *) ac_try_echo=$ac_try;;
33923esac
33924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33925 (eval "$ac_try") 2>&5
33926 ac_status=$?
33927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33928 (exit $ac_status); }; }; then
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000033929 llvm_cv_cxx_visibility_inlines_hidden=yes
33930else
33931 echo "$as_me: failed program was:" >&5
33932sed 's/^/| /' conftest.$ac_ext >&5
33933
33934 llvm_cv_cxx_visibility_inlines_hidden=no
33935fi
33936
33937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33938 CXXFLAGS="$oldcxxflags"
33939 ac_ext=c
33940ac_cpp='$CPP $CPPFLAGS'
33941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33943ac_compiler_gnu=$ac_cv_c_compiler_gnu
33944
33945
33946fi
33947{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
33948echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
33949if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
33950 ENABLE_VISIBILITY_INLINES_HIDDEN=1
33951
33952else
33953 ENABLE_VISIBILITY_INLINES_HIDDEN=0
33954
33955fi
33956
Gordon Henriksen058a4c62007-10-02 16:42:22 +000033957
Nick Lewycky6eab6652009-03-05 08:20:44 +000033958if test "$llvm_cv_link_use_r" = "yes" ; then
33959 RPATH="-Wl,-R"
33960else
33961 RPATH="-Wl,-rpath"
33962fi
33963
33964
33965if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
33966 RDYNAMIC="-Wl,-export-dynamic"
33967else
33968 RDYNAMIC=""
33969fi
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000033970
33971
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033972
33973ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33974
33975ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33976
Anton Korobeynikov5124f282008-05-29 17:41:34 +000033977ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033978
33979
33980ac_config_files="$ac_config_files Makefile.config"
33981
33982
33983ac_config_files="$ac_config_files llvm.spec"
33984
33985
33986ac_config_files="$ac_config_files docs/doxygen.cfg"
33987
33988
33989ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33990
33991
33992ac_config_commands="$ac_config_commands setup"
33993
33994ac_config_commands="$ac_config_commands Makefile"
33995
33996
33997ac_config_commands="$ac_config_commands Makefile.common"
33998
33999
34000ac_config_commands="$ac_config_commands examples/Makefile"
34001
34002
34003ac_config_commands="$ac_config_commands lib/Makefile"
34004
34005
34006ac_config_commands="$ac_config_commands runtime/Makefile"
34007
34008
34009ac_config_commands="$ac_config_commands test/Makefile"
34010
34011
34012ac_config_commands="$ac_config_commands test/Makefile.tests"
34013
34014
Bill Wendling9b9833f2009-01-04 23:12:30 +000034015ac_config_commands="$ac_config_commands unittests/Makefile"
34016
34017
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034018ac_config_commands="$ac_config_commands tools/Makefile"
34019
34020
34021ac_config_commands="$ac_config_commands utils/Makefile"
34022
34023
34024ac_config_commands="$ac_config_commands projects/Makefile"
34025
34026
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000034027ac_config_commands="$ac_config_commands bindings/Makefile"
34028
34029
34030ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34031
34032
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034033
34034cat >confcache <<\_ACEOF
34035# This file is a shell script that caches the results of configure
34036# tests run on this system so they can be shared between configure
34037# scripts and configure runs, see configure's option --config-cache.
34038# It is not useful on other systems. If it contains results you don't
34039# want to keep, you may remove or edit it.
34040#
34041# config.status only pays attention to the cache file if you give it
34042# the --recheck option to rerun configure.
34043#
34044# `ac_cv_env_foo' variables (set or unset) will be overridden when
34045# loading this file, other *unset* `ac_cv_foo' will be assigned the
34046# following values.
34047
34048_ACEOF
34049
34050# The following way of writing the cache mishandles newlines in values,
34051# but we know of no workaround that is simple, portable, and efficient.
34052# So, we kill variables containing newlines.
34053# Ultrix sh set writes to stderr and can't be redirected directly,
34054# and sets the high bit in the cache file unless we assign to the vars.
34055(
34056 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34057 eval ac_val=\$$ac_var
34058 case $ac_val in #(
34059 *${as_nl}*)
34060 case $ac_var in #(
34061 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34062echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34063 esac
34064 case $ac_var in #(
34065 _ | IFS | as_nl) ;; #(
34066 *) $as_unset $ac_var ;;
34067 esac ;;
34068 esac
34069 done
34070
34071 (set) 2>&1 |
34072 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34073 *${as_nl}ac_space=\ *)
34074 # `set' does not quote correctly, so add quotes (double-quote
34075 # substitution turns \\\\ into \\, and sed turns \\ into \).
34076 sed -n \
34077 "s/'/'\\\\''/g;
34078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34079 ;; #(
34080 *)
34081 # `set' quotes correctly as required by POSIX, so do not add quotes.
34082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34083 ;;
34084 esac |
34085 sort
34086) |
34087 sed '
34088 /^ac_cv_env_/b end
34089 t clear
34090 :clear
34091 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34092 t end
34093 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34094 :end' >>confcache
34095if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34096 if test -w "$cache_file"; then
34097 test "x$cache_file" != "x/dev/null" &&
34098 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34099echo "$as_me: updating cache $cache_file" >&6;}
34100 cat confcache >$cache_file
34101 else
34102 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34103echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34104 fi
34105fi
34106rm -f confcache
34107
34108test "x$prefix" = xNONE && prefix=$ac_default_prefix
34109# Let make expand exec_prefix.
34110test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34111
34112DEFS=-DHAVE_CONFIG_H
34113
34114ac_libobjs=
34115ac_ltlibobjs=
34116for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34117 # 1. Remove the extension, and $U if already installed.
34118 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34119 ac_i=`echo "$ac_i" | sed "$ac_script"`
34120 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34121 # will be set to the directory where LIBOBJS objects are built.
34122 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34123 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34124done
34125LIBOBJS=$ac_libobjs
34126
34127LTLIBOBJS=$ac_ltlibobjs
34128
34129
34130if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34131 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34132Usually this means the macro was only invoked conditionally." >&5
34133echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34134Usually this means the macro was only invoked conditionally." >&2;}
34135 { (exit 1); exit 1; }; }
34136fi
34137if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34138 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34139Usually this means the macro was only invoked conditionally." >&5
34140echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34141Usually this means the macro was only invoked conditionally." >&2;}
34142 { (exit 1); exit 1; }; }
34143fi
34144
34145: ${CONFIG_STATUS=./config.status}
34146ac_clean_files_save=$ac_clean_files
34147ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34148{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34149echo "$as_me: creating $CONFIG_STATUS" >&6;}
34150cat >$CONFIG_STATUS <<_ACEOF
34151#! $SHELL
34152# Generated by $as_me.
34153# Run this file to recreate the current configuration.
34154# Compiler output produced by configure, useful for debugging
34155# configure, is in config.log if it exists.
34156
34157debug=false
34158ac_cs_recheck=false
34159ac_cs_silent=false
34160SHELL=\${CONFIG_SHELL-$SHELL}
34161_ACEOF
34162
34163cat >>$CONFIG_STATUS <<\_ACEOF
34164## --------------------- ##
34165## M4sh Initialization. ##
34166## --------------------- ##
34167
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034168# Be Bourne compatible
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034169if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34170 emulate sh
34171 NULLCMD=:
34172 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34173 # is contrary to our usage. Disable this feature.
34174 alias -g '${1+"$@"}'='"$@"'
34175 setopt NO_GLOB_SUBST
34176else
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034177 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034178fi
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034179BIN_SH=xpg4; export BIN_SH # for Tru64
34180DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034181
34182
34183# PATH needs CR
34184# Avoid depending upon Character Ranges.
34185as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34186as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34187as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34188as_cr_digits='0123456789'
34189as_cr_alnum=$as_cr_Letters$as_cr_digits
34190
34191# The user is always right.
34192if test "${PATH_SEPARATOR+set}" != set; then
34193 echo "#! /bin/sh" >conf$$.sh
34194 echo "exit 0" >>conf$$.sh
34195 chmod +x conf$$.sh
34196 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34197 PATH_SEPARATOR=';'
34198 else
34199 PATH_SEPARATOR=:
34200 fi
34201 rm -f conf$$.sh
34202fi
34203
34204# Support unset when possible.
34205if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34206 as_unset=unset
34207else
34208 as_unset=false
34209fi
34210
34211
34212# IFS
34213# We need space, tab and new line, in precisely that order. Quoting is
34214# there to prevent editors from complaining about space-tab.
34215# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34216# splitting by setting IFS to empty value.)
34217as_nl='
34218'
34219IFS=" "" $as_nl"
34220
34221# Find who we are. Look in the path if we contain no directory separator.
34222case $0 in
34223 *[\\/]* ) as_myself=$0 ;;
34224 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34225for as_dir in $PATH
34226do
34227 IFS=$as_save_IFS
34228 test -z "$as_dir" && as_dir=.
34229 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34230done
34231IFS=$as_save_IFS
34232
34233 ;;
34234esac
34235# We did not find ourselves, most probably we were run as `sh COMMAND'
34236# in which case we are not to be found in the path.
34237if test "x$as_myself" = x; then
34238 as_myself=$0
34239fi
34240if test ! -f "$as_myself"; then
34241 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34242 { (exit 1); exit 1; }
34243fi
34244
34245# Work around bugs in pre-3.0 UWIN ksh.
34246for as_var in ENV MAIL MAILPATH
34247do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34248done
34249PS1='$ '
34250PS2='> '
34251PS4='+ '
34252
34253# NLS nuisances.
34254for as_var in \
34255 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34256 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34257 LC_TELEPHONE LC_TIME
34258do
34259 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34260 eval $as_var=C; export $as_var
34261 else
34262 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34263 fi
34264done
34265
34266# Required to use basename.
34267if expr a : '\(a\)' >/dev/null 2>&1 &&
34268 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34269 as_expr=expr
34270else
34271 as_expr=false
34272fi
34273
34274if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34275 as_basename=basename
34276else
34277 as_basename=false
34278fi
34279
34280
34281# Name of the executable.
34282as_me=`$as_basename -- "$0" ||
34283$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34284 X"$0" : 'X\(//\)$' \| \
34285 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34286echo X/"$0" |
34287 sed '/^.*\/\([^/][^/]*\)\/*$/{
34288 s//\1/
34289 q
34290 }
34291 /^X\/\(\/\/\)$/{
34292 s//\1/
34293 q
34294 }
34295 /^X\/\(\/\).*/{
34296 s//\1/
34297 q
34298 }
34299 s/.*/./; q'`
34300
34301# CDPATH.
34302$as_unset CDPATH
34303
34304
34305
34306 as_lineno_1=$LINENO
34307 as_lineno_2=$LINENO
34308 test "x$as_lineno_1" != "x$as_lineno_2" &&
34309 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34310
34311 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34312 # uniformly replaced by the line number. The first 'sed' inserts a
34313 # line-number line after each line using $LINENO; the second 'sed'
34314 # does the real work. The second script uses 'N' to pair each
34315 # line-number line with the line containing $LINENO, and appends
34316 # trailing '-' during substitution so that $LINENO is not a special
34317 # case at line end.
34318 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34319 # scripts with optimization help from Paolo Bonzini. Blame Lee
34320 # E. McMahon (1931-1989) for sed's syntax. :-)
34321 sed -n '
34322 p
34323 /[$]LINENO/=
34324 ' <$as_myself |
34325 sed '
34326 s/[$]LINENO.*/&-/
34327 t lineno
34328 b
34329 :lineno
34330 N
34331 :loop
34332 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34333 t loop
34334 s/-\n.*//
34335 ' >$as_me.lineno &&
34336 chmod +x "$as_me.lineno" ||
34337 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34338 { (exit 1); exit 1; }; }
34339
34340 # Don't try to exec as it changes $[0], causing all sort of problems
34341 # (the dirname of $[0] is not the place where we might find the
34342 # original and so on. Autoconf is especially sensitive to this).
34343 . "./$as_me.lineno"
34344 # Exit status is that of the last command.
34345 exit
34346}
34347
34348
34349if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34350 as_dirname=dirname
34351else
34352 as_dirname=false
34353fi
34354
34355ECHO_C= ECHO_N= ECHO_T=
34356case `echo -n x` in
34357-n*)
34358 case `echo 'x\c'` in
34359 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34360 *) ECHO_C='\c';;
34361 esac;;
34362*)
34363 ECHO_N='-n';;
34364esac
34365
34366if expr a : '\(a\)' >/dev/null 2>&1 &&
34367 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34368 as_expr=expr
34369else
34370 as_expr=false
34371fi
34372
34373rm -f conf$$ conf$$.exe conf$$.file
34374if test -d conf$$.dir; then
34375 rm -f conf$$.dir/conf$$.file
34376else
34377 rm -f conf$$.dir
34378 mkdir conf$$.dir
34379fi
34380echo >conf$$.file
34381if ln -s conf$$.file conf$$ 2>/dev/null; then
34382 as_ln_s='ln -s'
34383 # ... but there are two gotchas:
34384 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34385 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34386 # In both cases, we have to default to `cp -p'.
34387 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34388 as_ln_s='cp -p'
34389elif ln conf$$.file conf$$ 2>/dev/null; then
34390 as_ln_s=ln
34391else
34392 as_ln_s='cp -p'
34393fi
34394rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34395rmdir conf$$.dir 2>/dev/null
34396
34397if mkdir -p . 2>/dev/null; then
34398 as_mkdir_p=:
34399else
34400 test -d ./-p && rmdir ./-p
34401 as_mkdir_p=false
34402fi
34403
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034404# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34405# systems may use methods other than mode bits to determine executability.
34406cat >conf$$.file <<_ASEOF
34407#! /bin/sh
34408exit 0
34409_ASEOF
34410chmod +x conf$$.file
34411if test -x conf$$.file >/dev/null 2>&1; then
34412 as_executable_p="test -x"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034413else
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034414 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034415fi
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034416rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034417
34418# Sed expression to map a string onto a valid CPP name.
34419as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34420
34421# Sed expression to map a string onto a valid variable name.
34422as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34423
34424
34425exec 6>&1
34426
34427# Save the log message, to keep $[0] and so on meaningful, and to
34428# report actual input values of CONFIG_FILES etc. instead of their
34429# values after options handling.
34430ac_log="
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034431This file was extended by llvm $as_me 2.6svn, which was
34432generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034433
34434 CONFIG_FILES = $CONFIG_FILES
34435 CONFIG_HEADERS = $CONFIG_HEADERS
34436 CONFIG_LINKS = $CONFIG_LINKS
34437 CONFIG_COMMANDS = $CONFIG_COMMANDS
34438 $ $0 $@
34439
34440on `(hostname || uname -n) 2>/dev/null | sed 1q`
34441"
34442
34443_ACEOF
34444
34445cat >>$CONFIG_STATUS <<_ACEOF
34446# Files that config.status was made for.
34447config_files="$ac_config_files"
34448config_headers="$ac_config_headers"
34449config_commands="$ac_config_commands"
34450
34451_ACEOF
34452
34453cat >>$CONFIG_STATUS <<\_ACEOF
34454ac_cs_usage="\
34455\`$as_me' instantiates files from templates according to the
34456current configuration.
34457
34458Usage: $0 [OPTIONS] [FILE]...
34459
34460 -h, --help print this help, then exit
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034461 -V, --version print version number, then exit
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034462 -q, --quiet do not print progress messages
34463 -d, --debug don't remove temporary files
34464 --recheck update $as_me by reconfiguring in the same conditions
34465 --file=FILE[:TEMPLATE]
34466 instantiate the configuration file FILE
34467 --header=FILE[:TEMPLATE]
34468 instantiate the configuration header FILE
34469
34470Configuration files:
34471$config_files
34472
34473Configuration headers:
34474$config_headers
34475
34476Configuration commands:
34477$config_commands
34478
34479Report bugs to <bug-autoconf@gnu.org>."
34480
34481_ACEOF
34482cat >>$CONFIG_STATUS <<_ACEOF
34483ac_cs_version="\\
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034484llvm config.status 2.6svn
34485configured by $0, generated by GNU Autoconf 2.60,
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034486 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34487
34488Copyright (C) 2006 Free Software Foundation, Inc.
34489This config.status script is free software; the Free Software Foundation
34490gives unlimited permission to copy, distribute and modify it."
34491
34492ac_pwd='$ac_pwd'
34493srcdir='$srcdir'
34494INSTALL='$INSTALL'
34495_ACEOF
34496
34497cat >>$CONFIG_STATUS <<\_ACEOF
34498# If no file are specified by the user, then we need to provide default
34499# value. By we need to know if files were specified by the user.
34500ac_need_defaults=:
34501while test $# != 0
34502do
34503 case $1 in
34504 --*=*)
34505 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34506 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34507 ac_shift=:
34508 ;;
34509 *)
34510 ac_option=$1
34511 ac_optarg=$2
34512 ac_shift=shift
34513 ;;
34514 esac
34515
34516 case $ac_option in
34517 # Handling of the options.
34518 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34519 ac_cs_recheck=: ;;
34520 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34521 echo "$ac_cs_version"; exit ;;
34522 --debug | --debu | --deb | --de | --d | -d )
34523 debug=: ;;
34524 --file | --fil | --fi | --f )
34525 $ac_shift
34526 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34527 ac_need_defaults=false;;
34528 --header | --heade | --head | --hea )
34529 $ac_shift
34530 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34531 ac_need_defaults=false;;
34532 --he | --h)
34533 # Conflict between --help and --header
34534 { echo "$as_me: error: ambiguous option: $1
34535Try \`$0 --help' for more information." >&2
34536 { (exit 1); exit 1; }; };;
34537 --help | --hel | -h )
34538 echo "$ac_cs_usage"; exit ;;
34539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34540 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34541 ac_cs_silent=: ;;
34542
34543 # This is an error.
34544 -*) { echo "$as_me: error: unrecognized option: $1
34545Try \`$0 --help' for more information." >&2
34546 { (exit 1); exit 1; }; } ;;
34547
34548 *) ac_config_targets="$ac_config_targets $1"
34549 ac_need_defaults=false ;;
34550
34551 esac
34552 shift
34553done
34554
34555ac_configure_extra_args=
34556
34557if $ac_cs_silent; then
34558 exec 6>/dev/null
34559 ac_configure_extra_args="$ac_configure_extra_args --silent"
34560fi
34561
34562_ACEOF
34563cat >>$CONFIG_STATUS <<_ACEOF
34564if \$ac_cs_recheck; then
34565 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34566 CONFIG_SHELL=$SHELL
34567 export CONFIG_SHELL
34568 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34569fi
34570
34571_ACEOF
34572cat >>$CONFIG_STATUS <<\_ACEOF
34573exec 5>>config.log
34574{
34575 echo
34576 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34577## Running $as_me. ##
34578_ASBOX
34579 echo "$ac_log"
34580} >&5
34581
34582_ACEOF
34583cat >>$CONFIG_STATUS <<_ACEOF
34584#
34585# INIT-COMMANDS
34586#
34587llvm_src="${srcdir}"
34588
34589_ACEOF
34590
34591cat >>$CONFIG_STATUS <<\_ACEOF
34592
34593# Handling of arguments.
34594for ac_config_target in $ac_config_targets
34595do
34596 case $ac_config_target in
34597 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34598 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikov5124f282008-05-29 17:41:34 +000034599 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034600 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34601 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34602 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34603 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34604 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34605 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34606 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34607 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34608 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34609 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34610 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34611 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000034612 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034613 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34614 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34615 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000034616 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34617 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034618
34619 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34620echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34621 { (exit 1); exit 1; }; };;
34622 esac
34623done
34624
34625
34626# If the user did not use the arguments to specify the items to instantiate,
34627# then the envvar interface is used. Set only those that are not.
34628# We use the long form for the default assignment because of an extremely
34629# bizarre bug on SunOS 4.1.3.
34630if $ac_need_defaults; then
34631 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34632 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34633 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34634fi
34635
34636# Have a temporary directory for convenience. Make it in the build tree
34637# simply because there is no reason against having it here, and in addition,
34638# creating and moving files from /tmp can sometimes cause problems.
34639# Hook for its removal unless debugging.
34640# Note that there is a small window in which the directory will not be cleaned:
34641# after its creation but before its name has been assigned to `$tmp'.
34642$debug ||
34643{
34644 tmp=
34645 trap 'exit_status=$?
34646 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34647' 0
34648 trap '{ (exit 1); exit 1; }' 1 2 13 15
34649}
34650# Create a (secure) tmp directory for tmp files.
34651
34652{
34653 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34654 test -n "$tmp" && test -d "$tmp"
34655} ||
34656{
34657 tmp=./conf$$-$RANDOM
34658 (umask 077 && mkdir "$tmp")
34659} ||
34660{
34661 echo "$me: cannot create a temporary directory in ." >&2
34662 { (exit 1); exit 1; }
34663}
34664
34665#
34666# Set up the sed scripts for CONFIG_FILES section.
34667#
34668
34669# No need to generate the scripts if there are no CONFIG_FILES.
34670# This happens for instance when ./config.status config.h
34671if test -n "$CONFIG_FILES"; then
34672
34673_ACEOF
34674
34675
34676
34677ac_delim='%!_!# '
34678for ac_last_try in false false false false false :; do
34679 cat >conf$$subs.sed <<_ACEOF
34680SHELL!$SHELL$ac_delim
34681PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34682PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34683PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34684PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34685PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34686PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34687exec_prefix!$exec_prefix$ac_delim
34688prefix!$prefix$ac_delim
34689program_transform_name!$program_transform_name$ac_delim
34690bindir!$bindir$ac_delim
34691sbindir!$sbindir$ac_delim
34692libexecdir!$libexecdir$ac_delim
34693datarootdir!$datarootdir$ac_delim
34694datadir!$datadir$ac_delim
34695sysconfdir!$sysconfdir$ac_delim
34696sharedstatedir!$sharedstatedir$ac_delim
34697localstatedir!$localstatedir$ac_delim
34698includedir!$includedir$ac_delim
34699oldincludedir!$oldincludedir$ac_delim
34700docdir!$docdir$ac_delim
34701infodir!$infodir$ac_delim
34702htmldir!$htmldir$ac_delim
34703dvidir!$dvidir$ac_delim
34704pdfdir!$pdfdir$ac_delim
34705psdir!$psdir$ac_delim
34706libdir!$libdir$ac_delim
34707localedir!$localedir$ac_delim
34708mandir!$mandir$ac_delim
34709DEFS!$DEFS$ac_delim
34710ECHO_C!$ECHO_C$ac_delim
34711ECHO_N!$ECHO_N$ac_delim
34712ECHO_T!$ECHO_T$ac_delim
34713LIBS!$LIBS$ac_delim
34714build_alias!$build_alias$ac_delim
34715host_alias!$host_alias$ac_delim
34716target_alias!$target_alias$ac_delim
34717LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34718subdirs!$subdirs$ac_delim
34719build!$build$ac_delim
34720build_cpu!$build_cpu$ac_delim
34721build_vendor!$build_vendor$ac_delim
34722build_os!$build_os$ac_delim
34723host!$host$ac_delim
34724host_cpu!$host_cpu$ac_delim
34725host_vendor!$host_vendor$ac_delim
34726host_os!$host_os$ac_delim
34727target!$target$ac_delim
34728target_cpu!$target_cpu$ac_delim
34729target_vendor!$target_vendor$ac_delim
34730target_os!$target_os$ac_delim
34731OS!$OS$ac_delim
34732LINKALL!$LINKALL$ac_delim
34733NOLINKALL!$NOLINKALL$ac_delim
34734LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34735LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendling025cce52009-03-12 04:10:09 +000034736ARCH!$ARCH$ac_delim
34737ENDIAN!$ENDIAN$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034738CC!$CC$ac_delim
34739CFLAGS!$CFLAGS$ac_delim
34740LDFLAGS!$LDFLAGS$ac_delim
34741CPPFLAGS!$CPPFLAGS$ac_delim
34742ac_ct_CC!$ac_ct_CC$ac_delim
34743EXEEXT!$EXEEXT$ac_delim
34744OBJEXT!$OBJEXT$ac_delim
34745CPP!$CPP$ac_delim
34746GREP!$GREP$ac_delim
34747EGREP!$EGREP$ac_delim
34748LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34749BUILD_CC!$BUILD_CC$ac_delim
34750BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbache4c032e2008-10-02 22:56:44 +000034751BUILD_CXX!$BUILD_CXX$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034752CVSBUILD!$CVSBUILD$ac_delim
34753ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34754DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34755ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34756EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34757DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34758JIT!$JIT$ac_delim
34759TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34760ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34761ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34762ENABLE_PIC!$ENABLE_PIC$ac_delim
34763TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34764ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34765EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckyf9c14662009-02-03 07:10:30 +000034766BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034767CXX!$CXX$ac_delim
34768CXXFLAGS!$CXXFLAGS$ac_delim
34769ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewycky912c4622009-02-21 22:38:49 +000034770NM!$NM$ac_delim
34771ifGNUmake!$ifGNUmake$ac_delim
34772LN_S!$LN_S$ac_delim
34773CMP!$CMP$ac_delim
34774CP!$CP$ac_delim
34775DATE!$DATE$ac_delim
34776FIND!$FIND$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034777_ACEOF
34778
34779 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34780 break
34781 elif $ac_last_try; then
34782 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34783echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34784 { (exit 1); exit 1; }; }
34785 else
34786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34787 fi
34788done
34789
34790ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34791if test -n "$ac_eof"; then
34792 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34793 ac_eof=`expr $ac_eof + 1`
34794fi
34795
34796cat >>$CONFIG_STATUS <<_ACEOF
34797cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34798/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34799_ACEOF
34800sed '
34801s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34802s/^/s,@/; s/!/@,|#_!!_#|/
34803:n
34804t n
34805s/'"$ac_delim"'$/,g/; t
34806s/$/\\/; p
34807N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34808' >>$CONFIG_STATUS <conf$$subs.sed
34809rm -f conf$$subs.sed
34810cat >>$CONFIG_STATUS <<_ACEOF
34811CEOF$ac_eof
34812_ACEOF
34813
34814
34815ac_delim='%!_!# '
34816for ac_last_try in false false false false false :; do
34817 cat >conf$$subs.sed <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034818MKDIR!$MKDIR$ac_delim
34819MV!$MV$ac_delim
34820RANLIB!$RANLIB$ac_delim
34821RM!$RM$ac_delim
34822SED!$SED$ac_delim
34823TAR!$TAR$ac_delim
34824BINPWD!$BINPWD$ac_delim
34825GRAPHVIZ!$GRAPHVIZ$ac_delim
34826DOT!$DOT$ac_delim
34827GV!$GV$ac_delim
34828DOTTY!$DOTTY$ac_delim
34829PERL!$PERL$ac_delim
34830HAVE_PERL!$HAVE_PERL$ac_delim
34831INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34832INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34833INSTALL_DATA!$INSTALL_DATA$ac_delim
34834BZIP2!$BZIP2$ac_delim
34835DOXYGEN!$DOXYGEN$ac_delim
34836GROFF!$GROFF$ac_delim
34837GZIP!$GZIP$ac_delim
34838POD2HTML!$POD2HTML$ac_delim
34839POD2MAN!$POD2MAN$ac_delim
34840RUNTEST!$RUNTEST$ac_delim
34841TCLSH!$TCLSH$ac_delim
34842ZIP!$ZIP$ac_delim
Gordon Henriksen4ac92092007-09-18 12:27:13 +000034843OCAMLC!$OCAMLC$ac_delim
34844OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksen38eefac2007-09-20 16:48:18 +000034845OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen8af51f62008-03-10 15:49:38 +000034846OCAMLDOC!$OCAMLDOC$ac_delim
Edwin Török20176752008-10-22 09:56:27 +000034847GAS!$GAS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034848INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34849INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34850CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34851CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34852LIBADD_DL!$LIBADD_DL$ac_delim
34853ECHO!$ECHO$ac_delim
34854AR!$AR$ac_delim
34855STRIP!$STRIP$ac_delim
34856CXXCPP!$CXXCPP$ac_delim
34857F77!$F77$ac_delim
34858FFLAGS!$FFLAGS$ac_delim
34859ac_ct_F77!$ac_ct_F77$ac_delim
34860LIBTOOL!$LIBTOOL$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034861LLVMGCC!$LLVMGCC$ac_delim
34862LLVMGXX!$LLVMGXX$ac_delim
34863USE_UDIS86!$USE_UDIS86$ac_delim
34864HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34865HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34866ALLOCA!$ALLOCA$ac_delim
34867MMAP_FILE!$MMAP_FILE$ac_delim
34868LLVMCC1!$LLVMCC1$ac_delim
34869LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34870LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34871LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34872LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34873LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34874LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34875SHLIBEXT!$SHLIBEXT$ac_delim
34876LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34877LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34878LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34879LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34880LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34881LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34882LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34883LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34884LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34885LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksen016ec472007-10-02 09:50:32 +000034886BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
34887ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksen058a4c62007-10-02 16:42:22 +000034888OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000034889ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000034890RPATH!$RPATH$ac_delim
Nick Lewycky6eab6652009-03-05 08:20:44 +000034891RDYNAMIC!$RDYNAMIC$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034892LIBOBJS!$LIBOBJS$ac_delim
34893LTLIBOBJS!$LTLIBOBJS$ac_delim
34894_ACEOF
34895
Nick Lewycky6c58a402009-04-13 04:26:27 +000034896 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034897 break
34898 elif $ac_last_try; then
34899 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34900echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34901 { (exit 1); exit 1; }; }
34902 else
34903 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34904 fi
34905done
34906
34907ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34908if test -n "$ac_eof"; then
34909 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34910 ac_eof=`expr $ac_eof + 1`
34911fi
34912
34913cat >>$CONFIG_STATUS <<_ACEOF
34914cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34915/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34916_ACEOF
34917sed '
34918s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34919s/^/s,@/; s/!/@,|#_!!_#|/
34920:n
34921t n
34922s/'"$ac_delim"'$/,g/; t
34923s/$/\\/; p
34924N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34925' >>$CONFIG_STATUS <conf$$subs.sed
34926rm -f conf$$subs.sed
34927cat >>$CONFIG_STATUS <<_ACEOF
34928:end
34929s/|#_!!_#|//g
34930CEOF$ac_eof
34931_ACEOF
34932
34933
34934# VPATH may cause trouble with some makes, so we remove $(srcdir),
34935# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34936# trailing colons and then remove the whole line if VPATH becomes empty
34937# (actually we leave an empty line to preserve line numbers).
34938if test "x$srcdir" = x.; then
34939 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34940s/:*\$(srcdir):*/:/
34941s/:*\${srcdir}:*/:/
34942s/:*@srcdir@:*/:/
34943s/^\([^=]*=[ ]*\):*/\1/
34944s/:*$//
34945s/^[^=]*=[ ]*$//
34946}'
34947fi
34948
34949cat >>$CONFIG_STATUS <<\_ACEOF
34950fi # test -n "$CONFIG_FILES"
34951
34952
34953for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34954do
34955 case $ac_tag in
34956 :[FHLC]) ac_mode=$ac_tag; continue;;
34957 esac
34958 case $ac_mode$ac_tag in
34959 :[FHL]*:*);;
34960 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34961echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34962 { (exit 1); exit 1; }; };;
34963 :[FH]-) ac_tag=-:-;;
34964 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34965 esac
34966 ac_save_IFS=$IFS
34967 IFS=:
34968 set x $ac_tag
34969 IFS=$ac_save_IFS
34970 shift
34971 ac_file=$1
34972 shift
34973
34974 case $ac_mode in
34975 :L) ac_source=$1;;
34976 :[FH])
34977 ac_file_inputs=
34978 for ac_f
34979 do
34980 case $ac_f in
34981 -) ac_f="$tmp/stdin";;
34982 *) # Look for the file first in the build tree, then in the source tree
34983 # (if the path is not absolute). The absolute path cannot be DOS-style,
34984 # because $ac_f cannot contain `:'.
34985 test -f "$ac_f" ||
34986 case $ac_f in
34987 [\\/$]*) false;;
34988 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34989 esac ||
34990 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34991echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34992 { (exit 1); exit 1; }; };;
34993 esac
34994 ac_file_inputs="$ac_file_inputs $ac_f"
34995 done
34996
34997 # Let's still pretend it is `configure' which instantiates (i.e., don't
34998 # use $as_me), people would be surprised to read:
34999 # /* config.h. Generated by config.status. */
35000 configure_input="Generated from "`IFS=:
35001 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35002 if test x"$ac_file" != x-; then
35003 configure_input="$ac_file. $configure_input"
35004 { echo "$as_me:$LINENO: creating $ac_file" >&5
35005echo "$as_me: creating $ac_file" >&6;}
35006 fi
35007
35008 case $ac_tag in
35009 *:-:* | *:-) cat >"$tmp/stdin";;
35010 esac
35011 ;;
35012 esac
35013
35014 ac_dir=`$as_dirname -- "$ac_file" ||
35015$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35016 X"$ac_file" : 'X\(//\)[^/]' \| \
35017 X"$ac_file" : 'X\(//\)$' \| \
35018 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35019echo X"$ac_file" |
35020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35021 s//\1/
35022 q
35023 }
35024 /^X\(\/\/\)[^/].*/{
35025 s//\1/
35026 q
35027 }
35028 /^X\(\/\/\)$/{
35029 s//\1/
35030 q
35031 }
35032 /^X\(\/\).*/{
35033 s//\1/
35034 q
35035 }
35036 s/.*/./; q'`
35037 { as_dir="$ac_dir"
35038 case $as_dir in #(
35039 -*) as_dir=./$as_dir;;
35040 esac
35041 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35042 as_dirs=
35043 while :; do
35044 case $as_dir in #(
35045 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35046 *) as_qdir=$as_dir;;
35047 esac
35048 as_dirs="'$as_qdir' $as_dirs"
35049 as_dir=`$as_dirname -- "$as_dir" ||
35050$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35051 X"$as_dir" : 'X\(//\)[^/]' \| \
35052 X"$as_dir" : 'X\(//\)$' \| \
35053 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35054echo X"$as_dir" |
35055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35056 s//\1/
35057 q
35058 }
35059 /^X\(\/\/\)[^/].*/{
35060 s//\1/
35061 q
35062 }
35063 /^X\(\/\/\)$/{
35064 s//\1/
35065 q
35066 }
35067 /^X\(\/\).*/{
35068 s//\1/
35069 q
35070 }
35071 s/.*/./; q'`
35072 test -d "$as_dir" && break
35073 done
35074 test -z "$as_dirs" || eval "mkdir $as_dirs"
35075 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35076echo "$as_me: error: cannot create directory $as_dir" >&2;}
35077 { (exit 1); exit 1; }; }; }
35078 ac_builddir=.
35079
35080case "$ac_dir" in
35081.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35082*)
35083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35084 # A ".." for each directory in $ac_dir_suffix.
35085 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35086 case $ac_top_builddir_sub in
35087 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35088 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35089 esac ;;
35090esac
35091ac_abs_top_builddir=$ac_pwd
35092ac_abs_builddir=$ac_pwd$ac_dir_suffix
35093# for backward compatibility:
35094ac_top_builddir=$ac_top_build_prefix
35095
35096case $srcdir in
35097 .) # We are building in place.
35098 ac_srcdir=.
35099 ac_top_srcdir=$ac_top_builddir_sub
35100 ac_abs_top_srcdir=$ac_pwd ;;
35101 [\\/]* | ?:[\\/]* ) # Absolute name.
35102 ac_srcdir=$srcdir$ac_dir_suffix;
35103 ac_top_srcdir=$srcdir
35104 ac_abs_top_srcdir=$srcdir ;;
35105 *) # Relative name.
35106 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35107 ac_top_srcdir=$ac_top_build_prefix$srcdir
35108 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35109esac
35110ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35111
35112
35113 case $ac_mode in
35114 :F)
35115 #
35116 # CONFIG_FILE
35117 #
35118
35119 case $INSTALL in
35120 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35121 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35122 esac
35123_ACEOF
35124
35125cat >>$CONFIG_STATUS <<\_ACEOF
35126# If the template does not know about datarootdir, expand it.
35127# FIXME: This hack should be removed a few years after 2.60.
35128ac_datarootdir_hack=; ac_datarootdir_seen=
35129
35130case `sed -n '/datarootdir/ {
35131 p
35132 q
35133}
35134/@datadir@/p
35135/@docdir@/p
35136/@infodir@/p
35137/@localedir@/p
35138/@mandir@/p
35139' $ac_file_inputs` in
35140*datarootdir*) ac_datarootdir_seen=yes;;
35141*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35142 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35143echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35144_ACEOF
35145cat >>$CONFIG_STATUS <<_ACEOF
35146 ac_datarootdir_hack='
35147 s&@datadir@&$datadir&g
35148 s&@docdir@&$docdir&g
35149 s&@infodir@&$infodir&g
35150 s&@localedir@&$localedir&g
35151 s&@mandir@&$mandir&g
35152 s&\\\${datarootdir}&$datarootdir&g' ;;
35153esac
35154_ACEOF
35155
35156# Neutralize VPATH when `$srcdir' = `.'.
35157# Shell code in configure.ac might set extrasub.
35158# FIXME: do we really want to maintain this feature?
35159cat >>$CONFIG_STATUS <<_ACEOF
35160 sed "$ac_vpsub
35161$extrasub
35162_ACEOF
35163cat >>$CONFIG_STATUS <<\_ACEOF
35164:t
35165/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35166s&@configure_input@&$configure_input&;t t
35167s&@top_builddir@&$ac_top_builddir_sub&;t t
35168s&@srcdir@&$ac_srcdir&;t t
35169s&@abs_srcdir@&$ac_abs_srcdir&;t t
35170s&@top_srcdir@&$ac_top_srcdir&;t t
35171s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35172s&@builddir@&$ac_builddir&;t t
35173s&@abs_builddir@&$ac_abs_builddir&;t t
35174s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35175s&@INSTALL@&$ac_INSTALL&;t t
35176$ac_datarootdir_hack
35177" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35178
35179test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35180 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35181 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35182 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35183which seems to be undefined. Please make sure it is defined." >&5
35184echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35185which seems to be undefined. Please make sure it is defined." >&2;}
35186
35187 rm -f "$tmp/stdin"
35188 case $ac_file in
35189 -) cat "$tmp/out"; rm -f "$tmp/out";;
35190 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35191 esac
35192 ;;
35193 :H)
35194 #
35195 # CONFIG_HEADER
35196 #
35197_ACEOF
35198
35199# Transform confdefs.h into a sed script `conftest.defines', that
35200# substitutes the proper values into config.h.in to produce config.h.
35201rm -f conftest.defines conftest.tail
35202# First, append a space to every undef/define line, to ease matching.
35203echo 's/$/ /' >conftest.defines
35204# Then, protect against being on the right side of a sed subst, or in
35205# an unquoted here document, in config.status. If some macros were
35206# called several times there might be several #defines for the same
35207# symbol, which is useless. But do not sort them, since the last
35208# AC_DEFINE must be honored.
35209ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35210# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35211# NAME is the cpp macro being defined, VALUE is the value it is being given.
35212# PARAMS is the parameter list in the macro definition--in most cases, it's
35213# just an empty string.
35214ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35215ac_dB='\\)[ (].*,\\1define\\2'
35216ac_dC=' '
35217ac_dD=' ,'
35218
35219uniq confdefs.h |
35220 sed -n '
35221 t rset
35222 :rset
35223 s/^[ ]*#[ ]*define[ ][ ]*//
35224 t ok
35225 d
35226 :ok
35227 s/[\\&,]/\\&/g
35228 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35229 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35230 ' >>conftest.defines
35231
35232# Remove the space that was appended to ease matching.
35233# Then replace #undef with comments. This is necessary, for
35234# example, in the case of _POSIX_SOURCE, which is predefined and required
35235# on some systems where configure will not decide to define it.
35236# (The regexp can be short, since the line contains either #define or #undef.)
35237echo 's/ $//
35238s,^[ #]*u.*,/* & */,' >>conftest.defines
35239
35240# Break up conftest.defines:
35241ac_max_sed_lines=50
35242
35243# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35244# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35245# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35246# et cetera.
35247ac_in='$ac_file_inputs'
35248ac_out='"$tmp/out1"'
35249ac_nxt='"$tmp/out2"'
35250
35251while :
35252do
35253 # Write a here document:
35254 cat >>$CONFIG_STATUS <<_ACEOF
35255 # First, check the format of the line:
35256 cat >"\$tmp/defines.sed" <<\\CEOF
35257/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35258/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35259b
35260:def
35261_ACEOF
35262 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35263 echo 'CEOF
35264 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35265 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35266 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35267 grep . conftest.tail >/dev/null || break
35268 rm -f conftest.defines
35269 mv conftest.tail conftest.defines
35270done
35271rm -f conftest.defines conftest.tail
35272
35273echo "ac_result=$ac_in" >>$CONFIG_STATUS
35274cat >>$CONFIG_STATUS <<\_ACEOF
35275 if test x"$ac_file" != x-; then
35276 echo "/* $configure_input */" >"$tmp/config.h"
35277 cat "$ac_result" >>"$tmp/config.h"
35278 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35279 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35280echo "$as_me: $ac_file is unchanged" >&6;}
35281 else
35282 rm -f $ac_file
35283 mv "$tmp/config.h" $ac_file
35284 fi
35285 else
35286 echo "/* $configure_input */"
35287 cat "$ac_result"
35288 fi
35289 rm -f "$tmp/out12"
35290 ;;
35291
35292 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35293echo "$as_me: executing $ac_file commands" >&6;}
35294 ;;
35295 esac
35296
35297
35298 case $ac_file$ac_mode in
35299 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35300 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35301 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35302 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35303 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35304 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35305 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35306 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35307 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35308 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35309 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35310 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35311 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35312 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000035313 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35314 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035315 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35316 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35317 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35318 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35319 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35320 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000035321 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35322 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35323 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35324 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035325
35326 esac
35327done # for ac_tag
35328
35329
35330{ (exit 0); exit 0; }
35331_ACEOF
35332chmod +x $CONFIG_STATUS
35333ac_clean_files=$ac_clean_files_save
35334
35335
35336# configure is writing to config.log, and then calls config.status.
35337# config.status does its own redirection, appending to config.log.
35338# Unfortunately, on DOS this fails, as config.log is still kept open
35339# by configure, so config.status won't be able to write to it; its
35340# output is simply discarded. So we exec the FD to /dev/null,
35341# effectively closing config.log, so it can be properly (re)opened and
35342# appended to by config.status. When coming back to configure, we
35343# need to make the FD available again.
35344if test "$no_create" != yes; then
35345 ac_cs_success=:
35346 ac_config_status_args=
35347 test "$silent" = yes &&
35348 ac_config_status_args="$ac_config_status_args --quiet"
35349 exec 5>/dev/null
35350 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35351 exec 5>>config.log
35352 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35353 # would make configure fail if this is the last instruction.
35354 $ac_cs_success || { (exit 1); exit 1; }
35355fi
35356
35357#
35358# CONFIG_SUBDIRS section.
35359#
35360if test "$no_recursion" != yes; then
35361
35362 # Remove --cache-file and --srcdir arguments so they do not pile up.
35363 ac_sub_configure_args=
35364 ac_prev=
35365 eval "set x $ac_configure_args"
35366 shift
35367 for ac_arg
35368 do
35369 if test -n "$ac_prev"; then
35370 ac_prev=
35371 continue
35372 fi
35373 case $ac_arg in
35374 -cache-file | --cache-file | --cache-fil | --cache-fi \
35375 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35376 ac_prev=cache_file ;;
35377 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35378 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35379 | --c=*)
35380 ;;
35381 --config-cache | -C)
35382 ;;
35383 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35384 ac_prev=srcdir ;;
35385 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35386 ;;
35387 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35388 ac_prev=prefix ;;
35389 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35390 ;;
35391 *)
35392 case $ac_arg in
35393 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35394 esac
35395 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35396 esac
35397 done
35398
35399 # Always prepend --prefix to ensure using the same prefix
35400 # in subdir configurations.
35401 ac_arg="--prefix=$prefix"
35402 case $ac_arg in
35403 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35404 esac
Tanya Lattner3fa4a442009-01-22 05:17:59 +000035405 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035406
35407 ac_popdir=`pwd`
35408 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35409
35410 # Do not complain, so a configure script can configure whichever
35411 # parts of a large source tree are present.
35412 test -d "$srcdir/$ac_dir" || continue
35413
35414 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35415 echo "$as_me:$LINENO: $ac_msg" >&5
35416 echo "$ac_msg" >&6
35417 { as_dir="$ac_dir"
35418 case $as_dir in #(
35419 -*) as_dir=./$as_dir;;
35420 esac
35421 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35422 as_dirs=
35423 while :; do
35424 case $as_dir in #(
35425 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35426 *) as_qdir=$as_dir;;
35427 esac
35428 as_dirs="'$as_qdir' $as_dirs"
35429 as_dir=`$as_dirname -- "$as_dir" ||
35430$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35431 X"$as_dir" : 'X\(//\)[^/]' \| \
35432 X"$as_dir" : 'X\(//\)$' \| \
35433 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35434echo X"$as_dir" |
35435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35436 s//\1/
35437 q
35438 }
35439 /^X\(\/\/\)[^/].*/{
35440 s//\1/
35441 q
35442 }
35443 /^X\(\/\/\)$/{
35444 s//\1/
35445 q
35446 }
35447 /^X\(\/\).*/{
35448 s//\1/
35449 q
35450 }
35451 s/.*/./; q'`
35452 test -d "$as_dir" && break
35453 done
35454 test -z "$as_dirs" || eval "mkdir $as_dirs"
35455 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35456echo "$as_me: error: cannot create directory $as_dir" >&2;}
35457 { (exit 1); exit 1; }; }; }
35458 ac_builddir=.
35459
35460case "$ac_dir" in
35461.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35462*)
35463 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35464 # A ".." for each directory in $ac_dir_suffix.
35465 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35466 case $ac_top_builddir_sub in
35467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35469 esac ;;
35470esac
35471ac_abs_top_builddir=$ac_pwd
35472ac_abs_builddir=$ac_pwd$ac_dir_suffix
35473# for backward compatibility:
35474ac_top_builddir=$ac_top_build_prefix
35475
35476case $srcdir in
35477 .) # We are building in place.
35478 ac_srcdir=.
35479 ac_top_srcdir=$ac_top_builddir_sub
35480 ac_abs_top_srcdir=$ac_pwd ;;
35481 [\\/]* | ?:[\\/]* ) # Absolute name.
35482 ac_srcdir=$srcdir$ac_dir_suffix;
35483 ac_top_srcdir=$srcdir
35484 ac_abs_top_srcdir=$srcdir ;;
35485 *) # Relative name.
35486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35487 ac_top_srcdir=$ac_top_build_prefix$srcdir
35488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35489esac
35490ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35491
35492
35493 cd "$ac_dir"
35494
35495 # Check for guested configure; otherwise get Cygnus style configure.
35496 if test -f "$ac_srcdir/configure.gnu"; then
35497 ac_sub_configure=$ac_srcdir/configure.gnu
35498 elif test -f "$ac_srcdir/configure"; then
35499 ac_sub_configure=$ac_srcdir/configure
35500 elif test -f "$ac_srcdir/configure.in"; then
35501 # This should be Cygnus configure.
35502 ac_sub_configure=$ac_aux_dir/configure
35503 else
35504 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35505echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35506 ac_sub_configure=
35507 fi
35508
35509 # The recursion is here.
35510 if test -n "$ac_sub_configure"; then
35511 # Make the cache file name correct relative to the subdirectory.
35512 case $cache_file in
35513 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35514 *) # Relative name.
35515 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35516 esac
35517
35518 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35519echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35520 # The eval makes quoting arguments work.
35521 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35522 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35523 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35524echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35525 { (exit 1); exit 1; }; }
35526 fi
35527
35528 cd "$ac_popdir"
35529 done
35530fi
35531